lockstep_sdk 2022.4.32.0 → 2022.6.49.0
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/lib/lockstep_sdk/clients/activities_client.rb +0 -1
- data/lib/lockstep_sdk/clients/api_keys_client.rb +0 -1
- data/lib/lockstep_sdk/clients/app_enrollments_client.rb +0 -1
- data/lib/lockstep_sdk/clients/applications_client.rb +0 -1
- data/lib/lockstep_sdk/clients/attachments_client.rb +2 -2
- data/lib/lockstep_sdk/clients/code_definitions_client.rb +0 -1
- data/lib/lockstep_sdk/clients/companies_client.rb +0 -1
- data/lib/lockstep_sdk/clients/contacts_client.rb +0 -1
- data/lib/lockstep_sdk/clients/credit_memo_applied_client.rb +0 -1
- data/lib/lockstep_sdk/clients/currencies_client.rb +0 -1
- data/lib/lockstep_sdk/clients/custom_field_definitions_client.rb +0 -1
- data/lib/lockstep_sdk/clients/custom_field_values_client.rb +0 -1
- data/lib/lockstep_sdk/clients/definitions_client.rb +0 -1
- data/lib/lockstep_sdk/clients/emails_client.rb +0 -1
- data/lib/lockstep_sdk/clients/invoice_history_client.rb +0 -1
- data/lib/lockstep_sdk/clients/invoices_client.rb +0 -1
- data/lib/lockstep_sdk/clients/leads_client.rb +0 -1
- data/lib/lockstep_sdk/clients/notes_client.rb +0 -1
- data/lib/lockstep_sdk/clients/payment_applications_client.rb +0 -1
- data/lib/lockstep_sdk/clients/payments_client.rb +0 -1
- data/lib/lockstep_sdk/clients/provisioning_client.rb +0 -5
- data/lib/lockstep_sdk/clients/reports_client.rb +0 -1
- data/lib/lockstep_sdk/clients/status_client.rb +0 -1
- data/lib/lockstep_sdk/clients/sync_client.rb +15 -2
- data/lib/lockstep_sdk/clients/user_accounts_client.rb +0 -1
- data/lib/lockstep_sdk/clients/user_roles_client.rb +0 -1
- data/lib/lockstep_sdk/clients/webhooks_client.rb +91 -0
- data/lib/lockstep_sdk/lockstep_api.rb +8 -3
- data/lib/lockstep_sdk/models/activity_model.rb +0 -1
- data/lib/lockstep_sdk/models/activity_stream_item_model.rb +0 -1
- data/lib/lockstep_sdk/models/activity_xref_model.rb +0 -1
- data/lib/lockstep_sdk/models/aging_model.rb +0 -1
- data/lib/lockstep_sdk/models/api_key_model.rb +0 -1
- data/lib/lockstep_sdk/models/app_enrollment_custom_field_model.rb +0 -1
- data/lib/lockstep_sdk/models/app_enrollment_model.rb +0 -1
- data/lib/lockstep_sdk/models/application_model.rb +0 -1
- data/lib/lockstep_sdk/models/ar_aging_header_info_model.rb +0 -1
- data/lib/lockstep_sdk/models/ar_header_info_model.rb +0 -1
- data/lib/lockstep_sdk/models/at_risk_invoice_summary_model.rb +0 -1
- data/lib/lockstep_sdk/models/attachment_header_info_model.rb +0 -1
- data/lib/lockstep_sdk/models/attachment_model.rb +12 -1
- data/lib/lockstep_sdk/models/batch_sync_model.rb +99 -0
- data/lib/lockstep_sdk/models/bulk_currency_conversion_model.rb +0 -1
- data/lib/lockstep_sdk/models/cashflow_report_model.rb +0 -1
- data/lib/lockstep_sdk/models/code_definition_model.rb +0 -1
- data/lib/lockstep_sdk/models/company_model.rb +0 -1
- data/lib/lockstep_sdk/models/company_sync_model.rb +195 -0
- data/lib/lockstep_sdk/models/connector_info_model.rb +0 -1
- data/lib/lockstep_sdk/models/contact_model.rb +0 -1
- data/lib/lockstep_sdk/models/contact_sync_model.rb +177 -0
- data/lib/lockstep_sdk/models/country_model.rb +0 -1
- data/lib/lockstep_sdk/models/credit_memo_applied_model.rb +6 -7
- data/lib/lockstep_sdk/models/credit_memo_applied_sync_model.rb +99 -0
- data/lib/lockstep_sdk/models/credit_memo_invoice_model.rb +0 -1
- data/lib/lockstep_sdk/models/currency_model.rb +0 -1
- data/lib/lockstep_sdk/models/currency_rate_model.rb +0 -1
- data/lib/lockstep_sdk/models/custom_field_definition_model.rb +0 -1
- data/lib/lockstep_sdk/models/custom_field_sync_model.rb +97 -0
- data/lib/lockstep_sdk/models/custom_field_value_model.rb +0 -1
- data/lib/lockstep_sdk/models/customer_details_model.rb +0 -1
- data/lib/lockstep_sdk/models/customer_details_payment_model.rb +0 -1
- data/lib/lockstep_sdk/models/customer_summary_model.rb +0 -1
- data/lib/lockstep_sdk/models/daily_sales_outstanding_report_model.rb +0 -1
- data/lib/lockstep_sdk/models/developer_account_submit_model.rb +0 -1
- data/lib/lockstep_sdk/models/email_model.rb +0 -1
- data/lib/lockstep_sdk/models/erp_info_data_model.rb +0 -1
- data/lib/lockstep_sdk/models/erp_info_model.rb +0 -1
- data/lib/lockstep_sdk/models/erp_model.rb +0 -1
- data/lib/lockstep_sdk/models/invite_data_model.rb +0 -1
- data/lib/lockstep_sdk/models/invite_model.rb +0 -1
- data/lib/lockstep_sdk/models/invite_submit_model.rb +0 -1
- data/lib/lockstep_sdk/models/invoice_address_model.rb +0 -1
- data/lib/lockstep_sdk/models/invoice_history_model.rb +0 -1
- data/lib/lockstep_sdk/models/invoice_line_model.rb +0 -1
- data/lib/lockstep_sdk/models/invoice_line_sync_model.rb +303 -0
- data/lib/lockstep_sdk/models/invoice_model.rb +5 -6
- data/lib/lockstep_sdk/models/invoice_payment_detail_model.rb +0 -1
- data/lib/lockstep_sdk/models/invoice_summary_model.rb +0 -1
- data/lib/lockstep_sdk/models/invoice_sync_model.rb +369 -0
- data/lib/lockstep_sdk/models/lead_model.rb +0 -1
- data/lib/lockstep_sdk/models/note_model.rb +0 -1
- data/lib/lockstep_sdk/models/payment_applied_model.rb +3 -4
- data/lib/lockstep_sdk/models/payment_applied_sync_model.rb +99 -0
- data/lib/lockstep_sdk/models/payment_detail_header_model.rb +0 -1
- data/lib/lockstep_sdk/models/payment_detail_model.rb +0 -1
- data/lib/lockstep_sdk/models/payment_model.rb +7 -8
- data/lib/lockstep_sdk/models/payment_summary_model.rb +0 -1
- data/lib/lockstep_sdk/models/payment_sync_model.rb +147 -0
- data/lib/lockstep_sdk/models/provisioning_finalize_request_model.rb +0 -1
- data/lib/lockstep_sdk/models/provisioning_model.rb +0 -1
- data/lib/lockstep_sdk/models/provisioning_response_model.rb +0 -1
- data/lib/lockstep_sdk/models/risk_rate_model.rb +0 -1
- data/lib/lockstep_sdk/models/state_model.rb +0 -1
- data/lib/lockstep_sdk/models/status_model.rb +0 -1
- data/lib/lockstep_sdk/models/sync_entity_result_model.rb +0 -1
- data/lib/lockstep_sdk/models/sync_request_model.rb +10 -4
- data/lib/lockstep_sdk/models/sync_submit_model.rb +10 -3
- data/lib/lockstep_sdk/models/transfer_owner_model.rb +0 -1
- data/lib/lockstep_sdk/models/transfer_owner_submit_model.rb +0 -1
- data/lib/lockstep_sdk/models/uri_model.rb +49 -0
- data/lib/lockstep_sdk/models/user_account_model.rb +0 -1
- data/lib/lockstep_sdk/models/user_role_model.rb +0 -1
- data/lib/lockstep_sdk/models/webhook_model.rb +137 -0
- data/lib/lockstep_sdk/version.rb +1 -1
- metadata +14 -2
@@ -0,0 +1,303 @@
|
|
1
|
+
#
|
2
|
+
# Lockstep Software Development Kit for Ruby
|
3
|
+
#
|
4
|
+
# (c) 2021-2022 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 Ted Spence <tspence@lockstep.io>
|
10
|
+
# @author Manish Narayan B S <manish.n@lockstep.io>
|
11
|
+
# @author Rishi Rajkumar Jawahar <rjawahar@lockstep.io>
|
12
|
+
# @copyright 2021-2022 Lockstep, Inc.
|
13
|
+
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
14
|
+
#
|
15
|
+
|
16
|
+
|
17
|
+
require 'json'
|
18
|
+
|
19
|
+
module LockstepSdk
|
20
|
+
|
21
|
+
##
|
22
|
+
# The InvoiceLineSyncModel represents information coming into Lockstep from an external financial system or other
|
23
|
+
# enterprise resource planning system. To import data from an external system, convert your original data into
|
24
|
+
# the InvoiceLineSyncModel format and call the [Upload Sync File API](https://developer.lockstep.io/reference/post_api-v1-sync-zip).
|
25
|
+
# This API retrieves all of the data you uploaded in a compressed ZIP file and imports it into the Lockstep
|
26
|
+
# platform.
|
27
|
+
#
|
28
|
+
# Once imported, this record will be available in the Lockstep API as an [InvoiceLineModel](https://developer.lockstep.io/docs/invoicelinemodel).
|
29
|
+
#
|
30
|
+
# For more information on writing your own connector, see [Connector Data](https://developer.lockstep.io/docs/connector-data).
|
31
|
+
class InvoiceLineSyncModel
|
32
|
+
|
33
|
+
##
|
34
|
+
# Initialize the InvoiceLineSyncModel using the provided prototype
|
35
|
+
def initialize(params = {})
|
36
|
+
@erp_key = params.dig(:erp_key)
|
37
|
+
@invoice_erp_key = params.dig(:invoice_erp_key)
|
38
|
+
@line_number = params.dig(:line_number)
|
39
|
+
@product_code = params.dig(:product_code)
|
40
|
+
@description = params.dig(:description)
|
41
|
+
@unit_measure_code = params.dig(:unit_measure_code)
|
42
|
+
@unit_price = params.dig(:unit_price)
|
43
|
+
@quantity = params.dig(:quantity)
|
44
|
+
@quantity_shipped = params.dig(:quantity_shipped)
|
45
|
+
@quantity_received = params.dig(:quantity_received)
|
46
|
+
@total_amount = params.dig(:total_amount)
|
47
|
+
@exemption_code = params.dig(:exemption_code)
|
48
|
+
@reporting_date = params.dig(:reporting_date)
|
49
|
+
@origin_address_line1 = params.dig(:origin_address_line1)
|
50
|
+
@origin_address_line2 = params.dig(:origin_address_line2)
|
51
|
+
@origin_address_line3 = params.dig(:origin_address_line3)
|
52
|
+
@origin_address_city = params.dig(:origin_address_city)
|
53
|
+
@origin_address_region = params.dig(:origin_address_region)
|
54
|
+
@origin_address_postal_code = params.dig(:origin_address_postal_code)
|
55
|
+
@origin_address_country = params.dig(:origin_address_country)
|
56
|
+
@origin_address_latitude = params.dig(:origin_address_latitude)
|
57
|
+
@origin_address_longitude = params.dig(:origin_address_longitude)
|
58
|
+
@bill_to_address_line1 = params.dig(:bill_to_address_line1)
|
59
|
+
@bill_to_address_line2 = params.dig(:bill_to_address_line2)
|
60
|
+
@bill_to_address_line3 = params.dig(:bill_to_address_line3)
|
61
|
+
@bill_to_address_city = params.dig(:bill_to_address_city)
|
62
|
+
@bill_to_address_region = params.dig(:bill_to_address_region)
|
63
|
+
@bill_to_address_postal_code = params.dig(:bill_to_address_postal_code)
|
64
|
+
@bill_to_address_country = params.dig(:bill_to_address_country)
|
65
|
+
@bill_to_address_latitude = params.dig(:bill_to_address_latitude)
|
66
|
+
@bill_to_address_longitude = params.dig(:bill_to_address_longitude)
|
67
|
+
@ship_to_address_line1 = params.dig(:ship_to_address_line1)
|
68
|
+
@ship_to_address_line2 = params.dig(:ship_to_address_line2)
|
69
|
+
@ship_to_address_line3 = params.dig(:ship_to_address_line3)
|
70
|
+
@ship_to_address_city = params.dig(:ship_to_address_city)
|
71
|
+
@ship_to_address_region = params.dig(:ship_to_address_region)
|
72
|
+
@ship_to_address_postal_code = params.dig(:ship_to_address_postal_code)
|
73
|
+
@ship_to_address_country = params.dig(:ship_to_address_country)
|
74
|
+
@ship_to_address_latitude = params.dig(:ship_to_address_latitude)
|
75
|
+
@ship_to_address_longitude = params.dig(:ship_to_address_longitude)
|
76
|
+
@created = params.dig(:created)
|
77
|
+
@modified = params.dig(:modified)
|
78
|
+
end
|
79
|
+
|
80
|
+
##
|
81
|
+
# @return [String] This is the primary key of the Invoice Line record. For this field, you should use whatever the contact's unique identifying number is in the originating system. Search for a unique, non-changing number within the originating financial system for this record. Example: If you store your invoice line records in a database, whatever the primary key for the invoice line table is in the database should be the "ErpKey". For more information, see [Identity Columns](https://developer.lockstep.io/docs/identity-columns).
|
82
|
+
attr_accessor :erp_key
|
83
|
+
|
84
|
+
##
|
85
|
+
# @return [String] The original primary key or unique ID of the invoice to which this line belongs. This value should match the [Invoice ErpKey](https://developer.lockstep.io/docs/importing-invoices#erpkey) field on the [InvoiceSyncModel](https://developer.lockstep.io/docs/importing-invoices).
|
86
|
+
attr_accessor :invoice_erp_key
|
87
|
+
|
88
|
+
##
|
89
|
+
# @return [String] The line number of this line, as defined in the originating ERP or accounting system. You can sort on this number to get the original view of lines within the invoice.
|
90
|
+
attr_accessor :line_number
|
91
|
+
|
92
|
+
##
|
93
|
+
# @return [String] A code number identifying the product or service that is specified on this line.
|
94
|
+
attr_accessor :product_code
|
95
|
+
|
96
|
+
##
|
97
|
+
# @return [String] Description of this invoice line.
|
98
|
+
attr_accessor :description
|
99
|
+
|
100
|
+
##
|
101
|
+
# @return [String] For lines measured in a unit other than "quantity", this code indicates the measurement system for the quantity field. If the line is measured in quantity, this field is null.
|
102
|
+
attr_accessor :unit_measure_code
|
103
|
+
|
104
|
+
##
|
105
|
+
# @return [Double] The price of a single unit for this line.
|
106
|
+
attr_accessor :unit_price
|
107
|
+
|
108
|
+
##
|
109
|
+
# @return [Double] The quantity of items for ths line.
|
110
|
+
attr_accessor :quantity
|
111
|
+
|
112
|
+
##
|
113
|
+
# @return [Double] The number of items that have been shipped.
|
114
|
+
attr_accessor :quantity_shipped
|
115
|
+
|
116
|
+
##
|
117
|
+
# @return [Double] The number of items that has been received.
|
118
|
+
attr_accessor :quantity_received
|
119
|
+
|
120
|
+
##
|
121
|
+
# @return [Double] The total amount for this line.
|
122
|
+
attr_accessor :total_amount
|
123
|
+
|
124
|
+
##
|
125
|
+
# @return [String] If this line is tax exempt, this code indicates the reason for the exemption.
|
126
|
+
attr_accessor :exemption_code
|
127
|
+
|
128
|
+
##
|
129
|
+
# @return [Date-time] If null, the products specified on this line were delivered on the same date as all other lines. If not null, this line was delivered or finalized on a different date than the overall invoice.
|
130
|
+
attr_accessor :reporting_date
|
131
|
+
|
132
|
+
##
|
133
|
+
# @return [String] Origination address for this invoice line, if this line item was originated from a different address
|
134
|
+
attr_accessor :origin_address_line1
|
135
|
+
|
136
|
+
##
|
137
|
+
# @return [String] Origination address for this invoice line, if this line item was originated from a different address
|
138
|
+
attr_accessor :origin_address_line2
|
139
|
+
|
140
|
+
##
|
141
|
+
# @return [String] Origination address for this invoice line, if this line item was originated from a different address
|
142
|
+
attr_accessor :origin_address_line3
|
143
|
+
|
144
|
+
##
|
145
|
+
# @return [String] Origination address for this invoice line, if this line item was originated from a different address
|
146
|
+
attr_accessor :origin_address_city
|
147
|
+
|
148
|
+
##
|
149
|
+
# @return [String] Origination address for this invoice line, if this line item was originated from a different address
|
150
|
+
attr_accessor :origin_address_region
|
151
|
+
|
152
|
+
##
|
153
|
+
# @return [String] Origination address for this invoice line, if this line item was originated from a different address
|
154
|
+
attr_accessor :origin_address_postal_code
|
155
|
+
|
156
|
+
##
|
157
|
+
# @return [String] Origination address for this invoice line, if this line item was originated from a different address This will be validated by the /api/v1/countries data set
|
158
|
+
attr_accessor :origin_address_country
|
159
|
+
|
160
|
+
##
|
161
|
+
# @return [Float] Origination address for this invoice line, if this line item was originated from a different address
|
162
|
+
attr_accessor :origin_address_latitude
|
163
|
+
|
164
|
+
##
|
165
|
+
# @return [Float] Origination address for this invoice line, if this line item was originated from a different address
|
166
|
+
attr_accessor :origin_address_longitude
|
167
|
+
|
168
|
+
##
|
169
|
+
# @return [String] Billing address for this invoice line, if this line item is to be billed to a different address
|
170
|
+
attr_accessor :bill_to_address_line1
|
171
|
+
|
172
|
+
##
|
173
|
+
# @return [String] Billing address for this invoice line, if this line item is to be billed to a different address
|
174
|
+
attr_accessor :bill_to_address_line2
|
175
|
+
|
176
|
+
##
|
177
|
+
# @return [String] Billing address for this invoice line, if this line item is to be billed to a different address
|
178
|
+
attr_accessor :bill_to_address_line3
|
179
|
+
|
180
|
+
##
|
181
|
+
# @return [String] Billing address for this invoice line, if this line item is to be billed to a different address
|
182
|
+
attr_accessor :bill_to_address_city
|
183
|
+
|
184
|
+
##
|
185
|
+
# @return [String] Billing address for this invoice line, if this line item is to be billed to a different address
|
186
|
+
attr_accessor :bill_to_address_region
|
187
|
+
|
188
|
+
##
|
189
|
+
# @return [String] Billing address for this invoice line, if this line item is to be billed to a different address
|
190
|
+
attr_accessor :bill_to_address_postal_code
|
191
|
+
|
192
|
+
##
|
193
|
+
# @return [String] Billing address for this invoice line, if this line item is to be billed to a different address This will be validated by the /api/v1/countries data set
|
194
|
+
attr_accessor :bill_to_address_country
|
195
|
+
|
196
|
+
##
|
197
|
+
# @return [Float] Billing address for this invoice line, if this line item is to be billed to a different address
|
198
|
+
attr_accessor :bill_to_address_latitude
|
199
|
+
|
200
|
+
##
|
201
|
+
# @return [Float] Billing address for this invoice line, if this line item is to be billed to a different address
|
202
|
+
attr_accessor :bill_to_address_longitude
|
203
|
+
|
204
|
+
##
|
205
|
+
# @return [String] Shipping address for this invoice line, if this line item is to be shipped to a different address
|
206
|
+
attr_accessor :ship_to_address_line1
|
207
|
+
|
208
|
+
##
|
209
|
+
# @return [String] Shipping address for this invoice line, if this line item is to be shipped to a different address
|
210
|
+
attr_accessor :ship_to_address_line2
|
211
|
+
|
212
|
+
##
|
213
|
+
# @return [String] Shipping address for this invoice line, if this line item is to be shipped to a different address
|
214
|
+
attr_accessor :ship_to_address_line3
|
215
|
+
|
216
|
+
##
|
217
|
+
# @return [String] Shipping address for this invoice line, if this line item is to be shipped to a different address
|
218
|
+
attr_accessor :ship_to_address_city
|
219
|
+
|
220
|
+
##
|
221
|
+
# @return [String] Shipping address for this invoice line, if this line item is to be shipped to a different address
|
222
|
+
attr_accessor :ship_to_address_region
|
223
|
+
|
224
|
+
##
|
225
|
+
# @return [String] Shipping address for this invoice line, if this line item is to be shipped to a different address
|
226
|
+
attr_accessor :ship_to_address_postal_code
|
227
|
+
|
228
|
+
##
|
229
|
+
# @return [String] Shipping address for this invoice line, if this line item is to be shipped to a different address This will be validated by the /api/v1/countries data set
|
230
|
+
attr_accessor :ship_to_address_country
|
231
|
+
|
232
|
+
##
|
233
|
+
# @return [Float] Shipping address for this invoice line, if this line item is to be shipped to a different address
|
234
|
+
attr_accessor :ship_to_address_latitude
|
235
|
+
|
236
|
+
##
|
237
|
+
# @return [Float] Shipping address for this invoice line, if this line item is to be shipped to a different address
|
238
|
+
attr_accessor :ship_to_address_longitude
|
239
|
+
|
240
|
+
##
|
241
|
+
# @return [Date-time] If known, the date when this record was created according to the originating financial system in which this record is maintained. If the originating financial system does not maintain a created-date, leave this field null.
|
242
|
+
attr_accessor :created
|
243
|
+
|
244
|
+
##
|
245
|
+
# @return [Date-time] If known, the date when this record was most recently modified according to the originating financial system in which this record is maintained. If the originating financial system does not maintain a most-recently-modified-date, leave this field null.
|
246
|
+
attr_accessor :modified
|
247
|
+
|
248
|
+
##
|
249
|
+
# @return [object] This object as a JSON key-value structure
|
250
|
+
def as_json(options={})
|
251
|
+
{
|
252
|
+
'erpKey' => @erp_key,
|
253
|
+
'invoiceErpKey' => @invoice_erp_key,
|
254
|
+
'lineNumber' => @line_number,
|
255
|
+
'productCode' => @product_code,
|
256
|
+
'description' => @description,
|
257
|
+
'unitMeasureCode' => @unit_measure_code,
|
258
|
+
'unitPrice' => @unit_price,
|
259
|
+
'quantity' => @quantity,
|
260
|
+
'quantityShipped' => @quantity_shipped,
|
261
|
+
'quantityReceived' => @quantity_received,
|
262
|
+
'totalAmount' => @total_amount,
|
263
|
+
'exemptionCode' => @exemption_code,
|
264
|
+
'reportingDate' => @reporting_date,
|
265
|
+
'originAddressLine1' => @origin_address_line1,
|
266
|
+
'originAddressLine2' => @origin_address_line2,
|
267
|
+
'originAddressLine3' => @origin_address_line3,
|
268
|
+
'originAddressCity' => @origin_address_city,
|
269
|
+
'originAddressRegion' => @origin_address_region,
|
270
|
+
'originAddressPostalCode' => @origin_address_postal_code,
|
271
|
+
'originAddressCountry' => @origin_address_country,
|
272
|
+
'originAddressLatitude' => @origin_address_latitude,
|
273
|
+
'originAddressLongitude' => @origin_address_longitude,
|
274
|
+
'billToAddressLine1' => @bill_to_address_line1,
|
275
|
+
'billToAddressLine2' => @bill_to_address_line2,
|
276
|
+
'billToAddressLine3' => @bill_to_address_line3,
|
277
|
+
'billToAddressCity' => @bill_to_address_city,
|
278
|
+
'billToAddressRegion' => @bill_to_address_region,
|
279
|
+
'billToAddressPostalCode' => @bill_to_address_postal_code,
|
280
|
+
'billToAddressCountry' => @bill_to_address_country,
|
281
|
+
'billToAddressLatitude' => @bill_to_address_latitude,
|
282
|
+
'billToAddressLongitude' => @bill_to_address_longitude,
|
283
|
+
'shipToAddressLine1' => @ship_to_address_line1,
|
284
|
+
'shipToAddressLine2' => @ship_to_address_line2,
|
285
|
+
'shipToAddressLine3' => @ship_to_address_line3,
|
286
|
+
'shipToAddressCity' => @ship_to_address_city,
|
287
|
+
'shipToAddressRegion' => @ship_to_address_region,
|
288
|
+
'shipToAddressPostalCode' => @ship_to_address_postal_code,
|
289
|
+
'shipToAddressCountry' => @ship_to_address_country,
|
290
|
+
'shipToAddressLatitude' => @ship_to_address_latitude,
|
291
|
+
'shipToAddressLongitude' => @ship_to_address_longitude,
|
292
|
+
'created' => @created,
|
293
|
+
'modified' => @modified,
|
294
|
+
}
|
295
|
+
end
|
296
|
+
|
297
|
+
##
|
298
|
+
# @return [String] This object converted to a JSON string
|
299
|
+
def to_json(*options)
|
300
|
+
"[#{as_json(*options).to_json(*options)}]"
|
301
|
+
end
|
302
|
+
end
|
303
|
+
end
|
@@ -10,7 +10,6 @@
|
|
10
10
|
# @author Manish Narayan B S <manish.n@lockstep.io>
|
11
11
|
# @author Rishi Rajkumar Jawahar <rjawahar@lockstep.io>
|
12
12
|
# @copyright 2021-2022 Lockstep, Inc.
|
13
|
-
# @version 2022.4
|
14
13
|
# @link https://github.com/Lockstep-Network/lockstep-sdk-ruby
|
15
14
|
#
|
16
15
|
|
@@ -100,7 +99,7 @@ module LockstepSdk
|
|
100
99
|
attr_accessor :erp_key
|
101
100
|
|
102
101
|
##
|
103
|
-
# @return [String] The purchase order
|
102
|
+
# @return [String] The "Purchase Order Code" is a code that is sometimes used by companies to refer to the original PO that was sent that caused this invoice to be written. If a customer sends a purchase order to a vendor, the vendor can then create an invoice and refer back to the originating purchase order using this field.
|
104
103
|
attr_accessor :purchase_order_code
|
105
104
|
|
106
105
|
##
|
@@ -112,19 +111,19 @@ module LockstepSdk
|
|
112
111
|
attr_accessor :salesperson_code
|
113
112
|
|
114
113
|
##
|
115
|
-
# @return [String] A
|
114
|
+
# @return [String] A name identifying the salesperson responsible for writing this quote, invoice, or order.
|
116
115
|
attr_accessor :salesperson_name
|
117
116
|
|
118
117
|
##
|
119
|
-
# @return [String] A code identifying the type of this invoice.
|
118
|
+
# @return [String] A code identifying the type of this invoice. Recognized Invoice types are: * `Invoice` - Represents an invoice sent by Company to the Customer * `AP Invoice` - Represents an invoice sent by Customer to the Company * `Credit Memo` - Represents a credit memo generated by Customer given to Company
|
120
119
|
attr_accessor :invoice_type_code
|
121
120
|
|
122
121
|
##
|
123
|
-
# @return [String] A code identifying the status of this invoice.
|
122
|
+
# @return [String] A code identifying the status of this invoice. Recognized Invoice status codes are: * `Open` - Represents an invoice that is considered open and needs more work to complete * `Closed` - Represents an invoice that is considered closed and resolved
|
124
123
|
attr_accessor :invoice_status_code
|
125
124
|
|
126
125
|
##
|
127
|
-
# @return [String] A code identifying the terms given to the purchaser.
|
126
|
+
# @return [String] A code identifying the terms given to the purchaser. This field is imported directly from the originating financial system and does not follow a specified format.
|
128
127
|
attr_accessor :terms_code
|
129
128
|
|
130
129
|
##
|