def sync_transfer(transfer, event=None):
    defaults = {
        "amount": utils.convert_amount_for_db(transfer["amount"], transfer["currency"]),
        "currency": transfer["currency"],
        "status": transfer["status"],
        "date": utils.convert_tstamp(transfer, "date"),
        "description": transfer.get("description", ""),
        "event": event
    }
    obj, created = models.Transfer.objects.get_or_create(
        stripe_id=transfer["id"],
        defaults=defaults
    )
    if not created:
        obj.status = transfer["status"]
        obj.save()
Syncronizes a transfer from the Stripe API
dataset/ETHPy150Open pinax/pinax-stripe/pinax/stripe/actions/transfers.py/sync_transfer