Class Settings

All Implemented Interfaces:
StripeActiveObject, StripeObjectInterface

public class Settings extends ApiResource
You can use Tax Settings to manage configurations used by Stripe Tax calculations.

Related guide: Using the Settings API

  • Constructor Details

    • Settings

      public Settings()
  • Method Details

    • retrieve

      public static Settings retrieve() throws StripeException
      Retrieves Tax Settings for a merchant.
      Throws:
      StripeException
    • retrieve

      public static Settings retrieve(RequestOptions options) throws StripeException
      Retrieves Tax Settings for a merchant.
      Throws:
      StripeException
    • retrieve

      public static Settings retrieve(Map<String,Object> params, RequestOptions options) throws StripeException
      Retrieves Tax Settings for a merchant.
      Throws:
      StripeException
    • retrieve

      public static Settings retrieve(SettingsRetrieveParams params, RequestOptions options) throws StripeException
      Retrieves Tax Settings for a merchant.
      Throws:
      StripeException
    • update

      public static Settings update(Map<String,Object> params) throws StripeException
      Updates Tax Settings parameters used in tax calculations. All parameters are editable but none can be removed once set.
      Throws:
      StripeException
    • update

      public static Settings update(Map<String,Object> params, RequestOptions options) throws StripeException
      Updates Tax Settings parameters used in tax calculations. All parameters are editable but none can be removed once set.
      Throws:
      StripeException
    • update

      public static Settings update(SettingsUpdateParams params) throws StripeException
      Updates Tax Settings parameters used in tax calculations. All parameters are editable but none can be removed once set.
      Throws:
      StripeException
    • update

      public static Settings update(SettingsUpdateParams params, RequestOptions options) throws StripeException
      Updates Tax Settings parameters used in tax calculations. All parameters are editable but none can be removed once set.
      Throws:
      StripeException
    • setResponseGetter

      public void setResponseGetter(StripeResponseGetter responseGetter)
      The list of missing fields that are required to perform calculations. It includes the entry head_office when the status is pending. It is recommended to set the optional values even if they aren't listed as required for calculating taxes. Calculations can fail if missing fields aren't explicitly provided on every call.
      Specified by:
      setResponseGetter in interface StripeActiveObject
      Overrides:
      setResponseGetter in class ApiResource
      Parameters:
      responseGetter - the StripeResponseGetter instance to use for making further requests.
    • getDefaults

      public Settings.Defaults getDefaults()
    • getHeadOffice

      public Settings.HeadOffice getHeadOffice()
      The place where your business is located.
    • getLivemode

      public Boolean getLivemode()
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • getObject

      public String getObject()
      String representing the object's type. Objects of the same type share the same value.

      Equal to tax.settings.

    • getStatus

      public String getStatus()
      The active status indicates you have all required settings to calculate tax. A status can transition out of active when new required settings are introduced.

      One of active, or pending.

    • getStatusDetails

      public Settings.StatusDetails getStatusDetails()
    • setDefaults

      public void setDefaults(Settings.Defaults defaults)
    • setHeadOffice

      public void setHeadOffice(Settings.HeadOffice headOffice)
      The place where your business is located.
    • setLivemode

      public void setLivemode(Boolean livemode)
      Has the value true if the object exists in live mode or the value false if the object exists in test mode.
    • setObject

      public void setObject(String object)
      String representing the object's type. Objects of the same type share the same value.

      Equal to tax.settings.

    • setStatus

      public void setStatus(String status)
      The active status indicates you have all required settings to calculate tax. A status can transition out of active when new required settings are introduced.

      One of active, or pending.

    • setStatusDetails

      public void setStatusDetails(Settings.StatusDetails statusDetails)
    • 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