Interface CheckoutPaymentCancelAuthorizationFailedEvent
- All Superinterfaces:
Event
Generated when an attempt to cancel a payment authorization fails in Checkout. This could happen if the authorization has already been expired, been captured already or no longer valid.
Example to create an instance using the builder pattern
CheckoutPaymentCancelAuthorizationFailedEvent checkoutPaymentCancelAuthorizationFailedEvent = CheckoutPaymentCancelAuthorizationFailedEvent.builder()
.id("{id}")
.notificationType("{notificationType}")
.resourceType(EventSubscriptionResourceTypeId.CHECKOUT)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.data(dataBuilder -> dataBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CheckoutPaymentCancelAuthorizationFailedEvent -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CheckoutPaymentCancelAuthorizationFailedEventcreate builder for CheckoutPaymentCancelAuthorizationFailedEvent instancecopyDeep()factory method to create a deep copy of CheckoutPaymentCancelAuthorizationFailedEvent@NotNull @Valid CheckoutMessagePaymentsPayloadBaseDatagetData()An object containing details of the payment authorization that could not be cancelled.@NotNull EventSubscriptionResourceTypeIdThe type of resource targeted by the Event.of()factory methodfactory method to create a shallow copy CheckoutPaymentCancelAuthorizationFailedEventvoidAn object containing details of the payment authorization that could not be cancelled.voidsetResourceType(EventSubscriptionResourceTypeId resourceType) set resourceTypestatic com.fasterxml.jackson.core.type.TypeReference<CheckoutPaymentCancelAuthorizationFailedEvent>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCheckoutPaymentCancelAuthorizationFailedEvent(Function<CheckoutPaymentCancelAuthorizationFailedEvent, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.event.Event
getCreatedAt, getId, getNotificationType, getType, setCreatedAt, setId, setNotificationType, withEvent
-
Field Details
-
CHECKOUT_PAYMENT_CANCEL_AUTHORIZATION_FAILED
discriminator value for CheckoutPaymentCancelAuthorizationFailedEvent- See Also:
-
-
Method Details
-
getResourceType
Description copied from interface:EventThe type of resource targeted by the Event.
- Specified by:
getResourceTypein interfaceEvent- Returns:
- resourceType
-
getData
An object containing details of the payment authorization that could not be cancelled.
- Returns:
- data
-
setResourceType
set resourceType- Specified by:
setResourceTypein interfaceEvent- Parameters:
resourceType- value to be set
-
setData
An object containing details of the payment authorization that could not be cancelled.
- Parameters:
data- value to be set
-
of
factory method- Returns:
- instance of CheckoutPaymentCancelAuthorizationFailedEvent
-
of
static CheckoutPaymentCancelAuthorizationFailedEvent of(CheckoutPaymentCancelAuthorizationFailedEvent template) factory method to create a shallow copy CheckoutPaymentCancelAuthorizationFailedEvent- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
-
deepCopy
@Nullable static CheckoutPaymentCancelAuthorizationFailedEvent deepCopy(@Nullable CheckoutPaymentCancelAuthorizationFailedEvent template) factory method to create a deep copy of CheckoutPaymentCancelAuthorizationFailedEvent- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CheckoutPaymentCancelAuthorizationFailedEvent- Returns:
- builder
-
builder
static CheckoutPaymentCancelAuthorizationFailedEventBuilder builder(CheckoutPaymentCancelAuthorizationFailedEvent template) create builder for CheckoutPaymentCancelAuthorizationFailedEvent instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCheckoutPaymentCancelAuthorizationFailedEvent
default <T> T withCheckoutPaymentCancelAuthorizationFailedEvent(Function<CheckoutPaymentCancelAuthorizationFailedEvent, 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<CheckoutPaymentCancelAuthorizationFailedEvent> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-