Class PaymentCreateIntentParams.Builder
-
- All Implemented Interfaces:
public final class PaymentCreateIntentParams.BuilderA builder for PaymentCreateIntentParams.
-
-
Method Summary
-
-
Method Detail
-
body
final PaymentCreateIntentParams.Builder body(PaymentCreateIntentParams.Body body)
Sets the entire request body.
This is generally only useful if you are already constructing the body separately. Otherwise, it's more convenient to use the top-level setters instead:
-
amount
final PaymentCreateIntentParams.Builder amount(Long amount)
The amount in cents for the payment.
-
amount
final PaymentCreateIntentParams.Builder amount(JsonField<Long> amount)
Sets Builder.amount to an arbitrary JSON value.
You should usually call Builder.amount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
externalUserId
final PaymentCreateIntentParams.Builder externalUserId(String externalUserId)
Your organization's representation of the customer ID.
-
externalUserId
final PaymentCreateIntentParams.Builder externalUserId(JsonField<String> externalUserId)
Sets Builder.externalUserId to an arbitrary JSON value.
You should usually call Builder.externalUserId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fulfillmentAddress
final PaymentCreateIntentParams.Builder fulfillmentAddress(Address fulfillmentAddress)
The fulfillment address
-
fulfillmentAddress
final PaymentCreateIntentParams.Builder fulfillmentAddress(JsonField<Address> fulfillmentAddress)
Sets Builder.fulfillmentAddress to an arbitrary JSON value.
You should usually call Builder.fulfillmentAddress with a well-typed Address value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fulfillmentType
final PaymentCreateIntentParams.Builder fulfillmentType(FulfillmentType fulfillmentType)
The fulfillment type.
-
fulfillmentType
final PaymentCreateIntentParams.Builder fulfillmentType(JsonField<FulfillmentType> fulfillmentType)
Sets Builder.fulfillmentType to an arbitrary JSON value.
You should usually call Builder.fulfillmentType with a well-typed FulfillmentType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
paymentMethodId
final PaymentCreateIntentParams.Builder paymentMethodId(String paymentMethodId)
The payment method ID.
-
paymentMethodId
final PaymentCreateIntentParams.Builder paymentMethodId(JsonField<String> paymentMethodId)
Sets Builder.paymentMethodId to an arbitrary JSON value.
You should usually call Builder.paymentMethodId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tenderType
final PaymentCreateIntentParams.Builder tenderType(TenderType tenderType)
The tender type of SNAP or EBT Cash.
-
tenderType
final PaymentCreateIntentParams.Builder tenderType(JsonField<TenderType> tenderType)
Sets Builder.tenderType to an arbitrary JSON value.
You should usually call Builder.tenderType with a well-typed TenderType value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
orderId
final PaymentCreateIntentParams.Builder orderId(String orderId)
Your organization's representation of the order ID ID.
-
orderId
final PaymentCreateIntentParams.Builder orderId(JsonField<String> orderId)
Sets Builder.orderId to an arbitrary JSON value.
You should usually call Builder.orderId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalBodyProperties
final PaymentCreateIntentParams.Builder additionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
putAdditionalBodyProperty
final PaymentCreateIntentParams.Builder putAdditionalBodyProperty(String key, JsonValue value)
-
putAllAdditionalBodyProperties
final PaymentCreateIntentParams.Builder putAllAdditionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
removeAdditionalBodyProperty
final PaymentCreateIntentParams.Builder removeAdditionalBodyProperty(String key)
-
removeAllAdditionalBodyProperties
final PaymentCreateIntentParams.Builder removeAllAdditionalBodyProperties(Set<String> keys)
-
additionalHeaders
final PaymentCreateIntentParams.Builder additionalHeaders(Headers additionalHeaders)
-
additionalHeaders
final PaymentCreateIntentParams.Builder additionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
putAdditionalHeader
final PaymentCreateIntentParams.Builder putAdditionalHeader(String name, String value)
-
putAdditionalHeaders
final PaymentCreateIntentParams.Builder putAdditionalHeaders(String name, Iterable<String> values)
-
putAllAdditionalHeaders
final PaymentCreateIntentParams.Builder putAllAdditionalHeaders(Headers additionalHeaders)
-
putAllAdditionalHeaders
final PaymentCreateIntentParams.Builder putAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
replaceAdditionalHeaders
final PaymentCreateIntentParams.Builder replaceAdditionalHeaders(String name, String value)
-
replaceAdditionalHeaders
final PaymentCreateIntentParams.Builder replaceAdditionalHeaders(String name, Iterable<String> values)
-
replaceAllAdditionalHeaders
final PaymentCreateIntentParams.Builder replaceAllAdditionalHeaders(Headers additionalHeaders)
-
replaceAllAdditionalHeaders
final PaymentCreateIntentParams.Builder replaceAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
removeAdditionalHeaders
final PaymentCreateIntentParams.Builder removeAdditionalHeaders(String name)
-
removeAllAdditionalHeaders
final PaymentCreateIntentParams.Builder removeAllAdditionalHeaders(Set<String> names)
-
additionalQueryParams
final PaymentCreateIntentParams.Builder additionalQueryParams(QueryParams additionalQueryParams)
-
additionalQueryParams
final PaymentCreateIntentParams.Builder additionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
putAdditionalQueryParam
final PaymentCreateIntentParams.Builder putAdditionalQueryParam(String key, String value)
-
putAdditionalQueryParams
final PaymentCreateIntentParams.Builder putAdditionalQueryParams(String key, Iterable<String> values)
-
putAllAdditionalQueryParams
final PaymentCreateIntentParams.Builder putAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
putAllAdditionalQueryParams
final PaymentCreateIntentParams.Builder putAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
replaceAdditionalQueryParams
final PaymentCreateIntentParams.Builder replaceAdditionalQueryParams(String key, String value)
-
replaceAdditionalQueryParams
final PaymentCreateIntentParams.Builder replaceAdditionalQueryParams(String key, Iterable<String> values)
-
replaceAllAdditionalQueryParams
final PaymentCreateIntentParams.Builder replaceAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
replaceAllAdditionalQueryParams
final PaymentCreateIntentParams.Builder replaceAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
removeAdditionalQueryParams
final PaymentCreateIntentParams.Builder removeAdditionalQueryParams(String key)
-
removeAllAdditionalQueryParams
final PaymentCreateIntentParams.Builder removeAllAdditionalQueryParams(Set<String> keys)
-
build
final PaymentCreateIntentParams build()
Returns an immutable instance of PaymentCreateIntentParams.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.amount() .externalUserId() .fulfillmentAddress() .fulfillmentType() .paymentMethodId() .tenderType()
-
-
-
-