(event)
Handle updates to Dispute objects
    - dispute: https://stripe.com/docs/api/disputes
Handle updates to Dispute objects
    - dispute: https://stripe.com/docs/api/disputes
Handle updates to Dispute objects - dispute : https : // stripe . com / docs / api / disputes
def dispute_webhook_handler(event):
    """Handle updates to Dispute objects
    - dispute: https://stripe.com/docs/api/disputes
    """
    # will recieve all events of the type charge.dispute.Y so
    # need to ensure the data object is related to Dispute Object
    target_object_type = event.data.get("object", {}).get("object", {})

    if target_object_type == "dispute":
        _handle_crud_like_event(target_cls=models.Dispute, event=event)
def dispute_webhook_handler ( event ) : # will recieve all events of the type charge.dispute.Y so # need to ensure the data object is related to Dispute Object target_object_type = event . data . get ( "object" , { } ) . get ( "object" , { } ) if target_object_type == "dispute" : _handle_crud_like_event ( target_cls = models . Dispute , event = event )