Skip to content

Latest commit

 

History

History
444 lines (302 loc) · 14.1 KB

File metadata and controls

444 lines (302 loc) · 14.1 KB

wallet.StaticVouchersApi

All URIs are relative to https://api.wall.et

Method HTTP request Description
create_static_voucher POST /v2/payment/staticVoucher Create static voucher
delete_static_voucher DELETE /v2/payment/staticVoucher/{id} Delete static voucher
fetch_reach_stats_of_all_static_vouchers GET /v2/payment/staticVoucher/reach/all Get the reach statistics of all the static vouchers
fetch_reach_stats_of_individual_static_voucher GET /v2/payment/staticVoucher/reach/{staticVoucherID} Get the reach statistics of an individual static voucher
fetch_static_voucher GET /v2/payment/staticVoucher/{id} Fetch static voucher
update_static_voucher PUT /v2/payment/staticVoucher/{id} Update static voucher

create_static_voucher

WTStaticVoucher create_static_voucher(wt_static_voucher_create_params)

Create static voucher

Example

import wallet
from wallet.models.wt_static_voucher import WTStaticVoucher
from wallet.models.wt_static_voucher_create_params import WTStaticVoucherCreateParams
from wallet.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
    host = "https://api.wall.et"
)


# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = wallet.StaticVouchersApi(api_client)
    wt_static_voucher_create_params = wallet.WTStaticVoucherCreateParams() # WTStaticVoucherCreateParams | 

    try:
        # Create static voucher
        api_response = api_instance.create_static_voucher(wt_static_voucher_create_params)
        print("The response of StaticVouchersApi->create_static_voucher:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling StaticVouchersApi->create_static_voucher: %s\n" % e)

Parameters

Name Type Description Notes
wt_static_voucher_create_params WTStaticVoucherCreateParams

Return type

WTStaticVoucher

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
201 Created -
401 Authentication Failed -
409 Duplicate Row Found -
422 Validation Failed -
424 Merchant Not Initialized -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

delete_static_voucher

bool delete_static_voucher(id)

Delete static voucher

Example

import wallet
from wallet.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
    host = "https://api.wall.et"
)


# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = wallet.StaticVouchersApi(api_client)
    id = None # object | 

    try:
        # Delete static voucher
        api_response = api_instance.delete_static_voucher(id)
        print("The response of StaticVouchersApi->delete_static_voucher:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling StaticVouchersApi->delete_static_voucher: %s\n" % e)

Parameters

Name Type Description Notes
id object

Return type

bool

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Ok -
401 Authentication Failed -
409 Duplicate Row Found -
422 Validation Failed -
424 Foreign Key does not exist -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_reach_stats_of_all_static_vouchers

ReachPerformanceStats fetch_reach_stats_of_all_static_vouchers(broadcast_scheduled_start_at=broadcast_scheduled_start_at, broadcast_scheduled_end_at=broadcast_scheduled_end_at)

Get the reach statistics of all the static vouchers

Example

import wallet
from wallet.models.reach_performance_stats import ReachPerformanceStats
from wallet.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
    host = "https://api.wall.et"
)


# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = wallet.StaticVouchersApi(api_client)
    broadcast_scheduled_start_at = '2013-10-20T19:20:30+01:00' # datetime |  (optional)
    broadcast_scheduled_end_at = '2013-10-20T19:20:30+01:00' # datetime |  (optional)

    try:
        # Get the reach statistics of all the static vouchers
        api_response = api_instance.fetch_reach_stats_of_all_static_vouchers(broadcast_scheduled_start_at=broadcast_scheduled_start_at, broadcast_scheduled_end_at=broadcast_scheduled_end_at)
        print("The response of StaticVouchersApi->fetch_reach_stats_of_all_static_vouchers:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling StaticVouchersApi->fetch_reach_stats_of_all_static_vouchers: %s\n" % e)

Parameters

Name Type Description Notes
broadcast_scheduled_start_at datetime [optional]
broadcast_scheduled_end_at datetime [optional]

Return type

ReachPerformanceStats

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Ok -
401 Authentication Failed -
422 Validation Failed -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_reach_stats_of_individual_static_voucher

ReachPerformanceStats fetch_reach_stats_of_individual_static_voucher(static_voucher_id, broadcast_scheduled_start_at=broadcast_scheduled_start_at, broadcast_scheduled_end_at=broadcast_scheduled_end_at)

Get the reach statistics of an individual static voucher

Example

import wallet
from wallet.models.reach_performance_stats import ReachPerformanceStats
from wallet.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
    host = "https://api.wall.et"
)


# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = wallet.StaticVouchersApi(api_client)
    static_voucher_id = None # object | 
    broadcast_scheduled_start_at = '2013-10-20T19:20:30+01:00' # datetime |  (optional)
    broadcast_scheduled_end_at = '2013-10-20T19:20:30+01:00' # datetime |  (optional)

    try:
        # Get the reach statistics of an individual static voucher
        api_response = api_instance.fetch_reach_stats_of_individual_static_voucher(static_voucher_id, broadcast_scheduled_start_at=broadcast_scheduled_start_at, broadcast_scheduled_end_at=broadcast_scheduled_end_at)
        print("The response of StaticVouchersApi->fetch_reach_stats_of_individual_static_voucher:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling StaticVouchersApi->fetch_reach_stats_of_individual_static_voucher: %s\n" % e)

Parameters

Name Type Description Notes
static_voucher_id object
broadcast_scheduled_start_at datetime [optional]
broadcast_scheduled_end_at datetime [optional]

Return type

ReachPerformanceStats

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Ok -
401 Authentication Failed -
422 Validation Failed -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

fetch_static_voucher

WTStaticVoucher fetch_static_voucher(id)

Fetch static voucher

Example

import wallet
from wallet.models.wt_static_voucher import WTStaticVoucher
from wallet.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
    host = "https://api.wall.et"
)


# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = wallet.StaticVouchersApi(api_client)
    id = None # object | 

    try:
        # Fetch static voucher
        api_response = api_instance.fetch_static_voucher(id)
        print("The response of StaticVouchersApi->fetch_static_voucher:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling StaticVouchersApi->fetch_static_voucher: %s\n" % e)

Parameters

Name Type Description Notes
id object

Return type

WTStaticVoucher

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Ok -
401 Authentication Failed -
422 Validation Failed -
424 Foreign Key does not exist -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

update_static_voucher

WTStaticVoucher update_static_voucher(id, wt_static_voucher_update_params)

Update static voucher

Example

import wallet
from wallet.models.wt_static_voucher import WTStaticVoucher
from wallet.models.wt_static_voucher_update_params import WTStaticVoucherUpdateParams
from wallet.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.wall.et
# See configuration.py for a list of all supported configuration parameters.
configuration = wallet.Configuration(
    host = "https://api.wall.et"
)


# Enter a context with an instance of the API client
with wallet.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = wallet.StaticVouchersApi(api_client)
    id = None # object | 
    wt_static_voucher_update_params = wallet.WTStaticVoucherUpdateParams() # WTStaticVoucherUpdateParams | 

    try:
        # Update static voucher
        api_response = api_instance.update_static_voucher(id, wt_static_voucher_update_params)
        print("The response of StaticVouchersApi->update_static_voucher:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling StaticVouchersApi->update_static_voucher: %s\n" % e)

Parameters

Name Type Description Notes
id object
wt_static_voucher_update_params WTStaticVoucherUpdateParams

Return type

WTStaticVoucher

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Ok -
401 Authentication Failed -
409 Duplicate Row Found -
422 Validation Failed -
424 Foreign Key does not exist -
500 Internal Server Error -

[Back to top] [Back to API list] [Back to Model list] [Back to README]