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
Modifier and TypeClassDescriptionstatic class
static class
static class
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_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The place where your business is located.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.Theactive
status indicates you have all required settings to calculate tax.int
hashCode()
static Settings
retrieve()
Retrieves TaxSettings
for a merchant.static Settings
retrieve
(RequestOptions options) Retrieves TaxSettings
for a merchant.static Settings
retrieve
(SettingsRetrieveParams params, RequestOptions options) Retrieves TaxSettings
for a merchant.static Settings
retrieve
(Map<String, Object> params, RequestOptions options) Retrieves TaxSettings
for a merchant.void
setDefaults
(Settings.Defaults defaults) void
setHeadOffice
(Settings.HeadOffice headOffice) The place where your business is located.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
setResponseGetter
(StripeResponseGetter responseGetter) The list of missing fields that are required to perform calculations.void
Theactive
status indicates you have all required settings to calculate tax.void
setStatusDetails
(Settings.StatusDetails statusDetails) static Settings
update
(SettingsUpdateParams params) Updates TaxSettings
parameters used in tax calculations.static Settings
update
(SettingsUpdateParams params, RequestOptions options) Updates TaxSettings
parameters used in tax calculations.static Settings
Updates TaxSettings
parameters used in tax calculations.static Settings
update
(Map<String, Object> params, RequestOptions options) Updates TaxSettings
parameters used in tax calculations.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Settings
public Settings()
-
-
Method Details
-
retrieve
Retrieves TaxSettings
for a merchant.- Throws:
StripeException
-
retrieve
Retrieves TaxSettings
for a merchant.- Throws:
StripeException
-
retrieve
public static Settings retrieve(Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves TaxSettings
for a merchant.- Throws:
StripeException
-
retrieve
public static Settings retrieve(SettingsRetrieveParams params, RequestOptions options) throws StripeException Retrieves TaxSettings
for a merchant.- Throws:
StripeException
-
update
Updates TaxSettings
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 StripeExceptionUpdates TaxSettings
parameters used in tax calculations. All parameters are editable but none can be removed once set.- Throws:
StripeException
-
update
Updates TaxSettings
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 TaxSettings
parameters 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_office
when 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:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance to use for making further requests.
-
getDefaults
-
getHeadOffice
The place where your business is located. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if 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
Theactive
status indicates you have all required settings to calculate tax. A status can transition out ofactive
when new required settings are introduced.One of
active
, orpending
. -
getStatusDetails
-
setDefaults
-
setHeadOffice
The place where your business is located. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if 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
Theactive
status indicates you have all required settings to calculate tax. A status can transition out ofactive
when new required settings are introduced.One of
active
, orpending
. -
setStatusDetails
-
equals
-
canEqual
-
hashCode
public int hashCode()
-