How to use the splitwise.debt.Debt function in splitwise

To help you get started, we’ve selected a few splitwise examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github namaggarwal / splitwise / splitwise / group.py View on Github external
self.invite_link = data["invite_link"]
            else:
                self.invite_link = None

            if "country_code" in data:
                self.country_code = data["country_code"]
            else:
                self.country_code = None

            self.original_debts = []
            for debt in data["original_debts"]:
                self.original_debts.append(Debt(debt))

            self.simplified_debts = []
            for debt in data["simplified_debts"]:
                self.simplified_debts.append(Debt(debt))

            self.members = []
            for member in data["members"]:
                self.members.append(Friend(member))
github namaggarwal / splitwise / splitwise / expense.py View on Github external
else:
                self.deleted_by = None

            if "friendship_id" in data:
                self.friendship_id = data["friendship_id"]
            else:
                self.friendship_id = None

            if "expense_bundle_id" in data:
                self.expense_bundle_id = data["expense_bundle_id"]
            else:
                self.expense_bundle_id = None

            self.repayments = []
            for repayment in data["repayments"]:
                self.repayments.append(Debt(repayment))

            self.users = []
            for user in data["users"]:
                self.users.append(ExpenseUser(user))

            if "transaction_id" in data:
                self.transaction_id = data["transaction_id"]
            else:
                self.transaction_id = None