Class: Dodopayments::Resources::Misc
- Inherits:
-
Object
- Object
- Dodopayments::Resources::Misc
- Defined in:
- lib/dodopayments/resources/misc.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Misc
constructor
private
A new instance of Misc.
- #list_supported_countries(request_options: {}) ⇒ Array<Symbol, Dodopayments::Models::CountryCode>
Constructor Details
#initialize(client:) ⇒ Misc
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Misc.
25 26 27 |
# File 'lib/dodopayments/resources/misc.rb', line 25 def initialize(client:) @client = client end |
Instance Method Details
#list_supported_countries(request_options: {}) ⇒ Array<Symbol, Dodopayments::Models::CountryCode>
13 14 15 16 17 18 19 20 |
# File 'lib/dodopayments/resources/misc.rb', line 13 def list_supported_countries(params = {}) @client.request( method: :get, path: "checkout/supported_countries", model: Dodopayments::Internal::Type::ArrayOf[enum: Dodopayments::CountryCode], options: params[:request_options] ) end |