Class PaymentCreateIntentParams
-
- All Implemented Interfaces:
-
com.bennyapi.core.Params
public final class PaymentCreateIntentParams implements Params
Creates a payment intent that will be passed to the appropriate web or mobile SDK to collect payment. A payment intent represents an "intended" money movement, and will expire after 1 hour if not completed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPaymentCreateIntentParams.BuilderA builder for PaymentCreateIntentParams.
public final classPaymentCreateIntentParams.Body
-
Method Summary
Modifier and Type Method Description final Longamount()The amount in cents for the payment. final StringexternalUserId()Your organization's representation of the customer ID. final AddressfulfillmentAddress()The fulfillment address final FulfillmentTypefulfillmentType()The fulfillment type. final StringpaymentMethodId()The payment method ID. final TenderTypetenderType()The tender type of SNAP or EBT Cash. final Optional<String>orderId()Your organization's representation of the order ID ID. final JsonField<Long>_amount()Returns the raw JSON value of amount. final JsonField<String>_externalUserId()Returns the raw JSON value of externalUserId. final JsonField<Address>_fulfillmentAddress()Returns the raw JSON value of fulfillmentAddress. final JsonField<FulfillmentType>_fulfillmentType()Returns the raw JSON value of fulfillmentType. final JsonField<String>_paymentMethodId()Returns the raw JSON value of paymentMethodId. final JsonField<TenderType>_tenderType()Returns the raw JSON value of tenderType. final JsonField<String>_orderId()Returns the raw JSON value of orderId. 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 PaymentCreateIntentParams.BuildertoBuilder()final PaymentCreateIntentParams.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 PaymentCreateIntentParams.Builderbuilder()Returns a mutable builder for constructing an instance of PaymentCreateIntentParams. -
-
Method Detail
-
externalUserId
final String externalUserId()
Your organization's representation of the customer ID.
-
fulfillmentAddress
final Address fulfillmentAddress()
The fulfillment address
-
fulfillmentType
final FulfillmentType fulfillmentType()
The fulfillment type.
-
paymentMethodId
final String paymentMethodId()
The payment method ID.
-
tenderType
final TenderType tenderType()
The tender type of SNAP or EBT Cash.
-
_amount
final JsonField<Long> _amount()
Returns the raw JSON value of amount.
Unlike amount, this method doesn't throw if the JSON field has an unexpected type.
-
_externalUserId
final JsonField<String> _externalUserId()
Returns the raw JSON value of externalUserId.
Unlike externalUserId, this method doesn't throw if the JSON field has an unexpected type.
-
_fulfillmentAddress
final JsonField<Address> _fulfillmentAddress()
Returns the raw JSON value of fulfillmentAddress.
Unlike fulfillmentAddress, this method doesn't throw if the JSON field has an unexpected type.
-
_fulfillmentType
final JsonField<FulfillmentType> _fulfillmentType()
Returns the raw JSON value of fulfillmentType.
Unlike fulfillmentType, this method doesn't throw if the JSON field has an unexpected type.
-
_paymentMethodId
final JsonField<String> _paymentMethodId()
Returns the raw JSON value of paymentMethodId.
Unlike paymentMethodId, this method doesn't throw if the JSON field has an unexpected type.
-
_tenderType
final JsonField<TenderType> _tenderType()
Returns the raw JSON value of tenderType.
Unlike tenderType, this method doesn't throw if the JSON field has an unexpected type.
-
_orderId
final JsonField<String> _orderId()
Returns the raw JSON value of orderId.
Unlike orderId, 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 PaymentCreateIntentParams.Builder toBuilder()
-
_body
final PaymentCreateIntentParams.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 PaymentCreateIntentParams.Builder builder()
Returns a mutable builder for constructing an instance of PaymentCreateIntentParams.
The following fields are required:
.amount() .externalUserId() .fulfillmentAddress() .fulfillmentType() .paymentMethodId() .tenderType()
-
-
-
-