stripe 10.7.0.pre.beta.2 → 10.7.0.pre.beta.3

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: 4112753e8076ffdf3238002e1ac003c6bc65c54002c62d928b630a3355c41b57
4
- data.tar.gz: ae9c4163e2dd516d89ed70dbd39d251231115c3ee5815369d2b3d68e8ed9d44a
3
+ metadata.gz: fb57ace02144a86ab65ccc919010a25b0353d7d79f6cf00efed9e644acc9d8d3
4
+ data.tar.gz: 8c6b1ed19456e0a586e15e64b6ee77496cef3751e72250f2106a05b15d849a90
5
5
  SHA512:
6
- metadata.gz: ec6649e1532fe742538418c116903461e6eacab743c4fa62d8493f74c909eb961e5e77d923a6a91044cdb308da57aa44337d97575ef2a82f95779c759097177c
7
- data.tar.gz: cb2b7bf99992ec3638445519d1a95a12ee98da3a6d98162996d4867b5a85d1ab7d83091a3fda94aa48a8c2924d9ebd823a87c21aa9a4ab5cdeb3be2e0fca4e5c
6
+ metadata.gz: 37097c3d79453588589d12b1f51c92ecf9e1fd1a51fc82a6f24a5c88054573c9fec6a374f899f87fe2f830f3c3e321a00d6d07569aff955bcd98bd7c3d520a65
7
+ data.tar.gz: d3ad39890a237df5a2d6e96f4ea42f37b9f2d63a805b4c393ff602a691fca685651a09abc7d9ec5841068084aba7783e3634717a15de9002256deeea0754a62e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 10.7.0-beta.3 - 2024-01-25
4
+ * [#1313](https://github.com/stripe/stripe-ruby/pull/1313) Update generated code for beta
5
+ * Add support for `create_preview` method on resource `Invoice`
6
+ * [#1307](https://github.com/stripe/stripe-ruby/pull/1307) Beta: report raw request usage
7
+
3
8
  ## 10.7.0-beta.2 - 2024-01-19
4
9
  * [#1307](https://github.com/stripe/stripe-ruby/pull/1307) Beta: report raw request usage
5
10
 
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v756
1
+ v794
data/VERSION CHANGED
@@ -1 +1 @@
1
- 10.7.0-beta.2
1
+ 10.7.0-beta.3
@@ -1,8 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # TODO: (major) Deprecated, Remove along with extends
4
3
  module Stripe
5
4
  module APIOperations
5
+ # The _search method via API Operations is deprecated.
6
+ # Please use the search method from within the resource instead.
6
7
  module Search
7
8
  def _search(search_url, filters = {}, opts = {})
8
9
  request_stripe_object(
@@ -12,6 +13,9 @@ module Stripe
12
13
  opts: opts
13
14
  )
14
15
  end
16
+
17
+ extend Gem::Deprecate
18
+ deprecate :_search, "request_stripe_object", 2024, 1
15
19
  end
16
20
  end
17
21
  end
@@ -12,6 +12,7 @@ module Stripe
12
12
  SearchResultObject::OBJECT_NAME => SearchResultObject,
13
13
 
14
14
  # business objects
15
+ File::OBJECT_NAME_ALT => File,
15
16
  Account::OBJECT_NAME => Account,
16
17
  AccountLink::OBJECT_NAME => AccountLink,
17
18
  AccountNotice::OBJECT_NAME => AccountNotice,
@@ -51,7 +52,6 @@ module Stripe
51
52
  Event::OBJECT_NAME => Event,
52
53
  ExchangeRate::OBJECT_NAME => ExchangeRate,
53
54
  File::OBJECT_NAME => File,
54
- File::OBJECT_NAME_ALT => File,
55
55
  FileLink::OBJECT_NAME => FileLink,
56
56
  FinancialConnections::Account::OBJECT_NAME => FinancialConnections::Account,
57
57
  FinancialConnections::AccountInferredBalance::OBJECT_NAME =>
@@ -7,9 +7,8 @@ module Stripe
7
7
  # enabled to make live charges or receive payouts.
8
8
  #
9
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)
11
- # for a Standard or Express account, some parameters are no longer returned. These are marked as **Custom Only** or **Custom and Express**
12
- # below. Learn about the differences [between accounts](https://stripe.com/docs/connect/accounts).
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).
13
12
  class Account < APIResource
14
13
  extend Gem::Deprecate
15
14
  extend Stripe::APIOperations::Create
@@ -134,6 +134,20 @@ module Stripe
134
134
  )
135
135
  end
136
136
 
137
+ # At any time, you can preview the upcoming invoice for a customer. This will show you all the charges that are pending, including subscription renewal charges, invoice item charges, etc. It will also show you any discounts that are applicable to the invoice.
138
+ #
139
+ # 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.
140
+ #
141
+ # 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 a proration_date parameter when doing the actual subscription update. The value passed in should be the same as the subscription_proration_date returned on the upcoming invoice resource. 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 on the upcoming invoice resource.
142
+ def self.create_preview(params = {}, opts = {})
143
+ request_stripe_object(
144
+ method: :post,
145
+ path: "/v1/invoices/create_preview",
146
+ params: params,
147
+ opts: opts
148
+ )
149
+ end
150
+
137
151
  # Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method.
138
152
  def self.finalize_invoice(invoice, params = {}, opts = {})
139
153
  request_stripe_object(
@@ -17,7 +17,7 @@ module Stripe
17
17
 
18
18
  OBJECT_NAME = "payout"
19
19
 
20
- # You can cancel a previously created payout if it hasn't been paid out yet. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts.
20
+ # You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts.
21
21
  def cancel(params = {}, opts = {})
22
22
  request_stripe_object(
23
23
  method: :post,
@@ -27,7 +27,7 @@ module Stripe
27
27
  )
28
28
  end
29
29
 
30
- # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is in the pending status, use /v1/payouts/:id/cancel instead.
30
+ # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.
31
31
  #
32
32
  # By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required.
33
33
  def reverse(params = {}, opts = {})
@@ -39,7 +39,7 @@ module Stripe
39
39
  )
40
40
  end
41
41
 
42
- # You can cancel a previously created payout if it hasn't been paid out yet. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts.
42
+ # You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can't cancel automatic Stripe payouts.
43
43
  def self.cancel(payout, params = {}, opts = {})
44
44
  request_stripe_object(
45
45
  method: :post,
@@ -49,7 +49,7 @@ module Stripe
49
49
  )
50
50
  end
51
51
 
52
- # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is in the pending status, use /v1/payouts/:id/cancel instead.
52
+ # Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.
53
53
  #
54
54
  # By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required.
55
55
  def self.reverse(payout, params = {}, opts = {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "10.7.0-beta.2"
4
+ VERSION = "10.7.0-beta.3"
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: 10.7.0.pre.beta.2
4
+ version: 10.7.0.pre.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-19 00:00:00.000000000 Z
11
+ date: 2024-01-25 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.