Class: Ingenico::Connect::SDK::Merchant::Products::GetProductParams
- Inherits:
-
ParamRequest
- Object
- ParamRequest
- Ingenico::Connect::SDK::Merchant::Products::GetProductParams
- Defined in:
- lib/ingenico/connect/sdk/merchant/products/get_product_params.rb
Overview
Query parameters for Get payment product
Instance Attribute Summary collapse
-
#amount ⇒ Object
Integer.
-
#country_code ⇒ Object
String.
-
#currency_code ⇒ Object
String.
-
#force_basic_flow ⇒ Object
true/false.
-
#hide ⇒ Object
Array of String.
-
#is_recurring ⇒ Object
true/false.
-
#locale ⇒ Object
String.
Instance Method Summary collapse
-
#add_hide(value) ⇒ Object
Adds the parameter value to the hide Array.
-
#to_request_parameters ⇒ Object
Returns an Array of RequestParam objects representing the attributes of this class.
Instance Attribute Details
#amount ⇒ Object
Integer
24 25 26 |
# File 'lib/ingenico/connect/sdk/merchant/products/get_product_params.rb', line 24 def amount @amount end |
#country_code ⇒ Object
String
15 16 17 |
# File 'lib/ingenico/connect/sdk/merchant/products/get_product_params.rb', line 15 def country_code @country_code end |
#currency_code ⇒ Object
String
18 19 20 |
# File 'lib/ingenico/connect/sdk/merchant/products/get_product_params.rb', line 18 def currency_code @currency_code end |
#force_basic_flow ⇒ Object
true/false
33 34 35 |
# File 'lib/ingenico/connect/sdk/merchant/products/get_product_params.rb', line 33 def force_basic_flow @force_basic_flow end |
#hide ⇒ Object
Array of String
30 31 32 |
# File 'lib/ingenico/connect/sdk/merchant/products/get_product_params.rb', line 30 def hide @hide end |
#is_recurring ⇒ Object
true/false
27 28 29 |
# File 'lib/ingenico/connect/sdk/merchant/products/get_product_params.rb', line 27 def is_recurring @is_recurring end |
#locale ⇒ Object
String
21 22 23 |
# File 'lib/ingenico/connect/sdk/merchant/products/get_product_params.rb', line 21 def locale @locale end |
Instance Method Details
#add_hide(value) ⇒ Object
Adds the parameter value to the hide Array
36 37 38 39 40 41 |
# File 'lib/ingenico/connect/sdk/merchant/products/get_product_params.rb', line 36 def add_hide(value) unless @hide @hide = [] end @hide << value end |
#to_request_parameters ⇒ Object
Returns an Array of RequestParam objects representing the attributes of this class
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/ingenico/connect/sdk/merchant/products/get_product_params.rb', line 44 def to_request_parameters result = [] add_parameter(result, 'countryCode', @country_code) add_parameter(result, 'currencyCode', @currency_code) add_parameter(result, 'locale', @locale) add_parameter(result, 'amount', @amount) add_parameter(result, 'isRecurring', @is_recurring) add_parameter(result, 'hide', @hide) add_parameter(result, 'forceBasicFlow', @force_basic_flow) result end |