Interface CheckoutPaymentRefundFailedEvent
- All Superinterfaces:
Event
Generated when an attempt to refund a payment refund fails in Checkout. This failure indicates that the planned refund amount was not successfully sent to your customer’s account.
Example to create an instance using the builder pattern
CheckoutPaymentRefundFailedEvent checkoutPaymentRefundFailedEvent = CheckoutPaymentRefundFailedEvent.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 CheckoutPaymentRefundFailedEvent -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CheckoutPaymentRefundFailedEventbuilder
(CheckoutPaymentRefundFailedEvent template) create builder for CheckoutPaymentRefundFailedEvent instancecopyDeep()
deepCopy
(CheckoutPaymentRefundFailedEvent template) factory method to create a deep copy of CheckoutPaymentRefundFailedEvent@NotNull @Valid CheckoutMessagePaymentsPayloadBaseData
getData()
An object containing details of the failed payment refund attempt.@NotNull EventSubscriptionResourceTypeId
The type of resource targeted by the Event.of()
factory methodof
(CheckoutPaymentRefundFailedEvent template) factory method to create a shallow copy CheckoutPaymentRefundFailedEventvoid
An object containing details of the failed payment refund attempt.void
setResourceType
(EventSubscriptionResourceTypeId resourceType) set resourceTypestatic com.fasterxml.jackson.core.type.TypeReference<CheckoutPaymentRefundFailedEvent>
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_REFUND_FAILED
discriminator value for CheckoutPaymentRefundFailedEvent- 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 refund attempt.
- 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 refund attempt.
- Parameters:
data
- value to be set
-
of
factory method- Returns:
- instance of CheckoutPaymentRefundFailedEvent
-
of
factory method to create a shallow copy CheckoutPaymentRefundFailedEvent- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
CheckoutPaymentRefundFailedEvent copyDeep() -
deepCopy
@Nullable static CheckoutPaymentRefundFailedEvent deepCopy(@Nullable CheckoutPaymentRefundFailedEvent template) factory method to create a deep copy of CheckoutPaymentRefundFailedEvent- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CheckoutPaymentRefundFailedEvent- Returns:
- builder
-
builder
create builder for CheckoutPaymentRefundFailedEvent instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCheckoutPaymentRefundFailedEvent
default <T> T withCheckoutPaymentRefundFailedEvent(Function<CheckoutPaymentRefundFailedEvent, 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<CheckoutPaymentRefundFailedEvent> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-