Package com.stripe.param
Class OrderUpdateParams.Builder
java.lang.Object
com.stripe.param.OrderUpdateParams.Builder
- Enclosing class:
- OrderUpdateParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllCredit
(List<OrderUpdateParams.Credit> elements) Add all elements to `credits` list.addAllDiscount
(List<OrderUpdateParams.Discount> elements) Add all elements to `discounts` list.addAllExpand
(List<String> elements) Add all elements to `expand` list.addAllLineItem
(List<OrderUpdateParams.LineItem> elements) Add all elements to `lineItems` list.addCredit
(OrderUpdateParams.Credit element) Add an element to `credits` list.addDiscount
(OrderUpdateParams.Discount element) Add an element to `discounts` list.Add an element to `expand` list.addLineItem
(OrderUpdateParams.LineItem element) Add an element to `lineItems` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata
(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata
(String key, String value) Add a key/value pair to `metadata` map.setAutomaticTax
(OrderUpdateParams.AutomaticTax automaticTax) Settings for automatic tax calculation for this order.setBillingDetails
(EmptyParam billingDetails) Billing details for the customer.setBillingDetails
(OrderUpdateParams.BillingDetails billingDetails) Billing details for the customer.setCredits
(EmptyParam credits) The credits to apply to the order, onlygift_card
currently supported.setCredits
(List<OrderUpdateParams.Credit> credits) The credits to apply to the order, onlygift_card
currently supported.setCurrency
(EmptyParam currency) Three-letter ISO currency code, in lowercase.setCurrency
(String currency) Three-letter ISO currency code, in lowercase.setCustomer
(EmptyParam customer) The customer associated with this order.setCustomer
(String customer) The customer associated with this order.setDescription
(EmptyParam description) An arbitrary string attached to the object.setDescription
(String description) An arbitrary string attached to the object.setDiscounts
(EmptyParam discounts) The coupons, promotion codes, and/or discounts to apply to the order.setDiscounts
(List<OrderUpdateParams.Discount> discounts) The coupons, promotion codes, and/or discounts to apply to the order.setIpAddress
(EmptyParam ipAddress) The IP address of the purchaser for this order.setIpAddress
(String ipAddress) The IP address of the purchaser for this order.setMetadata
(EmptyParam metadata) Set of key-value pairs that you can attach to an object.setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.setPayment
(OrderUpdateParams.Payment payment) Payment information associated with the order, including payment settings.setShippingCost
(EmptyParam shippingCost) Settings for the customer cost of shipping for this order.setShippingCost
(OrderUpdateParams.ShippingCost shippingCost) Settings for the customer cost of shipping for this order.setShippingDetails
(EmptyParam shippingDetails) Shipping details for the order.setShippingDetails
(OrderUpdateParams.ShippingDetails shippingDetails) Shipping details for the order.setTaxDetails
(OrderUpdateParams.TaxDetails taxDetails) Additional tax details about the purchaser to be used for this order.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAutomaticTax
Settings for automatic tax calculation for this order. -
setBillingDetails
Billing details for the customer. If a customer is provided, this will be automatically populated with values from that customer if override values are not provided. -
setBillingDetails
Billing details for the customer. If a customer is provided, this will be automatically populated with values from that customer if override values are not provided. -
addCredit
Add an element to `credits` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeOrderUpdateParams.credits
for the field documentation. -
addAllCredit
Add all elements to `credits` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeOrderUpdateParams.credits
for the field documentation. -
setCredits
The credits to apply to the order, onlygift_card
currently supported. Pass the empty string""
to unset this field. -
setCredits
The credits to apply to the order, onlygift_card
currently supported. Pass the empty string""
to unset this field. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setCustomer
The customer associated with this order. -
setCustomer
The customer associated with this order. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
setDescription
An arbitrary string attached to the object. Often useful for displaying to users. -
addDiscount
Add an element to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeOrderUpdateParams.discounts
for the field documentation. -
addAllDiscount
Add all elements to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeOrderUpdateParams.discounts
for the field documentation. -
setDiscounts
The coupons, promotion codes, and/or discounts to apply to the order. Pass the empty string""
to unset this field. -
setDiscounts
The coupons, promotion codes, and/or discounts to apply to the order. Pass the empty string""
to unset this field. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeOrderUpdateParams.expand
for the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeOrderUpdateParams.expand
for the field documentation. -
putExtraParam
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. SeeOrderUpdateParams.extraParams
for the field documentation. -
putAllExtraParam
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. SeeOrderUpdateParams.extraParams
for the field documentation. -
setIpAddress
The IP address of the purchaser for this order. -
setIpAddress
The IP address of the purchaser for this order. -
addLineItem
Add an element to `lineItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeOrderUpdateParams.lineItems
for the field documentation. -
addAllLineItem
Add all elements to `lineItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeOrderUpdateParams.lineItems
for the field documentation. -
putMetadata
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeOrderUpdateParams.metadata
for the field documentation. -
putAllMetadata
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeOrderUpdateParams.metadata
for the field documentation. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
. -
setPayment
Payment information associated with the order, including payment settings. -
setShippingCost
Settings for the customer cost of shipping for this order. -
setShippingCost
Settings for the customer cost of shipping for this order. -
setShippingDetails
public OrderUpdateParams.Builder setShippingDetails(OrderUpdateParams.ShippingDetails shippingDetails) Shipping details for the order. -
setShippingDetails
Shipping details for the order. -
setTaxDetails
Additional tax details about the purchaser to be used for this order.
-