Class: NotesClient

Inherits:
Object
  • Object
show all
Defined in:
lib/lockstep_sdk/clients/notes.rb

Instance Method Summary collapse

Constructor Details

#initialize(lockstepsdk) ⇒ NotesClient

Initialize the NotesClient class with a lockstepsdk instance.

Parameters:

  • lockstepsdk (LockstepApi)

    The Lockstep API client object for this connection



22
23
24
# File 'lib/lockstep_sdk/clients/notes.rb', line 22

def initialize(lockstepsdk)
    @lockstepsdk = lockstepsdk
end

Instance Method Details

#archive_note(id:) ⇒ Object

Archives the Note with the unique ID specified. A note is a customizable text string that can be attached to various account attributes within Lockstep. You can use notes for internal communication, correspondence with clients, or personal reminders. The Note Model represents a note and a number of different metadata attributes related to the creation, storage, and ownership of the note.

See [Extensibility](developer.lockstep.io/docs/extensibility) for more information.

Parameters:

  • id (uuid)

    Note id to be archived



44
45
46
47
48
# File 'lib/lockstep_sdk/clients/notes.rb', line 44

def archive_note(id:)
    path = "/api/v1/Notes/#{id}"
    params = {}
    @lockstepsdk.request(:delete, path, nil, params)
end

#create_notesObject

Creates one or more notes from the specified array of Note Models

A note is a customizable text string that can be attached to various account attributes within Lockstep. You can use notes for internal communication, correspondence with clients, or personal reminders. The Note Model represents a note and a number of different metadata attributes related to the creation, storage, and ownership of the note.

See [Extensibility](developer.lockstep.io/docs/extensibility) for more information.

Parameters:

  • body (NoteModel)

    The array of notes to be created



57
58
59
60
# File 'lib/lockstep_sdk/clients/notes.rb', line 57

def create_notes()
    path = "/api/v1/Notes"
    @lockstepsdk.request(:post, path, body, nil)
end

#query_notes(filter:, include_param:, order:, pageSize:, pageNumber:) ⇒ Object

Queries Notes on the Lockstep Platform using the specified filtering, sorting, nested fetch, and pagination rules requested.

More information on querying can be found on the [Searchlight Query Language](developer.lockstep.io/docs/querying-with-searchlight) page on the Lockstep Developer website. A note is a customizable text string that can be attached to various account attributes within Lockstep. You can use notes for internal communication, correspondence with clients, or personal reminders. The Note Model represents a note and a number of different metadata attributes related to the creation, storage, and ownership of the note.

See [Extensibility](developer.lockstep.io/docs/extensibility) for more information.

Parameters:

  • filter (string)

    The filter to use to select from the list of available applications, in the [Searchlight query syntax](github.com/tspence/csharp-searchlight).

  • include_param (string)

    To fetch additional data on this object, specify the list of elements to retrieve. No collections are currently available but may be offered in the future

  • order (string)

    The sort order for the results, in the [Searchlight order syntax](github.com/tspence/csharp-searchlight).

  • pageSize (int32)

    The page size for results (default 200, maximum of 10,000)

  • pageNumber (int32)

    The page number for results (default 0)



73
74
75
76
77
# File 'lib/lockstep_sdk/clients/notes.rb', line 73

def query_notes(filter:, include_param:, order:, pageSize:, pageNumber:)
    path = "/api/v1/Notes/query"
    params = {:filter => filter, :include => include_param, :order => order, :pageSize => pageSize, :pageNumber => pageNumber}
    @lockstepsdk.request(:get, path, nil, params)
end

#retrieve_note(id:, include_param:) ⇒ Object

Retrieves the note with the specified note identifier. A note is a customizable text string that can be attached to various account attributes within Lockstep. You can use notes for internal communication, correspondence with clients, or personal reminders. The Note Model represents a note and a number of different metadata attributes related to the creation, storage, and ownership of the note.

See [Extensibility](developer.lockstep.io/docs/extensibility) for more information.

Parameters:

  • id (uuid)

    The unique ID number of the Note to retrieve

  • include_param (string)

    To fetch additional data on this object, specify the list of elements to retrieve. No collections are currently available but may be offered in the future



33
34
35
36
37
# File 'lib/lockstep_sdk/clients/notes.rb', line 33

def retrieve_note(id:, include_param:)
    path = "/api/v1/Notes/#{id}"
    params = {:include => include_param}
    @lockstepsdk.request(:get, path, nil, params)
end