Interface CheckoutPaymentChargedEvent
- All Superinterfaces:
Event
Generated when a payment is successfully charged in Checkout. This event indicates that the authorized amount has been successfully debited from your customer's account.
Example to create an instance using the builder pattern
CheckoutPaymentChargedEvent checkoutPaymentChargedEvent = CheckoutPaymentChargedEvent.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 CheckoutPaymentChargedEvent -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CheckoutPaymentChargedEventbuilder
(CheckoutPaymentChargedEvent template) create builder for CheckoutPaymentChargedEvent instancecopyDeep()
static CheckoutPaymentChargedEvent
deepCopy
(CheckoutPaymentChargedEvent template) factory method to create a deep copy of CheckoutPaymentChargedEvent@NotNull @Valid CheckoutMessagePaymentsPayloadBaseData
getData()
An object containing details of the successful payment charge.@NotNull EventSubscriptionResourceTypeId
The type of resource targeted by the Event.static CheckoutPaymentChargedEvent
of()
factory methodstatic CheckoutPaymentChargedEvent
of
(CheckoutPaymentChargedEvent template) factory method to create a shallow copy CheckoutPaymentChargedEventvoid
An object containing details of the successful payment charge.void
setResourceType
(EventSubscriptionResourceTypeId resourceType) set resourceTypestatic com.fasterxml.jackson.core.type.TypeReference<CheckoutPaymentChargedEvent>
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_CHARGED
discriminator value for CheckoutPaymentChargedEvent- 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 successful 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 successful payment charge.
- Parameters:
data
- value to be set
-
of
factory method- Returns:
- instance of CheckoutPaymentChargedEvent
-
of
factory method to create a shallow copy CheckoutPaymentChargedEvent- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
copyDeep
CheckoutPaymentChargedEvent copyDeep() -
deepCopy
@Nullable static CheckoutPaymentChargedEvent deepCopy(@Nullable CheckoutPaymentChargedEvent template) factory method to create a deep copy of CheckoutPaymentChargedEvent- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CheckoutPaymentChargedEvent- Returns:
- builder
-
builder
create builder for CheckoutPaymentChargedEvent instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCheckoutPaymentChargedEvent
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-