public class CreatePaymentTransactionDataImpl extends PaymentInteractionDataBase implements CreatePaymentTransactionData
| Constructor and Description |
|---|
CreatePaymentTransactionDataImpl(io.sphere.sdk.client.SphereClient client,
java.lang.String paymentRef,
java.util.Map<java.lang.String,java.lang.String> config) |
| Modifier and Type | Method and Description |
|---|---|
io.sphere.sdk.payments.Payment |
getPayment() |
java.lang.String |
getPaymentRef() |
java.util.Optional<io.sphere.sdk.payments.TransactionType> |
getTransactionType() |
void |
setPayment(io.sphere.sdk.payments.Payment p)
Set the payment object the transaction should be created for.
|
void |
setTransactionType(io.sphere.sdk.payments.TransactionType type)
Set the type of the transaction to be created.
|
getConfigByName, getSphereClientclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigByName, getSphereClientpublic CreatePaymentTransactionDataImpl(io.sphere.sdk.client.SphereClient client,
java.lang.String paymentRef,
java.util.Map<java.lang.String,java.lang.String> config)
public java.lang.String getPaymentRef()
getPaymentRef in interface CreatePaymentTransactionDatapublic io.sphere.sdk.payments.Payment getPayment()
getPayment in interface CreatePaymentTransactionDatapublic void setPayment(io.sphere.sdk.payments.Payment p)
CreatePaymentTransactionDatasetPayment in interface CreatePaymentTransactionDatap - the payment objectpublic java.util.Optional<io.sphere.sdk.payments.TransactionType> getTransactionType()
getTransactionType in interface CreatePaymentTransactionDatapublic void setTransactionType(io.sphere.sdk.payments.TransactionType type)
CreatePaymentTransactionDatasetTransactionType in interface CreatePaymentTransactionDatatype - typ of transaction to set