Interface PaymentMethodPaymentMethodStatusSetMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,Versioned<Message>
Generated after a successful Set PaymentMethodStatus update action.
Example to create an instance using the builder pattern
PaymentMethodPaymentMethodStatusSetMessage paymentMethodPaymentMethodStatusSetMessage = PaymentMethodPaymentMethodStatusSetMessage.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 PaymentMethodPaymentMethodStatusSetMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for PaymentMethodPaymentMethodStatusSetMessagecreate builder for PaymentMethodPaymentMethodStatusSetMessage instancecopyDeep()
factory method to create a deep copy of PaymentMethodPaymentMethodStatusSetMessageStatus of the Payment Method before the Set PaymentMethodStatus update action.Status of the Payment Method after the Set PaymentMethodStatus update action.of()
factory methodof
(PaymentMethodPaymentMethodStatusSetMessage template) factory method to create a shallow copy PaymentMethodPaymentMethodStatusSetMessagevoid
setOldStatus
(PaymentMethodStatus oldStatus) Status of the Payment Method before the Set PaymentMethodStatus update action.void
setStatus
(PaymentMethodStatus status) Status of the Payment Method after the Set PaymentMethodStatus update action.static com.fasterxml.jackson.core.type.TypeReference<PaymentMethodPaymentMethodStatusSetMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withPaymentMethodPaymentMethodStatusSetMessage
(Function<PaymentMethodPaymentMethodStatusSetMessage, 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_METHOD_STATUS_SET
discriminator value for PaymentMethodPaymentMethodStatusSetMessage- See Also:
-
-
Method Details
-
getStatus
PaymentMethodStatus getStatus()Status of the Payment Method after the Set PaymentMethodStatus update action.
- Returns:
- status
-
getOldStatus
PaymentMethodStatus getOldStatus()Status of the Payment Method before the Set PaymentMethodStatus update action.
- Returns:
- oldStatus
-
setStatus
Status of the Payment Method after the Set PaymentMethodStatus update action.
- Parameters:
status
- value to be set
-
setOldStatus
Status of the Payment Method before the Set PaymentMethodStatus update action.
- Parameters:
oldStatus
- value to be set
-
of
factory method- Returns:
- instance of PaymentMethodPaymentMethodStatusSetMessage
-
of
static PaymentMethodPaymentMethodStatusSetMessage of(PaymentMethodPaymentMethodStatusSetMessage template) factory method to create a shallow copy PaymentMethodPaymentMethodStatusSetMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
PaymentMethodPaymentMethodStatusSetMessage copyDeep()- Specified by:
copyDeep
in interfaceBaseResource
- Specified by:
copyDeep
in interfaceMessage
-
deepCopy
@Nullable static PaymentMethodPaymentMethodStatusSetMessage deepCopy(@Nullable PaymentMethodPaymentMethodStatusSetMessage template) factory method to create a deep copy of PaymentMethodPaymentMethodStatusSetMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for PaymentMethodPaymentMethodStatusSetMessage- Returns:
- builder
-
builder
static PaymentMethodPaymentMethodStatusSetMessageBuilder builder(PaymentMethodPaymentMethodStatusSetMessage template) create builder for PaymentMethodPaymentMethodStatusSetMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withPaymentMethodPaymentMethodStatusSetMessage
default <T> T withPaymentMethodPaymentMethodStatusSetMessage(Function<PaymentMethodPaymentMethodStatusSetMessage, 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<PaymentMethodPaymentMethodStatusSetMessage> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-