Skip to content

Latest commit

 

History

History
executable file
·
148 lines (90 loc) · 4.48 KB

README.md

File metadata and controls

executable file
·
148 lines (90 loc) · 4.48 KB

Card

(card)

Available Operations

  • create - Create card
  • delete - Delete a card by cardId
  • get - Get card by cardId
  • update - Update card by cardId

create

Create card

Example Usage

import wingspan
from wingspan.models import shared

s = wingspan.Wingspan()

req = shared.CardCreateRequest(
    shipping_address=shared.Address(
        address_line1='online',
        city='Stokesview',
        postal_code='17097',
        state='abnormally',
    ),
)

res = s.card.create(req)

if res.card is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
request shared.CardCreateRequest ✔️ The request object to use for the request.

Response

operations.CreateCardResponse

delete

Delete a card by cardId

Example Usage

import wingspan
from wingspan.models import operations

s = wingspan.Wingspan()


res = s.card.delete(id='program')

if res.card is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
id str ✔️ Unique identifier

Response

operations.DeleteCardResponse

get

Get card by cardId

Example Usage

import wingspan
from wingspan.models import operations

s = wingspan.Wingspan()


res = s.card.get(id='female')

if res.card_details is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
id str ✔️ Unique identifier

Response

operations.GetCardResponse

update

Update card by cardId

Example Usage

import wingspan
from wingspan.models import operations, shared

s = wingspan.Wingspan()


res = s.card.update(id='Van', card_update_request=shared.CardUpdateRequest(
    status=shared.PropertiesCardUpdateRequest.ACTIVE,
))

if res.card is not None:
    # handle response
    pass

Parameters

Parameter Type Required Description
id str ✔️ Unique identifier
card_update_request Optional[shared.CardUpdateRequest] N/A

Response

operations.UpdateCardResponse