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

Version Path
stripe-13.3.1 lib/stripe/services/country_spec_service.rb
stripe-13.3.0 lib/stripe/services/country_spec_service.rb
stripe-13.3.0.pre.beta.3 lib/stripe/services/country_spec_service.rb
stripe-13.3.0.pre.beta.2 lib/stripe/services/country_spec_service.rb
stripe-13.3.0.pre.beta.1 lib/stripe/services/country_spec_service.rb
stripe-13.2.0 lib/stripe/services/country_spec_service.rb
stripe-13.1.2 lib/stripe/services/country_spec_service.rb
stripe-13.2.0.pre.beta.3 lib/stripe/services/country_spec_service.rb
stripe-13.2.0.pre.beta.2 lib/stripe/services/country_spec_service.rb
stripe-13.1.1 lib/stripe/services/country_spec_service.rb
stripe-13.2.0.pre.beta.1 lib/stripe/services/country_spec_service.rb
stripe-13.1.0 lib/stripe/services/country_spec_service.rb
stripe-13.0.2 lib/stripe/services/country_spec_service.rb
stripe-13.1.0.pre.beta.3 lib/stripe/services/country_spec_service.rb
stripe-13.0.1 lib/stripe/services/country_spec_service.rb
stripe-13.1.0.pre.beta.2 lib/stripe/services/country_spec_service.rb
stripe-13.0.0 lib/stripe/services/country_spec_service.rb