lockstep_rails 0.3.69 → 0.3.71
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +85 -53
- data/app/models/lockstep/invoice.rb +8 -3
- data/app/models/lockstep/workflow_status.rb +8 -0
- data/app/platform_api/schema/batch_sync.rb +2 -0
- data/app/platform_api/schema/company_magic_link_summary.rb +17 -13
- data/app/platform_api/schema/company_sync.rb +15 -0
- data/app/platform_api/schema/contact_sync.rb +10 -0
- data/app/platform_api/schema/credit_memo_applied.rb +4 -5
- data/app/platform_api/schema/financial_account.rb +2 -2
- data/app/platform_api/schema/invoice.rb +18 -5
- data/app/platform_api/schema/invoice_line.rb +4 -5
- data/app/platform_api/schema/invoice_line_sync.rb +10 -0
- data/app/platform_api/schema/invoice_sync.rb +23 -0
- data/app/platform_api/schema/invoice_workflow_status_history.rb +49 -0
- data/app/platform_api/schema/journal_entry.rb +5 -0
- data/app/platform_api/schema/journal_entry_line.rb +15 -2
- data/app/platform_api/schema/journal_entry_line_fetch_result.rb +26 -0
- data/app/platform_api/schema/journal_entry_line_sync.rb +96 -0
- data/app/platform_api/schema/journal_entry_sync.rb +66 -0
- data/app/platform_api/schema/payment.rb +4 -5
- data/app/platform_api/schema/payment_applied.rb +4 -5
- data/app/platform_api/schema/payment_applied_sync.rb +15 -0
- data/app/platform_api/schema/payment_sync.rb +10 -0
- data/app/platform_api/schema/sync_request.rb +2 -0
- data/app/platform_api/schema/workflow_status.rb +68 -0
- data/app/platform_api/schema/workflow_status_fetch_result.rb +26 -0
- data/app/platform_api/swagger.json +9746 -12351
- data/lib/lockstep_rails/version.rb +3 -2
- data/lib/tasks/update_api_schema.rake +5 -0
- metadata +9 -2
@@ -0,0 +1,49 @@
|
|
1
|
+
class Schema::InvoiceWorkflowStatusHistory < 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 Accounting Data Services platform.
|
10
|
+
# @type: string
|
11
|
+
# @format: uuid
|
12
|
+
field :invoice_workflow_status_history_id
|
13
|
+
|
14
|
+
# The invoice ID associated with the invoice workflow status history.
|
15
|
+
# @type: string
|
16
|
+
# @format: uuid
|
17
|
+
field :invoice_id
|
18
|
+
|
19
|
+
# The workflow status ID associated with the invoice workflow status history.
|
20
|
+
# @type: string
|
21
|
+
# @format: uuid
|
22
|
+
field :workflow_status_id
|
23
|
+
|
24
|
+
# The GroupKey uniquely identifies a single Accounting Data Services Platform account. All records for this
|
25
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
26
|
+
#
|
27
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
28
|
+
# @type: string
|
29
|
+
# @format: uuid
|
30
|
+
field :group_key
|
31
|
+
|
32
|
+
# The notes for the invoice workflow status history.
|
33
|
+
# @type: string
|
34
|
+
field :workflow_status_notes
|
35
|
+
|
36
|
+
# The date that the invoice workflow status history was created.
|
37
|
+
# @type: string
|
38
|
+
# @format: date-time
|
39
|
+
field :created, Types::Params::DateTime
|
40
|
+
|
41
|
+
# The ID of the user who created the invoice workflow status history.
|
42
|
+
# @type: string
|
43
|
+
# @format: uuid
|
44
|
+
field :created_user_id
|
45
|
+
|
46
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
47
|
+
|
48
|
+
|
49
|
+
end
|
@@ -92,6 +92,11 @@ end
|
|
92
92
|
# @format: uuid
|
93
93
|
field :modified_user_id
|
94
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
|
+
|
95
100
|
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
96
101
|
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
97
102
|
|
@@ -69,7 +69,7 @@ end
|
|
69
69
|
|
70
70
|
# The transaction currency in which the entry is recorded, especially useful for multi-currency environments.
|
71
71
|
# @type: string
|
72
|
-
field :
|
72
|
+
field :currency_code
|
73
73
|
|
74
74
|
# The base currency debit amount for the account.
|
75
75
|
# @type: number
|
@@ -83,7 +83,7 @@ end
|
|
83
83
|
|
84
84
|
# The base currency in which the entry is recorded, especially useful for multi-currency environments.
|
85
85
|
# @type: string
|
86
|
-
field :
|
86
|
+
field :base_currency_code
|
87
87
|
|
88
88
|
# The ERP’s identifier for the user who recorded the journal entry line.
|
89
89
|
# @type: string
|
@@ -93,6 +93,10 @@ end
|
|
93
93
|
# @type: string
|
94
94
|
field :memo
|
95
95
|
|
96
|
+
# Dimensions for this journal entry line.
|
97
|
+
# @type: object
|
98
|
+
field :dimensions
|
99
|
+
|
96
100
|
# The date that the journal entry line was created.
|
97
101
|
# @type: string
|
98
102
|
# @format: date-time
|
@@ -113,6 +117,15 @@ end
|
|
113
117
|
# @format: uuid
|
114
118
|
field :modified_user_id
|
115
119
|
|
120
|
+
# The date on which this record was last modified in source ERP.
|
121
|
+
# @type: string
|
122
|
+
# @format: date-time
|
123
|
+
field :source_modified_date, Types::Params::DateTime
|
124
|
+
|
125
|
+
# The journal entry for this journal entry line.
|
126
|
+
# To retrieve this item, specify `JournalEntry` in the "Include" parameter for your query.
|
127
|
+
field :journal_entry
|
128
|
+
|
116
129
|
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
117
130
|
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
118
131
|
|
@@ -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,96 @@
|
|
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
|
+
# A JSON string representing the dimensions for this journal entry line.
|
77
|
+
# @type: object
|
78
|
+
field :dimensions
|
79
|
+
|
80
|
+
# If known, the date when this record was created according to the originating financial system
|
81
|
+
# in which this record is maintained. If the originating financial system does not maintain a
|
82
|
+
# created-date, leave this field null.
|
83
|
+
# @type: string
|
84
|
+
# @format: date-time
|
85
|
+
field :created, Types::Params::DateTime
|
86
|
+
|
87
|
+
# If known, the date when this record was most recently modified according to the originating
|
88
|
+
# financial system in which this record is maintained. If the originating financial system does
|
89
|
+
# not maintain a most-recently-modified-date, leave this field null.
|
90
|
+
# @type: string
|
91
|
+
# @format: date-time
|
92
|
+
field :modified, Types::Params::DateTime
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
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
|
@@ -36,12 +36,11 @@ end
|
|
36
36
|
# @type: string
|
37
37
|
field :erp_key
|
38
38
|
|
39
|
-
# Possible statuses for a record that supports ERP
|
40
|
-
field :
|
39
|
+
# Possible statuses for a record that supports ERP Update.
|
40
|
+
field :erp_update_status
|
41
41
|
|
42
|
-
#
|
43
|
-
|
44
|
-
field :erp_write_status_name
|
42
|
+
# Possible actions for a record that supports ERP Update.
|
43
|
+
field :erp_update_action
|
45
44
|
|
46
45
|
# The type of payment, AR Payment or AP Payment.
|
47
46
|
#
|
@@ -41,12 +41,11 @@ end
|
|
41
41
|
# @type: string
|
42
42
|
field :erp_key
|
43
43
|
|
44
|
-
# Possible statuses for a record that supports ERP
|
45
|
-
field :
|
44
|
+
# Possible statuses for a record that supports ERP Update.
|
45
|
+
field :erp_update_status
|
46
46
|
|
47
|
-
#
|
48
|
-
|
49
|
-
field :erp_write_status_name
|
47
|
+
# Possible actions for a record that supports ERP Update.
|
48
|
+
field :erp_update_action
|
50
49
|
|
51
50
|
# The entry number of this payment application. This is often a journal entry number, confirmation code,
|
52
51
|
# or other identifying field for this payment application.
|
@@ -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 Payment Application record. For this field, you should use whatever this
|
12
17
|
# transaction's unique identifying number is in the originating system. Search for a unique, non-changing
|
13
18
|
# number within the originating financial system for this record.
|
@@ -30,6 +35,11 @@ end
|
|
30
35
|
# @type: string
|
31
36
|
field :invoice_erp_key
|
32
37
|
|
38
|
+
# The network id of the related Invoice.
|
39
|
+
# @type: string
|
40
|
+
# @format: uuid
|
41
|
+
field :invoice_network_id
|
42
|
+
|
33
43
|
# This field indicates which Payment was used to provide the funds for this payment application. In this
|
34
44
|
# field, identify the original primary key or unique ID of the Payment that was used for this payment
|
35
45
|
# application.
|
@@ -42,6 +52,11 @@ end
|
|
42
52
|
# @type: string
|
43
53
|
field :payment_erp_key
|
44
54
|
|
55
|
+
# The network id of the related Payment.
|
56
|
+
# @type: string
|
57
|
+
# @format: uuid
|
58
|
+
field :payment_network_id
|
59
|
+
|
45
60
|
# The entry number of this payment application. This is often a journal entry number, confirmation code,
|
46
61
|
# or other identifying field for this payment application.
|
47
62
|
# @type: integer
|
@@ -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 Payment record. For this field, you should use whatever the payment'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 :company_erp_key
|
27
32
|
|
33
|
+
# The network id of the related Company.
|
34
|
+
# @type: string
|
35
|
+
# @format: uuid
|
36
|
+
field :company_network_id
|
37
|
+
|
28
38
|
# The type of payment, AR Payment or AP Payment.
|
29
39
|
#
|
30
40
|
# Recognized PaymentType values are:
|
@@ -20,11 +20,13 @@ end
|
|
20
20
|
field :group_key
|
21
21
|
|
22
22
|
# The status of processing for this SyncRequest. When a SyncRequest is created, it is flagged as `Ready`.
|
23
|
+
# While it is in queue waiting to be picked up, its status moves to `Connector`.
|
23
24
|
# When it is picked up for execution, its status moves to `In Progress`. When it is complete, its status
|
24
25
|
# will move to `Success` or `Failed`. If another API call cancels the SyncRequest, its status will move
|
25
26
|
# to `Cancelled`.
|
26
27
|
#
|
27
28
|
# * Ready
|
29
|
+
# * Connector
|
28
30
|
# * In Progress
|
29
31
|
# * Cancelled
|
30
32
|
# * Failed
|
@@ -0,0 +1,68 @@
|
|
1
|
+
class Schema::WorkflowStatus < 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 Accounting Data Services platform.
|
10
|
+
# @type: string
|
11
|
+
# @format: uuid
|
12
|
+
field :id
|
13
|
+
|
14
|
+
# The name of the workflow status.
|
15
|
+
# @type: string
|
16
|
+
field :name
|
17
|
+
|
18
|
+
# The description explaining the use of the workflow status.
|
19
|
+
# @type: string
|
20
|
+
field :description
|
21
|
+
|
22
|
+
# The prior workflow status ID.
|
23
|
+
# @type: string
|
24
|
+
# @format: uuid
|
25
|
+
field :parent_workflow_status_id
|
26
|
+
|
27
|
+
# The category of the workflow status.
|
28
|
+
# @type: string
|
29
|
+
field :category
|
30
|
+
|
31
|
+
# The code of the workflow status.
|
32
|
+
# @type: string
|
33
|
+
field :code
|
34
|
+
|
35
|
+
# Indicates whether notes are required or not.
|
36
|
+
# @type: boolean
|
37
|
+
field :is_notes_required
|
38
|
+
|
39
|
+
# Indicates whether the status change should be reported to the ERP or not.
|
40
|
+
# @type: boolean
|
41
|
+
field :promote_to_erp
|
42
|
+
|
43
|
+
# The date that the workflow status was created.
|
44
|
+
# @type: string
|
45
|
+
# @format: date-time
|
46
|
+
field :created, Types::Params::DateTime
|
47
|
+
|
48
|
+
# The ID of the user who created the workflow status.
|
49
|
+
# @type: string
|
50
|
+
# @format: uuid
|
51
|
+
field :created_user_id
|
52
|
+
|
53
|
+
# The date that the workflow status was last modified.
|
54
|
+
# @type: string
|
55
|
+
# @format: date-time
|
56
|
+
field :modified, Types::Params::DateTime
|
57
|
+
|
58
|
+
# The ID of the user who last modified the workflow status.
|
59
|
+
# @type: string
|
60
|
+
# @format: uuid
|
61
|
+
field :modified_user_id
|
62
|
+
|
63
|
+
belongs_to :parent_workflow_status, {:class_name=>"Lockstep::WorkflowStatus", :primary_key=>:id, :foreign_key=>"parent_workflow_status_id"}
|
64
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
65
|
+
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
66
|
+
|
67
|
+
|
68
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::WorkflowStatusFetchResult < 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::WorkflowStatus", :included=>true}
|
25
|
+
|
26
|
+
end
|