Package com.commercetools.api.models.me
Interface MyPaymentDraft
- All Superinterfaces:
CustomizableDraft<MyPaymentDraft>,Draft<MyPaymentDraft>,MyPaymentDraftMixin
public interface MyPaymentDraft
extends MyPaymentDraftMixin, 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 MyPaymentDraftBuilderbuilder()builder factory method for MyPaymentDraftstatic MyPaymentDraftBuilderbuilder(MyPaymentDraft template) create builder for MyPaymentDraft instancecopyDeep()static MyPaymentDraftdeepCopy(MyPaymentDraft template) factory method to create a deep copy of MyPaymentDraft@NotNull @Valid MoneyMoney value the Payment intends to receive from the customer.@Valid CustomFieldsDraftCustom Fields for the Payment.@Valid PaymentMethodInfoDraftInformation regarding the payment interface (for example, a PSP), and the specific payment method used.@Valid MyTransactionDraftstatic MyPaymentDraftof()factory methodstatic MyPaymentDraftof(MyPaymentDraft template) factory method to create a shallow copy MyPaymentDraftvoidsetAmountPlanned(Money amountPlanned) Money value the Payment intends to receive from the customer.voidsetCustom(CustomFieldsDraft custom) Custom Fields for the Payment.voidsetPaymentMethodInfo(PaymentMethodInfoDraft paymentMethodInfo) Information regarding the payment interface (for example, a PSP), and the specific payment method used.voidsetTransaction(MyTransactionDraft transaction) static com.fasterxml.jackson.core.type.TypeReference<MyPaymentDraft>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyPaymentDraft(Function<MyPaymentDraft, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.CustomizableDraft
unwrapCustomizableDraftMethods inherited from interface com.commercetools.api.models.me.MyPaymentDraftMixin
setPaymentMethodInfo
-
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:
getCustomin interfaceCustomizableDraft<MyPaymentDraft>- Returns:
- custom
-
getTransaction
Financial transactions of the TransactionTypes
AuthorizationorCharge.- 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.
- Specified by:
setPaymentMethodInfoin interfaceMyPaymentDraftMixin- Parameters:
paymentMethodInfo- value to be set
-
setCustom
Custom Fields for the Payment.
- Specified by:
setCustomin interfaceCustomizableDraft<MyPaymentDraft>- Parameters:
custom- value to be set
-
setTransaction
Financial transactions of the TransactionTypes
AuthorizationorCharge.- 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
-
copyDeep
MyPaymentDraft copyDeep() -
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
-