Class: OnlinePayments::SDK::Merchant::MerchantBatch::GetPaymentsReportParams
- Inherits:
-
Communication::ParamRequest
- Object
- Communication::ParamRequest
- OnlinePayments::SDK::Merchant::MerchantBatch::GetPaymentsReportParams
- Defined in:
- lib/onlinepayments/sdk/merchant/merchantbatch/get_payments_report_params.rb
Overview
Query parameters for Get payments report (/v2/merchantId/merchant-batches/merchantBatchReference/reports/payments)
Instance Attribute Summary collapse
-
#cursor ⇒ String
The current value of cursor.
-
#limit ⇒ Integer
The current value of limit.
Instance Method Summary collapse
-
#to_request_parameters ⇒ Array<OnlinePayments::SDK::Communication::RequestParam>
Representing the attributes of this class.
Instance Attribute Details
#cursor ⇒ String
Returns the current value of cursor.
15 16 17 |
# File 'lib/onlinepayments/sdk/merchant/merchantbatch/get_payments_report_params.rb', line 15 def cursor @cursor end |
#limit ⇒ Integer
Returns the current value of limit.
15 16 17 |
# File 'lib/onlinepayments/sdk/merchant/merchantbatch/get_payments_report_params.rb', line 15 def limit @limit end |
Instance Method Details
#to_request_parameters ⇒ Array<OnlinePayments::SDK::Communication::RequestParam>
Returns representing the attributes of this class.
22 23 24 25 26 27 |
# File 'lib/onlinepayments/sdk/merchant/merchantbatch/get_payments_report_params.rb', line 22 def to_request_parameters result = [] result << OnlinePayments::SDK::Communication::RequestParam.new('cursor', @cursor) unless @cursor.nil? result << OnlinePayments::SDK::Communication::RequestParam.new('limit', @limit.to_s) unless @limit.nil? result end |