Class: Ingenico::Direct::SDK::Merchant::Products::GetPaymentProductNetworksParams

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

Overview

Query parameters for Get payment product networks

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amountInteger

Returns the current value of amount.

Returns:

  • (Integer)

    the current value of amount



17
18
19
# File 'lib/ingenico/direct/sdk/merchant/products/get_payment_product_networks_params.rb', line 17

def amount
  @amount
end

#country_codeString

Returns the current value of country_code.

Returns:

  • (String)

    the current value of country_code



17
18
19
# File 'lib/ingenico/direct/sdk/merchant/products/get_payment_product_networks_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/ingenico/direct/sdk/merchant/products/get_payment_product_networks_params.rb', line 17

def currency_code
  @currency_code
end

#is_recurringtrue/false

Returns the current value of is_recurring.

Returns:

  • (true/false)

    the current value of is_recurring



17
18
19
# File 'lib/ingenico/direct/sdk/merchant/products/get_payment_product_networks_params.rb', line 17

def is_recurring
  @is_recurring
end

Instance Method Details

#to_request_parametersArray<Ingenico::Direct::SDK::RequestParam>

Returns representing the attributes of this class.

Returns:



28
29
30
31
32
33
34
35
# File 'lib/ingenico/direct/sdk/merchant/products/get_payment_product_networks_params.rb', line 28

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('amount', @amount.to_s) unless @amount.nil?
  result << RequestParam.new('isRecurring', @is_recurring.to_s) unless @is_recurring.nil?
  result
end