+ if match.command('assign'):
+ store_id = int(match.args()[1])
+ item_id = int(match.args()[2])
+ result = Data().assign_store(store_id, item_id)
+ return result
+
+ if match.command('buy'):
+ item_id = ' '.join(match.args()[1:])
+ Data().purchase_item(item_id)
+
+ if match.command('clear'):
+ store_id = ' '.join(match.args()[1:])
+ Data().clear_list(store_id)
+
+ if match.command('clear-all'):
+ store_id = ' '.join(match.args()[1:])
+ Data().clear_list(store_id, clear_all=True)