Home > @infiniteobjects/shopify-data-manager > AdminTypes > GiftCard
Represents an issued gift card.
Signature:
export interface GiftCard extends Node
Extends: Node
Property | Modifiers | Type | Description |
---|---|---|---|
balance | MoneyV2 | The gift card’s remaining balance. | |
createdAt | Scalars[‘DateTime’][‘output’] | The date and time at which the gift card was created. | |
customer? | Maybe<Customer> | (Optional) The customer who will receive the gift card. | |
disabledAt? | Maybe<Scalars[‘DateTime’][‘output’]> | (Optional) The date and time at which the gift card was disabled. | |
enabled | Scalars[‘Boolean’][‘output’] | Whether the gift card is enabled. | |
expiresOn? | Maybe<Scalars[‘Date’][‘output’]> | (Optional) The date at which the gift card will expire. | |
id | Scalars[‘ID’][‘output’] | A globally-unique ID. | |
initialValue | MoneyV2 | The initial value of the gift card. | |
lastCharacters | Scalars[‘String’][‘output’] | The final four characters of the gift card code. | |
maskedCode | Scalars[‘String’][‘output’] | The gift card code. Everything but the final four characters is masked. | |
note? | Maybe<Scalars[‘String’][‘output’]> | (Optional) The note associated with the gift card, which isn’t visible to the customer. | |
order? | Maybe<Order> | (Optional) The order associated with the gift card. This value is null if the gift card was issued manually. |