Interface PaymentReference
- All Superinterfaces:
Identifiable<Payment>
,IdentifiableObjHolder<Payment>
,Reference
,ReferenceMixin
public interface PaymentReference
extends Reference, Identifiable<Payment>, IdentifiableObjHolder<Payment>
Reference to a Payment.
Example to create an instance using the builder pattern
PaymentReference paymentReference = PaymentReference.builder()
.id("{id}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentReferenceBuilder
builder()
builder factory method for PaymentReferencestatic PaymentReferenceBuilder
builder
(PaymentReference template) create builder for PaymentReference instancestatic PaymentReference
deepCopy
(PaymentReference template) factory method to create a deep copy of PaymentReference@NotNull String
getId()
Unique identifier of the referenced Payment.@Valid Payment
getObj()
Contains the representation of the expanded Payment.static PaymentReference
of()
factory methodstatic PaymentReference
of
(PaymentReference template) factory method to create a shallow copy PaymentReferencevoid
Unique identifier of the referenced Payment.void
Contains the representation of the expanded Payment.static com.fasterxml.jackson.core.type.TypeReference<PaymentReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentReference
(Function<PaymentReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReference
Methods inherited from interface com.commercetools.api.models.common.ReferenceMixin
toResourceIdentifier
-
Field Details
-
PAYMENT
discriminator value for PaymentReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded Payment. Only present in responses to requests with Reference Expansion for Payments.
- Specified by:
getObj
in interfaceIdentifiableObjHolder<Payment>
- Returns:
- obj
-
getId
Unique identifier of the referenced Payment.
- Specified by:
getId
in interfaceIdentifiable<Payment>
- Specified by:
getId
in interfaceReference
- Specified by:
getId
in interfaceReferenceMixin
- Returns:
- id
-
setObj
Contains the representation of the expanded Payment. Only present in responses to requests with Reference Expansion for Payments.
- Parameters:
obj
- value to be set
-
setId
Unique identifier of the referenced Payment.
-
of
factory method- Returns:
- instance of PaymentReference
-
of
factory method to create a shallow copy PaymentReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of PaymentReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentReference- Returns:
- builder
-
builder
create builder for PaymentReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentReference
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
-