Interface CheckoutPaymentAuthorizationFailedEvent
- All Superinterfaces:
Event
Generated when an attempt to authorize a payment fails in Checkout. This failure could result from insufficient funds, incorrect payment details, expired cards, or risk related rejections.
Example to create an instance using the builder pattern
CheckoutPaymentAuthorizationFailedEvent checkoutPaymentAuthorizationFailedEvent = CheckoutPaymentAuthorizationFailedEvent.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 String
discriminator value for CheckoutPaymentAuthorizationFailedEvent -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CheckoutPaymentAuthorizationFailedEventcreate builder for CheckoutPaymentAuthorizationFailedEvent instancecopyDeep()
factory method to create a deep copy of CheckoutPaymentAuthorizationFailedEvent@NotNull @Valid CheckoutMessagePaymentsPayloadBaseData
getData()
An object containing details of the payment authorization that failed.@NotNull EventSubscriptionResourceTypeId
The type of resource targeted by the Event.of()
factory methodof
(CheckoutPaymentAuthorizationFailedEvent template) factory method to create a shallow copy CheckoutPaymentAuthorizationFailedEventvoid
An object containing details of the payment authorization that failed.void
setResourceType
(EventSubscriptionResourceTypeId resourceType) set resourceTypestatic com.fasterxml.jackson.core.type.TypeReference<CheckoutPaymentAuthorizationFailedEvent>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCheckoutPaymentAuthorizationFailedEvent
(Function<CheckoutPaymentAuthorizationFailedEvent, 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_AUTHORIZATION_FAILED
discriminator value for CheckoutPaymentAuthorizationFailedEvent- See Also:
-
-
Method Details
-
getResourceType
Description copied from interface:Event
The type of resource targeted by the Event.
- Specified by:
getResourceType
in interfaceEvent
- Returns:
- resourceType
-
getData
An object containing details of the payment authorization that failed.
- Returns:
- data
-
setResourceType
set resourceType- Specified by:
setResourceType
in interfaceEvent
- Parameters:
resourceType
- value to be set
-
setData
An object containing details of the payment authorization that failed.
- Parameters:
data
- value to be set
-
of
factory method- Returns:
- instance of CheckoutPaymentAuthorizationFailedEvent
-
of
factory method to create a shallow copy CheckoutPaymentAuthorizationFailedEvent- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
CheckoutPaymentAuthorizationFailedEvent copyDeep() -
deepCopy
@Nullable static CheckoutPaymentAuthorizationFailedEvent deepCopy(@Nullable CheckoutPaymentAuthorizationFailedEvent template) factory method to create a deep copy of CheckoutPaymentAuthorizationFailedEvent- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CheckoutPaymentAuthorizationFailedEvent- Returns:
- builder
-
builder
static CheckoutPaymentAuthorizationFailedEventBuilder builder(CheckoutPaymentAuthorizationFailedEvent template) create builder for CheckoutPaymentAuthorizationFailedEvent instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCheckoutPaymentAuthorizationFailedEvent
default <T> T withCheckoutPaymentAuthorizationFailedEvent(Function<CheckoutPaymentAuthorizationFailedEvent, 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<CheckoutPaymentAuthorizationFailedEvent> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-