-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add preferred_reimbursement_type_id as permitted attributes for ReturnAuthorization #3215
Conversation
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 like it! Would you mind making a spec that tests this new behavior?
@ericsaupe I've added the field in the spec. Thanks |
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.
Thanks for your contribution, @ibudiallo!
api/spec/requests/spree/api/return_authorizations_controller_spec.rb
Outdated
Show resolved
Hide resolved
api/spec/requests/spree/api/return_authorizations_controller_spec.rb
Outdated
Show resolved
Hide resolved
Thank you @ibudiallo, just one last thing: can you please squash commits into a single one? |
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.
Thanks for making this change @ibudiallo! Would you mind squashing your commits? I'm happy to merge after that 🎉
Thanks guys. I squashed my commits. |
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.
Thanks!
Hey @ibudiallo I'd love to merge this PR but it should have a single commit. Maybe you rebased against your local copy of solidus, which is a bit behind the upstream one? I suggest you to add a new upstream remote and redo the rebase: git remote add upstream [email protected]:solidusio/solidus.git
git fetch -a upstream
git rebase upstream/master This would clean-up the branch, I'm available here or on our Slack Workspace for further help if needed. Thanks! |
Description
When using the api, we can create return authorizations but cannot set the reimbursement type. The reason being the field
preferred_reimbursement_type_id
was not included in the list of permitted attributes.Checklist: