Class: OnlinePayments::SDK::Merchant::Products::GetProductDirectoryParams

Inherits:
Communication::ParamRequest show all
Defined in:
lib/onlinepayments/sdk/merchant/products/get_product_directory_params.rb

Overview

Query parameters for Get payment product directory (/v2/merchantId/products/paymentProductId/directory)

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#country_codeString

Returns the current value of country_code.

Returns:

  • (String)

    the current value of country_code



15
16
17
# File 'lib/onlinepayments/sdk/merchant/products/get_product_directory_params.rb', line 15

def country_code
  @country_code
end

#currency_codeString

Returns the current value of currency_code.

Returns:

  • (String)

    the current value of currency_code



15
16
17
# File 'lib/onlinepayments/sdk/merchant/products/get_product_directory_params.rb', line 15

def currency_code
  @currency_code
end

Instance Method Details

#to_request_parametersArray<OnlinePayments::SDK::Communication::RequestParam>

Returns representing the attributes of this class.

Returns:



22
23
24
25
26
27
# File 'lib/onlinepayments/sdk/merchant/products/get_product_directory_params.rb', line 22

def to_request_parameters
  result = []
  result << RequestParam.new('countryCode', @country_code) unless @country_code.nil?
  result << RequestParam.new('currencyCode', @currency_code) unless @currency_code.nil?
  result
end