lockstep_rails 0.3.88 → 0.3.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/lockstep/custom_field_value.rb +12 -0
  3. data/app/platform_api/schema/aging.rb +6 -9
  4. data/app/platform_api/schema/aging_bucket_result.rb +18 -0
  5. data/app/platform_api/schema/api_key.rb +1 -1
  6. data/app/platform_api/schema/app_enrollment.rb +3 -3
  7. data/app/platform_api/schema/app_enrollment_custom_field.rb +1 -1
  8. data/app/platform_api/schema/app_enrollment_reconnect_info.rb +0 -16
  9. data/app/platform_api/schema/application.rb +1 -1
  10. data/app/platform_api/schema/attachment.rb +8 -8
  11. data/app/platform_api/schema/attachment_link.rb +6 -6
  12. data/app/platform_api/schema/batch_sync.rb +1 -0
  13. data/app/platform_api/schema/code_definition.rb +2 -2
  14. data/app/platform_api/schema/company.rb +8 -17
  15. data/app/platform_api/schema/company_details.rb +1 -1
  16. data/app/platform_api/schema/company_details_payment.rb +1 -1
  17. data/app/platform_api/schema/company_identifier.rb +26 -0
  18. data/app/platform_api/schema/company_magic_link_summary.rb +5 -1
  19. data/app/platform_api/schema/company_sync.rb +5 -14
  20. data/app/platform_api/schema/connector_info.rb +0 -50
  21. data/app/platform_api/schema/contact.rb +2 -2
  22. data/app/platform_api/schema/contact_sync.rb +1 -1
  23. data/app/platform_api/schema/credit_memo_applied.rb +6 -6
  24. data/app/platform_api/schema/credit_memo_applied_sync.rb +1 -1
  25. data/app/platform_api/schema/credit_memo_invoice.rb +8 -2
  26. data/app/platform_api/schema/custom_field_definition.rb +2 -2
  27. data/app/platform_api/schema/custom_field_value.rb +2 -2
  28. data/app/platform_api/schema/customer_summary.rb +1 -1
  29. data/app/platform_api/schema/financial_account.rb +1 -1
  30. data/app/platform_api/schema/financial_account_balance_history.rb +2 -2
  31. data/app/platform_api/schema/financial_account_balance_history_sync.rb +1 -3
  32. data/app/platform_api/schema/financial_institution_account.rb +1 -1
  33. data/app/platform_api/schema/financial_year_setting.rb +2 -2
  34. data/app/platform_api/schema/group_account.rb +6 -1
  35. data/app/platform_api/schema/invoice.rb +61 -2
  36. data/app/platform_api/schema/invoice_address.rb +2 -2
  37. data/app/platform_api/schema/invoice_line.rb +29 -17
  38. data/app/platform_api/schema/invoice_line_sync.rb +28 -115
  39. data/app/platform_api/schema/invoice_payment_detail.rb +7 -1
  40. data/app/platform_api/schema/invoice_summary.rb +1 -1
  41. data/app/platform_api/schema/invoice_sync.rb +48 -1
  42. data/app/platform_api/schema/invoice_workflow_status_history.rb +22 -3
  43. data/app/platform_api/schema/invoice_workflow_status_sync.rb +39 -0
  44. data/app/platform_api/schema/journal_entry_line_sync.rb +5 -0
  45. data/app/platform_api/schema/magic_link.rb +2 -2
  46. data/app/platform_api/schema/note.rb +6 -6
  47. data/app/platform_api/schema/object_event.rb +69 -0
  48. data/app/platform_api/schema/payment.rb +19 -3
  49. data/app/platform_api/schema/payment_applied.rb +12 -4
  50. data/app/platform_api/schema/payment_applied_sync.rb +20 -4
  51. data/app/platform_api/schema/payment_detail.rb +2 -2
  52. data/app/platform_api/schema/payment_summary.rb +1 -1
  53. data/app/platform_api/schema/payment_sync.rb +9 -1
  54. data/app/platform_api/schema/status.rb +2 -2
  55. data/app/platform_api/schema/sync_request.rb +7 -3
  56. data/app/platform_api/schema/tax_summary.rb +29 -0
  57. data/app/platform_api/schema/user_account.rb +3 -7
  58. data/app/platform_api/schema/user_data_response.rb +1 -1
  59. data/app/platform_api/schema/user_group.rb +1 -1
  60. data/app/platform_api/schema/user_role.rb +3 -3
  61. data/app/platform_api/schema/vendor_summary.rb +1 -1
  62. data/app/platform_api/schema/webhook.rb +5 -5
  63. data/app/platform_api/schema/webhook_history_table_storage.rb +3 -3
  64. data/app/platform_api/schema/webhook_rule.rb +4 -4
  65. data/app/platform_api/schema/workflow_status.rb +7 -2
  66. data/app/platform_api/swagger.json +8636 -15489
  67. data/lib/lockstep_rails/version.rb +1 -1
  68. metadata +10 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94c98b074770436057abbd87081cdbd93e428ca4be13227a5e14ac0548e21763
4
- data.tar.gz: 02544c0127ad5988a3b6c73b9a20f82aa63105b474707fb4f8719a330880bd72
3
+ metadata.gz: d18fecc118b537898a13abf452ec36e2efce2596553d55cad4f4e48d8bc1aa78
4
+ data.tar.gz: f31076e4731b79b73a75c4e908d5f9d9f6ecd1dfb2f091567c64343c45a8e951
5
5
  SHA512:
6
- metadata.gz: 552f2afb4c7423c3a3de024b328db23d1e44db6268b0df6ca50e19fc6d1b83fb7aabce5e3b77d23ad11ea9376ba745a9f461dbf0b0b789d7094243cb978982fe
7
- data.tar.gz: 0755b64164b3b7a0cd2f49afb7721f0bef692e9ff7b9e684f01dc60b97e6f00bc455fb1da871b3a93c1869a6b001ccc902296184e0d52ce06b4ac06ee157894d
6
+ metadata.gz: 1e890c2a83c07baa7408c22343fa7667f7f3449bf73c83d706b6988127063f8363d6f6b1f1621983bafa42d9e6217bd2577fe859346d56544ec55049ca068608
7
+ data.tar.gz: 9b9cfbb0e27dc87d411b8450f7b671ce23be8100a6f1c5f5a0ffd164eb69a65803835fc6965761f7c18fc815570f76a5df9d10b1a5859f3ea4ce2abc341dcca6
@@ -2,4 +2,16 @@ class Lockstep::CustomFieldValue < Lockstep::ApiRecord
2
2
  self.model_name_uri = 'v1/CustomFieldValues'
3
3
  self.id_ref = 'custom_field_definition_id'
4
4
  load_schema(Schema::CustomFieldValue)
5
+
6
+ def update(attributes = {})
7
+ attributes = HashWithIndifferentAccess.new(attributes)
8
+
9
+ @unsaved_attributes.merge!(attributes)
10
+ attrs = attributes_for_saving.transform_keys { |key| key.camelize(:lower) }
11
+
12
+ # Label with CustomerLocale to be updated from here
13
+ resp = resource.patch("CustomerLocale/#{attributes[:record_key]}", body: attrs)
14
+ post_result(resp)
15
+ end
16
+
5
17
  end
@@ -5,20 +5,17 @@ def self.id_ref
5
5
  nil
6
6
  end
7
7
 
8
- # Aging bucket of outstanding balance data (days past due date of invoice)
9
- # @type: integer
10
- # @format: int32
11
- field :bucket
12
-
13
- # Currency code of aging bucket
8
+ # The Group Key the aging data is calculated for.
14
9
  # @type: string
15
- field :currency_code
10
+ # @format: uuid
11
+ field :group_key
16
12
 
17
- # Outstanding balance for the given aging bucket
13
+ # The total AR outstanding amount in the group's base currency.
18
14
  # @type: number
19
15
  # @format: double
20
- field :outstanding_balance
16
+ field :total
21
17
 
22
18
 
19
+ has_many :buckets, {:class_name=>"Schema::AgingBucketResult", :included=>true}
23
20
 
24
21
  end
@@ -0,0 +1,18 @@
1
+ class Schema::AgingBucketResult < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # The different buckets used for aging.
9
+ field :bucket
10
+
11
+ # The outstanding amount for the given bucket in the group's base currency.
12
+ # @type: number
13
+ # @format: double
14
+ field :value
15
+
16
+
17
+
18
+ end
@@ -10,7 +10,7 @@ end
10
10
  # @format: uuid
11
11
  field :api_key_id
12
12
 
13
- # The GroupKey uniquely identifies a single ADS Platform account. All records for this
13
+ # The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
14
14
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
15
15
  #
16
16
  # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
@@ -6,7 +6,7 @@ def self.id_ref
6
6
  end
7
7
 
8
8
  # The unique ID of this record, automatically assigned by ADS when this record is
9
- # added to the ADS Platform.
9
+ # added to the Accounting Data Service.
10
10
  # @type: string
11
11
  # @format: uuid
12
12
  field :app_enrollment_id
@@ -17,7 +17,7 @@ end
17
17
  # @format: uuid
18
18
  field :app_id
19
19
 
20
- # The GroupKey uniquely identifies a single ADS Platform account. All records for this
20
+ # The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
21
21
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
22
22
  #
23
23
  # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
@@ -58,7 +58,7 @@ end
58
58
  # @type: boolean
59
59
  field :sync_schedule_is_active
60
60
 
61
- # Flag indicating if the App Enrollment is currently being deleted from the Platform.
61
+ # Flag indicating if the App Enrollment is currently being deleted from the Network.
62
62
  # @type: boolean
63
63
  field :is_deleted
64
64
 
@@ -23,7 +23,7 @@ end
23
23
  # @type: string
24
24
  field :app_type
25
25
 
26
- # The GroupKey uniquely identifies a single ADS Platform account. All records for this
26
+ # The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
27
27
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
28
28
  #
29
29
  # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
@@ -5,10 +5,6 @@ def self.id_ref
5
5
  nil
6
6
  end
7
7
 
8
- # The OAuth authentication code.
9
- # @type: string
10
- field :auth_code
11
-
12
8
  # The username for the web services account with access permissions.
13
9
  # @type: string
14
10
  field :username
@@ -21,18 +17,6 @@ end
21
17
  # @type: string
22
18
  field :realm_id
23
19
 
24
- # The access token id for the connector enrollment.
25
- # @type: string
26
- field :token_id
27
-
28
- # The access token secret for the connector enrollment.
29
- # @type: string
30
- field :token_secret
31
-
32
- # The OAuth redirect uri.
33
- # @type: string
34
- field :redirect_uri
35
-
36
20
 
37
21
 
38
22
  end
@@ -59,7 +59,7 @@ end
59
59
  # @type: boolean
60
60
  field :is_active
61
61
 
62
- # The GroupKey uniquely identifies a single ADS Platform account. All records for this
62
+ # The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
63
63
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
64
64
  #
65
65
  # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
@@ -6,12 +6,12 @@ def self.id_ref
6
6
  end
7
7
 
8
8
  # The unique ID of this record, automatically assigned by ADS when this record is
9
- # added to the ADS Platform.
9
+ # added to the Accounting Data Service.
10
10
  # @type: string
11
11
  # @format: uuid
12
12
  field :attachment_id
13
13
 
14
- # The GroupKey uniquely identifies a single ADS Platform account. All records for this
14
+ # The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
15
15
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
16
16
  #
17
17
  # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
@@ -19,22 +19,22 @@ end
19
19
  # @format: uuid
20
20
  field :group_key
21
21
 
22
- # An Attachment is connected to an existing item within the ADS Platform by the fields `TableKey` and
22
+ # An Attachment is connected to an existing item within the Accounting Data Service by the fields `TableKey` and
23
23
  # `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
24
24
  # `Invoice` and an `ObjectKey` value of `12345`.
25
25
  #
26
- # The `TableKey` value contains the name of the table within the ADS Platform to which this Attachment
26
+ # The `TableKey` value contains the name of the table within the Accounting Data Service to which this Attachment
27
27
  # is connected.
28
28
  #
29
29
  # For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
30
30
  # @type: string
31
31
  field :table_key
32
32
 
33
- # An Attachment is connected to an existing item within the ADS Platform by the fields `TableKey` and
33
+ # An Attachment is connected to an existing item within the Accounting Data Service by the fields `TableKey` and
34
34
  # `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
35
35
  # `Invoice` and an `ObjectKey` value of `12345`.
36
36
  #
37
- # The `ObjectKey` value contains the primary key of the record within the ADS Platform to which this
37
+ # The `ObjectKey` value contains the primary key of the record within the Accounting Data Service to which this
38
38
  # Attachment is connected.
39
39
  #
40
40
  # For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
@@ -42,12 +42,12 @@ end
42
42
  # @format: uuid
43
43
  field :object_key
44
44
 
45
- # An Attachment represents a file that was uploaded to the ADS Platform. This field contains the original
45
+ # An Attachment represents a file that was uploaded to the Accounting Data Service. This field contains the original
46
46
  # name of the file on disk, without its extension.
47
47
  # @type: string
48
48
  field :file_name
49
49
 
50
- # An Attachment represents a file that was uploaded to the ADS Platform. This field contains the original
50
+ # An Attachment represents a file that was uploaded to the Accounting Data Service. This field contains the original
51
51
  # extension name of the file on disk.
52
52
  # @type: string
53
53
  field :file_ext
@@ -5,7 +5,7 @@ def self.id_ref
5
5
  nil
6
6
  end
7
7
 
8
- # The GroupKey uniquely identifies a single ADS Platform account. All records for this
8
+ # The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
9
9
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
10
10
  #
11
11
  # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
@@ -14,16 +14,16 @@ end
14
14
  field :group_key
15
15
 
16
16
  # The unique ID of an attachment record, automatically assigned by ADS when this record is
17
- # added to the ADS Platform.
17
+ # added to the Accounting Data Service.
18
18
  # @type: string
19
19
  # @format: uuid
20
20
  field :attachment_id
21
21
 
22
- # An Attachment is connected to an existing item within the ADS Platform by the fields `TableKey` and
22
+ # An Attachment is connected to an existing item within the Accounting Data Service by the fields `TableKey` and
23
23
  # `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
24
24
  # `Invoice` and an `ObjectKey` value of `12345`.
25
25
  #
26
- # The `ObjectKey` value contains the primary key of the record within the ADS Platform to which this
26
+ # The `ObjectKey` value contains the primary key of the record within the Accounting Data Service to which this
27
27
  # Attachment is connected.
28
28
  #
29
29
  # For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
@@ -31,11 +31,11 @@ end
31
31
  # @format: uuid
32
32
  field :object_key
33
33
 
34
- # An Attachment is connected to an existing item within the ADS Platform by the fields `TableKey` and
34
+ # An Attachment is connected to an existing item within the Accounting Data Service by the fields `TableKey` and
35
35
  # `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
36
36
  # `Invoice` and an `ObjectKey` value of `12345`.
37
37
  #
38
- # The `TableKey` value contains the name of the table within the ADS Platform to which this Attachment
38
+ # The `TableKey` value contains the name of the table within the Accounting Data Service to which this Attachment
39
39
  # is connected.
40
40
  #
41
41
  # For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
@@ -35,6 +35,7 @@ end
35
35
  has_many :credit_memo_applications, {:class_name=>"Schema::CreditMemoAppliedSync", :included=>true}
36
36
  has_many :invoices, {:class_name=>"Schema::InvoiceSync", :included=>true}
37
37
  has_many :invoice_lines, {:class_name=>"Schema::InvoiceLineSync", :included=>true}
38
+ has_many :invoice_workflow_statuses, {:class_name=>"Schema::InvoiceWorkflowStatusSync", :included=>true}
38
39
  has_many :custom_fields, {:class_name=>"Schema::CustomFieldSync", :included=>true}
39
40
  has_many :payments, {:class_name=>"Schema::PaymentSync", :included=>true}
40
41
  has_many :payment_applications, {:class_name=>"Schema::PaymentAppliedSync", :included=>true}
@@ -6,12 +6,12 @@ def self.id_ref
6
6
  end
7
7
 
8
8
  # The unique ID of this record, automatically assigned by ADS when this record is
9
- # added to the ADS Platform.
9
+ # added to the Accounting Data Service.
10
10
  # @type: string
11
11
  # @format: uuid
12
12
  field :code_definition_id
13
13
 
14
- # The GroupKey uniquely identifies a single ADS Platform account. All records for this
14
+ # The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
15
15
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
16
16
  #
17
17
  # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
@@ -6,7 +6,7 @@ def self.id_ref
6
6
  end
7
7
 
8
8
  # The unique ID of this record, automatically assigned by ADS when this record is
9
- # added to the ADS Platform.
9
+ # added to the Accounting Data Service.
10
10
  #
11
11
  # For the ID of this record in its originating financial system, see `ErpKey`.
12
12
  # @type: string
@@ -55,7 +55,7 @@ end
55
55
  # @format: uuid
56
56
  field :enterprise_id
57
57
 
58
- # The GroupKey uniquely identifies a single ADS Platform account. All records for this
58
+ # The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
59
59
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
60
60
  #
61
61
  # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
@@ -82,7 +82,7 @@ end
82
82
  # The scan status of the company's logo, if it exists
83
83
  field :company_logo_status
84
84
 
85
- # The ADS Platform `ContactId` of the primary contact for this company.
85
+ # The Accounting Data Service `ContactId` of the primary contact for this company. This contact must belong to this company.
86
86
  # @type: string
87
87
  # @format: uuid
88
88
  field :primary_contact_id
@@ -151,10 +151,6 @@ end
151
151
  # @format: uuid
152
152
  field :modified_user_id
153
153
 
154
- # The name of the user who last modified this company
155
- # @type: string
156
- field :modified_user_name
157
-
158
154
  # Federal Tax ID
159
155
  # @type: string
160
156
  field :tax_id
@@ -163,16 +159,6 @@ end
163
159
  # @type: string
164
160
  field :duns_number
165
161
 
166
- # AP (Accounts Payable) Email Address
167
- # @type: string
168
- # @format: email
169
- field :ap_email_address
170
-
171
- # AR (Accounts Receivable) Email Address
172
- # @type: string
173
- # @format: email
174
- field :ar_email_address
175
-
176
162
  # Indicates the preferred invoice delivery method. Examples include Print, Email, Fax
177
163
  # @type: string
178
164
  field :preferred_delivery_method
@@ -260,6 +246,10 @@ end
260
246
  # @format: uuid
261
247
  field :profile_reference_id
262
248
 
249
+ # A reference code for this company. This code is used to identify this company in external ERP systems.
250
+ # @type: string
251
+ field :reference_code
252
+
263
253
  # All invoices attached to this company.
264
254
  #
265
255
  # To retrieve this collection, specify `Invoices` in the "Include" parameter for your query. For more information on Invoices, see [InvoiceModel](https://developer.lockstep.io/reference/get_api-v1-invoices-id).
@@ -276,6 +266,7 @@ end
276
266
  belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
277
267
  belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
278
268
 
269
+ has_many :company_identifiers, {:class_name=>"Schema::CompanyIdentifier", :included=>true}
279
270
  has_many :notes, {:class_name=>"Lockstep::Note", :included=>true, :foreign_key=>:object_key, :polymorphic=>{:table_key=>"Company"}}
280
271
  has_many :attachments, {:class_name=>"Schema::Attachment", :included=>true}
281
272
  has_many :contacts, {:class_name=>"Schema::Contact", :included=>true}
@@ -5,7 +5,7 @@ def self.id_ref
5
5
  nil
6
6
  end
7
7
 
8
- # The GroupKey uniquely identifies a single ADS Platform account. All records for this
8
+ # The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
9
9
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
10
10
  #
11
11
  # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
@@ -5,7 +5,7 @@ def self.id_ref
5
5
  nil
6
6
  end
7
7
 
8
- # The GroupKey uniquely identifies a single ADS Platform account. All records for this
8
+ # The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
9
9
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
10
10
  #
11
11
  # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
@@ -0,0 +1,26 @@
1
+ class Schema::CompanyIdentifier < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # The type of identifier.
9
+ # @type: string
10
+ field :type
11
+
12
+ # The value of the identifier.
13
+ # @type: string
14
+ field :value
15
+
16
+ # The jurisdiction of the identifier.
17
+ # @type: string
18
+ field :jurisdiction
19
+
20
+ # The sub-jurisdiction of the identifier, ISO3166-1 or ISO3166-2 code.
21
+ # @type: string
22
+ field :subjurisdiction
23
+
24
+
25
+
26
+ end
@@ -28,7 +28,7 @@ end
28
28
  # @type: string
29
29
  field :company_type
30
30
 
31
- # The GroupKey uniquely identifies a single ADS Platform account. All records for this
31
+ # The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
32
32
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
33
33
  #
34
34
  # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
@@ -115,6 +115,10 @@ end
115
115
  # @format: uuid
116
116
  field :invite_status_modified_user_id
117
117
 
118
+ # This flag indicates whether the company is currently active.
119
+ # @type: boolean
120
+ field :is_active
121
+
118
122
  belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
119
123
  belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
120
124
 
@@ -8,7 +8,7 @@ end
8
8
  # Indicates what action to take when an existing object has been found during the sync process.
9
9
  field :on_match_action
10
10
 
11
- # The unique identifier of this object in the Sage Network platform.
11
+ # The unique identifier of this object in the Accounting Data Service.
12
12
  # @type: string
13
13
  # @format: uuid
14
14
  field :network_id
@@ -20,9 +20,6 @@ end
20
20
  # Example: If you store your company records in a database, whatever the primary key for the company table is
21
21
  # in the database should be the `ErpKey`.
22
22
  #
23
- # Example: If you use a financial system such as QuickBooks or Xero, look for the primary ID number of the
24
- # company record within that financial system.
25
- #
26
23
  # For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
27
24
  # @type: string
28
25
  field :erp_key
@@ -145,16 +142,6 @@ end
145
142
  # @type: string
146
143
  field :duns_number
147
144
 
148
- # If you know the AP (accounts payable) email address of this company, fill it in here. This is the email
149
- # address where you would send questions to the company if the company owed you money.
150
- # @type: string
151
- field :ap_email_address
152
-
153
- # If you know the AR (accounts receivable) email address of this company, fill it in here. This is the email
154
- # address where you would send questions to the company if you owed this company money.
155
- # @type: string
156
- field :ar_email_address
157
-
158
145
  # Indicates the preferred invoice delivery method. Examples include Print, Email, Fax
159
146
  # @type: string
160
147
  field :preferred_delivery_method
@@ -175,6 +162,10 @@ end
175
162
  # @type: string
176
163
  field :company_identifiers
177
164
 
165
+ # A reference code for the Company. This code is used to identify this company in external ERP systems.
166
+ # @type: string
167
+ field :reference_code
168
+
178
169
 
179
170
 
180
171
  end
@@ -5,35 +5,10 @@ def self.id_ref
5
5
  nil
6
6
  end
7
7
 
8
- # The authorization code returned from the first step of the OAuth2 flow
9
- # https://oauth.net/2/grant-types/authorization-code/
10
- # @type: string
11
- field :auth_code
12
-
13
- # The access token id for the connector enrollment.
14
- # @type: string
15
- field :token_id
16
-
17
- # The access token secret for the connector enrollment.
18
- # @type: string
19
- field :token_secret
20
-
21
8
  # The realm id of the account being granted permissions to access
22
9
  # @type: string
23
10
  field :realm_id
24
11
 
25
- # The subsidiary id that corresponds to a legal entity.
26
- # @type: string
27
- field :subsidiary_id
28
-
29
- # The redirect uri used for step one of the OAuth2.0 flow.
30
- # @type: string
31
- field :redirect_uri
32
-
33
- # The email an email connection is being created for.
34
- # @type: string
35
- field :email
36
-
37
12
  # The username of the web services account with access permissions.
38
13
  # @type: string
39
14
  field :username
@@ -42,31 +17,6 @@ end
42
17
  # @type: string
43
18
  field :password
44
19
 
45
- # The server name a connection is being created for.
46
- # @type: string
47
- field :server_name
48
-
49
- # The port number of the server a connection is being created for.
50
- # @type: integer
51
- # @format: int32
52
- field :server_port
53
-
54
- # The Client Id for the connection being created.
55
- # @type: string
56
- field :client_id
57
-
58
- # The Secret for the connection being created.
59
- # @type: string
60
- field :client_secret
61
-
62
- # The TenantId for the connection being created.
63
- # @type: string
64
- field :tenant
65
-
66
- # The AuthToken for the connection being created.
67
- # @type: string
68
- field :auth_token
69
-
70
20
 
71
21
 
72
22
  end
@@ -6,7 +6,7 @@ def self.id_ref
6
6
  end
7
7
 
8
8
  # The unique ID of this record, automatically assigned by ADS when this record is
9
- # added to the ADS Platform.
9
+ # added to the Accounting Data Service.
10
10
  #
11
11
  # For the ID of this record in its originating financial system, see `ErpKey`.
12
12
  # @type: string
@@ -18,7 +18,7 @@ end
18
18
  # @format: uuid
19
19
  field :company_id
20
20
 
21
- # The GroupKey uniquely identifies a single ADS Platform account. All records for this
21
+ # The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
22
22
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
23
23
  #
24
24
  # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
@@ -8,7 +8,7 @@ end
8
8
  # Indicates what action to take when an existing object has been found during the sync process.
9
9
  field :on_match_action
10
10
 
11
- # The unique identifier of this object in the Sage Network platform.
11
+ # The unique identifier of this object in the Accounting Data Service.
12
12
  # @type: string
13
13
  # @format: uuid
14
14
  field :network_id
@@ -6,14 +6,14 @@ def self.id_ref
6
6
  end
7
7
 
8
8
  # The unique ID of this record, automatically assigned by ADS when this record is
9
- # added to the ADS Platform.
9
+ # added to the Accounting Data Service.
10
10
  #
11
11
  # For the ID of this record in its originating financial system, see `ErpKey`.
12
12
  # @type: string
13
13
  # @format: uuid
14
14
  field :credit_memo_applied_id
15
15
 
16
- # The GroupKey uniquely identifies a single ADS Platform account. All records for this
16
+ # The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
17
17
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
18
18
  #
19
19
  # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
@@ -21,21 +21,21 @@ end
21
21
  # @format: uuid
22
22
  field :group_key
23
23
 
24
- # The ADS Platform ID of the Invoice to which this credit memo was applied. This Invoice's outstanding balance
24
+ # The Accounting Data Service ID of the Invoice to which this credit memo was applied. This Invoice's outstanding balance
25
25
  # was reduced by the value of the field `CreditMemoAppliedAmount` on the date `ApplyToInvoiceDate`.
26
26
  #
27
27
  # Example: Company ABC received a credit memo, CM000123 for $500. Company ABC then chooses to apply this
28
- # credit memo to reduce the balance of the invoice PO1000578. The `InvoiceErpKey` is the ADS Platform
28
+ # credit memo to reduce the balance of the invoice PO1000578. The `InvoiceErpKey` is the Accounting Data Service
29
29
  # ID number of Invoice `PO1000578`.
30
30
  # @type: string
31
31
  # @format: uuid
32
32
  field :invoice_id
33
33
 
34
- # The ADS Platform ID of the Invoice of type "Credit Memo" that was consumed in this payment application event.
34
+ # The Accounting Data Service ID of the Invoice of type "Credit Memo" that was consumed in this payment application event.
35
35
  #
36
36
  # Example: Company ABC received a credit memo, CM000123 for $500. Company ABC then chooses to apply this
37
37
  # credit memo to reduce the balance of the invoice PO1000578. The `CreditMemoInvoiceId` is the ADS
38
- # Platform ID number of Invoice `CM000123`.
38
+ # Network Id number of Invoice `CM000123`.
39
39
  # @type: string
40
40
  # @format: uuid
41
41
  field :credit_memo_invoice_id
@@ -8,7 +8,7 @@ end
8
8
  # Indicates what action to take when an existing object has been found during the sync process.
9
9
  field :on_match_action
10
10
 
11
- # The unique identifier of this object in the Sage Network platform.
11
+ # The unique identifier of this object in the Accounting Data Service.
12
12
  # @type: string
13
13
  # @format: uuid
14
14
  field :network_id
@@ -5,7 +5,7 @@ def self.id_ref
5
5
  nil
6
6
  end
7
7
 
8
- # The GroupKey uniquely identifies a single ADS Platform account. All records for this
8
+ # The GroupKey uniquely identifies a single Accounting Data Service account. All records for this
9
9
  # account will share the same GroupKey value. GroupKey values cannot be changed once created.
10
10
  #
11
11
  # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
@@ -22,7 +22,7 @@ end
22
22
  field :currency_code
23
23
 
24
24
  # The unique ID of this record, automatically assigned by ADS when this record is
25
- # added to the ADS Platform.
25
+ # added to the Accounting Data Service.
26
26
  # @type: string
27
27
  # @format: uuid
28
28
  field :credit_memo_applied_id
@@ -91,6 +91,12 @@ end
91
91
  # @format: double
92
92
  field :base_currency_outstanding_balance_amount
93
93
 
94
+ # Possible statuses for a record that supports ERP Update.
95
+ field :erp_update_status
96
+
97
+ # Possible actions for a record that supports ERP Update.
98
+ field :erp_update_action
99
+
94
100
  belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
95
101
  belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
96
102
  belongs_to :customer, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}