Skip to content

Commit 09c1bc3

Browse files
Update generated code for v1339
1 parent 10869f2 commit 09c1bc3

12 files changed

+32
-24
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1337
1+
v1339

stripe/_invoice.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ class PauseCollection(StripeObject):
10241024
"""
10251025
pause_collection: Optional[PauseCollection]
10261026
"""
1027-
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
1027+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
10281028
"""
10291029
_inner_class_types = {"pause_collection": PauseCollection}
10301030

@@ -3323,7 +3323,7 @@ class CreatePreviewParamsScheduleDetailsPhase(TypedDict):
33233323
"Invoice.CreatePreviewParamsScheduleDetailsPhasePauseCollection"
33243324
]
33253325
"""
3326-
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
3326+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
33273327
"""
33283328
proration_behavior: NotRequired[
33293329
Literal["always_invoice", "create_prorations", "none"]
@@ -6171,7 +6171,7 @@ class UpcomingLinesParamsScheduleDetailsPhase(TypedDict):
61716171
"Invoice.UpcomingLinesParamsScheduleDetailsPhasePauseCollection"
61726172
]
61736173
"""
6174-
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
6174+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
61756175
"""
61766176
proration_behavior: NotRequired[
61776177
Literal["always_invoice", "create_prorations", "none"]
@@ -8218,7 +8218,7 @@ class UpcomingParamsScheduleDetailsPhase(TypedDict):
82188218
"Invoice.UpcomingParamsScheduleDetailsPhasePauseCollection"
82198219
]
82208220
"""
8221-
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
8221+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
82228222
"""
82238223
proration_behavior: NotRequired[
82248224
Literal["always_invoice", "create_prorations", "none"]

stripe/_invoice_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2216,7 +2216,7 @@ class CreatePreviewParamsScheduleDetailsPhase(TypedDict):
22162216
"InvoiceService.CreatePreviewParamsScheduleDetailsPhasePauseCollection"
22172217
]
22182218
"""
2219-
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
2219+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
22202220
"""
22212221
proration_behavior: NotRequired[
22222222
Literal["always_invoice", "create_prorations", "none"]
@@ -4311,7 +4311,7 @@ class UpcomingParamsScheduleDetailsPhase(TypedDict):
43114311
"InvoiceService.UpcomingParamsScheduleDetailsPhasePauseCollection"
43124312
]
43134313
"""
4314-
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
4314+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
43154315
"""
43164316
proration_behavior: NotRequired[
43174317
Literal["always_invoice", "create_prorations", "none"]

stripe/_invoice_upcoming_lines_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ class ListParamsScheduleDetailsPhase(TypedDict):
12231223
"InvoiceUpcomingLinesService.ListParamsScheduleDetailsPhasePauseCollection"
12241224
]
12251225
"""
1226-
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
1226+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
12271227
"""
12281228
proration_behavior: NotRequired[
12291229
Literal["always_invoice", "create_prorations", "none"]

stripe/_quote_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ class Set(StripeObject):
394394

395395
set: Optional[Set]
396396
"""
397-
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
397+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
398398
"""
399399
type: Literal["remove", "set"]
400400
"""

stripe/_quote_preview_invoice.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1006,7 +1006,7 @@ class PauseCollection(StripeObject):
10061006
"""
10071007
pause_collection: Optional[PauseCollection]
10081008
"""
1009-
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
1009+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
10101010
"""
10111011
_inner_class_types = {"pause_collection": PauseCollection}
10121012

stripe/_quote_preview_subscription_schedule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ class EndBehavior(StripeObject):
499499
"""
500500
pause_collection: Optional[PauseCollection]
501501
"""
502-
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
502+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
503503
"""
504504
proration_behavior: Literal[
505505
"always_invoice", "create_prorations", "none"

stripe/_refund.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ class AuBankTransfer(StripeObject):
6161
pass
6262

6363
class Blik(StripeObject):
64+
network_decline_code: Optional[str]
65+
"""
66+
For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed.
67+
"""
6468
reference: Optional[str]
6569
"""
6670
The reference assigned to the refund.
@@ -202,6 +206,10 @@ class Sofort(StripeObject):
202206
pass
203207

204208
class Swish(StripeObject):
209+
network_decline_code: Optional[str]
210+
"""
211+
For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed.
212+
"""
205213
reference: Optional[str]
206214
"""
207215
The reference assigned to the refund.

stripe/_subscription.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,7 @@ class ModifyParams(RequestOptions):
16471647
"Literal['']|Subscription.ModifyParamsPauseCollection"
16481648
]
16491649
"""
1650-
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
1650+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
16511651
"""
16521652
payment_behavior: NotRequired[
16531653
Literal[
@@ -2551,7 +2551,7 @@ class SearchParams(RequestOptions):
25512551
"""
25522552
pause_collection: Optional[PauseCollection]
25532553
"""
2554-
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
2554+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
25552555
"""
25562556
payment_settings: Optional[PaymentSettings]
25572557
"""
@@ -2598,7 +2598,7 @@ class SearchParams(RequestOptions):
25982598
25992599
A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over.
26002600
2601-
A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://stripe.com/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged.
2601+
A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/docs/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged.
26022602
26032603
If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings).
26042604
@@ -3000,7 +3000,7 @@ def modify(
30003000
A trial starts or ends.
30013001
30023002
3003-
In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment).
3003+
In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment).
30043004
30053005
If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create).
30063006
@@ -3037,7 +3037,7 @@ async def modify_async(
30373037
A trial starts or ends.
30383038
30393039
3040-
In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment).
3040+
In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment).
30413041
30423042
If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create).
30433043

stripe/_subscription_schedule.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ class EndBehavior(StripeObject):
507507
"""
508508
pause_collection: Optional[PauseCollection]
509509
"""
510-
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
510+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
511511
"""
512512
proration_behavior: Literal[
513513
"always_invoice", "create_prorations", "none"
@@ -1448,7 +1448,7 @@ class CreateParamsPhase(TypedDict):
14481448
"SubscriptionSchedule.CreateParamsPhasePauseCollection"
14491449
]
14501450
"""
1451-
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
1451+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
14521452
"""
14531453
proration_behavior: NotRequired[
14541454
Literal["always_invoice", "create_prorations", "none"]
@@ -2242,7 +2242,7 @@ class ModifyParamsPhase(TypedDict):
22422242
"SubscriptionSchedule.ModifyParamsPhasePauseCollection"
22432243
]
22442244
"""
2245-
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
2245+
If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment).
22462246
"""
22472247
proration_behavior: NotRequired[
22482248
Literal["always_invoice", "create_prorations", "none"]

0 commit comments

Comments
 (0)