Class: Ingenico::Connect::SDK::Merchant::Refunds::FindRefundsParams

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

Overview

Query parameters for Find refunds

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hosted_checkout_idString

Returns the current value of hosted_checkout_id.

Returns:

  • (String)

    the current value of hosted_checkout_id



19
20
21
# File 'lib/ingenico/connect/sdk/merchant/refunds/find_refunds_params.rb', line 19

def hosted_checkout_id
  @hosted_checkout_id
end

#limitInteger

Returns the current value of limit.

Returns:

  • (Integer)

    the current value of limit



19
20
21
# File 'lib/ingenico/connect/sdk/merchant/refunds/find_refunds_params.rb', line 19

def limit
  @limit
end

#merchant_order_idInteger

Returns the current value of merchant_order_id.

Returns:

  • (Integer)

    the current value of merchant_order_id



19
20
21
# File 'lib/ingenico/connect/sdk/merchant/refunds/find_refunds_params.rb', line 19

def merchant_order_id
  @merchant_order_id
end

#merchant_referenceString

Returns the current value of merchant_reference.

Returns:

  • (String)

    the current value of merchant_reference



19
20
21
# File 'lib/ingenico/connect/sdk/merchant/refunds/find_refunds_params.rb', line 19

def merchant_reference
  @merchant_reference
end

#offsetInteger

Returns the current value of offset.

Returns:

  • (Integer)

    the current value of offset



19
20
21
# File 'lib/ingenico/connect/sdk/merchant/refunds/find_refunds_params.rb', line 19

def offset
  @offset
end

Instance Method Details

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

Returns representing the attributes of this class.

Returns:



32
33
34
35
36
37
38
39
40
# File 'lib/ingenico/connect/sdk/merchant/refunds/find_refunds_params.rb', line 32

def to_request_parameters
  result = []
  result << RequestParam.new('hostedCheckoutId', @hosted_checkout_id) unless @hosted_checkout_id.nil?
  result << RequestParam.new('merchantReference', @merchant_reference) unless @merchant_reference.nil?
  result << RequestParam.new('merchantOrderId', @merchant_order_id.to_s) unless @merchant_order_id.nil?
  result << RequestParam.new('offset', @offset.to_s) unless @offset.nil?
  result << RequestParam.new('limit', @limit.to_s) unless @limit.nil?
  result
end