Class: Ingenico::Connect::SDK::Merchant::Productgroups::GetProductgroupParams

Inherits:
ParamRequest
  • Object
show all
Defined in:
lib/ingenico/connect/sdk/merchant/productgroups/get_productgroup_params.rb

Overview

Query parameters for Get payment product group

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amountObject

Integer



24
25
26
# File 'lib/ingenico/connect/sdk/merchant/productgroups/get_productgroup_params.rb', line 24

def amount
  @amount
end

#country_codeObject

String



15
16
17
# File 'lib/ingenico/connect/sdk/merchant/productgroups/get_productgroup_params.rb', line 15

def country_code
  @country_code
end

#currency_codeObject

String



18
19
20
# File 'lib/ingenico/connect/sdk/merchant/productgroups/get_productgroup_params.rb', line 18

def currency_code
  @currency_code
end

#hideObject

Array of String



30
31
32
# File 'lib/ingenico/connect/sdk/merchant/productgroups/get_productgroup_params.rb', line 30

def hide
  @hide
end

#is_recurringObject

true/false



27
28
29
# File 'lib/ingenico/connect/sdk/merchant/productgroups/get_productgroup_params.rb', line 27

def is_recurring
  @is_recurring
end

#localeObject

String



21
22
23
# File 'lib/ingenico/connect/sdk/merchant/productgroups/get_productgroup_params.rb', line 21

def locale
  @locale
end

Instance Method Details

#add_hide(value) ⇒ Object

Adds the parameter value to the hide Array



33
34
35
36
37
38
# File 'lib/ingenico/connect/sdk/merchant/productgroups/get_productgroup_params.rb', line 33

def add_hide(value)
  unless @hide
    @hide = []
  end
  @hide << value
end

#to_request_parametersObject

Returns an Array of RequestParam objects representing the attributes of this class



41
42
43
44
45
46
47
48
49
50
# File 'lib/ingenico/connect/sdk/merchant/productgroups/get_productgroup_params.rb', line 41

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)
  result
end