CreatePaymentTransactionData
, PaymentInteractionData
public class CreatePaymentTransactionDataImpl extends PaymentInteractionDataBase implements CreatePaymentTransactionData
Constructor | 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 | 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigByName, getSphereClient
getConfigByName, getSphereClient
public 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 CreatePaymentTransactionData
public io.sphere.sdk.payments.Payment getPayment()
getPayment
in interface CreatePaymentTransactionData
public void setPayment(io.sphere.sdk.payments.Payment p)
CreatePaymentTransactionData
setPayment
in interface CreatePaymentTransactionData
p
- the payment objectpublic java.util.Optional<io.sphere.sdk.payments.TransactionType> getTransactionType()
getTransactionType
in interface CreatePaymentTransactionData
public void setTransactionType(io.sphere.sdk.payments.TransactionType type)
CreatePaymentTransactionData
setTransactionType
in interface CreatePaymentTransactionData
type
- typ of transaction to set