Class PaymentCreateIntentParams.Body.Builder
-
- All Implemented Interfaces:
public final class PaymentCreateIntentParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
amount
final PaymentCreateIntentParams.Body.Builder amount(Long amount)
The amount in cents for the payment.
-
amount
final PaymentCreateIntentParams.Body.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.Body.Builder externalUserId(String externalUserId)
Your organization's representation of the customer ID.
-
externalUserId
final PaymentCreateIntentParams.Body.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.Body.Builder fulfillmentAddress(Address fulfillmentAddress)
The fulfillment address
-
fulfillmentAddress
final PaymentCreateIntentParams.Body.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.Body.Builder fulfillmentType(FulfillmentType fulfillmentType)
The fulfillment type.
-
fulfillmentType
final PaymentCreateIntentParams.Body.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.Body.Builder paymentMethodId(String paymentMethodId)
The payment method ID.
-
paymentMethodId
final PaymentCreateIntentParams.Body.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.Body.Builder tenderType(TenderType tenderType)
The tender type of SNAP or EBT Cash.
-
tenderType
final PaymentCreateIntentParams.Body.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.Body.Builder orderId(String orderId)
Your organization's representation of the order ID ID.
-
orderId
final PaymentCreateIntentParams.Body.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.
-
additionalProperties
final PaymentCreateIntentParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final PaymentCreateIntentParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PaymentCreateIntentParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PaymentCreateIntentParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PaymentCreateIntentParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PaymentCreateIntentParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.amount() .externalUserId() .fulfillmentAddress() .fulfillmentType() .paymentMethodId() .tenderType()
-
-
-
-