Package com.stripe.param
Class TokenCreateParams.Builder
java.lang.Object
com.stripe.param.TokenCreateParams.Builder
- Enclosing class:
- TokenCreateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand(List<String> elements) Add all elements to `expand` list.Add an element to `expand` list.build()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.setAccount(TokenCreateParams.Account account) Information for the account this token will represent.setBankAccount(TokenCreateParams.BankAccount bankAccount) The bank account this token will represent.setCustomer(String customer) The customer (owned by the application's account) for which to create a token.setCvcUpdate(TokenCreateParams.CvcUpdate cvcUpdate) The updated CVC value this token will represent.setPerson(TokenCreateParams.Person person) Information for the person this token will represent.The PII this token will represent.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAccount
Information for the account this token will represent. -
setBankAccount
The bank account this token will represent. -
setCard
-
setCard
-
setCustomer
The customer (owned by the application's account) for which to create a token. This can be used only with an OAuth access token or Stripe-Account header. For more details, see Cloning Saved Payment Methods. -
setCvcUpdate
The updated CVC value this token will represent. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeTokenCreateParams.expandfor the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeTokenCreateParams.expandfor the field documentation. -
putExtraParam
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeTokenCreateParams.extraParamsfor the field documentation. -
putAllExtraParam
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeTokenCreateParams.extraParamsfor the field documentation. -
setPerson
Information for the person this token will represent. -
setPii
The PII this token will represent.
-