Class: Stripe::CountrySpecService
- Inherits:
-
StripeService
- Object
- StripeService
- Stripe::CountrySpecService
- Defined in:
- lib/stripe/services/country_spec_service.rb
Instance Method Summary collapse
-
#list(params = {}, opts = {}) ⇒ Object
Lists all Country Spec objects available in the API.
-
#retrieve(country, params = {}, opts = {}) ⇒ Object
Returns a Country Spec for a given Country code.
Methods inherited from StripeService
#initialize, #request, #request_stream
Constructor Details
This class inherits a constructor from Stripe::StripeService
Instance Method Details
#list(params = {}, opts = {}) ⇒ Object
Lists all Country Spec objects available in the API.
7 8 9 10 11 12 13 14 15 |
# File 'lib/stripe/services/country_spec_service.rb', line 7 def list(params = {}, opts = {}) request( method: :get, path: "/v1/country_specs", params: params, opts: opts, base_address: :api ) end |
#retrieve(country, params = {}, opts = {}) ⇒ Object
Returns a Country Spec for a given Country code.
18 19 20 21 22 23 24 25 26 |
# File 'lib/stripe/services/country_spec_service.rb', line 18 def retrieve(country, params = {}, opts = {}) request( method: :get, path: format("/v1/country_specs/%<country>s", { country: CGI.escape(country) }), params: params, opts: opts, base_address: :api ) end |