-
Notifications
You must be signed in to change notification settings - Fork 84
[v4] Deposit Checks #12465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[v4] Deposit Checks #12465
Conversation
Luke-Oldenburg
left a comment
There was a problem hiding this 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.
Co-authored-by: Luke Oldenburg <[email protected]>
9739569 to
f73cf3d
Compare
Co-authored-by: Luke Oldenburg <[email protected]>
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] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| resources :check_deposits, path: "check-deposits", only: [:index, :show, :create] | |
| resources :check_deposits, only: [:index, :show, :create] |
| rescue ActiveRecord::RecordInvalid | ||
| return render json: { error: "invalid_operation", messages: @check_deposit.errors.full_messages }, status: :unprocessable_entity | ||
| end |
There was a problem hiding this comment.
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.
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-depositswhich takes infront,back, andamount_centsCreated GET for
/api/v4/organizations/xxxxxxx/check-depositsfor index and show