mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	billing: Rename get_stripe_customer.
This commit is contained in:
		@@ -94,7 +94,7 @@ def catch_stripe_errors(func: CallableT) -> CallableT:
 | 
			
		||||
    return wrapped  # type: ignore # https://github.com/python/mypy/issues/1927
 | 
			
		||||
 | 
			
		||||
@catch_stripe_errors
 | 
			
		||||
def get_stripe_customer(stripe_customer_id: str) -> stripe.Customer:
 | 
			
		||||
def stripe_get_customer(stripe_customer_id: str) -> stripe.Customer:
 | 
			
		||||
    stripe_customer = stripe.Customer.retrieve(stripe_customer_id, expand=["default_source"])
 | 
			
		||||
    if PRINT_STRIPE_FIXTURE_DATA:
 | 
			
		||||
        print(''.join(['"customer_with_subscription": ', str(stripe_customer), ',']))  # nocoverage
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user