Class: Worldline::Connect::SDK::V1::Merchant::Services::ConvertAmountParams
- Inherits:
-
Communication::ParamRequest
- Object
- Communication::ParamRequest
- Worldline::Connect::SDK::V1::Merchant::Services::ConvertAmountParams
- Defined in:
- lib/worldline/connect/sdk/v1/merchant/services/convert_amount_params.rb
Overview
Query parameters for Convert amount
Instance Attribute Summary collapse
-
#amount ⇒ Integer
The current value of amount.
-
#source ⇒ String
The current value of source.
-
#target ⇒ String
The current value of target.
Instance Method Summary collapse
-
#to_request_parameters ⇒ Array<Worldline::Connect::SDK::Communication::RequestParam>
Representing the attributes of this class.
Instance Attribute Details
#amount ⇒ Integer
Returns the current value of amount.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/merchant/services/convert_amount_params.rb', line 19 def amount @amount end |
#source ⇒ String
Returns the current value of source.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/merchant/services/convert_amount_params.rb', line 19 def source @source end |
#target ⇒ String
Returns the current value of target.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/merchant/services/convert_amount_params.rb', line 19 def target @target end |
Instance Method Details
#to_request_parameters ⇒ Array<Worldline::Connect::SDK::Communication::RequestParam>
Returns representing the attributes of this class.
28 29 30 31 32 33 34 |
# File 'lib/worldline/connect/sdk/v1/merchant/services/convert_amount_params.rb', line 28 def to_request_parameters result = [] result << RequestParam.new('source', @source) unless @source.nil? result << RequestParam.new('target', @target) unless @target.nil? result << RequestParam.new('amount', @amount.to_s) unless @amount.nil? result end |