Package com.stripe.param
Class ChargeCreateParams.Shipping.Builder
- java.lang.Object
-
- com.stripe.param.ChargeCreateParams.Shipping.Builder
-
- Enclosing class:
- ChargeCreateParams.Shipping
public static class ChargeCreateParams.Shipping.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChargeCreateParams.Shipping
build()
Finalize and obtain parameter instance from this builder.ChargeCreateParams.Shipping.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.ChargeCreateParams.Shipping.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.ChargeCreateParams.Shipping.Builder
setAddress(ChargeCreateParams.Shipping.Address address)
Shipping address.ChargeCreateParams.Shipping.Builder
setCarrier(java.lang.String carrier)
The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.ChargeCreateParams.Shipping.Builder
setName(java.lang.String name)
Recipient name.ChargeCreateParams.Shipping.Builder
setPhone(java.lang.String phone)
Recipient phone (including extension).ChargeCreateParams.Shipping.Builder
setTrackingNumber(java.lang.String trackingNumber)
The tracking number for a physical product, obtained from the delivery service.
-
-
-
Method Detail
-
build
public ChargeCreateParams.Shipping build()
Finalize and obtain parameter instance from this builder.
-
setAddress
public ChargeCreateParams.Shipping.Builder setAddress(ChargeCreateParams.Shipping.Address address)
Shipping address.
-
setCarrier
public ChargeCreateParams.Shipping.Builder setCarrier(java.lang.String carrier)
The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
-
putExtraParam
public ChargeCreateParams.Shipping.Builder putExtraParam(java.lang.String key, java.lang.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. SeeChargeCreateParams.Shipping.extraParams
for the field documentation.
-
putAllExtraParam
public ChargeCreateParams.Shipping.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.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. SeeChargeCreateParams.Shipping.extraParams
for the field documentation.
-
setName
public ChargeCreateParams.Shipping.Builder setName(java.lang.String name)
Recipient name.
-
setPhone
public ChargeCreateParams.Shipping.Builder setPhone(java.lang.String phone)
Recipient phone (including extension).
-
setTrackingNumber
public ChargeCreateParams.Shipping.Builder setTrackingNumber(java.lang.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.
-
-