Package com.stripe.param.v2.payments
Class OffSessionPaymentCreateParams.AmountDetails.Shipping.Builder
java.lang.Object
com.stripe.param.v2.payments.OffSessionPaymentCreateParams.AmountDetails.Shipping.Builder
- Enclosing class:
- OffSessionPaymentCreateParams.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.Portion of the amount that is for shipping.setFromPostalCode
(String fromPostalCode) The postal code that represents the shipping source.setToPostalCode
(String toPostalCode)
-
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. -
putExtraParam
public OffSessionPaymentCreateParams.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. SeeOffSessionPaymentCreateParams.AmountDetails.Shipping.extraParams
for the field documentation. -
putAllExtraParam
public OffSessionPaymentCreateParams.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. SeeOffSessionPaymentCreateParams.AmountDetails.Shipping.extraParams
for the field documentation. -
setFromPostalCode
public OffSessionPaymentCreateParams.AmountDetails.Shipping.Builder setFromPostalCode(String fromPostalCode) The postal code that represents the shipping source. -
setToPostalCode
public OffSessionPaymentCreateParams.AmountDetails.Shipping.Builder setToPostalCode(String toPostalCode)
-