Class MyPaymentImpl
- All Implemented Interfaces:
Customizable<MyPayment>
,DomainResource<MyPayment>
,Identifiable<MyPayment>
,MyPayment
,Versioned<MyPayment>
,io.vrap.rmf.base.client.ModelBase
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Money value the Payment intends to receive from the customer.Anonymous session associated with the Payment.Custom Fields defined for the Payment.Reference to a Customer associated with the Payment.getId()
Unique identifier of the Payment.Information regarding the payment interface (for example, a PSP), and the specific payment method used.Financial transactions of the Payment.Current version of the Payment.int
hashCode()
void
setAmountPlanned
(CentPrecisionMoney amountPlanned) Money value the Payment intends to receive from the customer.void
setAnonymousId
(String anonymousId) Anonymous session associated with the Payment.void
setCustom
(CustomFields custom) Custom Fields defined for the Payment.void
setCustomer
(CustomerReference customer) Reference to a Customer associated with the Payment.void
Unique identifier of the Payment.void
setPaymentMethodInfo
(PaymentMethodInfo paymentMethodInfo) Information regarding the payment interface (for example, a PSP), and the specific payment method used.void
setTransactions
(Transaction... transactions) Financial transactions of the Payment.void
setTransactions
(List<Transaction> transactions) Financial transactions of the Payment.void
setVersion
(Long version) Current version of the Payment.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.Customizable
unwrapCustomizable
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.me.MyPayment
withMyPayment
-
Constructor Details
-
MyPaymentImpl
public MyPaymentImpl()create empty instance
-
-
Method Details
-
getId
Unique identifier of the Payment.
-
getVersion
Current version of the Payment.
- Specified by:
getVersion
in interfaceDomainResource<MyPayment>
- Specified by:
getVersion
in interfaceMyPayment
- Specified by:
getVersion
in interfaceVersioned<MyPayment>
- Returns:
- version
-
getCustomer
Reference to a Customer associated with the Payment. Set automatically with a password flow token. Either
customer
oranonymousId
is present.- Specified by:
getCustomer
in interfaceMyPayment
- Returns:
- customer
-
getAnonymousId
Anonymous session associated with the Payment. Set automatically with a token for an anonymous session. Either
customer
oranonymousId
is present.- Specified by:
getAnonymousId
in interfaceMyPayment
- Returns:
- anonymousId
-
getAmountPlanned
Money value the Payment intends to receive from the customer. The value typically matches the Cart or Order gross total.
- Specified by:
getAmountPlanned
in interfaceMyPayment
- Returns:
- amountPlanned
-
getPaymentMethodInfo
Information regarding the payment interface (for example, a PSP), and the specific payment method used.
- Specified by:
getPaymentMethodInfo
in interfaceMyPayment
- Returns:
- paymentMethodInfo
-
getTransactions
Financial transactions of the Payment. Each Transaction has a TransactionType and a TransactionState.
- Specified by:
getTransactions
in interfaceMyPayment
- Returns:
- transactions
-
getCustom
Custom Fields defined for the Payment.
- Specified by:
getCustom
in interfaceCustomizable<MyPayment>
- Specified by:
getCustom
in interfaceMyPayment
- Returns:
- custom
-
setId
Description copied from interface:MyPayment
Unique identifier of the Payment.
-
setVersion
Description copied from interface:MyPayment
Current version of the Payment.
- Specified by:
setVersion
in interfaceMyPayment
- Parameters:
version
- value to be set
-
setCustomer
Description copied from interface:MyPayment
Reference to a Customer associated with the Payment. Set automatically with a password flow token. Either
customer
oranonymousId
is present.- Specified by:
setCustomer
in interfaceMyPayment
- Parameters:
customer
- value to be set
-
setAnonymousId
Description copied from interface:MyPayment
Anonymous session associated with the Payment. Set automatically with a token for an anonymous session. Either
customer
oranonymousId
is present.- Specified by:
setAnonymousId
in interfaceMyPayment
- Parameters:
anonymousId
- value to be set
-
setAmountPlanned
Description copied from interface:MyPayment
Money value the Payment intends to receive from the customer. The value typically matches the Cart or Order gross total.
- Specified by:
setAmountPlanned
in interfaceMyPayment
- Parameters:
amountPlanned
- value to be set
-
setPaymentMethodInfo
Description copied from interface:MyPayment
Information regarding the payment interface (for example, a PSP), and the specific payment method used.
- Specified by:
setPaymentMethodInfo
in interfaceMyPayment
- Parameters:
paymentMethodInfo
- value to be set
-
setTransactions
Description copied from interface:MyPayment
Financial transactions of the Payment. Each Transaction has a TransactionType and a TransactionState.
- Specified by:
setTransactions
in interfaceMyPayment
- Parameters:
transactions
- values to be set
-
setTransactions
Description copied from interface:MyPayment
Financial transactions of the Payment. Each Transaction has a TransactionType and a TransactionState.
- Specified by:
setTransactions
in interfaceMyPayment
- Parameters:
transactions
- values to be set
-
setCustom
Description copied from interface:MyPayment
Custom Fields defined for the Payment.
- Specified by:
setCustom
in interfaceCustomizable<MyPayment>
- Specified by:
setCustom
in interfaceMyPayment
- Parameters:
custom
- value to be set
-
equals
-
hashCode
public int hashCode()
-