def dump_decimals_to_string(self, data): if "amount" in data: data["amount"] = decimal_to_string(data["amount"]) if "amount_received" in data: data["amount_received"] = decimal_to_string(data["amount_received"]) if "amount_confirmed" in data: data["amount_confirmed"] = decimal_to_string(data["amount_confirmed"])
def dump_decimals_to_string(self, data): if "amount" in data: data["amount"] = decimal_to_string(data["amount"]) if "fee" in data: data["fee"] = decimal_to_string(data["fee"])