Sha256: 90a26f88124c101647c6586a1ffeebd84e58c81b5f37306eff17e4907a136544

Contents?: true

Size: 413 Bytes

Versions: 21

Compression:

Stored size: 413 Bytes

Contents

class Kaui::InvoiceItem < KillBillClient::Model::InvoiceItem

  SAMPLE_REASON_CODES = ['100 - Courtesy',
                         '101 - Billing Error',
                         '199 - OTHER']

  def amount_to_money
    Kaui::Base.to_money(amount, currency)
  end

  def self.amount_to_money(invoice_item)
    self.new(:amount => invoice_item.amount, :currency => invoice_item.currency).amount_to_money
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
kaui-0.15.5 app/models/kaui/invoice_item.rb
kaui-0.15.4 app/models/kaui/invoice_item.rb
kaui-0.15.3 app/models/kaui/invoice_item.rb
kaui-0.15.2 app/models/kaui/invoice_item.rb
kaui-0.15.1 app/models/kaui/invoice_item.rb
kaui-0.15.0 app/models/kaui/invoice_item.rb
kaui-0.14.2 app/models/kaui/invoice_item.rb
kaui-0.14.1 app/models/kaui/invoice_item.rb
kaui-0.14.0 app/models/kaui/invoice_item.rb
kaui-0.12.0 app/models/kaui/invoice_item.rb
kaui-0.11.0 app/models/kaui/invoice_item.rb
kaui-0.10.0 app/models/kaui/invoice_item.rb
kaui-0.9.0 app/models/kaui/invoice_item.rb
kaui-0.8.4 app/models/kaui/invoice_item.rb
kaui-0.8.3 app/models/kaui/invoice_item.rb
kaui-0.8.2 app/models/kaui/invoice_item.rb
kaui-0.8.1 app/models/kaui/invoice_item.rb
kaui-0.8.0 app/models/kaui/invoice_item.rb
kaui-0.7.2 app/models/kaui/invoice_item.rb
kaui-0.7.1 app/models/kaui/invoice_item.rb