Sha256: 5cbbfa7e8e4c91908cc714bae59e49786a0d89fb08d75dee557aea88af076346
Contents?: true
Size: 1.16 KB
Versions: 4
Compression:
Stored size: 1.16 KB
Contents
module Braintree class Dispute # :nodoc: include BaseModule attr_reader :amount attr_reader :received_date attr_reader :reply_by_date attr_reader :status attr_reader :reason attr_reader :currency_iso_code module Status Open = "open" Lost = "lost" Won = "won" end module Reason CancelledRecurringTransaction = "cancelled_recurring_transaction" CreditNotProcessed = "credit_not_processed" Duplicate = "duplicate" Fraud = "fraud" General = "general" InvalidAccount = "invalid_account" NotRecognized = "not_recognized" ProductNotReceived = "product_not_received" ProductUnsatisfactory = "product_unsatisfactory" TransactionAmountDiffers = "transaction_amount_differs" end class << self protected :new def _new(*args) # :nodoc: self.new *args end end def initialize(attributes) # :nodoc: set_instance_variables_from_hash(attributes) @received_date = Date.parse(received_date) @reply_by_date = Date.parse(reply_by_date) unless reply_by_date.nil? @amount = Util.to_big_decimal(amount) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
braintree-2.32.1 | lib/braintree/dispute.rb |
braintree-2.31.0 | lib/braintree/dispute.rb |
braintree-2.30.2 | lib/braintree/dispute.rb |
braintree-2.30.0 | lib/braintree/dispute.rb |