Class OrderUpdateParams.Builder

java.lang.Object
com.stripe.param.OrderUpdateParams.Builder
Enclosing class:
OrderUpdateParams

public static class OrderUpdateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public OrderUpdateParams build()
      Finalize and obtain parameter instance from this builder.
    • setAutomaticTax

      public OrderUpdateParams.Builder setAutomaticTax(OrderUpdateParams.AutomaticTax automaticTax)
      Settings for automatic tax calculation for this order.
    • setBillingDetails

      public OrderUpdateParams.Builder setBillingDetails(OrderUpdateParams.BillingDetails billingDetails)
      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

      public OrderUpdateParams.Builder setBillingDetails(EmptyParam billingDetails)
      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. See OrderUpdateParams.credits for the field documentation.
    • addAllCredit

      public OrderUpdateParams.Builder addAllCredit(List<OrderUpdateParams.Credit> elements)
      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. See OrderUpdateParams.credits for the field documentation.
    • setCredits

      public OrderUpdateParams.Builder setCredits(EmptyParam credits)
      The credits to apply to the order, only gift_card currently supported. Pass the empty string "" to unset this field.
    • setCredits

      The credits to apply to the order, only gift_card currently supported. Pass the empty string "" to unset this field.
    • setCurrency

      public OrderUpdateParams.Builder setCurrency(String currency)
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • setCurrency

      public OrderUpdateParams.Builder setCurrency(EmptyParam currency)
      Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • setCustomer

      public OrderUpdateParams.Builder setCustomer(String customer)
      The customer associated with this order.
    • setCustomer

      public OrderUpdateParams.Builder setCustomer(EmptyParam customer)
      The customer associated with this order.
    • setDescription

      public OrderUpdateParams.Builder setDescription(String description)
      An arbitrary string attached to the object. Often useful for displaying to users.
    • setDescription

      public OrderUpdateParams.Builder setDescription(EmptyParam description)
      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. See OrderUpdateParams.discounts for the field documentation.
    • addAllDiscount

      public OrderUpdateParams.Builder addAllDiscount(List<OrderUpdateParams.Discount> elements)
      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. See OrderUpdateParams.discounts for the field documentation.
    • setDiscounts

      public OrderUpdateParams.Builder setDiscounts(EmptyParam discounts)
      The coupons, promotion codes, and/or discounts to apply to the order. Pass the empty string "" to unset this field.
    • setDiscounts

      public OrderUpdateParams.Builder setDiscounts(List<OrderUpdateParams.Discount> discounts)
      The coupons, promotion codes, and/or discounts to apply to the order. Pass the empty string "" to unset this field.
    • addExpand

      public OrderUpdateParams.Builder addExpand(String element)
      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. See OrderUpdateParams.expand for the field documentation.
    • addAllExpand

      public OrderUpdateParams.Builder addAllExpand(List<String> elements)
      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. See OrderUpdateParams.expand for the field documentation.
    • putExtraParam

      public OrderUpdateParams.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. See OrderUpdateParams.extraParams for the field documentation.
    • putAllExtraParam

      public OrderUpdateParams.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. See OrderUpdateParams.extraParams for the field documentation.
    • setIpAddress

      public OrderUpdateParams.Builder setIpAddress(String ipAddress)
      The IP address of the purchaser for this order.
    • setIpAddress

      public OrderUpdateParams.Builder setIpAddress(EmptyParam ipAddress)
      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. See OrderUpdateParams.lineItems for the field documentation.
    • addAllLineItem

      public OrderUpdateParams.Builder addAllLineItem(List<OrderUpdateParams.LineItem> elements)
      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. See OrderUpdateParams.lineItems for the field documentation.
    • putMetadata

      public OrderUpdateParams.Builder putMetadata(String key, String value)
      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. See OrderUpdateParams.metadata for the field documentation.
    • putAllMetadata

      public OrderUpdateParams.Builder putAllMetadata(Map<String,String> map)
      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. See OrderUpdateParams.metadata for the field documentation.
    • setMetadata

      public OrderUpdateParams.Builder setMetadata(EmptyParam metadata)
      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 to metadata.
    • setMetadata

      public OrderUpdateParams.Builder setMetadata(Map<String,String> metadata)
      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 to metadata.
    • setPayment

      Payment information associated with the order, including payment settings.
    • setShippingCost

      public OrderUpdateParams.Builder setShippingCost(OrderUpdateParams.ShippingCost shippingCost)
      Settings for the customer cost of shipping for this order.
    • setShippingCost

      public OrderUpdateParams.Builder setShippingCost(EmptyParam shippingCost)
      Settings for the customer cost of shipping for this order.
    • setShippingDetails

      public OrderUpdateParams.Builder setShippingDetails(OrderUpdateParams.ShippingDetails shippingDetails)
      Shipping details for the order.
    • setShippingDetails

      public OrderUpdateParams.Builder setShippingDetails(EmptyParam shippingDetails)
      Shipping details for the order.
    • setTaxDetails

      public OrderUpdateParams.Builder setTaxDetails(OrderUpdateParams.TaxDetails taxDetails)
      Additional tax details about the purchaser to be used for this order.