Package com.stripe.param
Class PaymentIntentCreateParams.AmountDetails.Shipping.Builder
java.lang.Object
com.stripe.param.PaymentIntentCreateParams.AmountDetails.Shipping.Builder
- Enclosing class:
- PaymentIntentCreateParams.AmountDetails.Shipping
-
Constructor Summary
Constructors -
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.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setAmount
(EmptyParam amount) Portion of the amount that is for shipping.Portion of the amount that is for shipping.setFromPostalCode
(EmptyParam fromPostalCode) The postal code that represents the shipping source.setFromPostalCode
(String fromPostalCode) The postal code that represents the shipping source.setToPostalCode
(EmptyParam toPostalCode) setToPostalCode
(String toPostalCode) The postal code that represents the shipping destination.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAmount
Portion of the amount that is for shipping. -
setAmount
Portion of the amount that is for shipping. -
putExtraParam
public PaymentIntentCreateParams.AmountDetails.Shipping.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. SeePaymentIntentCreateParams.AmountDetails.Shipping.extraParams
for the field documentation. -
putAllExtraParam
public PaymentIntentCreateParams.AmountDetails.Shipping.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. SeePaymentIntentCreateParams.AmountDetails.Shipping.extraParams
for the field documentation. -
setFromPostalCode
public PaymentIntentCreateParams.AmountDetails.Shipping.Builder setFromPostalCode(String fromPostalCode) The postal code that represents the shipping source. -
setFromPostalCode
public PaymentIntentCreateParams.AmountDetails.Shipping.Builder setFromPostalCode(EmptyParam fromPostalCode) The postal code that represents the shipping source. -
setToPostalCode
public PaymentIntentCreateParams.AmountDetails.Shipping.Builder setToPostalCode(String toPostalCode) The postal code that represents the shipping destination. -
setToPostalCode
public PaymentIntentCreateParams.AmountDetails.Shipping.Builder setToPostalCode(EmptyParam toPostalCode)
-