Class OrderCreateSessionParams.Body
-
- All Implemented Interfaces:
public final class OrderCreateSessionParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOrderCreateSessionParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final List<Item>items()List of items in the shopping cart final StringonExitRedirectUrl()The URL to redirect the customer to on checkout exit final StringonSuccessRedirectUrl()The URL to redirect the customer to on checkout success final Optional<String>externalCustomerId()An optional ID unique to your organization representing the customer final Optional<String>externalOrderId()An optional ID unique to your organization representing the order final JsonField<List<Item>>_items()Returns the raw JSON value of items. final JsonField<String>_onExitRedirectUrl()Returns the raw JSON value of onExitRedirectUrl. final JsonField<String>_onSuccessRedirectUrl()Returns the raw JSON value of onSuccessRedirectUrl. final JsonField<String>_externalCustomerId()Returns the raw JSON value of externalCustomerId. final JsonField<String>_externalOrderId()Returns the raw JSON value of externalOrderId. final Map<String, JsonValue>_additionalProperties()final OrderCreateSessionParams.Body.BuildertoBuilder()final OrderCreateSessionParams.Bodyvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OrderCreateSessionParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
onExitRedirectUrl
final String onExitRedirectUrl()
The URL to redirect the customer to on checkout exit
-
onSuccessRedirectUrl
final String onSuccessRedirectUrl()
The URL to redirect the customer to on checkout success
-
externalCustomerId
final Optional<String> externalCustomerId()
An optional ID unique to your organization representing the customer
-
externalOrderId
final Optional<String> externalOrderId()
An optional ID unique to your organization representing the order
-
_items
final JsonField<List<Item>> _items()
Returns the raw JSON value of items.
Unlike items, this method doesn't throw if the JSON field has an unexpected type.
-
_onExitRedirectUrl
final JsonField<String> _onExitRedirectUrl()
Returns the raw JSON value of onExitRedirectUrl.
Unlike onExitRedirectUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_onSuccessRedirectUrl
final JsonField<String> _onSuccessRedirectUrl()
Returns the raw JSON value of onSuccessRedirectUrl.
Unlike onSuccessRedirectUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_externalCustomerId
final JsonField<String> _externalCustomerId()
Returns the raw JSON value of externalCustomerId.
Unlike externalCustomerId, this method doesn't throw if the JSON field has an unexpected type.
-
_externalOrderId
final JsonField<String> _externalOrderId()
Returns the raw JSON value of externalOrderId.
Unlike externalOrderId, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final OrderCreateSessionParams.Body.Builder toBuilder()
-
validate
final OrderCreateSessionParams.Body validate()
-
builder
final static OrderCreateSessionParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.items() .onExitRedirectUrl() .onSuccessRedirectUrl()
-
-
-
-