Interface PaymentMethodReference
- All Superinterfaces:
Reference,ReferenceMixin
Reference to a PaymentMethod.
Example to create an instance using the builder pattern
PaymentMethodReference paymentMethodReference = PaymentMethodReference.builder()
.id("{id}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for PaymentMethodReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for PaymentMethodReferencebuilder(PaymentMethodReference template) create builder for PaymentMethodReference instancecopyDeep()static PaymentMethodReferencedeepCopy(PaymentMethodReference template) factory method to create a deep copy of PaymentMethodReference@NotNull StringgetId()Unique identifier of the referenced PaymentMethod.@Valid PaymentMethodgetObj()Contains the representation of the expanded PaymentMethod.static PaymentMethodReferenceof()factory methodstatic PaymentMethodReferenceof(PaymentMethodReference template) factory method to create a shallow copy PaymentMethodReferencevoidUnique identifier of the referenced PaymentMethod.voidsetObj(PaymentMethod obj) Contains the representation of the expanded PaymentMethod.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodReference>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor 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_METHOD
discriminator value for PaymentMethodReference- See Also:
-
-
Method Details
-
getObj
Contains the representation of the expanded PaymentMethod. Only present in responses to requests with Reference Expansion for PaymentMethods.
- Returns:
- obj
-
getId
Unique identifier of the referenced PaymentMethod.
- Specified by:
getIdin interfaceReference- Specified by:
getIdin interfaceReferenceMixin- Returns:
- id
-
setObj
Contains the representation of the expanded PaymentMethod. Only present in responses to requests with Reference Expansion for PaymentMethods.
- Parameters:
obj- value to be set
-
setId
Unique identifier of the referenced PaymentMethod.
-
of
factory method- Returns:
- instance of PaymentMethodReference
-
of
factory method to create a shallow copy PaymentMethodReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodReference copyDeep() -
deepCopy
factory method to create a deep copy of PaymentMethodReference- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodReference- Returns:
- builder
-
builder
create builder for PaymentMethodReference instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodReference
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
-