Sha256: 05ae2b79a37418efa9b62d05b3aea7480dc1535de571e892cdd13483763083c6

Contents?: true

Size: 541 Bytes

Versions: 2

Compression:

Stored size: 541 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 :adjusted
  define_attr :refund_amount

  def initialize(data = {})
    super(:refund_id => data['refundId'] || data['refund_id'],
          :adjusted => data['adjusted'],
          :refund_amount => data['refundAmount'] || data['refund_amount'])
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
kaui-0.0.3 app/models/kaui/refund.rb
kaui-0.0.2 app/models/kaui/refund.rb