Class: Ingenico::Connect::SDK::Merchant::Products::GetProductParams

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

Overview

Query parameters for Get payment product

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amountObject

Integer



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

def amount
  @amount
end

#country_codeObject

String



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

def country_code
  @country_code
end

#currency_codeObject

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_flowObject

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

#hideObject

Array of String



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

def hide
  @hide
end

#is_recurringObject

true/false



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

def is_recurring
  @is_recurring
end

#localeObject

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_parametersObject

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