Sha256: 8cf814160729dbe115d54fe8550194b574ba5b35ef0380ab4ea348a95b6e5fe6

Contents?: true

Size: 785 Bytes

Versions: 8

Compression:

Stored size: 785 Bytes

Contents

module Braintree
  class DisputeSearch < AdvancedSearch # :nodoc:
    text_fields(
      :case_number,
      :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,
      :received_date,
      :reply_by_date
    )
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
braintree-2.83.0 lib/braintree/dispute_search.rb
braintree-2.82.0 lib/braintree/dispute_search.rb
braintree-2.81.0 lib/braintree/dispute_search.rb
braintree-2.80.1 lib/braintree/dispute_search.rb
braintree-2.80.0 lib/braintree/dispute_search.rb
braintree-2.79.0 lib/braintree/dispute_search.rb
braintree-2.78.0 lib/braintree/dispute_search.rb
braintree-2.77.0 lib/braintree/dispute_search.rb