Class: OnlinePayments::SDK::Merchant::Products::GetPaymentProductNetworksParams
- Inherits:
-
ParamRequest
- Object
- ParamRequest
- OnlinePayments::SDK::Merchant::Products::GetPaymentProductNetworksParams
- Defined in:
- lib/onlinepayments/sdk/merchant/products/get_payment_product_networks_params.rb
Overview
Query parameters for ‘Get payment product networks’.
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.
-
#is_recurring ⇒ true/false
The current value of is_recurring.
Instance Method Summary collapse
-
#to_request_parameters ⇒ Array<OnlinePayments::SDK::RequestParam>
Representing the attributes of this class.
Instance Attribute Details
#amount ⇒ Integer
Returns the current value of amount.
16 17 18 |
# File 'lib/onlinepayments/sdk/merchant/products/get_payment_product_networks_params.rb', line 16 def amount @amount end |
#country_code ⇒ String
Returns the current value of country_code.
16 17 18 |
# File 'lib/onlinepayments/sdk/merchant/products/get_payment_product_networks_params.rb', line 16 def country_code @country_code end |
#currency_code ⇒ String
Returns the current value of currency_code.
16 17 18 |
# File 'lib/onlinepayments/sdk/merchant/products/get_payment_product_networks_params.rb', line 16 def currency_code @currency_code end |
#is_recurring ⇒ true/false
Returns the current value of is_recurring.
16 17 18 |
# File 'lib/onlinepayments/sdk/merchant/products/get_payment_product_networks_params.rb', line 16 def is_recurring @is_recurring end |
Instance Method Details
#to_request_parameters ⇒ Array<OnlinePayments::SDK::RequestParam>
Returns representing the attributes of this class.
27 28 29 30 31 32 33 34 |
# File 'lib/onlinepayments/sdk/merchant/products/get_payment_product_networks_params.rb', line 27 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 |