Skip to content

Latest commit

 

History

History
218 lines (145 loc) · 6.25 KB

File metadata and controls

218 lines (145 loc) · 6.25 KB

wallet.WebTerminalApi

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

Method HTTP request Description
fetch_wallet_item_from_web_terminal GET /v2/pos/web/item/{itemID} Fetch item
redeem_wallet_item_from_web_terminal POST /v2/pos/web/item/redeem/{itemID} Redeem item
refund_wallet_item_from_web_terminal POST /v2/pos/web/item/refund/{ledgerEntryID} Refund transaction

fetch_wallet_item_from_web_terminal

object fetch_wallet_item_from_web_terminal(item_id)

Fetch item

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.WebTerminalApi(api_client)
    item_id = 'item_id_example' # str | 

    try:
        # Fetch item
        api_response = api_instance.fetch_wallet_item_from_web_terminal(item_id)
        print("The response of WebTerminalApi->fetch_wallet_item_from_web_terminal:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling WebTerminalApi->fetch_wallet_item_from_web_terminal: %s\n" % e)

Parameters

Name Type Description Notes
item_id str

Return type

object

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]

redeem_wallet_item_from_web_terminal

object redeem_wallet_item_from_web_terminal(item_id, wt_wallet_item_redemption)

Redeem item

Example

import wallet
from wallet.models.wt_wallet_item_redemption import WTWalletItemRedemption
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.WebTerminalApi(api_client)
    item_id = 'item_id_example' # str | 
    wt_wallet_item_redemption = wallet.WTWalletItemRedemption() # WTWalletItemRedemption | 

    try:
        # Redeem item
        api_response = api_instance.redeem_wallet_item_from_web_terminal(item_id, wt_wallet_item_redemption)
        print("The response of WebTerminalApi->redeem_wallet_item_from_web_terminal:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling WebTerminalApi->redeem_wallet_item_from_web_terminal: %s\n" % e)

Parameters

Name Type Description Notes
item_id str
wt_wallet_item_redemption WTWalletItemRedemption

Return type

object

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 -
422 Validation Failed -
500 Internal Server Error -

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

refund_wallet_item_from_web_terminal

object refund_wallet_item_from_web_terminal(ledger_entry_id)

Refund transaction

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.WebTerminalApi(api_client)
    ledger_entry_id = 'ledger_entry_id_example' # str | 

    try:
        # Refund transaction
        api_response = api_instance.refund_wallet_item_from_web_terminal(ledger_entry_id)
        print("The response of WebTerminalApi->refund_wallet_item_from_web_terminal:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling WebTerminalApi->refund_wallet_item_from_web_terminal: %s\n" % e)

Parameters

Name Type Description Notes
ledger_entry_id str

Return type

object

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]