Interface PaymentMethodPaymentInterfaceSetMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
Generated after a successful Set PaymentInterface update action.
Example to create an instance using the builder pattern
PaymentMethodPaymentInterfaceSetMessage paymentMethodPaymentInterfaceSetMessage = PaymentMethodPaymentInterfaceSetMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
discriminator value for PaymentMethodPaymentInterfaceSetMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodPaymentInterfaceSetMessagecreate builder for PaymentMethodPaymentInterfaceSetMessage instancecopyDeep()
factory method to create a deep copy of PaymentMethodPaymentInterfaceSetMessagePayment interface of the Payment Method before the Set PaymentInterface update action.Payment interface of the Payment Method after the Set PaymentInterface update action.of()
factory methodof
(PaymentMethodPaymentInterfaceSetMessage template) factory method to create a shallow copy PaymentMethodPaymentInterfaceSetMessagevoid
setOldPaymentInterface
(String oldPaymentInterface) Payment interface of the Payment Method before the Set PaymentInterface update action.void
setPaymentInterface
(String paymentInterface) Payment interface of the Payment Method after the Set PaymentInterface update action.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodPaymentInterfaceSetMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentMethodPaymentInterfaceSetMessage
(Function<PaymentMethodPaymentInterfaceSetMessage, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
-
Field Details
-
PAYMENT_METHOD_PAYMENT_INTERFACE_SET
discriminator value for PaymentMethodPaymentInterfaceSetMessage- See Also:
-
-
Method Details
-
getPaymentInterface
String getPaymentInterface()Payment interface of the Payment Method after the Set PaymentInterface update action.
- Returns:
- paymentInterface
-
getOldPaymentInterface
String getOldPaymentInterface()Payment interface of the Payment Method before the Set PaymentInterface update action.
- Returns:
- oldPaymentInterface
-
setPaymentInterface
Payment interface of the Payment Method after the Set PaymentInterface update action.
- Parameters:
paymentInterface
- value to be set
-
setOldPaymentInterface
Payment interface of the Payment Method before the Set PaymentInterface update action.
- Parameters:
oldPaymentInterface
- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodPaymentInterfaceSetMessage
-
of
factory method to create a shallow copy PaymentMethodPaymentInterfaceSetMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodPaymentInterfaceSetMessage copyDeep()- Specified by:
copyDeep
in interfaceBaseResource
- Specified by:
copyDeep
in interfaceMessage
-
deepCopy
@Nullable static PaymentMethodPaymentInterfaceSetMessage deepCopy(@Nullable PaymentMethodPaymentInterfaceSetMessage template) factory method to create a deep copy of PaymentMethodPaymentInterfaceSetMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodPaymentInterfaceSetMessage- Returns:
- builder
-
builder
static PaymentMethodPaymentInterfaceSetMessageBuilder builder(PaymentMethodPaymentInterfaceSetMessage template) create builder for PaymentMethodPaymentInterfaceSetMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodPaymentInterfaceSetMessage
default <T> T withPaymentMethodPaymentInterfaceSetMessage(Function<PaymentMethodPaymentInterfaceSetMessage, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodPaymentInterfaceSetMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-