Class CalculationCreateParams

java.lang.Object
com.stripe.net.ApiRequestParams
com.stripe.param.tax.CalculationCreateParams

public class CalculationCreateParams extends ApiRequestParams
  • Method Details

    • builder

      public static CalculationCreateParams.Builder builder()
    • getCurrency

      public String getCurrency()
      Required. Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • getCustomer

      public String getCustomer()
      The ID of an existing customer to use for this calculation. If provided, the customer's address and tax IDs are copied to customer_details.
    • getCustomerDetails

      public CalculationCreateParams.CustomerDetails getCustomerDetails()
      Details about the customer, including address and tax IDs.
    • getExpand

      public List<String> getExpand()
      Specifies which fields in the response should be expanded.
    • getExtraParams

      public Map<String,Object> getExtraParams()
      Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's @SerializedName value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance.
    • getLineItems

      public List<CalculationCreateParams.LineItem> getLineItems()
      Required. A list of items the customer is purchasing.
    • getShippingCost

      public CalculationCreateParams.ShippingCost getShippingCost()
      Shipping cost details to be used for the calculation.
    • getTaxDate

      public Long getTaxDate()
      Timestamp of date at which the tax rules and rates in effect applies for the calculation. Measured in seconds since the Unix epoch. Can be up to 48 hours in the past, and up to 48 hours in the future.