Skip to content

Commit

Permalink
Merge pull request #1492 from dmitry-sinina/payment_api_filters
Browse files Browse the repository at this point in the history
add filter by account to admin API payment resource. refs #1491
  • Loading branch information
dmitry-sinina authored Jun 24, 2024
2 parents 019e16c + b4646e6 commit 3ec53f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/resources/api/rest/admin/payment_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Api::Rest::Admin::PaymentResource < BaseResource

has_one :account

relationship_filter :account
ransack_filter :amount, type: :number
ransack_filter :notes, type: :string
ransack_filter :status, type: :enum, collection: Payment::CONST::STATUS_IDS.values
Expand Down

0 comments on commit 3ec53f8

Please sign in to comment.