public final class ChargeRequest
extends java.lang.Object
ChargeRequest instance with Builder#Builder(int, CurrencyCode),
pass it to the PosClient.createChargeIntent(ChargeRequest) method to initiate
the transaction.code sample| Modifier and Type | Class and Description |
|---|---|
static class |
ChargeRequest.Builder
A flexible builder to create a
ChargeRequest. |
static class |
ChargeRequest.Error
Contains values returned by Square Point of Sale after failing to process a
transaction.
|
static class |
ChargeRequest.ErrorCode |
static class |
ChargeRequest.Success
Contains values returned by Square Point of Sale after a successfully processed
transaction.
|
static class |
ChargeRequest.TenderType
Possible forms of payment that a merchant can accept for a Point of Sale API transaction.
|
| Modifier and Type | Field and Description |
|---|---|
long |
autoReturnMillis |
CurrencyCode |
currencyCode |
java.lang.String |
customerId |
java.lang.String |
locationId |
java.lang.String |
note |
java.lang.String |
requestMetadata |
java.util.Set<ChargeRequest.TenderType> |
tenderTypes |
int |
totalAmount |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
ChargeRequest.Builder |
newBuilder()
Creates a new
ChargeRequest.Builder copied from this transaction. |
ChargeRequest.Builder |
newBuilder(int totalAmount,
CurrencyCode currencyCode)
Creates a new
ChargeRequest.Builder copied from this transaction, with a different amount. |
public final int totalAmount
Builder#Builder(int, CurrencyCode)public final CurrencyCode currencyCode
Builder#Builder(int, CurrencyCode)public final java.util.Set<ChargeRequest.TenderType> tenderTypes
public final java.lang.String note
ChargeRequest.Builder.note(String)public final long autoReturnMillis
public final java.lang.String locationId
public final java.lang.String requestMetadata
ChargeRequest.Builder.requestMetadatapublic final java.lang.String customerId
ChargeRequest.Builder.customerId(String)public ChargeRequest.Builder newBuilder()
ChargeRequest.Builder copied from this transaction.public ChargeRequest.Builder newBuilder(int totalAmount, CurrencyCode currencyCode)
ChargeRequest.Builder copied from this transaction, with a different amount.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object