lockstep_rails 0.3.37 → 0.3.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/platform_api/schema/ap_aging_header_info.rb +15 -12
- data/app/platform_api/schema/ap_header_info.rb +148 -0
- data/app/platform_api/schema/app_enrollment.rb +0 -3
- data/app/platform_api/schema/app_enrollment_reconnect_info.rb +30 -0
- data/app/platform_api/schema/application.rb +5 -0
- data/app/platform_api/schema/ar_aging_header_info.rb +16 -1
- data/app/platform_api/schema/ar_header_info.rb +41 -7
- data/app/platform_api/schema/at_risk_invoice_summary.rb +1 -1
- data/app/platform_api/schema/attachment.rb +34 -9
- data/app/platform_api/schema/batch_sync.rb +3 -0
- data/app/platform_api/schema/bulk_currency_conversion.rb +1 -1
- data/app/platform_api/schema/company.rb +17 -24
- data/app/platform_api/schema/company_details.rb +98 -0
- data/app/platform_api/schema/company_details_payment.rb +60 -0
- data/app/platform_api/schema/company_sync.rb +17 -2
- data/app/platform_api/schema/connector_info.rb +29 -0
- data/app/platform_api/schema/contact.rb +1 -1
- data/app/platform_api/schema/contact_sync.rb +7 -1
- data/app/platform_api/schema/credit_memo_applied.rb +6 -0
- data/app/platform_api/schema/credit_memo_invoice.rb +1 -1
- data/app/platform_api/schema/custom_field_sync.rb +4 -4
- data/app/platform_api/schema/custom_field_value.rb +12 -0
- data/app/platform_api/schema/customer_summary.rb +36 -1
- data/app/platform_api/schema/daily_payable_outstanding_report.rb +7 -4
- data/app/platform_api/schema/daily_sales_outstanding_report.rb +0 -5
- data/app/platform_api/schema/developer_account_submit.rb +8 -0
- data/app/platform_api/schema/dpo_summary.rb +46 -0
- data/app/platform_api/schema/dpo_summary_group_total.rb +38 -0
- data/app/platform_api/schema/feature_flags_request.rb +14 -0
- data/app/platform_api/schema/feature_flags_response.rb +14 -0
- data/app/platform_api/schema/financial_account.rb +1 -1
- data/app/platform_api/schema/financial_account_balance_history_sync.rb +56 -0
- data/app/platform_api/schema/financial_account_sync.rb +50 -0
- data/app/platform_api/schema/financial_report.rb +38 -0
- data/app/platform_api/schema/financial_report_cell.rb +14 -0
- data/app/platform_api/schema/financial_report_row.rb +20 -0
- data/app/platform_api/schema/financial_year_setting_sync.rb +28 -0
- data/app/platform_api/schema/group_account.rb +62 -0
- data/app/platform_api/schema/invoice.rb +8 -3
- data/app/platform_api/schema/invoice_fetch_result.rb +4 -4
- data/app/platform_api/schema/invoice_history.rb +1 -1
- data/app/platform_api/schema/invoice_line_sync.rb +3 -3
- data/app/platform_api/schema/invoice_payment_detail.rb +1 -1
- data/app/platform_api/schema/invoice_summary.rb +7 -1
- data/app/platform_api/schema/invoice_summary_invoice_summary_totals_summary_fetch_result.rb +30 -0
- data/app/platform_api/schema/invoice_summary_totals.rb +20 -0
- data/app/platform_api/schema/invoice_sync.rb +12 -7
- data/app/platform_api/schema/lead.rb +1 -0
- data/app/platform_api/schema/magic_link.rb +78 -0
- data/app/platform_api/schema/magic_link_fetch_result.rb +26 -0
- data/app/platform_api/schema/note.rb +24 -5
- data/app/platform_api/schema/payables_coming_due.rb +52 -0
- data/app/platform_api/schema/payables_coming_due_fetch_result.rb +26 -0
- data/app/platform_api/schema/payables_coming_due_header.rb +44 -0
- data/app/platform_api/schema/payables_coming_due_widget.rb +29 -0
- data/app/platform_api/schema/payables_summary_report.rb +43 -0
- data/app/platform_api/schema/payment.rb +6 -5
- data/app/platform_api/schema/payment_applied.rb +3 -0
- data/app/platform_api/schema/payment_detail.rb +17 -2
- data/app/platform_api/schema/payment_detail_header.rb +1 -1
- data/app/platform_api/schema/payment_summary.rb +32 -9
- data/app/platform_api/schema/payment_summary_payment_summary_totals_summary_fetch_result.rb +30 -0
- data/app/platform_api/schema/payment_summary_totals.rb +20 -0
- data/app/platform_api/schema/payment_sync.rb +6 -5
- data/app/platform_api/schema/public_company_profile.rb +37 -0
- data/app/platform_api/schema/public_company_profile_fetch_result.rb +26 -0
- data/app/platform_api/schema/risk_rate.rb +6 -1
- data/app/platform_api/schema/status.rb +10 -0
- data/app/platform_api/schema/summary_aging_totals.rb +19 -0
- data/app/platform_api/schema/sync_entity_result.rb +5 -0
- data/app/platform_api/schema/sync_request.rb +5 -0
- data/app/platform_api/schema/sync_submit.rb +6 -0
- data/app/platform_api/schema/transaction.rb +94 -0
- data/app/platform_api/schema/transaction_detail.rb +73 -0
- data/app/platform_api/schema/transaction_summary_total.rb +35 -0
- data/app/platform_api/schema/transaction_transaction_summary_total_summary_fetch_result.rb +30 -0
- data/app/platform_api/schema/user_account.rb +6 -2
- data/app/platform_api/schema/user_group.rb +30 -0
- data/app/platform_api/schema/user_role.rb +1 -1
- data/app/platform_api/schema/vendor_summary.rb +63 -10
- data/app/platform_api/schema/vendor_summary_fetch_result.rb +26 -0
- data/app/platform_api/schema/webhook.rb +6 -2
- data/app/platform_api/schema/webhook_history_table_storage.rb +12 -0
- data/app/platform_api/schema/webhook_rule.rb +79 -0
- data/app/platform_api/schema/webhook_rule_fetch_result.rb +26 -0
- data/app/platform_api/swagger.json +11440 -8523
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +39 -2
@@ -0,0 +1,60 @@
|
|
1
|
+
class Schema::CompanyDetailsPayment < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
9
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
|
+
#
|
11
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
12
|
+
# @type: string
|
13
|
+
# @format: uuid
|
14
|
+
field :group_key
|
15
|
+
|
16
|
+
# Unique identifier for payment
|
17
|
+
# @type: string
|
18
|
+
# @format: uuid
|
19
|
+
field :payment_id
|
20
|
+
|
21
|
+
# Unique identifier for payment applied
|
22
|
+
# @type: string
|
23
|
+
# @format: uuid
|
24
|
+
field :payment_applied_id
|
25
|
+
|
26
|
+
# Payment type
|
27
|
+
# @type: string
|
28
|
+
field :payment_type
|
29
|
+
|
30
|
+
# Unique identifier for invoice payment is associated with
|
31
|
+
# @type: string
|
32
|
+
# @format: uuid
|
33
|
+
field :invoice_id
|
34
|
+
|
35
|
+
# Invoice type payment is associated with
|
36
|
+
# @type: string
|
37
|
+
field :invoice_type_code
|
38
|
+
|
39
|
+
# Invoice reference code payment is associated with
|
40
|
+
# @type: string
|
41
|
+
field :invoice_reference_code
|
42
|
+
|
43
|
+
# Invoice total amount payment is associated with
|
44
|
+
# @type: number
|
45
|
+
# @format: double
|
46
|
+
field :invoice_total_amount
|
47
|
+
|
48
|
+
# Date payment placed
|
49
|
+
# @type: string
|
50
|
+
# @format: date-time
|
51
|
+
field :payment_date, Types::Params::DateTime
|
52
|
+
|
53
|
+
# Amount payment was made for
|
54
|
+
# @type: number
|
55
|
+
# @format: double
|
56
|
+
field :payment_amount
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
end
|
@@ -5,6 +5,9 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
+
# Indicates what action to take when a sync model has been found during the sync process.
|
9
|
+
field :on_match_action
|
10
|
+
|
8
11
|
# This is the primary key of the Company record. For this field, you should use whatever the company's unique
|
9
12
|
# identifying number is in the originating system. Search for a unique, non-changing number within the
|
10
13
|
# originating financial system for this record.
|
@@ -56,7 +59,7 @@ end
|
|
56
59
|
field :is_active
|
57
60
|
|
58
61
|
# The default currency code for transactions related to this company. For a list of currency codes, see
|
59
|
-
# [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies).
|
62
|
+
# [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies).
|
60
63
|
# @type: string
|
61
64
|
field :default_currency_code
|
62
65
|
|
@@ -93,7 +96,7 @@ end
|
|
93
96
|
# @type: string
|
94
97
|
field :postal_code
|
95
98
|
|
96
|
-
# The company's primary mailing address information
|
99
|
+
# The company's primary mailing address information
|
97
100
|
# @type: string
|
98
101
|
field :country
|
99
102
|
|
@@ -137,6 +140,18 @@ end
|
|
137
140
|
# @type: string
|
138
141
|
field :ar_email_address
|
139
142
|
|
143
|
+
# Indicates the preferred invoice delivery method. Examples include Print, Email, Fax
|
144
|
+
# @type: string
|
145
|
+
field :preferred_delivery_method
|
146
|
+
|
147
|
+
# The company email address.
|
148
|
+
# @type: string
|
149
|
+
field :email_address
|
150
|
+
|
151
|
+
# An external reference that identifies the Company from the originating ERP system, separate from the ErpKey.
|
152
|
+
# @type: string
|
153
|
+
field :external_reference
|
154
|
+
|
140
155
|
|
141
156
|
|
142
157
|
end
|
@@ -10,10 +10,22 @@ end
|
|
10
10
|
# @type: string
|
11
11
|
field :auth_code
|
12
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
|
+
|
13
21
|
# The realm id of the account being granted permissions to access
|
14
22
|
# @type: string
|
15
23
|
field :realm_id
|
16
24
|
|
25
|
+
# The subsidiary id that corresponds to a legal entity.
|
26
|
+
# @type: string
|
27
|
+
field :subsidiary_id
|
28
|
+
|
17
29
|
# The redirect uri used for step one of the OAuth2.0 flow.
|
18
30
|
# @type: string
|
19
31
|
field :redirect_uri
|
@@ -22,6 +34,23 @@ end
|
|
22
34
|
# @type: string
|
23
35
|
field :email
|
24
36
|
|
37
|
+
# The username of the web services account with access permissions.
|
38
|
+
# @type: string
|
39
|
+
field :username
|
40
|
+
|
41
|
+
# The password for the web services account with access permissions.
|
42
|
+
# @type: string
|
43
|
+
field :password
|
44
|
+
|
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
|
+
|
25
54
|
|
26
55
|
|
27
56
|
end
|
@@ -89,7 +89,7 @@ end
|
|
89
89
|
# @type: string
|
90
90
|
field :postal_code
|
91
91
|
|
92
|
-
# The two character country code of the address. This will be validated by the /api/v1/countries data set
|
92
|
+
# The two character country code of the address. This will be validated by the /api/v1/definitions/countries data set
|
93
93
|
# @type: string
|
94
94
|
field :country_code
|
95
95
|
|
@@ -12,6 +12,12 @@ end
|
|
12
12
|
# Example: If you store your contact records in a database, whatever the primary key for the contact table is
|
13
13
|
# in the database should be the "ErpKey".
|
14
14
|
#
|
15
|
+
# As some ERP systems don't maintain a unique key for Contacts, we also support syncing Contacts with ERP keys
|
16
|
+
# of the form {prefix}|{index}, for example ContactPrefix|1, ContactPrefix|2 and so on.
|
17
|
+
#
|
18
|
+
# For this reason, please ensure that your Contact ERP keys don't otherwise contain the '|' symbol or that it
|
19
|
+
# is replaced by an alternate symbol if they do.
|
20
|
+
#
|
15
21
|
# For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
|
16
22
|
# @type: string
|
17
23
|
field :erp_key
|
@@ -74,7 +80,7 @@ end
|
|
74
80
|
# @type: string
|
75
81
|
field :postal_code
|
76
82
|
|
77
|
-
# The mailing address information for this contact.
|
83
|
+
# The mailing address information for this contact.
|
78
84
|
# @type: string
|
79
85
|
field :country_code
|
80
86
|
|
@@ -93,6 +93,12 @@ end
|
|
93
93
|
# @format: uuid
|
94
94
|
field :app_enrollment_id
|
95
95
|
|
96
|
+
# The credit memo invoice associated with this applied credit memo
|
97
|
+
field :credit_memo_invoice
|
98
|
+
|
99
|
+
# The invoice associated with this applied credit memo
|
100
|
+
field :invoice
|
101
|
+
|
96
102
|
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
97
103
|
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
98
104
|
|
@@ -7,7 +7,7 @@ end
|
|
7
7
|
|
8
8
|
# The GroupKey uniquely identifies a single Lockstep Platform 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).
|
12
12
|
# @type: string
|
13
13
|
# @format: uuid
|
@@ -9,7 +9,7 @@ end
|
|
9
9
|
# identifying number as it is stored in the originating financial system. Search for a unique, non-changing
|
10
10
|
# number within the originating financial system for this record.
|
11
11
|
#
|
12
|
-
# Custom Fields are identified by the `
|
12
|
+
# Custom Fields are identified by the `TableKey` and `ErpKey` values together.
|
13
13
|
#
|
14
14
|
# Example: You have an invoice whose ID number is 100047878, and you wish to store a custom field on that
|
15
15
|
# invoice named "ApprovalStatusCode". For the `ErpKey` field, specify the value `100047878`.
|
@@ -18,10 +18,10 @@ end
|
|
18
18
|
# @type: string
|
19
19
|
field :erp_key
|
20
20
|
|
21
|
-
# Custom Fields are identified by the `
|
21
|
+
# Custom Fields are identified by the `TableKey` and `ErpKey` values together.
|
22
22
|
#
|
23
23
|
# Example: You have an invoice whose ID number is 100047878, and you wish to store a custom field on that
|
24
|
-
# invoice named "ApprovalStatusCode". For the `
|
24
|
+
# invoice named "ApprovalStatusCode". For the `TableKey` field, specify the value `Invoice`.
|
25
25
|
#
|
26
26
|
# Recognized types include:
|
27
27
|
# * `Company` - Link this custom field to a CompanySyncModel
|
@@ -30,7 +30,7 @@ end
|
|
30
30
|
# * `InvoiceLine` - Link this custom field to an InvoiceLineSyncModel
|
31
31
|
# * `Payment` - Link this custom field to a PaymentSyncModel
|
32
32
|
# @type: string
|
33
|
-
field :
|
33
|
+
field :table_key
|
34
34
|
|
35
35
|
# A label that uniquely identifies this custom field within your software.
|
36
36
|
#
|
@@ -24,6 +24,18 @@ end
|
|
24
24
|
# @format: uuid
|
25
25
|
field :record_key
|
26
26
|
|
27
|
+
# Table to which this definition belongs
|
28
|
+
# @type: string
|
29
|
+
field :table_key
|
30
|
+
|
31
|
+
# Text to display in-application for custom field
|
32
|
+
# @type: string
|
33
|
+
field :custom_field_label
|
34
|
+
|
35
|
+
# Data type of this definition
|
36
|
+
# @type: string
|
37
|
+
field :data_type
|
38
|
+
|
27
39
|
# String of data for field
|
28
40
|
# @type: string
|
29
41
|
field :string_value
|
@@ -7,7 +7,7 @@ end
|
|
7
7
|
|
8
8
|
# The GroupKey uniquely identifies a single Lockstep Platform 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).
|
12
12
|
# @type: string
|
13
13
|
# @format: uuid
|
@@ -26,6 +26,11 @@ end
|
|
26
26
|
# @type: string
|
27
27
|
field :primary_contact
|
28
28
|
|
29
|
+
# The app enrollment ID this Customer is associated with
|
30
|
+
# @type: string
|
31
|
+
# @format: uuid
|
32
|
+
field :app_enrollment_id
|
33
|
+
|
29
34
|
# The number of outstanding invoices for this customer.
|
30
35
|
# @type: integer
|
31
36
|
# @format: int32
|
@@ -46,16 +51,41 @@ end
|
|
46
51
|
# @format: int32
|
47
52
|
field :closed_invoices
|
48
53
|
|
54
|
+
# The number of closed invoices for this customer in the past thirty days.
|
55
|
+
# @type: integer
|
56
|
+
# @format: int32
|
57
|
+
field :closed_invoices_past_thirty_days
|
58
|
+
|
49
59
|
# The total from collected payments.
|
50
60
|
# @type: number
|
51
61
|
# @format: double
|
52
62
|
field :amount_collected
|
53
63
|
|
64
|
+
# The total from collected payments in the past thirty days.
|
65
|
+
# @type: number
|
66
|
+
# @format: double
|
67
|
+
field :amount_collected_past_thirty_days
|
68
|
+
|
54
69
|
# The total balance of outstanding invoices.
|
55
70
|
# @type: number
|
56
71
|
# @format: double
|
57
72
|
field :outstanding_amount
|
58
73
|
|
74
|
+
# The total amount invoiced in the past thirty days.
|
75
|
+
# @type: number
|
76
|
+
# @format: double
|
77
|
+
field :invoiced_amount_past_thirty_days
|
78
|
+
|
79
|
+
# The total amount outstanding from the invoices invoiced in the past thirty days.
|
80
|
+
# @type: number
|
81
|
+
# @format: double
|
82
|
+
field :outstanding_amount_past_thirty_days
|
83
|
+
|
84
|
+
# The number of invoices invoiced in the past thirty days.
|
85
|
+
# @type: integer
|
86
|
+
# @format: int32
|
87
|
+
field :invoices_past_thirty_days
|
88
|
+
|
59
89
|
# The total amount past due for this customer.
|
60
90
|
# @type: number
|
61
91
|
# @format: double
|
@@ -66,6 +96,11 @@ end
|
|
66
96
|
# @format: double
|
67
97
|
field :unapplied_payments
|
68
98
|
|
99
|
+
# The total value of unapplied Payments for this Customer in the past thirty days.
|
100
|
+
# @type: number
|
101
|
+
# @format: double
|
102
|
+
field :unapplied_amount_past_thirty_days
|
103
|
+
|
69
104
|
# Portion of Total AR for this Customer that is Past due. (TotalPastDue / Total AR).
|
70
105
|
# @type: number
|
71
106
|
# @format: double
|
@@ -5,12 +5,12 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# Timeframe (
|
8
|
+
# Timeframe (quarter) the daily payable outstanding values are associated with
|
9
9
|
# @type: string
|
10
10
|
# @format: date-time
|
11
11
|
field :timeframe, Types::Params::DateTime
|
12
12
|
|
13
|
-
# Number of invoices the average daily
|
13
|
+
# Number of invoices the average daily payable outstanding is calculated on
|
14
14
|
# @type: integer
|
15
15
|
# @format: int32
|
16
16
|
field :invoice_count
|
@@ -18,5 +18,8 @@ end
|
|
18
18
|
# Time (in days) between an invoice was completed paid off and when the invoice was issued
|
19
19
|
# @type: number
|
20
20
|
# @format: double
|
21
|
-
field :
|
22
|
-
|
21
|
+
field :daily_payable_outstanding
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
end
|
@@ -10,11 +10,6 @@ end
|
|
10
10
|
# @format: date-time
|
11
11
|
field :timeframe, Types::Params::DateTime
|
12
12
|
|
13
|
-
# Number of invoices the average daily sales outstanding is calculated on
|
14
|
-
# @type: integer
|
15
|
-
# @format: int32
|
16
|
-
field :invoice_count
|
17
|
-
|
18
13
|
# Time (in days) between an invoice was completed paid off and when the invoice was issued
|
19
14
|
# @type: number
|
20
15
|
# @format: double
|
@@ -9,6 +9,14 @@ end
|
|
9
9
|
# @type: string
|
10
10
|
field :name
|
11
11
|
|
12
|
+
# The first name of the person requesting the developer account.
|
13
|
+
# @type: string
|
14
|
+
field :first_name
|
15
|
+
|
16
|
+
# The last name of the person requesting the developer account.
|
17
|
+
# @type: string
|
18
|
+
field :last_name
|
19
|
+
|
12
20
|
# The email address of the developer.
|
13
21
|
# @type: string
|
14
22
|
# @format: email
|
@@ -0,0 +1,46 @@
|
|
1
|
+
class Schema::DpoSummary < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
9
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
|
+
#
|
11
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
12
|
+
# @type: string
|
13
|
+
# @format: uuid
|
14
|
+
field :group_key
|
15
|
+
|
16
|
+
# The unique ID of the vendor.
|
17
|
+
# @type: string
|
18
|
+
# @format: uuid
|
19
|
+
field :vendor_id
|
20
|
+
|
21
|
+
# The name of the vendor.
|
22
|
+
# @type: string
|
23
|
+
field :vendor_name
|
24
|
+
|
25
|
+
# The name of the primary contact.
|
26
|
+
# @type: string
|
27
|
+
field :primary_contact
|
28
|
+
|
29
|
+
# The total number of outstanding bills.
|
30
|
+
# @type: integer
|
31
|
+
# @format: int32
|
32
|
+
field :bills
|
33
|
+
|
34
|
+
# The total amount outstanding.
|
35
|
+
# @type: number
|
36
|
+
# @format: double
|
37
|
+
field :amount_outstanding
|
38
|
+
|
39
|
+
# The days payable outstanding value.
|
40
|
+
# @type: number
|
41
|
+
# @format: double
|
42
|
+
field :dpo
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
class Schema::DpoSummaryGroupTotal < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
9
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
|
+
#
|
11
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
12
|
+
# @type: string
|
13
|
+
# @format: uuid
|
14
|
+
field :group_key
|
15
|
+
|
16
|
+
# The total number of vendors with outstanding bills
|
17
|
+
# @type: integer
|
18
|
+
# @format: int32
|
19
|
+
field :vendors
|
20
|
+
|
21
|
+
# The total number of bills outstanding
|
22
|
+
# @type: integer
|
23
|
+
# @format: int32
|
24
|
+
field :bills
|
25
|
+
|
26
|
+
# The total amount outstanding
|
27
|
+
# @type: number
|
28
|
+
# @format: double
|
29
|
+
field :amount_outstanding
|
30
|
+
|
31
|
+
# The total dpo for the group key
|
32
|
+
# @type: number
|
33
|
+
# @format: double
|
34
|
+
field :dpo
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
class Schema::FinancialAccountBalanceHistorySync < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The code for the Financial Account. Can either be a general ledger or
|
9
|
+
# an account code.
|
10
|
+
# @type: string
|
11
|
+
field :financial_account_code
|
12
|
+
|
13
|
+
# This is the primary key of the FinancialAccount record. For this field, you should use whatever the company's unique
|
14
|
+
# identifying number is in the originating system. Search for a unique, non-changing number within the
|
15
|
+
# originating financial system for this record.
|
16
|
+
# Example: If you store your company records in a database, whatever the primary key for the company table is
|
17
|
+
# in the database should be the ErpKey.
|
18
|
+
# Example: If you use a financial system such as Quickbooks or Xero, look for the primary ID number of the
|
19
|
+
# company record within that financial system.
|
20
|
+
# @type: string
|
21
|
+
field :financial_account_erp_key
|
22
|
+
|
23
|
+
# The financial year that this period falls under
|
24
|
+
# @type: integer
|
25
|
+
# @format: int32
|
26
|
+
field :financial_year
|
27
|
+
|
28
|
+
# The period number (1-12 or 1-13) that this balance history is for
|
29
|
+
# @type: integer
|
30
|
+
# @format: int32
|
31
|
+
field :period_number
|
32
|
+
|
33
|
+
# The start date of this period.
|
34
|
+
# @type: string
|
35
|
+
# @format: date-time
|
36
|
+
field :period_start_date, Types::Params::DateTime
|
37
|
+
|
38
|
+
# The end date of this period.
|
39
|
+
# @type: string
|
40
|
+
# @format: date-time
|
41
|
+
field :period_end_date, Types::Params::DateTime
|
42
|
+
|
43
|
+
# The status of this period. The status should be Closed if the books for this period have been closed,
|
44
|
+
# if not the status should be Open. The status can also be Deleted if there was a recalculation that needed
|
45
|
+
# to occur, for example due to a change in financial year settings.
|
46
|
+
# @type: string
|
47
|
+
field :status
|
48
|
+
|
49
|
+
# The current or end balance of this period.
|
50
|
+
# @type: number
|
51
|
+
# @format: double
|
52
|
+
field :balance
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
class Schema::FinancialAccountSync < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The code for the Financial Account. Can either be a general ledger or
|
9
|
+
# an account code.
|
10
|
+
# @type: string
|
11
|
+
field :code
|
12
|
+
|
13
|
+
# The External Id for the Financial Account.
|
14
|
+
# @type: string
|
15
|
+
field :erp_key
|
16
|
+
|
17
|
+
# The name of the Financial Account.
|
18
|
+
# @type: string
|
19
|
+
field :name
|
20
|
+
|
21
|
+
# The status of the Financial Account. Possible values are active,
|
22
|
+
# inactive, deleted or archived.
|
23
|
+
# @type: string
|
24
|
+
field :status
|
25
|
+
|
26
|
+
# The cashflow type for the Financial Account. Examples include cash, financing, investment
|
27
|
+
# or operation.
|
28
|
+
# @type: string
|
29
|
+
field :cashflow_type
|
30
|
+
|
31
|
+
# The description for the Financial Account.
|
32
|
+
# @type: string
|
33
|
+
field :description
|
34
|
+
|
35
|
+
# The classification for the Financial Account. Possible values are Asset, Equity,
|
36
|
+
# Expense, Liability or Income.
|
37
|
+
# @type: string
|
38
|
+
field :classification
|
39
|
+
|
40
|
+
# The category for the Financial Account. Examples include Current Asset, Current Liability, Common Stock
|
41
|
+
# @type: string
|
42
|
+
field :category
|
43
|
+
|
44
|
+
# The subcategory for the Financial Account. Examples include Cash, Property, Bank Loan, etc.
|
45
|
+
# @type: string
|
46
|
+
field :subcategory
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
class Schema::FinancialReport < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The name of the report ("*Report Type* for *Company*")
|
9
|
+
# @type: string
|
10
|
+
field :report_name
|
11
|
+
|
12
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
13
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
14
|
+
#
|
15
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
16
|
+
# @type: string
|
17
|
+
# @format: uuid
|
18
|
+
field :group_key
|
19
|
+
|
20
|
+
# The start date of the financial report
|
21
|
+
# @type: string
|
22
|
+
# @format: date-time
|
23
|
+
field :report_start_date, Types::Params::DateTime
|
24
|
+
|
25
|
+
# The end date of the financial report
|
26
|
+
# @type: string
|
27
|
+
# @format: date-time
|
28
|
+
field :report_end_date, Types::Params::DateTime
|
29
|
+
|
30
|
+
# The created date of the financial report
|
31
|
+
# @type: string
|
32
|
+
# @format: date-time
|
33
|
+
field :report_created_date, Types::Params::DateTime
|
34
|
+
|
35
|
+
|
36
|
+
has_many :rows, {:class_name=>"Schema::FinancialReportRow", :included=>true}
|
37
|
+
|
38
|
+
end
|