def customer_webhook_handler(event):
	"""Handle updates to customer objects.

	First determines the crud_type and then handles the event if a customer exists locally.
	As customers are tied to local users, djstripe will not create customers that
	do not already exist locally.

	Docs and an example customer webhook response: https://stripe.com/docs/api#customer_object
	"""
	if event.customer:
		# As customers are tied to local users, djstripe will not create
		# customers that do not already exist locally.
		_handle_crud_like_event(
			target_cls=models.Customer, event=event, crud_exact=True, crud_valid=True
		)
def customer_webhook_handler ( event ) : if event . customer : _handle_crud_like_event ( target_cls = models . Customer , event = event , crud_exact = True , crud_valid = True )
Handle updates to customer objects.

	First determines the crud_type and then handles the event if a customer exists locally.
	As customers are tied to local users, djstripe will not create customers that
	do not already exist locally.

	Docs and an example customer webhook response: https://stripe.com/docs/api#customer_object