Sha256: c8f4364525606804b7f81340ee436d4bd16addf773a7c50b9d72742b8f0a6880

Contents?: true

Size: 615 Bytes

Versions: 6

Compression:

Stored size: 615 Bytes

Contents

require 'active_model'

class Kaui::Refund < Kaui::Base
  SAMPLE_REASON_CODES = [ "500 - Courtesy",
                          "501 - Billing Error",
                          "502 - Alt payment method",
                          "599 - OTHER" ]

  define_attr :refund_id
  define_attr :payment_id
  define_attr :adjusted
  define_attr :amount
  define_attr :currency
  define_attr :requested_date
  define_attr :effective_date
  define_attr :adjustment_type

  has_many :audit_logs, Kaui::AuditLog
  has_many :adjustments, Kaui::InvoiceItem

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kaui-0.1.18 app/models/kaui/refund.rb
kaui-0.1.17 app/models/kaui/refund.rb
kaui-0.1.16 app/models/kaui/refund.rb
kaui-0.1.15 app/models/kaui/refund.rb
kaui-0.1.14 app/models/kaui/refund.rb
kaui-0.1.12 app/models/kaui/refund.rb