Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Developer experience
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
12 Feb 2018 at 23:50 UTC
Updated:
30 Oct 2019 at 12:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
flocondetoileTiny patch that makes toMinorUnits() a public method
Comment #3
agoradesign commentedYou should define in in the Interface too
Comment #4
flocondetoile#3 Sure.
Comment #5
zaporylieI don't think we need a special test for it. LGTM.
Comment #6
bojanz commentedWe didn't commit this a year ago because we identified a use case where the same functionality was needed, but the gateway wasn't present, so we wanted to explore introducing a new service.
However, in the meantime we've come up with no better ideas, and gateways have been forced to copy-paste the protected method.
So, let's proceed with the patch as-is, and chase perfection another day. We can always deprecate this method once that happens.