lib/xeroizer/models/invoice.rb in xeroizer-2.16.1 vs lib/xeroizer/models/invoice.rb in xeroizer-2.16.3
- old
+ new
@@ -4,9 +4,12 @@
module Record
class InvoiceModel < BaseModel
# To create a new invoice, use the folowing
# $xero_client.Invoice.build(type: 'ACCREC', ..., contact: {name: 'Foo Bar'},...)
+ # However for existing contacts, it is better to reference them by contactid (only)
+ # see http://developer.xero.com/documentation/api/contacts/
+ # $xero_client.Invoice.build(type: 'ACCREC', ..., contact: {contact_id: 'foo123-bar456-guid'},...)
# Note that we are not making an api request to xero just to get the contact
set_permissions :read, :write, :update
include AttachmentModel::Extensions