public final class CheckoutParameters
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CheckoutParameters.Builder
Builder class for constructing
CheckoutParameters objects. |
Modifier and Type | Method and Description |
---|---|
CheckoutParameters.Builder |
buildUpon()
Creates a new CheckoutParameters
CheckoutParameters.Builder , with attributes copied from this instance. |
boolean |
equals(java.lang.Object object) |
java.util.Set<AdditionalPaymentType> |
getAdditionalPaymentTypes() |
boolean |
getAllowSplitTender() |
boolean |
getAlwaysRequireSignature()
Deprecated.
|
Money |
getAmountMoney() |
boolean |
getCollectSignature()
Whether a signature should be collected as part of this transaction.
|
boolean |
getDelayCapture() |
java.lang.String |
getNote() |
boolean |
getSkipReceipt() |
TipSettings |
getTipSettings() |
boolean |
getUsedDeprecatedAlwaysRequireSignature() |
int |
hashCode() |
static CheckoutParameters.Builder |
newBuilder(Money amountMoney)
Creates a new CheckoutParameters builder with default values.
|
java.lang.String |
toString() |
@NonNull public static CheckoutParameters.Builder newBuilder(@NonNull Money amountMoney)
amountMoney
- The amount of money to charge.@NonNull public Money getAmountMoney()
@Nullable public java.lang.String getNote()
CheckoutParameters.Builder.note(String)
@NonNull public java.util.Set<AdditionalPaymentType> getAdditionalPaymentTypes()
public boolean getAllowSplitTender()
@Nullable public TipSettings getTipSettings()
public boolean getCollectSignature()
true
if signatures are to be collected.@Deprecated public boolean getAlwaysRequireSignature()
CheckoutParameters.Builder.collectSignature(boolean)
and getCollectSignature()
insteadCheckoutParameters.Builder.alwaysRequireSignature(boolean)
is deprecated and ignored,
this method will instead return the value of CheckoutParameters.Builder.collectSignature(boolean)
instead, which reflects the signature-collecting behavior that will actually happen with
these CheckoutParameters.public boolean getSkipReceipt()
public boolean getUsedDeprecatedAlwaysRequireSignature()
public boolean getDelayCapture()
@NonNull public CheckoutParameters.Builder buildUpon()
CheckoutParameters.Builder
, with attributes copied from this instance.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object