Package com.bennyapi.models.payment
Class PaymentCreateIntentResponse.Builder
-
- All Implemented Interfaces:
public final class PaymentCreateIntentResponse.BuilderA builder for PaymentCreateIntentResponse.
-
-
Method Summary
Modifier and Type Method Description final PaymentCreateIntentResponse.BuilderpaymentIntentId(String paymentIntentId)The payment intent ID. final PaymentCreateIntentResponse.BuilderpaymentIntentId(JsonField<String> paymentIntentId)Sets Builder.paymentIntentId to an arbitrary JSON value. final PaymentCreateIntentResponse.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final PaymentCreateIntentResponse.BuilderputAdditionalProperty(String key, JsonValue value)final PaymentCreateIntentResponse.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final PaymentCreateIntentResponse.BuilderremoveAdditionalProperty(String key)final PaymentCreateIntentResponse.BuilderremoveAllAdditionalProperties(Set<String> keys)final PaymentCreateIntentResponsebuild()Returns an immutable instance of PaymentCreateIntentResponse. -
-
Method Detail
-
paymentIntentId
final PaymentCreateIntentResponse.Builder paymentIntentId(String paymentIntentId)
The payment intent ID. Payment intents expire after 1 hour.
-
paymentIntentId
final PaymentCreateIntentResponse.Builder paymentIntentId(JsonField<String> paymentIntentId)
Sets Builder.paymentIntentId to an arbitrary JSON value.
You should usually call Builder.paymentIntentId 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 PaymentCreateIntentResponse.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final PaymentCreateIntentResponse.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PaymentCreateIntentResponse.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PaymentCreateIntentResponse.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PaymentCreateIntentResponse.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PaymentCreateIntentResponse build()
Returns an immutable instance of PaymentCreateIntentResponse.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.paymentIntentId()
-
-
-
-