diff options
author | Alessandro Desantis <desa.alessandro@gmail.com> | 2021-01-22 13:59:59 +0100 |
---|---|---|
committer | Alessandro Desantis <desa.alessandro@gmail.com> | 2021-01-30 15:23:41 +0100 |
commit | 4717d24c0e7203210efe8c23b55467c3e728cdc5 (patch) | |
tree | b7a57b183641d64d05e5e70e281fd78cb5e37ebd /app/services/solidus_subscriptions/line_item_builder.rb | |
parent | ce4edc06e6079d8c098f1d0754e3c8e31b355e2d (diff) |
Remove `dummy_order` and `dummy_line_item` helpers
These helpers are dangerous: they provide a false sense of assurance
by making you think that the order and the line item they return can
be used to infer the correct total value of future subscription orders.
In reality, order calculation in Solidus is an extremely complex process
that may take a ton of different parameters into account, and each store
is better off calculating the subscription total with their custom logic
rather than this extension trying to provide a solution that works for
everyone.
In the future, we may provide a way to compute a subscription's total,
but for the time being it's better to remove the helpers altogether.
Diffstat (limited to 'app/services/solidus_subscriptions/line_item_builder.rb')
0 files changed, 0 insertions, 0 deletions