Class: CustomFieldDefinitionsClient
- Inherits:
-
Object
- Object
- CustomFieldDefinitionsClient
- Defined in:
- lib/lockstep_sdk/clients/custom_field_definitions.rb
Instance Method Summary collapse
-
#create_field_definitions(body:) ⇒ Object
Creates one or more Custom Field Definitions and returns the records as created.
-
#delete_field_definition(id:) ⇒ Object
Deletes the Custom Field Definition referred to by this unique identifier.
-
#initialize(lockstepsdk) ⇒ CustomFieldDefinitionsClient
constructor
Initialize the CustomFieldDefinitionsClient class with a lockstepsdk instance.
-
#query_field_definitions(filter:, include_param:, order:, page_size:, page_number:) ⇒ Object
Queries Custom Field Definitions within the Lockstep platform using the specified filtering, sorting, nested fetch, and pagination rules requested.
-
#retrieve_field_definition(id:, include_param:) ⇒ Object
Retrieves the Custom Field Definition specified by this unique identifier.
-
#update_field_definition(id:, body:) ⇒ Object
Updates an existing Custom Field Definition with the information supplied to this PATCH call.
Constructor Details
#initialize(lockstepsdk) ⇒ CustomFieldDefinitionsClient
Initialize the CustomFieldDefinitionsClient class with a lockstepsdk instance.
24 25 26 |
# File 'lib/lockstep_sdk/clients/custom_field_definitions.rb', line 24 def initialize(lockstepsdk) @lockstepsdk = lockstepsdk end |
Instance Method Details
#create_field_definitions(body:) ⇒ Object
Creates one or more Custom Field Definitions and returns the records as created. A Custom Field represents metadata added to an object within the Lockstep Platform. Lockstep provides a core definition for each object. The core definition is intended to represent a level of compatibility that provides support across most accounting systems and products. When a user or developer requires information beyond this core definition, you can use Custom Fields to represent this information. See [Extensibility](developer.lockstep.io/docs/extensibility) for more information.
67 68 69 70 |
# File 'lib/lockstep_sdk/clients/custom_field_definitions.rb', line 67 def create_field_definitions(body:) path = "/api/v1/CustomFieldDefinitions" @lockstepsdk.request(:post, path, body, nil) end |
#delete_field_definition(id:) ⇒ Object
Deletes the Custom Field Definition referred to by this unique identifier.
A Custom Field represents metadata added to an object within the Lockstep Platform. Lockstep provides a core definition for each object. The core definition is intended to represent a level of compatibility that provides support across most accounting systems and products. When a user or developer requires information beyond this core definition, you can use Custom Fields to represent this information. See [Extensibility](developer.lockstep.io/docs/extensibility) for more information.
59 60 61 62 |
# File 'lib/lockstep_sdk/clients/custom_field_definitions.rb', line 59 def delete_field_definition(id:) path = "/api/v1/CustomFieldDefinitions/#{id}" @lockstepsdk.request(:delete, path, nil, nil) end |
#query_field_definitions(filter:, include_param:, order:, page_size:, page_number:) ⇒ Object
Queries Custom Field Definitions within 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 Custom Field represents metadata added to an object within the Lockstep Platform. Lockstep provides a core definition for each object. The core definition is intended to represent a level of compatibility that provides support across most accounting systems and products. When a user or developer requires information beyond this core definition, you can use Custom Fields to represent this information. See [Extensibility](developer.lockstep.io/docs/extensibility) for more information.
83 84 85 86 87 |
# File 'lib/lockstep_sdk/clients/custom_field_definitions.rb', line 83 def query_field_definitions(filter:, include_param:, order:, page_size:, page_number:) path = "/api/v1/CustomFieldDefinitions/query" params = {:filter => filter, :include => include_param, :order => order, :pageSize => page_size, :pageNumber => page_number} @lockstepsdk.request(:get, path, nil, params) end |
#retrieve_field_definition(id:, include_param:) ⇒ Object
Retrieves the Custom Field Definition specified by this unique identifier.
A Custom Field represents metadata added to an object within the Lockstep Platform. Lockstep provides a core definition for each object. The core definition is intended to represent a level of compatibility that provides support across most accounting systems and products. When a user or developer requires information beyond this core definition, you can use Custom Fields to represent this information. See [Extensibility](developer.lockstep.io/docs/extensibility) for more information.
35 36 37 38 39 |
# File 'lib/lockstep_sdk/clients/custom_field_definitions.rb', line 35 def retrieve_field_definition(id:, include_param:) path = "/api/v1/CustomFieldDefinitions/#{id}" params = {:include => include_param} @lockstepsdk.request(:get, path, nil, params) end |
#update_field_definition(id:, body:) ⇒ Object
Updates an existing Custom Field Definition with the information supplied to this PATCH call.
The PATCH method allows you to change specific values on the object while leaving other values alone. As input you should supply a list of field names and new values. If you do not provide the name of a field, that field will remain unchanged. This allows you to ensure that you are only updating the specific fields desired.
A Custom Field represents metadata added to an object within the Lockstep Platform. Lockstep provides a core definition for each object. The core definition is intended to represent a level of compatibility that provides support across most accounting systems and products. When a user or developer requires information beyond this core definition, you can use Custom Fields to represent this information. See [Extensibility](developer.lockstep.io/docs/extensibility) for more information.
49 50 51 52 |
# File 'lib/lockstep_sdk/clients/custom_field_definitions.rb', line 49 def update_field_definition(id:, body:) path = "/api/v1/CustomFieldDefinitions/#{id}" @lockstepsdk.request(:patch, path, body.to_camelback_keys.to_json, nil) end |