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