Interface CheckoutPaymentChargeFailedEvent
- All Superinterfaces:
Event
Generated when an attempt to charge a payment fails in Checkout. Even if a payment was previously authorized, charging it may still fail.
Example to create an instance using the builder pattern
CheckoutPaymentChargeFailedEvent checkoutPaymentChargeFailedEvent = CheckoutPaymentChargeFailedEvent.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 CheckoutPaymentChargeFailedEvent -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CheckoutPaymentChargeFailedEventbuilder
(CheckoutPaymentChargeFailedEvent template) create builder for CheckoutPaymentChargeFailedEvent instancecopyDeep()
deepCopy
(CheckoutPaymentChargeFailedEvent template) factory method to create a deep copy of CheckoutPaymentChargeFailedEvent@NotNull @Valid CheckoutMessagePaymentsPayloadBaseData
getData()
An object containing details of the failed payment charge.@NotNull EventSubscriptionResourceTypeId
The type of resource targeted by the Event.of()
factory methodof
(CheckoutPaymentChargeFailedEvent template) factory method to create a shallow copy CheckoutPaymentChargeFailedEventvoid
An object containing details of the failed payment charge.void
setResourceType
(EventSubscriptionResourceTypeId resourceType) set resourceTypestatic com.fasterxml.jackson.core.type.TypeReference<CheckoutPaymentChargeFailedEvent>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.event.Event
getCreatedAt, getId, getNotificationType, getType, setCreatedAt, setId, setNotificationType, withEvent
-
Field Details
-
CHECKOUT_PAYMENT_CHARGE_FAILED
discriminator value for CheckoutPaymentChargeFailedEvent- 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 failed payment charge.
- Returns:
- data
-
setResourceType
set resourceType- Specified by:
setResourceType
in interfaceEvent
- Parameters:
resourceType
- value to be set
-
setData
An object containing details of the failed payment charge.
- Parameters:
data
- value to be set
-
of
factory method- Returns:
- instance of CheckoutPaymentChargeFailedEvent
-
of
factory method to create a shallow copy CheckoutPaymentChargeFailedEvent- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
CheckoutPaymentChargeFailedEvent copyDeep() -
deepCopy
@Nullable static CheckoutPaymentChargeFailedEvent deepCopy(@Nullable CheckoutPaymentChargeFailedEvent template) factory method to create a deep copy of CheckoutPaymentChargeFailedEvent- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CheckoutPaymentChargeFailedEvent- Returns:
- builder
-
builder
create builder for CheckoutPaymentChargeFailedEvent instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCheckoutPaymentChargeFailedEvent
default <T> T withCheckoutPaymentChargeFailedEvent(Function<CheckoutPaymentChargeFailedEvent, 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<CheckoutPaymentChargeFailedEvent> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-