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,38 @@
|
|
1
|
+
class Schema::FinancialReport < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The name of the report ("*Report Type* for *Company*")
|
9
|
+
# @type: string
|
10
|
+
field :report_name
|
11
|
+
|
12
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
13
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
14
|
+
#
|
15
|
+
# For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
|
16
|
+
# @type: string
|
17
|
+
# @format: uuid
|
18
|
+
field :group_key
|
19
|
+
|
20
|
+
# The start date of the financial report
|
21
|
+
# @type: string
|
22
|
+
# @format: date-time
|
23
|
+
field :report_start_date, Types::Params::DateTime
|
24
|
+
|
25
|
+
# The end date of the financial report
|
26
|
+
# @type: string
|
27
|
+
# @format: date-time
|
28
|
+
field :report_end_date, Types::Params::DateTime
|
29
|
+
|
30
|
+
# The created date of the financial report
|
31
|
+
# @type: string
|
32
|
+
# @format: date-time
|
33
|
+
field :report_created_date, Types::Params::DateTime
|
34
|
+
|
35
|
+
|
36
|
+
has_many :rows, {:class_name=>"Schema::FinancialReportRow", :included=>true}
|
37
|
+
|
38
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class Schema::FinancialReportRow < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# Describes what type of row this row is (Header, Summary, Classification, Category, Subcategory, Data)
|
9
|
+
# @type: string
|
10
|
+
field :row_type
|
11
|
+
|
12
|
+
# The label for the row if it is a Classification, Category, or Subcategory.
|
13
|
+
# @type: string
|
14
|
+
field :label
|
15
|
+
|
16
|
+
|
17
|
+
has_many :rows, {:class_name=>"Schema::FinancialReportRow", :included=>true}
|
18
|
+
has_many :cells, {:class_name=>"Schema::FinancialReportCell", :included=>true}
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
class Schema::FinancialYearSettingSync < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The type of financial year, either Calendar or Fiscal.
|
9
|
+
# @type: string
|
10
|
+
field :year_type
|
11
|
+
|
12
|
+
# Total number of periods in the year. For Calendar year types this should always be 12. For Fiscal year types
|
13
|
+
# this can either be 12 or 13 for a 4 week 13 period year.
|
14
|
+
# @type: integer
|
15
|
+
# @format: int32
|
16
|
+
field :total_periods
|
17
|
+
|
18
|
+
# The start date of the financial year. Should be entered in MM-DD format.
|
19
|
+
# @type: string
|
20
|
+
field :start_date
|
21
|
+
|
22
|
+
# The end date of the financial year. Should be entered in MM-DD format.
|
23
|
+
# @type: string
|
24
|
+
field :end_date
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
class Schema::GroupAccount < 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 group
|
17
|
+
# @type: string
|
18
|
+
field :group_name
|
19
|
+
|
20
|
+
# The primary user for the group
|
21
|
+
# @type: string
|
22
|
+
# @format: uuid
|
23
|
+
field :primary_user_id
|
24
|
+
|
25
|
+
# The CompanyId of the Company the group is associated with
|
26
|
+
# @type: string
|
27
|
+
# @format: uuid
|
28
|
+
field :group_company_id
|
29
|
+
|
30
|
+
# The active status of the group
|
31
|
+
# @type: boolean
|
32
|
+
field :is_active
|
33
|
+
|
34
|
+
# The onboarding session status of the group
|
35
|
+
# @type: boolean
|
36
|
+
field :onboarding_scheduled
|
37
|
+
|
38
|
+
# The date this group account was created
|
39
|
+
# @type: string
|
40
|
+
# @format: date-time
|
41
|
+
field :created, Types::Params::DateTime
|
42
|
+
|
43
|
+
# The ID of the user who created this group account
|
44
|
+
# @type: string
|
45
|
+
# @format: uuid
|
46
|
+
field :created_user_id
|
47
|
+
|
48
|
+
# The date this group account was last modified
|
49
|
+
# @type: string
|
50
|
+
# @format: date-time
|
51
|
+
field :modified, Types::Params::DateTime
|
52
|
+
|
53
|
+
# The ID of the user who last modified this group account
|
54
|
+
# @type: string
|
55
|
+
# @format: uuid
|
56
|
+
field :modified_user_id
|
57
|
+
|
58
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
59
|
+
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
60
|
+
|
61
|
+
|
62
|
+
end
|
@@ -63,9 +63,10 @@ end
|
|
63
63
|
# A code identifying the type of this invoice.
|
64
64
|
#
|
65
65
|
# Recognized Invoice types are:
|
66
|
-
# * `Invoice` - Represents an invoice sent by Company to the Customer
|
67
|
-
# * `AP Invoice` - Represents an invoice sent by
|
68
|
-
# * `Credit Memo` - Represents a credit memo generated by
|
66
|
+
# * `AR Invoice` - Represents an invoice sent by Company to the Customer
|
67
|
+
# * `AP Invoice` - Represents an invoice sent by Vendor to the Company
|
68
|
+
# * `AR Credit Memo` - Represents a credit memo generated by Company given to Customer
|
69
|
+
# * `AP Credit Memo` - Represents a credit memo generated by Vendor given to Company
|
69
70
|
# @type: string
|
70
71
|
field :invoice_type_code
|
71
72
|
|
@@ -196,6 +197,10 @@ end
|
|
196
197
|
# @type: boolean
|
197
198
|
field :exclude_from_aging
|
198
199
|
|
200
|
+
# Indicates the preferred delivery method for this invoice. Examples include Print, Email, Fax
|
201
|
+
# @type: string
|
202
|
+
field :preferred_delivery_method
|
203
|
+
|
199
204
|
# The Company associated to this invoice.
|
200
205
|
# To retrieve this item, specify `Company` in the "Include" parameter for your query.
|
201
206
|
field :company
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::InvoiceAddressFetchResult < 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::InvoiceAddress", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -5,6 +5,10 @@ def self.id_ref
|
|
5
5
|
nil
|
6
6
|
end
|
7
7
|
|
8
|
+
# For more information on Invoices, see [InvoiceModel](https://developer.lockstep.io/reference/get_api-v1-invoices-id).
|
9
|
+
# @type: array
|
10
|
+
field :records
|
11
|
+
|
8
12
|
|
9
13
|
# @type: integer
|
10
14
|
# @format: int32
|
@@ -20,10 +24,6 @@ end
|
|
20
24
|
# @format: int32
|
21
25
|
field :page_number
|
22
26
|
|
23
|
-
# For more information on Invoices, see [InvoiceModel](https://developer.lockstep.io/reference/get_api-v1-invoices-id).
|
24
|
-
# @type: array
|
25
|
-
field :records
|
26
|
-
|
27
27
|
|
28
28
|
|
29
29
|
end
|
@@ -79,7 +79,7 @@ end
|
|
79
79
|
# @type: string
|
80
80
|
field :special_terms
|
81
81
|
|
82
|
-
# The three-character ISO 4217 currency code used for this invoice. This will be validated by the /api/v1/currencies data set
|
82
|
+
# The three-character ISO 4217 currency code used for this invoice. This will be validated by the /api/v1/definitions/currencies data set
|
83
83
|
# @type: string
|
84
84
|
field :currency_code
|
85
85
|
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::InvoiceLineFetchResult < 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::InvoiceLine", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -99,7 +99,7 @@ end
|
|
99
99
|
# @type: string
|
100
100
|
field :origin_address_postal_code
|
101
101
|
|
102
|
-
# Origination address for this invoice line, if this line item was originated from a different address
|
102
|
+
# Origination address for this invoice line, if this line item was originated from a different address
|
103
103
|
# @type: string
|
104
104
|
field :origin_address_country
|
105
105
|
|
@@ -137,7 +137,7 @@ end
|
|
137
137
|
# @type: string
|
138
138
|
field :bill_to_address_postal_code
|
139
139
|
|
140
|
-
# Billing address for this invoice line, if this line item is to be billed to a different address
|
140
|
+
# Billing address for this invoice line, if this line item is to be billed to a different address
|
141
141
|
# @type: string
|
142
142
|
field :bill_to_address_country
|
143
143
|
|
@@ -175,7 +175,7 @@ end
|
|
175
175
|
# @type: string
|
176
176
|
field :ship_to_address_postal_code
|
177
177
|
|
178
|
-
# Shipping address for this invoice line, if this line item is to be shipped to a different address
|
178
|
+
# Shipping address for this invoice line, if this line item is to be shipped to a different address
|
179
179
|
# @type: string
|
180
180
|
field :ship_to_address_country
|
181
181
|
|
@@ -7,7 +7,7 @@ end
|
|
7
7
|
|
8
8
|
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
9
9
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
|
-
#
|
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
|
@@ -7,7 +7,7 @@ end
|
|
7
7
|
|
8
8
|
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
9
9
|
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
10
|
-
#
|
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
|
@@ -33,6 +33,12 @@ end
|
|
33
33
|
# @format: date
|
34
34
|
field :invoice_date
|
35
35
|
|
36
|
+
# The date when the invoice was closed and finalized after completion of all payments and delivery of all products and
|
37
|
+
# services.
|
38
|
+
# @type: string
|
39
|
+
# @format: date
|
40
|
+
field :invoice_closed_date
|
41
|
+
|
36
42
|
# The name of the counterparty for the invoice, for example, a customer or vendor.
|
37
43
|
# @type: string
|
38
44
|
field :customer_name
|
@@ -70,6 +76,16 @@ end
|
|
70
76
|
# @format: int32
|
71
77
|
field :days_past_due
|
72
78
|
|
79
|
+
# The number of payments associated to this invoice.
|
80
|
+
# @type: integer
|
81
|
+
# @format: int32
|
82
|
+
field :payment_count
|
83
|
+
|
84
|
+
# Specific invoices have support for pdf retrieval from their respective erp. When this flag is true, an additional
|
85
|
+
# call to Invoices/{id}/pdf can be made to retrieve a pdf directly from the erp.
|
86
|
+
# @type: boolean
|
87
|
+
field :supports_erp_pdf_retrieval
|
88
|
+
|
73
89
|
# The memo text of the payments associated to this invoice.
|
74
90
|
# @type: array
|
75
91
|
field :payment_numbers
|
@@ -78,6 +94,11 @@ end
|
|
78
94
|
# @type: array
|
79
95
|
field :payment_ids
|
80
96
|
|
97
|
+
# The modified date of the invoice.
|
98
|
+
# @type: string
|
99
|
+
# @format: date-time
|
100
|
+
field :modified, Types::Params::DateTime
|
101
|
+
|
81
102
|
belongs_to :customer, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
82
103
|
belongs_to :connection, {:class_name=>"Lockstep::Connection", :primary_key=>:company_id, :foreign_key=>"customer_id"}
|
83
104
|
|
@@ -0,0 +1,30 @@
|
|
1
|
+
class Schema::InvoiceSummaryInvoiceSummaryTotalsSummaryFetchResult < 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
|
+
# The totals for an Invoice Summary
|
24
|
+
field :summary
|
25
|
+
|
26
|
+
|
27
|
+
has_many :records, {:class_name=>"Schema::InvoiceSummary", :included=>true}
|
28
|
+
has_many :aging_summary, {:class_name=>"Schema::SummaryAgingTotals", :included=>true}
|
29
|
+
|
30
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
class Schema::InvoiceSummaryTotals < Lockstep::ApiRecord
|
2
|
+
|
3
|
+
# ApiRecord will crash unless `id_ref` is defined
|
4
|
+
def self.id_ref
|
5
|
+
nil
|
6
|
+
end
|
7
|
+
|
8
|
+
# The total amount invoiced.
|
9
|
+
# @type: number
|
10
|
+
# @format: double
|
11
|
+
field :total_invoice_amount
|
12
|
+
|
13
|
+
# The total outstanding balance
|
14
|
+
# @type: number
|
15
|
+
# @format: double
|
16
|
+
field :total_invoice_balance
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
end
|
@@ -61,9 +61,10 @@ end
|
|
61
61
|
# A code identifying the type of this invoice.
|
62
62
|
#
|
63
63
|
# Recognized Invoice types are:
|
64
|
-
# * `Invoice` - Represents an invoice sent by Company to the Customer
|
65
|
-
# * `AP Invoice` - Represents an invoice sent by
|
66
|
-
# * `Credit Memo` - Represents a credit memo generated by
|
64
|
+
# * `AR Invoice` - Represents an invoice sent by Company to the Customer
|
65
|
+
# * `AP Invoice` - Represents an invoice sent by Vendor to the Company
|
66
|
+
# * `AR Credit Memo` - Represents a credit memo generated by Company given to Customer
|
67
|
+
# * `AP Credit Memo` - Represents a credit memo generated by Vendor given to Company
|
67
68
|
# @type: string
|
68
69
|
field :invoice_type_code
|
69
70
|
|
@@ -84,7 +85,7 @@ end
|
|
84
85
|
# @type: string
|
85
86
|
field :special_terms
|
86
87
|
|
87
|
-
# The three-character ISO 4217 currency code used for this invoice.
|
88
|
+
# The three-character ISO 4217 currency code used for this invoice.
|
88
89
|
# @type: string
|
89
90
|
field :currency_code
|
90
91
|
|
@@ -163,7 +164,7 @@ end
|
|
163
164
|
# @type: string
|
164
165
|
field :origin_address_postal_code
|
165
166
|
|
166
|
-
# The origination address for this invoice
|
167
|
+
# The origination address for this invoice
|
167
168
|
# @type: string
|
168
169
|
field :origin_address_country
|
169
170
|
|
@@ -201,7 +202,7 @@ end
|
|
201
202
|
# @type: string
|
202
203
|
field :bill_to_address_postal_code
|
203
204
|
|
204
|
-
# The billing address for this invoice
|
205
|
+
# The billing address for this invoice
|
205
206
|
# @type: string
|
206
207
|
field :bill_to_address_country
|
207
208
|
|
@@ -239,7 +240,7 @@ end
|
|
239
240
|
# @type: string
|
240
241
|
field :ship_to_address_postal_code
|
241
242
|
|
242
|
-
# The shipping address for this invoice
|
243
|
+
# The shipping address for this invoice
|
243
244
|
# @type: string
|
244
245
|
field :ship_to_address_country
|
245
246
|
|
@@ -275,6 +276,10 @@ end
|
|
275
276
|
# @type: boolean
|
276
277
|
field :in_dispute
|
277
278
|
|
279
|
+
# Indicates the preferred delivery method for this invoice. Examples include Print, Email, Fax
|
280
|
+
# @type: string
|
281
|
+
field :preferred_delivery_method
|
282
|
+
|
278
283
|
|
279
284
|
|
280
285
|
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
class Schema::MagicLink < 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 :magic_link_id
|
13
|
+
|
14
|
+
# The GroupKey uniquely identifies a single Lockstep Platform account. All records for this
|
15
|
+
# account will share the same GroupKey value. GroupKey values cannot be changed once created.
|
16
|
+
# @type: string
|
17
|
+
# @format: uuid
|
18
|
+
field :group_key
|
19
|
+
|
20
|
+
# The unique ID of the user that this magic link is associated with.
|
21
|
+
# @type: string
|
22
|
+
# @format: uuid
|
23
|
+
field :user_id
|
24
|
+
|
25
|
+
# The ID of the user role for the magic link.
|
26
|
+
# @type: string
|
27
|
+
# @format: uuid
|
28
|
+
field :user_role
|
29
|
+
|
30
|
+
# The ID of the application for this magic link.
|
31
|
+
# @type: string
|
32
|
+
# @format: uuid
|
33
|
+
field :application_id
|
34
|
+
|
35
|
+
# The UTC date and time when this magic link expires.
|
36
|
+
# @type: string
|
37
|
+
# @format: date-time
|
38
|
+
field :expires, Types::Params::DateTime
|
39
|
+
|
40
|
+
# The UTC date and time when this magic link was revoked.
|
41
|
+
# @type: string
|
42
|
+
# @format: date-time
|
43
|
+
field :revoked, Types::Params::DateTime
|
44
|
+
|
45
|
+
# The date that the magic link was created
|
46
|
+
# @type: string
|
47
|
+
# @format: date-time
|
48
|
+
field :created, Types::Params::DateTime
|
49
|
+
|
50
|
+
# The ID of the user who created the magic link
|
51
|
+
# @type: string
|
52
|
+
# @format: uuid
|
53
|
+
field :created_user_id
|
54
|
+
|
55
|
+
# The date that the magic link was last modified
|
56
|
+
# @type: string
|
57
|
+
# @format: date-time
|
58
|
+
field :modified, Types::Params::DateTime
|
59
|
+
|
60
|
+
# The ID of the user who last modified the magic link
|
61
|
+
# @type: string
|
62
|
+
# @format: uuid
|
63
|
+
field :modified_user_id
|
64
|
+
|
65
|
+
# The created magic link URL. This will only be returned upon creation of the magic link.
|
66
|
+
# All other times, this value will be `null`.
|
67
|
+
# @type: string
|
68
|
+
field :magic_link_url
|
69
|
+
|
70
|
+
# The user associated with this magic link.
|
71
|
+
# To retrieve this item, specify `User` in the "Include" parameter for your query.
|
72
|
+
field :user
|
73
|
+
|
74
|
+
belongs_to :created_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"created_user_id"}
|
75
|
+
belongs_to :modified_user, {:class_name=>"Lockstep::User", :primary_key=>:user_id, :foreign_key=>"modified_user_id"}
|
76
|
+
|
77
|
+
|
78
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
class Schema::MagicLinkFetchResult < 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::MagicLink", :included=>true}
|
25
|
+
|
26
|
+
end
|
@@ -19,16 +19,30 @@ end
|
|
19
19
|
# @format: uuid
|
20
20
|
field :group_key
|
21
21
|
|
22
|
-
#
|
22
|
+
# A Note is connected to an existing item within the Lockstep Platform by the fields `TableKey` and
|
23
|
+
# `ObjectKey`. For example, a Note connected to Invoice 12345 would have a `TableKey` value of
|
24
|
+
# `Invoice` and an `ObjectKey` value of `12345`.
|
25
|
+
#
|
26
|
+
# The `TableKey` value contains the name of the table within the Lockstep Platform to which this metadata
|
27
|
+
# is connected.
|
28
|
+
#
|
29
|
+
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
23
30
|
# @type: string
|
24
31
|
field :table_key
|
25
32
|
|
26
|
-
#
|
33
|
+
# A Note is connected to an existing item within the Lockstep Platform by the fields `TableKey` and
|
34
|
+
# `ObjectKey`. For example, a Note connected to Invoice 12345 would have a `TableKey` value of
|
35
|
+
# `Invoice` and an `ObjectKey` value of `12345`.
|
36
|
+
#
|
37
|
+
# The `ObjectKey` value contains the primary key of the record within the Lockstep Platform to which this
|
38
|
+
# metadata is connected.
|
39
|
+
#
|
40
|
+
# For more information, see [linking metadata to an object](https://developer.lockstep.io/docs/custom-fields#linking-metadata-to-an-object).
|
27
41
|
# @type: string
|
28
42
|
# @format: uuid
|
29
43
|
field :object_key
|
30
44
|
|
31
|
-
# The text of the note
|
45
|
+
# The full text of the note
|
32
46
|
# @type: string
|
33
47
|
field :note_text
|
34
48
|
|
@@ -36,7 +50,11 @@ end
|
|
36
50
|
# @type: string
|
37
51
|
field :note_type
|
38
52
|
|
39
|
-
#
|
53
|
+
# A flag indicating whether this Note is archived (also known as hidden or deleted). When you call
|
54
|
+
# [ArchiveNote](https://developer.lockstep.io/reference/delete_api-v1-notes-id) this field will
|
55
|
+
# be set to true.
|
56
|
+
#
|
57
|
+
# You should avoid displaying Notes with the IsArchived field set to true in your user interface.
|
40
58
|
# @type: boolean
|
41
59
|
field :is_archived
|
42
60
|
|
@@ -45,7 +63,8 @@ end
|
|
45
63
|
# @format: date-time
|
46
64
|
field :created, Types::Params::DateTime
|
47
65
|
|
48
|
-
# The ID of the
|
66
|
+
# The unique ID of the [UserAccount](https://developer.lockstep.io/docs/useraccountmodel) of the user
|
67
|
+
# who created this Note.
|
49
68
|
# @type: string
|
50
69
|
# @format: uuid
|
51
70
|
field :created_user_id
|