Package com.stripe.param.issuing
Class AuthorizationCreateParams.Builder
java.lang.Object
com.stripe.param.issuing.AuthorizationCreateParams.Builder
- Enclosing class:
- AuthorizationCreateParams
-
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.Required. The total amount to attempt to authorize.setAmountDetails
(AuthorizationCreateParams.AmountDetails amountDetails) Detailed breakdown of amount components.setAuthorizationMethod
(AuthorizationCreateParams.AuthorizationMethod authorizationMethod) How the card details were provided.Required. Card associated with this authorization.setCurrency
(String currency) The currency of the authorization.Fleet-specific information for authorizations using Fleet cards.Information about fuel that was purchased with this transaction.setIsAmountControllable
(Boolean isAmountControllable) If settrue
, you may provide amount to control how much to hold for the authorization.setMerchantData
(AuthorizationCreateParams.MerchantData merchantData) Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.setNetworkData
(AuthorizationCreateParams.NetworkData networkData) Details about the authorization, such as identifiers, set by the card network.setVerificationData
(AuthorizationCreateParams.VerificationData verificationData) Verifications that Stripe performed on information that the cardholder provided to the merchant.The digital wallet used for this transaction.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
Required. The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the card's currency, and in the smallest currency unit. -
setAmountDetails
public AuthorizationCreateParams.Builder setAmountDetails(AuthorizationCreateParams.AmountDetails amountDetails) Detailed breakdown of amount components. These amounts are denominated incurrency
and in the smallest currency unit. -
setAuthorizationMethod
public AuthorizationCreateParams.Builder setAuthorizationMethod(AuthorizationCreateParams.AuthorizationMethod authorizationMethod) How the card details were provided. Defaults to online. -
setCard
Required. Card associated with this authorization. -
setCurrency
The currency of the authorization. If not provided, defaults to the currency of the card. Three-letter ISO currency code, in lowercase. Must be a supported currency. -
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. SeeAuthorizationCreateParams.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. SeeAuthorizationCreateParams.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. SeeAuthorizationCreateParams.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. SeeAuthorizationCreateParams.extraParams
for the field documentation. -
setFleet
Fleet-specific information for authorizations using Fleet cards. -
setFuel
Information about fuel that was purchased with this transaction. -
setIsAmountControllable
If settrue
, you may provide amount to control how much to hold for the authorization. -
setMerchantData
public AuthorizationCreateParams.Builder setMerchantData(AuthorizationCreateParams.MerchantData merchantData) Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened. -
setNetworkData
public AuthorizationCreateParams.Builder setNetworkData(AuthorizationCreateParams.NetworkData networkData) Details about the authorization, such as identifiers, set by the card network. -
setVerificationData
public AuthorizationCreateParams.Builder setVerificationData(AuthorizationCreateParams.VerificationData verificationData) Verifications that Stripe performed on information that the cardholder provided to the merchant. -
setWallet
The digital wallet used for this transaction. One ofapple_pay
,google_pay
, orsamsung_pay
. Will populate asnull
when no digital wallet was utilized.
-