You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What makes me think this could be a bug, is that switching from "Percent Off" to "Money Amount Off" is possible by setting the percent_off property to 0 (my sample code does that). It's the opposite that's not possible.
The text was updated successfully, but these errors were encountered:
Hi,
Thanks for maintaining this super helpful library!
I am facing a new issue: It doesn't seem possible to change a Promotion Asset from "Money Amount Off" to "Percent Off".
I have created a repo with a minimal example to reproduce the problem.
I have tried 3 approaches:
money_amount_off
tonull
=> this raises this error:
money_amount_off
=> Same error
money_amount_off
to{currency_code: "USD",amount_micros:0}
=> this raises this error:
What makes me think this could be a bug, is that switching from "Percent Off" to "Money Amount Off" is possible by setting the
percent_off
property to 0 (my sample code does that). It's the opposite that's not possible.The text was updated successfully, but these errors were encountered: