Interface PaymentMethodMethodSetMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
Generated after a successful Set Method update action.
Example to create an instance using the builder pattern
PaymentMethodMethodSetMessage paymentMethodMethodSetMessage = PaymentMethodMethodSetMessage.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 PaymentMethodMethodSetMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodMethodSetMessagebuilder
(PaymentMethodMethodSetMessage template) create builder for PaymentMethodMethodSetMessage instancecopyDeep()
deepCopy
(PaymentMethodMethodSetMessage template) factory method to create a deep copy of PaymentMethodMethodSetMessagePayment Method after the Set Method update action.Payment Method before the Set Method update action.of()
factory methodof
(PaymentMethodMethodSetMessage template) factory method to create a shallow copy PaymentMethodMethodSetMessagevoid
Payment Method after the Set Method update action.void
setOldMethod
(String oldMethod) Payment Method before the Set Method update action.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodMethodSetMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
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_METHOD_SET
discriminator value for PaymentMethodMethodSetMessage- See Also:
-
-
Method Details
-
getMethod
String getMethod()Payment Method after the Set Method update action.
- Returns:
- method
-
getOldMethod
String getOldMethod()Payment Method before the Set Method update action.
- Returns:
- oldMethod
-
setMethod
Payment Method after the Set Method update action.
- Parameters:
method
- value to be set
-
setOldMethod
Payment Method before the Set Method update action.
- Parameters:
oldMethod
- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodMethodSetMessage
-
of
factory method to create a shallow copy PaymentMethodMethodSetMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodMethodSetMessage copyDeep()- Specified by:
copyDeep
in interfaceBaseResource
- Specified by:
copyDeep
in interfaceMessage
-
deepCopy
@Nullable static PaymentMethodMethodSetMessage deepCopy(@Nullable PaymentMethodMethodSetMessage template) factory method to create a deep copy of PaymentMethodMethodSetMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodMethodSetMessage- Returns:
- builder
-
builder
create builder for PaymentMethodMethodSetMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodMethodSetMessage
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
-