Class: Dodopayments::Resources::Misc

Inherits:
Object
  • Object
show all
Defined in:
lib/dodopayments/resources/misc.rb

Instance Method Summary collapse

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.

Parameters:



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>

Parameters:

Returns:

See Also:



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