Sha256: 6c63990df18e22870aa6f5c71ee972cda79ad7653977eee9137ac70519fdbb7e

Contents?: true

Size: 854 Bytes

Versions: 6

Compression:

Stored size: 854 Bytes

Contents

module Braintree
  class DisputeSearch < AdvancedSearch # :nodoc:
    text_fields(
      :case_number,
      :customer_id,
      :id,
      :reference_number,
      :transaction_id
    )

    multiple_value_field :kind, :allows => Dispute::Kind::All
    multiple_value_field :merchant_account_id
    multiple_value_field :reason, :allows => Dispute::Reason::All
    multiple_value_field :reason_code
    multiple_value_field :status, :allows => Dispute::Status::All

    multiple_value_field :transaction_source, :allows => [
      Transaction::Source::Api,
      Transaction::Source::ControlPanel,
      Transaction::Source::Recurring,
      Transaction::Source::Unrecognized,
    ]

    range_fields(
      :amount_disputed,
      :amount_won,
      :disbursement_date,
      :effective_date,
      :received_date,
      :reply_by_date
    )
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
braintree-2.89.0 lib/braintree/dispute_search.rb
braintree-2.88.0 lib/braintree/dispute_search.rb
braintree-2.87.0 lib/braintree/dispute_search.rb
braintree-2.86.0 lib/braintree/dispute_search.rb
braintree-2.85.0 lib/braintree/dispute_search.rb
braintree-2.84.0 lib/braintree/dispute_search.rb