Class PaymentInstrumentDetails
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PaymentInstrumentDetails.Builder,PaymentInstrumentDetails>
The details that are specific to a payment instrument's payment method.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final Cardcard()The details of a card payment instrument.final CnBankRedirectThe details of a China bank redirect instrument.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static PaymentInstrumentDetailsfromCard(Consumer<Card.Builder> card) Create an instance of this class withcard()initialized to the given value.static PaymentInstrumentDetailsCreate an instance of this class withcard()initialized to the given value.static PaymentInstrumentDetailsfromCnBankRedirect(Consumer<CnBankRedirect.Builder> cnBankRedirect) Create an instance of this class withcnBankRedirect()initialized to the given value.static PaymentInstrumentDetailsfromCnBankRedirect(CnBankRedirect cnBankRedirect) Create an instance of this class withcnBankRedirect()initialized to the given value.static PaymentInstrumentDetailsfromInNetBanking(Consumer<InNetBanking.Builder> inNetBanking) Create an instance of this class withinNetBanking()initialized to the given value.static PaymentInstrumentDetailsfromInNetBanking(InNetBanking inNetBanking) Create an instance of this class withinNetBanking()initialized to the given value.static PaymentInstrumentDetailsfromSepaBankAccount(Consumer<SepaBankAccount.Builder> sepaBankAccount) Create an instance of this class withsepaBankAccount()initialized to the given value.static PaymentInstrumentDetailsfromSepaBankAccount(SepaBankAccount sepaBankAccount) Create an instance of this class withsepaBankAccount()initialized to the given value.static PaymentInstrumentDetailsfromUkBacsBankAccount(Consumer<UkBacsBankAccount.Builder> ukBacsBankAccount) Create an instance of this class withukBacsBankAccount()initialized to the given value.static PaymentInstrumentDetailsfromUkBacsBankAccount(UkBacsBankAccount ukBacsBankAccount) Create an instance of this class withukBacsBankAccount()initialized to the given value.static PaymentInstrumentDetailsfromUpi(Consumer<Upi.Builder> upi) Create an instance of this class withupi()initialized to the given value.static PaymentInstrumentDetailsCreate an instance of this class withupi()initialized to the given value.static PaymentInstrumentDetailsfromUsAchBankAccount(Consumer<UsAchBankAccount.Builder> usAchBankAccount) Create an instance of this class withusAchBankAccount()initialized to the given value.static PaymentInstrumentDetailsfromUsAchBankAccount(UsAchBankAccount usAchBankAccount) Create an instance of this class withusAchBankAccount()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final InNetBankingThe details of an India net banking instrument.final SepaBankAccountThe details of a bank account that is debited over Single Euro Payments Area (SEPA) Direct Debit.static Class<? extends PaymentInstrumentDetails.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.final UkBacsBankAccountThe details of a bank account that is debited over Bacs Direct Debit.final Upiupi()The details of a Unified Payments Interface (UPI) instrument.final UsAchBankAccountThe details of a bank account that is debited over Automated Clearing House (ACH).Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
card
The details of a card payment instrument.
- Returns:
- The details of a card payment instrument.
-
usAchBankAccount
The details of a bank account that is debited over Automated Clearing House (ACH).
- Returns:
- The details of a bank account that is debited over Automated Clearing House (ACH).
-
sepaBankAccount
The details of a bank account that is debited over Single Euro Payments Area (SEPA) Direct Debit.
- Returns:
- The details of a bank account that is debited over Single Euro Payments Area (SEPA) Direct Debit.
-
ukBacsBankAccount
The details of a bank account that is debited over Bacs Direct Debit.
- Returns:
- The details of a bank account that is debited over Bacs Direct Debit.
-
inNetBanking
The details of an India net banking instrument.
- Returns:
- The details of an India net banking instrument.
-
cnBankRedirect
The details of a China bank redirect instrument.
- Returns:
- The details of a China bank redirect instrument.
-
upi
The details of a Unified Payments Interface (UPI) instrument.
- Returns:
- The details of a Unified Payments Interface (UPI) instrument.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<PaymentInstrumentDetails.Builder,PaymentInstrumentDetails> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromCard
Create an instance of this class withcard()initialized to the given value.The details of a card payment instrument.
- Parameters:
card- The details of a card payment instrument.
-
fromCard
Create an instance of this class withcard()initialized to the given value.The details of a card payment instrument.
- Parameters:
card- The details of a card payment instrument.
-
fromUsAchBankAccount
Create an instance of this class withusAchBankAccount()initialized to the given value.The details of a bank account that is debited over Automated Clearing House (ACH).
- Parameters:
usAchBankAccount- The details of a bank account that is debited over Automated Clearing House (ACH).
-
fromUsAchBankAccount
public static PaymentInstrumentDetails fromUsAchBankAccount(Consumer<UsAchBankAccount.Builder> usAchBankAccount) Create an instance of this class withusAchBankAccount()initialized to the given value.The details of a bank account that is debited over Automated Clearing House (ACH).
- Parameters:
usAchBankAccount- The details of a bank account that is debited over Automated Clearing House (ACH).
-
fromSepaBankAccount
Create an instance of this class withsepaBankAccount()initialized to the given value.The details of a bank account that is debited over Single Euro Payments Area (SEPA) Direct Debit.
- Parameters:
sepaBankAccount- The details of a bank account that is debited over Single Euro Payments Area (SEPA) Direct Debit.
-
fromSepaBankAccount
public static PaymentInstrumentDetails fromSepaBankAccount(Consumer<SepaBankAccount.Builder> sepaBankAccount) Create an instance of this class withsepaBankAccount()initialized to the given value.The details of a bank account that is debited over Single Euro Payments Area (SEPA) Direct Debit.
- Parameters:
sepaBankAccount- The details of a bank account that is debited over Single Euro Payments Area (SEPA) Direct Debit.
-
fromUkBacsBankAccount
Create an instance of this class withukBacsBankAccount()initialized to the given value.The details of a bank account that is debited over Bacs Direct Debit.
- Parameters:
ukBacsBankAccount- The details of a bank account that is debited over Bacs Direct Debit.
-
fromUkBacsBankAccount
public static PaymentInstrumentDetails fromUkBacsBankAccount(Consumer<UkBacsBankAccount.Builder> ukBacsBankAccount) Create an instance of this class withukBacsBankAccount()initialized to the given value.The details of a bank account that is debited over Bacs Direct Debit.
- Parameters:
ukBacsBankAccount- The details of a bank account that is debited over Bacs Direct Debit.
-
fromInNetBanking
Create an instance of this class withinNetBanking()initialized to the given value.The details of an India net banking instrument.
- Parameters:
inNetBanking- The details of an India net banking instrument.
-
fromInNetBanking
public static PaymentInstrumentDetails fromInNetBanking(Consumer<InNetBanking.Builder> inNetBanking) Create an instance of this class withinNetBanking()initialized to the given value.The details of an India net banking instrument.
- Parameters:
inNetBanking- The details of an India net banking instrument.
-
fromCnBankRedirect
Create an instance of this class withcnBankRedirect()initialized to the given value.The details of a China bank redirect instrument.
- Parameters:
cnBankRedirect- The details of a China bank redirect instrument.
-
fromCnBankRedirect
public static PaymentInstrumentDetails fromCnBankRedirect(Consumer<CnBankRedirect.Builder> cnBankRedirect) Create an instance of this class withcnBankRedirect()initialized to the given value.The details of a China bank redirect instrument.
- Parameters:
cnBankRedirect- The details of a China bank redirect instrument.
-
fromUpi
Create an instance of this class withupi()initialized to the given value.The details of a Unified Payments Interface (UPI) instrument.
- Parameters:
upi- The details of a Unified Payments Interface (UPI) instrument.
-
fromUpi
Create an instance of this class withupi()initialized to the given value.The details of a Unified Payments Interface (UPI) instrument.
- Parameters:
upi- The details of a Unified Payments Interface (UPI) instrument.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will bePaymentInstrumentDetails.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will bePaymentInstrumentDetails.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-