public class CreatePaymentDataImpl extends PaymentInteractionDataBase implements CreatePaymentData
Constructor and Description |
---|
CreatePaymentDataImpl(io.sphere.sdk.client.SphereClient client,
io.sphere.sdk.payments.PaymentMethodInfo paymentMethodInfo,
io.sphere.sdk.carts.Cart c,
java.lang.String reference,
java.util.Map<java.lang.String,java.lang.String> config,
io.sphere.sdk.customers.Customer customer,
HttpRequestInfo requestInfo) |
Modifier and Type | Method and Description |
---|---|
io.sphere.sdk.carts.Cart |
getCart() |
java.util.Optional<io.sphere.sdk.customers.Customer> |
getCustomer() |
java.util.Optional<HttpRequestInfo> |
getHttpRequestInfo() |
io.sphere.sdk.payments.PaymentMethodInfo |
getPaymentMethodinInfo() |
java.lang.String |
getReference() |
getConfigByName, getSphereClient
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigByName, getSphereClient
public CreatePaymentDataImpl(io.sphere.sdk.client.SphereClient client, io.sphere.sdk.payments.PaymentMethodInfo paymentMethodInfo, io.sphere.sdk.carts.Cart c, java.lang.String reference, java.util.Map<java.lang.String,java.lang.String> config, @Nullable io.sphere.sdk.customers.Customer customer, @Nullable HttpRequestInfo requestInfo)
public io.sphere.sdk.carts.Cart getCart()
getCart
in interface CreatePaymentData
public java.lang.String getReference()
getReference
in interface CreatePaymentData
public java.util.Optional<io.sphere.sdk.customers.Customer> getCustomer()
getCustomer
in interface CreatePaymentData
public java.util.Optional<HttpRequestInfo> getHttpRequestInfo()
getHttpRequestInfo
in interface CreatePaymentData
public io.sphere.sdk.payments.PaymentMethodInfo getPaymentMethodinInfo()
getPaymentMethodinInfo
in interface CreatePaymentData
PaymentMethodInfo
the Payment
object should be created for