Maikel Linke
ba1e21ad75
Feature-toggle API also per API key
...
We looked only at logged in users (session cookie) before.
2022-04-15 12:34:57 +10:00
Maikel
26d6969b5b
Merge pull request #9045 from jibees/9043-send-email-cancelation-by-default
...
Send cancellation email by default when cancelling an order
2022-04-13 11:53:43 +10:00
Filipe
afcdfce37d
Merge pull request #8967 from mkllnk/api-customers-final
...
Serve customers data via first API v1 endpoint in JSON:API format behind feature toggle
2022-04-07 21:03:06 +01:00
Filipe
f29dc3f978
Merge pull request #9009 from jibees/9007-already-opened-cart
...
SplitCheckout: add already opened cart message on summary step when distributor allow order changes
2022-04-01 13:29:34 +01:00
Filipe
e2b1c0d93f
Merge pull request #9004 from jibees/8999-filter-shipping-methods-with-tag
...
SplitCheckout: filter shipping method with tag
2022-03-31 12:09:06 +01:00
Jean-Baptiste Bellet
6a48bdbb82
Send email cancelation by default
2022-03-29 10:12:00 +02:00
Filipe
be1c255067
Merge pull request #8892 from Matt-Yorkley/spree-login-routes
...
Fix issue with unconfirmed email messages
2022-03-28 13:38:17 +01:00
Maikel Linke
742ae761a3
Move helper statement to controller
...
It's not available in concerns.
2022-03-28 11:34:37 +11:00
Maikel Linke
5063f377c3
Enable relationship inclusion for customers#show
...
This will allow us to include address records.
2022-03-28 11:04:30 +11:00
Maikel Linke
d789fb32e9
Make customer's address writable on API
2022-03-28 11:04:30 +11:00
Maikel Linke
51420934f3
Add billing and shipping address to customer
2022-03-28 10:58:18 +11:00
Maikel Linke
adc7e97e62
Add tag list to customer endpoint
2022-03-28 10:55:58 +11:00
Maikel Linke
aa6e5ae799
Report useful error message in missing parameter
2022-03-28 10:55:57 +11:00
Maikel Linke
8d12c7a692
Permit more customer attributes for update
2022-03-28 10:55:57 +11:00
Maikel Linke
41746459fa
Restrict allow_charges attribute to read-only
...
We want people to use the UI to change this attribute.
2022-03-28 10:55:57 +11:00
Matt-Yorkley
ad5c834342
Merge pull request #8995 from apricot12/7853-deprecation-warnings-1
...
7853 deprecation warnings 1
2022-03-25 19:54:06 +00:00
jibees
9a5318965c
Use as an helper
...
Co-Authored-By: Maikel <maikel@email.org.au >
2022-03-24 09:11:58 +01:00
Maikel
877002afd8
Merge pull request #8891 from mkllnk/api-customers
...
Create API v1 with customers endpoint
2022-03-22 19:37:23 +11:00
Jean-Baptiste Bellet
13a45557a4
Load cart already opened boolean
...
thanks to EnterprisesHelper
2022-03-17 16:47:16 +01:00
Filipe
0dd398abba
Merge pull request #8926 from mkllnk/8925-invalid-param
...
Gracefully handle admin UI failure on updating enterprise notifications
2022-03-17 14:19:34 +00:00
Jean-Baptiste Bellet
0948ce47ed
Use EnterprisesHelper to retrieve shipping methods
...
that apply tag filtering on shipping methods
2022-03-16 11:10:46 +01:00
Nihal Mohammed
b3771bb623
Use bypass_sign_in method instead of bypass option in app/controllers/spree/users_controller.rb
2022-03-15 05:35:43 +05:30
jibees
d4a4a36b14
Merge pull request #8766 from jibees/8477-cancel-order-and-send-confirmation-email-on-last-item-deletion
...
Edit order: on last item deletion, cancel the order and conditionally send cancellation email to consumer
2022-03-11 08:56:41 +01:00
Filipe
3cf2db68b1
Merge pull request #8945 from jibees/8914-do-not-display-shipping-method-backoffice-only-for-split-checkout
...
SplitCheckout: display only shipping method that are set as front end available
2022-03-10 16:13:42 +00:00
Filipe
1522263cfc
Merge pull request #8893 from jibees/8889-handle-redirect-to-next-step-for-the-split-checkout
...
SplitCheckout: handle navigation between steps
2022-03-10 16:07:58 +00:00
Jean-Baptiste Bellet
e3a529be5d
Display only shipping method that are set as front end available
...
and update the tests as well
2022-03-10 16:15:50 +01:00
Maikel Linke
12d989568e
Safer API error reporting
...
We don't know what unknown errors would report. They could expose
sensitive data. So let's not pass that data on to the public while we
have the full details in Bugsnag.
Also, let's not catch Exception because that could catch interrupts to
gracefully shut down the application.
2022-03-02 11:59:35 +11:00
Maikel Linke
4aa70c1ffd
Render pagination errors
2022-03-02 11:59:35 +11:00
Maikel Linke
b89715149c
Sanitise pagination input for new API
2022-03-02 11:59:35 +11:00
Maikel Linke
414bf5d074
Don't list guest customer records to guest users
2022-03-02 11:59:35 +11:00
Matt-Yorkley
3dbf00f302
Add pagination with Pagy using structure from JSON:API specification
...
https://jsonapi.org/examples/#pagination
Update schema for collections rendered with pagination data
2022-03-02 11:58:04 +11:00
Matt-Yorkley
c102ce8e7e
Add RequestTimeout concern
2022-03-02 11:58:04 +11:00
Matt-Yorkley
a222b507fb
Update and document authentication methods
2022-03-02 11:58:04 +11:00
Matt-Yorkley
cc4192047e
Fill out customers controller
...
Add customer serializer
2022-03-02 11:55:46 +11:00
Matt-Yorkley
3128232d7e
Create customers controller
...
And add new customers routes.
Disable them in production for now.
2022-03-02 11:55:46 +11:00
Matt-Yorkley
c4e2c8cb4c
Tidy up error handling and update response formats for JSON:API standard
...
Update translation key namespacing
2022-03-02 11:55:46 +11:00
Matt-Yorkley
7d8ded5ab8
Bring simplified / cleaned up base controller into V1
...
- Inherits from ActionController::API
- Lots of superfluous junk removed
2022-03-02 11:55:46 +11:00
Jean-Baptiste Bellet
f47de45346
Reference splitcheckout as a checkout redirect
...
This stored in session value is used to redirect after login
Update tests as well, thanks @filipefurtad0 ! 🙏
2022-03-01 15:12:18 +01:00
Jean-Baptiste Bellet
e47198f1e5
Handle both types of redirection
...
One is based on the order step itself, the other is based on the current step passed through the params
2022-02-28 15:23:37 +01:00
Maikel Linke
8ffe6f6052
Sanitise user_id param on enterprise update
2022-02-24 14:51:23 +11:00
Filipe
7590b3ecf8
Merge pull request #8756 from jibees/8075-take-into-account-the-inherits_properties-attribute
...
Product that don't inherits from "producer"/"enterprise" properties should be filtered out by user on shop page
2022-02-21 19:04:08 +00:00
Matt-Yorkley
3effff8821
Show resent confirmation message in current tab
2022-02-18 09:42:49 +00:00
Adrien Chauve
ca46359224
More fixes
2022-02-16 10:23:22 +11:00
Adrien Chauve
9b93102a96
More fixes
2022-02-16 10:23:22 +11:00
Matt-Yorkley
4fbaa65534
Handle unconfirmed email message in UserSessionsController
2022-02-15 09:47:06 +00:00
Filipe
d8936b412e
Merge pull request #8819 from apricot12/8694-Improve_subsvriptions_index_perfomance
...
8694 improve subscriptions index perfomance by eager loading tags, suppliers and exchanges.
2022-02-10 17:37:00 +00:00
Jean-Baptiste Bellet
50f547af98
Add an attribute that conditions the sending of the cancellation email
...
true by default to not change the default behavior.
Can be set to false when sending params send_cancellation_email
2022-02-10 14:39:00 +01:00
Filipe
30c1d89525
Merge pull request #8822 from Matt-Yorkley/split-checkout-payment-total
...
[Split Checkout] Move setting of payment total during checkout into OrderUpdater
2022-02-09 16:21:47 +00:00
Matt-Yorkley
8dc743f2d4
Extract update_payment_total method
2022-02-08 12:27:42 +00:00
Matt-Yorkley
1c180299a5
Pass indexed payment method tags to PaymentMethod Serializer
2022-02-08 11:42:24 +00:00