Sha256: 64874adfeb70a7ea930af2d051eb7183d92e284f1bf511139e60a8c243a30d8b

Contents?: true

Size: 588 Bytes

Versions: 22

Compression:

Stored size: 588 Bytes

Contents

module MangoPay
  # Provides API methods for the UBO entity.
  class Regulatory < Resource
    class << self
      def one_country_url(country_iso)
        "#{MangoPay.api_path_no_client}/countries/#{country_iso}/authorizations"
      end

      def all_countries_url
        "#{MangoPay.api_path_no_client}/countries/authorizations"
      end

      def get_country_authorizations(country_iso)
        MangoPay.request(:get, one_country_url(country_iso))
      end

      def get_all_countries_authorizations
        MangoPay.request(:get, all_countries_url)
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
mangopay-3.28.0 lib/mangopay/regulatory.rb
mangopay-3.27.0 lib/mangopay/regulatory.rb
mangopay-3.26.1 lib/mangopay/regulatory.rb
mangopay-3.26.0 lib/mangopay/regulatory.rb
mangopay-3.25.1 lib/mangopay/regulatory.rb
mangopay-3.25.0 lib/mangopay/regulatory.rb
mangopay-3.24.1 lib/mangopay/regulatory.rb
mangopay-3.24.0 lib/mangopay/regulatory.rb
mangopay-3.23.0 lib/mangopay/regulatory.rb
mangopay-3.22.0 lib/mangopay/regulatory.rb
mangopay-3.21.0 lib/mangopay/regulatory.rb
mangopay-3.20.0 lib/mangopay/regulatory.rb
mangopay-3.19.0 lib/mangopay/regulatory.rb
mangopay-3.18.0 lib/mangopay/regulatory.rb
mangopay-3.17.0 lib/mangopay/regulatory.rb
mangopay-3.16.0 lib/mangopay/regulatory.rb
mangopay-3.15.0 lib/mangopay/regulatory.rb
mangopay-3.14.0 lib/mangopay/regulatory.rb
mangopay-3.13.2 lib/mangopay/regulatory.rb
mangopay-3.12.0 lib/mangopay/regulatory.rb