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:
StripeObjectInterface
You can use Tax
Settings
to manage configurations used by Stripe Tax calculations.
Related guide: Account settings.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.The places where your business is located.String representing the object's type.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
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setLocations
(List<Settings.Location> locations) The places where your business is located.void
String representing the object's type.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, classUrl, classUrl, fullUrl, instanceUrl, instanceUrl, request, request, requestCollection, requestCollection, requestSearchResult, requestSearchResult, requestStream, requestStream, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
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
-
getDefaults
-
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getLocations
The places where your business is located. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax.settings
. -
setDefaults
-
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setLocations
The places where your business is located. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
tax.settings
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-