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.
    • getShipFromDetails

      public CalculationCreateParams.ShipFromDetails getShipFromDetails()
      Details about the address from which the goods are being shipped.
    • getShippingCost

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

      public Long getTaxDate()
      The calculation uses the tax rules and rates that are in effect at this timestamp. You can use a date up to 31 days in the past or up to 31 days in the future. If you use a future date, Stripe doesn't guarantee that the expected tax rules and rate being used match the actual rules and rate that will be in effect on that date. We deploy tax changes before their effective date, but not within a fixed window.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object