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,72 @@
|
|
1
|
+
class Schema::Note < 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
|
+
# @type: string
|
11
|
+
# @format: uuid
|
12
|
+
field :note_id
|
13
|
+
|
14
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
15
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
16
|
+
#
|
17
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
18
|
+
# @type: string
|
19
|
+
# @format: uuid
|
20
|
+
field :group_key
|
21
|
+
|
22
|
+
# The name of the table the note is associated with
|
23
|
+
# @type: string
|
24
|
+
field :table_key
|
25
|
+
|
26
|
+
# The ID of the object the note is associated with
|
27
|
+
# @type: string
|
28
|
+
# @format: uuid
|
29
|
+
field :object_key
|
30
|
+
|
31
|
+
# The text of the note
|
32
|
+
# @type: string
|
33
|
+
field :note_text
|
34
|
+
|
35
|
+
# The type of the note
|
36
|
+
# @type: string
|
37
|
+
field :note_type
|
38
|
+
|
39
|
+
# Flag indicating if the note has been archived
|
40
|
+
# @type: boolean
|
41
|
+
field :is_archived
|
42
|
+
|
43
|
+
# The date the note was created
|
44
|
+
# @type: string
|
45
|
+
# @format: date-time
|
46
|
+
field :created, Types::Params::DateTime
|
47
|
+
|
48
|
+
# The ID of the user who created the note
|
49
|
+
# @type: string
|
50
|
+
# @format: uuid
|
51
|
+
field :created_user_id
|
52
|
+
|
53
|
+
# The name of the user who created the note
|
54
|
+
# @type: string
|
55
|
+
field :created_user_name
|
56
|
+
|
57
|
+
# The AppEnrollmentId of the application that imported this record. For accounts
|
58
|
+
# with more than one financial system connected, this field identifies the originating
|
59
|
+
# financial system that produced this record. This value is null if this record
|
60
|
+
# was not loaded from an external ERP or financial system.
|
61
|
+
# @type: string
|
62
|
+
# @format: uuid
|
63
|
+
field :app_enrollment_id
|
64
|
+
|
65
|
+
# The person to whom this note is intended for.
|
66
|
+
# @type: string
|
67
|
+
field :recipient_name
|
68
|
+
|
69
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
70
|
+
|
71
|
+
|
72
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::NoteFetchResult < 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::Note", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
class Schema::ParameterInfo < 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 :attributes
|
10
|
+
|
11
|
+
|
12
|
+
field :member
|
13
|
+
|
14
|
+
|
15
|
+
# @type: string
|
16
|
+
field :name
|
17
|
+
|
18
|
+
|
19
|
+
field :parameter_type
|
20
|
+
|
21
|
+
|
22
|
+
# @type: integer
|
23
|
+
# @format: int32
|
24
|
+
field :position
|
25
|
+
|
26
|
+
|
27
|
+
# @type: boolean
|
28
|
+
field :is_in
|
29
|
+
|
30
|
+
|
31
|
+
# @type: boolean
|
32
|
+
field :is_lcid
|
33
|
+
|
34
|
+
|
35
|
+
# @type: boolean
|
36
|
+
field :is_optional
|
37
|
+
|
38
|
+
|
39
|
+
# @type: boolean
|
40
|
+
field :is_out
|
41
|
+
|
42
|
+
|
43
|
+
# @type: boolean
|
44
|
+
field :is_retval
|
45
|
+
|
46
|
+
|
47
|
+
field :default_value
|
48
|
+
|
49
|
+
|
50
|
+
field :raw_default_value
|
51
|
+
|
52
|
+
|
53
|
+
# @type: boolean
|
54
|
+
field :has_default_value
|
55
|
+
|
56
|
+
|
57
|
+
# @type: integer
|
58
|
+
# @format: int32
|
59
|
+
field :metadata_token
|
60
|
+
|
61
|
+
|
62
|
+
has_many :custom_attributes, {:class_name=>"Schema::CustomAttributeData", :included=>true}
|
63
|
+
|
64
|
+
end
|
@@ -0,0 +1,147 @@
|
|
1
|
+
class Schema::Payment < 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
|
+
#
|
19
|
+
# For the ID of this record in its originating financial system, see `ErpKey`.
|
20
|
+
# @type: string
|
21
|
+
# @format: uuid
|
22
|
+
field :payment_id
|
23
|
+
|
24
|
+
# The ID of the company to which this payment belongs.
|
25
|
+
# @type: string
|
26
|
+
# @format: uuid
|
27
|
+
field :company_id
|
28
|
+
|
29
|
+
# The unique ID of this record as it was known in its originating financial system.
|
30
|
+
#
|
31
|
+
# If this company record was imported from a financial system, it will have the value `ErpKey`
|
32
|
+
# set to the original primary key number of the record as it was known in the originating financial
|
33
|
+
# system. If this record was not imported, this value will be `null`.
|
34
|
+
#
|
35
|
+
# For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
|
36
|
+
# @type: string
|
37
|
+
field :erp_key
|
38
|
+
|
39
|
+
# The type of payment, cash or check.
|
40
|
+
#
|
41
|
+
# Recognized PaymentType values are:
|
42
|
+
# * `Cash` - A cash payment or other direct transfer.
|
43
|
+
# * `Check` - A check payment.
|
44
|
+
# @type: string
|
45
|
+
field :payment_type
|
46
|
+
|
47
|
+
# Cash, check, credit card, wire transfer.
|
48
|
+
#
|
49
|
+
# Recognized TenderType values are:
|
50
|
+
# * `Cash` - A cash payment or other direct transfer.
|
51
|
+
# * `Check` - A check payment.
|
52
|
+
# * `Credit Card` - A payment made via a credit card.
|
53
|
+
# * `Wire Transfer` - A payment made via wire transfer from another financial institution.
|
54
|
+
# @type: string
|
55
|
+
field :tender_type
|
56
|
+
|
57
|
+
# True if this payment includes some unassigned amount that has not yet been applied to an invoice. If this
|
58
|
+
# value is true, the field `UnappliedAmount` will be nonzero.
|
59
|
+
# @type: boolean
|
60
|
+
field :is_open
|
61
|
+
|
62
|
+
# Memo or reference text (ex. memo field on a check).
|
63
|
+
# @type: string
|
64
|
+
field :memo_text
|
65
|
+
|
66
|
+
# The date when this payment was received. This typically is the date when an accounting employee recorded
|
67
|
+
# that they received notification that the payment had occurred, whether they were notified by email, postal
|
68
|
+
# mail, or financial transaction notification.
|
69
|
+
# @type: string
|
70
|
+
# @format: date
|
71
|
+
field :payment_date
|
72
|
+
|
73
|
+
# The date when a payment was posted to a ledger. This date is often determined by a company's accounting
|
74
|
+
# practices and may be different than the date when the payment was received. This date may be affected by
|
75
|
+
# issues such as temporary holds on funds transferred, bank holidays, or other actions.
|
76
|
+
# @type: string
|
77
|
+
# @format: date
|
78
|
+
field :post_date
|
79
|
+
|
80
|
+
# Total amount of this payment.
|
81
|
+
# @type: number
|
82
|
+
# @format: double
|
83
|
+
field :payment_amount
|
84
|
+
|
85
|
+
# Unapplied balance of this payment. If this amount is nonzero, the field `IsOpen` will be true.
|
86
|
+
# @type: number
|
87
|
+
# @format: double
|
88
|
+
field :unapplied_amount
|
89
|
+
|
90
|
+
# The ISO 4217 currency code for this payment.
|
91
|
+
#
|
92
|
+
# For a list of ISO 4217 currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies). This will be validated by the /api/v1/currencies data set
|
93
|
+
# @type: string
|
94
|
+
field :currency_code
|
95
|
+
|
96
|
+
# Reference code for the payment for the given Erp system.
|
97
|
+
# @type: string
|
98
|
+
field :reference_code
|
99
|
+
|
100
|
+
# The date on which this record was created.
|
101
|
+
# @type: string
|
102
|
+
# @format: date-time
|
103
|
+
field :created, Types::Params::DateTime
|
104
|
+
|
105
|
+
# The ID of the user who created this payment.
|
106
|
+
# @type: string
|
107
|
+
# @format: uuid
|
108
|
+
field :created_user_id
|
109
|
+
|
110
|
+
# The date on which this record was last modified.
|
111
|
+
# @type: string
|
112
|
+
# @format: date-time
|
113
|
+
field :modified, Types::Params::DateTime
|
114
|
+
|
115
|
+
# The ID of the user who last modified this payment.
|
116
|
+
# @type: string
|
117
|
+
# @format: uuid
|
118
|
+
field :modified_user_id
|
119
|
+
|
120
|
+
# The AppEnrollmentId of the application that imported this record. For accounts
|
121
|
+
# with more than one financial system connected, this field identifies the originating
|
122
|
+
# financial system that produced this record. This value is null if this record
|
123
|
+
# was not loaded from an external ERP or financial system.
|
124
|
+
# @type: string
|
125
|
+
# @format: uuid
|
126
|
+
field :app_enrollment_id
|
127
|
+
|
128
|
+
# Is the payment voided?
|
129
|
+
# @type: boolean
|
130
|
+
field :is_voided
|
131
|
+
|
132
|
+
# Is the payment in dispute?
|
133
|
+
# @type: boolean
|
134
|
+
field :in_dispute
|
135
|
+
|
136
|
+
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
137
|
+
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
138
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
139
|
+
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
140
|
+
|
141
|
+
has_many :applications, {:class_name=>"Schema::PaymentApplied", :included=>true}
|
142
|
+
has_many :notes, {:class_name=>"Lockstep::Note", :included=>true, :foreign_key=>:object_key, :polymorphic=>{:table_key=>"Payment"}}
|
143
|
+
has_many :attachments, {:class_name=>"Schema::Attachment", :included=>true}
|
144
|
+
has_many :custom_field_definitions, {:class_name=>"Schema::CustomFieldDefinition", :included=>true}
|
145
|
+
has_many :custom_field_values, {:class_name=>"Schema::CustomFieldValue", :included=>true}
|
146
|
+
|
147
|
+
end
|
@@ -0,0 +1,95 @@
|
|
1
|
+
class Schema::PaymentApplied < 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
|
+
#
|
19
|
+
# For the ID of this record in its originating financial system, see `ErpKey`.
|
20
|
+
# @type: string
|
21
|
+
# @format: uuid
|
22
|
+
field :payment_applied_id
|
23
|
+
|
24
|
+
# The Invoice this payment is applied to.
|
25
|
+
# @type: string
|
26
|
+
# @format: uuid
|
27
|
+
field :invoice_id
|
28
|
+
|
29
|
+
# The Payment applied to the invoice.
|
30
|
+
# @type: string
|
31
|
+
# @format: uuid
|
32
|
+
field :payment_id
|
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
|
+
#
|
40
|
+
# For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
|
41
|
+
# @type: string
|
42
|
+
field :erp_key
|
43
|
+
|
44
|
+
# The entry number of this payment application. This is often a journal entry number, confirmation code,
|
45
|
+
# or other identifying field for this payment application.
|
46
|
+
# @type: integer
|
47
|
+
# @format: int32
|
48
|
+
field :entry_number
|
49
|
+
|
50
|
+
# The date this payment was applied to this invoice.
|
51
|
+
# @type: string
|
52
|
+
# @format: date-time
|
53
|
+
field :apply_to_invoice_date, Types::Params::DateTime
|
54
|
+
|
55
|
+
# The total amount that was applied to this Invoice from the Payment.
|
56
|
+
# @type: number
|
57
|
+
# @format: double
|
58
|
+
field :payment_applied_amount
|
59
|
+
|
60
|
+
# Date payment applied record was created.
|
61
|
+
# @type: string
|
62
|
+
# @format: date-time
|
63
|
+
field :created, Types::Params::DateTime
|
64
|
+
|
65
|
+
# The id of the user who created this applied payment.
|
66
|
+
# @type: string
|
67
|
+
# @format: uuid
|
68
|
+
field :created_user_id
|
69
|
+
|
70
|
+
# Date payment applied record was modified.
|
71
|
+
# @type: string
|
72
|
+
# @format: date-time
|
73
|
+
field :modified, Types::Params::DateTime
|
74
|
+
|
75
|
+
# The id of the user who modified this applied payment.
|
76
|
+
# @type: string
|
77
|
+
# @format: uuid
|
78
|
+
field :modified_user_id
|
79
|
+
|
80
|
+
# The AppEnrollmentId of the application that imported this record. For accounts
|
81
|
+
# with more than one financial system connected, this field identifies the originating
|
82
|
+
# financial system that produced this record. This value is null if this record
|
83
|
+
# was not loaded from an external ERP or financial system.
|
84
|
+
# @type: string
|
85
|
+
# @format: uuid
|
86
|
+
field :app_enrollment_id
|
87
|
+
|
88
|
+
# The invoice associated with this applied payment.
|
89
|
+
field :invoice
|
90
|
+
|
91
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
92
|
+
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
93
|
+
|
94
|
+
|
95
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::PaymentAppliedFetchResult < 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::PaymentApplied", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
class Schema::PaymentAppliedSync < 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 Payment 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 Payment 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 balance reduced by applying this payment. In this field,
|
20
|
+
# identify the original primary key or unique ID of the Invoice which had its balance reduced.
|
21
|
+
#
|
22
|
+
# This information lets you track how an invoice was paid. You can identify what proportion of an invoice's
|
23
|
+
# balance was paid by which methods by joining this field to Invoices.
|
24
|
+
#
|
25
|
+
# This value should match the [Invoice ErpKey](https://developer.lockstep.io/docs/importing-invoices#erpkey)
|
26
|
+
# field on the [InvoiceSyncModel](https://developer.lockstep.io/docs/importing-invoices).
|
27
|
+
# @type: string
|
28
|
+
field :invoice_erp_key
|
29
|
+
|
30
|
+
# This field indicates which Payment was used to provide the funds for this payment application. In this
|
31
|
+
# field, identify the original primary key or unique ID of the Payment that was used for this payment
|
32
|
+
# application.
|
33
|
+
#
|
34
|
+
# This information lets you track how an invoice was paid. You can identify what proportion of an payment's
|
35
|
+
# balance was paid by which methods by joining this field to the Payment.
|
36
|
+
#
|
37
|
+
# This value should match the [Payment ErpKey](https://developer.lockstep.io/docs/importing-payments#erpkey)
|
38
|
+
# field on the [PaymentSyncModel](https://developer.lockstep.io/docs/importing-payments).
|
39
|
+
# @type: string
|
40
|
+
field :payment_erp_key
|
41
|
+
|
42
|
+
# The entry number of this payment application. This is often a journal entry number, confirmation code,
|
43
|
+
# or other identifying field for this payment application.
|
44
|
+
# @type: integer
|
45
|
+
# @format: int32
|
46
|
+
field :entry_number
|
47
|
+
|
48
|
+
# The date this payment was applied to this invoice.
|
49
|
+
# @type: string
|
50
|
+
# @format: date-time
|
51
|
+
field :apply_to_invoice_date, Types::Params::DateTime
|
52
|
+
|
53
|
+
# The total amount that was applied to this Invoice from the Payment.
|
54
|
+
# @type: number
|
55
|
+
# @format: double
|
56
|
+
field :payment_applied_amount
|
57
|
+
|
58
|
+
# If known, the date when this record was created according to the originating financial system
|
59
|
+
# in which this record is maintained. If the originating financial system does not maintain a
|
60
|
+
# created-date, leave this field null.
|
61
|
+
# @type: string
|
62
|
+
# @format: date-time
|
63
|
+
field :created, Types::Params::DateTime
|
64
|
+
|
65
|
+
# If known, the date when this record was most recently modified according to the originating
|
66
|
+
# financial system in which this record is maintained. If the originating financial system does
|
67
|
+
# not maintain a most-recently-modified-date, leave this field null.
|
68
|
+
# @type: string
|
69
|
+
# @format: date-time
|
70
|
+
field :modified, Types::Params::DateTime
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
end
|
@@ -0,0 +1,110 @@
|
|
1
|
+
class Schema::PaymentDetail < 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 Payment.
|
17
|
+
# @type: string
|
18
|
+
# @format: uuid
|
19
|
+
field :payment_id
|
20
|
+
|
21
|
+
# The ID of the customer to which this Payment belongs.
|
22
|
+
# @type: string
|
23
|
+
# @format: uuid
|
24
|
+
field :customer_id
|
25
|
+
|
26
|
+
# The name of the customer to which this Payment belongs.
|
27
|
+
# @type: string
|
28
|
+
field :customer_name
|
29
|
+
|
30
|
+
# Memo or reference text (ex. memo field on a check).
|
31
|
+
# @type: string
|
32
|
+
field :memo_text
|
33
|
+
|
34
|
+
# Reference code for the payment for the given Erp system.
|
35
|
+
# @type: string
|
36
|
+
field :reference_code
|
37
|
+
|
38
|
+
# The name of the Primary Contact for the Customer.
|
39
|
+
# @type: string
|
40
|
+
field :primary_contact
|
41
|
+
|
42
|
+
# The Email address of the Customer.
|
43
|
+
# @type: string
|
44
|
+
field :email
|
45
|
+
|
46
|
+
# Total amount of this Payment.
|
47
|
+
# @type: number
|
48
|
+
# @format: double
|
49
|
+
field :payment_amount
|
50
|
+
|
51
|
+
# Unapplied balance of this Payment.
|
52
|
+
# @type: number
|
53
|
+
# @format: double
|
54
|
+
field :unapplied_amount
|
55
|
+
|
56
|
+
# The type of payment, Payment or AP Payment.
|
57
|
+
# @type: string
|
58
|
+
field :payment_type
|
59
|
+
|
60
|
+
# The date of this Payment.
|
61
|
+
# @type: string
|
62
|
+
# @format: date
|
63
|
+
field :payment_date
|
64
|
+
|
65
|
+
# Payment post date.
|
66
|
+
# @type: string
|
67
|
+
# @format: date
|
68
|
+
field :post_date
|
69
|
+
|
70
|
+
# The phone number of the Customer's Primary Contact.
|
71
|
+
# @type: string
|
72
|
+
field :phone
|
73
|
+
|
74
|
+
# The fax number of the Customer's Primary Contact.
|
75
|
+
# @type: string
|
76
|
+
field :fax
|
77
|
+
|
78
|
+
# The first line of the address for the Customer's Primary Contact.
|
79
|
+
# @type: string
|
80
|
+
field :address1
|
81
|
+
|
82
|
+
# The second line of the address for the Customer's Primary Contact.
|
83
|
+
# @type: string
|
84
|
+
field :address2
|
85
|
+
|
86
|
+
# The third line of the address for the Customer's Primary Contact.
|
87
|
+
# @type: string
|
88
|
+
field :address3
|
89
|
+
|
90
|
+
# The city of the address for the Customer's Primary Contact.
|
91
|
+
# @type: string
|
92
|
+
field :city
|
93
|
+
|
94
|
+
# The state/region of the address for the Customer's Primary Contact.
|
95
|
+
# @type: string
|
96
|
+
field :state_region
|
97
|
+
|
98
|
+
# The postal/zip code of the address for the Customer's Primary Contact.
|
99
|
+
# @type: string
|
100
|
+
field :postal_code
|
101
|
+
|
102
|
+
# The 2 character country code of the address for the Customer's Primary Contact.
|
103
|
+
# @type: string
|
104
|
+
field :country_code
|
105
|
+
|
106
|
+
belongs_to :customer, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
107
|
+
belongs_to :connection, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
108
|
+
|
109
|
+
|
110
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::PaymentDetailFetchResult < 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::PaymentDetail", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
class Schema::PaymentDetailHeader < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
9
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
|
+
#
|
11
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
12
|
+
# @type: string
|
13
|
+
# @format: uuid
|
14
|
+
field :group_key
|
15
|
+
|
16
|
+
# The total number of Customers.
|
17
|
+
# @type: integer
|
18
|
+
# @format: int32
|
19
|
+
field :customer_count
|
20
|
+
|
21
|
+
# The total amount collected.
|
22
|
+
# @type: number
|
23
|
+
# @format: double
|
24
|
+
field :amount_collected
|
25
|
+
|
26
|
+
# The total unapplied amount.
|
27
|
+
# @type: number
|
28
|
+
# @format: double
|
29
|
+
field :unapplied_amount
|
30
|
+
|
31
|
+
# The number of paid invoices.
|
32
|
+
# @type: integer
|
33
|
+
# @format: int32
|
34
|
+
field :paid_invoice_count
|
35
|
+
|
36
|
+
# The number of open invoices.
|
37
|
+
# @type: integer
|
38
|
+
# @format: int32
|
39
|
+
field :open_invoice_count
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
end
|