Skip to content

Commit a6f78ca

Browse files
Merge pull request #1793 from stripe/latest-codegen-private-preview
Update generated code for private-preview
2 parents d50017b + 5011abe commit a6f78ca

37 files changed

+710
-76
lines changed

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e5a785b8374103d84e609caec05bef6deec02a76
1+
35e26af8c8a4fb5988922dfcb4d9bd22f7f850c5

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2176
1+
v2185

lib/stripe/object_types.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def self.object_names_to_classes
1616
AccountLink.object_name => AccountLink,
1717
AccountNotice.object_name => AccountNotice,
1818
AccountSession.object_name => AccountSession,
19+
AccountSignals.object_name => AccountSignals,
1920
ApplePayDomain.object_name => ApplePayDomain,
2021
Application.object_name => Application,
2122
ApplicationFee.object_name => ApplicationFee,

lib/stripe/params.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
require "stripe/params/account_retrieve_current_params"
2828
require "stripe/params/account_retrieve_params"
2929
require "stripe/params/account_session_create_params"
30+
require "stripe/params/account_signals_retrieve_params"
3031
require "stripe/params/account_update_params"
3132
require "stripe/params/apple_pay_domain_create_params"
3233
require "stripe/params/apple_pay_domain_delete_params"

lib/stripe/params/account_link_create_params.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,13 @@ class CollectionOptions < ::Stripe::RequestParams
88
attr_accessor :fields
99
# Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.
1010
attr_accessor :future_requirements
11+
# Specifies whether the platform collects external account information from connected accounts during Connect Onboarding. When set to `false`, external account collection is skipped. Defaults to `true`.
12+
attr_accessor :external_account_collection
1113

12-
def initialize(fields: nil, future_requirements: nil)
14+
def initialize(fields: nil, future_requirements: nil, external_account_collection: nil)
1315
@fields = fields
1416
@future_requirements = future_requirements
17+
@external_account_collection = external_account_collection
1518
end
1619
end
1720
# The identifier of the account to create an account link for.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# File generated from our OpenAPI spec
2+
# frozen_string_literal: true
3+
4+
module Stripe
5+
class AccountSignalsRetrieveParams < ::Stripe::RequestParams
6+
# Specifies which fields in the response should be expanded.
7+
attr_accessor :expand
8+
9+
def initialize(expand: nil)
10+
@expand = expand
11+
end
12+
end
13+
end

lib/stripe/params/financial_connections/session_create_params.rb

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,15 @@ def initialize(account_subcategories: nil, countries: nil, institution: nil)
3737
end
3838
end
3939

40+
class Hosted < ::Stripe::RequestParams
41+
# How the user should enter the hosted flow. The values `email` and `url` can only be used if `relink_options` is provided.
42+
attr_accessor :delivery_method
43+
44+
def initialize(delivery_method: nil)
45+
@delivery_method = delivery_method
46+
end
47+
end
48+
4049
class Limits < ::Stripe::RequestParams
4150
# The number of accounts that can be linked in this Session.
4251
attr_accessor :accounts
@@ -86,6 +95,10 @@ def initialize(account: nil, authorization: nil)
8695
attr_accessor :relink_options
8796
# For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
8897
attr_accessor :return_url
98+
# Settings for hosted Sessions. Required if `ui_mode` is `hosted`.
99+
attr_accessor :hosted
100+
# The UI mode of the Session. Defaults to `modal`.
101+
attr_accessor :ui_mode
89102

90103
def initialize(
91104
account_holder: nil,
@@ -96,7 +109,9 @@ def initialize(
96109
permissions: nil,
97110
prefetch: nil,
98111
relink_options: nil,
99-
return_url: nil
112+
return_url: nil,
113+
hosted: nil,
114+
ui_mode: nil
100115
)
101116
@account_holder = account_holder
102117
@expand = expand
@@ -107,6 +122,8 @@ def initialize(
107122
@prefetch = prefetch
108123
@relink_options = relink_options
109124
@return_url = return_url
125+
@hosted = hosted
126+
@ui_mode = ui_mode
110127
end
111128
end
112129
end

lib/stripe/params/subscription_create_params.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,9 +920,12 @@ class TrialSettings < ::Stripe::RequestParams
920920
class EndBehavior < ::Stripe::RequestParams
921921
# Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
922922
attr_accessor :missing_payment_method
923+
# Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`.
924+
attr_accessor :billing_cycle_anchor
923925

924-
def initialize(missing_payment_method: nil)
926+
def initialize(missing_payment_method: nil, billing_cycle_anchor: nil)
925927
@missing_payment_method = missing_payment_method
928+
@billing_cycle_anchor = billing_cycle_anchor
926929
end
927930
end
928931
# Defines how the subscription should behave when the user's free trial ends.

lib/stripe/params/subscription_update_params.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,9 +899,12 @@ class TrialSettings < ::Stripe::RequestParams
899899
class EndBehavior < ::Stripe::RequestParams
900900
# Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
901901
attr_accessor :missing_payment_method
902+
# Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`.
903+
attr_accessor :billing_cycle_anchor
902904

903-
def initialize(missing_payment_method: nil)
905+
def initialize(missing_payment_method: nil, billing_cycle_anchor: nil)
904906
@missing_payment_method = missing_payment_method
907+
@billing_cycle_anchor = billing_cycle_anchor
905908
end
906909
end
907910
# Defines how the subscription should behave when the user's free trial ends.

lib/stripe/resources.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
require "stripe/resources/account_link"
66
require "stripe/resources/account_notice"
77
require "stripe/resources/account_session"
8+
require "stripe/resources/account_signals"
89
require "stripe/resources/apple_pay_domain"
910
require "stripe/resources/application"
1011
require "stripe/resources/application_fee"

0 commit comments

Comments
 (0)