Interface PaymentKeyReference
- All Superinterfaces:
KeyReference
References a payment by key.
Example to create an instance using the builder pattern
PaymentKeyReference paymentKeyReference = PaymentKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentKeyReferenceBuilder
builder()
builder factory method for PaymentKeyReferencestatic PaymentKeyReferenceBuilder
builder
(PaymentKeyReference template) create builder for PaymentKeyReference instancestatic PaymentKeyReference
deepCopy
(PaymentKeyReference template) factory method to create a deep copy of PaymentKeyReferencestatic PaymentKeyReference
of()
factory methodstatic PaymentKeyReference
of
(PaymentKeyReference template) factory method to create a shallow copy PaymentKeyReferencestatic com.fasterxml.jackson.core.type.TypeReference<PaymentKeyReference>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentKeyReference
(Function<PaymentKeyReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getKey, getTypeId, setKey, withKeyReference
-
Field Details
-
PAYMENT
discriminator value for PaymentKeyReference- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of PaymentKeyReference
-
of
factory method to create a shallow copy PaymentKeyReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of PaymentKeyReference- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentKeyReference- Returns:
- builder
-
builder
create builder for PaymentKeyReference instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentKeyReference
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
-