Class PaymentSetTransactionCustomTypeActionBuilder
- All Implemented Interfaces:
Builder<PaymentSetTransactionCustomTypeAction>
Example to create an instance using the builder pattern
PaymentSetTransactionCustomTypeAction paymentSetTransactionCustomTypeAction = PaymentSetTransactionCustomTypeAction.builder()
.transactionId("{transactionId}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentSetTransactionCustomTypeAction with checking for non-null required valuesbuilds PaymentSetTransactionCustomTypeAction without checking for non-null required valuesfields
(FieldContainer fields) Sets the Custom Fields fields for the Transaction.Sets the Custom Fields fields for the Transaction.Sets the Custom Fields fields for the Transaction.Unique identifier of the Transaction.getType()
Defines the Type that extends the Transaction with Custom Fields.of()
factory method for an instance of PaymentSetTransactionCustomTypeActionBuilderof
(PaymentSetTransactionCustomTypeAction template) create builder for PaymentSetTransactionCustomTypeAction instancetransactionId
(String transactionId) Unique identifier of the Transaction.type
(TypeResourceIdentifier type) Defines the Type that extends the Transaction with Custom Fields.Defines the Type that extends the Transaction with Custom Fields.Sets the Custom Fields fields for the Transaction.Defines the Type that extends the Transaction with Custom Fields.
-
Constructor Details
-
PaymentSetTransactionCustomTypeActionBuilder
public PaymentSetTransactionCustomTypeActionBuilder()
-
-
Method Details
-
transactionId
Unique identifier of the Transaction. If the specified
transactionId
does not exist, the request will fail with an InvalidOperation error.- Parameters:
transactionId
- value to be set- Returns:
- Builder
-
type
public PaymentSetTransactionCustomTypeActionBuilder type(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifierBuilder> builder) Defines the Type that extends the Transaction with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Transaction.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
withType
public PaymentSetTransactionCustomTypeActionBuilder withType(Function<TypeResourceIdentifierBuilder, TypeResourceIdentifier> builder) Defines the Type that extends the Transaction with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Transaction.
- Parameters:
builder
- function to build the type value- Returns:
- Builder
-
type
Defines the Type that extends the Transaction with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Transaction.
- Parameters:
type
- value to be set- Returns:
- Builder
-
fields
public PaymentSetTransactionCustomTypeActionBuilder fields(Function<FieldContainerBuilder, FieldContainerBuilder> builder) Sets the Custom Fields fields for the Transaction.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
withFields
public PaymentSetTransactionCustomTypeActionBuilder withFields(Function<FieldContainerBuilder, FieldContainer> builder) Sets the Custom Fields fields for the Transaction.
- Parameters:
builder
- function to build the fields value- Returns:
- Builder
-
fields
Sets the Custom Fields fields for the Transaction.
- Parameters:
fields
- value to be set- Returns:
- Builder
-
getTransactionId
Unique identifier of the Transaction. If the specified
transactionId
does not exist, the request will fail with an InvalidOperation error.- Returns:
- transactionId
-
getType
Defines the Type that extends the Transaction with Custom Fields. If absent, any existing Type and Custom Fields are removed from the Transaction.
- Returns:
- type
-
getFields
Sets the Custom Fields fields for the Transaction.
- Returns:
- fields
-
build
builds PaymentSetTransactionCustomTypeAction with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentSetTransactionCustomTypeAction>
- Returns:
- PaymentSetTransactionCustomTypeAction
-
buildUnchecked
builds PaymentSetTransactionCustomTypeAction without checking for non-null required values- Returns:
- PaymentSetTransactionCustomTypeAction
-
of
factory method for an instance of PaymentSetTransactionCustomTypeActionBuilder- Returns:
- builder
-
of
public static PaymentSetTransactionCustomTypeActionBuilder of(PaymentSetTransactionCustomTypeAction template) create builder for PaymentSetTransactionCustomTypeAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-