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
-
#base_currency_discount_amount ⇒ Double
The total discounts given by the seller to the buyer on this invoice in the erp’s base currency.
-
#base_currency_outstanding_balance_amount ⇒ Double
The remaining balance value of this invoice in the erp’s base currency.
-
#base_currency_sales_tax_amount ⇒ Double
The total sales (or transactional) tax calculated for this invoice in the erp’s base currency.
-
#base_currency_total_amount ⇒ Double
The total value of this invoice, inclusive of all taxes and line items in the erp’s base currency.
-
#bill_to_address_city ⇒ String
The billing address for this invoice.
-
#bill_to_address_country ⇒ String
The billing address for this invoice.
-
#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.
-
#currency_rate ⇒ Double
The Currency Rate used to get from the account’s base currency to the invoice amount.
-
#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 in the invoice currency.
-
#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.
-
#on_match_action ⇒ MatchAction
Indicates what action to take when an existing object has been found during the sync process.
-
#origin_address_city ⇒ String
The origination address for this invoice.
-
#origin_address_country ⇒ String
The origination address for this invoice.
-
#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 in the invoice currency.
-
#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.
-
#preferred_delivery_method ⇒ String
Indicates the preferred delivery method for this invoice.
-
#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 in the invoice currency.
-
#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.
-
#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 in the invoice currency.
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
33 34 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 90 91 92 93 94 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 33 def initialize(params = {}) @on_match_action = params.dig(:on_match_action) @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) @preferred_delivery_method = params.dig(:preferred_delivery_method) @currency_rate = params.dig(:currency_rate) @base_currency_total_amount = params.dig(:base_currency_total_amount) @base_currency_sales_tax_amount = params.dig(:base_currency_sales_tax_amount) @base_currency_discount_amount = params.dig(:base_currency_discount_amount) @base_currency_outstanding_balance_amount = params.dig(:base_currency_outstanding_balance_amount) end |
Instance Attribute Details
#base_currency_discount_amount ⇒ Double
Returns The total discounts given by the seller to the buyer on this invoice in the erp’s base currency.
330 331 332 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 330 def base_currency_discount_amount @base_currency_discount_amount end |
#base_currency_outstanding_balance_amount ⇒ Double
Returns The remaining balance value of this invoice in the erp’s base currency.
334 335 336 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 334 def base_currency_outstanding_balance_amount @base_currency_outstanding_balance_amount end |
#base_currency_sales_tax_amount ⇒ Double
Returns The total sales (or transactional) tax calculated for this invoice in the erp’s base currency.
326 327 328 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 326 def base_currency_sales_tax_amount @base_currency_sales_tax_amount end |
#base_currency_total_amount ⇒ Double
Returns The total value of this invoice, inclusive of all taxes and line items in the erp’s base currency.
322 323 324 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 322 def base_currency_total_amount @base_currency_total_amount end |
#bill_to_address_city ⇒ String
Returns The billing address for this invoice.
238 239 240 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 238 def bill_to_address_city @bill_to_address_city end |
#bill_to_address_country ⇒ String
Returns The billing address for this invoice.
250 251 252 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 250 def bill_to_address_country @bill_to_address_country end |
#bill_to_address_latitude ⇒ Float
Returns The billing address for this invoice.
254 255 256 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 254 def bill_to_address_latitude @bill_to_address_latitude end |
#bill_to_address_line1 ⇒ String
Returns The billing address for this invoice.
226 227 228 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 226 def bill_to_address_line1 @bill_to_address_line1 end |
#bill_to_address_line2 ⇒ String
Returns The billing address for this invoice.
230 231 232 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 230 def bill_to_address_line2 @bill_to_address_line2 end |
#bill_to_address_line3 ⇒ String
Returns The billing address for this invoice.
234 235 236 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 234 def bill_to_address_line3 @bill_to_address_line3 end |
#bill_to_address_longitude ⇒ Float
Returns The billing address for this invoice.
258 259 260 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 258 def bill_to_address_longitude @bill_to_address_longitude end |
#bill_to_address_postal_code ⇒ String
Returns The billing address for this invoice.
246 247 248 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 246 def bill_to_address_postal_code @bill_to_address_postal_code end |
#bill_to_address_region ⇒ String
Returns The billing address for this invoice.
242 243 244 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 242 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.
106 107 108 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 106 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.
298 299 300 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 298 def created @created end |
#currency_code ⇒ String
Returns The three-character ISO 4217 currency code used for this invoice.
146 147 148 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 146 def currency_code @currency_code end |
#currency_rate ⇒ Double
Returns The Currency Rate used to get from the account’s base currency to the invoice amount.
318 319 320 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 318 def currency_rate @currency_rate 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.
110 111 112 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 110 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 in the invoice currency.
158 159 160 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 158 def discount_amount @discount_amount end |
#discount_date ⇒ Date-time
Returns The date when discounts were adjusted for this invoice.
170 171 172 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 170 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).
102 103 104 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 102 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.
186 187 188 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 186 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.
310 311 312 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 310 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.
178 179 180 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 178 def invoice_closed_date @invoice_closed_date end |
#invoice_date ⇒ Date-time
Returns The reporting date for this invoice.
166 167 168 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 166 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.
134 135 136 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 134 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: * ‘AR Invoice` - Represents an invoice sent by Company to the Customer * `AP Invoice` - Represents an invoice sent by Vendor to the Company * `AR Credit Memo` - Represents a credit memo generated by Company given to Customer * `AP Credit Memo` - Represents a credit memo generated by Vendor given to Company.
130 131 132 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 130 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.
306 307 308 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 306 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.
302 303 304 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 302 def modified @modified end |
#on_match_action ⇒ MatchAction
Returns Indicates what action to take when an existing object has been found during the sync process.
98 99 100 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 98 def on_match_action @on_match_action end |
#origin_address_city ⇒ String
Returns The origination address for this invoice.
202 203 204 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 202 def origin_address_city @origin_address_city end |
#origin_address_country ⇒ String
Returns The origination address for this invoice.
214 215 216 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 214 def origin_address_country @origin_address_country end |
#origin_address_latitude ⇒ Float
Returns The origination address for this invoice.
218 219 220 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 218 def origin_address_latitude @origin_address_latitude end |
#origin_address_line1 ⇒ String
Returns The origination address for this invoice.
190 191 192 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 190 def origin_address_line1 @origin_address_line1 end |
#origin_address_line2 ⇒ String
Returns The origination address for this invoice.
194 195 196 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 194 def origin_address_line2 @origin_address_line2 end |
#origin_address_line3 ⇒ String
Returns The origination address for this invoice.
198 199 200 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 198 def origin_address_line3 @origin_address_line3 end |
#origin_address_longitude ⇒ Float
Returns The origination address for this invoice.
222 223 224 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 222 def origin_address_longitude @origin_address_longitude end |
#origin_address_postal_code ⇒ String
Returns The origination address for this invoice.
210 211 212 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 210 def origin_address_postal_code @origin_address_postal_code end |
#origin_address_region ⇒ String
Returns The origination address for this invoice.
206 207 208 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 206 def origin_address_region @origin_address_region end |
#outstanding_balance_amount ⇒ Double
Returns The remaining balance value of this invoice in the invoice currency.
162 163 164 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 162 def outstanding_balance_amount @outstanding_balance_amount end |
#payment_due_date ⇒ Date-time
Returns The date when the remaining outstanding balance is due.
182 183 184 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 182 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.
174 175 176 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 174 def posted_date @posted_date end |
#preferred_delivery_method ⇒ String
Returns Indicates the preferred delivery method for this invoice. Examples include Print, Email, Fax.
314 315 316 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 314 def preferred_delivery_method @preferred_delivery_method 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.
118 119 120 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 118 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.
122 123 124 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 122 def reference_code @reference_code end |
#sales_tax_amount ⇒ Double
Returns The total sales (or transactional) tax calculated for this invoice in the invoice currency.
154 155 156 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 154 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.
126 127 128 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 126 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.
114 115 116 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 114 def salesperson_name @salesperson_name end |
#ship_to_address_city ⇒ String
Returns The shipping address for this invoice.
274 275 276 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 274 def ship_to_address_city @ship_to_address_city end |
#ship_to_address_country ⇒ String
Returns The shipping address for this invoice.
286 287 288 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 286 def ship_to_address_country @ship_to_address_country end |
#ship_to_address_latitude ⇒ Float
Returns The shipping address for this invoice.
290 291 292 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 290 def ship_to_address_latitude @ship_to_address_latitude end |
#ship_to_address_line1 ⇒ String
Returns The shipping address for this invoice.
262 263 264 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 262 def ship_to_address_line1 @ship_to_address_line1 end |
#ship_to_address_line2 ⇒ String
Returns The shipping address for this invoice.
266 267 268 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 266 def ship_to_address_line2 @ship_to_address_line2 end |
#ship_to_address_line3 ⇒ String
Returns The shipping address for this invoice.
270 271 272 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 270 def ship_to_address_line3 @ship_to_address_line3 end |
#ship_to_address_longitude ⇒ Float
Returns The shipping address for this invoice.
294 295 296 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 294 def ship_to_address_longitude @ship_to_address_longitude end |
#ship_to_address_postal_code ⇒ String
Returns The shipping address for this invoice.
282 283 284 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 282 def ship_to_address_postal_code @ship_to_address_postal_code end |
#ship_to_address_region ⇒ String
Returns The shipping address for this invoice.
278 279 280 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 278 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.
142 143 144 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 142 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.
138 139 140 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 138 def terms_code @terms_code end |
#total_amount ⇒ Double
Returns The total value of this invoice, inclusive of all taxes and line items in the invoice currency.
150 151 152 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 150 def total_amount @total_amount end |
Instance Method Details
#as_json(options = {}) ⇒ object
Returns This object as a JSON key-value structure.
338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 338 def as_json(={}) { 'onMatchAction' => @on_match_action, '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, 'preferredDeliveryMethod' => @preferred_delivery_method, 'currencyRate' => @currency_rate, 'baseCurrencyTotalAmount' => @base_currency_total_amount, 'baseCurrencySalesTaxAmount' => @base_currency_sales_tax_amount, 'baseCurrencyDiscountAmount' => @base_currency_discount_amount, 'baseCurrencyOutstandingBalanceAmount' => @base_currency_outstanding_balance_amount, } end |
#to_json(*options) ⇒ String
Returns This object converted to a JSON string.
405 406 407 |
# File 'lib/lockstep_sdk/models/invoice_sync_model.rb', line 405 def to_json(*) "[#{as_json(*).to_json(*)}]" end |