public static class Storefront.Payment extends <any> implements Storefront.Node
| Constructor and Description |
|---|
Payment() |
Payment(ID id) |
Payment(JsonObject fields) |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
getAmount()
Deprecated.
Use `amountV2` instead
|
Storefront.MoneyV2 |
getAmountV2()
The amount of the payment.
|
Storefront.MailingAddress |
getBillingAddress()
The billing address for the payment.
|
Storefront.Checkout |
getCheckout()
The checkout to which the payment belongs.
|
Storefront.CreditCard |
getCreditCard()
The credit card used for the payment in the case of direct payments.
|
java.lang.String |
getErrorMessage()
A message describing a processing error during asynchronous processing.
|
java.lang.String |
getGraphQlTypeName() |
ID |
getId()
Globally unique identifier.
|
java.lang.String |
getIdempotencyKey()
A client-side generated token to identify a payment and perform idempotent operations.
|
java.lang.String |
getNextActionUrl()
The URL where the customer needs to be redirected so they can complete the 3D Secure payment flow.
|
java.lang.Boolean |
getReady()
Whether or not the payment is still processing asynchronously.
|
java.lang.Boolean |
getTest()
A flag to indicate if the payment is to be done in test mode for gateways that support it.
|
Storefront.Transaction |
getTransaction()
The actual transaction recorded by Shopify after having processed the payment with the gateway.
|
Storefront.Payment |
setAmount(java.math.BigDecimal arg) |
Storefront.Payment |
setAmountV2(Storefront.MoneyV2 arg) |
Storefront.Payment |
setBillingAddress(Storefront.MailingAddress arg) |
Storefront.Payment |
setCheckout(Storefront.Checkout arg) |
Storefront.Payment |
setCreditCard(Storefront.CreditCard arg) |
Storefront.Payment |
setErrorMessage(java.lang.String arg) |
Storefront.Payment |
setIdempotencyKey(java.lang.String arg) |
Storefront.Payment |
setNextActionUrl(java.lang.String arg) |
Storefront.Payment |
setReady(java.lang.Boolean arg) |
Storefront.Payment |
setTest(java.lang.Boolean arg) |
Storefront.Payment |
setTransaction(Storefront.Transaction arg) |
boolean |
unwrapsToObject(java.lang.String key) |
public Payment()
public Payment(JsonObject fields)
throws SchemaViolationError
SchemaViolationErrorpublic Payment(ID id)
public java.lang.String getGraphQlTypeName()
getGraphQlTypeName in interface Storefront.Nodepublic java.math.BigDecimal getAmount()
public Storefront.Payment setAmount(java.math.BigDecimal arg)
public Storefront.MoneyV2 getAmountV2()
public Storefront.Payment setAmountV2(Storefront.MoneyV2 arg)
public Storefront.MailingAddress getBillingAddress()
public Storefront.Payment setBillingAddress(Storefront.MailingAddress arg)
public Storefront.Checkout getCheckout()
public Storefront.Payment setCheckout(Storefront.Checkout arg)
public Storefront.CreditCard getCreditCard()
public Storefront.Payment setCreditCard(Storefront.CreditCard arg)
public java.lang.String getErrorMessage()
public Storefront.Payment setErrorMessage(java.lang.String arg)
public ID getId()
getId in interface Storefront.Nodepublic java.lang.String getIdempotencyKey()
public Storefront.Payment setIdempotencyKey(java.lang.String arg)
public java.lang.String getNextActionUrl()
public Storefront.Payment setNextActionUrl(java.lang.String arg)
public java.lang.Boolean getReady()
public Storefront.Payment setReady(java.lang.Boolean arg)
public java.lang.Boolean getTest()
public Storefront.Payment setTest(java.lang.Boolean arg)
public Storefront.Transaction getTransaction()
public Storefront.Payment setTransaction(Storefront.Transaction arg)
public boolean unwrapsToObject(java.lang.String key)