Class: Invoicer::BlinksaleInvoice
- Inherits:
-
Object
- Object
- Invoicer::BlinksaleInvoice
- Defined in:
- lib/services/blinksale/invoice.rb
Class Method Summary collapse
Class Method Details
.from_blinksale(blinksale_invoice) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/services/blinksale/invoice.rb', line 3 def self.from_blinksale(blinksale_invoice) Invoice.new( :id => blinksale_invoice.id, :number => blinksale_invoice.number, :total_amount => blinksale_invoice.total_amount, :due_amount => blinksale_invoice.due_amount, :issued_on => blinksale_invoice.issued_on, :due_on => blinksale_invoice.due_on, :currency => blinksale_invoice.currency, :service => :blinksale ) end |