@transaction.atomic
def deposit(owner_id, amount, reference=None):
    assert amount.amount >= 0, "Cannot deposit a negative amount of money"
    wallet_obj = get_wallet(owner_id, amount.currency)
    qs = models.Wallet.objects.get(id=wallet_obj.id).transactions
    trx_obj = qs.create(
        trx_type=enums.TrxType.INCOMING,
        trx_status=enums.TrxStatus.FINALIZED,
        amount=amount,
        reference=reference
    )
    return trx_obj
Deposit given amount into the wallet.
dataset/ETHPy150Open uppsaladatavetare/foobar-api/src/wallet/api.py/deposit