Package com.commercetools.api.models.me
Interface MyPaymentDraft
- All Superinterfaces:
CustomizableDraft<MyPaymentDraft>
,Draft<MyPaymentDraft>
MyPaymentDraft
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
MyPaymentDraft myPaymentDraft = MyPaymentDraft.builder()
.amountPlanned(amountPlannedBuilder -> amountPlannedBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic MyPaymentDraftBuilder
builder()
builder factory method for MyPaymentDraftstatic MyPaymentDraftBuilder
builder
(MyPaymentDraft template) create builder for MyPaymentDraft instancestatic MyPaymentDraft
deepCopy
(MyPaymentDraft template) factory method to create a deep copy of MyPaymentDraft@NotNull @Valid Money
Money value the Payment intends to receive from the customer.@Valid CustomFieldsDraft
Custom Fields for the Payment.@Valid PaymentMethodInfo
Information regarding the payment interface (for example, a PSP), and the specific payment method used.@Valid MyTransactionDraft
Financial transactions of the TransactionTypesAuthorization
orCharge
.static MyPaymentDraft
of()
factory methodstatic MyPaymentDraft
of
(MyPaymentDraft template) factory method to create a shallow copy MyPaymentDraftvoid
setAmountPlanned
(Money amountPlanned) Money value the Payment intends to receive from the customer.void
setCustom
(CustomFieldsDraft custom) Custom Fields for the Payment.void
setPaymentMethodInfo
(PaymentMethodInfo paymentMethodInfo) Information regarding the payment interface (for example, a PSP), and the specific payment method used.void
setTransaction
(MyTransactionDraft transaction) Financial transactions of the TransactionTypesAuthorization
orCharge
.static com.fasterxml.jackson.core.type.TypeReference<MyPaymentDraft>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withMyPaymentDraft
(Function<MyPaymentDraft, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraft
-
Method Details
-
getAmountPlanned
Money value the Payment intends to receive from the customer. The value usually matches the Cart or Order gross total.
- Returns:
- amountPlanned
-
getPaymentMethodInfo
Information regarding the payment interface (for example, a PSP), and the specific payment method used.
- Returns:
- paymentMethodInfo
-
getCustom
Custom Fields for the Payment.
- Specified by:
getCustom
in interfaceCustomizableDraft<MyPaymentDraft>
- Returns:
- custom
-
getTransaction
Financial transactions of the TransactionTypes
Authorization
orCharge
.- Returns:
- transaction
-
setAmountPlanned
Money value the Payment intends to receive from the customer. The value usually matches the Cart or Order gross total.
- Parameters:
amountPlanned
- value to be set
-
setPaymentMethodInfo
Information regarding the payment interface (for example, a PSP), and the specific payment method used.
- Parameters:
paymentMethodInfo
- value to be set
-
setCustom
Custom Fields for the Payment.
- Specified by:
setCustom
in interfaceCustomizableDraft<MyPaymentDraft>
- Parameters:
custom
- value to be set
-
setTransaction
Financial transactions of the TransactionTypes
Authorization
orCharge
.- Parameters:
transaction
- value to be set
-
of
factory method- Returns:
- instance of MyPaymentDraft
-
of
factory method to create a shallow copy MyPaymentDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of MyPaymentDraft- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyPaymentDraft- Returns:
- builder
-
builder
create builder for MyPaymentDraft instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withMyPaymentDraft
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-