mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	billing: Mention the exact type of stripe.Customers subscriptions attribute.
This commit is contained in:
		@@ -1,5 +1,6 @@
 | 
			
		||||
import stripe.error as error
 | 
			
		||||
import stripe.util as util
 | 
			
		||||
from stripe.api_resources.list_object import SubscriptionListObject
 | 
			
		||||
 | 
			
		||||
from typing import Optional, Any, Dict, List
 | 
			
		||||
 | 
			
		||||
@@ -9,7 +10,7 @@ class Customer:
 | 
			
		||||
    default_source: Card
 | 
			
		||||
    created: int
 | 
			
		||||
    id: str
 | 
			
		||||
    subscriptions: List[Subscription]
 | 
			
		||||
    subscriptions: SubscriptionListObject
 | 
			
		||||
 | 
			
		||||
    @staticmethod
 | 
			
		||||
    def retrieve(customer_id: str, expand: Optional[List[str]]) -> Customer:
 | 
			
		||||
 
 | 
			
		||||
@@ -1,2 +1,8 @@
 | 
			
		||||
class ListObject:
 | 
			
		||||
    ...
 | 
			
		||||
from stripe import Subscription
 | 
			
		||||
from typing import Optional, Any, Dict, List, Iterator
 | 
			
		||||
 | 
			
		||||
class SubscriptionListObject:
 | 
			
		||||
    data: List[Subscription]
 | 
			
		||||
 | 
			
		||||
    def __iter__(self) -> Iterator[Subscription]:
 | 
			
		||||
        ...
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user