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

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