Sha256: e9669effae195cb08f4e276f95acd2472fe067fa0cea5d530bdcb18ffb90e856

Contents?: true

Size: 771 Bytes

Versions: 5

Compression:

Stored size: 771 Bytes

Contents

require 'active_model'

class Kaui::Payment < Kaui::Base

  SAMPLE_REASON_CODES = [ "600 - Alt payment method",
                          "699 - OTHER" ]

  define_attr :account_id
  define_attr :amount
  define_attr :currency
  define_attr :invoice_id
  define_attr :effective_date
  define_attr :paid_amount
  define_attr :payment_id
  define_attr :payment_method_id
  define_attr :refund_amount
  define_attr :requested_date
  define_attr :retry_count
  define_attr :status
  define_attr :bundle_keys
  define_attr :ext_first_payment_id_ref
  define_attr :ext_second_payment_id_ref
  define_attr :gateway_error_code
  define_attr :gateway_error_msg

  has_many :refunds, Kaui::Refund
  has_many :chargebacks, Kaui::Chargeback
  has_many :audit_logs, Kaui::AuditLog
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kaui-0.1.6 app/models/kaui/payment.rb
kaui-0.1.5 app/models/kaui/payment.rb
kaui-0.1.4 app/models/kaui/payment.rb
kaui-0.1.3 app/models/kaui/payment.rb
kaui-0.1.2 app/models/kaui/payment.rb