Package com.stripe.param.treasury
Class OutboundPaymentCreateParams.DestinationPaymentMethodData.Builder
java.lang.Object
com.stripe.param.treasury.OutboundPaymentCreateParams.DestinationPaymentMethodData.Builder
- Enclosing class:
- OutboundPaymentCreateParams.DestinationPaymentMethodData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata
(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata
(String key, String value) Add a key/value pair to `metadata` map.setBillingDetails
(OutboundPaymentCreateParams.DestinationPaymentMethodData.BillingDetails billingDetails) Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.setFinancialAccount
(String financialAccount) Required if type is set tofinancial_account
.Required. The type of the PaymentMethod.setUsBankAccount
(OutboundPaymentCreateParams.DestinationPaymentMethodData.UsBankAccount usBankAccount) Required hash if type is set tous_bank_account
.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setBillingDetails
public OutboundPaymentCreateParams.DestinationPaymentMethodData.Builder setBillingDetails(OutboundPaymentCreateParams.DestinationPaymentMethodData.BillingDetails billingDetails) Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. -
putExtraParam
public OutboundPaymentCreateParams.DestinationPaymentMethodData.Builder putExtraParam(String key, Object value) 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. SeeOutboundPaymentCreateParams.DestinationPaymentMethodData.extraParams
for the field documentation. -
putAllExtraParam
public OutboundPaymentCreateParams.DestinationPaymentMethodData.Builder putAllExtraParam(Map<String, Object> map) 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. SeeOutboundPaymentCreateParams.DestinationPaymentMethodData.extraParams
for the field documentation. -
setFinancialAccount
public OutboundPaymentCreateParams.DestinationPaymentMethodData.Builder setFinancialAccount(String financialAccount) Required if type is set tofinancial_account
. The FinancialAccount ID to send funds to. -
putMetadata
public OutboundPaymentCreateParams.DestinationPaymentMethodData.Builder putMetadata(String key, String value) Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeOutboundPaymentCreateParams.DestinationPaymentMethodData.metadata
for the field documentation. -
putAllMetadata
public OutboundPaymentCreateParams.DestinationPaymentMethodData.Builder putAllMetadata(Map<String, String> map) Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeOutboundPaymentCreateParams.DestinationPaymentMethodData.metadata
for the field documentation. -
setType
public OutboundPaymentCreateParams.DestinationPaymentMethodData.Builder setType(OutboundPaymentCreateParams.DestinationPaymentMethodData.Type type) Required. The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type. -
setUsBankAccount
public OutboundPaymentCreateParams.DestinationPaymentMethodData.Builder setUsBankAccount(OutboundPaymentCreateParams.DestinationPaymentMethodData.UsBankAccount usBankAccount) Required hash if type is set tous_bank_account
.
-