Interface PaymentSetCustomerAction
- All Superinterfaces:
PaymentUpdateAction
,ResourceUpdateAction<PaymentUpdateAction>
PaymentSetCustomerAction
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentSetCustomerAction paymentSetCustomerAction = PaymentSetCustomerAction.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentSetCustomerAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentSetCustomerActionbuilder
(PaymentSetCustomerAction template) create builder for PaymentSetCustomerAction instancestatic PaymentSetCustomerAction
deepCopy
(PaymentSetCustomerAction template) factory method to create a deep copy of PaymentSetCustomerAction@Valid CustomerResourceIdentifier
Value to set.static PaymentSetCustomerAction
of()
factory methodstatic PaymentSetCustomerAction
of
(PaymentSetCustomerAction template) factory method to create a shallow copy PaymentSetCustomerActionvoid
setCustomer
(CustomerResourceIdentifier customer) Value to set.static com.fasterxml.jackson.core.type.TypeReference<PaymentSetCustomerAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.payment.PaymentUpdateAction
getAction, withPaymentUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_CUSTOMER
discriminator value for PaymentSetCustomerAction- See Also:
-
-
Method Details
-
getCustomer
Value to set. If empty, any existing reference is removed.
- Returns:
- customer
-
setCustomer
Value to set. If empty, any existing reference is removed.
- Parameters:
customer
- value to be set
-
of
factory method- Returns:
- instance of PaymentSetCustomerAction
-
of
factory method to create a shallow copy PaymentSetCustomerAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of PaymentSetCustomerAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentSetCustomerAction- Returns:
- builder
-
builder
create builder for PaymentSetCustomerAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentSetCustomerAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-