Class SubmitPaymentSessionRequest
- java.lang.Object
-
- com.checkout.handlepaymentsandpayouts.flow.paymentsessionssubmit.requests.SubmitPaymentSessionRequest
-
public final class SubmitPaymentSessionRequest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubmitPaymentSessionRequest.SubmitPaymentSessionRequestBuilder
-
Constructor Summary
Constructors Constructor Description SubmitPaymentSessionRequest()SubmitPaymentSessionRequest(java.lang.String sessionData, java.lang.Long amount, java.lang.String reference, java.util.List<Item> items, Threeds threeds, java.lang.String ipAddress)Creates a newSubmitPaymentSessionRequestinstance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubmitPaymentSessionRequest.SubmitPaymentSessionRequestBuilderbuilder()booleanequals(java.lang.Object o)java.lang.LonggetAmount()The payment amount.java.lang.StringgetIpAddress()The Customer's IP address.java.util.List<Item>getItems()The line items in the order.java.lang.StringgetReference()A reference you can use to identify the payment.java.lang.StringgetSessionData()A unique token representing the additional customer data captured by Flow, as received from the handleSubmit callback.ThreedsgetThreeds()Information required for 3D Secure authentication payments.inthashCode()voidsetAmount(java.lang.Long amount)The payment amount.voidsetIpAddress(java.lang.String ipAddress)The Customer's IP address.voidsetItems(java.util.List<Item> items)The line items in the order.voidsetReference(java.lang.String reference)A reference you can use to identify the payment.voidsetSessionData(java.lang.String sessionData)A unique token representing the additional customer data captured by Flow, as received from the handleSubmit callback.voidsetThreeds(Threeds threeds)Information required for 3D Secure authentication payments.java.lang.StringtoString()
-
-
-
Constructor Detail
-
SubmitPaymentSessionRequest
public SubmitPaymentSessionRequest()
-
SubmitPaymentSessionRequest
public SubmitPaymentSessionRequest(java.lang.String sessionData, java.lang.Long amount, java.lang.String reference, java.util.List<Item> items, Threeds threeds, java.lang.String ipAddress)Creates a newSubmitPaymentSessionRequestinstance.- Parameters:
sessionData- A unique token representing the additional customer data captured by Flow, as received from the handleSubmit callback. Do not log or store this value.amount- The payment amount. Provide a value of 0 to perform a card verification. The amount must be provided in the minor currency unit.reference- A reference you can use to identify the payment. For example, an order number. For Amex payments, this must be at most 30 characters. For Benefit payments, the reference must be a unique alphanumeric value. For iDEAL payments, the reference is required and must be an alphanumeric value with a 35-character limit.items- The line items in the order.threeds- Information required for 3D Secure authentication payments.ipAddress- The Customer's IP address. Only IPv4 and IPv6 addresses are accepted.
-
-
Method Detail
-
builder
public static SubmitPaymentSessionRequest.SubmitPaymentSessionRequestBuilder builder()
-
getSessionData
public java.lang.String getSessionData()
A unique token representing the additional customer data captured by Flow, as received from the handleSubmit callback. Do not log or store this value.
-
getAmount
public java.lang.Long getAmount()
The payment amount. Provide a value of 0 to perform a card verification. The amount must be provided in the minor currency unit.
-
getReference
public java.lang.String getReference()
A reference you can use to identify the payment. For example, an order number. For Amex payments, this must be at most 30 characters. For Benefit payments, the reference must be a unique alphanumeric value. For iDEAL payments, the reference is required and must be an alphanumeric value with a 35-character limit.
-
getItems
public java.util.List<Item> getItems()
The line items in the order.
-
getThreeds
public Threeds getThreeds()
Information required for 3D Secure authentication payments.
-
getIpAddress
public java.lang.String getIpAddress()
The Customer's IP address. Only IPv4 and IPv6 addresses are accepted.
-
setSessionData
public void setSessionData(java.lang.String sessionData)
A unique token representing the additional customer data captured by Flow, as received from the handleSubmit callback. Do not log or store this value.
-
setAmount
public void setAmount(java.lang.Long amount)
The payment amount. Provide a value of 0 to perform a card verification. The amount must be provided in the minor currency unit.
-
setReference
public void setReference(java.lang.String reference)
A reference you can use to identify the payment. For example, an order number. For Amex payments, this must be at most 30 characters. For Benefit payments, the reference must be a unique alphanumeric value. For iDEAL payments, the reference is required and must be an alphanumeric value with a 35-character limit.
-
setItems
public void setItems(java.util.List<Item> items)
The line items in the order.
-
setThreeds
public void setThreeds(Threeds threeds)
Information required for 3D Secure authentication payments.
-
setIpAddress
public void setIpAddress(java.lang.String ipAddress)
The Customer's IP address. Only IPv4 and IPv6 addresses are accepted.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-