Class OrderCreateSessionParams.Body.Builder
-
- All Implemented Interfaces:
public final class OrderCreateSessionParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
items
final OrderCreateSessionParams.Body.Builder items(List<Item> items)
List of items in the shopping cart
-
items
final OrderCreateSessionParams.Body.Builder items(JsonField<List<Item>> items)
Sets Builder.items to an arbitrary JSON value.
You should usually call Builder.items with a well-typed
List<Item>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addItem
final OrderCreateSessionParams.Body.Builder addItem(Item item)
-
onExitRedirectUrl
final OrderCreateSessionParams.Body.Builder onExitRedirectUrl(String onExitRedirectUrl)
The URL to redirect the customer to on checkout exit
-
onExitRedirectUrl
final OrderCreateSessionParams.Body.Builder onExitRedirectUrl(JsonField<String> onExitRedirectUrl)
Sets Builder.onExitRedirectUrl to an arbitrary JSON value.
You should usually call Builder.onExitRedirectUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
onSuccessRedirectUrl
final OrderCreateSessionParams.Body.Builder onSuccessRedirectUrl(String onSuccessRedirectUrl)
The URL to redirect the customer to on checkout success
-
onSuccessRedirectUrl
final OrderCreateSessionParams.Body.Builder onSuccessRedirectUrl(JsonField<String> onSuccessRedirectUrl)
Sets Builder.onSuccessRedirectUrl to an arbitrary JSON value.
You should usually call Builder.onSuccessRedirectUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
externalCustomerId
final OrderCreateSessionParams.Body.Builder externalCustomerId(String externalCustomerId)
An optional ID unique to your organization representing the customer
-
externalCustomerId
final OrderCreateSessionParams.Body.Builder externalCustomerId(JsonField<String> externalCustomerId)
Sets Builder.externalCustomerId to an arbitrary JSON value.
You should usually call Builder.externalCustomerId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
externalOrderId
final OrderCreateSessionParams.Body.Builder externalOrderId(String externalOrderId)
An optional ID unique to your organization representing the order
-
externalOrderId
final OrderCreateSessionParams.Body.Builder externalOrderId(JsonField<String> externalOrderId)
Sets Builder.externalOrderId to an arbitrary JSON value.
You should usually call Builder.externalOrderId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final OrderCreateSessionParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final OrderCreateSessionParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final OrderCreateSessionParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final OrderCreateSessionParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final OrderCreateSessionParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final OrderCreateSessionParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.items() .onExitRedirectUrl() .onSuccessRedirectUrl()
-
-
-
-