Class: Ingenico::Connect::SDK::Merchant::Products::FindProductsParams
- Inherits:
-
ParamRequest
- Object
- ParamRequest
- Ingenico::Connect::SDK::Merchant::Products::FindProductsParams
- Defined in:
- lib/ingenico/connect/sdk/merchant/products/find_products_params.rb
Overview
Query parameters for Get payment products
Instance Attribute Summary collapse
-
#amount ⇒ Integer
The current value of amount.
-
#country_code ⇒ String
The current value of country_code.
-
#currency_code ⇒ String
The current value of currency_code.
-
#hide ⇒ Array<String>
The current value of hide.
-
#is_installments ⇒ true/false
The current value of is_installments.
-
#is_recurring ⇒ true/false
The current value of is_recurring.
-
#locale ⇒ String
The current value of locale.
Instance Method Summary collapse
-
#add_hide(value) ⇒ Object
Adds the parameter value to the hide Array.
-
#to_request_parameters ⇒ Array<Ingenico::Connect::SDK::RequestParam>
Representing the attributes of this class.
Instance Attribute Details
#amount ⇒ Integer
Returns the current value of amount.
21 22 23 |
# File 'lib/ingenico/connect/sdk/merchant/products/find_products_params.rb', line 21 def amount @amount end |
#country_code ⇒ String
Returns the current value of country_code.
21 22 23 |
# File 'lib/ingenico/connect/sdk/merchant/products/find_products_params.rb', line 21 def country_code @country_code end |
#currency_code ⇒ String
Returns the current value of currency_code.
21 22 23 |
# File 'lib/ingenico/connect/sdk/merchant/products/find_products_params.rb', line 21 def currency_code @currency_code end |
#hide ⇒ Array<String>
Returns the current value of hide.
21 22 23 |
# File 'lib/ingenico/connect/sdk/merchant/products/find_products_params.rb', line 21 def hide @hide end |
#is_installments ⇒ true/false
Returns the current value of is_installments.
21 22 23 |
# File 'lib/ingenico/connect/sdk/merchant/products/find_products_params.rb', line 21 def is_installments @is_installments end |
#is_recurring ⇒ true/false
Returns the current value of is_recurring.
21 22 23 |
# File 'lib/ingenico/connect/sdk/merchant/products/find_products_params.rb', line 21 def is_recurring @is_recurring end |
#locale ⇒ String
Returns the current value of locale.
21 22 23 |
# File 'lib/ingenico/connect/sdk/merchant/products/find_products_params.rb', line 21 def locale @locale end |
Instance Method Details
#add_hide(value) ⇒ Object
Adds the parameter value to the hide Array
39 40 41 42 43 44 |
# File 'lib/ingenico/connect/sdk/merchant/products/find_products_params.rb', line 39 def add_hide(value) unless @hide @hide = [] end @hide << value end |
#to_request_parameters ⇒ Array<Ingenico::Connect::SDK::RequestParam>
Returns representing the attributes of this class.
47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/ingenico/connect/sdk/merchant/products/find_products_params.rb', line 47 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 << RequestParam.new('locale', @locale) unless @locale.nil? result << RequestParam.new('amount', @amount.to_s) unless @amount.nil? result << RequestParam.new('isRecurring', @is_recurring.to_s) unless @is_recurring.nil? result << RequestParam.new('isInstallments', @is_installments.to_s) unless @is_installments.nil? unless @hide.nil? @hide.each {|e| result << RequestParam.new('hide', e)} end result end |