pub struct GiftCardsApi { /* private fields */ }

Implementations

Instantiates a new GiftCardsApi

Lists all gift cards.

You can specify optional filters to retrieve a subset of the gift cards. Results are sorted by created_at in ascending order.

Creates a digital gift card or registers a physical (plastic) gift card.

After the gift card is created, you must call CreateGiftCardActivity to activate the card with an initial balance before it can be used for payment.

Retrieves a gift card using the gift card account number (GAN).

Retrieves a gift card using a secure payment token that represents the gift card.

Links a customer to a gift card, which is also referred to as adding a card on file.

gift_card_id: The ID of the gift card to be linked.

Unlinks a customer from a gift card, which is also referred to as removing a card on file.

gift_card_id: The ID of the gift card to be linked.

Retrieves a gift card using the gift card ID.

id: The ID of the gift card to retrieve.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more