billing: Rename get_stripe_customer.

This commit is contained in:
Rishi Gupta
2018-08-06 12:22:55 -04:00
parent 086b7d76e5
commit 89ca1d0d97
2 changed files with 3 additions and 3 deletions

View File

@@ -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