Package com.stripe.param
Class TokenCreateParams.Builder
java.lang.Object
com.stripe.param.TokenCreateParams.Builder
- Enclosing class:
- TokenCreateParams
-
Constructor Summary
-
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 represents.setBankAccount
(TokenCreateParams.BankAccount bankAccount) The bank account this token will represent.The card this token will represent.The card this token will represent.setCustomer
(String customer) Create a token for the customer, which is owned by the application's account.setCvcUpdate
(TokenCreateParams.CvcUpdate cvcUpdate) The updated CVC value this token represents.setPerson
(TokenCreateParams.Person person) Information for the person this token represents.The PII this token represents.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAccount
Information for the account this token represents. -
setBankAccount
The bank account this token will represent. -
setCard
The card this token will represent. If you also pass in a customer, the card must be the ID of a card belonging to the customer. Otherwise, if you do not pass in a customer, this is a dictionary containing a user's credit card details, with the options described below. -
setCard
The card this token will represent. If you also pass in a customer, the card must be the ID of a card belonging to the customer. Otherwise, if you do not pass in a customer, this is a dictionary containing a user's credit card details, with the options described below. -
setCustomer
Create a token for the customer, which is owned by the application's account. You can only use this with an OAuth access token or Stripe-Account header. Learn more about cloning saved payment methods. -
setCvcUpdate
The updated CVC value this token represents. -
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.expand
for 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.expand
for 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.extraParams
for 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.extraParams
for the field documentation. -
setPerson
Information for the person this token represents. -
setPii
The PII this token represents.
-