Skip to content
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

Allow to set order_update_attributes_class #4955

Merged

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Feb 24, 2023

Summary

Allows providing your own order update attributes class for checkout.

Some shops may have additional attributes on payments that needs to be store during
checkout. This allows to provide a class that responds to "apply" with the same signature as Spree::OrderUpdateAttributes

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

@tvdeyen tvdeyen requested a review from a team as a code owner February 24, 2023 10:56
@github-actions github-actions bot added changelog:solidus_api Changes to the solidus_api gem changelog:solidus_core Changes to the solidus_core gem labels Feb 24, 2023
Copy link
Contributor

@waiting-for-dev waiting-for-dev left a comment

Choose a reason for hiding this comment

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

Thanks, @tvdeyen. Left a suggestion to improve consistency.

api/app/controllers/spree/api/checkouts_controller.rb Outdated Show resolved Hide resolved
@kennyadsl
Copy link
Member

@tvdeyen Hey Thomas, any chance to look at Marc's comment above? Let us know if we can help moving this forward,

@tvdeyen
Copy link
Member Author

tvdeyen commented Apr 12, 2023

@kennyadsl sure, I can do that. Thanks for the reminder 😁

@tvdeyen tvdeyen self-assigned this Apr 12, 2023
@tvdeyen tvdeyen force-pushed the make-OrderUpdateAttributes-configurable branch from f3cbb4f to e4a2b21 Compare April 12, 2023 09:03
@codecov
Copy link

codecov bot commented Apr 12, 2023

Codecov Report

Merging #4955 (f3cbb4f) into master (4259562) will decrease coverage by 51.57%.
The diff coverage is 100.00%.

❗ Current head f3cbb4f differs from pull request most recent head 8ac56e9. Consider uploading reports for the commit 8ac56e9 to get more accurate results

@@             Coverage Diff             @@
##           master    #4955       +/-   ##
===========================================
- Coverage   85.88%   34.31%   -51.57%     
===========================================
  Files         533      123      -410     
  Lines       13225     4292     -8933     
===========================================
- Hits        11358     1473     -9885     
- Misses       1867     2819      +952     
Impacted Files Coverage Δ
.../app/controllers/spree/api/checkouts_controller.rb 94.02% <100.00%> (ø)

... and 566 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@waiting-for-dev
Copy link
Contributor

@tvdeyen, rebasing from master should fix CI

tvdeyen added 2 commits April 12, 2023 17:57
Allows providing your own order update attributes class for checkout.
@tvdeyen tvdeyen force-pushed the make-OrderUpdateAttributes-configurable branch from e4a2b21 to 8ac56e9 Compare April 12, 2023 15:57
Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

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

Thanks @tvdeyen!

Copy link
Contributor

@rainerdema rainerdema left a comment

Choose a reason for hiding this comment

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

💯

@kennyadsl kennyadsl merged commit 04a4d68 into solidusio:master Apr 14, 2023
@tvdeyen tvdeyen deleted the make-OrderUpdateAttributes-configurable branch May 8, 2023 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:solidus_api Changes to the solidus_api gem changelog:solidus_core Changes to the solidus_core gem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants