Class PaymentCreateParams.Builder
-
- All Implemented Interfaces:
public final class PaymentCreateParams.BuilderA builder for PaymentCreateParams.
-
-
Method Summary
-
-
Method Detail
-
body
final PaymentCreateParams.Builder body(PaymentCreateParams.CreatePaymentRequest 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 PaymentCreateParams.Builder amount(Long amount)
-
amount
final PaymentCreateParams.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.
-
externalBankAccountToken
final PaymentCreateParams.Builder externalBankAccountToken(String externalBankAccountToken)
-
externalBankAccountToken
final PaymentCreateParams.Builder externalBankAccountToken(JsonField<String> externalBankAccountToken)
Sets Builder.externalBankAccountToken to an arbitrary JSON value.
You should usually call Builder.externalBankAccountToken with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
financialAccountToken
final PaymentCreateParams.Builder financialAccountToken(String financialAccountToken)
-
financialAccountToken
final PaymentCreateParams.Builder financialAccountToken(JsonField<String> financialAccountToken)
Sets Builder.financialAccountToken to an arbitrary JSON value.
You should usually call Builder.financialAccountToken with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
method
final PaymentCreateParams.Builder method(PaymentCreateParams.Method method)
-
method
final PaymentCreateParams.Builder method(JsonField<PaymentCreateParams.Method> method)
Sets Builder.method to an arbitrary JSON value.
You should usually call Builder.method with a well-typed Method value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
methodAttributes
final PaymentCreateParams.Builder methodAttributes(PaymentCreateParams.PaymentMethodRequestAttributes methodAttributes)
-
methodAttributes
final PaymentCreateParams.Builder methodAttributes(JsonField<PaymentCreateParams.PaymentMethodRequestAttributes> methodAttributes)
Sets Builder.methodAttributes to an arbitrary JSON value.
You should usually call Builder.methodAttributes with a well-typed PaymentMethodRequestAttributes value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final PaymentCreateParams.Builder type(PaymentCreateParams.Type type)
-
type
final PaymentCreateParams.Builder type(JsonField<PaymentCreateParams.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
token
final PaymentCreateParams.Builder token(String token)
Customer-provided token that will serve as an idempotency token. This token will become the transaction token.
-
token
final PaymentCreateParams.Builder token(JsonField<String> token)
Sets Builder.token to an arbitrary JSON value.
You should usually call Builder.token with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
memo
final PaymentCreateParams.Builder memo(String memo)
-
memo
final PaymentCreateParams.Builder memo(JsonField<String> memo)
Sets Builder.memo to an arbitrary JSON value.
You should usually call Builder.memo with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
userDefinedId
final PaymentCreateParams.Builder userDefinedId(String userDefinedId)
-
userDefinedId
final PaymentCreateParams.Builder userDefinedId(JsonField<String> userDefinedId)
Sets Builder.userDefinedId to an arbitrary JSON value.
You should usually call Builder.userDefinedId 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 PaymentCreateParams.Builder additionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
putAdditionalBodyProperty
final PaymentCreateParams.Builder putAdditionalBodyProperty(String key, JsonValue value)
-
putAllAdditionalBodyProperties
final PaymentCreateParams.Builder putAllAdditionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
removeAdditionalBodyProperty
final PaymentCreateParams.Builder removeAdditionalBodyProperty(String key)
-
removeAllAdditionalBodyProperties
final PaymentCreateParams.Builder removeAllAdditionalBodyProperties(Set<String> keys)
-
additionalHeaders
final PaymentCreateParams.Builder additionalHeaders(Headers additionalHeaders)
-
additionalHeaders
final PaymentCreateParams.Builder additionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
putAdditionalHeader
final PaymentCreateParams.Builder putAdditionalHeader(String name, String value)
-
putAdditionalHeaders
final PaymentCreateParams.Builder putAdditionalHeaders(String name, Iterable<String> values)
-
putAllAdditionalHeaders
final PaymentCreateParams.Builder putAllAdditionalHeaders(Headers additionalHeaders)
-
putAllAdditionalHeaders
final PaymentCreateParams.Builder putAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
replaceAdditionalHeaders
final PaymentCreateParams.Builder replaceAdditionalHeaders(String name, String value)
-
replaceAdditionalHeaders
final PaymentCreateParams.Builder replaceAdditionalHeaders(String name, Iterable<String> values)
-
replaceAllAdditionalHeaders
final PaymentCreateParams.Builder replaceAllAdditionalHeaders(Headers additionalHeaders)
-
replaceAllAdditionalHeaders
final PaymentCreateParams.Builder replaceAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
removeAdditionalHeaders
final PaymentCreateParams.Builder removeAdditionalHeaders(String name)
-
removeAllAdditionalHeaders
final PaymentCreateParams.Builder removeAllAdditionalHeaders(Set<String> names)
-
additionalQueryParams
final PaymentCreateParams.Builder additionalQueryParams(QueryParams additionalQueryParams)
-
additionalQueryParams
final PaymentCreateParams.Builder additionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
putAdditionalQueryParam
final PaymentCreateParams.Builder putAdditionalQueryParam(String key, String value)
-
putAdditionalQueryParams
final PaymentCreateParams.Builder putAdditionalQueryParams(String key, Iterable<String> values)
-
putAllAdditionalQueryParams
final PaymentCreateParams.Builder putAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
putAllAdditionalQueryParams
final PaymentCreateParams.Builder putAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
replaceAdditionalQueryParams
final PaymentCreateParams.Builder replaceAdditionalQueryParams(String key, String value)
-
replaceAdditionalQueryParams
final PaymentCreateParams.Builder replaceAdditionalQueryParams(String key, Iterable<String> values)
-
replaceAllAdditionalQueryParams
final PaymentCreateParams.Builder replaceAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
replaceAllAdditionalQueryParams
final PaymentCreateParams.Builder replaceAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
removeAdditionalQueryParams
final PaymentCreateParams.Builder removeAdditionalQueryParams(String key)
-
removeAllAdditionalQueryParams
final PaymentCreateParams.Builder removeAllAdditionalQueryParams(Set<String> keys)
-
build
final PaymentCreateParams build()
Returns an immutable instance of PaymentCreateParams.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.amount() .externalBankAccountToken() .financialAccountToken() .method() .methodAttributes() .type()
-
-
-
-