lib/caren/store/invoice.rb in caren-api-0.5.3 vs lib/caren/store/invoice.rb in caren-api-0.5.4
- old
+ new
@@ -1,9 +1,10 @@
class Caren::Store::Invoice < Caren::Base
def self.keys
[:id, # Integer (Caren id)
+ :external_id, # Integer (Your id)
:person_id, # Integer (Caren person id)
:reference, # String
:requires_account, # Boolean
:requires_payment, # Boolean
:access_token, # String
@@ -58,9 +59,10 @@
# make sure we have the correct address nodes here
billing_address.purpose = 'billing' if billing_address
shipping_address.purpose = 'shipping' if shipping_address
{
+ :external_id => self.external_id,
:person_id => self.person_id,
:reference => self.reference,
:requires_account => self.requires_account,
:requires_payment => self.requires_payment,
:customer_email => self.customer_email,