Class PaymentReferenceBuilder
java.lang.Object
com.commercetools.api.models.payment.PaymentReferenceBuilder
- All Implemented Interfaces:
Builder<PaymentReference>
PaymentReferenceBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
PaymentReference paymentReference = PaymentReference.builder()
.id("{id}")
.build()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds PaymentReference with checking for non-null required valuesbuilds PaymentReference without checking for non-null required valuesgetId()
Unique identifier of the referenced Payment.getObj()
Contains the representation of the expanded Payment.Unique identifier of the referenced Payment.Contains the representation of the expanded Payment.obj
(Function<PaymentBuilder, PaymentBuilder> builder) Contains the representation of the expanded Payment.static PaymentReferenceBuilder
of()
factory method for an instance of PaymentReferenceBuilderstatic PaymentReferenceBuilder
of
(PaymentReference template) create builder for PaymentReference instancewithObj
(Function<PaymentBuilder, Payment> builder) Contains the representation of the expanded Payment.
-
Constructor Details
-
PaymentReferenceBuilder
public PaymentReferenceBuilder()
-
-
Method Details
-
id
Unique identifier of the referenced Payment.
- Parameters:
id
- value to be set- Returns:
- Builder
-
obj
Contains the representation of the expanded Payment. Only present in responses to requests with Reference Expansion for Payments.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
withObj
Contains the representation of the expanded Payment. Only present in responses to requests with Reference Expansion for Payments.
- Parameters:
builder
- function to build the obj value- Returns:
- Builder
-
obj
Contains the representation of the expanded Payment. Only present in responses to requests with Reference Expansion for Payments.
- Parameters:
obj
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the referenced Payment.
- Returns:
- id
-
getObj
Contains the representation of the expanded Payment. Only present in responses to requests with Reference Expansion for Payments.
- Returns:
- obj
-
build
builds PaymentReference with checking for non-null required values- Specified by:
build
in interfaceBuilder<PaymentReference>
- Returns:
- PaymentReference
-
buildUnchecked
builds PaymentReference without checking for non-null required values- Returns:
- PaymentReference
-
of
factory method for an instance of PaymentReferenceBuilder- Returns:
- builder
-
of
create builder for PaymentReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-