Package com.stripe.param
Class InvoiceCreatePreviewParams.CustomerDetails.Shipping.Address.Builder
java.lang.Object
com.stripe.param.InvoiceCreatePreviewParams.CustomerDetails.Shipping.Address.Builder
- Enclosing class:
- InvoiceCreatePreviewParams.CustomerDetails.Shipping.Address
public static class InvoiceCreatePreviewParams.CustomerDetails.Shipping.Address.Builder
extends Object
-
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.City, district, suburb, town, or village.setCountry
(String country) A freeform text field for the country.Address line 1, such as the street, PO Box, or company name.Address line 2, such as the apartment, suite, unit, or building.setPostalCode
(String postalCode) ZIP or postal code.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCity
City, district, suburb, town, or village. -
setCountry
public InvoiceCreatePreviewParams.CustomerDetails.Shipping.Address.Builder setCountry(String country) A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code (ISO 3166-1 alpha-2). -
putExtraParam
public InvoiceCreatePreviewParams.CustomerDetails.Shipping.Address.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. SeeInvoiceCreatePreviewParams.CustomerDetails.Shipping.Address.extraParams
for the field documentation. -
putAllExtraParam
public InvoiceCreatePreviewParams.CustomerDetails.Shipping.Address.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. SeeInvoiceCreatePreviewParams.CustomerDetails.Shipping.Address.extraParams
for the field documentation. -
setLine1
Address line 1, such as the street, PO Box, or company name. -
setLine2
Address line 2, such as the apartment, suite, unit, or building. -
setPostalCode
public InvoiceCreatePreviewParams.CustomerDetails.Shipping.Address.Builder setPostalCode(String postalCode) ZIP or postal code. -
setState
-