Class: Worldline::Connect::SDK::V1::Merchant::Payments::FindPaymentsParams
- Inherits:
-
Communication::ParamRequest
- Object
- Communication::ParamRequest
- Worldline::Connect::SDK::V1::Merchant::Payments::FindPaymentsParams
- Defined in:
- lib/worldline/connect/sdk/v1/merchant/payments/find_payments_params.rb
Overview
Query parameters for Find payments
Instance Attribute Summary collapse
-
#hosted_checkout_id ⇒ String
The current value of hosted_checkout_id.
-
#limit ⇒ Integer
The current value of limit.
-
#merchant_order_id ⇒ Integer
The current value of merchant_order_id.
-
#merchant_reference ⇒ String
The current value of merchant_reference.
-
#offset ⇒ Integer
The current value of offset.
Instance Method Summary collapse
-
#to_request_parameters ⇒ Array<Worldline::Connect::SDK::Communication::RequestParam>
Representing the attributes of this class.
Instance Attribute Details
#hosted_checkout_id ⇒ String
Returns the current value of hosted_checkout_id.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/merchant/payments/find_payments_params.rb', line 21 def hosted_checkout_id @hosted_checkout_id end |
#limit ⇒ Integer
Returns the current value of limit.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/merchant/payments/find_payments_params.rb', line 21 def limit @limit end |
#merchant_order_id ⇒ Integer
Returns the current value of merchant_order_id.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/merchant/payments/find_payments_params.rb', line 21 def merchant_order_id @merchant_order_id end |
#merchant_reference ⇒ String
Returns the current value of merchant_reference.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/merchant/payments/find_payments_params.rb', line 21 def merchant_reference @merchant_reference end |
#offset ⇒ Integer
Returns the current value of offset.
21 22 23 |
# File 'lib/worldline/connect/sdk/v1/merchant/payments/find_payments_params.rb', line 21 def offset @offset end |
Instance Method Details
#to_request_parameters ⇒ Array<Worldline::Connect::SDK::Communication::RequestParam>
Returns representing the attributes of this class.
34 35 36 37 38 39 40 41 42 |
# File 'lib/worldline/connect/sdk/v1/merchant/payments/find_payments_params.rb', line 34 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 |