lockstep_rails 0.3.37 → 0.3.38
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.
- 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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 481ae74f941e20ac5a66c1f3b48c3ae9d9283ea53e64cbbe979eeb6b852f27a0
|
4
|
+
data.tar.gz: d91082889c6d59314032cc2d2a89567e5e868d98c7cbe9a5c5bb930e390bdea9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0edf7d1be2d8a48637a54b7f47264821fc8d76e2cce0af5b60cb8a35724c6dd89b33ac36c78ca1691ddcf4dae2a536a9dcf971d32758365ebd2f1ca1b3488f95
|
7
|
+
data.tar.gz: ae547b1171bbb79f663f4838689a580d6bfcbb9a1fcf1f2c5ffcacb7fa424e8db19f8fa85191829428f30bd37181e74b0267eb8f4da4338cd5f31ef0f078bdc6
|
@@ -5,9 +5,9 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
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
|
-
#
|
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
11
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
12
12
|
# @type: string
|
13
13
|
# @format: uuid
|
@@ -17,43 +17,46 @@ end
|
|
17
17
|
# @type: string
|
18
18
|
field :report_bucket
|
19
19
|
|
20
|
-
# The total number of
|
20
|
+
# The total number of vendors.
|
21
21
|
# @type: integer
|
22
22
|
# @format: int32
|
23
23
|
field :total_vendors
|
24
24
|
|
25
|
-
# The total number of
|
25
|
+
# The total number of bills outstanding.
|
26
26
|
# @type: integer
|
27
27
|
# @format: int32
|
28
28
|
field :total_bills_outstanding
|
29
29
|
|
30
|
-
# The total amount outstanding.
|
30
|
+
# The total amount outstanding on bills.
|
31
31
|
# @type: number
|
32
32
|
# @format: double
|
33
33
|
field :total_bills_outstanding_amount
|
34
34
|
|
35
|
-
# The total
|
35
|
+
# The total amount outstanding on credit memos.
|
36
36
|
# @type: number
|
37
37
|
# @format: double
|
38
38
|
field :total_credit_memo_outstanding_amount
|
39
39
|
|
40
|
-
# The total advance
|
40
|
+
# The total amount of advance payments.
|
41
41
|
# @type: number
|
42
42
|
# @format: double
|
43
43
|
field :total_advance_payment_amount
|
44
44
|
|
45
|
-
# The total outstanding
|
45
|
+
# The total amount outstanding.
|
46
46
|
# @type: number
|
47
47
|
# @format: double
|
48
48
|
field :total_outstanding_amount
|
49
49
|
|
50
|
-
# The total amount for
|
50
|
+
# The total amount for AP.
|
51
51
|
# @type: number
|
52
52
|
# @format: double
|
53
53
|
field :total_ap_amount
|
54
54
|
|
55
|
-
# Portion of Total
|
55
|
+
# Portion of Total AP this data represents.
|
56
56
|
# @type: number
|
57
57
|
# @format: double
|
58
58
|
field :percentage_of_total_ap
|
59
|
-
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
end
|
@@ -0,0 +1,148 @@
|
|
1
|
+
class Schema::ApHeaderInfo < 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 date of the report
|
17
|
+
# @type: string
|
18
|
+
# @format: date-time
|
19
|
+
field :report_date, Types::Params::DateTime
|
20
|
+
|
21
|
+
# The date of the report
|
22
|
+
# @type: string
|
23
|
+
# @format: date-time
|
24
|
+
field :report_period, Types::Params::DateTime
|
25
|
+
|
26
|
+
# The total number of vendors.
|
27
|
+
# @type: integer
|
28
|
+
# @format: int32
|
29
|
+
field :total_vendors
|
30
|
+
|
31
|
+
# The total number of bills.
|
32
|
+
# @type: integer
|
33
|
+
# @format: int32
|
34
|
+
field :total_bills
|
35
|
+
|
36
|
+
# The total amount billed.
|
37
|
+
# @type: number
|
38
|
+
# @format: double
|
39
|
+
field :total_billed_amount
|
40
|
+
|
41
|
+
# The total number of advance payments.
|
42
|
+
# @type: number
|
43
|
+
# @format: double
|
44
|
+
field :total_advance_payments
|
45
|
+
|
46
|
+
# The total amount paid.
|
47
|
+
# @type: number
|
48
|
+
# @format: double
|
49
|
+
field :total_paid
|
50
|
+
|
51
|
+
# The total accounts payable amount.
|
52
|
+
# @type: number
|
53
|
+
# @format: double
|
54
|
+
field :total_ap_amount
|
55
|
+
|
56
|
+
# The number of paid bills.
|
57
|
+
# @type: integer
|
58
|
+
# @format: int32
|
59
|
+
field :total_bills_paid
|
60
|
+
|
61
|
+
# The number of past due bills.
|
62
|
+
# @type: integer
|
63
|
+
# @format: int32
|
64
|
+
field :total_bills_past_due
|
65
|
+
|
66
|
+
# The number of bills 90+ days past due.
|
67
|
+
# @type: integer
|
68
|
+
# @format: int32
|
69
|
+
field :total_bills90_days_past_due
|
70
|
+
|
71
|
+
# The total amount past due.
|
72
|
+
# @type: number
|
73
|
+
# @format: double
|
74
|
+
field :total_past_due_amount
|
75
|
+
|
76
|
+
# The total amount for bills 90+ days past due.
|
77
|
+
# @type: number
|
78
|
+
# @format: double
|
79
|
+
field :total_past_due_amount90_days
|
80
|
+
|
81
|
+
# Portion of Total AP that is Past due.
|
82
|
+
# @type: number
|
83
|
+
# @format: double
|
84
|
+
field :percentage_of_total_ap
|
85
|
+
|
86
|
+
# The total amount billed, due this year.
|
87
|
+
# @type: number
|
88
|
+
# @format: double
|
89
|
+
field :total_billed_amount_current_year
|
90
|
+
|
91
|
+
# The total amount billed, due last year.
|
92
|
+
# @type: number
|
93
|
+
# @format: double
|
94
|
+
field :total_billed_amount_previous_year
|
95
|
+
|
96
|
+
# The total of all payments made this year.
|
97
|
+
# @type: number
|
98
|
+
# @format: double
|
99
|
+
field :total_paid_amount_current_year
|
100
|
+
|
101
|
+
# Portion of Total AP that is 90+ days Past due.
|
102
|
+
# @type: number
|
103
|
+
# @format: double
|
104
|
+
field :percentage_of_total_ap90_days_past_due
|
105
|
+
|
106
|
+
# The number of vendors who were paid within the past thirty days.
|
107
|
+
# @type: integer
|
108
|
+
# @format: int32
|
109
|
+
field :vendors_paid_past_thirty_days
|
110
|
+
|
111
|
+
# The total amount paid over the past thirty days.
|
112
|
+
# @type: number
|
113
|
+
# @format: double
|
114
|
+
field :amount_paid_past_thirty_days
|
115
|
+
|
116
|
+
# The amount in advance from the payments made over the past thirty days.
|
117
|
+
# @type: number
|
118
|
+
# @format: double
|
119
|
+
field :advance_payment_amount_past_thirty_days
|
120
|
+
|
121
|
+
# The number of bills paid over the past thirty days.
|
122
|
+
# @type: integer
|
123
|
+
# @format: int32
|
124
|
+
field :bills_paid_past_thirty_days
|
125
|
+
|
126
|
+
# The number of vendors that sent bills over the the past thirty days.
|
127
|
+
# @type: integer
|
128
|
+
# @format: int32
|
129
|
+
field :billing_vendors_past_thirty_days
|
130
|
+
|
131
|
+
# The total amount billed over the past thirty days.
|
132
|
+
# @type: number
|
133
|
+
# @format: double
|
134
|
+
field :amount_billed_past_thirty_days
|
135
|
+
|
136
|
+
# The amount outstanding on the bills received over the past thirty days.
|
137
|
+
# @type: number
|
138
|
+
# @format: double
|
139
|
+
field :amount_due_past_thirty_days
|
140
|
+
|
141
|
+
# The number of bills received over the past thirty days.
|
142
|
+
# @type: integer
|
143
|
+
# @format: int32
|
144
|
+
field :bills_past_thirty_days
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
end
|
@@ -72,9 +72,6 @@ end
|
|
72
72
|
# Data about the last successful sync associated with this enrollment
|
73
73
|
field :last_successful_sync
|
74
74
|
|
75
|
-
# Use `ConnectorInfo` instead.
|
76
|
-
field :erp_info
|
77
|
-
|
78
75
|
# Optional data necessary to create an app enrollment for a supported connector.
|
79
76
|
# Only enter relevant fields for the given connector.
|
80
77
|
field :connector_info
|
@@ -0,0 +1,30 @@
|
|
1
|
+
class Schema::AppEnrollmentReconnectInfo < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The OAuth authentication code.
|
9
|
+
# @type: string
|
10
|
+
field :auth_code
|
11
|
+
|
12
|
+
# The OAuth authentication code.
|
13
|
+
# @type: string
|
14
|
+
field :username
|
15
|
+
|
16
|
+
# The password for the web services account with access permissions.
|
17
|
+
# @type: string
|
18
|
+
field :password
|
19
|
+
|
20
|
+
# The access token id for the connector enrollment.
|
21
|
+
# @type: string
|
22
|
+
field :token_id
|
23
|
+
|
24
|
+
# The access token secret for the connector enrollment.
|
25
|
+
# @type: string
|
26
|
+
field :token_secret
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
end
|
@@ -78,6 +78,11 @@ end
|
|
78
78
|
# @format: uuid
|
79
79
|
field :group_key
|
80
80
|
|
81
|
+
# The B2C Client ID of the application
|
82
|
+
# @type: string
|
83
|
+
# @format: uuid
|
84
|
+
field :b2_c_client_id
|
85
|
+
|
81
86
|
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
82
87
|
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
83
88
|
|
@@ -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
|
@@ -27,6 +27,21 @@ end
|
|
27
27
|
# @format: int32
|
28
28
|
field :total_invoices_outstanding
|
29
29
|
|
30
|
+
# The total amount outstanding on invoices.
|
31
|
+
# @type: number
|
32
|
+
# @format: double
|
33
|
+
field :total_invoice_outstanding_amount
|
34
|
+
|
35
|
+
# The total amount outstanding on credit memos.
|
36
|
+
# @type: number
|
37
|
+
# @format: double
|
38
|
+
field :total_credit_memo_outstanding_amount
|
39
|
+
|
40
|
+
# The total amount of unapplied payments.
|
41
|
+
# @type: number
|
42
|
+
# @format: double
|
43
|
+
field :total_unapplied_payment_amount
|
44
|
+
|
30
45
|
# The total amount outstanding.
|
31
46
|
# @type: number
|
32
47
|
# @format: double
|
@@ -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
|
@@ -16,6 +16,10 @@ end
|
|
16
16
|
# The date of the report
|
17
17
|
# @type: string
|
18
18
|
# @format: date
|
19
|
+
field :report_date
|
20
|
+
|
21
|
+
# The date of the report
|
22
|
+
# @type: string
|
19
23
|
field :report_period
|
20
24
|
|
21
25
|
# The total number of customers.
|
@@ -98,20 +102,50 @@ end
|
|
98
102
|
# @format: double
|
99
103
|
field :total_payment_amount_current_year
|
100
104
|
|
101
|
-
#
|
105
|
+
# Portion of Total AR that is 90+ days Past due.
|
106
|
+
# @type: number
|
107
|
+
# @format: double
|
108
|
+
field :percentage_of_total_ar90_days_past_due
|
109
|
+
|
110
|
+
# The number of customers who paid within the past thirty days.
|
102
111
|
# @type: integer
|
103
112
|
# @format: int32
|
104
|
-
field :
|
113
|
+
field :customers_paid_past_thirty_days
|
114
|
+
|
115
|
+
# The total amount collected over the past thirty days.
|
116
|
+
# @type: number
|
117
|
+
# @format: double
|
118
|
+
field :amount_collected_past_thirty_days
|
105
119
|
|
106
|
-
# The
|
120
|
+
# The amount unapplied from the payments collected over the past thirty days.
|
121
|
+
# @type: number
|
122
|
+
# @format: double
|
123
|
+
field :unapplied_amount_past_thirty_days
|
124
|
+
|
125
|
+
# The number of invoices paid over the past thirty days.
|
107
126
|
# @type: integer
|
108
127
|
# @format: int32
|
109
|
-
field :
|
128
|
+
field :invoices_paid_past_thirty_days
|
110
129
|
|
111
|
-
#
|
130
|
+
# The number of customers invoiced over the the past thirty days.
|
131
|
+
# @type: integer
|
132
|
+
# @format: int32
|
133
|
+
field :customers_invoiced_past_thirty_days
|
134
|
+
|
135
|
+
# The total amount invoiced over the past thirty days.
|
112
136
|
# @type: number
|
113
137
|
# @format: double
|
114
|
-
field :
|
138
|
+
field :amount_invoiced_past_thirty_days
|
139
|
+
|
140
|
+
# The amount outstanding on the invoices invoiced over the past thirty days.
|
141
|
+
# @type: number
|
142
|
+
# @format: double
|
143
|
+
field :amount_due_past_thirty_days
|
144
|
+
|
145
|
+
# The number of invoices invoiced over the past thirty days.
|
146
|
+
# @type: integer
|
147
|
+
# @format: int32
|
148
|
+
field :invoices_past_thirty_days
|
115
149
|
|
116
150
|
|
117
151
|
|
@@ -12,7 +12,7 @@ end
|
|
12
12
|
|
13
13
|
# The GroupKey uniquely identifies a single Lockstep Platform 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).
|
17
17
|
# @type: string
|
18
18
|
# @format: uuid
|
@@ -19,33 +19,53 @@ end
|
|
19
19
|
# @format: uuid
|
20
20
|
field :group_key
|
21
21
|
|
22
|
-
#
|
22
|
+
# An Attachment is connected to an existing item within the Lockstep Platform by the fields `TableKey` and
|
23
|
+
# `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
|
24
|
+
# `Invoice` and an `ObjectKey` value of `12345`.
|
25
|
+
#
|
26
|
+
# The `TableKey` value contains the name of the table within the Lockstep Platform to which this Attachment
|
27
|
+
# is connected.
|
28
|
+
#
|
29
|
+
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
23
30
|
# @type: string
|
24
31
|
field :table_key
|
25
32
|
|
26
|
-
#
|
33
|
+
# An Attachment is connected to an existing item within the Lockstep Platform by the fields `TableKey` and
|
34
|
+
# `ObjectKey`. For example, an Attachment connected to Invoice 12345 would have a `TableKey` value of
|
35
|
+
# `Invoice` and an `ObjectKey` value of `12345`.
|
36
|
+
#
|
37
|
+
# The `ObjectKey` value contains the primary key of the record within the Lockstep Platform to which this
|
38
|
+
# Attachment is connected.
|
39
|
+
#
|
40
|
+
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
27
41
|
# @type: string
|
28
42
|
# @format: uuid
|
29
43
|
field :object_key
|
30
44
|
|
31
|
-
#
|
45
|
+
# An Attachment represents a file that was uploaded to the Lockstep Platform. This field contains the original
|
46
|
+
# name of the file on disk, without its extension.
|
32
47
|
# @type: string
|
33
48
|
field :file_name
|
34
49
|
|
35
|
-
#
|
50
|
+
# An Attachment represents a file that was uploaded to the Lockstep Platform. This field contains the original
|
51
|
+
# extension name of the file on disk.
|
36
52
|
# @type: string
|
37
53
|
field :file_ext
|
38
54
|
|
39
|
-
#
|
55
|
+
# DEPRECATED: This field is replaced by `AttachmentType`.
|
40
56
|
# @type: string
|
41
57
|
# @format: uuid
|
42
58
|
field :attachment_type_id
|
43
59
|
|
44
|
-
#
|
60
|
+
# A flag indicating whether this Attachment is archived (also known as hidden or deleted). When you call
|
61
|
+
# [ArchiveAttachment](https://developer.lockstep.io/reference/delete_api-v1-attachments-id) this field will
|
62
|
+
# be set to true.
|
63
|
+
#
|
64
|
+
# You should avoid displaying Attachments with the IsArchived field set to true in your user interface.
|
45
65
|
# @type: boolean
|
46
66
|
field :is_archived
|
47
67
|
|
48
|
-
#
|
68
|
+
# DEPRECATED - Do not use
|
49
69
|
# @type: string
|
50
70
|
# @format: uuid
|
51
71
|
field :origin_attachment_id
|
@@ -76,16 +96,21 @@ end
|
|
76
96
|
# @format: uuid
|
77
97
|
field :app_enrollment_id
|
78
98
|
|
79
|
-
# The date the attachment was created
|
99
|
+
# The date the attachment was created.
|
80
100
|
# @type: string
|
81
101
|
# @format: date-time
|
82
102
|
field :created, Types::Params::DateTime
|
83
103
|
|
84
|
-
#
|
104
|
+
# The unique ID of the [UserAccount](https://developer.lockstep.io/docs/useraccountmodel) of the user
|
105
|
+
# who created this Attachment.
|
85
106
|
# @type: string
|
86
107
|
# @format: uuid
|
87
108
|
field :created_user_id
|
88
109
|
|
110
|
+
# A text string describing the type of this Attachment.
|
111
|
+
# @type: string
|
112
|
+
field :attachment_type
|
113
|
+
|
89
114
|
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
90
115
|
|
91
116
|
|
@@ -14,5 +14,8 @@ end
|
|
14
14
|
has_many :custom_fields, {:class_name=>"Schema::CustomFieldSync", :included=>true}
|
15
15
|
has_many :payments, {:class_name=>"Schema::PaymentSync", :included=>true}
|
16
16
|
has_many :payment_applications, {:class_name=>"Schema::PaymentAppliedSync", :included=>true}
|
17
|
+
has_many :financial_year_settings, {:class_name=>"Schema::FinancialYearSettingSync", :included=>true}
|
18
|
+
has_many :financial_accounts, {:class_name=>"Schema::FinancialAccountSync", :included=>true}
|
19
|
+
has_many :financial_account_balance_histories, {:class_name=>"Schema::FinancialAccountBalanceHistorySync", :included=>true}
|
17
20
|
|
18
21
|
end
|
@@ -10,7 +10,7 @@ end
|
|
10
10
|
# @format: date
|
11
11
|
field :date
|
12
12
|
|
13
|
-
# The currency code This will be validated by the /api/v1/currencies data set
|
13
|
+
# The currency code This will be validated by the /api/v1/definitions/currencies data set
|
14
14
|
# @type: string
|
15
15
|
field :source_currency
|
16
16
|
|
@@ -101,30 +101,6 @@ end
|
|
101
101
|
# @type: string
|
102
102
|
field :address3
|
103
103
|
|
104
|
-
# Corporate Address info
|
105
|
-
# @type: string
|
106
|
-
field :corp_city
|
107
|
-
|
108
|
-
# Corporate Address info
|
109
|
-
# @type: string
|
110
|
-
field :corp_state
|
111
|
-
|
112
|
-
# Corporate Address info
|
113
|
-
# @type: string
|
114
|
-
field :corp_postal_code
|
115
|
-
|
116
|
-
# Corporate Address info
|
117
|
-
# @type: string
|
118
|
-
field :corp_country
|
119
|
-
|
120
|
-
# Corporate phone number
|
121
|
-
# @type: string
|
122
|
-
field :corp_phone
|
123
|
-
|
124
|
-
# Corporate fax number
|
125
|
-
# @type: string
|
126
|
-
field :corp_fax
|
127
|
-
|
128
104
|
# Address info
|
129
105
|
# @type: string
|
130
106
|
field :city
|
@@ -141,6 +117,10 @@ end
|
|
141
117
|
# @type: string
|
142
118
|
field :country
|
143
119
|
|
120
|
+
# Time zone
|
121
|
+
# @type: string
|
122
|
+
field :time_zone
|
123
|
+
|
144
124
|
# Phone number
|
145
125
|
# @type: string
|
146
126
|
field :phone_number
|
@@ -191,6 +171,10 @@ end
|
|
191
171
|
# @format: email
|
192
172
|
field :ar_email_address
|
193
173
|
|
174
|
+
# Indicates the preferred invoice delivery method. Examples include Print, Email, Fax
|
175
|
+
# @type: string
|
176
|
+
field :preferred_delivery_method
|
177
|
+
|
194
178
|
# For companies that use a custom domain name for their email system, this is
|
195
179
|
# the domain name used by this company. If this value is known, new emails that
|
196
180
|
# come in from this domain will be connected to this company.
|
@@ -218,6 +202,15 @@ end
|
|
218
202
|
# @format: uuid
|
219
203
|
field :app_enrollment_id
|
220
204
|
|
205
|
+
# Company Email Address
|
206
|
+
# @type: string
|
207
|
+
# @format: email
|
208
|
+
field :email_address
|
209
|
+
|
210
|
+
# The public url slug for the Company.
|
211
|
+
# @type: string
|
212
|
+
field :public_url_slug
|
213
|
+
|
221
214
|
# All invoices attached to this company.
|
222
215
|
#
|
223
216
|
# 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).
|
@@ -0,0 +1,98 @@
|
|
1
|
+
class Schema::CompanyDetails < 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 this company
|
17
|
+
# @type: string
|
18
|
+
# @format: uuid
|
19
|
+
field :customer_id
|
20
|
+
|
21
|
+
# The unique ID of this company
|
22
|
+
# @type: string
|
23
|
+
field :name
|
24
|
+
|
25
|
+
# Company address info
|
26
|
+
# @type: string
|
27
|
+
field :address1
|
28
|
+
|
29
|
+
# Company address info
|
30
|
+
# @type: string
|
31
|
+
field :address2
|
32
|
+
|
33
|
+
# Company address info
|
34
|
+
# @type: string
|
35
|
+
field :address3
|
36
|
+
|
37
|
+
# Company address info
|
38
|
+
# @type: string
|
39
|
+
field :city
|
40
|
+
|
41
|
+
# Company address info
|
42
|
+
# @type: string
|
43
|
+
field :state
|
44
|
+
|
45
|
+
# Company address info
|
46
|
+
# @type: string
|
47
|
+
field :postal_code
|
48
|
+
|
49
|
+
# Company address country
|
50
|
+
# @type: string
|
51
|
+
field :country
|
52
|
+
|
53
|
+
# Company phone number
|
54
|
+
# @type: string
|
55
|
+
field :phone_number
|
56
|
+
|
57
|
+
# Company fax number
|
58
|
+
# @type: string
|
59
|
+
field :fax_number
|
60
|
+
|
61
|
+
# Company email address
|
62
|
+
# @type: string
|
63
|
+
field :email
|
64
|
+
|
65
|
+
# Company primary contact id
|
66
|
+
# @type: string
|
67
|
+
# @format: uuid
|
68
|
+
field :contact_id
|
69
|
+
|
70
|
+
# Company primary contact name
|
71
|
+
# @type: string
|
72
|
+
field :contact_name
|
73
|
+
|
74
|
+
# Company primary contact email address
|
75
|
+
# @type: string
|
76
|
+
field :contact_email
|
77
|
+
|
78
|
+
# Company number of outstanding invoices
|
79
|
+
# @type: integer
|
80
|
+
# @format: int32
|
81
|
+
field :outstanding_invoices
|
82
|
+
|
83
|
+
# Company total outstanding invoice amount
|
84
|
+
# @type: number
|
85
|
+
# @format: double
|
86
|
+
field :outstanding_amount
|
87
|
+
|
88
|
+
# Company total past due amount
|
89
|
+
# @type: number
|
90
|
+
# @format: double
|
91
|
+
field :amount_past_due
|
92
|
+
|
93
|
+
belongs_to :customer, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
94
|
+
belongs_to :connection, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
95
|
+
|
96
|
+
has_many :payments, {:class_name=>"Schema::CompanyDetailsPayment", :included=>true}
|
97
|
+
|
98
|
+
end
|