forked from Lockstep-Network/lockstep-sdk-ruby-rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathattachment_link.rb
More file actions
59 lines (49 loc) · 2.4 KB
/
Copy pathattachment_link.rb
File metadata and controls
59 lines (49 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
class Schema::AttachmentLink < Lockstep::ApiRecord
# ApiRecord will crash unless `id_ref` is defined
def self.id_ref
nil
end
# The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
#
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
# @type: string
# @format: uuid
field :group_key
# The unique ID of an attachment record, automatically assigned by ADS when this record is
# added to the Accounting Data Service.
# @type: string
# @format: uuid
field :attachment_id
# An Attachment is connected to an existing item within the Accounting Data Service by the fields `TableKey` and
# `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
# `Invoice` and an `ObjectKey` value of `12345`.
#
# The `ObjectKey` value contains the primary key of the record within the Accounting Data Service to which this
# Attachment is connected.
#
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
# @type: string
# @format: uuid
field :object_key
# An Attachment is connected to an existing item within the Accounting Data Service by the fields `TableKey` and
# `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
# `Invoice` and an `ObjectKey` value of `12345`.
#
# The `TableKey` value contains the name of the table within the Accounting Data Service to which this Attachment
# is connected.
#
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
# @type: string
field :table_key
# The date the Attachment Link was created.
# @type: string
# @format: date-time
field :created, Types::Params::DateTime
# The unique ID of the [UserAccount](https://developer.lockstep.io/docs/useraccountmodel) of the user
# who created this Attachment Link.
# @type: string
# @format: uuid
field :created_user_id
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
end