GiftCard
A gift card with value, code, expiration, and remaining value.
Type Definition
type GiftCard {
value: Float!
code: String!
expires: String!
valueLeft: Float!
}Fields
| Field | Type | Description |
|---|---|---|
| value | Float! | The value of the gift card in the order currency. |
| code | String! | The code of the gift card. |
| expires | String! | The expiration date of the gift card in RFC2822 format. |
| valueLeft | Float! | The remaining value of the gift card in the order currency. |
Relationships
GiftCard is used as a field within the CartPaymentMethod type to represent gift card payment information associated with a cart payment method. It provides detailed information about the gift card being used for payment, including its current value, code, and expiration details.
Example
{
value
code
expires
valueLeft
}Implements
This type does not implement any interfaces.
Related Types
- Float
- String