Class PaymentSetMethodInfoActionBuilder
- All Implemented Interfaces:
Builder<PaymentSetMethodInfoAction>
Example to create an instance using the builder pattern
PaymentSetMethodInfoAction paymentSetMethodInfoAction = PaymentSetMethodInfoAction.builder()
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentSetMethodInfoAction with checking for non-null required valuesbuilds PaymentSetMethodInfoAction without checking for non-null required valuescustom
(CustomFieldsDraft custom) Custom Fields for the PaymentMethodInfo.Custom Fields for the PaymentMethodInfo.Custom Fields for the PaymentMethodInfo.Account or instance of the payment interface when multiple accounts are used (per interface).Payment method to use—for example, a credit card or direct debit.getName()
Name of the Payment Method.Payment service that processes the Payment—for example, a PSP.getToken()
Tokenized payment method information of the Payment Method.interfaceAccount
(String interfaceAccount) Account or instance of the payment interface when multiple accounts are used (per interface).Payment method to use—for example, a credit card or direct debit.name
(LocalizedString name) Name of the Payment Method.Name of the Payment Method.of()
factory method for an instance of PaymentSetMethodInfoActionBuilderof
(PaymentSetMethodInfoAction template) create builder for PaymentSetMethodInfoAction instancepaymentInterface
(String paymentInterface) Payment service that processes the Payment—for example, a PSP.token
(PaymentMethodToken token) Tokenized payment method information of the Payment Method.Tokenized payment method information of the Payment Method.Custom Fields for the PaymentMethodInfo.Name of the Payment Method.Tokenized payment method information of the Payment Method.
-
Constructor Details
-
PaymentSetMethodInfoActionBuilder
public PaymentSetMethodInfoActionBuilder()
-
-
Method Details
-
paymentInterface
Payment service that processes the Payment—for example, a PSP. The combination of
paymentInterface
and theinterfaceId
of a Payment must be unique. The value cannot be modified after it is set.Setting this field is equivalent to the
setMethodInfoInterface
action and will generate the PaymentMethodInfoInterfaceSet Message.- Parameters:
paymentInterface
- value to be set- Returns:
- Builder
-
method
Payment method to use—for example, a credit card or direct debit. If empty, any existing value will be removed.
Setting this field is equivalent to the
setMethodInfoMethod
action and will generate the PaymentMethodInfoMethodSet Message.- Parameters:
method
- value to be set- Returns:
- Builder
-
name
public PaymentSetMethodInfoActionBuilder name(Function<LocalizedStringBuilder, LocalizedStringBuilder> builder) Name of the Payment Method. If empty, any existing value will be removed.
Setting this field is equivalent to the
setMethodInfoName
action and will generate the PaymentMethodInfoNameSet Message.- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
withName
public PaymentSetMethodInfoActionBuilder withName(Function<LocalizedStringBuilder, LocalizedString> builder) Name of the Payment Method. If empty, any existing value will be removed.
Setting this field is equivalent to the
setMethodInfoName
action and will generate the PaymentMethodInfoNameSet Message.- Parameters:
builder
- function to build the name value- Returns:
- Builder
-
name
Name of the Payment Method. If empty, any existing value will be removed.
Setting this field is equivalent to the
setMethodInfoName
action and will generate the PaymentMethodInfoNameSet Message.- Parameters:
name
- value to be set- Returns:
- Builder
-
token
public PaymentSetMethodInfoActionBuilder token(Function<PaymentMethodTokenBuilder, PaymentMethodTokenBuilder> builder) Tokenized payment method information of the Payment Method. If empty, any existing value will be removed.
Setting this field is equivalent to the
setMethodInfoToken
action and will generate the PaymentMethodInfoTokenSet Message.- Parameters:
builder
- function to build the token value- Returns:
- Builder
-
withToken
public PaymentSetMethodInfoActionBuilder withToken(Function<PaymentMethodTokenBuilder, PaymentMethodToken> builder) Tokenized payment method information of the Payment Method. If empty, any existing value will be removed.
Setting this field is equivalent to the
setMethodInfoToken
action and will generate the PaymentMethodInfoTokenSet Message.- Parameters:
builder
- function to build the token value- Returns:
- Builder
-
token
Tokenized payment method information of the Payment Method. If empty, any existing value will be removed.
Setting this field is equivalent to the
setMethodInfoToken
action and will generate the PaymentMethodInfoTokenSet Message.- Parameters:
token
- value to be set- Returns:
- Builder
-
interfaceAccount
Account or instance of the payment interface when multiple accounts are used (per interface). If empty, any existing value will be removed.
Setting this field is equivalent to the
setMethodInfoInterfaceAccount
action and will generate the PaymentMethodInfoInterfaceAccountSet Message.- Parameters:
interfaceAccount
- value to be set- Returns:
- Builder
-
custom
public PaymentSetMethodInfoActionBuilder custom(Function<CustomFieldsDraftBuilder, CustomFieldsDraftBuilder> builder) Custom Fields for the PaymentMethodInfo. If not provided, any existing Custom Fields will be removed, including the Custom Type.
Setting this field is equivalent to the
setMethodInfoCustomType
andsetMethodInfoCustomField
actions, and will generate the following Messages:- Adding or updating a Custom Type on a Payment Method Info generates the PaymentMethodInfoCustomTypeSet Message, removing one generates the PaymentMethodInfoCustomTypeRemoved Message.
- Adding a Custom Field to a Payment generates the PaymentMethodInfoCustomFieldAdded Message, removing one generates the PaymentMethodInfoCustomFieldRemoved Message, and updating an existing one generates the PaymentMethodInfoCustomFieldChanged Message.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
withCustom
public PaymentSetMethodInfoActionBuilder withCustom(Function<CustomFieldsDraftBuilder, CustomFieldsDraft> builder) Custom Fields for the PaymentMethodInfo. If not provided, any existing Custom Fields will be removed, including the Custom Type.
Setting this field is equivalent to the
setMethodInfoCustomType
andsetMethodInfoCustomField
actions, and will generate the following Messages:- Adding or updating a Custom Type on a Payment Method Info generates the PaymentMethodInfoCustomTypeSet Message, removing one generates the PaymentMethodInfoCustomTypeRemoved Message.
- Adding a Custom Field to a Payment generates the PaymentMethodInfoCustomFieldAdded Message, removing one generates the PaymentMethodInfoCustomFieldRemoved Message, and updating an existing one generates the PaymentMethodInfoCustomFieldChanged Message.
- Parameters:
builder
- function to build the custom value- Returns:
- Builder
-
custom
Custom Fields for the PaymentMethodInfo. If not provided, any existing Custom Fields will be removed, including the Custom Type.
Setting this field is equivalent to the
setMethodInfoCustomType
andsetMethodInfoCustomField
actions, and will generate the following Messages:- Adding or updating a Custom Type on a Payment Method Info generates the PaymentMethodInfoCustomTypeSet Message, removing one generates the PaymentMethodInfoCustomTypeRemoved Message.
- Adding a Custom Field to a Payment generates the PaymentMethodInfoCustomFieldAdded Message, removing one generates the PaymentMethodInfoCustomFieldRemoved Message, and updating an existing one generates the PaymentMethodInfoCustomFieldChanged Message.
- Parameters:
custom
- value to be set- Returns:
- Builder
-
getPaymentInterface
Payment service that processes the Payment—for example, a PSP. The combination of
paymentInterface
and theinterfaceId
of a Payment must be unique. The value cannot be modified after it is set.Setting this field is equivalent to the
setMethodInfoInterface
action and will generate the PaymentMethodInfoInterfaceSet Message.- Returns:
- paymentInterface
-
getMethod
Payment method to use—for example, a credit card or direct debit. If empty, any existing value will be removed.
Setting this field is equivalent to the
setMethodInfoMethod
action and will generate the PaymentMethodInfoMethodSet Message.- Returns:
- method
-
getName
Name of the Payment Method. If empty, any existing value will be removed.
Setting this field is equivalent to the
setMethodInfoName
action and will generate the PaymentMethodInfoNameSet Message.- Returns:
- name
-
getToken
Tokenized payment method information of the Payment Method. If empty, any existing value will be removed.
Setting this field is equivalent to the
setMethodInfoToken
action and will generate the PaymentMethodInfoTokenSet Message.- Returns:
- token
-
getInterfaceAccount
Account or instance of the payment interface when multiple accounts are used (per interface). If empty, any existing value will be removed.
Setting this field is equivalent to the
setMethodInfoInterfaceAccount
action and will generate the PaymentMethodInfoInterfaceAccountSet Message.- Returns:
- interfaceAccount
-
getCustom
Custom Fields for the PaymentMethodInfo. If not provided, any existing Custom Fields will be removed, including the Custom Type.
Setting this field is equivalent to the
setMethodInfoCustomType
andsetMethodInfoCustomField
actions, and will generate the following Messages:- Adding or updating a Custom Type on a Payment Method Info generates the PaymentMethodInfoCustomTypeSet Message, removing one generates the PaymentMethodInfoCustomTypeRemoved Message.
- Adding a Custom Field to a Payment generates the PaymentMethodInfoCustomFieldAdded Message, removing one generates the PaymentMethodInfoCustomFieldRemoved Message, and updating an existing one generates the PaymentMethodInfoCustomFieldChanged Message.
- Returns:
- custom
-
build
builds PaymentSetMethodInfoAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentSetMethodInfoAction>
- Returns:
- PaymentSetMethodInfoAction
-
buildUnchecked
builds PaymentSetMethodInfoAction without checking for non-null required values- Returns:
- PaymentSetMethodInfoAction
-
of
factory method for an instance of PaymentSetMethodInfoActionBuilder- Returns:
- builder
-
of
create builder for PaymentSetMethodInfoAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-