self.session._parent = self
def request_wrap(self, *args, **kwargs):
+ kwargs["headers"]["X-market-id"] = str(self._parent._market.market_id)
+ kwargs["headers"]["X-user-id"] = str(self._parent._market.user_id)
try:
r = self.origin_request(*args, **kwargs)
self._parent._market.report.log_http_request(args[0],
else:
raise NotImplementedError
+ def common_currency_code(self, currency):
+ """
+ Wrapped to avoid the currency translation
+ """
+ return currency
+ def currency_id(self, currency):
+ """
+ Wrapped to avoid the currency translation
+ """
+ return currency