lockstep_sdk 2023.7.7.0 → 2023.13.37.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lockstep_sdk/clients/transcriptions_client.rb +11 -0
  3. data/lib/lockstep_sdk/lockstep_api.rb +3 -8
  4. data/lib/lockstep_sdk/models/application_model.rb +2 -14
  5. data/lib/lockstep_sdk/models/attachment_model.rb +0 -24
  6. data/lib/lockstep_sdk/models/company_model.rb +6 -0
  7. data/lib/lockstep_sdk/models/company_sync_model.rb +7 -1
  8. data/lib/lockstep_sdk/models/contact_sync_model.rb +6 -0
  9. data/lib/lockstep_sdk/models/credit_memo_applied_model.rb +18 -0
  10. data/lib/lockstep_sdk/models/credit_memo_applied_sync_model.rb +6 -0
  11. data/lib/lockstep_sdk/models/custom_field_sync_model.rb +6 -0
  12. data/lib/lockstep_sdk/models/developer_account_submit_model.rb +0 -6
  13. data/lib/lockstep_sdk/models/email_reply_generator_request.rb +59 -0
  14. data/lib/lockstep_sdk/models/email_reply_generator_response.rb +53 -0
  15. data/lib/lockstep_sdk/models/email_reply_generator_suggestions.rb +53 -0
  16. data/lib/lockstep_sdk/models/financial_account_balance_history_model.rb +12 -0
  17. data/lib/lockstep_sdk/models/financial_account_balance_history_sync_model.rb +6 -0
  18. data/lib/lockstep_sdk/models/financial_account_sync_model.rb +6 -0
  19. data/lib/lockstep_sdk/models/group_account_model.rb +6 -0
  20. data/lib/lockstep_sdk/models/invoice_line_sync_model.rb +6 -0
  21. data/lib/lockstep_sdk/models/invoice_sync_model.rb +6 -0
  22. data/lib/lockstep_sdk/models/payment_applied_model.rb +18 -0
  23. data/lib/lockstep_sdk/models/payment_applied_sync_model.rb +6 -0
  24. data/lib/lockstep_sdk/models/payment_detail_model.rb +12 -0
  25. data/lib/lockstep_sdk/models/payment_model.rb +19 -1
  26. data/lib/lockstep_sdk/models/payment_sync_model.rb +6 -0
  27. data/lib/lockstep_sdk/models/status_model.rb +16 -10
  28. data/lib/lockstep_sdk/models/sync_entity_result_model.rb +6 -0
  29. data/lib/lockstep_sdk/version.rb +1 -1
  30. metadata +5 -4
  31. data/lib/lockstep_sdk/clients/invoice_history_client.rb +0 -53
  32. data/lib/lockstep_sdk/models/invoice_history_model.rb +0 -247
@@ -1,247 +0,0 @@
1
- #
2
- # Lockstep Platform SDK for Ruby
3
- #
4
- # (c) 2021-2023 Lockstep, Inc.
5
- #
6
- # For the full copyright and license information, please view the LICENSE
7
- # file that was distributed with this source code.
8
- #
9
- # @author Lockstep Network <support@lockstep.io>
10
- # @copyright 2021-2023 Lockstep, Inc.
11
- # @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
12
- #
13
-
14
-
15
- require 'json'
16
-
17
- module LockstepSdk
18
-
19
- ##
20
- # An Invoice represents a bill sent from one company to another. The Lockstep Platform tracks changes to
21
- # each Invoice so that you can observe the changes over time. You can view the InvoiceHistory list to
22
- # monitor and observe the changes of this Invoice and track the dates when changes occurred.
23
- class InvoiceHistoryModel
24
-
25
- ##
26
- # Initialize the InvoiceHistoryModel using the provided prototype
27
- def initialize(params = {})
28
- @group_key = params.dig(:group_key)
29
- @invoice_history_id = params.dig(:invoice_history_id)
30
- @invoice_id = params.dig(:invoice_id)
31
- @company_id = params.dig(:company_id)
32
- @customer_id = params.dig(:customer_id)
33
- @erp_key = params.dig(:erp_key)
34
- @purchase_order_code = params.dig(:purchase_order_code)
35
- @reference_code = params.dig(:reference_code)
36
- @salesperson_code = params.dig(:salesperson_code)
37
- @salesperson_name = params.dig(:salesperson_name)
38
- @invoice_type_code = params.dig(:invoice_type_code)
39
- @invoice_status_code = params.dig(:invoice_status_code)
40
- @terms_code = params.dig(:terms_code)
41
- @special_terms = params.dig(:special_terms)
42
- @currency_code = params.dig(:currency_code)
43
- @total_amount = params.dig(:total_amount)
44
- @sales_tax_amount = params.dig(:sales_tax_amount)
45
- @discount_amount = params.dig(:discount_amount)
46
- @outstanding_balance_amount = params.dig(:outstanding_balance_amount)
47
- @invoice_date = params.dig(:invoice_date)
48
- @discount_date = params.dig(:discount_date)
49
- @posted_date = params.dig(:posted_date)
50
- @invoice_closed_date = params.dig(:invoice_closed_date)
51
- @payment_due_date = params.dig(:payment_due_date)
52
- @imported_date = params.dig(:imported_date)
53
- @primary_origin_address_id = params.dig(:primary_origin_address_id)
54
- @primary_bill_to_address_id = params.dig(:primary_bill_to_address_id)
55
- @primary_ship_to_address_id = params.dig(:primary_ship_to_address_id)
56
- @created = params.dig(:created)
57
- @created_user_id = params.dig(:created_user_id)
58
- @modified = params.dig(:modified)
59
- @modified_user_id = params.dig(:modified_user_id)
60
- @app_enrollment_id = params.dig(:app_enrollment_id)
61
- @currency_rate = params.dig(:currency_rate)
62
- end
63
-
64
- ##
65
- # @return [Uuid] The GroupKey uniquely identifies a single Lockstep Platform account. All records for this account will share the same GroupKey value. GroupKey values cannot be changed once created. For more information, see [Accounts and GroupKeys](https://developer.lockstep.io/docs/accounts-and-groupkeys).
66
- attr_accessor :group_key
67
-
68
- ##
69
- # @return [Uuid] The unique ID number of this invoice history entry.
70
- attr_accessor :invoice_history_id
71
-
72
- ##
73
- # @return [Uuid] The unique ID of the Invoice represented by this history entry. This ID was automatically assigned by Lockstep to the Invoice record when it was added to the Lockstep platform. For the ID of this record in its originating financial system, see `ErpKey`.
74
- attr_accessor :invoice_id
75
-
76
- ##
77
- # @return [Uuid] The ID number of the company that created this invoice.
78
- attr_accessor :company_id
79
-
80
- ##
81
- # @return [Uuid] The ID number of the counterparty for the invoice, for example, a customer or vendor.
82
- attr_accessor :customer_id
83
-
84
- ##
85
- # @return [String] The unique ID of this record as it was known in its originating financial system. If this company record was imported from a financial system, it will have the value `ErpKey` set to the original primary key number of the record as it was known in the originating financial system. If this record was not imported, this value will be `null`. For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
86
- attr_accessor :erp_key
87
-
88
- ##
89
- # @return [String] The purchase order code as it exists in the user's ERP or accounting system.
90
- attr_accessor :purchase_order_code
91
-
92
- ##
93
- # @return [String] An additional reference code that is sometimes used to identify this invoice. The meaning of this field is specific to the ERP or accounting system used by the user.
94
- attr_accessor :reference_code
95
-
96
- ##
97
- # @return [String] A code identifying the salesperson responsible for writing this invoice.
98
- attr_accessor :salesperson_code
99
-
100
- ##
101
- # @return [String] A string identifying the salesperson responsible for writing this invoice.
102
- attr_accessor :salesperson_name
103
-
104
- ##
105
- # @return [String] A code identifying the type of this invoice.
106
- attr_accessor :invoice_type_code
107
-
108
- ##
109
- # @return [String] A code identifying the status of this invoice.
110
- attr_accessor :invoice_status_code
111
-
112
- ##
113
- # @return [String] A code identifying the terms given to the purchaser.
114
- attr_accessor :terms_code
115
-
116
- ##
117
- # @return [String] If the customer negotiated any special terms different from the standard terms above, describe them here.
118
- attr_accessor :special_terms
119
-
120
- ##
121
- # @return [String] The three-character ISO 4217 currency code used for this invoice. This will be validated by the /api/v1/definitions/currencies data set
122
- attr_accessor :currency_code
123
-
124
- ##
125
- # @return [Double] The total value of this invoice, inclusive of all taxes and line items.
126
- attr_accessor :total_amount
127
-
128
- ##
129
- # @return [Double] The total sales (or transactional) tax calculated for this invoice.
130
- attr_accessor :sales_tax_amount
131
-
132
- ##
133
- # @return [Double] The total discounts given by the seller to the buyer on this invoice.
134
- attr_accessor :discount_amount
135
-
136
- ##
137
- # @return [Double] The remaining balance value of this invoice.
138
- attr_accessor :outstanding_balance_amount
139
-
140
- ##
141
- # @return [Date] The reporting date for this invoice.
142
- attr_accessor :invoice_date
143
-
144
- ##
145
- # @return [Date] The date when discounts were adjusted for this invoice.
146
- attr_accessor :discount_date
147
-
148
- ##
149
- # @return [Date] The date when this invoice posted to the company's general ledger.
150
- attr_accessor :posted_date
151
-
152
- ##
153
- # @return [Date] The date when the invoice was closed and finalized after completion of all payments and delivery of all products and services.
154
- attr_accessor :invoice_closed_date
155
-
156
- ##
157
- # @return [Date] The date when the remaining outstanding balance is due.
158
- attr_accessor :payment_due_date
159
-
160
- ##
161
- # @return [Date-time] The date and time when this record was imported from the user's ERP or accounting system.
162
- attr_accessor :imported_date
163
-
164
- ##
165
- # @return [Uuid] The ID number of the invoice's origination address
166
- attr_accessor :primary_origin_address_id
167
-
168
- ##
169
- # @return [Uuid] The ID number of the invoice's bill-to address
170
- attr_accessor :primary_bill_to_address_id
171
-
172
- ##
173
- # @return [Uuid] The ID number of the invoice's ship-to address
174
- attr_accessor :primary_ship_to_address_id
175
-
176
- ##
177
- # @return [Date-time] The date on which this invoice record was created.
178
- attr_accessor :created
179
-
180
- ##
181
- # @return [Uuid] The ID number of the user who created this invoice.
182
- attr_accessor :created_user_id
183
-
184
- ##
185
- # @return [Date-time] The date on which this invoice record was last modified.
186
- attr_accessor :modified
187
-
188
- ##
189
- # @return [Uuid] The ID number of the user who most recently modified this invoice.
190
- attr_accessor :modified_user_id
191
-
192
- ##
193
- # @return [Uuid] The AppEnrollmentId of the application that imported this record. For accounts with more than one financial system connected, this field identifies the originating financial system that produced this record. This value is null if this record was not loaded from an external ERP or financial system.
194
- attr_accessor :app_enrollment_id
195
-
196
- ##
197
- # @return [Double] The Currency Rate used to get from the account's base currency to the invoice amount.
198
- attr_accessor :currency_rate
199
-
200
- ##
201
- # @return [object] This object as a JSON key-value structure
202
- def as_json(options={})
203
- {
204
- 'groupKey' => @group_key,
205
- 'invoiceHistoryId' => @invoice_history_id,
206
- 'invoiceId' => @invoice_id,
207
- 'companyId' => @company_id,
208
- 'customerId' => @customer_id,
209
- 'erpKey' => @erp_key,
210
- 'purchaseOrderCode' => @purchase_order_code,
211
- 'referenceCode' => @reference_code,
212
- 'salespersonCode' => @salesperson_code,
213
- 'salespersonName' => @salesperson_name,
214
- 'invoiceTypeCode' => @invoice_type_code,
215
- 'invoiceStatusCode' => @invoice_status_code,
216
- 'termsCode' => @terms_code,
217
- 'specialTerms' => @special_terms,
218
- 'currencyCode' => @currency_code,
219
- 'totalAmount' => @total_amount,
220
- 'salesTaxAmount' => @sales_tax_amount,
221
- 'discountAmount' => @discount_amount,
222
- 'outstandingBalanceAmount' => @outstanding_balance_amount,
223
- 'invoiceDate' => @invoice_date,
224
- 'discountDate' => @discount_date,
225
- 'postedDate' => @posted_date,
226
- 'invoiceClosedDate' => @invoice_closed_date,
227
- 'paymentDueDate' => @payment_due_date,
228
- 'importedDate' => @imported_date,
229
- 'primaryOriginAddressId' => @primary_origin_address_id,
230
- 'primaryBillToAddressId' => @primary_bill_to_address_id,
231
- 'primaryShipToAddressId' => @primary_ship_to_address_id,
232
- 'created' => @created,
233
- 'createdUserId' => @created_user_id,
234
- 'modified' => @modified,
235
- 'modifiedUserId' => @modified_user_id,
236
- 'appEnrollmentId' => @app_enrollment_id,
237
- 'currencyRate' => @currency_rate,
238
- }
239
- end
240
-
241
- ##
242
- # @return [String] This object converted to a JSON string
243
- def to_json(*options)
244
- "[#{as_json(*options).to_json(*options)}]"
245
- end
246
- end
247
- end