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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for PaymentSetCustomerAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for PaymentSetCustomerActionbuilder(PaymentSetCustomerAction template) create builder for PaymentSetCustomerAction instancecopyDeep()static PaymentSetCustomerActiondeepCopy(PaymentSetCustomerAction template) factory method to create a deep copy of PaymentSetCustomerAction@Valid CustomerResourceIdentifierValue to set.static PaymentSetCustomerActionof()factory methodstatic PaymentSetCustomerActionof(PaymentSetCustomerAction template) factory method to create a shallow copy PaymentSetCustomerActionvoidsetCustomer(CustomerResourceIdentifier customer) Value to set.static com.fasterxml.jackson.core.type.TypeReference<PaymentSetCustomerAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.payment.PaymentUpdateAction
getAction, withPaymentUpdateActionMethods 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
-
copyDeep
PaymentSetCustomerAction copyDeep()- Specified by:
copyDeepin interfacePaymentUpdateAction
-
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
-