stripe 10.14.0.pre.beta.1 → 10.15.0.pre.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +19 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/resources/confirmation_token.rb +3 -1
- data/lib/stripe/resources/entitlements/feature.rb +11 -0
- data/lib/stripe/resources/forwarding/request.rb +2 -0
- data/lib/stripe/resources/invoice.rb +6 -2
- data/lib/stripe/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 647cc19141d8bac3505fd643b7d25ffbcde4fd25433eaa04306543a4637cecc8
|
4
|
+
data.tar.gz: 34197f892c3746666c89f62f96f21567a9dc53681e120591285b76170431a76f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab3703f6b2a2a11028c9dd8f490ebc59cf47b5de5c925f8da3ea750dc0c8d15170632416b68e25d3489ca4b1120a40feb4c0786f061f4ab136b95f94846142bc
|
7
|
+
data.tar.gz: 68542440ed10188d8998cfa54b58ddfdde81e063500a67ff35729426480e00c7946d7da1a5692b8e799483789f6e58417b70085990ce78d538610cb37b9da86e
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,29 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 10.15.0-beta.1 - 2024-04-04
|
4
|
+
* [#1373](https://github.com/stripe/stripe-ruby/pull/1373) Update generated code for beta
|
5
|
+
* Add support for `update` method on resource `Entitlements.Feature`
|
6
|
+
* [#1370](https://github.com/stripe/stripe-ruby/pull/1370) Update generated code for beta
|
7
|
+
|
8
|
+
|
9
|
+
## 10.14.0 - 2024-03-28
|
10
|
+
* [#1369](https://github.com/stripe/stripe-ruby/pull/1369) Update generated code
|
11
|
+
* Add support for new resources `Billing.MeterEventAdjustment`, `Billing.MeterEvent`, and `Billing.Meter`
|
12
|
+
* Add support for `create`, `deactivate`, `list`, `reactivate`, `retrieve`, and `update` methods on resource `Meter`
|
13
|
+
* Add support for `create` method on resources `MeterEventAdjustment` and `MeterEvent`
|
14
|
+
|
3
15
|
## 10.14.0-beta.1 - 2024-03-21
|
4
16
|
* [#1363](https://github.com/stripe/stripe-ruby/pull/1363) Update generated code for beta
|
5
17
|
* Add support for new resources `Entitlements.ActiveEntitlementSummary` and `Entitlements.ActiveEntitlement`
|
6
18
|
* Add support for `list` method on resource `ActiveEntitlement`
|
7
19
|
|
20
|
+
## 10.13.0 - 2024-03-21
|
21
|
+
* [#1367](https://github.com/stripe/stripe-ruby/pull/1367) Update generated code
|
22
|
+
* Add support for new resources `ConfirmationToken` and `Forwarding.Request`
|
23
|
+
* Add support for `retrieve` method on resource `ConfirmationToken`
|
24
|
+
* Add support for `create`, `list`, and `retrieve` methods on resource `Request`
|
25
|
+
* [#1362](https://github.com/stripe/stripe-ruby/pull/1362) Exclude sorbet directory and tapioca script when packing gem
|
26
|
+
|
8
27
|
## 10.13.0-beta.1 - 2024-03-14
|
9
28
|
* [#1360](https://github.com/stripe/stripe-ruby/pull/1360) Update generated code for beta
|
10
29
|
* Add support for new resources `Billing.MeterEventAdjustment`, `Billing.MeterEvent`, and `Billing.Meter`
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v923
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
10.
|
1
|
+
10.15.0-beta.1
|
@@ -6,7 +6,9 @@ module Stripe
|
|
6
6
|
# to your server for confirming a PaymentIntent or SetupIntent. If the confirmation
|
7
7
|
# is successful, values present on the ConfirmationToken are written onto the Intent.
|
8
8
|
#
|
9
|
-
# To learn more
|
9
|
+
# To learn more about how to use ConfirmationToken, visit the related guides:
|
10
|
+
# - [Finalize payments on the server](https://stripe.com/docs/payments/finalize-payments-on-the-server)
|
11
|
+
# - [Build two-step confirmation](https://stripe.com/docs/payments/build-a-two-step-confirmation).
|
10
12
|
class ConfirmationToken < APIResource
|
11
13
|
OBJECT_NAME = "confirmation_token"
|
12
14
|
def self.object_name
|
@@ -8,6 +8,7 @@ module Stripe
|
|
8
8
|
class Feature < APIResource
|
9
9
|
extend Stripe::APIOperations::Create
|
10
10
|
extend Stripe::APIOperations::List
|
11
|
+
include Stripe::APIOperations::Save
|
11
12
|
|
12
13
|
OBJECT_NAME = "entitlements.feature"
|
13
14
|
def self.object_name
|
@@ -33,6 +34,16 @@ module Stripe
|
|
33
34
|
opts: opts
|
34
35
|
)
|
35
36
|
end
|
37
|
+
|
38
|
+
# Update a feature's metadata or permanently deactivate it.
|
39
|
+
def self.update(id, params = {}, opts = {})
|
40
|
+
request_stripe_object(
|
41
|
+
method: :post,
|
42
|
+
path: format("/v1/entitlements/features/%<id>s", { id: CGI.escape(id) }),
|
43
|
+
params: params,
|
44
|
+
opts: opts
|
45
|
+
)
|
46
|
+
end
|
36
47
|
end
|
37
48
|
end
|
38
49
|
end
|
@@ -17,6 +17,8 @@ module Stripe
|
|
17
17
|
#
|
18
18
|
# Forwarding Requests are synchronous requests that return a response or time out according to
|
19
19
|
# Stripe's limits.
|
20
|
+
#
|
21
|
+
# Related guide: [Forward card details to third-party API endpoints](https://docs.stripe.com/payments/forwarding).
|
20
22
|
class Request < APIResource
|
21
23
|
extend Stripe::APIOperations::Create
|
22
24
|
extend Stripe::APIOperations::List
|
@@ -114,7 +114,7 @@ module Stripe
|
|
114
114
|
#
|
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
|
-
# 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
|
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
118
|
def self.create_preview(params = {}, opts = {})
|
119
119
|
request_stripe_object(
|
120
120
|
method: :post,
|
@@ -275,7 +275,7 @@ module Stripe
|
|
275
275
|
#
|
276
276
|
# 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
277
|
#
|
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
|
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.
|
279
279
|
def self.upcoming(params = {}, opts = {})
|
280
280
|
request_stripe_object(method: :get, path: "/v1/invoices/upcoming", params: params, opts: opts)
|
281
281
|
end
|
@@ -316,6 +316,8 @@ module Stripe
|
|
316
316
|
end
|
317
317
|
|
318
318
|
# Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://stripe.com/docs/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
|
319
|
+
#
|
320
|
+
# Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or <a href="#create_credit_note">credit note](https://stripe.com/docs/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
|
319
321
|
def void_invoice(params = {}, opts = {})
|
320
322
|
request_stripe_object(
|
321
323
|
method: :post,
|
@@ -326,6 +328,8 @@ module Stripe
|
|
326
328
|
end
|
327
329
|
|
328
330
|
# Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to [deletion](https://stripe.com/docs/api#delete_invoice), however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.
|
331
|
+
#
|
332
|
+
# Consult with local regulations to determine whether and how an invoice might be amended, canceled, or voided in the jurisdiction you're doing business in. You might need to [issue another invoice or <a href="#create_credit_note">credit note](https://stripe.com/docs/api#create_invoice) instead. Stripe recommends that you consult with your legal counsel for advice specific to your business.
|
329
333
|
def self.void_invoice(invoice, params = {}, opts = {})
|
330
334
|
request_stripe_object(
|
331
335
|
method: :post,
|
data/lib/stripe/version.rb
CHANGED
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.
|
4
|
+
version: 10.15.0.pre.beta.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-04 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.
|