Class: LockstepSdk::InvoiceSyncModel
- Inherits:
-
Object
- Object
- LockstepSdk::InvoiceSyncModel
- Defined in:
- lib/lockstep_sdk/models/invoice_sync_model.rb
Overview
The InvoiceSyncModel represents information coming into Lockstep from an external financial system or other enterprise resource planning system. To import data from an external system, convert your original data into the InvoiceSyncModel format and call the [Upload Sync File API](developer.lockstep.io/reference/post_api-v1-sync-zip). This API retrieves all of the data you uploaded in a compressed ZIP file and imports it into the Lockstep platform.
Once imported, this record will be available in the Lockstep API as an [InvoiceModel](developer.lockstep.io/docs/invoicemodel).
For more information on writing your own connector, see [Connector Data](developer.lockstep.io/docs/connector-data).
Instance Attribute Summary collapse
-
#bill_to_address_city ⇒ String
The billing address for this invoice.
-
#bill_to_address_country ⇒ String
The billing address for this invoice This will be validated by the /api/v1/countries data set.
-
#bill_to_address_latitude ⇒ Float
The billing address for this invoice.
-
#bill_to_address_line1 ⇒ String
The billing address for this invoice.
-
#bill_to_address_line2 ⇒ String
The billing address for this invoice.
-
#bill_to_address_line3 ⇒ String
The billing address for this invoice.
-
#bill_to_address_longitude ⇒ Float
The billing address for this invoice.
-
#bill_to_address_postal_code ⇒ String
The billing address for this invoice.
-
#bill_to_address_region ⇒ String
The billing address for this invoice.
-
#company_erp_key ⇒ String
The original primary key or unique ID of the company to which this invoice belongs.
-
#created ⇒ Date-time
If known, the date when this record was created according to the originating financial system in which this record is maintained.
-
#currency_code ⇒ String
The three-character ISO 4217 currency code used for this invoice.
-
#customer_erp_key ⇒ String
The original primary key or unique ID of the company to which this invoice was sent.
-
#discount_amount ⇒ Double
The total discounts given by the seller to the buyer on this invoice.
-
#discount_date ⇒ Date-time
The date when discounts were adjusted for this invoice.
-
#erp_key ⇒ String
This is the primary key of the Invoice record.
-
#imported_date ⇒ Date-time
The date and time when this record was imported from the user’s ERP or accounting system.
-
#in_dispute ⇒ Boolean
Is the invoice in dispute? If not specified, we assume the invoice is not in dispute.
-
#invoice_closed_date ⇒ Date-time
The date when the invoice was closed and finalized after completion of all payments and delivery of all products and services.
-
#invoice_date ⇒ Date-time
The reporting date for this invoice.
-
#invoice_status_code ⇒ String
A code identifying the status of this invoice.
-
#invoice_type_code ⇒ String
A code identifying the type of this invoice.
-
#is_voided ⇒ Boolean
Is the invoice voided? If not specified, we assume the invoice is not voided.
-
#modified ⇒ 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.
-
#origin_address_city ⇒ String
The origination address for this invoice.
-
#origin_address_country ⇒ String
The origination address for this invoice This will be validated by the /api/v1/countries data set.
-
#origin_address_latitude ⇒ Float
The origination address for this invoice.
-
#origin_address_line1 ⇒ String
The origination address for this invoice.
-
#origin_address_line2 ⇒ String
The origination address for this invoice.
-
#origin_address_line3 ⇒ String
The origination address for this invoice.
-
#origin_address_longitude ⇒ Float
The origination address for this invoice.
-
#origin_address_postal_code ⇒ String
The origination address for this invoice.
-
#origin_address_region ⇒ String
The origination address for this invoice.
-
#outstanding_balance_amount ⇒ Double
The remaining balance value of this invoice.
-
#payment_due_date ⇒ Date-time
The date when the remaining outstanding balance is due.
-
#posted_date ⇒ Date-time
The date when this invoice posted to the company’s general ledger.
-
#purchase_order_code ⇒ 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.
-
#reference_code ⇒ String
An additional reference code that is sometimes used to identify this invoice.
-
#sales_tax_amount ⇒ Double
The total sales (or transactional) tax calculated for this invoice.
-
#salesperson_code ⇒ String
A code identifying the salesperson responsible for writing this quote, invoice, or order.
-
#salesperson_name ⇒ String
The name of the salesperson that wrote this invoice.
-
#ship_to_address_city ⇒ String
The shipping address for this invoice.
-
#ship_to_address_country ⇒ String
The shipping address for this invoice This will be validated by the /api/v1/countries data set.
-
#ship_to_address_latitude ⇒ Float
The shipping address for this invoice.
-
#ship_to_address_line1 ⇒ String
The shipping address for this invoice.
-
#ship_to_address_line2 ⇒ String
The shipping address for this invoice.
-
#ship_to_address_line3 ⇒ String
The shipping address for this invoice.
-
#ship_to_address_longitude ⇒ Float
The shipping address for this invoice.
-
#ship_to_address_postal_code ⇒ String
The shipping address for this invoice.
-
#ship_to_address_region ⇒ String
The shipping address for this invoice.
-
#special_terms ⇒ String
If the customer negotiated any special terms different from the standard terms above, describe them here.
-
#terms_code ⇒ String
A code identifying the terms given to the purchaser.
-
#total_amount ⇒ Double
The total value of this invoice, inclusive of all taxes and line items.
Instance Method Summary collapse
-
#as_json(options = {}) ⇒ object
This object as a JSON key-value structure.
-
#initialize(params = {}) ⇒ InvoiceSyncModel
constructor
Initialize the InvoiceSyncModel using the provided prototype.
-
#to_json(*options) ⇒ String
This object converted to a JSON string.
Constructor Details
#initialize(params = {}) ⇒ InvoiceSyncModel
Initialize the InvoiceSyncModel using the provided prototype
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 35 def initialize(params = {}) @erp_key = params.dig(:erp_key) @company_erp_key = params.dig(:company_erp_key) @customer_erp_key = params.dig(:customer_erp_key) @salesperson_name = params.dig(:salesperson_name) @purchase_order_code = params.dig(:purchase_order_code) @reference_code = params.dig(:reference_code) @salesperson_code = params.dig(:salesperson_code) @invoice_type_code = params.dig(:invoice_type_code) @invoice_status_code = params.dig(:invoice_status_code) @terms_code = params.dig(:terms_code) @special_terms = params.dig(:special_terms) @currency_code = params.dig(:currency_code) @total_amount = params.dig(:total_amount) @sales_tax_amount = params.dig(:sales_tax_amount) @discount_amount = params.dig(:discount_amount) @outstanding_balance_amount = params.dig(:outstanding_balance_amount) @invoice_date = params.dig(:invoice_date) @discount_date = params.dig(:discount_date) @posted_date = params.dig(:posted_date) @invoice_closed_date = params.dig(:invoice_closed_date) @payment_due_date = params.dig(:payment_due_date) @imported_date = params.dig(:imported_date) @origin_address_line1 = params.dig(:origin_address_line1) @origin_address_line2 = params.dig(:origin_address_line2) @origin_address_line3 = params.dig(:origin_address_line3) @origin_address_city = params.dig(:origin_address_city) @origin_address_region = params.dig(:origin_address_region) @origin_address_postal_code = params.dig(:origin_address_postal_code) @origin_address_country = params.dig(:origin_address_country) @origin_address_latitude = params.dig(:origin_address_latitude) @origin_address_longitude = params.dig(:origin_address_longitude) @bill_to_address_line1 = params.dig(:bill_to_address_line1) @bill_to_address_line2 = params.dig(:bill_to_address_line2) @bill_to_address_line3 = params.dig(:bill_to_address_line3) @bill_to_address_city = params.dig(:bill_to_address_city) @bill_to_address_region = params.dig(:bill_to_address_region) @bill_to_address_postal_code = params.dig(:bill_to_address_postal_code) @bill_to_address_country = params.dig(:bill_to_address_country) @bill_to_address_latitude = params.dig(:bill_to_address_latitude) @bill_to_address_longitude = params.dig(:bill_to_address_longitude) @ship_to_address_line1 = params.dig(:ship_to_address_line1) @ship_to_address_line2 = params.dig(:ship_to_address_line2) @ship_to_address_line3 = params.dig(:ship_to_address_line3) @ship_to_address_city = params.dig(:ship_to_address_city) @ship_to_address_region = params.dig(:ship_to_address_region) @ship_to_address_postal_code = params.dig(:ship_to_address_postal_code) @ship_to_address_country = params.dig(:ship_to_address_country) @ship_to_address_latitude = params.dig(:ship_to_address_latitude) @ship_to_address_longitude = params.dig(:ship_to_address_longitude) @created = params.dig(:created) @modified = params.dig(:modified) @is_voided = params.dig(:is_voided) @in_dispute = params.dig(:in_dispute) end |
Instance Attribute Details
#bill_to_address_city ⇒ String
Returns The billing address for this invoice.
229 230 231 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 229 def bill_to_address_city @bill_to_address_city end |
#bill_to_address_country ⇒ String
Returns The billing address for this invoice This will be validated by the /api/v1/countries data set.
241 242 243 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 241 def bill_to_address_country @bill_to_address_country end |
#bill_to_address_latitude ⇒ Float
Returns The billing address for this invoice.
245 246 247 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 245 def bill_to_address_latitude @bill_to_address_latitude end |
#bill_to_address_line1 ⇒ String
Returns The billing address for this invoice.
217 218 219 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 217 def bill_to_address_line1 @bill_to_address_line1 end |
#bill_to_address_line2 ⇒ String
Returns The billing address for this invoice.
221 222 223 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 221 def bill_to_address_line2 @bill_to_address_line2 end |
#bill_to_address_line3 ⇒ String
Returns The billing address for this invoice.
225 226 227 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 225 def bill_to_address_line3 @bill_to_address_line3 end |
#bill_to_address_longitude ⇒ Float
Returns The billing address for this invoice.
249 250 251 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 249 def bill_to_address_longitude @bill_to_address_longitude end |
#bill_to_address_postal_code ⇒ String
Returns The billing address for this invoice.
237 238 239 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 237 def bill_to_address_postal_code @bill_to_address_postal_code end |
#bill_to_address_region ⇒ String
Returns The billing address for this invoice.
233 234 235 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 233 def bill_to_address_region @bill_to_address_region end |
#company_erp_key ⇒ String
Returns The original primary key or unique ID of the company to which this invoice belongs. This value should match the [Company ErpKey](developer.lockstep.io/docs/importing-companies#erpkey) field on the [CompanySyncModel](developer.lockstep.io/docs/importing-companies). An Invoice has two relationships: The Company and the Customer. The field ‘CompanyErpKey` identifies the company that created the invoice, and the field `CustomerErpKey` is the customer to whom the invoice was sent.
97 98 99 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 97 def company_erp_key @company_erp_key end |
#created ⇒ Date-time
Returns 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.
289 290 291 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 289 def created @created end |
#currency_code ⇒ String
Returns The three-character ISO 4217 currency code used for this invoice. This will be validated by the /api/v1/currencies data set.
137 138 139 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 137 def currency_code @currency_code end |
#customer_erp_key ⇒ String
Returns The original primary key or unique ID of the company to which this invoice was sent. This value should match the [Company ErpKey](developer.lockstep.io/docs/importing-companies#erpkey) field on the [CompanySyncModel](developer.lockstep.io/docs/importing-companies). An Invoice has two relationships: The Company and the Customer. The field ‘CompanyErpKey` identifies the company that created the invoice, and the field `CustomerErpKey` is the customer to whom the invoice was sent.
101 102 103 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 101 def customer_erp_key @customer_erp_key end |
#discount_amount ⇒ Double
Returns The total discounts given by the seller to the buyer on this invoice.
149 150 151 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 149 def discount_amount @discount_amount end |
#discount_date ⇒ Date-time
Returns The date when discounts were adjusted for this invoice.
161 162 163 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 161 def discount_date @discount_date end |
#erp_key ⇒ String
Returns This is the primary key of the Invoice record. For this field, you should use whatever the invoice’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 records in a database, whatever the primary key for the invoice table is in the database should be the “ErpKey”. For more information, see [Identity Columns](developer.lockstep.io/docs/identity-columns).
93 94 95 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 93 def erp_key @erp_key end |
#imported_date ⇒ Date-time
Returns The date and time when this record was imported from the user’s ERP or accounting system.
177 178 179 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 177 def imported_date @imported_date end |
#in_dispute ⇒ Boolean
Returns Is the invoice in dispute? If not specified, we assume the invoice is not in dispute.
301 302 303 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 301 def in_dispute @in_dispute end |
#invoice_closed_date ⇒ Date-time
Returns The date when the invoice was closed and finalized after completion of all payments and delivery of all products and services.
169 170 171 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 169 def invoice_closed_date @invoice_closed_date end |
#invoice_date ⇒ Date-time
Returns The reporting date for this invoice.
157 158 159 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 157 def invoice_date @invoice_date end |
#invoice_status_code ⇒ String
Returns 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.
125 126 127 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 125 def invoice_status_code @invoice_status_code end |
#invoice_type_code ⇒ String
Returns 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.
121 122 123 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 121 def invoice_type_code @invoice_type_code end |
#is_voided ⇒ Boolean
Returns Is the invoice voided? If not specified, we assume the invoice is not voided.
297 298 299 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 297 def is_voided @is_voided end |
#modified ⇒ Date-time
Returns 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.
293 294 295 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 293 def modified @modified end |
#origin_address_city ⇒ String
Returns The origination address for this invoice.
193 194 195 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 193 def origin_address_city @origin_address_city end |
#origin_address_country ⇒ String
Returns The origination address for this invoice This will be validated by the /api/v1/countries data set.
205 206 207 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 205 def origin_address_country @origin_address_country end |
#origin_address_latitude ⇒ Float
Returns The origination address for this invoice.
209 210 211 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 209 def origin_address_latitude @origin_address_latitude end |
#origin_address_line1 ⇒ String
Returns The origination address for this invoice.
181 182 183 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 181 def origin_address_line1 @origin_address_line1 end |
#origin_address_line2 ⇒ String
Returns The origination address for this invoice.
185 186 187 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 185 def origin_address_line2 @origin_address_line2 end |
#origin_address_line3 ⇒ String
Returns The origination address for this invoice.
189 190 191 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 189 def origin_address_line3 @origin_address_line3 end |
#origin_address_longitude ⇒ Float
Returns The origination address for this invoice.
213 214 215 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 213 def origin_address_longitude @origin_address_longitude end |
#origin_address_postal_code ⇒ String
Returns The origination address for this invoice.
201 202 203 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 201 def origin_address_postal_code @origin_address_postal_code end |
#origin_address_region ⇒ String
Returns The origination address for this invoice.
197 198 199 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 197 def origin_address_region @origin_address_region end |
#outstanding_balance_amount ⇒ Double
Returns The remaining balance value of this invoice.
153 154 155 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 153 def outstanding_balance_amount @outstanding_balance_amount end |
#payment_due_date ⇒ Date-time
Returns The date when the remaining outstanding balance is due.
173 174 175 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 173 def payment_due_date @payment_due_date end |
#posted_date ⇒ Date-time
Returns The date when this invoice posted to the company’s general ledger.
165 166 167 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 165 def posted_date @posted_date end |
#purchase_order_code ⇒ String
Returns 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.
109 110 111 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 109 def purchase_order_code @purchase_order_code end |
#reference_code ⇒ String
Returns 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.
113 114 115 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 113 def reference_code @reference_code end |
#sales_tax_amount ⇒ Double
Returns The total sales (or transactional) tax calculated for this invoice.
145 146 147 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 145 def sales_tax_amount @sales_tax_amount end |
#salesperson_code ⇒ String
Returns A code identifying the salesperson responsible for writing this quote, invoice, or order. This is just text, it is not a reference to the “Contacts” table. You will not receive an error if this field does not match a known contact person.
117 118 119 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 117 def salesperson_code @salesperson_code end |
#salesperson_name ⇒ String
Returns The name of the salesperson that wrote this invoice. This is just text, it is not a reference to the “Contacts” table. You will not receive an error if this field does not match a known contact person.
105 106 107 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 105 def salesperson_name @salesperson_name end |
#ship_to_address_city ⇒ String
Returns The shipping address for this invoice.
265 266 267 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 265 def ship_to_address_city @ship_to_address_city end |
#ship_to_address_country ⇒ String
Returns The shipping address for this invoice This will be validated by the /api/v1/countries data set.
277 278 279 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 277 def ship_to_address_country @ship_to_address_country end |
#ship_to_address_latitude ⇒ Float
Returns The shipping address for this invoice.
281 282 283 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 281 def ship_to_address_latitude @ship_to_address_latitude end |
#ship_to_address_line1 ⇒ String
Returns The shipping address for this invoice.
253 254 255 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 253 def ship_to_address_line1 @ship_to_address_line1 end |
#ship_to_address_line2 ⇒ String
Returns The shipping address for this invoice.
257 258 259 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 257 def ship_to_address_line2 @ship_to_address_line2 end |
#ship_to_address_line3 ⇒ String
Returns The shipping address for this invoice.
261 262 263 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 261 def ship_to_address_line3 @ship_to_address_line3 end |
#ship_to_address_longitude ⇒ Float
Returns The shipping address for this invoice.
285 286 287 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 285 def ship_to_address_longitude @ship_to_address_longitude end |
#ship_to_address_postal_code ⇒ String
Returns The shipping address for this invoice.
273 274 275 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 273 def ship_to_address_postal_code @ship_to_address_postal_code end |
#ship_to_address_region ⇒ String
Returns The shipping address for this invoice.
269 270 271 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 269 def ship_to_address_region @ship_to_address_region end |
#special_terms ⇒ String
Returns If the customer negotiated any special terms different from the standard terms above, describe them here.
133 134 135 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 133 def special_terms @special_terms end |
#terms_code ⇒ String
Returns 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.
129 130 131 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 129 def terms_code @terms_code end |
#total_amount ⇒ Double
Returns The total value of this invoice, inclusive of all taxes and line items.
141 142 143 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 141 def total_amount @total_amount end |
Instance Method Details
#as_json(options = {}) ⇒ object
Returns This object as a JSON key-value structure.
305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 305 def as_json(={}) { 'erpKey' => @erp_key, 'companyErpKey' => @company_erp_key, 'customerErpKey' => @customer_erp_key, 'salespersonName' => @salesperson_name, 'purchaseOrderCode' => @purchase_order_code, 'referenceCode' => @reference_code, 'salespersonCode' => @salesperson_code, 'invoiceTypeCode' => @invoice_type_code, 'invoiceStatusCode' => @invoice_status_code, 'termsCode' => @terms_code, 'specialTerms' => @special_terms, 'currencyCode' => @currency_code, 'totalAmount' => @total_amount, 'salesTaxAmount' => @sales_tax_amount, 'discountAmount' => @discount_amount, 'outstandingBalanceAmount' => @outstanding_balance_amount, 'invoiceDate' => @invoice_date, 'discountDate' => @discount_date, 'postedDate' => @posted_date, 'invoiceClosedDate' => @invoice_closed_date, 'paymentDueDate' => @payment_due_date, 'importedDate' => @imported_date, 'originAddressLine1' => @origin_address_line1, 'originAddressLine2' => @origin_address_line2, 'originAddressLine3' => @origin_address_line3, 'originAddressCity' => @origin_address_city, 'originAddressRegion' => @origin_address_region, 'originAddressPostalCode' => @origin_address_postal_code, 'originAddressCountry' => @origin_address_country, 'originAddressLatitude' => @origin_address_latitude, 'originAddressLongitude' => @origin_address_longitude, 'billToAddressLine1' => @bill_to_address_line1, 'billToAddressLine2' => @bill_to_address_line2, 'billToAddressLine3' => @bill_to_address_line3, 'billToAddressCity' => @bill_to_address_city, 'billToAddressRegion' => @bill_to_address_region, 'billToAddressPostalCode' => @bill_to_address_postal_code, 'billToAddressCountry' => @bill_to_address_country, 'billToAddressLatitude' => @bill_to_address_latitude, 'billToAddressLongitude' => @bill_to_address_longitude, 'shipToAddressLine1' => @ship_to_address_line1, 'shipToAddressLine2' => @ship_to_address_line2, 'shipToAddressLine3' => @ship_to_address_line3, 'shipToAddressCity' => @ship_to_address_city, 'shipToAddressRegion' => @ship_to_address_region, 'shipToAddressPostalCode' => @ship_to_address_postal_code, 'shipToAddressCountry' => @ship_to_address_country, 'shipToAddressLatitude' => @ship_to_address_latitude, 'shipToAddressLongitude' => @ship_to_address_longitude, 'created' => @created, 'modified' => @modified, 'isVoided' => @is_voided, 'inDispute' => @in_dispute, } end |
#to_json(*options) ⇒ String
Returns This object converted to a JSON string.
365 366 367 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 365 def to_json(*) "[#{as_json(*).to_json(*)}]" end |