lockstep_rails 0.3.37 → 0.3.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/platform_api/schema/ap_aging_header_info.rb +15 -12
- data/app/platform_api/schema/ap_header_info.rb +148 -0
- 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 +41 -7
- 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 +20 -30
- 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 -6
- 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 +41 -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_fetch_result.rb +26 -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_address_fetch_result.rb +26 -0
- 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_fetch_result.rb +26 -0
- 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 +22 -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 +42 -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 +78 -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_data_response.rb +19 -0
- 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 +68 -10
- data/app/platform_api/schema/vendor_summary_fetch_result.rb +26 -0
- data/app/platform_api/schema/view_box_settings.rb +30 -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 +14477 -11057
- data/lib/lockstep_rails/version.rb +1 -1
- metadata +44 -2
@@ -0,0 +1,94 @@
|
|
1
|
+
class Schema::Transaction < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Group account transaction is associated with.
|
9
|
+
# @type: string
|
10
|
+
# @format: uuid
|
11
|
+
field :group_key
|
12
|
+
|
13
|
+
# An additional reference number that is sometimes used to identify a transaction.
|
14
|
+
# The meaning of this field is specific to the ERP or accounting system used by the user.
|
15
|
+
# @type: string
|
16
|
+
field :reference_number
|
17
|
+
|
18
|
+
# The unique ID of the transaction record.
|
19
|
+
# @type: string
|
20
|
+
# @format: uuid
|
21
|
+
field :transaction_id
|
22
|
+
|
23
|
+
# The status of the transaction record.
|
24
|
+
#
|
25
|
+
# Recognized Invoice status codes are:
|
26
|
+
# * `Open` - Represents an invoice that is considered open and needs more work to complete
|
27
|
+
# * `Closed` - Represents an invoice that is considered closed and resolved
|
28
|
+
#
|
29
|
+
# Recognized Payment status codes are:
|
30
|
+
# * `Open` - Represents an payment that includes some unassigned amount that has not yet been applied to an invoice
|
31
|
+
# * `Closed` - Represents an payment where `UnappliedAmount` will be zero
|
32
|
+
# @type: string
|
33
|
+
field :transaction_status
|
34
|
+
|
35
|
+
# The type of the transaction record.
|
36
|
+
#
|
37
|
+
# Recognized Invoice types are:
|
38
|
+
# * `AR Invoice` - Represents an invoice sent by Company to the Customer
|
39
|
+
# * `AP Invoice` - Represents an invoice sent by Vendor to the Company
|
40
|
+
# * `AR Credit Memo` - Represents a credit memo generated by Company given to Customer
|
41
|
+
# * `AP Credit Memo` - Represents a credit memo generated by Vendor given to Company
|
42
|
+
#
|
43
|
+
# Recognized PaymentType values are:
|
44
|
+
# * `AR Payment` - A payment made by a Customer to the Company
|
45
|
+
# * `AP Payment` - A payment made by the Company to a Vendor
|
46
|
+
# @type: string
|
47
|
+
field :transaction_type
|
48
|
+
|
49
|
+
# Additional type categorization of the transaction.
|
50
|
+
# @type: string
|
51
|
+
field :transaction_sub_type
|
52
|
+
|
53
|
+
# The date when a transaction record was reported.
|
54
|
+
# @type: string
|
55
|
+
# @format: date-time
|
56
|
+
field :transaction_date, Types::Params::DateTime
|
57
|
+
|
58
|
+
# The date when a transaction record is due for payment or completion.
|
59
|
+
# @type: string
|
60
|
+
# @format: date-time
|
61
|
+
field :due_date, Types::Params::DateTime
|
62
|
+
|
63
|
+
# The amount of days past the due date the transaction is left un-closed.
|
64
|
+
# @type: integer
|
65
|
+
# @format: int32
|
66
|
+
field :days_past_due
|
67
|
+
|
68
|
+
# The total value of this transaction, inclusive or all taxes and line items.
|
69
|
+
# @type: number
|
70
|
+
# @format: double
|
71
|
+
field :transaction_amount
|
72
|
+
|
73
|
+
# The remaining balance of this transaction.
|
74
|
+
# @type: number
|
75
|
+
# @format: double
|
76
|
+
field :outstanding_amount
|
77
|
+
|
78
|
+
# The count of items associated to the transaction.
|
79
|
+
#
|
80
|
+
# Examples:
|
81
|
+
# * Number of payments for an invoice.
|
82
|
+
# * Number of invoices a payment or credit memo is applied to.
|
83
|
+
# @type: integer
|
84
|
+
# @format: int32
|
85
|
+
field :transaction_detail_count
|
86
|
+
|
87
|
+
# Specific transactions have support for pdf retrieval from their respective erp. When this flag is true, an additional
|
88
|
+
# call to Invoices/{id}/pdf or Payments/{id}/pdf can be made to retrieve a pdf directly from the erp.
|
89
|
+
# @type: boolean
|
90
|
+
field :supports_erp_pdf_retrieval
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
class Schema::TransactionDetail < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Group account transaction detail is associated with.
|
9
|
+
# @type: string
|
10
|
+
# @format: uuid
|
11
|
+
field :group_key
|
12
|
+
|
13
|
+
# An additional reference number that is sometimes used to identify a transaction detail.
|
14
|
+
# The meaning of this field is specific to the ERP or accounting system used by the user.
|
15
|
+
# @type: string
|
16
|
+
field :reference_number
|
17
|
+
|
18
|
+
# The unique ID of the transaction detail record.
|
19
|
+
# @type: string
|
20
|
+
# @format: uuid
|
21
|
+
field :transaction_detail_id
|
22
|
+
|
23
|
+
# The unique ID of the entity applying the transaction to the transaction detail record.
|
24
|
+
# @type: string
|
25
|
+
# @format: uuid
|
26
|
+
field :transaction_detail_applied_id
|
27
|
+
|
28
|
+
# The unique ID of the transaction record.
|
29
|
+
# @type: string
|
30
|
+
# @format: uuid
|
31
|
+
field :transaction_id
|
32
|
+
|
33
|
+
# The type of the transaction detail record.
|
34
|
+
#
|
35
|
+
# Recognized Invoice types are:
|
36
|
+
# * `AR Invoice` - Represents an invoice sent by Company to the Customer
|
37
|
+
# * `AP Invoice` - Represents an invoice sent by Vendor to the Company
|
38
|
+
# * `AR Credit Memo` - Represents a credit memo generated by Company given to Customer
|
39
|
+
# * `AP Credit Memo` - Represents a credit memo generated by Vendor given to Company
|
40
|
+
#
|
41
|
+
# Recognized PaymentType values are:
|
42
|
+
# * `AR Payment` - A payment made by a Customer to the Company
|
43
|
+
# * `AP Payment` - A payment made by the Company to a Vendor
|
44
|
+
# @type: string
|
45
|
+
field :transaction_type
|
46
|
+
|
47
|
+
# Additional type categorization of the transaction.
|
48
|
+
# @type: string
|
49
|
+
field :transaction_sub_type
|
50
|
+
|
51
|
+
# The date when a transaction detail record was reported.
|
52
|
+
# @type: string
|
53
|
+
# @format: date-time
|
54
|
+
field :transaction_date, Types::Params::DateTime
|
55
|
+
|
56
|
+
# The date of the invoice associated to the transaction detail record.
|
57
|
+
# @type: string
|
58
|
+
# @format: date-time
|
59
|
+
field :transaction_invoice_date, Types::Params::DateTime
|
60
|
+
|
61
|
+
# The total value of this transaction detail, inclusive or all taxes and line items.
|
62
|
+
# @type: number
|
63
|
+
# @format: double
|
64
|
+
field :transaction_amount
|
65
|
+
|
66
|
+
# The remaining balance of this transaction detail.
|
67
|
+
# @type: number
|
68
|
+
# @format: double
|
69
|
+
field :outstanding_amount
|
70
|
+
|
71
|
+
# Specific transactions have support for pdf retrieval from their respective erp. When this flag is true, an additional
|
72
|
+
# call to Invoices/{id}/pdf or Payments/{id}/pdf can be made to retrieve a pdf directly from the erp.
|
73
|
+
# @type: boolean
|
74
|
+
field :supports_erp_pdf_retrieval
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
class Schema::TransactionSummaryTotal < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Total count of all transactions from the query request.
|
9
|
+
# @type: integer
|
10
|
+
# @format: int32
|
11
|
+
field :total_count
|
12
|
+
|
13
|
+
# Total value of all transactions from the query request.
|
14
|
+
# @type: number
|
15
|
+
# @format: double
|
16
|
+
field :total_amount
|
17
|
+
|
18
|
+
# Total outstanding amount value of all transactions from the query request.
|
19
|
+
# @type: number
|
20
|
+
# @format: double
|
21
|
+
field :outstanding_amount
|
22
|
+
|
23
|
+
# Total open invoice count from the query request.
|
24
|
+
# @type: integer
|
25
|
+
# @format: int32
|
26
|
+
field :invoice_open_count
|
27
|
+
|
28
|
+
# Total past due invoice count from the query request.
|
29
|
+
# @type: integer
|
30
|
+
# @format: int32
|
31
|
+
field :invoice_past_due_count
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
end
|
@@ -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,19 @@
|
|
1
|
+
class Schema::UserDataResponse < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Data about the user, the properties returned will depend on the requested information.
|
9
|
+
# @type: object
|
10
|
+
field :data
|
11
|
+
|
12
|
+
# The Lockstep Platform ID of the user
|
13
|
+
# @type: string
|
14
|
+
# @format: uuid
|
15
|
+
field :user_id
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
end
|
@@ -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,71 @@ 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
|
128
|
+
|
129
|
+
# The modified date of the Vendor
|
130
|
+
# @type: string
|
131
|
+
# @format: date-time
|
132
|
+
field :modified, Types::Params::DateTime
|
73
133
|
|
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
134
|
|
77
135
|
|
78
136
|
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
|
@@ -0,0 +1,30 @@
|
|
1
|
+
class Schema::ViewBoxSettings < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# ViewBox minX setting for this Company's logo.
|
9
|
+
# @type: number
|
10
|
+
# @format: double
|
11
|
+
field :logo_view_box_min_x
|
12
|
+
|
13
|
+
# ViewBox minY setting for this Company's logo.
|
14
|
+
# @type: number
|
15
|
+
# @format: double
|
16
|
+
field :logo_view_box_min_y
|
17
|
+
|
18
|
+
# ViewBox width setting for this Company's logo.
|
19
|
+
# @type: number
|
20
|
+
# @format: double
|
21
|
+
field :logo_view_box_width
|
22
|
+
|
23
|
+
# ViewBox height setting for this Company's logo.
|
24
|
+
# @type: number
|
25
|
+
# @format: double
|
26
|
+
field :logo_view_box_height
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
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
|