Sha256: 202e2cd8391422ab28928112eda7b6c8c17a46d2c382d54b8906de4d350ea3db
Contents?: true
Size: 947 Bytes
Versions: 11
Compression:
Stored size: 947 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 define_attr :external has_many :refunds, Kaui::Refund has_many :chargebacks, Kaui::Chargeback has_many :audit_logs, Kaui::AuditLog def amount_to_money Kaui::Base.to_money(amount, currency) end def paid_amount_to_money Kaui::Base.to_money(paid_amount, currency) end end
Version data entries
11 entries across 11 versions & 1 rubygems