lockstep_rails 0.3.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +216 -0
- data/Rakefile +31 -0
- data/app/assets/config/lockstep_rails_manifest.js +0 -0
- data/app/concepts/lockstep/active_records/association.rb +78 -0
- data/app/concepts/lockstep/api_record.rb +1118 -0
- data/app/concepts/lockstep/api_records/scopes.rb +20 -0
- data/app/concepts/lockstep/client.rb +162 -0
- data/app/concepts/lockstep/error.rb +50 -0
- data/app/concepts/lockstep/exceptions.rb +4 -0
- data/app/concepts/lockstep/query.rb +409 -0
- data/app/concepts/lockstep/query_methods.rb +75 -0
- data/app/concepts/lockstep/relation_array.rb +100 -0
- data/app/helpers/types.rb +3 -0
- data/app/models/lockstep/account.rb +15 -0
- data/app/models/lockstep/connection.rb +19 -0
- data/app/models/lockstep/contact.rb +9 -0
- data/app/models/lockstep/customer_summary.rb +6 -0
- data/app/models/lockstep/invoice.rb +7 -0
- data/app/models/lockstep/invoice_summary.rb +6 -0
- data/app/models/lockstep/invoices/address.rb +24 -0
- data/app/models/lockstep/note.rb +7 -0
- data/app/models/lockstep/payment.rb +7 -0
- data/app/models/lockstep/payment_summary.rb +6 -0
- data/app/models/lockstep/user.rb +10 -0
- data/app/platform_api/model_template.rb.erb +27 -0
- data/app/platform_api/schema/action_result.rb +15 -0
- data/app/platform_api/schema/activity.rb +141 -0
- data/app/platform_api/schema/activity_fetch_result.rb +26 -0
- data/app/platform_api/schema/activity_stream_item.rb +58 -0
- data/app/platform_api/schema/activity_x_ref.rb +37 -0
- data/app/platform_api/schema/aging.rb +24 -0
- data/app/platform_api/schema/api_key.rb +71 -0
- data/app/platform_api/schema/api_key_fetch_result.rb +26 -0
- data/app/platform_api/schema/app_enrollment.rb +88 -0
- data/app/platform_api/schema/app_enrollment_custom_field.rb +67 -0
- data/app/platform_api/schema/app_enrollment_custom_field_fetch_result.rb +26 -0
- data/app/platform_api/schema/app_enrollment_fetch_result.rb +26 -0
- data/app/platform_api/schema/application.rb +89 -0
- data/app/platform_api/schema/application_fetch_result.rb +26 -0
- data/app/platform_api/schema/ar_aging_header_info.rb +47 -0
- data/app/platform_api/schema/ar_header_info.rb +118 -0
- data/app/platform_api/schema/assembly.rb +68 -0
- data/app/platform_api/schema/at_risk_invoice_summary.rb +90 -0
- data/app/platform_api/schema/at_risk_invoice_summary_fetch_result.rb +26 -0
- data/app/platform_api/schema/attachment.rb +92 -0
- data/app/platform_api/schema/attachment_fetch_result.rb +26 -0
- data/app/platform_api/schema/attachment_header_info.rb +41 -0
- data/app/platform_api/schema/batch_sync.rb +18 -0
- data/app/platform_api/schema/bulk_currency_conversion.rb +19 -0
- data/app/platform_api/schema/cashflow_report.rb +35 -0
- data/app/platform_api/schema/code_definition.rb +58 -0
- data/app/platform_api/schema/code_definition_fetch_result.rb +26 -0
- data/app/platform_api/schema/company.rb +243 -0
- data/app/platform_api/schema/company_fetch_result.rb +26 -0
- data/app/platform_api/schema/company_sync.rb +142 -0
- data/app/platform_api/schema/connector_info.rb +27 -0
- data/app/platform_api/schema/constructor_info.rb +128 -0
- data/app/platform_api/schema/contact.rb +148 -0
- data/app/platform_api/schema/contact_fetch_result.rb +26 -0
- data/app/platform_api/schema/contact_sync.rb +109 -0
- data/app/platform_api/schema/country.rb +62 -0
- data/app/platform_api/schema/country_fetch_result.rb +26 -0
- data/app/platform_api/schema/credit_memo_applied.rb +104 -0
- data/app/platform_api/schema/credit_memo_applied_fetch_result.rb +26 -0
- data/app/platform_api/schema/credit_memo_applied_sync.rb +67 -0
- data/app/platform_api/schema/credit_memo_invoice.rb +77 -0
- data/app/platform_api/schema/currency.rb +31 -0
- data/app/platform_api/schema/currency_fetch_result.rb +26 -0
- data/app/platform_api/schema/currency_rate.rb +28 -0
- data/app/platform_api/schema/custom_attribute_data.rb +18 -0
- data/app/platform_api/schema/custom_attribute_named_argument.rb +24 -0
- data/app/platform_api/schema/custom_attribute_typed_argument.rb +16 -0
- data/app/platform_api/schema/custom_field_definition.rb +76 -0
- data/app/platform_api/schema/custom_field_definition_fetch_result.rb +26 -0
- data/app/platform_api/schema/custom_field_sync.rb +71 -0
- data/app/platform_api/schema/custom_field_value.rb +75 -0
- data/app/platform_api/schema/custom_field_value_fetch_result.rb +26 -0
- data/app/platform_api/schema/customer_details.rb +98 -0
- data/app/platform_api/schema/customer_details_payment.rb +60 -0
- data/app/platform_api/schema/customer_summary.rb +88 -0
- data/app/platform_api/schema/customer_summary_fetch_result.rb +26 -0
- data/app/platform_api/schema/daily_sales_outstanding_report.rb +25 -0
- data/app/platform_api/schema/developer_account_submit.rb +23 -0
- data/app/platform_api/schema/email.rb +160 -0
- data/app/platform_api/schema/email_fetch_result.rb +26 -0
- data/app/platform_api/schema/erp.rb +23 -0
- data/app/platform_api/schema/erp_fetch_result.rb +26 -0
- data/app/platform_api/schema/erp_info.rb +18 -0
- data/app/platform_api/schema/erp_info_data.rb +23 -0
- data/app/platform_api/schema/event_info.rb +59 -0
- data/app/platform_api/schema/exception.rb +41 -0
- data/app/platform_api/schema/field_info.rb +105 -0
- data/app/platform_api/schema/financial_account.rb +90 -0
- data/app/platform_api/schema/financial_account_balance_history.rb +90 -0
- data/app/platform_api/schema/financial_account_balance_history_fetch_result.rb +26 -0
- data/app/platform_api/schema/financial_account_fetch_result.rb +26 -0
- data/app/platform_api/schema/financial_year_setting.rb +74 -0
- data/app/platform_api/schema/financial_year_setting_fetch_result.rb +26 -0
- data/app/platform_api/schema/invite.rb +25 -0
- data/app/platform_api/schema/invite_data.rb +18 -0
- data/app/platform_api/schema/invite_submit.rb +15 -0
- data/app/platform_api/schema/invoice.rb +226 -0
- data/app/platform_api/schema/invoice_address.rb +97 -0
- data/app/platform_api/schema/invoice_fetch_result.rb +29 -0
- data/app/platform_api/schema/invoice_history.rb +188 -0
- data/app/platform_api/schema/invoice_history_fetch_result.rb +26 -0
- data/app/platform_api/schema/invoice_line.rb +142 -0
- data/app/platform_api/schema/invoice_line_sync.rb +208 -0
- data/app/platform_api/schema/invoice_payment_detail.rb +65 -0
- data/app/platform_api/schema/invoice_summary.rb +85 -0
- data/app/platform_api/schema/invoice_summary_fetch_result.rb +26 -0
- data/app/platform_api/schema/invoice_sync.rb +280 -0
- data/app/platform_api/schema/lead.rb +32 -0
- data/app/platform_api/schema/member_info.rb +36 -0
- data/app/platform_api/schema/method_base.rb +128 -0
- data/app/platform_api/schema/method_info.rb +137 -0
- data/app/platform_api/schema/module.rb +44 -0
- data/app/platform_api/schema/module_handle.rb +15 -0
- data/app/platform_api/schema/note.rb +72 -0
- data/app/platform_api/schema/note_fetch_result.rb +26 -0
- data/app/platform_api/schema/parameter_info.rb +64 -0
- data/app/platform_api/schema/payment.rb +147 -0
- data/app/platform_api/schema/payment_applied.rb +95 -0
- data/app/platform_api/schema/payment_applied_fetch_result.rb +26 -0
- data/app/platform_api/schema/payment_applied_sync.rb +74 -0
- data/app/platform_api/schema/payment_detail.rb +110 -0
- data/app/platform_api/schema/payment_detail_fetch_result.rb +26 -0
- data/app/platform_api/schema/payment_detail_header.rb +43 -0
- data/app/platform_api/schema/payment_fetch_result.rb +26 -0
- data/app/platform_api/schema/payment_summary.rb +79 -0
- data/app/platform_api/schema/payment_summary_fetch_result.rb +26 -0
- data/app/platform_api/schema/payment_sync.rb +112 -0
- data/app/platform_api/schema/problem_details.rb +31 -0
- data/app/platform_api/schema/property_info.rb +60 -0
- data/app/platform_api/schema/provisioning.rb +28 -0
- data/app/platform_api/schema/provisioning_finalize_request.rb +28 -0
- data/app/platform_api/schema/provisioning_response.rb +42 -0
- data/app/platform_api/schema/risk_rate.rb +57 -0
- data/app/platform_api/schema/runtime_field_handle.rb +13 -0
- data/app/platform_api/schema/runtime_method_handle.rb +13 -0
- data/app/platform_api/schema/runtime_type_handle.rb +13 -0
- data/app/platform_api/schema/state.rb +22 -0
- data/app/platform_api/schema/state_fetch_result.rb +26 -0
- data/app/platform_api/schema/status.rb +72 -0
- data/app/platform_api/schema/struct_layout_attribute.rb +16 -0
- data/app/platform_api/schema/sync_entity_result.rb +34 -0
- data/app/platform_api/schema/sync_request.rb +71 -0
- data/app/platform_api/schema/sync_request_fetch_result.rb +26 -0
- data/app/platform_api/schema/sync_submit.rb +15 -0
- data/app/platform_api/schema/test_argument_exception.rb +41 -0
- data/app/platform_api/schema/test_timeout_exception.rb +41 -0
- data/app/platform_api/schema/transfer_owner.rb +16 -0
- data/app/platform_api/schema/transfer_owner_submit.rb +15 -0
- data/app/platform_api/schema/type.rb +278 -0
- data/app/platform_api/schema/type_info.rb +287 -0
- data/app/platform_api/schema/uri.rb +15 -0
- data/app/platform_api/schema/user_account.rb +152 -0
- data/app/platform_api/schema/user_account_fetch_result.rb +26 -0
- data/app/platform_api/schema/user_role.rb +50 -0
- data/app/platform_api/schema/user_role_fetch_result.rb +26 -0
- data/app/platform_api/schema/webhook.rb +96 -0
- data/app/platform_api/schema/webhook_fetch_result.rb +26 -0
- data/app/platform_api/schema/webhook_history_table_storage.rb +64 -0
- data/app/platform_api/schema/webhook_history_table_storage_fetch_result.rb +26 -0
- data/app/platform_api/swagger.json +22056 -0
- data/config/routes.rb +2 -0
- data/lib/lockstep_rails/engine.rb +4 -0
- data/lib/lockstep_rails/version.rb +3 -0
- data/lib/lockstep_rails.rb +5 -0
- data/lib/tasks/lockstep_rails_tasks.rake +4 -0
- data/lib/tasks/update_api_schema.rake +159 -0
- metadata +230 -0
@@ -0,0 +1,104 @@
|
|
1
|
+
class Schema::CreditMemoApplied < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The unique ID of this record, automatically assigned by Lockstep when this record is
|
9
|
+
# added to the Lockstep platform.
|
10
|
+
#
|
11
|
+
# For the ID of this record in its originating financial system, see `ErpKey`.
|
12
|
+
# @type: string
|
13
|
+
# @format: uuid
|
14
|
+
field :credit_memo_applied_id
|
15
|
+
|
16
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
17
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
18
|
+
#
|
19
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
20
|
+
# @type: string
|
21
|
+
# @format: uuid
|
22
|
+
field :group_key
|
23
|
+
|
24
|
+
# The Lockstep ID of the Invoice to which this credit memo was applied. This Invoice's outstanding balance
|
25
|
+
# was reduced by the value of the field `CreditMemoAppliedAmount` on the date `ApplyToInvoiceDate`.
|
26
|
+
#
|
27
|
+
# Example: Company ABC received a credit memo, CM000123 for $500. Company ABC then chooses to apply this
|
28
|
+
# credit memo to reduce the balance of the invoice PO1000578. The `InvoiceErpKey` is the Lockstep Platform
|
29
|
+
# ID number of Invoice `PO1000578`.
|
30
|
+
# @type: string
|
31
|
+
# @format: uuid
|
32
|
+
field :invoice_id
|
33
|
+
|
34
|
+
# The Lockstep ID of the Invoice of type "Credit Memo" that was consumed in this payment application event.
|
35
|
+
#
|
36
|
+
# Example: Company ABC received a credit memo, CM000123 for $500. Company ABC then chooses to apply this
|
37
|
+
# credit memo to reduce the balance of the invoice PO1000578. The `CreditMemoInvoiceId` is the Lockstep
|
38
|
+
# Platform ID number of Invoice `CM000123`.
|
39
|
+
# @type: string
|
40
|
+
# @format: uuid
|
41
|
+
field :credit_memo_invoice_id
|
42
|
+
|
43
|
+
# The unique ID of this record as it was known in its originating financial system.
|
44
|
+
#
|
45
|
+
# If this company record was imported from a financial system, it will have the value `ErpKey`
|
46
|
+
# set to the original primary key number of the record as it was known in the originating financial
|
47
|
+
# system. If this record was not imported, this value will be `null`.
|
48
|
+
#
|
49
|
+
# For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
|
50
|
+
# @type: string
|
51
|
+
field :erp_key
|
52
|
+
|
53
|
+
# Reference number for the applied credit memo.
|
54
|
+
# @type: integer
|
55
|
+
# @format: int32
|
56
|
+
field :entry_number
|
57
|
+
|
58
|
+
# The date on which this credit memo was applied to the Invoice represented by `InvoiceId`.
|
59
|
+
# @type: string
|
60
|
+
# @format: date-time
|
61
|
+
field :apply_to_invoice_date, Types::Params::DateTime
|
62
|
+
|
63
|
+
# The amount of the credit memo that was applied to the Invoice represented by `InvoiceId`.
|
64
|
+
# @type: number
|
65
|
+
# @format: double
|
66
|
+
field :credit_memo_applied_amount
|
67
|
+
|
68
|
+
# Date credit memo applied record was created.
|
69
|
+
# @type: string
|
70
|
+
# @format: date-time
|
71
|
+
field :created, Types::Params::DateTime
|
72
|
+
|
73
|
+
# The id of the user who created this applied credit memo.
|
74
|
+
# @type: string
|
75
|
+
# @format: uuid
|
76
|
+
field :created_user_id
|
77
|
+
|
78
|
+
# Date credit memo applied record was modified.
|
79
|
+
# @type: string
|
80
|
+
# @format: date-time
|
81
|
+
field :modified, Types::Params::DateTime
|
82
|
+
|
83
|
+
# The id of the user who modified this applied credit memo.
|
84
|
+
# @type: string
|
85
|
+
# @format: uuid
|
86
|
+
field :modified_user_id
|
87
|
+
|
88
|
+
# The AppEnrollmentId of the application that imported this record. For accounts
|
89
|
+
# with more than one financial system connected, this field identifies the originating
|
90
|
+
# financial system that produced this record. This value is null if this record
|
91
|
+
# was not loaded from an external ERP or financial system.
|
92
|
+
# @type: string
|
93
|
+
# @format: uuid
|
94
|
+
field :app_enrollment_id
|
95
|
+
|
96
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
97
|
+
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
98
|
+
|
99
|
+
has_many :attachments, {:class_name=>"Schema::Attachment", :included=>true}
|
100
|
+
has_many :notes, {:class_name=>"Lockstep::Note", :included=>true, :foreign_key=>:object_key, :polymorphic=>{:table_key=>"CreditMemoApplied"}}
|
101
|
+
has_many :custom_field_definitions, {:class_name=>"Schema::CustomFieldDefinition", :included=>true}
|
102
|
+
has_many :custom_field_values, {:class_name=>"Schema::CustomFieldValue", :included=>true}
|
103
|
+
|
104
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::CreditMemoAppliedFetchResult < 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::CreditMemoApplied", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
class Schema::CreditMemoAppliedSync < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# This is the primary key of the Credit Memo Application record. For this field, you should use whatever this
|
9
|
+
# transaction's unique identifying number is in the originating system. Search for a unique, non-changing
|
10
|
+
# number within the originating financial system for this record.
|
11
|
+
#
|
12
|
+
# Since Credit Memo Applications are often considered transactions, a typical value to look for will be
|
13
|
+
# the transaction ID number, the payment confirmation number, or some other record of this payment.
|
14
|
+
#
|
15
|
+
# For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
|
16
|
+
# @type: string
|
17
|
+
field :erp_key
|
18
|
+
|
19
|
+
# This field indicates which Invoice had its balanced reduced by applying a credit memo. In this field,
|
20
|
+
# identify the original primary key or unique ID of the Invoice which had its balanced reduced.
|
21
|
+
#
|
22
|
+
# Example: Company ABC received a credit memo, CM000123 for $500. Company ABC then chooses to apply this
|
23
|
+
# credit memo to reduce the balance of the invoice PO1000578. The `InvoiceErpKey` is `PO1000578`.
|
24
|
+
# @type: string
|
25
|
+
field :invoice_erp_key
|
26
|
+
|
27
|
+
# This field indicates which Invoice is the original credit memo that was used to make this payment
|
28
|
+
# application event. In this field, identify the original primary key or unique ID of the Invoice which
|
29
|
+
# created the credit memo that was consumed in this event.
|
30
|
+
#
|
31
|
+
# Example: Company ABC received a credit memo, CM000123 for $500. Company ABC then chooses to apply this
|
32
|
+
# credit memo to reduce the balance of the invoice PO1000578. The `CreditMemoInvoiceErpKey` is `CM000123`.
|
33
|
+
# @type: string
|
34
|
+
field :credit_memo_invoice_erp_key
|
35
|
+
|
36
|
+
# Reference number for the applied credit memo.
|
37
|
+
# @type: integer
|
38
|
+
# @format: int32
|
39
|
+
field :entry_number
|
40
|
+
|
41
|
+
# The date on which this credit memo was applied to the Invoice.
|
42
|
+
# @type: string
|
43
|
+
# @format: date-time
|
44
|
+
field :apply_to_invoice_date, Types::Params::DateTime
|
45
|
+
|
46
|
+
# The amount of this credit memo that was applied to this Invoice.
|
47
|
+
# @type: number
|
48
|
+
# @format: double
|
49
|
+
field :credit_memo_applied_amount
|
50
|
+
|
51
|
+
# If known, the date when this record was created according to the originating financial system
|
52
|
+
# in which this record is maintained. If the originating financial system does not maintain a
|
53
|
+
# created-date, leave this field null.
|
54
|
+
# @type: string
|
55
|
+
# @format: date-time
|
56
|
+
field :created, Types::Params::DateTime
|
57
|
+
|
58
|
+
# If known, the date when this record was most recently modified according to the originating
|
59
|
+
# financial system in which this record is maintained. If the originating financial system does
|
60
|
+
# not maintain a most-recently-modified-date, leave this field null.
|
61
|
+
# @type: string
|
62
|
+
# @format: date-time
|
63
|
+
field :modified, Types::Params::DateTime
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
class Schema::CreditMemoInvoice < 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 record, automatically assigned by Lockstep when this record is
|
17
|
+
# added to the Lockstep platform.
|
18
|
+
# @type: string
|
19
|
+
# @format: uuid
|
20
|
+
field :credit_memo_applied_id
|
21
|
+
|
22
|
+
# The id of the invoice
|
23
|
+
# @type: string
|
24
|
+
# @format: uuid
|
25
|
+
field :invoice_id
|
26
|
+
|
27
|
+
# The id of the credit memo invoice
|
28
|
+
# @type: string
|
29
|
+
# @format: uuid
|
30
|
+
field :credit_memo_invoice_id
|
31
|
+
|
32
|
+
# Date invoice applied to credit memo.
|
33
|
+
# @type: string
|
34
|
+
# @format: date
|
35
|
+
field :apply_to_invoice_date
|
36
|
+
|
37
|
+
# Amount applied to credit memo.
|
38
|
+
# @type: number
|
39
|
+
# @format: double
|
40
|
+
field :credit_memo_applied_amount
|
41
|
+
|
42
|
+
# An additional reference code that is sometimes used to identify this invoice.
|
43
|
+
# The meaning of this field is specific to the ERP or accounting system used by the user.
|
44
|
+
# @type: string
|
45
|
+
field :reference_code
|
46
|
+
|
47
|
+
# The ID number of the company that created this invoice.
|
48
|
+
# @type: string
|
49
|
+
# @format: uuid
|
50
|
+
field :company_id
|
51
|
+
|
52
|
+
# The ID number of the counterparty for the invoice, for example, a customer or vendor.
|
53
|
+
# @type: string
|
54
|
+
# @format: uuid
|
55
|
+
field :customer_id
|
56
|
+
|
57
|
+
# A code identifying the status of this invoice.
|
58
|
+
# @type: string
|
59
|
+
field :invoice_status_code
|
60
|
+
|
61
|
+
# The total value of this invoice, inclusive of all taxes and line items.
|
62
|
+
# @type: number
|
63
|
+
# @format: double
|
64
|
+
field :total_amount
|
65
|
+
|
66
|
+
# The remaining balance value of this invoice.
|
67
|
+
# @type: number
|
68
|
+
# @format: double
|
69
|
+
field :outstanding_balance_amount
|
70
|
+
|
71
|
+
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
72
|
+
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
73
|
+
belongs_to :customer, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
74
|
+
belongs_to :connection, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
75
|
+
|
76
|
+
|
77
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
class Schema::Currency < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Alphabetic code for the given currency
|
9
|
+
# @type: string
|
10
|
+
field :alpha_code
|
11
|
+
|
12
|
+
# Numeric code for the given currency
|
13
|
+
# @type: string
|
14
|
+
field :numeric_code
|
15
|
+
|
16
|
+
# Name of currency
|
17
|
+
# @type: string
|
18
|
+
field :currency_name
|
19
|
+
|
20
|
+
# Number of places after the decimal for this currency
|
21
|
+
# @type: integer
|
22
|
+
# @format: int32
|
23
|
+
field :minor_unit
|
24
|
+
|
25
|
+
# Symbol for the given currency
|
26
|
+
# @type: string
|
27
|
+
field :symbol
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::CurrencyFetchResult < 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::Currency", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
class Schema::CurrencyRate < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The source currency
|
9
|
+
# @type: string
|
10
|
+
field :source_currency
|
11
|
+
|
12
|
+
# The destination currency
|
13
|
+
# @type: string
|
14
|
+
field :destination_currency
|
15
|
+
|
16
|
+
# The date for the currency rate
|
17
|
+
# @type: string
|
18
|
+
# @format: date
|
19
|
+
field :date
|
20
|
+
|
21
|
+
# The currency rate value
|
22
|
+
# @type: number
|
23
|
+
# @format: double
|
24
|
+
field :currency_rate
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
class Schema::CustomAttributeData < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
|
9
|
+
field :attribute_type
|
10
|
+
|
11
|
+
|
12
|
+
field :constructor
|
13
|
+
|
14
|
+
|
15
|
+
has_many :constructor_arguments, {:class_name=>"Schema::CustomAttributeTypedArgument", :included=>true}
|
16
|
+
has_many :named_arguments, {:class_name=>"Schema::CustomAttributeNamedArgument", :included=>true}
|
17
|
+
|
18
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
class Schema::CustomAttributeNamedArgument < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
|
9
|
+
field :member_info
|
10
|
+
|
11
|
+
|
12
|
+
field :typed_value
|
13
|
+
|
14
|
+
|
15
|
+
# @type: string
|
16
|
+
field :member_name
|
17
|
+
|
18
|
+
|
19
|
+
# @type: boolean
|
20
|
+
field :is_field
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
class Schema::CustomFieldDefinition < 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 record, automatically assigned by Lockstep when this record is
|
17
|
+
# added to the Lockstep platform.
|
18
|
+
# @type: string
|
19
|
+
# @format: uuid
|
20
|
+
field :custom_field_definition_id
|
21
|
+
|
22
|
+
# Table to which this definition belongs
|
23
|
+
# @type: string
|
24
|
+
field :table_key
|
25
|
+
|
26
|
+
# Id of app this definition belongs to
|
27
|
+
# @type: string
|
28
|
+
# @format: uuid
|
29
|
+
field :app_id
|
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
|
+
|
39
|
+
# Used for display logic when multiple custom fields exist
|
40
|
+
# @type: integer
|
41
|
+
# @format: int32
|
42
|
+
field :sort_order
|
43
|
+
|
44
|
+
# Date created
|
45
|
+
# @type: string
|
46
|
+
# @format: date-time
|
47
|
+
field :created, Types::Params::DateTime
|
48
|
+
|
49
|
+
# Id of user who created this definition
|
50
|
+
# @type: string
|
51
|
+
# @format: uuid
|
52
|
+
field :created_user_id
|
53
|
+
|
54
|
+
# Date modified
|
55
|
+
# @type: string
|
56
|
+
# @format: date-time
|
57
|
+
field :modified, Types::Params::DateTime
|
58
|
+
|
59
|
+
# Id of user who modified this definition
|
60
|
+
# @type: string
|
61
|
+
# @format: uuid
|
62
|
+
field :modified_user_id
|
63
|
+
|
64
|
+
# The AppEnrollmentId of the application that imported this record. For accounts
|
65
|
+
# with more than one financial system connected, this field identifies the originating
|
66
|
+
# financial system that produced this record. This value is null if this record
|
67
|
+
# was not loaded from an external ERP or financial system.
|
68
|
+
# @type: string
|
69
|
+
# @format: uuid
|
70
|
+
field :app_enrollment_id
|
71
|
+
|
72
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
73
|
+
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
74
|
+
|
75
|
+
|
76
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::CustomFieldDefinitionFetchResult < 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::CustomFieldDefinition", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
class Schema::CustomFieldSync < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# This is the primary key of the record to which you will attach this custom field. You should provide the
|
9
|
+
# identifying number as it is stored in the originating financial system. Search for a unique, non-changing
|
10
|
+
# number within the originating financial system for this record.
|
11
|
+
#
|
12
|
+
# Custom Fields are identified by the `EntityType` and `ErpKey` values together.
|
13
|
+
#
|
14
|
+
# Example: You have an invoice whose ID number is 100047878, and you wish to store a custom field on that
|
15
|
+
# invoice named "ApprovalStatusCode". For the `ErpKey` field, specify the value `100047878`.
|
16
|
+
#
|
17
|
+
# For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
|
18
|
+
# @type: string
|
19
|
+
field :erp_key
|
20
|
+
|
21
|
+
# Custom Fields are identified by the `EntityType` and `ErpKey` values together.
|
22
|
+
#
|
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 `EntityType` field, specify the value `Invoice`.
|
25
|
+
#
|
26
|
+
# Recognized types include:
|
27
|
+
# * `Company` - Link this custom field to a CompanySyncModel
|
28
|
+
# * `Contact` - Link this custom field to a ContactSyncModel
|
29
|
+
# * `Invoice` - Link this custom field to an InvoiceSyncModel
|
30
|
+
# * `InvoiceLine` - Link this custom field to an InvoiceLineSyncModel
|
31
|
+
# * `Payment` - Link this custom field to a PaymentSyncModel
|
32
|
+
# @type: string
|
33
|
+
field :entity_type
|
34
|
+
|
35
|
+
# A label that uniquely identifies this custom field within your software.
|
36
|
+
#
|
37
|
+
# Example: You have an invoice whose ID number is 100047878, and you wish to store a custom field on that
|
38
|
+
# invoice named "ApprovalStatusCode". For the `CustomFieldLabel` field, specify the value `ApprovalStatusCode`.
|
39
|
+
# @type: string
|
40
|
+
field :custom_field_label
|
41
|
+
|
42
|
+
# The value of this custom field, if it is stored in string format.
|
43
|
+
# @type: string
|
44
|
+
field :string_value
|
45
|
+
|
46
|
+
# The value of this custom field, if it is stored in numeric format.
|
47
|
+
# @type: number
|
48
|
+
# @format: double
|
49
|
+
field :numeric_value
|
50
|
+
|
51
|
+
# The value of this custom field.
|
52
|
+
# @type: string
|
53
|
+
field :value
|
54
|
+
|
55
|
+
# If known, the date when this record was created according to the originating financial system
|
56
|
+
# in which this record is maintained. If the originating financial system does not maintain a
|
57
|
+
# created-date, leave this field null.
|
58
|
+
# @type: string
|
59
|
+
# @format: date-time
|
60
|
+
field :created, Types::Params::DateTime
|
61
|
+
|
62
|
+
# If known, the date when this record was most recently modified according to the originating
|
63
|
+
# financial system in which this record is maintained. If the originating financial system does
|
64
|
+
# not maintain a most-recently-modified-date, leave this field null.
|
65
|
+
# @type: string
|
66
|
+
# @format: date-time
|
67
|
+
field :modified, Types::Params::DateTime
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
class Schema::CustomFieldValue < 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 record, automatically assigned by Lockstep when this record is
|
17
|
+
# added to the Lockstep platform.
|
18
|
+
# @type: string
|
19
|
+
# @format: uuid
|
20
|
+
field :custom_field_definition_id
|
21
|
+
|
22
|
+
# Additional key if source table doesn't have a unique id
|
23
|
+
# @type: string
|
24
|
+
# @format: uuid
|
25
|
+
field :record_key
|
26
|
+
|
27
|
+
# String of data for field
|
28
|
+
# @type: string
|
29
|
+
field :string_value
|
30
|
+
|
31
|
+
# Number data for field
|
32
|
+
# @type: number
|
33
|
+
# @format: double
|
34
|
+
field :numeric_value
|
35
|
+
|
36
|
+
# Date created
|
37
|
+
# @type: string
|
38
|
+
# @format: date-time
|
39
|
+
field :created, Types::Params::DateTime
|
40
|
+
|
41
|
+
# Id of user who created this value
|
42
|
+
# @type: string
|
43
|
+
# @format: uuid
|
44
|
+
field :created_user_id
|
45
|
+
|
46
|
+
# Date modified
|
47
|
+
# @type: string
|
48
|
+
# @format: date-time
|
49
|
+
field :modified, Types::Params::DateTime
|
50
|
+
|
51
|
+
# Id of user who modified this value
|
52
|
+
# @type: string
|
53
|
+
# @format: uuid
|
54
|
+
field :modified_user_id
|
55
|
+
|
56
|
+
# The AppEnrollmentId of the application that imported this attachment record. For accounts
|
57
|
+
# with more than one financial system connected, this field identifies the originating
|
58
|
+
# financial system that produced this record. This value is null if this record
|
59
|
+
# was not loaded from an external ERP or financial system.
|
60
|
+
# @type: string
|
61
|
+
# @format: uuid
|
62
|
+
field :app_enrollment_id
|
63
|
+
|
64
|
+
# The value of this custom field.
|
65
|
+
# @type: string
|
66
|
+
field :value
|
67
|
+
|
68
|
+
# Definition of the value
|
69
|
+
field :custom_field_definition
|
70
|
+
|
71
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
72
|
+
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
73
|
+
|
74
|
+
|
75
|
+
end
|