File tree 2 files changed +40
-0
lines changed
2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 33
33
"LineItemTaxAmount" ,
34
34
"Maximum" ,
35
35
"Minimum" ,
36
+ "Plan" ,
36
37
"ShippingAddress" ,
37
38
"Subscription" ,
38
39
]
@@ -695,6 +696,19 @@ class Minimum(BaseModel):
695
696
"""Minimum amount applied"""
696
697
697
698
699
+ class Plan (BaseModel ):
700
+ id : Optional [str ]
701
+
702
+ external_plan_id : Optional [str ]
703
+ """
704
+ An optional user-defined ID for this plan resource, used throughout the system
705
+ as an alias for this Plan. Use this field to identify a plan by an existing
706
+ identifier in your system.
707
+ """
708
+
709
+ name : Optional [str ]
710
+
711
+
698
712
class ShippingAddress (BaseModel ):
699
713
city : Optional [str ]
700
714
@@ -912,6 +926,12 @@ class Invoice(BaseModel):
912
926
payment mechanisms (like bank transfers), where payment can take 3 days or more.
913
927
"""
914
928
929
+ plan : Optional [Plan ]
930
+ """The active plan for this invoice's subscription on its invoice date.
931
+
932
+ This field is only populated for invoices generated by subscriptions.
933
+ """
934
+
915
935
scheduled_issue_at : Optional [datetime ]
916
936
"""
917
937
If the invoice is in draft, this timestamp will reflect when the invoice is
Original file line number Diff line number Diff line change 33
33
"LineItemTaxAmount" ,
34
34
"Maximum" ,
35
35
"Minimum" ,
36
+ "Plan" ,
36
37
"ShippingAddress" ,
37
38
"Subscription" ,
38
39
]
@@ -695,6 +696,19 @@ class Minimum(BaseModel):
695
696
"""Minimum amount applied"""
696
697
697
698
699
+ class Plan (BaseModel ):
700
+ id : Optional [str ]
701
+
702
+ external_plan_id : Optional [str ]
703
+ """
704
+ An optional user-defined ID for this plan resource, used throughout the system
705
+ as an alias for this Plan. Use this field to identify a plan by an existing
706
+ identifier in your system.
707
+ """
708
+
709
+ name : Optional [str ]
710
+
711
+
698
712
class ShippingAddress (BaseModel ):
699
713
city : Optional [str ]
700
714
@@ -909,6 +923,12 @@ class InvoiceFetchUpcomingResponse(BaseModel):
909
923
payment mechanisms (like bank transfers), where payment can take 3 days or more.
910
924
"""
911
925
926
+ plan : Optional [Plan ]
927
+ """The active plan for this invoice's subscription on its invoice date.
928
+
929
+ This field is only populated for invoices generated by subscriptions.
930
+ """
931
+
912
932
scheduled_issue_at : Optional [datetime ]
913
933
"""
914
934
If the invoice is in draft, this timestamp will reflect when the invoice is
You can’t perform that action at this time.
0 commit comments