stripe 11.1.0 → 11.2.0

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: f2df89dabe27f57ff54645723cad1cc28531ebf032937475be2ca95fac655c60
4
- data.tar.gz: 54913826d87f972d8063ff116975144b4c02605d71cc898a8bb8fbafb5fd4b3a
3
+ metadata.gz: 9a532c98b54462fa91b7d327ea10a33edea1e48e7b646e62b70159d57b1a6485
4
+ data.tar.gz: 04a6f956627e573d43338c99345854fe47921514c1e7e99a6408b385834c2c62
5
5
  SHA512:
6
- metadata.gz: 18ded6bd3ed615765e5ea91d1b89081ed97be2ddeb17eadb870f9bbfa7f4c2f2b73432870360f05fb7728d16969da0603fcf2999f0b7364f03e616445cc58aa0
7
- data.tar.gz: 41187f95412cec224776e5ab72c685383e6a4e14ff33ddca645f51a1fc11abf060de7499d3d64454efb12cb7436e7fae36c2d611a65c1e43b1ed6a190dd82ff4
6
+ metadata.gz: 3dfb923acd030f02d7925fd0d087923cb20a61dd0061b49d9ac9324043e8e68864672d2e734e2b2d0588fa17d63ad9c070db1cdd958dc14de6d2a07a8fb73fa2
7
+ data.tar.gz: 216d7c11874e3e7d113d58669b8ebd543a4430a87c8120645749c97fb67ba1bac789082b05f127ed777463f6aae36015b7d46b9b1b31262961453437350e1363
data/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # Changelog
2
+ ## 11.2.0 - 2024-04-18
3
+ * [#1385](https://github.com/stripe/stripe-ruby/pull/1385) Update generated code
4
+ * Add support for `create_preview` method on resource `Invoice`
5
+
2
6
  ## 11.1.0 - 2024-04-16
3
7
  * [#1379](https://github.com/stripe/stripe-ruby/pull/1379) Update generated code
4
8
  * Add support for new resource `Entitlements.ActiveEntitlementSummary`
5
- * [#1382](https://github.com/stripe/stripe-ruby/pull/1382) Revert Makefile change to allow autoformatting in codegen
6
- * [#1380](https://github.com/stripe/stripe-ruby/pull/1380) Rename section for object types
7
9
 
8
10
  ## 11.0.0 - 2024-04-10
9
11
  * [#1374](https://github.com/stripe/stripe-ruby/pull/1374)
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v961
1
+ v969
data/VERSION CHANGED
@@ -1 +1 @@
1
- 11.1.0
1
+ 11.2.0
@@ -51,6 +51,20 @@ module Stripe
51
51
  request_stripe_object(method: :post, path: "/v1/invoices", params: params, opts: opts)
52
52
  end
53
53
 
54
+ # 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.
55
+ #
56
+ # 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.
57
+ #
58
+ # 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.
59
+ def self.create_preview(params = {}, opts = {})
60
+ request_stripe_object(
61
+ method: :post,
62
+ path: "/v1/invoices/create_preview",
63
+ params: params,
64
+ opts: opts
65
+ )
66
+ end
67
+
54
68
  # Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be [voided](https://stripe.com/docs/api#void_invoice).
55
69
  def self.delete(id, params = {}, opts = {})
56
70
  request_stripe_object(
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "11.1.0"
4
+ VERSION = "11.2.0"
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.1.0
4
+ version: 11.2.0
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-16 00:00:00.000000000 Z
11
+ date: 2024-04-18 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.