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 String
discriminator value for PaymentMethodReference -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodReferencebuilder
(PaymentMethodReference template) create builder for PaymentMethodReference instancecopyDeep()
static PaymentMethodReference
deepCopy
(PaymentMethodReference template) factory method to create a deep copy of PaymentMethodReference@NotNull String
getId()
Unique identifier of the referenced PaymentMethod.@Valid PaymentMethod
getObj()
Contains the representation of the expanded PaymentMethod.static PaymentMethodReference
of()
factory methodstatic PaymentMethodReference
of
(PaymentMethodReference template) factory method to create a shallow copy PaymentMethodReferencevoid
Unique identifier of the referenced PaymentMethod.void
setObj
(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> T
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_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:
getId
in interfaceReference
- Specified by:
getId
in 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
-