Package com.stripe.model.tax
Class Settings
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.tax.Settings
- All Implemented Interfaces:
StripeActiveObject,StripeObjectInterface
You can use Tax
Settings to manage configurations used by Stripe Tax calculations.
Related guide: Using the Settings API
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about Defaults, please refer to the API Reference.static classFor more details about HeadOffice, please refer to the API Reference.static classFor more details about StatusDetails, please refer to the API Reference.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe place where your business is located.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.The status of the TaxSettings.inthashCode()static Settingsretrieve()Retrieves TaxSettingsfor a merchant.static Settingsretrieve(RequestOptions options) Retrieves TaxSettingsfor a merchant.static Settingsretrieve(SettingsRetrieveParams params, RequestOptions options) Retrieves TaxSettingsfor a merchant.static Settingsretrieve(Map<String, Object> params, RequestOptions options) Retrieves TaxSettingsfor a merchant.voidsetDefaults(Settings.Defaults defaults) voidsetHeadOffice(Settings.HeadOffice headOffice) The place where your business is located.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidsetResponseGetter(StripeResponseGetter responseGetter) The list of missing fields that are required to perform calculations.voidThe status of the TaxSettings.voidsetStatusDetails(Settings.StatusDetails statusDetails) static Settingsupdate(SettingsUpdateParams params) Updates TaxSettingsparameters used in tax calculations.static Settingsupdate(SettingsUpdateParams params, RequestOptions options) Updates TaxSettingsparameters used in tax calculations.static SettingsUpdates TaxSettingsparameters used in tax calculations.static Settingsupdate(Map<String, Object> params, RequestOptions options) Updates TaxSettingsparameters used in tax calculations.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Settings
public Settings()
-
-
Method Details
-
retrieve
Retrieves TaxSettingsfor a merchant.- Throws:
StripeException
-
retrieve
Retrieves TaxSettingsfor a merchant.- Throws:
StripeException
-
retrieve
public static Settings retrieve(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves TaxSettingsfor a merchant.- Throws:
StripeException
-
retrieve
public static Settings retrieve(SettingsRetrieveParams params, RequestOptions options) throws StripeException Retrieves TaxSettingsfor a merchant.- Throws:
StripeException
-
update
Updates TaxSettingsparameters 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 StripeExceptionUpdates TaxSettingsparameters used in tax calculations. All parameters are editable but none can be removed once set.- Throws:
StripeException
-
update
Updates TaxSettingsparameters 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 TaxSettingsparameters used in tax calculations. All parameters are editable but none can be removed once set.- Throws:
StripeException
-
setResponseGetter
The list of missing fields that are required to perform calculations. It includes the entryhead_officewhen the status ispending. 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:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getDefaults
-
getHeadOffice
The place where your business is located. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax.settings. -
getStatus
The status of the TaxSettings.One of
active, orpending. -
getStatusDetails
-
setDefaults
-
setHeadOffice
The place where your business is located. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax.settings. -
setStatus
The status of the TaxSettings.One of
active, orpending. -
setStatusDetails
-
equals
-
canEqual
-
hashCode
public int hashCode()
-