Class: OnlinePayments::SDK::Merchant::MerchantBatch::GetPaymentsReportParams

Inherits:
Communication::ParamRequest show all
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

Instance Method Summary collapse

Instance Attribute Details

#cursorString

Returns the current value of cursor.

Returns:

  • (String)

    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

#limitInteger

Returns the current value of limit.

Returns:

  • (Integer)

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

Returns representing the attributes of this class.

Returns:



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