@Generated(value="io.sphere.sdk.annotations.processors.generators.ResourceDraftValueGenerator", comments="Generated from: io.sphere.sdk.payments.PaymentDraft") public final class PaymentDraftDsl extends Base implements PaymentDraft
PaymentDraft
.Modifier and Type | Method and Description |
---|---|
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()
Identifies payments belonging to an anonymous session (the customer has not signed up/in yet).
|
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()
User-specific unique identifier for the payment.
|
PaymentMethodInfo |
getPaymentMethodInfo() |
PaymentStatus |
getPaymentStatus() |
List<TransactionDraft> |
getTransactions() |
PaymentDraftBuilder |
newBuilder()
Creates a new builder with the values of this object.
|
static PaymentDraftDsl |
of(javax.money.MonetaryAmount amountPlanned)
Creates a new object initialized with the given values.
|
static PaymentDraftDsl |
of(PaymentDraft template)
Creates a new object initialized with the fields of the template parameter.
|
PaymentDraftDsl |
withAmountAuthorized(javax.money.MonetaryAmount amountAuthorized)
Deprecated.
This method will be removed with the next major SDK update.
|
PaymentDraftDsl |
withAmountPaid(javax.money.MonetaryAmount amountPaid)
Deprecated.
This method will be removed with the next major SDK update.
|
PaymentDraftDsl |
withAmountPlanned(javax.money.MonetaryAmount amountPlanned) |
PaymentDraftDsl |
withAmountRefunded(javax.money.MonetaryAmount amountRefunded)
Deprecated.
This method will be removed with the next major SDK update.
|
PaymentDraftDsl |
withAnonymousId(String anonymousId) |
PaymentDraftDsl |
withAuthorizedUntil(ZonedDateTime authorizedUntil)
Deprecated.
This method will be removed with the next major SDK update.
|
PaymentDraftDsl |
withCustom(CustomFieldsDraft custom) |
PaymentDraftDsl |
withCustomer(Referenceable<Customer> customer) |
PaymentDraftDsl |
withExternalId(String externalId)
Deprecated.
This method will be removed with the next major SDK update.
|
PaymentDraftDsl |
withInterfaceId(String interfaceId) |
PaymentDraftDsl |
withInterfaceInteractions(List<CustomFieldsDraft> interfaceInteractions) |
PaymentDraftDsl |
withKey(String key) |
PaymentDraftDsl |
withPaymentMethodInfo(PaymentMethodInfo paymentMethodInfo) |
PaymentDraftDsl |
withPaymentStatus(PaymentStatus paymentStatus) |
PaymentDraftDsl |
withTransactions(List<TransactionDraft> transactions) |
@Nullable @Deprecated public javax.money.MonetaryAmount getAmountAuthorized()
getAmountAuthorized
in interface PaymentDraft
@Nullable @Deprecated public javax.money.MonetaryAmount getAmountPaid()
getAmountPaid
in interface PaymentDraft
public javax.money.MonetaryAmount getAmountPlanned()
getAmountPlanned
in interface PaymentDraft
@Nullable @Deprecated public javax.money.MonetaryAmount getAmountRefunded()
getAmountRefunded
in interface PaymentDraft
@Nullable public String getAnonymousId()
PaymentDraft
getAnonymousId
in interface PaymentDraft
@Nullable @Deprecated public ZonedDateTime getAuthorizedUntil()
getAuthorizedUntil
in interface PaymentDraft
@Nullable public CustomFieldsDraft getCustom()
getCustom
in interface PaymentDraft
getCustom
in interface CustomDraft
@Nullable public Reference<Customer> getCustomer()
getCustomer
in interface PaymentDraft
@Nullable @Deprecated public String getExternalId()
getExternalId
in interface PaymentDraft
@Nullable public String getInterfaceId()
getInterfaceId
in interface PaymentDraft
@Nullable public List<CustomFieldsDraft> getInterfaceInteractions()
getInterfaceInteractions
in interface PaymentDraft
@Nullable public String getKey()
PaymentDraft
getKey
in interface WithKey
getKey
in interface PaymentDraft
@Nullable public PaymentMethodInfo getPaymentMethodInfo()
getPaymentMethodInfo
in interface PaymentDraft
@Nullable public PaymentStatus getPaymentStatus()
getPaymentStatus
in interface PaymentDraft
@Nullable public List<TransactionDraft> getTransactions()
getTransactions
in interface PaymentDraft
public PaymentDraftBuilder newBuilder()
@Deprecated public PaymentDraftDsl withAmountAuthorized(@Nullable javax.money.MonetaryAmount amountAuthorized)
@Deprecated public PaymentDraftDsl withAmountPaid(@Nullable javax.money.MonetaryAmount amountPaid)
public PaymentDraftDsl withAmountPlanned(javax.money.MonetaryAmount amountPlanned)
@Deprecated public PaymentDraftDsl withAmountRefunded(@Nullable javax.money.MonetaryAmount amountRefunded)
public PaymentDraftDsl withAnonymousId(@Nullable String anonymousId)
@Deprecated public PaymentDraftDsl withAuthorizedUntil(@Nullable ZonedDateTime authorizedUntil)
public PaymentDraftDsl withCustom(@Nullable CustomFieldsDraft custom)
public PaymentDraftDsl withCustomer(@Nullable Referenceable<Customer> customer)
@Deprecated public PaymentDraftDsl withExternalId(@Nullable String externalId)
public PaymentDraftDsl withInterfaceId(@Nullable String interfaceId)
public PaymentDraftDsl withInterfaceInteractions(@Nullable List<CustomFieldsDraft> interfaceInteractions)
public PaymentDraftDsl withKey(@Nullable String key)
public PaymentDraftDsl withPaymentMethodInfo(@Nullable PaymentMethodInfo paymentMethodInfo)
public PaymentDraftDsl withPaymentStatus(@Nullable PaymentStatus paymentStatus)
public PaymentDraftDsl withTransactions(@Nullable List<TransactionDraft> transactions)
public static PaymentDraftDsl of(javax.money.MonetaryAmount amountPlanned)
amountPlanned
- initial value for the PaymentDraft.getAmountPlanned()
propertypublic static PaymentDraftDsl of(PaymentDraft template)
template
- the template