88from .plan import PlanOverrides
99
1010
11+ class ActivationRuleInput (BaseModel ):
12+ type : Optional [str ]
13+ timeout_hours : Optional [int ]
14+
15+
1116class Subscription (BaseModel ):
1217 plan_code : Optional [str ]
1318 external_customer_id : Optional [str ]
@@ -20,6 +25,7 @@ class Subscription(BaseModel):
2025 payment_method : Optional [PaymentMethod ]
2126 invoice_custom_section : Optional [InvoiceCustomSectionInput ]
2227 consolidate_invoice : Optional [bool ]
28+ activation_rules : Optional [List [ActivationRuleInput ]]
2329
2430
2531class Subscriptions (BaseModel ):
@@ -28,6 +34,16 @@ class Subscriptions(BaseModel):
2834 terminated_at : Optional [str ]
2935
3036
37+ class ActivationRuleResponse (BaseResponseModel ):
38+ lago_id : Optional [str ]
39+ type : Optional [str ]
40+ timeout_hours : Optional [int ]
41+ status : Optional [str ]
42+ expires_at : Optional [str ]
43+ created_at : Optional [str ]
44+ updated_at : Optional [str ]
45+
46+
3147class SubscriptionResponse (BaseResponseModel ):
3248 lago_id : str
3349 lago_customer_id : Optional [str ]
@@ -57,6 +73,9 @@ class SubscriptionResponse(BaseResponseModel):
5773 payment_method : Optional [PaymentMethod ]
5874 applied_invoice_custom_sections : Optional [AppliedInvoiceCustomSections ]
5975 consolidate_invoice : Optional [bool ]
76+ cancellation_reason : Optional [str ]
77+ activated_at : Optional [str ]
78+ activation_rules : Optional [List [ActivationRuleResponse ]]
6079
6180
6281class SubscriptionsResponse (BaseResponseModel ):
0 commit comments