lockstep_rails 0.3.52 → 0.3.53
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/README.md +1 -0
- data/app/models/lockstep/sf_payment_request.rb +7 -0
- data/app/platform_api/schema/account_authorisation.rb +14 -0
- data/app/platform_api/schema/accounting_profile.rb +6 -11
- data/app/platform_api/schema/accounting_profile_contact.rb +4 -0
- data/app/platform_api/schema/accounting_profile_contact_result.rb +166 -0
- data/app/platform_api/schema/accounting_profile_contact_result_fetch_result.rb +26 -0
- data/app/platform_api/schema/accounting_profile_request.rb +108 -0
- data/app/platform_api/schema/address.rb +38 -0
- data/app/platform_api/schema/amount.rb +20 -0
- data/app/platform_api/schema/ap_header_info.rb +4 -0
- data/app/platform_api/schema/app_enrollment.rb +4 -0
- data/app/platform_api/schema/app_enrollment_reconnect_info.rb +5 -1
- data/app/platform_api/schema/application.rb +0 -11
- data/app/platform_api/schema/ar_header_info.rb +4 -0
- data/app/platform_api/schema/at_risk_invoice_summary.rb +18 -0
- data/app/platform_api/schema/attachment.rb +0 -18
- data/app/platform_api/schema/attachment_link.rb +59 -0
- data/app/platform_api/schema/attachment_link_fetch_result.rb +26 -0
- data/app/platform_api/schema/base_currency_sync.rb +16 -0
- data/app/platform_api/schema/batch_sync.rb +10 -0
- data/app/platform_api/schema/company.rb +35 -0
- data/app/platform_api/schema/company_details.rb +6 -2
- data/app/platform_api/schema/company_details_payment.rb +8 -0
- data/app/platform_api/schema/company_sync.rb +5 -1
- data/app/platform_api/schema/contact_sync.rb +3 -0
- data/app/platform_api/schema/credit_memo_applied_sync.rb +3 -0
- data/app/platform_api/schema/credit_memo_invoice.rb +23 -0
- data/app/platform_api/schema/creditor_account.rb +32 -0
- data/app/platform_api/schema/custom_field_sync.rb +3 -0
- data/app/platform_api/schema/debtor_account.rb +33 -0
- data/app/platform_api/schema/debtor_agent_account.rb +26 -0
- data/app/platform_api/schema/developer_account_submit.rb +0 -4
- data/app/platform_api/schema/dpo_summary.rb +5 -1
- data/app/platform_api/schema/dpo_summary_group_total.rb +5 -1
- data/app/platform_api/schema/financial_account_sync.rb +3 -0
- data/app/platform_api/schema/group_account.rb +4 -0
- data/app/platform_api/schema/instructed_amount.rb +19 -0
- data/app/platform_api/schema/invoice.rb +41 -41
- data/app/platform_api/schema/invoice_line_sync.rb +3 -0
- data/app/platform_api/schema/invoice_payment_detail.rb +23 -0
- data/app/platform_api/schema/invoice_summary.rb +24 -24
- data/app/platform_api/schema/invoice_sync.rb +27 -4
- data/app/platform_api/schema/magic_link.rb +5 -5
- data/app/platform_api/schema/magic_link_status.rb +10 -0
- data/app/platform_api/schema/metadata.rb +14 -0
- data/app/platform_api/schema/payables_coming_due.rb +18 -14
- data/app/platform_api/schema/payables_coming_due_header.rb +5 -1
- data/app/platform_api/schema/payables_coming_due_widget.rb +5 -1
- data/app/platform_api/schema/payables_summary_report.rb +6 -2
- data/app/platform_api/schema/payment.rb +41 -37
- data/app/platform_api/schema/payment_applied_sync.rb +3 -0
- data/app/platform_api/schema/payment_detail.rb +18 -0
- data/app/platform_api/schema/payment_detail_header.rb +6 -2
- data/app/platform_api/schema/payment_instrument.rb +37 -0
- data/app/platform_api/schema/payment_response.rb +118 -0
- data/app/platform_api/schema/payment_summary.rb +23 -23
- data/app/platform_api/schema/payment_sync.rb +15 -2
- data/app/platform_api/schema/remittance_information.rb +18 -0
- data/app/platform_api/schema/reporting_amount.rb +30 -0
- data/app/platform_api/schema/risk_information.rb +22 -0
- data/app/platform_api/schema/risk_rate.rb +6 -2
- data/app/platform_api/schema/settlement_discount.rb +25 -0
- data/app/platform_api/schema/settlement_discounts_info.rb +21 -0
- data/app/platform_api/schema/sf_account_response.rb +66 -0
- data/app/platform_api/schema/sf_company_request.rb +38 -0
- data/app/platform_api/schema/sf_company_response.rb +51 -0
- data/app/platform_api/schema/sf_customer_request.rb +52 -0
- data/app/platform_api/schema/sf_customer_response.rb +84 -0
- data/app/platform_api/schema/sf_enroll_request.rb +16 -0
- data/app/platform_api/schema/sf_enroll_response.rb +16 -0
- data/app/platform_api/schema/sf_organisation_request.rb +38 -0
- data/app/platform_api/schema/sf_organisation_response.rb +44 -0
- data/app/platform_api/schema/sf_payment_query_response.rb +31 -0
- data/app/platform_api/schema/sf_payment_request.rb +67 -0
- data/app/platform_api/schema/sf_payment_response.rb +132 -0
- data/app/platform_api/schema/sf_servicer_response.rb +58 -0
- data/app/platform_api/schema/sf_servicers_auth_request.rb +32 -0
- data/app/platform_api/schema/sf_servicers_auth_response.rb +14 -0
- data/app/platform_api/schema/sf_submit_payment_info.rb +55 -0
- data/app/platform_api/schema/status.rb +15 -4
- data/app/platform_api/schema/support_access.rb +19 -0
- data/app/platform_api/schema/support_access_request.rb +15 -0
- data/app/platform_api/schema/sync_request.rb +7 -4
- data/app/platform_api/schema/transaction.rb +18 -0
- data/app/platform_api/schema/transaction_detail.rb +18 -0
- data/app/platform_api/schema/transcription_request_submit.rb +6 -1
- data/app/platform_api/schema/transcription_validation_request_item_fetch_result.rb +26 -0
- data/app/platform_api/schema/webhook.rb +1 -2
- data/app/platform_api/swagger.json +12909 -7941
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +43 -2
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::AttachmentLinkFetchResult < 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::AttachmentLink", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class Schema::BaseCurrencySync < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The default currency code used by this business entity.
|
9
|
+
#
|
10
|
+
# For a list of defined currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies)
|
11
|
+
# @type: string
|
12
|
+
field :base_currency_code
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
end
|
@@ -5,6 +5,15 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
+
# The optional existing app enrollment to associate with the data in this batch.
|
9
|
+
# @type: string
|
10
|
+
# @format: uuid
|
11
|
+
field :app_enrollment_id
|
12
|
+
|
13
|
+
# True if this is a full sync, false if this is a partial sync. Defaults to false.
|
14
|
+
# @type: boolean
|
15
|
+
field :is_full_sync
|
16
|
+
|
8
17
|
|
9
18
|
has_many :companies, {:class_name=>"Schema::CompanySync", :included=>true}
|
10
19
|
has_many :contacts, {:class_name=>"Schema::ContactSync", :included=>true}
|
@@ -17,5 +26,6 @@ end
|
|
17
26
|
has_many :financial_year_settings, {:class_name=>"Schema::FinancialYearSettingSync", :included=>true}
|
18
27
|
has_many :financial_accounts, {:class_name=>"Schema::FinancialAccountSync", :included=>true}
|
19
28
|
has_many :financial_account_balance_histories, {:class_name=>"Schema::FinancialAccountBalanceHistorySync", :included=>true}
|
29
|
+
has_many :base_currencies, {:class_name=>"Schema::BaseCurrencySync", :included=>true}
|
20
30
|
|
21
31
|
end
|
@@ -205,9 +205,44 @@ end
|
|
205
205
|
# @type: string
|
206
206
|
field :public_url_slug
|
207
207
|
|
208
|
+
# State Tax ID
|
209
|
+
# @type: string
|
210
|
+
field :state_tax_id
|
211
|
+
|
212
|
+
# The state where the company was registered.
|
213
|
+
# @type: string
|
214
|
+
field :state_of_incorporation
|
215
|
+
|
216
|
+
# Linkedin Url
|
217
|
+
# @type: string
|
218
|
+
field :linked_in_url_slug
|
219
|
+
|
220
|
+
# This flag indicates whether the company is verified.
|
221
|
+
# @type: boolean
|
222
|
+
field :is_verified
|
223
|
+
|
224
|
+
# The date this company was last verified.
|
225
|
+
# @type: string
|
226
|
+
# @format: date-time
|
227
|
+
field :last_verified_date, Types::Params::DateTime
|
228
|
+
|
208
229
|
# View box settings for the company logo.
|
209
230
|
field :view_box_settings
|
210
231
|
|
232
|
+
# The unique ID of the Service Fabric organisation to which this record belongs.
|
233
|
+
# @type: string
|
234
|
+
# @format: uuid
|
235
|
+
field :service_fabric_org_id
|
236
|
+
|
237
|
+
# The unique ID of this record within Service Fabric.
|
238
|
+
# @type: string
|
239
|
+
# @format: uuid
|
240
|
+
field :service_fabric_company_id
|
241
|
+
|
242
|
+
# A unique identification number assigned to the company by the national registration office.
|
243
|
+
# @type: string
|
244
|
+
field :company_registration_number
|
245
|
+
|
211
246
|
# All invoices attached to this company.
|
212
247
|
#
|
213
248
|
# 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).
|
@@ -80,12 +80,16 @@ end
|
|
80
80
|
# @format: int32
|
81
81
|
field :outstanding_invoices
|
82
82
|
|
83
|
-
#
|
83
|
+
# The group's base currency code.
|
84
|
+
# @type: string
|
85
|
+
field :group_base_currency_code
|
86
|
+
|
87
|
+
# Company total outstanding invoice amount in the group's base currency.
|
84
88
|
# @type: number
|
85
89
|
# @format: double
|
86
90
|
field :outstanding_amount
|
87
91
|
|
88
|
-
# Company total past due amount
|
92
|
+
# Company total past due amount in the group's base currency.
|
89
93
|
# @type: number
|
90
94
|
# @format: double
|
91
95
|
field :amount_past_due
|
@@ -40,6 +40,10 @@ end
|
|
40
40
|
# @type: string
|
41
41
|
field :invoice_reference_code
|
42
42
|
|
43
|
+
# The currency code of the invoice the payment is associated with.
|
44
|
+
# @type: string
|
45
|
+
field :invoice_currency_code
|
46
|
+
|
43
47
|
# Invoice total amount payment is associated with
|
44
48
|
# @type: number
|
45
49
|
# @format: double
|
@@ -50,6 +54,10 @@ end
|
|
50
54
|
# @format: date-time
|
51
55
|
field :payment_date, Types::Params::DateTime
|
52
56
|
|
57
|
+
# The currency code of the payment.
|
58
|
+
# @type: string
|
59
|
+
field :payment_currency_code
|
60
|
+
|
53
61
|
# Amount payment was made for
|
54
62
|
# @type: number
|
55
63
|
# @format: double
|
@@ -5,7 +5,7 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# Indicates what action to take when
|
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
11
|
# This is the primary key of the Company record. For this field, you should use whatever the company's unique
|
@@ -148,6 +148,10 @@ end
|
|
148
148
|
# @type: string
|
149
149
|
field :external_reference
|
150
150
|
|
151
|
+
# A unique identification number assigned to the company by the national registration office.
|
152
|
+
# @type: string
|
153
|
+
field :company_registration_number
|
154
|
+
|
151
155
|
|
152
156
|
|
153
157
|
end
|
@@ -5,6 +5,9 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
+
# Indicates what action to take when an existing object has been found during the sync process.
|
9
|
+
field :on_match_action
|
10
|
+
|
8
11
|
# This is the primary key of the Contact record. For this field, you should use whatever the contact'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.
|
@@ -5,6 +5,9 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
+
# Indicates what action to take when an existing object has been found during the sync process.
|
9
|
+
field :on_match_action
|
10
|
+
|
8
11
|
# This is the primary key of the Credit Memo Application record. For this field, you should use whatever this
|
9
12
|
# transaction's unique identifying number is in the originating system. Search for a unique, non-changing
|
10
13
|
# number within the originating financial system for this record.
|
@@ -13,6 +13,14 @@ end
|
|
13
13
|
# @format: uuid
|
14
14
|
field :group_key
|
15
15
|
|
16
|
+
# The base currency code of the group.
|
17
|
+
# @type: string
|
18
|
+
field :base_currency_code
|
19
|
+
|
20
|
+
# The currency code of the credit memo invoice.
|
21
|
+
# @type: string
|
22
|
+
field :currency_code
|
23
|
+
|
16
24
|
# The unique ID of this record, automatically assigned by Lockstep when this record is
|
17
25
|
# added to the Lockstep platform.
|
18
26
|
# @type: string
|
@@ -39,6 +47,11 @@ end
|
|
39
47
|
# @format: double
|
40
48
|
field :credit_memo_applied_amount
|
41
49
|
|
50
|
+
# The amount applied to credit memo in the group's base currency.
|
51
|
+
# @type: number
|
52
|
+
# @format: double
|
53
|
+
field :base_currency_credit_memo_applied_amount
|
54
|
+
|
42
55
|
# An additional reference code that is sometimes used to identify this invoice.
|
43
56
|
# The meaning of this field is specific to the ERP or accounting system used by the user.
|
44
57
|
# @type: string
|
@@ -68,6 +81,16 @@ end
|
|
68
81
|
# @format: double
|
69
82
|
field :outstanding_balance_amount
|
70
83
|
|
84
|
+
# The total value of this invoice, inclusive of all taxes and line items in the group's base currency.
|
85
|
+
# @type: number
|
86
|
+
# @format: double
|
87
|
+
field :base_currency_total_amount
|
88
|
+
|
89
|
+
# The remaining balance value of this invoice in the group's base currency.
|
90
|
+
# @type: number
|
91
|
+
# @format: double
|
92
|
+
field :base_currency_outstanding_balance_amount
|
93
|
+
|
71
94
|
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
72
95
|
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
73
96
|
belongs_to :customer, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
class Schema::CreditorAccount < 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 creditor account.
|
9
|
+
# @type: string
|
10
|
+
field :name
|
11
|
+
|
12
|
+
# The unique identifier of the provider used to execute this payment submission.
|
13
|
+
# @type: string
|
14
|
+
field :servicer_id
|
15
|
+
|
16
|
+
# The name of the payment servicing organisation (for example, Stripe and PayPal).
|
17
|
+
# @type: string
|
18
|
+
field :servicer_name
|
19
|
+
|
20
|
+
# The unique identifier of the company.
|
21
|
+
# @type: string
|
22
|
+
field :company_id
|
23
|
+
|
24
|
+
# The unique identifier of the creditor account in Payments Acceptance Service.
|
25
|
+
# @type: string
|
26
|
+
field :account_id
|
27
|
+
|
28
|
+
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
29
|
+
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
30
|
+
|
31
|
+
|
32
|
+
end
|
@@ -5,6 +5,9 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
+
# Indicates what action to take when an existing object has been found during the sync process.
|
9
|
+
field :on_match_action
|
10
|
+
|
8
11
|
# This is the primary key of the record to which you will attach this custom field. You should provide the
|
9
12
|
# identifying number as it is stored in the originating financial system. Search for a unique, non-changing
|
10
13
|
# number within the originating financial system for this record.
|
@@ -0,0 +1,33 @@
|
|
1
|
+
class Schema::DebtorAccount < 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 identifier of an existing customer. Will be used to match to a reusable payment
|
9
|
+
# method if one exists. If specified, the other properties on this object will be ignored.
|
10
|
+
# Trying to create a payment with an unknown customer will result in a 400 status code response.
|
11
|
+
# @type: string
|
12
|
+
field :customer_id
|
13
|
+
|
14
|
+
# The merchant's unique identifier of the debtor who will receive the payment request.
|
15
|
+
# @type: string
|
16
|
+
field :account_id
|
17
|
+
|
18
|
+
# The name of the debtor who will receive the payment request.
|
19
|
+
# @type: string
|
20
|
+
field :name
|
21
|
+
|
22
|
+
# The email address of the debtor who will receive the payment request.
|
23
|
+
# @type: string
|
24
|
+
field :email_address
|
25
|
+
|
26
|
+
# Debtor Agent Account object.
|
27
|
+
field :debtor_agent_account
|
28
|
+
|
29
|
+
belongs_to :customer, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
30
|
+
belongs_to :connection, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
31
|
+
|
32
|
+
|
33
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::DebtorAgentAccount < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Name of the identification scheme.
|
9
|
+
# @type: string
|
10
|
+
field :schema_name
|
11
|
+
|
12
|
+
# The unique identifier of the underlying debtor account to which a debit entry will be made as a result of the transaction.
|
13
|
+
# @type: string
|
14
|
+
field :identification
|
15
|
+
|
16
|
+
# Last 4 digits of real-world account.
|
17
|
+
# @type: string
|
18
|
+
field :last4_digits
|
19
|
+
|
20
|
+
# Real-world account brand name (for example, Visa, Mastercard, PayPal and so on)
|
21
|
+
# @type: string
|
22
|
+
field :brand
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
end
|
@@ -31,7 +31,11 @@ end
|
|
31
31
|
# @format: int32
|
32
32
|
field :bills
|
33
33
|
|
34
|
-
# The
|
34
|
+
# The group's base currency code.
|
35
|
+
# @type: string
|
36
|
+
field :base_currency_code
|
37
|
+
|
38
|
+
# The total amount outstanding at the group's base currency.
|
35
39
|
# @type: number
|
36
40
|
# @format: double
|
37
41
|
field :amount_outstanding
|
@@ -23,7 +23,11 @@ end
|
|
23
23
|
# @format: int32
|
24
24
|
field :bills
|
25
25
|
|
26
|
-
# The
|
26
|
+
# The group's base currency code
|
27
|
+
# @type: string
|
28
|
+
field :base_currency_code
|
29
|
+
|
30
|
+
# The total amount outstanding at the group's base currency.
|
27
31
|
# @type: number
|
28
32
|
# @format: double
|
29
33
|
field :amount_outstanding
|
@@ -5,6 +5,9 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
+
# Indicates what action to take when an existing object has been found during the sync process.
|
9
|
+
field :on_match_action
|
10
|
+
|
8
11
|
# The code for the Financial Account. Can either be a general ledger or
|
9
12
|
# an account code.
|
10
13
|
# @type: string
|
@@ -59,6 +59,10 @@ end
|
|
59
59
|
# @format: uuid
|
60
60
|
field :modified_user_id
|
61
61
|
|
62
|
+
# The 2-letter ISO country code for the group
|
63
|
+
# @type: string
|
64
|
+
field :country_code
|
65
|
+
|
62
66
|
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
63
67
|
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
64
68
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
class Schema::InstructedAmount < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The amount of the charge, in minor units (e.g. $10.50 would be sent as 1050).
|
9
|
+
# @type: number
|
10
|
+
# @format: double
|
11
|
+
field :amount
|
12
|
+
|
13
|
+
# The currency, in ISO 4217 format.
|
14
|
+
# @type: string
|
15
|
+
field :currency
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
end
|
@@ -5,17 +5,17 @@ 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
|
14
14
|
field :group_key
|
15
15
|
|
16
|
-
# The unique ID of this record, automatically assigned by Lockstep when this record is
|
17
|
-
# added to the Lockstep platform.
|
18
|
-
#
|
16
|
+
# The unique ID of this record, automatically assigned by Lockstep when this record is
|
17
|
+
# added to the Lockstep platform.
|
18
|
+
#
|
19
19
|
# For the ID of this record in its originating financial system, see `ErpKey`.
|
20
20
|
# @type: string
|
21
21
|
# @format: uuid
|
@@ -31,23 +31,23 @@ end
|
|
31
31
|
# @format: uuid
|
32
32
|
field :customer_id
|
33
33
|
|
34
|
-
# The unique ID of this record as it was known in its originating financial system.
|
35
|
-
#
|
36
|
-
# If this company record was imported from a financial system, it will have the value `ErpKey`
|
37
|
-
# set to the original primary key number of the record as it was known in the originating financial
|
38
|
-
# system. If this record was not imported, this value will be `null`.
|
39
|
-
#
|
34
|
+
# The unique ID of this record as it was known in its originating financial system.
|
35
|
+
#
|
36
|
+
# If this company record was imported from a financial system, it will have the value `ErpKey`
|
37
|
+
# set to the original primary key number of the record as it was known in the originating financial
|
38
|
+
# system. If this record was not imported, this value will be `null`.
|
39
|
+
#
|
40
40
|
# For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
|
41
41
|
# @type: string
|
42
42
|
field :erp_key
|
43
43
|
|
44
|
-
# The "Purchase Order Code" is a code that is sometimes used by companies to refer to the original PO
|
45
|
-
# that was sent that caused this invoice to be written. If a customer sends a purchase order to a vendor,
|
44
|
+
# The "Purchase Order Code" is a code that is sometimes used by companies to refer to the original PO
|
45
|
+
# that was sent that caused this invoice to be written. If a customer sends a purchase order to a vendor,
|
46
46
|
# the vendor can then create an invoice and refer back to the originating purchase order using this field.
|
47
47
|
# @type: string
|
48
48
|
field :purchase_order_code
|
49
49
|
|
50
|
-
# An additional reference code that is sometimes used to identify this invoice.
|
50
|
+
# An additional reference code that is sometimes used to identify this invoice.
|
51
51
|
# The meaning of this field is specific to the ERP or accounting system used by the user.
|
52
52
|
# @type: string
|
53
53
|
field :reference_code
|
@@ -60,25 +60,25 @@ end
|
|
60
60
|
# @type: string
|
61
61
|
field :salesperson_name
|
62
62
|
|
63
|
-
# A code identifying the type of this invoice.
|
64
|
-
#
|
65
|
-
# Recognized Invoice types are:
|
66
|
-
# * `AR Invoice` - Represents an invoice sent by Company to the Customer
|
67
|
-
# * `AP Invoice` - Represents an invoice sent by Vendor to the Company
|
68
|
-
# * `AR Credit Memo` - Represents a credit memo generated by Company given to Customer
|
63
|
+
# A code identifying the type of this invoice.
|
64
|
+
#
|
65
|
+
# Recognized Invoice types are:
|
66
|
+
# * `AR Invoice` - Represents an invoice sent by Company to the Customer
|
67
|
+
# * `AP Invoice` - Represents an invoice sent by Vendor to the Company
|
68
|
+
# * `AR Credit Memo` - Represents a credit memo generated by Company given to Customer
|
69
69
|
# * `AP Credit Memo` - Represents a credit memo generated by Vendor given to Company
|
70
70
|
# @type: string
|
71
71
|
field :invoice_type_code
|
72
72
|
|
73
|
-
# A code identifying the status of this invoice.
|
74
|
-
#
|
75
|
-
# Recognized Invoice status codes are:
|
76
|
-
# * `Open` - Represents an invoice that is considered open and needs more work to complete
|
73
|
+
# A code identifying the status of this invoice.
|
74
|
+
#
|
75
|
+
# Recognized Invoice status codes are:
|
76
|
+
# * `Open` - Represents an invoice that is considered open and needs more work to complete
|
77
77
|
# * `Closed` - Represents an invoice that is considered closed and resolved
|
78
78
|
# @type: string
|
79
79
|
field :invoice_status_code
|
80
80
|
|
81
|
-
# A code identifying the terms given to the purchaser. This field is imported directly from the originating
|
81
|
+
# A code identifying the terms given to the purchaser. This field is imported directly from the originating
|
82
82
|
# financial system and does not follow a specified format.
|
83
83
|
# @type: string
|
84
84
|
field :terms_code
|
@@ -91,22 +91,22 @@ end
|
|
91
91
|
# @type: string
|
92
92
|
field :currency_code
|
93
93
|
|
94
|
-
# The total value of this invoice, inclusive of all taxes and line items.
|
94
|
+
# The total value of this invoice, inclusive of all taxes and line items in it's tendered currency.
|
95
95
|
# @type: number
|
96
96
|
# @format: double
|
97
97
|
field :total_amount
|
98
98
|
|
99
|
-
# The total sales (or transactional) tax calculated for this invoice.
|
99
|
+
# The total sales (or transactional) tax calculated for this invoice in it's tendered currency.
|
100
100
|
# @type: number
|
101
101
|
# @format: double
|
102
102
|
field :sales_tax_amount
|
103
103
|
|
104
|
-
# The total discounts given by the seller to the buyer on this invoice.
|
104
|
+
# The total discounts given by the seller to the buyer on this invoice in it's tendered currency.
|
105
105
|
# @type: number
|
106
106
|
# @format: double
|
107
107
|
field :discount_amount
|
108
108
|
|
109
|
-
# The remaining balance value of this invoice.
|
109
|
+
# The remaining balance value of this invoice in it's tendered currency.
|
110
110
|
# @type: number
|
111
111
|
# @format: double
|
112
112
|
field :outstanding_balance_amount
|
@@ -126,7 +126,7 @@ end
|
|
126
126
|
# @format: date
|
127
127
|
field :posted_date
|
128
128
|
|
129
|
-
# The date when the invoice was closed and finalized after completion of all payments and delivery of all products and
|
129
|
+
# The date when the invoice was closed and finalized after completion of all payments and delivery of all products and
|
130
130
|
# services.
|
131
131
|
# @type: string
|
132
132
|
# @format: date
|
@@ -177,9 +177,9 @@ end
|
|
177
177
|
# @format: uuid
|
178
178
|
field :modified_user_id
|
179
179
|
|
180
|
-
# The AppEnrollmentId of the application that imported this record. For accounts
|
181
|
-
# with more than one financial system connected, this field identifies the originating
|
182
|
-
# financial system that produced this record. This value is null if this record
|
180
|
+
# The AppEnrollmentId of the application that imported this record. For accounts
|
181
|
+
# with more than one financial system connected, this field identifies the originating
|
182
|
+
# financial system that produced this record. This value is null if this record
|
183
183
|
# was not loaded from an external ERP or financial system.
|
184
184
|
# @type: string
|
185
185
|
# @format: uuid
|
@@ -206,35 +206,35 @@ end
|
|
206
206
|
# @format: double
|
207
207
|
field :currency_rate
|
208
208
|
|
209
|
-
# The
|
209
|
+
# The total value of this invoice, inclusive of all taxes and line items in the group's base currency.
|
210
210
|
# @type: number
|
211
211
|
# @format: double
|
212
212
|
field :base_currency_total_amount
|
213
213
|
|
214
|
-
# The sales tax
|
214
|
+
# The total sales (or transactional) tax calculated for this invoice in the group's base currency.
|
215
215
|
# @type: number
|
216
216
|
# @format: double
|
217
217
|
field :base_currency_sales_tax_amount
|
218
218
|
|
219
|
-
# The
|
219
|
+
# The total discounts given by the seller to the buyer on this invoice in the group's base currency.
|
220
220
|
# @type: number
|
221
221
|
# @format: double
|
222
222
|
field :base_currency_discount_amount
|
223
223
|
|
224
|
-
# The
|
224
|
+
# The remaining balance value of this invoice in the group's base currency.
|
225
225
|
# @type: number
|
226
226
|
# @format: double
|
227
227
|
field :base_currency_outstanding_balance_amount
|
228
228
|
|
229
|
-
# The Company associated to this invoice.
|
229
|
+
# The Company associated to this invoice.
|
230
230
|
# To retrieve this item, specify `Company` in the "Include" parameter for your query.
|
231
231
|
field :company
|
232
232
|
|
233
|
-
# The Customer associated to the invoice customer
|
233
|
+
# The Customer associated to the invoice customer
|
234
234
|
# To retrieve this item, specify `Customer` in the "Include" parameter for your query.
|
235
235
|
field :customer
|
236
236
|
|
237
|
-
# The Contact associated to the invoice customer
|
237
|
+
# The Contact associated to the invoice customer
|
238
238
|
# To retrieve this item, specify `Customer` in the "Include" parameter for your query.
|
239
239
|
field :customer_primary_contact
|
240
240
|
|
@@ -5,6 +5,9 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
+
# Indicates what action to take when an existing object has been found during the sync process.
|
9
|
+
field :on_match_action
|
10
|
+
|
8
11
|
# This is the primary key of the Invoice Line record. For this field, you should use whatever the contact'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.
|
@@ -13,6 +13,14 @@ end
|
|
13
13
|
# @format: uuid
|
14
14
|
field :group_key
|
15
15
|
|
16
|
+
# The base currency code of the group.
|
17
|
+
# @type: string
|
18
|
+
field :base_currency_code
|
19
|
+
|
20
|
+
# The payment's currency code.
|
21
|
+
# @type: string
|
22
|
+
field :currency_code
|
23
|
+
|
16
24
|
# The unique identifier of this PaymentApplied record.
|
17
25
|
# @type: string
|
18
26
|
# @format: uuid
|
@@ -38,6 +46,11 @@ end
|
|
38
46
|
# @format: double
|
39
47
|
field :payment_applied_amount
|
40
48
|
|
49
|
+
# Amount applied to Invoice in the group's base currency.
|
50
|
+
# @type: number
|
51
|
+
# @format: double
|
52
|
+
field :base_currency_payment_applied_amount
|
53
|
+
|
41
54
|
# An additional reference code that is sometimes used to identify this Payment.
|
42
55
|
# The meaning of this field is specific to the ERP or accounting system used by the user.
|
43
56
|
# @type: string
|
@@ -58,6 +71,16 @@ end
|
|
58
71
|
# @format: double
|
59
72
|
field :unapplied_amount
|
60
73
|
|
74
|
+
# The total value of this Payment in the group's base currency.
|
75
|
+
# @type: number
|
76
|
+
# @format: double
|
77
|
+
field :base_currency_payment_amount
|
78
|
+
|
79
|
+
# The remaining balance value of this Payment in the group's base currency.
|
80
|
+
# @type: number
|
81
|
+
# @format: double
|
82
|
+
field :base_currency_unapplied_amount
|
83
|
+
|
61
84
|
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
62
85
|
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
63
86
|
|