Skip to content

Conversation

@Mohamad-Mortada
Copy link
Member

@Mohamad-Mortada Mohamad-Mortada commented Dec 24, 2025

Summary of the problem

Bank of America can deposit checks via their mobile app and we can't?! The shame...

Describe your changes

Created POST /api/v4/organizations/xxxxxxx/check-deposits which takes in front, back, and amount_cents
Created GET for /api/v4/organizations/xxxxxxx/check-deposits for index and show

@Mohamad-Mortada Mohamad-Mortada requested a review from a team December 24, 2025 01:33
Copy link
Contributor

@Luke-Oldenburg Luke-Oldenburg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add a show and index in this PR too.

Mohamad-Mortada and others added 4 commits January 2, 2026 13:54
Co-authored-by: Luke Oldenburg <[email protected]>
Co-authored-by: Luke Oldenburg <[email protected]>
resources :invoices, only: [:show, :create]

resources :sponsors, only: [:show, :create]
resources :check_deposits, path: "check-deposits", only: [:index, :show, :create]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
resources :check_deposits, path: "check-deposits", only: [:index, :show, :create]
resources :check_deposits, only: [:index, :show, :create]

Comment on lines +33 to +35
rescue ActiveRecord::RecordInvalid
return render json: { error: "invalid_operation", messages: @check_deposit.errors.full_messages }, status: :unprocessable_entity
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this rescue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants