stripe 11.3.0.pre.beta.1 → 11.4.0.pre.beta.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b54e7989953c6c6dfde29bbbeed75c3107d040a91868ca2fd066a52c2bb5de27
4
- data.tar.gz: 1364ffe8c26d12922ce78b215d7b08be28a9e06ee902b05645b429586019903b
3
+ metadata.gz: c599a29ba600b8be458ab19e8b82eb649cfe290534c0567857bde1901c6c5eae
4
+ data.tar.gz: 2816c9bb85b133627353c3295f496b7f4d2d0e4953b2c584fd560bcb2f616ff4
5
5
  SHA512:
6
- metadata.gz: 701e6039e274ffe1ed11a8b44e95b3ca25c8d8a3dc70571b44c1b8534fc9627653937ec57cf8924f9c92ba8961a6faadd106a50a50a39725f15f7d43902f81a3
7
- data.tar.gz: cdc5fd797b1de56d3ce2b475921529b229401930215845bf556b8fca4fdfa06409f55a1b81d2e6dcb7f5917d2bfee809aecf1afae90f6ca0828b3d2930e2d933
6
+ metadata.gz: aa7a558f2c2b2c0c3b5d291ea3e16682b5f36ddcc630edbe3d4e82fd8be0d6fde0f964b176dac9270cc73765b3d55d7f2526d273d7666e8d41d2707e18499a98
7
+ data.tar.gz: 1aa4b34c3decc40c8d038554c070a18cbedb026009c7770a11021c9e510a7e25898dbbeb50d0e43e6c761610baf5e4238e3b05698ea4176c27627de57840d2ce
data/CHANGELOG.md CHANGED
@@ -1,8 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 11.4.0-beta.1 - 2024-05-02
4
+ * [#1386](https://github.com/stripe/stripe-ruby/pull/1386) Update generated code for beta
5
+
6
+
3
7
  ## 11.3.0-beta.1 - 2024-04-18
4
8
  * [#1383](https://github.com/stripe/stripe-ruby/pull/1383) Update generated code for beta
5
9
 
10
+ ## 11.2.0 - 2024-04-18
11
+ * [#1385](https://github.com/stripe/stripe-ruby/pull/1385) Update generated code
12
+ * Add support for `create_preview` method on resource `Invoice`
6
13
 
7
14
  ## 11.1.0 - 2024-04-16
8
15
  * [#1379](https://github.com/stripe/stripe-ruby/pull/1379) Update generated code
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v962
1
+ v1005
data/VERSION CHANGED
@@ -1 +1 @@
1
- 11.3.0-beta.1
1
+ 11.4.0-beta.1
@@ -6,9 +6,14 @@ module Stripe
6
6
  # properties on the account like its current requirements or if the account is
7
7
  # enabled to make live charges or receive payouts.
8
8
  #
9
- # For Custom accounts, the properties below are always returned. For other accounts, some properties are returned until that
10
- # account has started to go through Connect Onboarding. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions),
11
- # some properties are only returned for Custom accounts. Learn about the differences [between accounts](https://stripe.com/docs/connect/accounts).
9
+ # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
10
+ # is `application`, which includes Custom accounts, the properties below are always
11
+ # returned.
12
+ #
13
+ # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
14
+ # is `stripe`, which includes Standard and Express accounts, some properties are only returned
15
+ # until you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions)
16
+ # to start Connect Onboarding. Learn about the [differences between accounts](https://stripe.com/connect/accounts).
12
17
  class Account < APIResource
13
18
  extend Stripe::APIOperations::Create
14
19
  include Stripe::APIOperations::Delete
@@ -39,9 +44,11 @@ module Stripe
39
44
  request_stripe_object(method: :post, path: "/v1/accounts", params: params, opts: opts)
40
45
  end
41
46
 
42
- # With [Connect](https://stripe.com/docs/connect), you can delete accounts you manage.
47
+ # With [Connect](https://stripe.com/connect), you can delete accounts you manage.
48
+ #
49
+ # Test-mode accounts can be deleted at any time.
43
50
  #
44
- # Accounts created using test-mode keys can be deleted at any time. Standard accounts created using live-mode keys cannot be deleted. Custom or Express accounts created using live-mode keys can only be deleted once all balances are zero.
51
+ # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balanace_object) are zero.
45
52
  #
46
53
  # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
47
54
  def self.delete(id, params = {}, opts = {})
@@ -53,9 +60,11 @@ module Stripe
53
60
  )
54
61
  end
55
62
 
56
- # With [Connect](https://stripe.com/docs/connect), you can delete accounts you manage.
63
+ # With [Connect](https://stripe.com/connect), you can delete accounts you manage.
57
64
  #
58
- # Accounts created using test-mode keys can be deleted at any time. Standard accounts created using live-mode keys cannot be deleted. Custom or Express accounts created using live-mode keys can only be deleted once all balances are zero.
65
+ # Test-mode accounts can be deleted at any time.
66
+ #
67
+ # Live-mode accounts where Stripe is responsible for negative account balances cannot be deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be deleted when all [balances](https://stripe.com/api/balance/balanace_object) are zero.
59
68
  #
60
69
  # If you want to delete your own account, use the [account information tab in your account settings](https://dashboard.stripe.com/settings/account) instead.
61
70
  def delete(params = {}, opts = {})
@@ -92,9 +101,9 @@ module Stripe
92
101
  )
93
102
  end
94
103
 
95
- # With [Connect](https://stripe.com/docs/connect), you may flag accounts as suspicious.
104
+ # With [Connect](https://stripe.com/connect), you can reject accounts that you have flagged as suspicious.
96
105
  #
97
- # Test-mode Custom and Express accounts can be rejected at any time. Accounts created using live-mode keys may only be rejected once all balances are zero.
106
+ # Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.
98
107
  def reject(params = {}, opts = {})
99
108
  request_stripe_object(
100
109
  method: :post,
@@ -104,9 +113,9 @@ module Stripe
104
113
  )
105
114
  end
106
115
 
107
- # With [Connect](https://stripe.com/docs/connect), you may flag accounts as suspicious.
116
+ # With [Connect](https://stripe.com/connect), you can reject accounts that you have flagged as suspicious.
108
117
  #
109
- # Test-mode Custom and Express accounts can be rejected at any time. Accounts created using live-mode keys may only be rejected once all balances are zero.
118
+ # Only accounts where your platform is liable for negative account balances, which includes Custom and Express accounts, can be rejected. Test-mode accounts can be rejected at any time. Live-mode accounts can only be rejected after all balances are zero.
110
119
  def self.reject(account, params = {}, opts = {})
111
120
  request_stripe_object(
112
121
  method: :post,
@@ -116,12 +125,16 @@ module Stripe
116
125
  )
117
126
  end
118
127
 
119
- # Updates a [connected account](https://stripe.com/docs/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
128
+ # Updates a [connected account](https://stripe.com/connect/accounts) by setting the values of the parameters passed. Any parameters not provided are
120
129
  # left unchanged.
121
130
  #
122
- # For Custom accounts, you can update any information on the account. For other accounts, you can update all information until that
123
- # account has started to go through Connect Onboarding. Once you create an [Account Link or <a href="/docs/api/account_sessions">Account Session](https://stripe.com/docs/api/account_links),
124
- # some properties can only be changed or updated for Custom accounts.
131
+ # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
132
+ # is application, which includes Custom accounts, you can update any information on the account.
133
+ #
134
+ # For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
135
+ # is stripe, which includes Standard and Express accounts, you can update all information until you create
136
+ # an [Account Link or <a href="/api/account_sessions">Account Session](https://stripe.com/api/account_links) to start Connect onboarding,
137
+ # after which some properties can no longer be updated.
125
138
  #
126
139
  # To update your own account, use the [Dashboard](https://dashboard.stripe.com/settings/account). Refer to our
127
140
  # [Connect](https://stripe.com/docs/connect/updating-accounts) documentation to learn more about updating accounts.
@@ -4,11 +4,12 @@
4
4
  module Stripe
5
5
  # These bank accounts are payment methods on `Customer` objects.
6
6
  #
7
- # On the other hand [External Accounts](https://stripe.com/docs/api#external_accounts) are transfer
8
- # destinations on `Account` objects for [Custom accounts](https://stripe.com/docs/connect/custom-accounts).
7
+ # On the other hand [External Accounts](https://stripe.com/api#external_accounts) are transfer
8
+ # destinations on `Account` objects for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
9
+ # is `application`, which includes [Custom accounts](https://stripe.com/connect/custom-accounts).
9
10
  # They can be bank accounts or debit cards as well, and are documented in the links above.
10
11
  #
11
- # Related guide: [Bank debits and transfers](https://stripe.com/docs/payments/bank-debits-transfers)
12
+ # Related guide: [Bank debits and transfers](https://stripe.com/payments/bank-debits-transfers)
12
13
  class BankAccount < APIResource
13
14
  include Stripe::APIOperations::Delete
14
15
  extend Stripe::APIOperations::List
@@ -23,10 +23,10 @@ module Stripe
23
23
  # `Event` objects directly to an endpoint on your server. You can manage
24
24
  # webhooks in your
25
25
  # [account settings](https://dashboard.stripe.com/account/webhooks). Learn how
26
- # to [listen for events](https://stripe.com/docs/webhooks)
26
+ # to [listen for events](https://docs.stripe.com/webhooks)
27
27
  # so that your integration can automatically trigger reactions.
28
28
  #
29
- # When using [Connect](https://stripe.com/docs/connect), you can also receive event notifications
29
+ # When using [Connect](https://docs.stripe.com/connect), you can also receive event notifications
30
30
  # that occur in connected accounts. For these events, there's an
31
31
  # additional `account` attribute in the received `Event` object.
32
32
  #
@@ -40,7 +40,7 @@ module Stripe
40
40
  "event"
41
41
  end
42
42
 
43
- # List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://stripe.com/docs/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
43
+ # List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in [event object](https://docs.stripe.com/api/events/object) api_version attribute (not according to your current Stripe API version or Stripe-Version header).
44
44
  def self.list(filters = {}, opts = {})
45
45
  request_stripe_object(method: :get, path: "/v1/events", params: filters, opts: opts)
46
46
  end
@@ -115,6 +115,8 @@ module Stripe
115
115
  # Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the invoice has not yet been created. As such, the upcoming invoice will not show up in invoice listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the amount that your customer will be billed, you can add, remove, or update pending invoice items, or update the customer's discount.
116
116
  #
117
117
  # You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass the subscription_details.proration_date parameter when doing the actual subscription update. The recommended way to get only the prorations being previewed is to consider only proration line items where period[start] is equal to the subscription_details.proration_date value passed in the request.
118
+ #
119
+ # Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions)
118
120
  def self.create_preview(params = {}, opts = {})
119
121
  request_stripe_object(
120
122
  method: :post,
@@ -275,7 +277,9 @@ module Stripe
275
277
  #
276
278
  # Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the invoice has not yet been created. As such, the upcoming invoice will not show up in invoice listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the amount that your customer will be billed, you can add, remove, or update pending invoice items, or update the customer's discount.
277
279
  #
278
- # You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass the subscription_proration_date parameter when doing the actual subscription update. The recommended way to get only the prorations being previewed is to consider only proration line items where period[start] is equal to the subscription_proration_date value passed in the request.
280
+ # You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass the subscription_details.proration_date parameter when doing the actual subscription update. The recommended way to get only the prorations being previewed is to consider only proration line items where period[start] is equal to the subscription_details.proration_date value passed in the request.
281
+ #
282
+ # Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions)
279
283
  def self.upcoming(params = {}, opts = {})
280
284
  request_stripe_object(method: :get, path: "/v1/invoices/upcoming", params: params, opts: opts)
281
285
  end
@@ -9,6 +9,7 @@ module Stripe
9
9
  #
10
10
  # Related guide: [Issued card authorizations](https://stripe.com/docs/issuing/purchases/authorizations)
11
11
  class Authorization < APIResource
12
+ extend Gem::Deprecate
12
13
  extend Stripe::APIOperations::List
13
14
  include Stripe::APIOperations::Save
14
15
 
@@ -27,6 +28,7 @@ module Stripe
27
28
  opts: opts
28
29
  )
29
30
  end
31
+ deprecate :approve, :none, 2024, 3
30
32
 
31
33
  # [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
32
34
  # This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
@@ -38,6 +40,10 @@ module Stripe
38
40
  opts: opts
39
41
  )
40
42
  end
43
+ class << self
44
+ extend Gem::Deprecate
45
+ deprecate :approve, :none, 2024, 3
46
+ end
41
47
 
42
48
  # [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
43
49
  # This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
@@ -49,6 +55,7 @@ module Stripe
49
55
  opts: opts
50
56
  )
51
57
  end
58
+ deprecate :decline, :none, 2024, 3
52
59
 
53
60
  # [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
54
61
  # This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
@@ -60,6 +67,10 @@ module Stripe
60
67
  opts: opts
61
68
  )
62
69
  end
70
+ class << self
71
+ extend Gem::Deprecate
72
+ deprecate :decline, :none, 2024, 3
73
+ end
63
74
 
64
75
  # Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
65
76
  def self.list(filters = {}, opts = {})
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # Login Links are single-use login link for an Express account to access their Stripe dashboard.
5
+ # Login Links are single-use URLs for a connected account to access the Express Dashboard. The connected account's [account.controller.stripe_dashboard.type](https://stripe.com/api/accounts/object#account_object-controller-stripe_dashboard-type) must be `express` to have access to the Express Dashboard.
6
6
  class LoginLink < APIResource
7
7
  OBJECT_NAME = "login_link"
8
8
  def self.object_name
@@ -4,10 +4,9 @@
4
4
  module Stripe
5
5
  # This is an object representing a person associated with a Stripe account.
6
6
  #
7
- # A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account.
8
- # See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform prefilling and account onboarding steps.
7
+ # A platform cannot access a person for an account where [account.controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.
9
8
  #
10
- # Related guide: [Handling identity verification with the API](https://stripe.com/docs/connect/handling-api-verification#person-information)
9
+ # See the [Standard onboarding](https://stripe.com/connect/standard-accounts) or [Express onboarding](https://stripe.com/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](https://stripe.com/connect/handling-api-verification#person-information).
11
10
  class Person < APIResource
12
11
  include Stripe::APIOperations::Save
13
12
 
@@ -19,7 +19,7 @@ module Stripe
19
19
  #
20
20
  # You can't store or use tokens more than once. To store card or bank account
21
21
  # information for later use, create [Customer](https://stripe.com/docs/api#customers)
22
- # objects or [Custom accounts](https://stripe.com/docs/api#external_accounts).
22
+ # objects or [External accounts](https://stripe.com/api#external_accounts).
23
23
  # [Radar](https://stripe.com/docs/radar), our integrated solution for automatic fraud protection,
24
24
  # performs best with integrations that use client-side tokenization.
25
25
  class Token < APIResource
@@ -31,7 +31,7 @@ module Stripe
31
31
  end
32
32
 
33
33
  # Creates a single-use token that represents a bank account's details.
34
- # You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [Custom account](https://stripe.com/docs/api#accounts).
34
+ # You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts.
35
35
  def self.create(params = {}, opts = {})
36
36
  request_stripe_object(method: :post, path: "/v1/tokens", params: params, opts: opts)
37
37
  end
@@ -2,13 +2,13 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # You can configure [webhook endpoints](https://stripe.com/docs/webhooks/) via the API to be
5
+ # You can configure [webhook endpoints](https://docs.stripe.com/webhooks/) via the API to be
6
6
  # notified about events that happen in your Stripe account or connected
7
7
  # accounts.
8
8
  #
9
9
  # Most users configure webhooks from [the dashboard](https://dashboard.stripe.com/webhooks), which provides a user interface for registering and testing your webhook endpoints.
10
10
  #
11
- # Related guide: [Setting up webhooks](https://stripe.com/docs/webhooks/configure)
11
+ # Related guide: [Setting up webhooks](https://docs.stripe.com/webhooks/configure)
12
12
  class WebhookEndpoint < APIResource
13
13
  extend Stripe::APIOperations::Create
14
14
  include Stripe::APIOperations::Delete
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "11.3.0-beta.1"
4
+ VERSION = "11.4.0-beta.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.3.0.pre.beta.1
4
+ version: 11.4.0.pre.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-18 00:00:00.000000000 Z
11
+ date: 2024-05-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Stripe is the easiest way to accept payments online. See https://stripe.com
14
14
  for details.
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  - !ruby/object:Gem::Version
233
233
  version: 1.3.1
234
234
  requirements: []
235
- rubygems_version: 3.3.26
235
+ rubygems_version: 3.3.27
236
236
  signing_key:
237
237
  specification_version: 4
238
238
  summary: Ruby bindings for the Stripe API