Interface CartSetRecurringPaymentStrategyAction
- All Superinterfaces:
CartUpdateAction,ResourceUpdateAction<CartUpdateAction>
Sets the paymentStrategy of the RecurringPaymentConfiguration without changing the existing paymentAllocations. To set both at once, use the Set RecurringPaymentConfiguration update action.
Example to create an instance using the builder pattern
CartSetRecurringPaymentStrategyAction cartSetRecurringPaymentStrategyAction = CartSetRecurringPaymentStrategyAction.builder()
.paymentStrategy(PaymentStrategy.CHECKOUT)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartSetRecurringPaymentStrategyAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartSetRecurringPaymentStrategyActionbuilder(CartSetRecurringPaymentStrategyAction template) create builder for CartSetRecurringPaymentStrategyAction instancecopyDeep()factory method to create a deep copy of CartSetRecurringPaymentStrategyAction@NotNull PaymentStrategyNew value to set.of()factory methodof(CartSetRecurringPaymentStrategyAction template) factory method to create a shallow copy CartSetRecurringPaymentStrategyActionvoidsetPaymentStrategy(PaymentStrategy paymentStrategy) New value to set.static tools.jackson.core.type.TypeReference<CartSetRecurringPaymentStrategyAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.cart.CartUpdateAction
getAction, withCartUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_RECURRING_PAYMENT_STRATEGY
discriminator value for CartSetRecurringPaymentStrategyAction- See Also:
-
-
Method Details
-
getPaymentStrategy
New value to set.
- Returns:
- paymentStrategy
-
setPaymentStrategy
New value to set.
- Parameters:
paymentStrategy- value to be set
-
of
factory method- Returns:
- instance of CartSetRecurringPaymentStrategyAction
-
of
factory method to create a shallow copy CartSetRecurringPaymentStrategyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CartSetRecurringPaymentStrategyAction copyDeep()- Specified by:
copyDeepin interfaceCartUpdateAction
-
deepCopy
@Nullable static CartSetRecurringPaymentStrategyAction deepCopy(@Nullable CartSetRecurringPaymentStrategyAction template) factory method to create a deep copy of CartSetRecurringPaymentStrategyAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartSetRecurringPaymentStrategyAction- Returns:
- builder
-
builder
static CartSetRecurringPaymentStrategyActionBuilder builder(CartSetRecurringPaymentStrategyAction template) create builder for CartSetRecurringPaymentStrategyAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCartSetRecurringPaymentStrategyAction
default <T> T withCartSetRecurringPaymentStrategyAction(Function<CartSetRecurringPaymentStrategyAction, T> helper) 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
-