Pau Perez
|
3a64cc426a
|
Reuse #calculate_refund_amount method
|
2020-07-15 14:01:58 +02:00 |
|
Pau Perez
|
a8af3a27b1
|
Fix all but Metrics Rubocop cops in processing.rb
|
2020-07-15 14:01:58 +02:00 |
|
Pau Perez
|
42658b5255
|
Refactor #process! nested ifs to guard clauses
Following Rubocop's indications.
|
2020-07-15 14:01:58 +02:00 |
|
Pau Perez
|
66dbd85eb4
|
Run rubocop autocorrect on payment/processing.rb
|
2020-07-15 14:01:58 +02:00 |
|
Pau Perez
|
3435d5ac97
|
Fix Rubocop non-metrics issues in payment model
|
2020-07-15 14:01:30 +02:00 |
|
Luis Ramos
|
2070cfd5bb
|
Fix easy rubocop issues
|
2020-07-11 15:44:23 +01:00 |
|
Luis Ramos
|
aed384183b
|
Move Spree::OrderUpdater to OrderManagement engine
|
2020-07-11 15:44:23 +01:00 |
|
Luis Ramos
|
e453b130e4
|
Bring core/lib/spree/core/ext/active_record.rb to OFN and add it to Spree::Order, the only place where it is used
|
2020-07-11 15:44:23 +01:00 |
|
Luis Ramos
|
d4c48e2b94
|
Merge OrderUpdate Delegator into Spree::OrderUpdater
|
2020-07-11 15:44:23 +01:00 |
|
Luis Ramos
|
872cfcfc58
|
Remove unused promotions code
|
2020-07-11 15:44:23 +01:00 |
|
Luis Ramos
|
5b3fbe0aed
|
Merge decorator OrderUpdater
|
2020-07-11 15:44:23 +01:00 |
|
Luis Ramos
|
ebeeeb7ed3
|
Fix easy rubocop issues
|
2020-07-11 15:44:23 +01:00 |
|
Luis Ramos
|
7218bb0c7d
|
Bring Spree::OrderUpdater from spree
|
2020-07-11 15:44:23 +01:00 |
|
Pau Perez
|
cf64d3a290
|
Merge skipped callback from decorator into model
If we don't want that callback we can just as well remove it now that we
own that code.
|
2020-07-10 15:07:12 +02:00 |
|
Pau Perez
|
55d52b875f
|
Run rubocop autocorrect on payment model
|
2020-07-10 15:04:29 +02:00 |
|
Pau Perez
|
d8b748a851
|
Merge alias_method method and its original version
|
2020-07-10 10:41:44 +02:00 |
|
Pau Perez
|
d49068ce66
|
Move method delegation from decorator to model
|
2020-07-10 10:41:44 +02:00 |
|
Pau Perez
|
cf6138da66
|
Replace model method with its decorated version
|
2020-07-10 10:41:44 +02:00 |
|
Pau Perez
|
3fb6193098
|
Move adjustments logic from decorator into model
|
2020-07-10 10:41:44 +02:00 |
|
Pau Perez
|
861726200c
|
Move localize_number from decorator to model
|
2020-07-10 10:41:44 +02:00 |
|
Pau Perez
|
48910aeb77
|
Move #refund! to the processing.rb
|
2020-07-10 10:41:44 +02:00 |
|
Pau Perez
|
6d9a518616
|
Move method from decorator to model
|
2020-07-10 10:41:44 +02:00 |
|
Pau Perez
|
322c4d0f3f
|
Move decorator's callbacks to model
|
2020-07-10 10:41:44 +02:00 |
|
Pau Perez
|
9935df9f2d
|
Move Pin payment method from decorator into model
|
2020-07-10 10:41:44 +02:00 |
|
Pau Perez
|
06aa56164f
|
Bring in Payment model from Spree
|
2020-07-10 10:41:44 +02:00 |
|
Luis Ramos
|
0b79e7c48c
|
Fix rubucop issue in enterprise_fee model
|
2020-07-07 17:26:24 +01:00 |
|
Luis Ramos
|
d92f97716a
|
Extract compute_for and thus resolve the rubocop complexity issue
|
2020-07-07 17:26:24 +01:00 |
|
Luis Ramos
|
68359d4d1a
|
Remove unnecessary variable (this sum and += come from the original
spree code and is not necessary here now)
|
2020-07-07 17:26:24 +01:00 |
|
Luis Ramos
|
70432e301d
|
Early exit if max is zero to make method shorted
|
2020-07-07 17:26:24 +01:00 |
|
Luis Ramos
|
fbe0a3246d
|
Extract applicable_rate? and thus resolve rubocop complexity issue
|
2020-07-07 17:26:24 +01:00 |
|
Luis Ramos
|
b096717172
|
Extract per_order_fees_total out of compute_order
|
2020-07-07 17:26:24 +01:00 |
|
Luis Ramos
|
21120dd6ab
|
Extract per_item_fees_total out of compute_order
|
2020-07-07 17:26:24 +01:00 |
|
Luis Ramos
|
4b12a5f592
|
Extract line_items_total from compute_order
|
2020-07-07 17:26:24 +01:00 |
|
Luis Ramos
|
6a94168ee5
|
Remove Spree namespace from DefaultTax
|
2020-07-07 17:26:24 +01:00 |
|
Luis Ramos
|
5e8438c446
|
Move all calculators outside the spree namespace
|
2020-07-07 17:26:23 +01:00 |
|
Luis Ramos
|
9c3eb3725e
|
Remove dead code related to promotions, we dont have promotions in OFN
|
2020-07-07 17:20:22 +01:00 |
|
Luis Ramos
|
a544102b1b
|
Fix some rubocop issues
|
2020-07-07 17:20:22 +01:00 |
|
Luis Ramos
|
f2a46d2cef
|
Merge decorators into original classes brought from spree_core
|
2020-07-07 17:20:22 +01:00 |
|
Luis Ramos
|
6b04df0dea
|
Fix indentation and extract Calculator as a separate module declaration
|
2020-07-07 17:20:22 +01:00 |
|
Luis Ramos
|
c2898ba389
|
Bring calculators from spree_core
|
2020-07-07 17:20:22 +01:00 |
|
Luis Ramos
|
761871c90e
|
Merge pull request #5715 from luisramos0/ship_method
Fix issue in Spree 2.1 and bring Spree::Stock classes to OFN 🎉
|
2020-07-06 19:15:50 +01:00 |
|
Luis Ramos
|
b917238d1e
|
Merge pull request #5446 from luisramos0/sca_refunds
Make StripeSCA void action work
|
2020-07-03 22:45:35 +01:00 |
|
Luis Ramos
|
07a44cfaf3
|
Update selected shipping rate if there is an original shipping method to keep and it is different from the one selected through the Estimator process
Make sure the shipment is saved (callbacks!) whenever the ship method has changed in the refresh_rates process
|
2020-07-03 13:48:12 +01:00 |
|
Luis Ramos
|
758bb17142
|
Fix some easy rubocop issues and add some exceptions to to manual todo list
|
2020-07-02 21:24:15 +01:00 |
|
Luis Ramos
|
659de3d24d
|
Replay spree commit a4622ee13a723f0dba2943967b445b9989f67fb2 to fix issue introduced in spree 2.1
|
2020-07-02 21:24:15 +01:00 |
|
Luis Ramos
|
ff046f7a6c
|
Remove conditionals related to Config.track_inventory_levels, this config is always true in OFN
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
ee66e37521
|
Move adjuster, estimator, packer and prioritizer to order management engine
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
83974a832c
|
Move Coordinator from Spree::Stock to OrderManagement::Stock
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
01b1abbd52
|
Bring method from Spree::Order so that we can move Coordiantor to the order management engine
|
2020-07-02 21:24:14 +01:00 |
|
Luis Ramos
|
b487185a65
|
Remove package factory, it is no longer needed, we can just call the Package class in the two places where it is used
|
2020-07-02 21:24:14 +01:00 |
|