lockstep_rails 0.3.68 → 0.3.70

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +85 -52
  3. data/app/models/lockstep/company_magic_link_summary.rb +6 -0
  4. data/app/models/lockstep/invoice.rb +8 -3
  5. data/app/models/lockstep/workflow_status.rb +8 -0
  6. data/app/platform_api/schema/application.rb +1 -0
  7. data/app/platform_api/schema/batch_sync.rb +2 -0
  8. data/app/platform_api/schema/company_magic_link_summary.rb +93 -0
  9. data/app/platform_api/schema/company_magic_link_summary_fetch_result.rb +26 -0
  10. data/app/platform_api/schema/company_sync.rb +15 -0
  11. data/app/platform_api/schema/contact_sync.rb +10 -0
  12. data/app/platform_api/schema/directory_company.rb +72 -0
  13. data/app/platform_api/schema/external_connector.rb +30 -0
  14. data/app/platform_api/schema/external_connector_auth.rb +14 -0
  15. data/app/platform_api/schema/external_connector_auth_request.rb +22 -0
  16. data/app/platform_api/schema/external_connector_token.rb +36 -0
  17. data/app/platform_api/schema/invoice_fetch_result.rb +4 -2
  18. data/app/platform_api/schema/invoice_line_sync.rb +10 -0
  19. data/app/platform_api/schema/invoice_sync.rb +15 -0
  20. data/app/platform_api/schema/journal_entry.rb +106 -0
  21. data/app/platform_api/schema/journal_entry_fetch_result.rb +26 -0
  22. data/app/platform_api/schema/journal_entry_line.rb +129 -0
  23. data/app/platform_api/schema/journal_entry_line_fetch_result.rb +26 -0
  24. data/app/platform_api/schema/journal_entry_line_sync.rb +92 -0
  25. data/app/platform_api/schema/journal_entry_sync.rb +66 -0
  26. data/app/platform_api/schema/magic_link.rb +8 -0
  27. data/app/platform_api/schema/magic_link_summary.rb +30 -0
  28. data/app/platform_api/schema/note.rb +28 -27
  29. data/app/platform_api/schema/payment_applied_sync.rb +15 -0
  30. data/app/platform_api/schema/payment_sync.rb +10 -0
  31. data/app/platform_api/schema/transaction.rb +5 -0
  32. data/app/platform_api/schema/workflow_status.rb +65 -0
  33. data/app/platform_api/schema/workflow_status_fetch_result.rb +26 -0
  34. data/app/platform_api/swagger.json +4237 -5291
  35. data/lib/lockstep_rails/version.rb +3 -2
  36. data/lib/tasks/update_api_schema.rake +5 -0
  37. metadata +20 -2
@@ -0,0 +1,22 @@
1
+ class Schema::ExternalConnectorAuthRequest < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # An array of scopes requested from 3rd-party provider.
9
+ # @type: array
10
+ field :scopes
11
+
12
+ # The URL the browser is redirected to after a user grants, or denies, permissions for Sage software.
13
+ # @type: string
14
+ field :redirect_url
15
+
16
+ # Opaque value that a secret will be tagged with on the service side when created
17
+ # @type: string
18
+ field :connection_context_id
19
+
20
+
21
+
22
+ end
@@ -0,0 +1,36 @@
1
+ class Schema::ExternalConnectorToken < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # ID of the token reference.
9
+ # @type: string
10
+ field :id
11
+
12
+ # When the user was authenticated.
13
+ # @type: string
14
+ # @format: date-time
15
+ field :authenticated_at, Types::Params::DateTime
16
+
17
+ # An array of scopes requested from 3rd-party external connector.
18
+ # @type: array
19
+ field :scopes
20
+
21
+ # When the token expires. This can be earlier if the token is revoked.
22
+ # @type: string
23
+ # @format: date-time
24
+ field :expires_at, Types::Params::DateTime
25
+
26
+ # External Connector ID
27
+ # @type: string
28
+ field :external_connector_id
29
+
30
+ # Connection context ID set by the product when starting onboarding with a external connector
31
+ # @type: string
32
+ field :connection_context_id
33
+
34
+
35
+
36
+ end
@@ -23,5 +23,7 @@ end
23
23
  # For more information on Invoices, see [InvoiceModel](https://developer.lockstep.io/reference/get_api-v1-invoices-id).
24
24
  # @type: array
25
25
  field :records
26
-
27
- end
26
+
27
+
28
+
29
+ end
@@ -8,6 +8,11 @@ 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.
12
+ # @type: string
13
+ # @format: uuid
14
+ field :network_id
15
+
11
16
  # This is the primary key of the Invoice Line record. For this field, you should use whatever the contact's unique
12
17
  # identifying number is in the originating system. Search for a unique, non-changing number within the
13
18
  # originating financial system for this record.
@@ -25,6 +30,11 @@ end
25
30
  # @type: string
26
31
  field :invoice_erp_key
27
32
 
33
+ # The network id of the parent Invoice.
34
+ # @type: string
35
+ # @format: uuid
36
+ field :invoice_network_id
37
+
28
38
  # The line number of this line, as defined in the originating ERP or accounting system. You can sort on this number to
29
39
  # get the original view of lines within the invoice.
30
40
  # @type: string
@@ -8,6 +8,11 @@ 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.
12
+ # @type: string
13
+ # @format: uuid
14
+ field :network_id
15
+
11
16
  # This is the primary key of the Invoice record. For this field, you should use whatever the invoice's unique
12
17
  # identifying number is in the originating system. Search for a unique, non-changing number within the
13
18
  # originating financial system for this record.
@@ -29,6 +34,11 @@ end
29
34
  # @type: string
30
35
  field :company_erp_key
31
36
 
37
+ # The network id of the related Company.
38
+ # @type: string
39
+ # @format: uuid
40
+ field :company_network_id
41
+
32
42
  # The original primary key or unique ID of the company to which this invoice was sent. This value should
33
43
  # match the [Company ErpKey](https://developer.lockstep.io/docs/importing-companies#erpkey) field on the
34
44
  # [CompanySyncModel](https://developer.lockstep.io/docs/importing-companies).
@@ -39,6 +49,11 @@ end
39
49
  # @type: string
40
50
  field :customer_erp_key
41
51
 
52
+ # The network id of the related Customer.
53
+ # @type: string
54
+ # @format: uuid
55
+ field :customer_network_id
56
+
42
57
  # The name of the salesperson that wrote this invoice. This is just text, it is not a reference to the
43
58
  # "Contacts" table. You will not receive an error if this field does not match a known contact person.
44
59
  # @type: string
@@ -0,0 +1,106 @@
1
+ class Schema::JournalEntry < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # The unique ID of this record, automatically assigned by Lockstep when this record is
9
+ # added to the Lockstep platform.
10
+ #
11
+ # For the ID of this record in its originating financial system, see `ErpKey`.
12
+ # @type: string
13
+ # @format: uuid
14
+ field :journal_entry_id
15
+
16
+ # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
17
+ # account will share the same GroupKey value. GroupKey values cannot be changed once created.
18
+ #
19
+ # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
20
+ # @type: string
21
+ # @format: uuid
22
+ field :group_key
23
+
24
+ # The AppEnrollmentId of the application that imported this record. For accounts
25
+ # with more than one financial system connected, this field identifies the originating
26
+ # financial system that produced this record. This value is null if this record
27
+ # was not loaded from an external ERP or financial system.
28
+ # @type: string
29
+ # @format: uuid
30
+ field :app_enrollment_id
31
+
32
+ # The unique ID of this record as it was known in its originating financial system.
33
+ #
34
+ # If this journal entry record was imported from a financial system, it will have the value `ErpKey`
35
+ # set to the original primary key number of the record as it was known in the originating financial
36
+ # system. If this record was not imported, this value will be `null`.
37
+ #
38
+ # For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
39
+ # @type: string
40
+ field :erp_key
41
+
42
+ # The ERP’s identifier for this journal entry, usually has meaning to the user.
43
+ # May be the same value of the ERP Key.
44
+ # @type: string
45
+ field :journal_id
46
+
47
+ # Possible sources for a Journal Entry.
48
+ field :source
49
+
50
+ # The UTC date and time when this journal entry was posted.
51
+ # @type: string
52
+ # @format: date-time
53
+ field :posting_date, Types::Params::DateTime
54
+
55
+ # Possible statuses for a Journal Entry.
56
+ field :status
57
+
58
+ # A brief description explaining the purpose of the journal entry.
59
+ # @type: string
60
+ field :description
61
+
62
+ # An additional comment related to the entry.
63
+ # @type: string
64
+ field :comment
65
+
66
+ # Any reference number or identifier associated with the entry, such as an invoice number or purchase order.
67
+ # @type: string
68
+ field :reference_number
69
+
70
+ # The raw posting date from the source.
71
+ # @type: string
72
+ # @format: date-time
73
+ field :source_posting_date, Types::Params::DateTime
74
+
75
+ # The date that the journal entry was created.
76
+ # @type: string
77
+ # @format: date-time
78
+ field :created, Types::Params::DateTime
79
+
80
+ # The ID of the user who created the journal entry.
81
+ # @type: string
82
+ # @format: uuid
83
+ field :created_user_id
84
+
85
+ # The date that the journal entry was last modified.
86
+ # @type: string
87
+ # @format: date-time
88
+ field :modified, Types::Params::DateTime
89
+
90
+ # The ID of the user who last modified the journal entry.
91
+ # @type: string
92
+ # @format: uuid
93
+ field :modified_user_id
94
+
95
+ # The date on which this record was last modified in source ERP.
96
+ # @type: string
97
+ # @format: date-time
98
+ field :source_modified_date, Types::Params::DateTime
99
+
100
+ belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
101
+ belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
102
+
103
+ has_many :lines, {:class_name=>"Schema::JournalEntryLine", :included=>true}
104
+ has_many :attachments, {:class_name=>"Schema::Attachment", :included=>true}
105
+
106
+ end
@@ -0,0 +1,26 @@
1
+ class Schema::JournalEntryFetchResult < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+
9
+ # @type: integer
10
+ # @format: int32
11
+ field :total_count
12
+
13
+
14
+ # @type: integer
15
+ # @format: int32
16
+ field :page_size
17
+
18
+
19
+ # @type: integer
20
+ # @format: int32
21
+ field :page_number
22
+
23
+
24
+ has_many :records, {:class_name=>"Schema::JournalEntry", :included=>true}
25
+
26
+ end
@@ -0,0 +1,129 @@
1
+ class Schema::JournalEntryLine < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # The unique ID of this record, automatically assigned by Lockstep when this record is
9
+ # added to the Lockstep platform.
10
+ #
11
+ # For the ID of this record in its originating financial system, see `ErpKey`.
12
+ # @type: string
13
+ # @format: uuid
14
+ field :journal_entry_line_id
15
+
16
+ # The Journal Entry with which this line is associated.
17
+ # @type: string
18
+ # @format: uuid
19
+ field :journal_entry_id
20
+
21
+ # The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
22
+ # account will share the same GroupKey value. GroupKey values cannot be changed once created.
23
+ #
24
+ # For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
25
+ # @type: string
26
+ # @format: uuid
27
+ field :group_key
28
+
29
+ # The AppEnrollmentId of the application that imported this record. For accounts
30
+ # with more than one financial system connected, this field identifies the originating
31
+ # financial system that produced this record. This value is null if this record
32
+ # was not loaded from an external ERP or financial system.
33
+ # @type: string
34
+ # @format: uuid
35
+ field :app_enrollment_id
36
+
37
+ # The unique ID of this record as it was known in its originating financial system.
38
+ #
39
+ # If this journal entry record was imported from a financial system, it will have the value `ErpKey`
40
+ # set to the original primary key number of the record as it was known in the originating financial
41
+ # system. If this record was not imported, this value will be `null`.
42
+ #
43
+ # For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
44
+ # @type: string
45
+ field :erp_key
46
+
47
+ # The Financial Account with which this line is associated.
48
+ # @type: string
49
+ # @format: uuid
50
+ field :financial_account_id
51
+
52
+ # The unique code/identifier assigned to each account in the chart of accounts.
53
+ # @type: string
54
+ field :account_number
55
+
56
+ # The name of the account.
57
+ # @type: string
58
+ field :account_name
59
+
60
+ # Debit to account.
61
+ # @type: number
62
+ # @format: double
63
+ field :debit
64
+
65
+ # Credit to account.
66
+ # @type: number
67
+ # @format: double
68
+ field :credit
69
+
70
+ # The transaction currency in which the entry is recorded, especially useful for multi-currency environments.
71
+ # @type: string
72
+ field :currency_code
73
+
74
+ # The base currency debit amount for the account.
75
+ # @type: number
76
+ # @format: double
77
+ field :base_debit
78
+
79
+ # The base currency credit amount for the account.
80
+ # @type: number
81
+ # @format: double
82
+ field :base_credit
83
+
84
+ # The base currency in which the entry is recorded, especially useful for multi-currency environments.
85
+ # @type: string
86
+ field :base_currency_code
87
+
88
+ # The ERP’s identifier for the user who recorded the journal entry line.
89
+ # @type: string
90
+ field :source_created_user
91
+
92
+ # A memo related to this line.
93
+ # @type: string
94
+ field :memo
95
+
96
+ # The date that the journal entry line was created.
97
+ # @type: string
98
+ # @format: date-time
99
+ field :created, Types::Params::DateTime
100
+
101
+ # The ID of the user who created the journal entry line.
102
+ # @type: string
103
+ # @format: uuid
104
+ field :created_user_id
105
+
106
+ # The date that the journal entry line was last modified.
107
+ # @type: string
108
+ # @format: date-time
109
+ field :modified, Types::Params::DateTime
110
+
111
+ # The ID of the user who last modified the journal entry line.
112
+ # @type: string
113
+ # @format: uuid
114
+ field :modified_user_id
115
+
116
+ # The date on which this record was last modified in source ERP.
117
+ # @type: string
118
+ # @format: date-time
119
+ field :source_modified_date, Types::Params::DateTime
120
+
121
+ # The journal entry for this journal entry line.
122
+ # To retrieve this item, specify `JournalEntry` in the "Include" parameter for your query.
123
+ field :journal_entry
124
+
125
+ belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
126
+ belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
127
+
128
+
129
+ end
@@ -0,0 +1,26 @@
1
+ class Schema::JournalEntryLineFetchResult < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+
9
+ # @type: integer
10
+ # @format: int32
11
+ field :total_count
12
+
13
+
14
+ # @type: integer
15
+ # @format: int32
16
+ field :page_size
17
+
18
+
19
+ # @type: integer
20
+ # @format: int32
21
+ field :page_number
22
+
23
+
24
+ has_many :records, {:class_name=>"Schema::JournalEntryLine", :included=>true}
25
+
26
+ end
@@ -0,0 +1,92 @@
1
+ class Schema::JournalEntryLineSync < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Indicates what action to take when an existing object has been found during the sync process.
9
+ field :on_match_action
10
+
11
+ # This is the primary key of the Journal Entry Line record. For this field, you should use whatever the Journal Entry Line's unique
12
+ # identifying number is in the originating system. Search for a unique, non-changing number within the
13
+ # originating financial system for this record.
14
+ #
15
+ # Example: If you store your Journal Entry Line records in a database, whatever the primary key for the Journal Entry Line table is
16
+ # in the database should be the "ErpKey".
17
+ #
18
+ # For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
19
+ # @type: string
20
+ field :erp_key
21
+
22
+ # The original primary key or unique ID of the journal entry to which this line belongs. This value should
23
+ # match the Journal Entry ErpKey field on the JournalEntrySyncModel.
24
+ # @type: string
25
+ field :journal_entry_erp_key
26
+
27
+ # An optional Financial Account with which this line is associated. This value should
28
+ # match the Financial Account ErpKey field on the FinancialAccountSyncModel.
29
+ # @type: string
30
+ field :financial_account_erp_key
31
+
32
+ # The unique code/identifier assigned to each account in the chart of accounts.
33
+ # @type: string
34
+ field :account_number
35
+
36
+ # The name of the account.
37
+ # @type: string
38
+ field :account_name
39
+
40
+ # Debit to account.
41
+ # @type: number
42
+ # @format: double
43
+ field :debit
44
+
45
+ # Credit to account.
46
+ # @type: number
47
+ # @format: double
48
+ field :credit
49
+
50
+ # The transaction currency in which the entry is recorded, especially useful for multi-currency environments.
51
+ # @type: string
52
+ field :currency_code
53
+
54
+ # The base currency debit amount for the account.
55
+ # @type: number
56
+ # @format: double
57
+ field :base_debit
58
+
59
+ # The base currency credit amount for the account.
60
+ # @type: number
61
+ # @format: double
62
+ field :base_credit
63
+
64
+ # The base currency in which the entry is recorded, especially useful for multi-currency environments.
65
+ # @type: string
66
+ field :base_currency_code
67
+
68
+ # The ERP’s identifier for the user who recorded the journal entry line.
69
+ # @type: string
70
+ field :source_created_user
71
+
72
+ # A memo related to this line.
73
+ # @type: string
74
+ field :memo
75
+
76
+ # If known, the date when this record was created according to the originating financial system
77
+ # in which this record is maintained. If the originating financial system does not maintain a
78
+ # created-date, leave this field null.
79
+ # @type: string
80
+ # @format: date-time
81
+ field :created, Types::Params::DateTime
82
+
83
+ # If known, the date when this record was most recently modified according to the originating
84
+ # financial system in which this record is maintained. If the originating financial system does
85
+ # not maintain a most-recently-modified-date, leave this field null.
86
+ # @type: string
87
+ # @format: date-time
88
+ field :modified, Types::Params::DateTime
89
+
90
+
91
+
92
+ end
@@ -0,0 +1,66 @@
1
+ class Schema::JournalEntrySync < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Indicates what action to take when an existing object has been found during the sync process.
9
+ field :on_match_action
10
+
11
+ # This is the primary key of the Journal Entry record. For this field, you should use whatever the Journal Entry's unique
12
+ # identifying number is in the originating system. Search for a unique, non-changing number within the
13
+ # originating financial system for this record.
14
+ #
15
+ # Example: If you store your Journal Entry records in a database, whatever the primary key for the Journal Entry table is
16
+ # in the database should be the "ErpKey".
17
+ #
18
+ # For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
19
+ # @type: string
20
+ field :erp_key
21
+
22
+ # The ERP’s identifier for this journal entry, usually has meaning to the user.
23
+ # May be the same value of the ERP Key.
24
+ # @type: string
25
+ field :journal_id
26
+
27
+ # Possible sources for a Journal Entry.
28
+ field :source
29
+
30
+ # Possible statuses for a Journal Entry.
31
+ field :status
32
+
33
+ # A brief description explaining the purpose of the journal entry.
34
+ # @type: string
35
+ field :description
36
+
37
+ # An additional comment related to the entry.
38
+ # @type: string
39
+ field :comment
40
+
41
+ # Any reference number or identifier associated with the entry, such as an invoice number or purchase order.
42
+ # @type: string
43
+ field :reference_number
44
+
45
+ # The raw posting date from the source.
46
+ # @type: string
47
+ # @format: date-time
48
+ field :source_posting_date, Types::Params::DateTime
49
+
50
+ # If known, the date when this record was created according to the originating financial system
51
+ # in which this record is maintained. If the originating financial system does not maintain a
52
+ # created-date, leave this field null.
53
+ # @type: string
54
+ # @format: date-time
55
+ field :created, Types::Params::DateTime
56
+
57
+ # If known, the date when this record was most recently modified according to the originating
58
+ # financial system in which this record is maintained. If the originating financial system does
59
+ # not maintain a most-recently-modified-date, leave this field null.
60
+ # @type: string
61
+ # @format: date-time
62
+ field :modified, Types::Params::DateTime
63
+
64
+
65
+
66
+ end
@@ -81,6 +81,14 @@ end
81
81
  # To retrieve this item, specify `User` in the "Include" parameter for your query.
82
82
  field :user
83
83
 
84
+ # The number of visits to this Magic Link
85
+ # @type: integer
86
+ # @format: int32
87
+ field :visits
88
+
89
+ # Possible statuses for a Magic Link.
90
+ field :status
91
+
84
92
  belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
85
93
  belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
86
94
  belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
@@ -0,0 +1,30 @@
1
+ class Schema::MagicLinkSummary < Lockstep::ApiRecord
2
+
3
+ # ApiRecord will crash unless `id_ref` is defined
4
+ def self.id_ref
5
+ nil
6
+ end
7
+
8
+ # Group that the summary is for
9
+ # @type: string
10
+ # @format: uuid
11
+ field :group_key
12
+
13
+ # Total number of magic links sent
14
+ # @type: integer
15
+ # @format: int32
16
+ field :total_count
17
+
18
+ # Total number of magic links that failed to send
19
+ # @type: integer
20
+ # @format: int32
21
+ field :total_bounced
22
+
23
+ # Total number of visits across all magic links
24
+ # @type: integer
25
+ # @format: int32
26
+ field :total_visited
27
+
28
+
29
+
30
+ end