Package io.moov.sdk.models.components
Class TransferDestination
- java.lang.Object
-
- io.moov.sdk.models.components.TransferDestination
-
public class TransferDestination extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransferDestination.Builder
-
Constructor Summary
Constructors Constructor Description TransferDestination(java.lang.String paymentMethodID, PaymentMethodType paymentMethodType, TransferAccount account)TransferDestination(java.lang.String paymentMethodID, PaymentMethodType paymentMethodType, TransferAccount account, java.util.Optional<? extends PaymentMethodsBankAccount> bankAccount, java.util.Optional<? extends PaymentMethodsWallet> wallet, java.util.Optional<? extends PaymentMethodsCard> card, java.util.Optional<? extends ACHTransactionDetails> achDetails, java.util.Optional<? extends ApplePayResponse> applePay, java.util.Optional<? extends CardTransactionDetails> cardDetails, java.util.Optional<? extends RTPTransactionDetails> rtpDetails)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TransferAccountaccount()java.util.Optional<ACHTransactionDetails>achDetails()ACH specific details about the transaction.java.util.Optional<ApplePayResponse>applePay()Describes an Apple Pay token on a Moov account.java.util.Optional<PaymentMethodsBankAccount>bankAccount()A bank account as contained within a payment method.static TransferDestination.Builderbuilder()java.util.Optional<PaymentMethodsCard>card()A card as contained within a payment method.java.util.Optional<CardTransactionDetails>cardDetails()Card-specific details about the transaction.booleanequals(java.lang.Object o)inthashCode()java.lang.StringpaymentMethodID()PaymentMethodTypepaymentMethodType()The payment method type that represents a payment rail and directionalityjava.util.Optional<RTPTransactionDetails>rtpDetails()RTP specific details about the transaction.java.lang.StringtoString()java.util.Optional<PaymentMethodsWallet>wallet()TransferDestinationwithAccount(TransferAccount account)TransferDestinationwithAchDetails(ACHTransactionDetails achDetails)ACH specific details about the transaction.TransferDestinationwithAchDetails(java.util.Optional<? extends ACHTransactionDetails> achDetails)ACH specific details about the transaction.TransferDestinationwithApplePay(ApplePayResponse applePay)Describes an Apple Pay token on a Moov account.TransferDestinationwithApplePay(java.util.Optional<? extends ApplePayResponse> applePay)Describes an Apple Pay token on a Moov account.TransferDestinationwithBankAccount(PaymentMethodsBankAccount bankAccount)A bank account as contained within a payment method.TransferDestinationwithBankAccount(java.util.Optional<? extends PaymentMethodsBankAccount> bankAccount)A bank account as contained within a payment method.TransferDestinationwithCard(PaymentMethodsCard card)A card as contained within a payment method.TransferDestinationwithCard(java.util.Optional<? extends PaymentMethodsCard> card)A card as contained within a payment method.TransferDestinationwithCardDetails(CardTransactionDetails cardDetails)Card-specific details about the transaction.TransferDestinationwithCardDetails(java.util.Optional<? extends CardTransactionDetails> cardDetails)Card-specific details about the transaction.TransferDestinationwithPaymentMethodID(java.lang.String paymentMethodID)TransferDestinationwithPaymentMethodType(PaymentMethodType paymentMethodType)The payment method type that represents a payment rail and directionalityTransferDestinationwithRtpDetails(RTPTransactionDetails rtpDetails)RTP specific details about the transaction.TransferDestinationwithRtpDetails(java.util.Optional<? extends RTPTransactionDetails> rtpDetails)RTP specific details about the transaction.TransferDestinationwithWallet(PaymentMethodsWallet wallet)TransferDestinationwithWallet(java.util.Optional<? extends PaymentMethodsWallet> wallet)
-
-
-
Constructor Detail
-
TransferDestination
public TransferDestination(java.lang.String paymentMethodID, PaymentMethodType paymentMethodType, TransferAccount account, java.util.Optional<? extends PaymentMethodsBankAccount> bankAccount, java.util.Optional<? extends PaymentMethodsWallet> wallet, java.util.Optional<? extends PaymentMethodsCard> card, java.util.Optional<? extends ACHTransactionDetails> achDetails, java.util.Optional<? extends ApplePayResponse> applePay, java.util.Optional<? extends CardTransactionDetails> cardDetails, java.util.Optional<? extends RTPTransactionDetails> rtpDetails)
-
TransferDestination
public TransferDestination(java.lang.String paymentMethodID, PaymentMethodType paymentMethodType, TransferAccount account)
-
-
Method Detail
-
paymentMethodID
public java.lang.String paymentMethodID()
-
paymentMethodType
public PaymentMethodType paymentMethodType()
The payment method type that represents a payment rail and directionality
-
account
public TransferAccount account()
-
bankAccount
public java.util.Optional<PaymentMethodsBankAccount> bankAccount()
A bank account as contained within a payment method.
-
wallet
public java.util.Optional<PaymentMethodsWallet> wallet()
-
card
public java.util.Optional<PaymentMethodsCard> card()
A card as contained within a payment method.
-
achDetails
public java.util.Optional<ACHTransactionDetails> achDetails()
ACH specific details about the transaction.
-
applePay
public java.util.Optional<ApplePayResponse> applePay()
Describes an Apple Pay token on a Moov account.
-
cardDetails
public java.util.Optional<CardTransactionDetails> cardDetails()
Card-specific details about the transaction.
-
rtpDetails
public java.util.Optional<RTPTransactionDetails> rtpDetails()
RTP specific details about the transaction.
-
builder
public static TransferDestination.Builder builder()
-
withPaymentMethodID
public TransferDestination withPaymentMethodID(java.lang.String paymentMethodID)
-
withPaymentMethodType
public TransferDestination withPaymentMethodType(PaymentMethodType paymentMethodType)
The payment method type that represents a payment rail and directionality
-
withAccount
public TransferDestination withAccount(TransferAccount account)
-
withBankAccount
public TransferDestination withBankAccount(PaymentMethodsBankAccount bankAccount)
A bank account as contained within a payment method.
-
withBankAccount
public TransferDestination withBankAccount(java.util.Optional<? extends PaymentMethodsBankAccount> bankAccount)
A bank account as contained within a payment method.
-
withWallet
public TransferDestination withWallet(PaymentMethodsWallet wallet)
-
withWallet
public TransferDestination withWallet(java.util.Optional<? extends PaymentMethodsWallet> wallet)
-
withCard
public TransferDestination withCard(PaymentMethodsCard card)
A card as contained within a payment method.
-
withCard
public TransferDestination withCard(java.util.Optional<? extends PaymentMethodsCard> card)
A card as contained within a payment method.
-
withAchDetails
public TransferDestination withAchDetails(ACHTransactionDetails achDetails)
ACH specific details about the transaction.
-
withAchDetails
public TransferDestination withAchDetails(java.util.Optional<? extends ACHTransactionDetails> achDetails)
ACH specific details about the transaction.
-
withApplePay
public TransferDestination withApplePay(ApplePayResponse applePay)
Describes an Apple Pay token on a Moov account.
-
withApplePay
public TransferDestination withApplePay(java.util.Optional<? extends ApplePayResponse> applePay)
Describes an Apple Pay token on a Moov account.
-
withCardDetails
public TransferDestination withCardDetails(CardTransactionDetails cardDetails)
Card-specific details about the transaction.
-
withCardDetails
public TransferDestination withCardDetails(java.util.Optional<? extends CardTransactionDetails> cardDetails)
Card-specific details about the transaction.
-
withRtpDetails
public TransferDestination withRtpDetails(RTPTransactionDetails rtpDetails)
RTP specific details about the transaction.
-
withRtpDetails
public TransferDestination withRtpDetails(java.util.Optional<? extends RTPTransactionDetails> rtpDetails)
RTP specific details about the transaction.
-
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
-
-