Sha256: 7681fd6ce7862b903a0549b867bf82365754d6ab2c1e5f43b2659bc3429851d9
Contents?: true
Size: 711 Bytes
Versions: 17
Compression:
Stored size: 711 Bytes
Contents
# File generated from our OpenAPI spec # frozen_string_literal: true module Stripe class CountrySpecService < StripeService # Lists all Country Spec objects available in the API. def list(params = {}, opts = {}) request( method: :get, path: "/v1/country_specs", params: params, opts: opts, base_address: :api ) end # Returns a Country Spec for a given Country code. 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 end end
Version data entries
17 entries across 17 versions & 1 rubygems