We wrote integrations for two marketplaces and skipped the shared interface
There is a task that looks like a textbook example of polymorphism: "sync stock and prices with marketplaces". There are several platforms, the actions are the same — list the cards, push the stock, push the price, pull the orders. An interface asks to be written: type Marketplace interface { ListOffers () ([] Offer , error ) SetStock ( offerID string , n int64 ) error SetPrice ( offerID string ,…
We developed integrations for two major Russian and CIS marketplaces, Ozon and Wildberries. Initially, we created a shared interface for stock and price synchronization, but it proved incompatible with both platforms. The article explains the specific issues encountered and how they differed between the two marketplaces.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.