Class: Beanie::PurchaseInvoice

Inherits:
Api
  • Object
show all
Defined in:
lib/beanie/purchase_invoice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Api

all, build_url, #construct_path, delete, #extract, #field_name, find, get, #object_name, #populate, post, put, #save!, set_headers

Constructor Details

#initializePurchaseInvoice

Initialize instance variables



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/beanie/purchase_invoice.rb', line 38

def initialize
  @id = nil
  @date = nil
  @due_date = nil
  @is_credit_note = nil
  @is_paid = nil
  @local_gross = nil
  @number = nil
  @original_invoice_id = nil
  @shipping = nil
  @sub_total = nil
  @tax = nil
  @tax_point = nil
  @purchase_order_id = nil
  @document_id = nil
end

Instance Attribute Details

#dateObject

Returns the value of attribute date.



32
33
34
# File 'lib/beanie/purchase_invoice.rb', line 32

def date
  @date
end

#document_idObject

Returns the value of attribute document_id.



34
35
36
# File 'lib/beanie/purchase_invoice.rb', line 34

def document_id
  @document_id
end

#due_dateObject

Returns the value of attribute due_date.



32
33
34
# File 'lib/beanie/purchase_invoice.rb', line 32

def due_date
  @due_date
end

#idObject

Returns the value of attribute id.



32
33
34
# File 'lib/beanie/purchase_invoice.rb', line 32

def id
  @id
end

#is_credit_noteObject

Returns the value of attribute is_credit_note.



32
33
34
# File 'lib/beanie/purchase_invoice.rb', line 32

def is_credit_note
  @is_credit_note
end

#is_paidObject

Returns the value of attribute is_paid.



32
33
34
# File 'lib/beanie/purchase_invoice.rb', line 32

def is_paid
  @is_paid
end

#local_grossObject

Returns the value of attribute local_gross.



32
33
34
# File 'lib/beanie/purchase_invoice.rb', line 32

def local_gross
  @local_gross
end

#numberObject

Returns the value of attribute number.



32
33
34
# File 'lib/beanie/purchase_invoice.rb', line 32

def number
  @number
end

#original_invoice_idObject

Returns the value of attribute original_invoice_id.



33
34
35
# File 'lib/beanie/purchase_invoice.rb', line 33

def original_invoice_id
  @original_invoice_id
end

#purchase_order_idObject

Returns the value of attribute purchase_order_id.



34
35
36
# File 'lib/beanie/purchase_invoice.rb', line 34

def purchase_order_id
  @purchase_order_id
end

#shippingObject

Returns the value of attribute shipping.



33
34
35
# File 'lib/beanie/purchase_invoice.rb', line 33

def shipping
  @shipping
end

#sub_totalObject

Returns the value of attribute sub_total.



33
34
35
# File 'lib/beanie/purchase_invoice.rb', line 33

def sub_total
  @sub_total
end

#taxObject

Returns the value of attribute tax.



33
34
35
# File 'lib/beanie/purchase_invoice.rb', line 33

def tax
  @tax
end

#tax_pointObject

Returns the value of attribute tax_point.



33
34
35
# File 'lib/beanie/purchase_invoice.rb', line 33

def tax_point
  @tax_point
end