Skip to content

Latest commit

 

History

History
363 lines (244 loc) · 9.5 KB

File metadata and controls

363 lines (244 loc) · 9.5 KB

wallet.TicketApi

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

Method HTTP request Description
archive_ticket DELETE /v2/ticket/{id} Archive ticket
create_ticket POST /v2/ticket Create ticket
fetch_ticket GET /v2/ticket/{id} Fetch ticket
restore_ticket PATCH /v2/ticket/{id} Restore ticket
update_ticket PUT /v2/ticket/{id} Update ticket

archive_ticket

Ticket archive_ticket(id)

Archive ticket

Example

import wallet
from wallet.models.ticket import Ticket
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.TicketApi(api_client)
    id = None # object | 

    try:
        # Archive ticket
        api_response = api_instance.archive_ticket(id)
        print("The response of TicketApi->archive_ticket:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TicketApi->archive_ticket: %s\n" % e)

Parameters

Name Type Description Notes
id object

Return type

Ticket

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]

create_ticket

Ticket create_ticket(wt_ticket_create_params)

Create ticket

Example

import wallet
from wallet.models.ticket import Ticket
from wallet.models.wt_ticket_create_params import WTTicketCreateParams
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.TicketApi(api_client)
    wt_ticket_create_params = wallet.WTTicketCreateParams() # WTTicketCreateParams | 

    try:
        # Create ticket
        api_response = api_instance.create_ticket(wt_ticket_create_params)
        print("The response of TicketApi->create_ticket:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TicketApi->create_ticket: %s\n" % e)

Parameters

Name Type Description Notes
wt_ticket_create_params WTTicketCreateParams

Return type

Ticket

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]

fetch_ticket

WTTicket fetch_ticket(id)

Fetch ticket

Example

import wallet
from wallet.models.wt_ticket import WTTicket
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.TicketApi(api_client)
    id = None # object | 

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

Parameters

Name Type Description Notes
id object

Return type

WTTicket

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]

restore_ticket

Ticket restore_ticket(id)

Restore ticket

Example

import wallet
from wallet.models.ticket import Ticket
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.TicketApi(api_client)
    id = None # object | 

    try:
        # Restore ticket
        api_response = api_instance.restore_ticket(id)
        print("The response of TicketApi->restore_ticket:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TicketApi->restore_ticket: %s\n" % e)

Parameters

Name Type Description Notes
id object

Return type

Ticket

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]

update_ticket

Ticket update_ticket(id, wt_ticket_update_params)

Update ticket

Example

import wallet
from wallet.models.ticket import Ticket
from wallet.models.wt_ticket_update_params import WTTicketUpdateParams
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.TicketApi(api_client)
    id = None # object | 
    wt_ticket_update_params = wallet.WTTicketUpdateParams() # WTTicketUpdateParams | 

    try:
        # Update ticket
        api_response = api_instance.update_ticket(id, wt_ticket_update_params)
        print("The response of TicketApi->update_ticket:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TicketApi->update_ticket: %s\n" % e)

Parameters

Name Type Description Notes
id object
wt_ticket_update_params WTTicketUpdateParams

Return type

Ticket

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]