Class: Stripe::Tax::SettingsService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::Tax::SettingsService
- Defined in:
- lib/stripe/services/tax/settings_service.rb
Defined Under Namespace
Classes: RetrieveParams, UpdateParams
Instance Method Summary collapse
-
#retrieve(params = {}, opts = {}) ⇒ Object
Retrieves Tax Settings for a merchant.
-
#update(params = {}, opts = {}) ⇒ Object
Updates Tax Settings parameters used in tax calculations.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#retrieve(params = {}, opts = {}) ⇒ Object
Retrieves Tax Settings for a merchant.
82 83 84 85 86 87 88 89 90 |
# File 'lib/stripe/services/tax/settings_service.rb', line 82 def retrieve(params = {}, opts = {}) request( method: :get, path: "/v1/tax/settings", params: params, opts: opts, base_address: :api ) end |
#update(params = {}, opts = {}) ⇒ Object
Updates Tax Settings parameters used in tax calculations. All parameters are editable but none can be removed once set.
93 94 95 96 97 98 99 100 101 |
# File 'lib/stripe/services/tax/settings_service.rb', line 93 def update(params = {}, opts = {}) request( method: :post, path: "/v1/tax/settings", params: params, opts: opts, base_address: :api ) end |