Class: Lithic::Resources::TransferLimits

Inherits:
Object
  • Object
show all
Defined in:
lib/lithic/resources/transfer_limits.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ TransferLimits

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of TransferLimits.

Parameters:



33
34
35
# File 'lib/lithic/resources/transfer_limits.rb', line 33

def initialize(client:)
  @client = client
end

Instance Method Details

#list(date: nil, request_options: {}) ⇒ Lithic::Internal::SinglePage<Lithic::Models::TransferLimitsResponse::Data>

Get transfer limits for a specified date

Parameters:

  • date (Date)

    Date for which to retrieve transfer limits (ISO 8601 format)

  • request_options (Lithic::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/lithic/resources/transfer_limits.rb', line 17

def list(params = {})
  parsed, options = Lithic::TransferLimitListParams.dump_request(params)
  query = Lithic::Internal::Util.encode_query_params(parsed)
  @client.request(
    method: :get,
    path: "v1/transfer_limits",
    query: query,
    page: Lithic::Internal::SinglePage,
    model: Lithic::TransferLimitsResponse::Data,
    options: options
  )
end