Sha256: 4f8cb49d5cdf13e6a83b819cbf520052702270e7b71016e2508cabc7fe77d708
Contents?: true
Size: 695 Bytes
Versions: 4
Compression:
Stored size: 695 Bytes
Contents
class Kaui::Credit < Kaui::Base SAMPLE_REASON_CODES = [ "100 - Courtesy", "101 - Billing Error", "199 - OTHER" ] define_attr :account_id define_attr :invoice_id define_attr :credit_amount define_attr :requested_dt define_attr :effective_dt define_attr :comment define_attr :reason def initialize(data = {}) super(:account_id => data['accountId'] || data['account_id'], :invoice_id => data['invoiceId'] || data['invoice_id'], :credit_amount => data['creditAmount'] || data['credit_amount'], :requested_dt => data['requestedDate'], :effective_dt => data['effectiveDate']) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
kaui-0.0.7 | app/models/kaui/credit.rb |
kaui-0.0.6 | app/models/kaui/credit.rb |
kaui-0.0.5 | app/models/kaui/credit.rb |
kaui-0.0.4 | app/models/kaui/credit.rb |