Class: Worldline::Connect::SDK::V1::Merchant::Products::DirectoryParams

Inherits:
Communication::ParamRequest show all
Defined in:
lib/worldline/connect/sdk/v1/merchant/products/directory_params.rb

Overview

Query parameters for Get payment product 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



17
18
19
# File 'lib/worldline/connect/sdk/v1/merchant/products/directory_params.rb', line 17

def country_code
  @country_code
end

#currency_codeString

Returns the current value of currency_code.

Returns:

  • (String)

    the current value of currency_code



17
18
19
# File 'lib/worldline/connect/sdk/v1/merchant/products/directory_params.rb', line 17

def currency_code
  @currency_code
end

Instance Method Details

#to_request_parametersArray<Worldline::Connect::SDK::Communication::RequestParam>

Returns representing the attributes of this class.

Returns:



24
25
26
27
28
29
# File 'lib/worldline/connect/sdk/v1/merchant/products/directory_params.rb', line 24

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