Class PaymentInfoBuilder
java.lang.Object
com.commercetools.api.models.order.PaymentInfoBuilder
- All Implemented Interfaces:
io.vrap.rmf.base.client.Builder<PaymentInfo>
public class PaymentInfoBuilder
extends Object
implements io.vrap.rmf.base.client.Builder<PaymentInfo>
PaymentInfoBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentInfo paymentInfo = PaymentInfo.builder()
.plusPayments(paymentsBuilder -> paymentsBuilder)
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd the value to the payments using the builder functionbuild()
builds PaymentInfo with checking for non-null required valuesbuilds PaymentInfo without checking for non-null required valuesvalue of payments}static PaymentInfoBuilder
of()
factory method for an instance of PaymentInfoBuilderstatic PaymentInfoBuilder
of
(PaymentInfo template) create builder for PaymentInfo instancepayments
(PaymentReference... payments) set values to the paymentspayments
(List<PaymentReference> payments) set value to the paymentsplusPayments
(PaymentReference... payments) add values to the paymentsadd the value to the payments using the builder functionset the value to the payments using the builder functionset the value to the payments using the builder function
-
Constructor Details
-
PaymentInfoBuilder
public PaymentInfoBuilder()
-
-
Method Details
-
payments
set values to the payments- Parameters:
payments
- value to be set- Returns:
- Builder
-
payments
set value to the payments- Parameters:
payments
- value to be set- Returns:
- Builder
-
plusPayments
add values to the payments- Parameters:
payments
- value to be set- Returns:
- Builder
-
plusPayments
public PaymentInfoBuilder plusPayments(Function<PaymentReferenceBuilder, PaymentReferenceBuilder> builder) add the value to the payments using the builder function- Parameters:
builder
- function to build the payments value- Returns:
- Builder
-
withPayments
public PaymentInfoBuilder withPayments(Function<PaymentReferenceBuilder, PaymentReferenceBuilder> builder) set the value to the payments using the builder function- Parameters:
builder
- function to build the payments value- Returns:
- Builder
-
addPayments
add the value to the payments using the builder function- Parameters:
builder
- function to build the payments value- Returns:
- Builder
-
setPayments
set the value to the payments using the builder function- Parameters:
builder
- function to build the payments value- Returns:
- Builder
-
getPayments
value of payments}- Returns:
- payments
-
build
builds PaymentInfo with checking for non-null required values- Specified by:
build
in interfaceio.vrap.rmf.base.client.Builder<PaymentInfo>
- Returns:
- PaymentInfo
-
buildUnchecked
builds PaymentInfo without checking for non-null required values- Returns:
- PaymentInfo
-
of
factory method for an instance of PaymentInfoBuilder- Returns:
- builder
-
of
create builder for PaymentInfo instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-