Method: Unit::Transaction::ListTransactionParams#initialize

Defined in:
lib/unit/models/transaction/list_transaction_params.rb

#initialize(limit = TRANSACTION_LIST_LIMIT, offset = TRANSACTION_LIST_OFFSET, account_id = nil, customer_id = nil, query = nil, tags = nil, since = nil, _until = nil, card_id = nil, type = nil, from_amount = nil, to_amount = nil, direction = nil, exclude_fees = nil, sort = nil, include = nil) ⇒ ListTransactionParams

Returns a new instance of ListTransactionParams.

Parameters:

  • limit (Integer) (defaults to: TRANSACTION_LIST_LIMIT)
    • optional

  • offset (Integer) (defaults to: TRANSACTION_LIST_OFFSET)
    • optional

  • account_id (String) (defaults to: nil)
    • optional

  • customer_id (String) (defaults to: nil)
    • optional

  • query (String) (defaults to: nil)
    • optional

  • tags (String) (defaults to: nil)
    • optional

  • since (String) (defaults to: nil)
    • optional

  • _until (String) (defaults to: nil)
    • optional

  • card_id (String) (defaults to: nil)
    • optional

  • type (Array<String>) (defaults to: nil)
    • optional

  • from_amount (Integer) (defaults to: nil)
    • optional

  • to_amount (Integer) (defaults to: nil)
    • optional

  • direction (String) (defaults to: nil)
    • optional

  • exclude_fees (Boolean) (defaults to: nil)
    • optional

  • sort (String) (defaults to: nil)
    • optional

  • include (Array<String>) (defaults to: nil)
    • optional



26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# File 'lib/unit/models/transaction/list_transaction_params.rb', line 26

def initialize(limit = TRANSACTION_LIST_LIMIT, offset = TRANSACTION_LIST_OFFSET,  = nil, customer_id = nil,
               query = nil, tags = nil, since = nil, _until = nil, card_id = nil, type = nil, from_amount = nil, to_amount = nil,
               direction = nil, exclude_fees = nil, sort = nil, include = nil)
  @limit = limit
  @offset = offset
  @account_id = 
  @customer_id = customer_id
  @query = query
  @tags = tags
  @since = since
  @_until = _until
  @card_id = card_id
  @type = type
  @from_amount = from_amount
  @to_amount = to_amount
  @direction = direction
  @exclude_fees = exclude_fees
  @sort = sort
  @include = include
end