Class: Stripe::Tax::SettingsService

Inherits:
StripeService show all
Defined in:
lib/stripe/services/tax/settings_service.rb

Instance Method Summary collapse

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.



8
9
10
11
12
13
14
15
16
# File 'lib/stripe/services/tax/settings_service.rb', line 8

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.



19
20
21
22
23
24
25
26
27
# File 'lib/stripe/services/tax/settings_service.rb', line 19

def update(params = {}, opts = {})
  request(
    method: :post,
    path: "/v1/tax/settings",
    params: params,
    opts: opts,
    base_address: :api
  )
end