lockstep_rails 0.3.22 → 0.3.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/app/concepts/lockstep/api_record.rb +198 -168
- data/app/concepts/lockstep/exceptions.rb +4 -3
- data/app/concepts/lockstep/query.rb +6 -2
- data/app/models/lockstep/app_enrollment.rb +5 -0
- data/app/models/lockstep/report_ap_aging_header.rb +7 -0
- data/app/models/lockstep/report_ar_aging_header.rb +7 -0
- data/app/models/lockstep/report_cashflow.rb +7 -0
- data/app/models/lockstep/report_daily_payable_outstanding.rb +6 -0
- data/app/models/lockstep/report_daily_sales_outstanding.rb +6 -0
- data/app/models/lockstep/report_payable_coming_due.rb +6 -0
- data/app/models/lockstep/report_payable_summary.rb +7 -0
- data/app/models/lockstep/report_risk_rate.rb +7 -0
- data/app/models/lockstep/vendor_summary.rb +6 -0
- data/app/models/lockstep/webhook.rb +5 -0
- data/app/platform_api/schema/ap_aging_header_info.rb +59 -0
- data/app/platform_api/schema/daily_payable_outstanding_report.rb +22 -0
- data/app/platform_api/schema/invoice.rb +54 -53
- data/app/platform_api/schema/payable_coming_due_report.rb +25 -0
- data/app/platform_api/schema/payable_summary_report.rb +40 -0
- data/app/platform_api/schema/vendor_summary.rb +78 -0
- data/app/platform_api/schema/webhook.rb +11 -11
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +18 -2
@@ -225,11 +225,15 @@ class Lockstep::Query
|
|
225
225
|
# TODO handle non 200 response code. Throwing an exception for now
|
226
226
|
raise StandardError.new("#{resp.code} error while fetching: #{resp.body}") unless %w(201 200).include?(resp.code.to_s)
|
227
227
|
|
228
|
+
parsed_response = JSON.parse(resp.body)
|
229
|
+
|
228
230
|
if criteria[:count]
|
229
|
-
|
231
|
+
raise StandardError.new("Count is not supported for #{@klass}") if parsed_response.is_a?(Array)
|
232
|
+
|
233
|
+
results = parsed_response["totalCount"]
|
230
234
|
return results.to_i
|
231
235
|
else
|
232
|
-
results =
|
236
|
+
results = parsed_response.is_a?(Array) ? parsed_response : parsed_response["records"]
|
233
237
|
results = results[0..(criteria[:limit] - 1)] if criteria[:limit]
|
234
238
|
get_relation_objects results.map { |r|
|
235
239
|
# Convert camelcase to snake-case
|
@@ -0,0 +1,59 @@
|
|
1
|
+
class Schema::ApAgingHeaderInfo < 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_vendors
|
24
|
+
|
25
|
+
# The total number of invoices outstanding.
|
26
|
+
# @type: integer
|
27
|
+
# @format: int32
|
28
|
+
field :total_bills_outstanding
|
29
|
+
|
30
|
+
# The total amount outstanding.
|
31
|
+
# @type: number
|
32
|
+
# @format: double
|
33
|
+
field :total_bills_outstanding_amount
|
34
|
+
|
35
|
+
# The total credit memo amount outstanding.
|
36
|
+
# @type: number
|
37
|
+
# @format: double
|
38
|
+
field :total_credit_memo_outstanding_amount
|
39
|
+
|
40
|
+
# The total advance payment amount.
|
41
|
+
# @type: number
|
42
|
+
# @format: double
|
43
|
+
field :total_advance_payment_amount
|
44
|
+
|
45
|
+
# The total outstanding amount
|
46
|
+
# @type: number
|
47
|
+
# @format: double
|
48
|
+
field :total_outstanding_amount
|
49
|
+
|
50
|
+
# The total amount for AR.
|
51
|
+
# @type: number
|
52
|
+
# @format: double
|
53
|
+
field :total_ap_amount
|
54
|
+
|
55
|
+
# Portion of Total AR this data represents.
|
56
|
+
# @type: number
|
57
|
+
# @format: double
|
58
|
+
field :percentage_of_total_ap
|
59
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
class Schema::DailyPayableOutstandingReport < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Timeframe (month) the daily sales outstanding values are associated with
|
9
|
+
# @type: string
|
10
|
+
# @format: date-time
|
11
|
+
field :timeframe, Types::Params::DateTime
|
12
|
+
|
13
|
+
# Number of invoices the average daily sales outstanding is calculated on
|
14
|
+
# @type: integer
|
15
|
+
# @format: int32
|
16
|
+
field :invoice_count
|
17
|
+
|
18
|
+
# Time (in days) between an invoice was completed paid off and when the invoice was issued
|
19
|
+
# @type: number
|
20
|
+
# @format: double
|
21
|
+
field :daily_payable_sales_outstanding
|
22
|
+
end
|
@@ -1,21 +1,21 @@
|
|
1
1
|
class Schema::Invoice < Lockstep::ApiRecord
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
#
|
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
11
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
12
12
|
# @type: string
|
13
13
|
# @format: uuid
|
14
14
|
field :group_key
|
15
15
|
|
16
|
-
# The unique ID of this record, automatically assigned by Lockstep when this record is
|
17
|
-
# added to the Lockstep platform.
|
18
|
-
#
|
16
|
+
# The unique ID of this record, automatically assigned by Lockstep when this record is
|
17
|
+
# added to the Lockstep platform.
|
18
|
+
#
|
19
19
|
# For the ID of this record in its originating financial system, see `ErpKey`.
|
20
20
|
# @type: string
|
21
21
|
# @format: uuid
|
@@ -31,23 +31,23 @@ class Schema::Invoice < Lockstep::ApiRecord
|
|
31
31
|
# @format: uuid
|
32
32
|
field :customer_id
|
33
33
|
|
34
|
-
# The unique ID of this record as it was known in its originating financial system.
|
35
|
-
#
|
36
|
-
# If this company record was imported from a financial system, it will have the value `ErpKey`
|
37
|
-
# set to the original primary key number of the record as it was known in the originating financial
|
38
|
-
# system. If this record was not imported, this value will be `null`.
|
39
|
-
#
|
34
|
+
# The unique ID of this record as it was known in its originating financial system.
|
35
|
+
#
|
36
|
+
# If this company record was imported from a financial system, it will have the value `ErpKey`
|
37
|
+
# set to the original primary key number of the record as it was known in the originating financial
|
38
|
+
# system. If this record was not imported, this value will be `null`.
|
39
|
+
#
|
40
40
|
# For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
|
41
41
|
# @type: string
|
42
42
|
field :erp_key
|
43
43
|
|
44
|
-
# The "Purchase Order Code" is a code that is sometimes used by companies to refer to the original PO
|
45
|
-
# that was sent that caused this invoice to be written. If a customer sends a purchase order to a vendor,
|
44
|
+
# The "Purchase Order Code" is a code that is sometimes used by companies to refer to the original PO
|
45
|
+
# that was sent that caused this invoice to be written. If a customer sends a purchase order to a vendor,
|
46
46
|
# the vendor can then create an invoice and refer back to the originating purchase order using this field.
|
47
47
|
# @type: string
|
48
48
|
field :purchase_order_code
|
49
49
|
|
50
|
-
# An additional reference code that is sometimes used to identify this invoice.
|
50
|
+
# An additional reference code that is sometimes used to identify this invoice.
|
51
51
|
# The meaning of this field is specific to the ERP or accounting system used by the user.
|
52
52
|
# @type: string
|
53
53
|
field :reference_code
|
@@ -60,24 +60,24 @@ class Schema::Invoice < Lockstep::ApiRecord
|
|
60
60
|
# @type: string
|
61
61
|
field :salesperson_name
|
62
62
|
|
63
|
-
# A code identifying the type of this invoice.
|
64
|
-
#
|
65
|
-
# Recognized Invoice types are:
|
66
|
-
# * `Invoice` - Represents an invoice sent by Company to the Customer
|
67
|
-
# * `AP Invoice` - Represents an invoice sent by Customer to the Company
|
63
|
+
# A code identifying the type of this invoice.
|
64
|
+
#
|
65
|
+
# Recognized Invoice types are:
|
66
|
+
# * `Invoice` - Represents an invoice sent by Company to the Customer
|
67
|
+
# * `AP Invoice` - Represents an invoice sent by Customer to the Company
|
68
68
|
# * `Credit Memo` - Represents a credit memo generated by Customer given to Company
|
69
69
|
# @type: string
|
70
70
|
field :invoice_type_code
|
71
71
|
|
72
|
-
# A code identifying the status of this invoice.
|
73
|
-
#
|
74
|
-
# Recognized Invoice status codes are:
|
75
|
-
# * `Open` - Represents an invoice that is considered open and needs more work to complete
|
72
|
+
# A code identifying the status of this invoice.
|
73
|
+
#
|
74
|
+
# Recognized Invoice status codes are:
|
75
|
+
# * `Open` - Represents an invoice that is considered open and needs more work to complete
|
76
76
|
# * `Closed` - Represents an invoice that is considered closed and resolved
|
77
77
|
# @type: string
|
78
78
|
field :invoice_status_code
|
79
79
|
|
80
|
-
# A code identifying the terms given to the purchaser. This field is imported directly from the originating
|
80
|
+
# A code identifying the terms given to the purchaser. This field is imported directly from the originating
|
81
81
|
# financial system and does not follow a specified format.
|
82
82
|
# @type: string
|
83
83
|
field :terms_code
|
@@ -125,7 +125,7 @@ class Schema::Invoice < Lockstep::ApiRecord
|
|
125
125
|
# @format: date
|
126
126
|
field :posted_date
|
127
127
|
|
128
|
-
# The date when the invoice was closed and finalized after completion of all payments and delivery of all products and
|
128
|
+
# The date when the invoice was closed and finalized after completion of all payments and delivery of all products and
|
129
129
|
# services.
|
130
130
|
# @type: string
|
131
131
|
# @format: date
|
@@ -176,9 +176,9 @@ class Schema::Invoice < Lockstep::ApiRecord
|
|
176
176
|
# @format: uuid
|
177
177
|
field :modified_user_id
|
178
178
|
|
179
|
-
# The AppEnrollmentId of the application that imported this record. For accounts
|
180
|
-
# with more than one financial system connected, this field identifies the originating
|
181
|
-
# financial system that produced this record. This value is null if this record
|
179
|
+
# The AppEnrollmentId of the application that imported this record. For accounts
|
180
|
+
# with more than one financial system connected, this field identifies the originating
|
181
|
+
# financial system that produced this record. This value is null if this record
|
182
182
|
# was not loaded from an external ERP or financial system.
|
183
183
|
# @type: string
|
184
184
|
# @format: uuid
|
@@ -196,31 +196,32 @@ class Schema::Invoice < Lockstep::ApiRecord
|
|
196
196
|
# @type: boolean
|
197
197
|
field :exclude_from_aging
|
198
198
|
|
199
|
-
# The Company associated to this invoice.
|
199
|
+
# The Company associated to this invoice.
|
200
200
|
# To retrieve this item, specify `Company` in the "Include" parameter for your query.
|
201
201
|
field :company
|
202
202
|
|
203
|
-
# The Customer associated to the invoice customer
|
203
|
+
# The Customer associated to the invoice customer
|
204
204
|
# To retrieve this item, specify `Customer` in the "Include" parameter for your query.
|
205
205
|
field :customer
|
206
206
|
|
207
|
-
# The Contact associated to the invoice customer
|
207
|
+
# The Contact associated to the invoice customer
|
208
208
|
# To retrieve this item, specify `Customer` in the "Include" parameter for your query.
|
209
209
|
field :customer_primary_contact
|
210
210
|
|
211
|
-
belongs_to :company, {
|
212
|
-
belongs_to :account, {
|
213
|
-
belongs_to :customer, {
|
214
|
-
belongs_to :connection, {
|
215
|
-
belongs_to :created_user, {
|
216
|
-
belongs_to :modified_user, {
|
217
|
-
|
218
|
-
has_many :addresses, {
|
219
|
-
has_many :lines, {
|
220
|
-
has_many :payments, {
|
221
|
-
has_many :notes, {
|
222
|
-
has_many :attachments, {
|
223
|
-
has_many :credit_memos, {
|
224
|
-
has_many :custom_field_values, {
|
225
|
-
has_many :custom_field_definitions, {
|
226
|
-
|
211
|
+
belongs_to :company, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
212
|
+
belongs_to :account, {:class_name=>"Lockstep::Account", :primary_key=>:company_id, :foreign_key=>"company_id"}
|
213
|
+
belongs_to :customer, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
214
|
+
belongs_to :connection, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
215
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
216
|
+
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
217
|
+
|
218
|
+
has_many :addresses, {:class_name=>"Schema::InvoiceAddress", :included=>true}
|
219
|
+
has_many :lines, {:class_name=>"Schema::InvoiceLine", :included=>true}
|
220
|
+
has_many :payments, {:class_name=>"Schema::InvoicePaymentDetail", :included=>true}
|
221
|
+
has_many :notes, {:class_name=>"Lockstep::Note", :included=>true, :foreign_key=>:object_key, :polymorphic=>{:table_key=>"Invoice"}}
|
222
|
+
has_many :attachments, {:class_name=>"Schema::Attachment", :included=>true}
|
223
|
+
has_many :credit_memos, {:class_name=>"Schema::CreditMemoInvoice", :included=>true}
|
224
|
+
has_many :custom_field_values, {:class_name=>"Schema::CustomFieldValue", :included=>true}
|
225
|
+
has_many :custom_field_definitions, {:class_name=>"Schema::CustomFieldDefinition", :included=>true}
|
226
|
+
|
227
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
class Schema::PayableComingDueReport < 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
|
+
# This model represents all the payables that are either already due or due within this date.
|
17
|
+
# @type: string
|
18
|
+
# @format: date-time
|
19
|
+
field :date, Types::Params::DateTime
|
20
|
+
|
21
|
+
# Total amount due for this time period
|
22
|
+
# @type: number
|
23
|
+
# @format: double
|
24
|
+
field :amountDue
|
25
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
class Schema::PayableSummaryReport < 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
|
+
# Timeframe in days the cashflow report is generated on
|
17
|
+
# @type: integer
|
18
|
+
# @format: int32
|
19
|
+
field :timeframe
|
20
|
+
|
21
|
+
# Number of payments made based in the timeframe
|
22
|
+
# @type: number
|
23
|
+
# @format: double
|
24
|
+
field :total_payments_amount
|
25
|
+
|
26
|
+
# Number of payments collected based in the timeframe
|
27
|
+
# @type: integer
|
28
|
+
# @format: int32
|
29
|
+
field :total_payments_count
|
30
|
+
|
31
|
+
# Amount of bills received based in the timeframe
|
32
|
+
# @type: number
|
33
|
+
# @format: double
|
34
|
+
field :total_amount_billed
|
35
|
+
|
36
|
+
# Number of invoices billed in the timeframe
|
37
|
+
# @type: integer
|
38
|
+
# @format: int32
|
39
|
+
field :total_bills_count
|
40
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
class Schema::VendorSummary < 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 company.
|
17
|
+
# @type: string
|
18
|
+
# @format: uuid
|
19
|
+
field :vendor_id
|
20
|
+
|
21
|
+
# The name of the company.
|
22
|
+
# @type: string
|
23
|
+
field :vendor_name
|
24
|
+
|
25
|
+
# The app enrollment ID this Vendor is associated with
|
26
|
+
# @type: string
|
27
|
+
# @format: uuid
|
28
|
+
field :app_enrollment_id
|
29
|
+
|
30
|
+
# The name of this Vendor's primary contact
|
31
|
+
# @type: string
|
32
|
+
field :primary_contact_name
|
33
|
+
|
34
|
+
# This Vendor's primary contact id
|
35
|
+
# @type: string
|
36
|
+
# @format: uuid
|
37
|
+
field :primary_contact_id
|
38
|
+
|
39
|
+
# The amount paid to this Vendor in the last 30 days
|
40
|
+
# @type: double
|
41
|
+
field :amount_paid_last30
|
42
|
+
|
43
|
+
# The outstanding advance pay balance with this Vendor
|
44
|
+
# @type: number
|
45
|
+
# @format: double
|
46
|
+
field :advance_pay_outstanding
|
47
|
+
|
48
|
+
# The amount billed from this Vendor in the last 30 days
|
49
|
+
# @type: number
|
50
|
+
# @format: double
|
51
|
+
field :amount_billed_last30
|
52
|
+
|
53
|
+
# The outstanding balance with this Vendor
|
54
|
+
# @type: number
|
55
|
+
# @format: double
|
56
|
+
field :amount_billed_outstanding
|
57
|
+
|
58
|
+
# The number of open bills with this Vendor
|
59
|
+
# @type: integer
|
60
|
+
# @format: int32
|
61
|
+
field :open_bill_count
|
62
|
+
|
63
|
+
# The number of bills paid to this Vendor in the last 30 days
|
64
|
+
# @type: integer
|
65
|
+
# @format: int32
|
66
|
+
field :paid_bill_count
|
67
|
+
|
68
|
+
# The total count of open bills and those paid in the last 30 days
|
69
|
+
# @type: integer
|
70
|
+
# @format: int32
|
71
|
+
field :total_bill_count
|
72
|
+
|
73
|
+
|
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
|
+
|
77
|
+
|
78
|
+
end
|
@@ -5,15 +5,15 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
-
# The unique ID of this record, automatically assigned by Lockstep when this record is
|
8
|
+
# The unique ID of this record, automatically assigned by Lockstep when this record is
|
9
9
|
# added to the Lockstep platform.
|
10
10
|
# @type: string
|
11
11
|
# @format: uuid
|
12
12
|
field :webhook_id
|
13
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
|
-
#
|
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
17
|
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
18
18
|
# @type: string
|
19
19
|
# @format: uuid
|
@@ -31,7 +31,7 @@ end
|
|
31
31
|
# @type: string
|
32
32
|
field :status_message
|
33
33
|
|
34
|
-
# An secret set during webhook creation that can be used to verify that the notification
|
34
|
+
# An secret set during webhook creation that can be used to verify that the notification
|
35
35
|
# is coming from the Lockstep API.
|
36
36
|
# @type: string
|
37
37
|
field :client_secret
|
@@ -44,17 +44,17 @@ end
|
|
44
44
|
# @type: string
|
45
45
|
field :callback_http_method
|
46
46
|
|
47
|
-
# The URL where the notification will be sent via the method set in CallbackHttpMethod.
|
48
|
-
#
|
49
|
-
# When creating a webhook, the Lockstep API will make a call to this url via the method
|
50
|
-
# set in the CallbackHttpMethod property with a query parameter of "code" set to an encoded
|
51
|
-
# string. To successfully create the webhook, the call must return a successful status code
|
47
|
+
# The URL where the notification will be sent via the method set in CallbackHttpMethod.
|
48
|
+
#
|
49
|
+
# When creating a webhook, the Lockstep API will make a call to this url via the method
|
50
|
+
# set in the CallbackHttpMethod property with a query parameter of "code" set to an encoded
|
51
|
+
# string. To successfully create the webhook, the call must return a successful status code
|
52
52
|
# with the query parameter's value as the plain text content.
|
53
53
|
# @type: string
|
54
54
|
# @format: uri
|
55
55
|
field :callback_url
|
56
56
|
|
57
|
-
# The expiration date for the given webhook subscription. Once the expiration date passes,
|
57
|
+
# The expiration date for the given webhook subscription. Once the expiration date passes,
|
58
58
|
# notifications will no longer be sent to the callback url.
|
59
59
|
# @type: string
|
60
60
|
# @format: date-time
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lockstep_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vivek AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -46,6 +46,7 @@ files:
|
|
46
46
|
- app/concepts/lockstep/relation_array.rb
|
47
47
|
- app/helpers/types.rb
|
48
48
|
- app/models/lockstep/account.rb
|
49
|
+
- app/models/lockstep/app_enrollment.rb
|
49
50
|
- app/models/lockstep/connection.rb
|
50
51
|
- app/models/lockstep/contact.rb
|
51
52
|
- app/models/lockstep/customer_summary.rb
|
@@ -55,7 +56,17 @@ files:
|
|
55
56
|
- app/models/lockstep/note.rb
|
56
57
|
- app/models/lockstep/payment.rb
|
57
58
|
- app/models/lockstep/payment_summary.rb
|
59
|
+
- app/models/lockstep/report_ap_aging_header.rb
|
60
|
+
- app/models/lockstep/report_ar_aging_header.rb
|
61
|
+
- app/models/lockstep/report_cashflow.rb
|
62
|
+
- app/models/lockstep/report_daily_payable_outstanding.rb
|
63
|
+
- app/models/lockstep/report_daily_sales_outstanding.rb
|
64
|
+
- app/models/lockstep/report_payable_coming_due.rb
|
65
|
+
- app/models/lockstep/report_payable_summary.rb
|
66
|
+
- app/models/lockstep/report_risk_rate.rb
|
58
67
|
- app/models/lockstep/user.rb
|
68
|
+
- app/models/lockstep/vendor_summary.rb
|
69
|
+
- app/models/lockstep/webhook.rb
|
59
70
|
- app/platform_api/model_template.rb.erb
|
60
71
|
- app/platform_api/schema/action_result.rb
|
61
72
|
- app/platform_api/schema/activity.rb
|
@@ -63,6 +74,7 @@ files:
|
|
63
74
|
- app/platform_api/schema/activity_stream_item.rb
|
64
75
|
- app/platform_api/schema/activity_x_ref.rb
|
65
76
|
- app/platform_api/schema/aging.rb
|
77
|
+
- app/platform_api/schema/ap_aging_header_info.rb
|
66
78
|
- app/platform_api/schema/api_key.rb
|
67
79
|
- app/platform_api/schema/api_key_fetch_result.rb
|
68
80
|
- app/platform_api/schema/app_enrollment.rb
|
@@ -113,6 +125,7 @@ files:
|
|
113
125
|
- app/platform_api/schema/customer_details_payment.rb
|
114
126
|
- app/platform_api/schema/customer_summary.rb
|
115
127
|
- app/platform_api/schema/customer_summary_fetch_result.rb
|
128
|
+
- app/platform_api/schema/daily_payable_outstanding_report.rb
|
116
129
|
- app/platform_api/schema/daily_sales_outstanding_report.rb
|
117
130
|
- app/platform_api/schema/developer_account_submit.rb
|
118
131
|
- app/platform_api/schema/email.rb
|
@@ -153,6 +166,8 @@ files:
|
|
153
166
|
- app/platform_api/schema/note.rb
|
154
167
|
- app/platform_api/schema/note_fetch_result.rb
|
155
168
|
- app/platform_api/schema/parameter_info.rb
|
169
|
+
- app/platform_api/schema/payable_coming_due_report.rb
|
170
|
+
- app/platform_api/schema/payable_summary_report.rb
|
156
171
|
- app/platform_api/schema/payment.rb
|
157
172
|
- app/platform_api/schema/payment_applied.rb
|
158
173
|
- app/platform_api/schema/payment_applied_fetch_result.rb
|
@@ -192,6 +207,7 @@ files:
|
|
192
207
|
- app/platform_api/schema/user_account_fetch_result.rb
|
193
208
|
- app/platform_api/schema/user_role.rb
|
194
209
|
- app/platform_api/schema/user_role_fetch_result.rb
|
210
|
+
- app/platform_api/schema/vendor_summary.rb
|
195
211
|
- app/platform_api/schema/webhook.rb
|
196
212
|
- app/platform_api/schema/webhook_fetch_result.rb
|
197
213
|
- app/platform_api/schema/webhook_history_table_storage.rb
|