stripe 10.10.0 → 10.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/Gemfile +1 -1
- data/OPENAPI_VERSION +1 -1
- data/README.md +2 -3
- data/VERSION +1 -1
- data/lib/stripe/resources/charge.rb +3 -0
- data/lib/stripe/resources/refund.rb +5 -9
- 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: 28c08ac3bb74417f42f5d45630f1efdad13075deec60589cea4c8b88c8db9a3b
|
4
|
+
data.tar.gz: 1b2560d8edde07beba5f2534efc3f7ca3009cdd4b431d10539d5e6542ef2a58f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86ec1cc29d4876d59b00854f73d6a7e10c19bcb91bd5b708dd943e2e36d16c07d74b8766fc47093a584926257f37d4c150c716c0ac73e4b3820311b250a942ec
|
7
|
+
data.tar.gz: 51ae5ff315ca40fdfab8eae78945ffea6f96d06a41d7cabfb5bf3c3b437534cf5ca9a9a437c3ec87d46c39f7d8aed4698beb88ca16ca84ac64ea6d480eb9e82a
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,19 @@
|
|
1
1
|
# Changelog
|
2
|
+
## 10.11.0 - 2024-02-29
|
3
|
+
* [#1348](https://github.com/stripe/stripe-ruby/pull/1348) Use sorbet gem instead of sorbet-static
|
4
|
+
* [#1342](https://github.com/stripe/stripe-ruby/pull/1342) Update generated code
|
5
|
+
* Add `list_refunds` and `retrieve_refund` methods on resource `Charge`.
|
6
|
+
* [#1345](https://github.com/stripe/stripe-ruby/pull/1345) Update README to use add_beta_version
|
7
|
+
|
8
|
+
## 10.11.0 - 2024-02-29
|
9
|
+
* [#1348](https://github.com/stripe/stripe-ruby/pull/1348) Use sorbet gem instead of sorbet-static
|
10
|
+
|
11
|
+
## 10.11.0 - 2024-02-29
|
12
|
+
* [#1348](https://github.com/stripe/stripe-ruby/pull/1348) Use sorbet gem instead of sorbet-static
|
13
|
+
* [#1342](https://github.com/stripe/stripe-ruby/pull/1342) Update generated code
|
14
|
+
* Add `list_refunds` and `retrieve_refund` methods on resource `Charge`
|
15
|
+
* [#1345](https://github.com/stripe/stripe-ruby/pull/1345) Update README to use add_beta_version
|
16
|
+
|
2
17
|
## 10.10.0 - 2024-02-22
|
3
18
|
* [#1336](https://github.com/stripe/stripe-ruby/pull/1336) Update generated code
|
4
19
|
- Add `InvoiceLineItem.update` method.
|
data/Gemfile
CHANGED
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v841
|
data/README.md
CHANGED
@@ -23,7 +23,6 @@ See the [Ruby API docs](https://stripe.com/docs/api?lang=ruby).
|
|
23
23
|
|
24
24
|
See [video demonstrations][youtube-playlist] covering how to use the library.
|
25
25
|
|
26
|
-
|
27
26
|
## Installation
|
28
27
|
|
29
28
|
You don't need this source code unless you want to modify the gem. If you just
|
@@ -336,10 +335,10 @@ gem install stripe -v 7.1.0.pre.beta.2
|
|
336
335
|
|
337
336
|
We highly recommend keeping an eye on when the beta feature you are interested in goes from beta to stable so that you can move from using a beta version of the SDK to the stable version.
|
338
337
|
|
339
|
-
If your beta feature requires a `Stripe-Version` header to be sent,
|
338
|
+
If your beta feature requires a `Stripe-Version` header to be sent, set the `Stripe.api_version` field using `Stripe.add_beta_version`:
|
340
339
|
|
341
340
|
```python
|
342
|
-
Stripe.
|
341
|
+
Stripe.add_beta_version("feature_beta", "v3")
|
343
342
|
```
|
344
343
|
|
345
344
|
## Support
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
10.
|
1
|
+
10.11.0
|
@@ -11,12 +11,15 @@ module Stripe
|
|
11
11
|
extend Stripe::APIOperations::List
|
12
12
|
extend Stripe::APIOperations::Search
|
13
13
|
include Stripe::APIOperations::Save
|
14
|
+
extend Stripe::APIOperations::NestedResource
|
14
15
|
|
15
16
|
OBJECT_NAME = "charge"
|
16
17
|
def self.object_name
|
17
18
|
"charge"
|
18
19
|
end
|
19
20
|
|
21
|
+
nested_resource_class_methods :refund, operations: %i[retrieve list]
|
22
|
+
|
20
23
|
# Capture the payment of an existing, uncaptured charge that was created with the capture option set to false.
|
21
24
|
#
|
22
25
|
# Uncaptured payments expire a set number of days after they are created ([7 by default](https://stripe.com/docs/charges/placing-a-hold)), after which they are marked as refunded and capture attempts will fail.
|
@@ -41,15 +41,6 @@ module Stripe
|
|
41
41
|
)
|
42
42
|
end
|
43
43
|
|
44
|
-
def self.list(filters = {}, opts = {})
|
45
|
-
request_stripe_object(
|
46
|
-
method: :get,
|
47
|
-
path: format("/v1/refunds"),
|
48
|
-
params: filters,
|
49
|
-
opts: opts
|
50
|
-
)
|
51
|
-
end
|
52
|
-
|
53
44
|
# When you create a new refund, you must specify a Charge or a PaymentIntent object on which to create it.
|
54
45
|
#
|
55
46
|
# Creating a new refund will refund a charge that has previously been created but not yet refunded.
|
@@ -65,6 +56,11 @@ module Stripe
|
|
65
56
|
request_stripe_object(method: :post, path: "/v1/refunds", params: params, opts: opts)
|
66
57
|
end
|
67
58
|
|
59
|
+
# Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first The 10 most recent refunds are always available by default on the Charge object.
|
60
|
+
def self.list(filters = {}, opts = {})
|
61
|
+
request_stripe_object(method: :get, path: "/v1/refunds", params: filters, opts: opts)
|
62
|
+
end
|
63
|
+
|
68
64
|
# Updates the refund that you specify by setting the values of the passed parameters. Any parameters that you don't provide remain unchanged.
|
69
65
|
#
|
70
66
|
# This request only accepts metadata as an argument.
|
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.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-29 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.
|