def supplier_switch_v1(self, request): data = _request_data(request, mandatory_keys=[ ('index', 'position', 'pos', 'idurl', 'global_id', 'id', ), ('new_idurl', 'new_global_id', ), ]) return api.supplier_change( index_or_idurl_or_global_id=_index_or_idurl_or_global_id(data), new_supplier_idurl_or_global_id=data.get('new_global_id') or data.get('new_idurl') or data.get('new_id'), )
def jsonrpc_supplier_change(self, index_or_idurl, new_idurl): return api.supplier_change(index_or_idurl, new_idurl)