Package com.stripe.param.checkout
Class SessionCreateParams.PaymentIntentData.Shipping.Builder
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.PaymentIntentData.Shipping.Builder
- Enclosing class:
- SessionCreateParams.PaymentIntentData.Shipping
-
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.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.Required. Shipping address.setCarrier
(String carrier) The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.Required. Recipient name.Recipient phone (including extension).setTrackingNumber
(String trackingNumber) The tracking number for a physical product, obtained from the delivery service.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAddress
public SessionCreateParams.PaymentIntentData.Shipping.Builder setAddress(SessionCreateParams.PaymentIntentData.Shipping.Address address) Required. Shipping address. -
setCarrier
The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. -
putExtraParam
public SessionCreateParams.PaymentIntentData.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. SeeSessionCreateParams.PaymentIntentData.Shipping.extraParams
for the field documentation. -
putAllExtraParam
public SessionCreateParams.PaymentIntentData.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. SeeSessionCreateParams.PaymentIntentData.Shipping.extraParams
for the field documentation. -
setName
Required. Recipient name. -
setPhone
Recipient phone (including extension). -
setTrackingNumber
public SessionCreateParams.PaymentIntentData.Shipping.Builder setTrackingNumber(String trackingNumber) The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
-