lockstep_rails 0.3.36 → 0.3.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/app/concepts/lockstep/api_record.rb +4 -0
- data/app/concepts/lockstep/client.rb +16 -0
- data/app/concepts/lockstep/query.rb +7 -0
- data/app/models/lockstep/customer_summary.rb +5 -0
- data/app/models/lockstep/magic_link.rb +10 -0
- data/app/models/lockstep/vendor_summary.rb +5 -0
- data/app/platform_api/schema/ap_aging_header_info.rb +15 -12
- data/app/platform_api/schema/ap_header_info.rb +8 -8
- data/app/platform_api/schema/app_enrollment.rb +0 -3
- data/app/platform_api/schema/app_enrollment_reconnect_info.rb +30 -0
- data/app/platform_api/schema/application.rb +5 -0
- data/app/platform_api/schema/ar_aging_header_info.rb +16 -1
- data/app/platform_api/schema/ar_header_info.rb +40 -11
- data/app/platform_api/schema/at_risk_invoice_summary.rb +1 -1
- data/app/platform_api/schema/attachment.rb +34 -9
- data/app/platform_api/schema/batch_sync.rb +3 -0
- data/app/platform_api/schema/bulk_currency_conversion.rb +1 -1
- data/app/platform_api/schema/company.rb +17 -24
- data/app/platform_api/schema/company_details.rb +98 -0
- data/app/platform_api/schema/company_details_payment.rb +60 -0
- data/app/platform_api/schema/company_sync.rb +17 -2
- data/app/platform_api/schema/connector_info.rb +29 -0
- data/app/platform_api/schema/contact.rb +1 -1
- data/app/platform_api/schema/contact_sync.rb +7 -1
- data/app/platform_api/schema/credit_memo_applied.rb +6 -0
- data/app/platform_api/schema/credit_memo_invoice.rb +1 -1
- data/app/platform_api/schema/custom_field_sync.rb +4 -4
- data/app/platform_api/schema/custom_field_value.rb +12 -0
- data/app/platform_api/schema/customer_summary.rb +36 -1
- data/app/platform_api/schema/daily_payable_outstanding_report.rb +7 -4
- data/app/platform_api/schema/daily_sales_outstanding_report.rb +0 -5
- data/app/platform_api/schema/developer_account_submit.rb +8 -0
- data/app/platform_api/schema/dpo_summary.rb +46 -0
- data/app/platform_api/schema/dpo_summary_group_total.rb +38 -0
- data/app/platform_api/schema/feature_flags_request.rb +14 -0
- data/app/platform_api/schema/feature_flags_response.rb +14 -0
- data/app/platform_api/schema/financial_account.rb +1 -1
- data/app/platform_api/schema/financial_account_balance_history_sync.rb +56 -0
- data/app/platform_api/schema/financial_account_sync.rb +50 -0
- data/app/platform_api/schema/financial_report.rb +38 -0
- data/app/platform_api/schema/financial_report_cell.rb +14 -0
- data/app/platform_api/schema/financial_report_row.rb +20 -0
- data/app/platform_api/schema/financial_year_setting_sync.rb +28 -0
- data/app/platform_api/schema/group_account.rb +62 -0
- data/app/platform_api/schema/invoice.rb +8 -3
- data/app/platform_api/schema/invoice_fetch_result.rb +4 -4
- data/app/platform_api/schema/invoice_history.rb +1 -1
- data/app/platform_api/schema/invoice_line_sync.rb +3 -3
- data/app/platform_api/schema/invoice_payment_detail.rb +1 -1
- data/app/platform_api/schema/invoice_summary.rb +7 -1
- data/app/platform_api/schema/invoice_summary_invoice_summary_totals_summary_fetch_result.rb +30 -0
- data/app/platform_api/schema/invoice_summary_totals.rb +20 -0
- data/app/platform_api/schema/invoice_sync.rb +12 -7
- data/app/platform_api/schema/lead.rb +1 -0
- data/app/platform_api/schema/magic_link.rb +78 -0
- data/app/platform_api/schema/magic_link_fetch_result.rb +26 -0
- data/app/platform_api/schema/note.rb +24 -5
- data/app/platform_api/schema/payables_coming_due.rb +52 -0
- data/app/platform_api/schema/payables_coming_due_fetch_result.rb +26 -0
- data/app/platform_api/schema/payables_coming_due_header.rb +44 -0
- data/app/platform_api/schema/payables_coming_due_widget.rb +29 -0
- data/app/platform_api/schema/payables_summary_report.rb +43 -0
- data/app/platform_api/schema/payment.rb +6 -5
- data/app/platform_api/schema/payment_applied.rb +3 -0
- data/app/platform_api/schema/payment_detail.rb +17 -2
- data/app/platform_api/schema/payment_detail_header.rb +1 -1
- data/app/platform_api/schema/payment_summary.rb +32 -9
- data/app/platform_api/schema/payment_summary_payment_summary_totals_summary_fetch_result.rb +30 -0
- data/app/platform_api/schema/payment_summary_totals.rb +20 -0
- data/app/platform_api/schema/payment_sync.rb +6 -5
- data/app/platform_api/schema/public_company_profile.rb +37 -0
- data/app/platform_api/schema/public_company_profile_fetch_result.rb +26 -0
- data/app/platform_api/schema/risk_rate.rb +6 -1
- data/app/platform_api/schema/status.rb +10 -0
- data/app/platform_api/schema/summary_aging_totals.rb +19 -0
- data/app/platform_api/schema/sync_entity_result.rb +5 -0
- data/app/platform_api/schema/sync_request.rb +5 -0
- data/app/platform_api/schema/sync_submit.rb +6 -0
- data/app/platform_api/schema/transaction.rb +94 -0
- data/app/platform_api/schema/transaction_detail.rb +73 -0
- data/app/platform_api/schema/transaction_summary_total.rb +35 -0
- data/app/platform_api/schema/transaction_transaction_summary_total_summary_fetch_result.rb +30 -0
- data/app/platform_api/schema/user_account.rb +6 -2
- data/app/platform_api/schema/user_group.rb +30 -0
- data/app/platform_api/schema/user_role.rb +1 -1
- data/app/platform_api/schema/vendor_summary.rb +63 -10
- data/app/platform_api/schema/vendor_summary_fetch_result.rb +26 -0
- data/app/platform_api/schema/webhook.rb +6 -2
- data/app/platform_api/schema/webhook_history_table_storage.rb +12 -0
- data/app/platform_api/schema/webhook_rule.rb +79 -0
- data/app/platform_api/schema/webhook_rule_fetch_result.rb +26 -0
- data/app/platform_api/swagger.json +11440 -8523
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +39 -4
- data/app/models/lockstep/ap_header.rb +0 -32
- data/app/models/lockstep/ar_header.rb +0 -32
@@ -0,0 +1,30 @@
|
|
1
|
+
class Schema::TransactionTransactionSummaryTotalSummaryFetchResult < 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
|
+
# Represents transaction summary information based on the query request within the group account.
|
24
|
+
field :summary
|
25
|
+
|
26
|
+
|
27
|
+
has_many :records, {:class_name=>"Schema::Transaction", :included=>true}
|
28
|
+
has_many :aging_summary, {:class_name=>"Schema::SummaryAgingTotals", :included=>true}
|
29
|
+
|
30
|
+
end
|
@@ -114,10 +114,14 @@ end
|
|
114
114
|
# @type: string
|
115
115
|
field :postal_code
|
116
116
|
|
117
|
-
# Country for this User This will be validated by the /api/v1/countries data set
|
117
|
+
# Country for this User This will be validated by the /api/v1/definitions/countries data set
|
118
118
|
# @type: string
|
119
119
|
field :country
|
120
120
|
|
121
|
+
# Time zone for this user
|
122
|
+
# @type: string
|
123
|
+
field :time_zone
|
124
|
+
|
121
125
|
# Image URL for this User
|
122
126
|
# @type: string
|
123
127
|
field :image_url
|
@@ -134,7 +138,7 @@ end
|
|
134
138
|
# The default currency code used by this user entity. This value can be overridden
|
135
139
|
# for invoices in a different currency code.
|
136
140
|
#
|
137
|
-
# For a list of defined 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
|
141
|
+
# For a list of defined currency codes, see [Query Currencies](https://developer.lockstep.io/reference/get_api-v1-definitions-currencies) This will be validated by the /api/v1/definitions/currencies data set
|
138
142
|
# @type: string
|
139
143
|
field :default_currency_code
|
140
144
|
|
@@ -0,0 +1,30 @@
|
|
1
|
+
class Schema::UserGroup < 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 name of the Permission Level for the group.
|
17
|
+
# @type: string
|
18
|
+
field :user_role
|
19
|
+
|
20
|
+
# The name of the group
|
21
|
+
# @type: string
|
22
|
+
field :group_name
|
23
|
+
|
24
|
+
# The user's status in the group
|
25
|
+
# @type: string
|
26
|
+
field :status
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
end
|
@@ -13,7 +13,7 @@ end
|
|
13
13
|
|
14
14
|
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
15
15
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
16
|
-
#
|
16
|
+
#
|
17
17
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
18
18
|
# @type: string
|
19
19
|
# @format: uuid
|
@@ -5,20 +5,20 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
9
|
-
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
|
-
#
|
8
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
9
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
|
+
#
|
11
11
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
12
12
|
# @type: string
|
13
13
|
# @format: uuid
|
14
14
|
field :group_key
|
15
15
|
|
16
|
-
# The unique ID of this
|
16
|
+
# The unique ID of this Vendor
|
17
17
|
# @type: string
|
18
18
|
# @format: uuid
|
19
19
|
field :vendor_id
|
20
20
|
|
21
|
-
# The name of
|
21
|
+
# The name of this Vendor
|
22
22
|
# @type: string
|
23
23
|
field :vendor_name
|
24
24
|
|
@@ -37,9 +37,25 @@ end
|
|
37
37
|
field :primary_contact_id
|
38
38
|
|
39
39
|
# The amount paid to this Vendor in the last 30 days
|
40
|
-
# @type:
|
40
|
+
# @type: number
|
41
|
+
# @format: double
|
41
42
|
field :amount_paid_last30
|
42
43
|
|
44
|
+
# The amount paid to this Vendor in the last 30 days
|
45
|
+
# @type: number
|
46
|
+
# @format: double
|
47
|
+
field :amount_paid_past_thirty_days
|
48
|
+
|
49
|
+
# The outstanding advance pay balance on payments in the last 30 days
|
50
|
+
# @type: number
|
51
|
+
# @format: double
|
52
|
+
field :advance_pay_last30
|
53
|
+
|
54
|
+
# The outstanding advance pay balance on payments in the last 30 days
|
55
|
+
# @type: number
|
56
|
+
# @format: double
|
57
|
+
field :advance_pay_past_thirty_days
|
58
|
+
|
43
59
|
# The outstanding advance pay balance with this Vendor
|
44
60
|
# @type: number
|
45
61
|
# @format: double
|
@@ -50,29 +66,66 @@ end
|
|
50
66
|
# @format: double
|
51
67
|
field :amount_billed_last30
|
52
68
|
|
69
|
+
# The amount billed from this Vendor in the last 30 days
|
70
|
+
# @type: number
|
71
|
+
# @format: double
|
72
|
+
field :amount_billed_past_thirty_days
|
73
|
+
|
74
|
+
# The outstanding balance with this Vendor for bills in the last 30 days
|
75
|
+
# @type: number
|
76
|
+
# @format: double
|
77
|
+
field :amount_billed_outstanding_last30
|
78
|
+
|
79
|
+
# The outstanding balance with this Vendor for bills in the last 30 days
|
80
|
+
# @type: number
|
81
|
+
# @format: double
|
82
|
+
field :amount_billed_outstanding_past_thirty_days
|
83
|
+
|
53
84
|
# The outstanding balance with this Vendor
|
54
85
|
# @type: number
|
55
86
|
# @format: double
|
56
87
|
field :amount_billed_outstanding
|
57
88
|
|
89
|
+
# The number of bills received from this Vendor in the last 30 days
|
90
|
+
# @type: integer
|
91
|
+
# @format: int32
|
92
|
+
field :bill_count_last30
|
93
|
+
|
94
|
+
# The number of bills received from this Vendor in the last 30 days
|
95
|
+
# @type: integer
|
96
|
+
# @format: int32
|
97
|
+
field :bill_count_past_thirty_days
|
98
|
+
|
99
|
+
# The number of bills from this Vendor that were paid in full in the last 30 days
|
100
|
+
# @type: integer
|
101
|
+
# @format: int32
|
102
|
+
field :paid_bill_count_last30
|
103
|
+
|
104
|
+
# The number of bills from this Vendor that were paid in full in the last 30 days
|
105
|
+
# @type: integer
|
106
|
+
# @format: int32
|
107
|
+
field :paid_bill_count_past_thirty_days
|
108
|
+
|
58
109
|
# The number of open bills with this Vendor
|
59
110
|
# @type: integer
|
60
111
|
# @format: int32
|
61
112
|
field :open_bill_count
|
62
113
|
|
63
|
-
# The number of bills paid to this Vendor
|
114
|
+
# The number of bills paid to this Vendor
|
64
115
|
# @type: integer
|
65
116
|
# @format: int32
|
66
117
|
field :paid_bill_count
|
67
118
|
|
68
|
-
# The total count of open
|
119
|
+
# The total count of open and closed bills.
|
69
120
|
# @type: integer
|
70
121
|
# @format: int32
|
71
122
|
field :total_bill_count
|
72
123
|
|
124
|
+
# The days payabale outstanding.
|
125
|
+
# @type: number
|
126
|
+
# @format: double
|
127
|
+
field :dpo
|
73
128
|
|
74
|
-
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
75
|
-
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
76
129
|
|
77
130
|
|
78
131
|
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::VendorSummaryFetchResult < 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::VendorSummary", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -36,7 +36,7 @@ end
|
|
36
36
|
# @type: string
|
37
37
|
field :client_secret
|
38
38
|
|
39
|
-
# The format of the content to be returned in the webhook notifications.
|
39
|
+
# The format of the content to be returned in the webhook notifications. Current options are 'Full' or 'Id'.
|
40
40
|
# @type: string
|
41
41
|
field :request_content_type
|
42
42
|
|
@@ -60,7 +60,10 @@ end
|
|
60
60
|
# @format: date-time
|
61
61
|
field :expiration_date, Types::Params::DateTime
|
62
62
|
|
63
|
-
# The amount of
|
63
|
+
# The amount of consecutive failed notifications, not including the current attempt, before marking the webhook as
|
64
|
+
# errored (i.e. if the value is set to 0, the webhook will be marked errored on the first failure, if the value
|
65
|
+
# is set to 1 the webhook will be marked errored on the second failure, and so on). Use -1 to never mark the webhook
|
66
|
+
# as errored due to failures.
|
64
67
|
# @type: integer
|
65
68
|
# @format: int32
|
66
69
|
field :retry_count
|
@@ -92,5 +95,6 @@ end
|
|
92
95
|
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
93
96
|
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
94
97
|
|
98
|
+
has_many :webhook_rules, {:class_name=>"Schema::WebhookRule", :included=>true}
|
95
99
|
|
96
100
|
end
|
@@ -59,6 +59,18 @@ end
|
|
59
59
|
# @format: date-time
|
60
60
|
field :timestamp, Types::Params::DateTime
|
61
61
|
|
62
|
+
# The records sent with the webhook.
|
63
|
+
# @type: string
|
64
|
+
field :records
|
65
|
+
|
66
|
+
# The request message sent with the webhook.
|
67
|
+
# @type: string
|
68
|
+
field :request_message
|
69
|
+
|
70
|
+
# The response received back from the webhook.
|
71
|
+
# @type: string
|
72
|
+
field :response_message
|
73
|
+
|
62
74
|
|
63
75
|
|
64
76
|
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
class Schema::WebhookRule < 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 :webhook_rule_id
|
13
|
+
|
14
|
+
# The unique Webhook ID that will be used to fire the webhook for this rule.
|
15
|
+
# @type: string
|
16
|
+
# @format: uuid
|
17
|
+
field :webhook_id
|
18
|
+
|
19
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
20
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
21
|
+
#
|
22
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
23
|
+
# @type: string
|
24
|
+
# @format: uuid
|
25
|
+
field :group_key
|
26
|
+
|
27
|
+
# A Webhook rule is setup to be fired based on `TableKey` and `EventType`.
|
28
|
+
# For example, a Webhook setup for when an Invoice is Created would have a `TableKey` value of
|
29
|
+
# `Invoice` and an `EventType` value of `I` (Insert).
|
30
|
+
#
|
31
|
+
# The `TableKey` value contains the name of the table within the Lockstep Platform to which this metadata
|
32
|
+
# is connected.
|
33
|
+
#
|
34
|
+
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
35
|
+
# @type: string
|
36
|
+
field :table_key
|
37
|
+
|
38
|
+
# A Webhook rule is setup to be fired based on `TableKey` and `EventType`.
|
39
|
+
# For example, a Webhook setup for when an Invoice is Created would have a `TableKey` value of
|
40
|
+
# `Invoice` and an `EventType` value of `I` (Insert).
|
41
|
+
#
|
42
|
+
# The `EventType` value is one of the following:
|
43
|
+
# - I (Insert)
|
44
|
+
# - D (Delete)
|
45
|
+
# - U (Update)
|
46
|
+
#
|
47
|
+
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
48
|
+
# @type: string
|
49
|
+
field :event_type
|
50
|
+
|
51
|
+
# An optional Searchlight filter for this webhook rule. See [Searchlight Query Language](https://developer.lockstep.io/docs/querying-with-searchlight)
|
52
|
+
# @type: string
|
53
|
+
field :filter
|
54
|
+
|
55
|
+
# The date this webhook rule was created
|
56
|
+
# @type: string
|
57
|
+
# @format: date-time
|
58
|
+
field :created, Types::Params::DateTime
|
59
|
+
|
60
|
+
# The ID of the user who created this webhook rule
|
61
|
+
# @type: string
|
62
|
+
# @format: uuid
|
63
|
+
field :created_user_id
|
64
|
+
|
65
|
+
# The date this webhook rule was last modified
|
66
|
+
# @type: string
|
67
|
+
# @format: date-time
|
68
|
+
field :modified, Types::Params::DateTime
|
69
|
+
|
70
|
+
# The ID of the user who last modified this webhook rule
|
71
|
+
# @type: string
|
72
|
+
# @format: uuid
|
73
|
+
field :modified_user_id
|
74
|
+
|
75
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
76
|
+
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
77
|
+
|
78
|
+
|
79
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::WebhookRuleFetchResult < 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::WebhookRule", :included=>true}
|
25
|
+
|
26
|
+
end
|