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,71 @@
|
|
1
|
+
class Schema::ApiKey < 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 for the API key.
|
9
|
+
# @type: string
|
10
|
+
# @format: uuid
|
11
|
+
field :api_key_id
|
12
|
+
|
13
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
14
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
15
|
+
#
|
16
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
17
|
+
# @type: string
|
18
|
+
# @format: uuid
|
19
|
+
field :group_key
|
20
|
+
|
21
|
+
# The name of the API key.
|
22
|
+
# @type: string
|
23
|
+
field :name
|
24
|
+
|
25
|
+
# For convenience, a call to createApiKey will contain the name of the environment for this API key,
|
26
|
+
# typically SBX or PRD. This can help you distinguish between keys created on the Sandbox environment
|
27
|
+
# from those created on Production.
|
28
|
+
# @type: string
|
29
|
+
field :environment
|
30
|
+
|
31
|
+
# The API key to use for authentication. This will only be returned upon creation of the API key.
|
32
|
+
# All other times, this value will be `null`.
|
33
|
+
#
|
34
|
+
# For more information, see [API Keys](https://developer.lockstep.io/docs/api-keys).
|
35
|
+
# @type: string
|
36
|
+
field :api_key
|
37
|
+
|
38
|
+
# The first 10 characters of the API key. This information can be used to ensure that you are
|
39
|
+
# looking at the correct API Key, but cannot be used for authentication.
|
40
|
+
# @type: string
|
41
|
+
field :key_prefix
|
42
|
+
|
43
|
+
# The date the API key was created.
|
44
|
+
# @type: string
|
45
|
+
# @format: date-time
|
46
|
+
field :created, Types::Params::DateTime
|
47
|
+
|
48
|
+
# The user that created the API key.
|
49
|
+
# @type: string
|
50
|
+
# @format: uuid
|
51
|
+
field :created_user_id
|
52
|
+
|
53
|
+
# The date the API key was revoked.
|
54
|
+
# @type: string
|
55
|
+
# @format: date-time
|
56
|
+
field :revoked, Types::Params::DateTime
|
57
|
+
|
58
|
+
# The user who revoked the API key.
|
59
|
+
# @type: string
|
60
|
+
# @format: uuid
|
61
|
+
field :revoked_user_id
|
62
|
+
|
63
|
+
# The UTC datetime when the API key expires.
|
64
|
+
# @type: string
|
65
|
+
# @format: date-time
|
66
|
+
field :expires, Types::Params::DateTime
|
67
|
+
|
68
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
69
|
+
|
70
|
+
|
71
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::ApiKeyFetchResult < 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::ApiKey", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
class Schema::AppEnrollment < 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 :app_enrollment_id
|
13
|
+
|
14
|
+
# The ID number of the Application that this enrollment represents. You can fetch information
|
15
|
+
# about this Application object by specifying `App` in the "Include" parameter for your request.
|
16
|
+
# @type: string
|
17
|
+
# @format: uuid
|
18
|
+
field :app_id
|
19
|
+
|
20
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
21
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
22
|
+
#
|
23
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
24
|
+
# @type: string
|
25
|
+
# @format: uuid
|
26
|
+
field :group_key
|
27
|
+
|
28
|
+
# Determines whether the app enrollment is in use
|
29
|
+
# @type: boolean
|
30
|
+
field :is_active
|
31
|
+
|
32
|
+
# Created date
|
33
|
+
# @type: string
|
34
|
+
# @format: date-time
|
35
|
+
field :created, Types::Params::DateTime
|
36
|
+
|
37
|
+
# Created user ID
|
38
|
+
# @type: string
|
39
|
+
# @format: uuid
|
40
|
+
field :created_user_id
|
41
|
+
|
42
|
+
# Last modified date
|
43
|
+
# @type: string
|
44
|
+
# @format: date-time
|
45
|
+
field :modified, Types::Params::DateTime
|
46
|
+
|
47
|
+
# Last user ID to modify
|
48
|
+
# @type: string
|
49
|
+
# @format: uuid
|
50
|
+
field :modified_user_id
|
51
|
+
|
52
|
+
# Stores schedule information for the application enrollment
|
53
|
+
# see https://en.wikipedia.org/wiki/Cron
|
54
|
+
# @type: string
|
55
|
+
field :cron_settings
|
56
|
+
|
57
|
+
# Flag indicating if the Sync process should be ran on the specified schedule
|
58
|
+
# @type: boolean
|
59
|
+
field :sync_schedule_is_active
|
60
|
+
|
61
|
+
# The Application to which this AppEnrollment belongs. Contains general name, description,
|
62
|
+
# logo, and other metadata about this application.
|
63
|
+
#
|
64
|
+
# To retrieve this object, specify `App` in the "Include" parameter for your query.
|
65
|
+
field :app
|
66
|
+
|
67
|
+
# Data about the last sync attached to this app enrollment
|
68
|
+
#
|
69
|
+
# To retrieve this collection, specify `LastSync` in the "Include" parameter for your query.
|
70
|
+
field :last_sync
|
71
|
+
|
72
|
+
# Data about the last successful sync associated with this enrollment
|
73
|
+
field :last_successful_sync
|
74
|
+
|
75
|
+
# Use `ConnectorInfo` instead.
|
76
|
+
field :erp_info
|
77
|
+
|
78
|
+
# Optional data necessary to create an app enrollment for a supported connector.
|
79
|
+
# Only enter relevant fields for the given connector.
|
80
|
+
field :connector_info
|
81
|
+
|
82
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
83
|
+
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
84
|
+
|
85
|
+
has_many :custom_field_definitions, {:class_name=>"Schema::CustomFieldDefinition", :included=>true}
|
86
|
+
has_many :custom_field_values, {:class_name=>"Schema::CustomFieldValue", :included=>true}
|
87
|
+
|
88
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
class Schema::AppEnrollmentCustomField < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Unique id for the app enrollment
|
9
|
+
# @type: string
|
10
|
+
# @format: uuid
|
11
|
+
field :app_enrollment_id
|
12
|
+
|
13
|
+
# Id of enrolled app
|
14
|
+
# @type: string
|
15
|
+
# @format: uuid
|
16
|
+
field :app_id
|
17
|
+
|
18
|
+
# The name of the application
|
19
|
+
# @type: string
|
20
|
+
field :name
|
21
|
+
|
22
|
+
# Tag for what type of app the application is
|
23
|
+
# @type: string
|
24
|
+
field :app_type
|
25
|
+
|
26
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
27
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
28
|
+
#
|
29
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
30
|
+
# @type: string
|
31
|
+
# @format: uuid
|
32
|
+
field :group_key
|
33
|
+
|
34
|
+
# Unique Id for the custom field definition
|
35
|
+
# @type: string
|
36
|
+
# @format: uuid
|
37
|
+
field :custom_field_definition_id
|
38
|
+
|
39
|
+
# Text to display in-application for custom field
|
40
|
+
# @type: string
|
41
|
+
field :custom_field_label
|
42
|
+
|
43
|
+
# Data type of the custom field definition
|
44
|
+
# @type: string
|
45
|
+
field :data_type
|
46
|
+
|
47
|
+
# Used for display logic when multiple app enrollment custom fields exist
|
48
|
+
# @type: integer
|
49
|
+
# @format: int32
|
50
|
+
field :sort_order
|
51
|
+
|
52
|
+
# String of data for field
|
53
|
+
# @type: string
|
54
|
+
field :string_value
|
55
|
+
|
56
|
+
# Number data for field
|
57
|
+
# @type: number
|
58
|
+
# @format: double
|
59
|
+
field :numeric_value
|
60
|
+
|
61
|
+
# Value for the field
|
62
|
+
# @type: string
|
63
|
+
field :value
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::AppEnrollmentCustomFieldFetchResult < 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::AppEnrollmentCustomField", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::AppEnrollmentFetchResult < 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::AppEnrollment", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
class Schema::Application < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# A unique code identifying this application
|
9
|
+
# @type: string
|
10
|
+
# @format: uuid
|
11
|
+
field :app_id
|
12
|
+
|
13
|
+
# The name of this application
|
14
|
+
# @type: string
|
15
|
+
field :name
|
16
|
+
|
17
|
+
# Brief summary of this application shown as a subtitle
|
18
|
+
# @type: string
|
19
|
+
field :description
|
20
|
+
|
21
|
+
# Tag for what type of app this is
|
22
|
+
# @type: string
|
23
|
+
field :app_type
|
24
|
+
|
25
|
+
# The ID of the owner
|
26
|
+
# @type: string
|
27
|
+
# @format: uuid
|
28
|
+
field :owner_id
|
29
|
+
|
30
|
+
# The URL to visit for more information about this application
|
31
|
+
# @type: string
|
32
|
+
# @format: uri
|
33
|
+
field :project_url
|
34
|
+
|
35
|
+
# The URL for the icon for this application
|
36
|
+
# @type: string
|
37
|
+
# @format: uri
|
38
|
+
field :icon_url
|
39
|
+
|
40
|
+
# The description of the price for this application
|
41
|
+
# @type: string
|
42
|
+
field :price_terms
|
43
|
+
|
44
|
+
# The ID of the user who created this application
|
45
|
+
# @type: string
|
46
|
+
# @format: uuid
|
47
|
+
field :created_user_id
|
48
|
+
|
49
|
+
# The ID of the user who last modified this application
|
50
|
+
# @type: string
|
51
|
+
# @format: uuid
|
52
|
+
field :modified_user_id
|
53
|
+
|
54
|
+
# The date this application was created
|
55
|
+
# @type: string
|
56
|
+
# @format: date-time
|
57
|
+
field :created, Types::Params::DateTime
|
58
|
+
|
59
|
+
# The date this application was last modified
|
60
|
+
# @type: string
|
61
|
+
# @format: date-time
|
62
|
+
field :modified, Types::Params::DateTime
|
63
|
+
|
64
|
+
# Flag indicating if the application is active.
|
65
|
+
# @type: boolean
|
66
|
+
field :is_active
|
67
|
+
|
68
|
+
# URL to the Wiki for the Application
|
69
|
+
# @type: string
|
70
|
+
# @format: uri
|
71
|
+
field :wiki_url
|
72
|
+
|
73
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
74
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
75
|
+
#
|
76
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
77
|
+
# @type: string
|
78
|
+
# @format: uuid
|
79
|
+
field :group_key
|
80
|
+
|
81
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
82
|
+
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
83
|
+
|
84
|
+
has_many :notes, {:class_name=>"Lockstep::Note", :included=>true, :foreign_key=>:object_key, :polymorphic=>{:table_key=>"Application"}}
|
85
|
+
has_many :attachments, {:class_name=>"Schema::Attachment", :included=>true}
|
86
|
+
has_many :custom_field_definitions, {:class_name=>"Schema::CustomFieldDefinition", :included=>true}
|
87
|
+
has_many :custom_field_values, {:class_name=>"Schema::CustomFieldValue", :included=>true}
|
88
|
+
|
89
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::ApplicationFetchResult < 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::Application", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
class Schema::ArAgingHeaderInfo < 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 aging bucket this data belongs to.
|
17
|
+
# @type: string
|
18
|
+
field :report_bucket
|
19
|
+
|
20
|
+
# The total number of customers.
|
21
|
+
# @type: integer
|
22
|
+
# @format: int32
|
23
|
+
field :total_customers
|
24
|
+
|
25
|
+
# The total number of invoices outstanding.
|
26
|
+
# @type: integer
|
27
|
+
# @format: int32
|
28
|
+
field :total_invoices_outstanding
|
29
|
+
|
30
|
+
# The total amount outstanding.
|
31
|
+
# @type: number
|
32
|
+
# @format: double
|
33
|
+
field :total_outstanding_amount
|
34
|
+
|
35
|
+
# The total amount for AR.
|
36
|
+
# @type: number
|
37
|
+
# @format: double
|
38
|
+
field :total_ar_amount
|
39
|
+
|
40
|
+
# Portion of Total AR this data represents.
|
41
|
+
# @type: number
|
42
|
+
# @format: double
|
43
|
+
field :percentage_of_total_ar
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,118 @@
|
|
1
|
+
class Schema::ArHeaderInfo < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
9
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
|
+
#
|
11
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
12
|
+
# @type: string
|
13
|
+
# @format: uuid
|
14
|
+
field :group_key
|
15
|
+
|
16
|
+
# The date of the report
|
17
|
+
# @type: string
|
18
|
+
# @format: date
|
19
|
+
field :report_period
|
20
|
+
|
21
|
+
# The total number of customers.
|
22
|
+
# @type: integer
|
23
|
+
# @format: int32
|
24
|
+
field :total_customers
|
25
|
+
|
26
|
+
# The total number of invoices.
|
27
|
+
# @type: integer
|
28
|
+
# @format: int32
|
29
|
+
field :total_invoices
|
30
|
+
|
31
|
+
# The total amount invoiced.
|
32
|
+
# @type: number
|
33
|
+
# @format: double
|
34
|
+
field :total_invoiced_amount
|
35
|
+
|
36
|
+
# The total number of unapplied payments.
|
37
|
+
# @type: number
|
38
|
+
# @format: double
|
39
|
+
field :total_unapplied_payments
|
40
|
+
|
41
|
+
# The total amount of collected payments.
|
42
|
+
# @type: number
|
43
|
+
# @format: double
|
44
|
+
field :total_collected
|
45
|
+
|
46
|
+
# The total accounts receivable amount.
|
47
|
+
# @type: number
|
48
|
+
# @format: double
|
49
|
+
field :total_ar_amount
|
50
|
+
|
51
|
+
# The number of paid invoices.
|
52
|
+
# @type: integer
|
53
|
+
# @format: int32
|
54
|
+
field :total_invoices_paid
|
55
|
+
|
56
|
+
# The number of past due invoices.
|
57
|
+
# @type: integer
|
58
|
+
# @format: int32
|
59
|
+
field :total_invoices_past_due
|
60
|
+
|
61
|
+
# The number of past due invoices for the last 90 days.
|
62
|
+
# @type: integer
|
63
|
+
# @format: int32
|
64
|
+
field :total_invoices90_days_past_due
|
65
|
+
|
66
|
+
# The total amount past due.
|
67
|
+
# @type: number
|
68
|
+
# @format: double
|
69
|
+
field :total_past_due_amount
|
70
|
+
|
71
|
+
# The total past due for the past 90 days.
|
72
|
+
# @type: number
|
73
|
+
# @format: double
|
74
|
+
field :total_past_due_amount90_days
|
75
|
+
|
76
|
+
# Portion of Total AR that is Past due.
|
77
|
+
# @type: number
|
78
|
+
# @format: double
|
79
|
+
field :percentage_of_total_ar
|
80
|
+
|
81
|
+
# Daily sales outstanding.
|
82
|
+
# @type: number
|
83
|
+
# @format: double
|
84
|
+
field :dso
|
85
|
+
|
86
|
+
# The total amount invoiced, due this year.
|
87
|
+
# @type: number
|
88
|
+
# @format: double
|
89
|
+
field :total_invoice_amount_current_year
|
90
|
+
|
91
|
+
# The total amount invoiced, due last year.
|
92
|
+
# @type: number
|
93
|
+
# @format: double
|
94
|
+
field :total_invoice_amount_previous_year
|
95
|
+
|
96
|
+
# The total of all payments received this year.
|
97
|
+
# @type: number
|
98
|
+
# @format: double
|
99
|
+
field :total_payment_amount_current_year
|
100
|
+
|
101
|
+
# The total amount of payments received in the last 30 days
|
102
|
+
# @type: integer
|
103
|
+
# @format: int32
|
104
|
+
field :total_collected_past_thirty_days
|
105
|
+
|
106
|
+
# The total amount of Invoices paid in the last 30 days
|
107
|
+
# @type: integer
|
108
|
+
# @format: int32
|
109
|
+
field :total_invoices_paid_past_thirty_days
|
110
|
+
|
111
|
+
# Portion of Total AR that is 90+ days Past due.
|
112
|
+
# @type: number
|
113
|
+
# @format: double
|
114
|
+
field :percentage_of_total_ar90_days_past_due
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
class Schema::Assembly < 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: string
|
10
|
+
field :code_base
|
11
|
+
|
12
|
+
|
13
|
+
field :entry_point
|
14
|
+
|
15
|
+
|
16
|
+
# @type: string
|
17
|
+
field :full_name
|
18
|
+
|
19
|
+
|
20
|
+
# @type: string
|
21
|
+
field :image_runtime_version
|
22
|
+
|
23
|
+
|
24
|
+
# @type: boolean
|
25
|
+
field :is_dynamic
|
26
|
+
|
27
|
+
|
28
|
+
# @type: string
|
29
|
+
field :location
|
30
|
+
|
31
|
+
|
32
|
+
# @type: boolean
|
33
|
+
field :reflection_only
|
34
|
+
|
35
|
+
|
36
|
+
# @type: boolean
|
37
|
+
field :is_collectible
|
38
|
+
|
39
|
+
|
40
|
+
# @type: boolean
|
41
|
+
field :is_fully_trusted
|
42
|
+
|
43
|
+
|
44
|
+
# @type: string
|
45
|
+
field :escaped_code_base
|
46
|
+
|
47
|
+
|
48
|
+
field :manifest_module
|
49
|
+
|
50
|
+
|
51
|
+
# @type: boolean
|
52
|
+
field :global_assembly_cache
|
53
|
+
|
54
|
+
|
55
|
+
# @type: integer
|
56
|
+
# @format: int64
|
57
|
+
field :host_context
|
58
|
+
|
59
|
+
|
60
|
+
field :security_rule_set
|
61
|
+
|
62
|
+
|
63
|
+
has_many :defined_types, {:class_name=>"Schema::TypeInfo", :included=>true}
|
64
|
+
has_many :exported_types, {:class_name=>"Schema::Type", :included=>true}
|
65
|
+
has_many :custom_attributes, {:class_name=>"Schema::CustomAttributeData", :included=>true}
|
66
|
+
has_many :modules, {:class_name=>"Schema::Module", :included=>true}
|
67
|
+
|
68
|
+
end
|