@Generated(value="io.sphere.sdk.annotations.processors.generators.DraftBuilderGenerator", comments="Generated from: io.sphere.sdk.payments.PaymentDraft") public final class PaymentDraftBuilder extends Base implements CustomDraft, Builder<PaymentDraftDsl>
PaymentDraft
.Modifier and Type | Method and Description |
---|---|
PaymentDraftBuilder |
amountAuthorized(javax.money.MonetaryAmount amountAuthorized)
Deprecated.
This method will be removed with the next major SDK update.
|
PaymentDraftBuilder |
amountPaid(javax.money.MonetaryAmount amountPaid)
Deprecated.
This method will be removed with the next major SDK update.
|
PaymentDraftBuilder |
amountPlanned(javax.money.MonetaryAmount amountPlanned)
Sets the
amountPlanned property of this builder. |
PaymentDraftBuilder |
amountRefunded(javax.money.MonetaryAmount amountRefunded)
Deprecated.
This method will be removed with the next major SDK update.
|
PaymentDraftBuilder |
anonymousId(String anonymousId)
Sets the
anonymousId property of this builder. |
PaymentDraftBuilder |
authorizedUntil(ZonedDateTime authorizedUntil)
Deprecated.
This method will be removed with the next major SDK update.
|
PaymentDraftDsl |
build()
Creates a new instance of
PaymentDraftDsl with the values of this builder. |
PaymentDraftBuilder |
custom(CustomFieldsDraft custom)
Sets the
custom property of this builder. |
PaymentDraftBuilder |
customer(Referenceable<Customer> customer)
Sets the
customer property of this builder. |
PaymentDraftBuilder |
externalId(String externalId)
Deprecated.
This method will be removed with the next major SDK update.
|
javax.money.MonetaryAmount |
getAmountAuthorized()
Deprecated.
This method will be removed with the next major SDK update.
|
javax.money.MonetaryAmount |
getAmountPaid()
Deprecated.
This method will be removed with the next major SDK update.
|
javax.money.MonetaryAmount |
getAmountPlanned() |
javax.money.MonetaryAmount |
getAmountRefunded()
Deprecated.
This method will be removed with the next major SDK update.
|
String |
getAnonymousId() |
ZonedDateTime |
getAuthorizedUntil()
Deprecated.
This method will be removed with the next major SDK update.
|
CustomFieldsDraft |
getCustom() |
Reference<Customer> |
getCustomer() |
String |
getExternalId()
Deprecated.
This method will be removed with the next major SDK update.
|
String |
getInterfaceId() |
List<CustomFieldsDraft> |
getInterfaceInteractions() |
String |
getKey() |
PaymentMethodInfo |
getPaymentMethodInfo() |
PaymentStatus |
getPaymentStatus() |
List<TransactionDraft> |
getTransactions() |
PaymentDraftBuilder |
interfaceId(String interfaceId)
Sets the
interfaceId property of this builder. |
PaymentDraftBuilder |
interfaceInteractions(List<CustomFieldsDraft> interfaceInteractions)
Sets the
interfaceInteractions property of this builder. |
PaymentDraftBuilder |
key(String key)
Sets the
key property of this builder. |
static PaymentDraftBuilder |
of(javax.money.MonetaryAmount amountPlanned)
Creates a new object initialized with the given values.
|
static PaymentDraftBuilder |
of(PaymentDraft template)
Creates a new object initialized with the fields of the template parameter.
|
PaymentDraftBuilder |
paymentMethodInfo(PaymentMethodInfo paymentMethodInfo)
Sets the
paymentMethodInfo property of this builder. |
PaymentDraftBuilder |
paymentStatus(PaymentStatus paymentStatus)
Sets the
paymentStatus property of this builder. |
PaymentDraftBuilder |
plusInterfaceInteractions(CustomFieldsDraft interfaceInteractions)
Adds
interfaceInteractions parameter to the interfaceInteractions list property of this builder. |
PaymentDraftBuilder |
plusInterfaceInteractions(List<CustomFieldsDraft> interfaceInteractions)
Concatenate
interfaceInteractions parameter to the interfaceInteractions list property of this builder. |
PaymentDraftBuilder |
plusTransactions(List<TransactionDraft> transactions)
Concatenate
transactions parameter to the transactions list property of this builder. |
PaymentDraftBuilder |
plusTransactions(TransactionDraft transactions)
Adds
transactions parameter to the transactions list property of this builder. |
PaymentDraftBuilder |
transactions(List<TransactionDraft> transactions)
Sets the
transactions property of this builder. |
@Deprecated public PaymentDraftBuilder amountAuthorized(@Nullable javax.money.MonetaryAmount amountAuthorized)
amountAuthorized
property of this builder.amountAuthorized
- the value for PaymentDraft.getAmountAuthorized()
@Deprecated public PaymentDraftBuilder amountPaid(@Nullable javax.money.MonetaryAmount amountPaid)
amountPaid
property of this builder.amountPaid
- the value for PaymentDraft.getAmountPaid()
public PaymentDraftBuilder amountPlanned(javax.money.MonetaryAmount amountPlanned)
amountPlanned
property of this builder.amountPlanned
- the value for PaymentDraft.getAmountPlanned()
@Deprecated public PaymentDraftBuilder amountRefunded(@Nullable javax.money.MonetaryAmount amountRefunded)
amountRefunded
property of this builder.amountRefunded
- the value for PaymentDraft.getAmountRefunded()
public PaymentDraftBuilder anonymousId(@Nullable String anonymousId)
anonymousId
property of this builder.anonymousId
- the value for PaymentDraft.getAnonymousId()
@Deprecated public PaymentDraftBuilder authorizedUntil(@Nullable ZonedDateTime authorizedUntil)
authorizedUntil
property of this builder.authorizedUntil
- the value for PaymentDraft.getAuthorizedUntil()
public PaymentDraftBuilder custom(@Nullable CustomFieldsDraft custom)
custom
property of this builder.custom
- the value for PaymentDraft.getCustom()
public PaymentDraftBuilder customer(@Nullable Referenceable<Customer> customer)
customer
property of this builder.customer
- the value for PaymentDraft.getCustomer()
@Deprecated public PaymentDraftBuilder externalId(@Nullable String externalId)
externalId
property of this builder.externalId
- the value for PaymentDraft.getExternalId()
public PaymentDraftBuilder interfaceId(@Nullable String interfaceId)
interfaceId
property of this builder.interfaceId
- the value for PaymentDraft.getInterfaceId()
public PaymentDraftBuilder interfaceInteractions(@Nullable List<CustomFieldsDraft> interfaceInteractions)
interfaceInteractions
property of this builder.interfaceInteractions
- the value for PaymentDraft.getInterfaceInteractions()
public PaymentDraftBuilder key(@Nullable String key)
key
property of this builder.key
- the value for PaymentDraft.getKey()
public PaymentDraftBuilder paymentMethodInfo(@Nullable PaymentMethodInfo paymentMethodInfo)
paymentMethodInfo
property of this builder.paymentMethodInfo
- the value for PaymentDraft.getPaymentMethodInfo()
public PaymentDraftBuilder paymentStatus(@Nullable PaymentStatus paymentStatus)
paymentStatus
property of this builder.paymentStatus
- the value for PaymentDraft.getPaymentStatus()
public PaymentDraftBuilder transactions(@Nullable List<TransactionDraft> transactions)
transactions
property of this builder.transactions
- the value for PaymentDraft.getTransactions()
@Nullable @Deprecated public javax.money.MonetaryAmount getAmountAuthorized()
@Nullable @Deprecated public javax.money.MonetaryAmount getAmountPaid()
public javax.money.MonetaryAmount getAmountPlanned()
@Nullable @Deprecated public javax.money.MonetaryAmount getAmountRefunded()
@Nullable @Deprecated public ZonedDateTime getAuthorizedUntil()
@Nullable public CustomFieldsDraft getCustom()
getCustom
in interface CustomDraft
@Nullable @Deprecated public String getExternalId()
@Nullable public List<CustomFieldsDraft> getInterfaceInteractions()
@Nullable public PaymentMethodInfo getPaymentMethodInfo()
@Nullable public PaymentStatus getPaymentStatus()
@Nullable public List<TransactionDraft> getTransactions()
public PaymentDraftBuilder plusInterfaceInteractions(List<CustomFieldsDraft> interfaceInteractions)
interfaceInteractions
parameter to the interfaceInteractions
list property of this builder.interfaceInteractions
- the value for PaymentDraft.getInterfaceInteractions()
public PaymentDraftBuilder plusTransactions(List<TransactionDraft> transactions)
transactions
parameter to the transactions
list property of this builder.transactions
- the value for PaymentDraft.getTransactions()
public PaymentDraftBuilder plusInterfaceInteractions(CustomFieldsDraft interfaceInteractions)
interfaceInteractions
parameter to the interfaceInteractions
list property of this builder.interfaceInteractions
- the value of the element to add to PaymentDraft.getInterfaceInteractions()
public PaymentDraftBuilder plusTransactions(TransactionDraft transactions)
transactions
parameter to the transactions
list property of this builder.transactions
- the value of the element to add to PaymentDraft.getTransactions()
public PaymentDraftDsl build()
PaymentDraftDsl
with the values of this builder.build
in interface Builder<PaymentDraftDsl>
public static PaymentDraftBuilder of(javax.money.MonetaryAmount amountPlanned)
amountPlanned
- initial value for the PaymentDraft.getAmountPlanned()
propertypublic static PaymentDraftBuilder of(PaymentDraft template)
template
- the template