Class OrderCreateSessionParams
-
- All Implemented Interfaces:
-
com.bennyapi.core.Params
public final class OrderCreateSessionParams implements Params
Returns a unique URL for the Benny-hosted checkout session to complete an EBT order.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOrderCreateSessionParams.BuilderA builder for OrderCreateSessionParams.
public final classOrderCreateSessionParams.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>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final OrderCreateSessionParams.BuildertoBuilder()final OrderCreateSessionParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. Booleanequals(Object other)IntegerhashCode()StringtoString()final static OrderCreateSessionParams.Builderbuilder()Returns a mutable builder for constructing an instance of OrderCreateSessionParams. -
-
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.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final OrderCreateSessionParams.Builder toBuilder()
-
_body
final OrderCreateSessionParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
builder
final static OrderCreateSessionParams.Builder builder()
Returns a mutable builder for constructing an instance of OrderCreateSessionParams.
The following fields are required:
.items() .onExitRedirectUrl() .onSuccessRedirectUrl()
-
-
-
-