Skip to content

Commit 44b56dc

Browse files
Update generated code for v2168 and
1 parent b3d9483 commit 44b56dc

File tree

5 files changed

+23
-7
lines changed

5 files changed

+23
-7
lines changed

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
17638ef28504204dc4f355a6b853fc12522bb2ca
1+
4a8d3811ce568b0176a7f8c18b01dabe63230fdd

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2167
1+
v2168

lib/stripe/params/subscription_resume_params.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,21 @@ class SubscriptionResumeParams < ::Stripe::RequestParams
1111
attr_accessor :proration_behavior
1212
# If set, prorations will be calculated as though the subscription was resumed at the given time. This can be used to apply exactly the same prorations that were previewed with the [create preview](https://stripe.com/docs/api/invoices/create_preview) endpoint.
1313
attr_accessor :proration_date
14+
# Controls when the subscription transitions from `paused` to `active`. Determines how payment on the invoice affects the resumption process.The default is `pending_if_incomplete`.
15+
attr_accessor :payment_behavior
1416

1517
def initialize(
1618
billing_cycle_anchor: nil,
1719
expand: nil,
1820
proration_behavior: nil,
19-
proration_date: nil
21+
proration_date: nil,
22+
payment_behavior: nil
2023
)
2124
@billing_cycle_anchor = billing_cycle_anchor
2225
@expand = expand
2326
@proration_behavior = proration_behavior
2427
@proration_date = proration_date
28+
@payment_behavior = payment_behavior
2529
end
2630
end
2731
end

rbi/stripe.rbi

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200593,14 +200593,20 @@ module Stripe
200593200593
def proration_date; end
200594200594
sig { params(_proration_date: T.nilable(Integer)).returns(T.nilable(Integer)) }
200595200595
def proration_date=(_proration_date); end
200596+
# Controls when the subscription transitions from `paused` to `active`. Determines how payment on the invoice affects the resumption process.The default is `pending_if_incomplete`.
200597+
sig { returns(T.nilable(String)) }
200598+
def payment_behavior; end
200599+
sig { params(_payment_behavior: T.nilable(String)).returns(T.nilable(String)) }
200600+
def payment_behavior=(_payment_behavior); end
200596200601
sig {
200597-
params(billing_cycle_anchor: T.nilable(String), expand: T.nilable(T::Array[String]), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer)).void
200602+
params(billing_cycle_anchor: T.nilable(String), expand: T.nilable(T::Array[String]), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), payment_behavior: T.nilable(String)).void
200598200603
}
200599200604
def initialize(
200600200605
billing_cycle_anchor: nil,
200601200606
expand: nil,
200602200607
proration_behavior: nil,
200603-
proration_date: nil
200608+
proration_date: nil,
200609+
payment_behavior: nil
200604200610
); end
200605200611
end
200606200612
end

rbi/stripe/params/subscription_resume_params.rbi

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,20 @@ module Stripe
2424
def proration_date; end
2525
sig { params(_proration_date: T.nilable(Integer)).returns(T.nilable(Integer)) }
2626
def proration_date=(_proration_date); end
27+
# Controls when the subscription transitions from `paused` to `active`. Determines how payment on the invoice affects the resumption process.The default is `pending_if_incomplete`.
28+
sig { returns(T.nilable(String)) }
29+
def payment_behavior; end
30+
sig { params(_payment_behavior: T.nilable(String)).returns(T.nilable(String)) }
31+
def payment_behavior=(_payment_behavior); end
2732
sig {
28-
params(billing_cycle_anchor: T.nilable(String), expand: T.nilable(T::Array[String]), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer)).void
33+
params(billing_cycle_anchor: T.nilable(String), expand: T.nilable(T::Array[String]), proration_behavior: T.nilable(String), proration_date: T.nilable(Integer), payment_behavior: T.nilable(String)).void
2934
}
3035
def initialize(
3136
billing_cycle_anchor: nil,
3237
expand: nil,
3338
proration_behavior: nil,
34-
proration_date: nil
39+
proration_date: nil,
40+
payment_behavior: nil
3541
); end
3642
end
3743
end

0 commit comments

Comments
 (0)