Interface PaymentReference
- All Superinterfaces:
Identifiable<Payment>,IdentifiableObjHolder<Payment>,Reference,ReferenceMixin
public interface PaymentReference
extends Reference, Identifiable<Payment>, IdentifiableObjHolder<Payment>
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentReferenceBuilderbuilder()builder factory method for PaymentReferencestatic PaymentReferenceBuilderbuilder(PaymentReference template) create builder for PaymentReference instancecopyDeep()static PaymentReferencedeepCopy(PaymentReference template) factory method to create a deep copy of PaymentReference@NotNull StringgetId()Unique identifier of the referenced Payment.@Valid PaymentgetObj()Contains the representation of the expanded Payment.static PaymentReferenceof()factory methodstatic PaymentReferenceof(PaymentReference template) factory method to create a shallow copy PaymentReferencevoidUnique identifier of the referenced Payment.voidContains the representation of the expanded Payment.static com.fasterxml.jackson.core.type.TypeReference<PaymentReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithPaymentReference(Function<PaymentReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.Reference
getTypeId, withReferenceMethods 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:
getObjin interfaceIdentifiableObjHolder<Payment>- Returns:
- obj
-
getId
Unique identifier of the referenced Payment.
- Specified by:
getIdin interfaceIdentifiable<Payment>- Specified by:
getIdin interfaceReference- Specified by:
getIdin 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
-
copyDeep
PaymentReference copyDeep() -
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
-