class Lithic::Resources::ManagementOperations

def create(params)

Other tags:
    See: Lithic::Models::ManagementOperationCreateParams -

Returns:
  • (Lithic::ManagementOperationTransaction) -

Parameters:
  • request_options (Lithic::RequestOptions, Hash{Symbol=>Object}, nil) --
  • user_defined_id (String) --
  • subtype (String) --
  • memo (String) --
  • token (String) --
  • financial_account_token (String) --
  • event_type (Symbol, Lithic::ManagementOperationCreateParams::EventType) --
  • effective_date (Date) --
  • direction (Symbol, Lithic::ManagementOperationCreateParams::Direction) --
  • category (Symbol, Lithic::ManagementOperationCreateParams::Category) --
  • amount (Integer) --

Overloads:
  • create(amount:, category:, direction:, effective_date:, event_type:, financial_account_token:, token: nil, memo: nil, subtype: nil, user_defined_id: nil, request_options: {})
def create(params)
  parsed, options = Lithic::ManagementOperationCreateParams.dump_request(params)
  @client.request(
    method: :post,
    path: "v1/management_operations",
    body: parsed,
    model: Lithic::ManagementOperationTransaction,
    options: options
  )
end

def initialize(client:)

Parameters:
  • client (Lithic::Client) --

Other tags:
    Api: - private
def initialize(client:)
  @client = client
end

def list(params = {})

Other tags:
    See: Lithic::Models::ManagementOperationListParams -

Returns:
  • (Lithic::Internal::CursorPage) -

Parameters:
  • request_options (Lithic::RequestOptions, Hash{Symbol=>Object}, nil) --
  • status (Symbol, Lithic::ManagementOperationListParams::Status) -- Management operation status to be returned.
  • starting_after (String) -- A cursor representing an item's token after which a page of results should begin
  • page_size (Integer) -- Page size (for pagination).
  • financial_account_token (String) -- Globally unique identifier for the financial account. Accepted type dependent on
  • ending_before (String) -- A cursor representing an item's token before which a page of results should end.
  • end_ (Time) -- Date string in RFC 3339 format. Only entries created before the specified time w
  • category (Symbol, Lithic::ManagementOperationListParams::Category) -- Management operation category to be returned.
  • business_account_token (String) --
  • begin_ (Time) -- Date string in RFC 3339 format. Only entries created after the specified time wi

Overloads:
  • list(begin_: nil, business_account_token: nil, category: nil, end_: nil, ending_before: nil, financial_account_token: nil, page_size: nil, starting_after: nil, status: nil, request_options: {})
def list(params = {})
  parsed, options = Lithic::ManagementOperationListParams.dump_request(params)
  @client.request(
    method: :get,
    path: "v1/management_operations",
    query: parsed.transform_keys(begin_: "begin", end_: "end"),
    page: Lithic::Internal::CursorPage,
    model: Lithic::ManagementOperationTransaction,
    options: options
  )
end

def retrieve(management_operation_token, params = {})

Other tags:
    See: Lithic::Models::ManagementOperationRetrieveParams -

Returns:
  • (Lithic::ManagementOperationTransaction) -

Parameters:
  • request_options (Lithic::RequestOptions, Hash{Symbol=>Object}, nil) --
  • management_operation_token (String) -- Globally unique identifier for the management operation

Overloads:
  • retrieve(management_operation_token, request_options: {})
def retrieve(management_operation_token, params = {})
  @client.request(
    method: :get,
    path: ["v1/management_operations/%1$s", management_operation_token],
    model: Lithic::ManagementOperationTransaction,
    options: params[:request_options]
  )
end

def reverse(management_operation_token, params)

Other tags:
    See: Lithic::Models::ManagementOperationReverseParams -

Returns:
  • (Lithic::ManagementOperationTransaction) -

Parameters:
  • request_options (Lithic::RequestOptions, Hash{Symbol=>Object}, nil) --
  • memo (String) --
  • effective_date (Date) --
  • management_operation_token (String) -- Globally unique identifier for the management operation

Overloads:
  • reverse(management_operation_token, effective_date:, memo: nil, request_options: {})
def reverse(management_operation_token, params)
  parsed, options = Lithic::ManagementOperationReverseParams.dump_request(params)
  @client.request(
    method: :post,
    path: ["v1/management_operations/%1$s/reverse", management_operation_token],
    body: parsed,
    model: Lithic::ManagementOperationTransaction,
    options: options
  )
end