Interface PaymentKeyReference
- All Superinterfaces:
KeyReference
Used by the Import API to identify a Payment.
Example to create an instance using the builder pattern
PaymentKeyReference paymentKeyReference = PaymentKeyReference.builder()
.key("{key}")
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PaymentKeyReferenceBuilderbuilder()builder factory method for PaymentKeyReferencestatic PaymentKeyReferenceBuilderbuilder(PaymentKeyReference template) create builder for PaymentKeyReference instancecopyDeep()static PaymentKeyReferencedeepCopy(PaymentKeyReference template) factory method to create a deep copy of PaymentKeyReference@NotNull StringgetKey()User-defined unique identifier of the referenced Payment.static PaymentKeyReferenceof()factory methodstatic PaymentKeyReferenceof(PaymentKeyReference template) factory method to create a shallow copy PaymentKeyReferencevoidUser-defined unique identifier of the referenced Payment.static com.fasterxml.jackson.core.type.TypeReference<PaymentKeyReference>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithPaymentKeyReference(Function<PaymentKeyReference, T> helper) accessor map functionMethods inherited from interface com.commercetools.importapi.models.common.KeyReference
getTypeId, withKeyReference
-
Field Details
-
PAYMENT
discriminator value for PaymentKeyReference- See Also:
-
-
Method Details
-
getKey
User-defined unique identifier of the referenced Payment.
- Specified by:
getKeyin interfaceKeyReference- Returns:
- key
-
setKey
User-defined unique identifier of the referenced Payment.
- Specified by:
setKeyin interfaceKeyReference- Parameters:
key- value to be set
-
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
-
copyDeep
PaymentKeyReference copyDeep()- Specified by:
copyDeepin interfaceKeyReference
-
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
-