public static class Storefront.AppliedGiftCard extends <any> implements Storefront.Node
| Constructor and Description |
|---|
AppliedGiftCard() |
AppliedGiftCard(ID id) |
AppliedGiftCard(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
getAmountUsed()
Deprecated.
Use `amountUsedV2` instead
|
Storefront.MoneyV2 |
getAmountUsedV2()
The amount that was taken from the gift card by applying it.
|
java.math.BigDecimal |
getBalance()
Deprecated.
Use `balanceV2` instead
|
Storefront.MoneyV2 |
getBalanceV2()
The amount left on the gift card.
|
java.lang.String |
getGraphQlTypeName() |
ID |
getId()
Globally unique identifier.
|
java.lang.String |
getLastCharacters()
The last characters of the gift card.
|
Storefront.MoneyV2 |
getPresentmentAmountUsed()
The amount that was applied to the checkout in its currency.
|
Storefront.AppliedGiftCard |
setAmountUsed(java.math.BigDecimal arg) |
Storefront.AppliedGiftCard |
setAmountUsedV2(Storefront.MoneyV2 arg) |
Storefront.AppliedGiftCard |
setBalance(java.math.BigDecimal arg) |
Storefront.AppliedGiftCard |
setBalanceV2(Storefront.MoneyV2 arg) |
Storefront.AppliedGiftCard |
setLastCharacters(java.lang.String arg) |
Storefront.AppliedGiftCard |
setPresentmentAmountUsed(Storefront.MoneyV2 arg) |
boolean |
unwrapsToObject(java.lang.String key) |
public AppliedGiftCard()
public AppliedGiftCard(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic AppliedGiftCard(ID id)
public java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.Nodepublic java.math.BigDecimal getAmountUsed()
public Storefront.AppliedGiftCard setAmountUsed(java.math.BigDecimal arg)
public Storefront.MoneyV2 getAmountUsedV2()
public Storefront.AppliedGiftCard setAmountUsedV2(Storefront.MoneyV2 arg)
public java.math.BigDecimal getBalance()
public Storefront.AppliedGiftCard setBalance(java.math.BigDecimal arg)
public Storefront.MoneyV2 getBalanceV2()
public Storefront.AppliedGiftCard setBalanceV2(Storefront.MoneyV2 arg)
public ID getId()
getId in interface Storefront.Nodepublic java.lang.String getLastCharacters()
public Storefront.AppliedGiftCard setLastCharacters(java.lang.String arg)
public Storefront.MoneyV2 getPresentmentAmountUsed()
public Storefront.AppliedGiftCard setPresentmentAmountUsed(Storefront.MoneyV2 arg)
public boolean unwrapsToObject(java.lang.String key)