Class CheckoutPaymentCancelAuthorizationFailedEventBuilder
java.lang.Object
com.commercetools.api.models.event.CheckoutPaymentCancelAuthorizationFailedEventBuilder
- All Implemented Interfaces:
Builder<CheckoutPaymentCancelAuthorizationFailedEvent>
public class CheckoutPaymentCancelAuthorizationFailedEventBuilder
extends Object
implements Builder<CheckoutPaymentCancelAuthorizationFailedEvent>
CheckoutPaymentCancelAuthorizationFailedEventBuilder
Example to create an instance using the builder pattern
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()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds CheckoutPaymentCancelAuthorizationFailedEvent with checking for non-null required valuesbuilds CheckoutPaymentCancelAuthorizationFailedEvent without checking for non-null required valuescreatedAt
(ZonedDateTime createdAt) Date and time (UTC) the Event was generated.An object containing details of the payment authorization that could not be cancelled.data
(Function<CheckoutMessagePaymentsPayloadBaseDataBuilder, CheckoutMessagePaymentsPayloadBaseDataBuilder> builder) An object containing details of the payment authorization that could not be cancelled.Date and time (UTC) the Event was generated.getData()
An object containing details of the payment authorization that could not be cancelled.getId()
Unique identifier of the Event.value of notificationType}value of resourceType}Unique identifier of the Event.notificationType
(String notificationType) set the value to the notificationTypeof()
factory method for an instance of CheckoutPaymentCancelAuthorizationFailedEventBuildercreate builder for CheckoutPaymentCancelAuthorizationFailedEvent instanceresourceType
(EventSubscriptionResourceTypeId resourceType) set the value to the resourceTypewithData
(Function<CheckoutMessagePaymentsPayloadBaseDataBuilder, CheckoutMessagePaymentsPayloadBaseData> builder) An object containing details of the payment authorization that could not be cancelled.
-
Constructor Details
-
CheckoutPaymentCancelAuthorizationFailedEventBuilder
public CheckoutPaymentCancelAuthorizationFailedEventBuilder()
-
-
Method Details
-
id
Unique identifier of the Event.
- Parameters:
id
- value to be set- Returns:
- Builder
-
notificationType
public CheckoutPaymentCancelAuthorizationFailedEventBuilder notificationType(String notificationType) set the value to the notificationType- Parameters:
notificationType
- value to be set- Returns:
- Builder
-
resourceType
public CheckoutPaymentCancelAuthorizationFailedEventBuilder resourceType(EventSubscriptionResourceTypeId resourceType) set the value to the resourceType- Parameters:
resourceType
- value to be set- Returns:
- Builder
-
createdAt
Date and time (UTC) the Event was generated.
- Parameters:
createdAt
- value to be set- Returns:
- Builder
-
data
public CheckoutPaymentCancelAuthorizationFailedEventBuilder data(Function<CheckoutMessagePaymentsPayloadBaseDataBuilder, CheckoutMessagePaymentsPayloadBaseDataBuilder> builder) An object containing details of the payment authorization that could not be cancelled.
- Parameters:
builder
- function to build the data value- Returns:
- Builder
-
withData
public CheckoutPaymentCancelAuthorizationFailedEventBuilder withData(Function<CheckoutMessagePaymentsPayloadBaseDataBuilder, CheckoutMessagePaymentsPayloadBaseData> builder) An object containing details of the payment authorization that could not be cancelled.
- Parameters:
builder
- function to build the data value- Returns:
- Builder
-
data
public CheckoutPaymentCancelAuthorizationFailedEventBuilder data(CheckoutMessagePaymentsPayloadBaseData data) An object containing details of the payment authorization that could not be cancelled.
- Parameters:
data
- value to be set- Returns:
- Builder
-
getId
Unique identifier of the Event.
- Returns:
- id
-
getNotificationType
value of notificationType}- Returns:
- notificationType
-
getResourceType
value of resourceType}- Returns:
- resourceType
-
getCreatedAt
Date and time (UTC) the Event was generated.
- Returns:
- createdAt
-
getData
An object containing details of the payment authorization that could not be cancelled.
- Returns:
- data
-
build
builds CheckoutPaymentCancelAuthorizationFailedEvent with checking for non-null required values- Specified by:
build
in interfaceBuilder<CheckoutPaymentCancelAuthorizationFailedEvent>
- Returns:
- CheckoutPaymentCancelAuthorizationFailedEvent
-
buildUnchecked
builds CheckoutPaymentCancelAuthorizationFailedEvent without checking for non-null required values- Returns:
- CheckoutPaymentCancelAuthorizationFailedEvent
-
of
factory method for an instance of CheckoutPaymentCancelAuthorizationFailedEventBuilder- Returns:
- builder
-
of
public static CheckoutPaymentCancelAuthorizationFailedEventBuilder of(CheckoutPaymentCancelAuthorizationFailedEvent template) create builder for CheckoutPaymentCancelAuthorizationFailedEvent instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-