Class: Worldline::Connect::SDK::V1::Merchant::Services::ConvertAmountParams

Inherits:
Communication::ParamRequest show all
Defined in:
lib/worldline/connect/sdk/v1/merchant/services/convert_amount_params.rb

Overview

Query parameters for Convert amount

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



19
20
21
# File 'lib/worldline/connect/sdk/v1/merchant/services/convert_amount_params.rb', line 19

def amount
  @amount
end

#sourceString

Returns the current value of source.

Returns:

  • (String)

    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

#targetString

Returns the current value of target.

Returns:

  • (String)

    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_parametersArray<Worldline::Connect::SDK::Communication::RequestParam>

Returns representing the attributes of this class.

Returns:



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