stripe 5.29.0 → 5.29.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 +3 -0
- data/README.md +4 -0
- data/VERSION +1 -1
- data/lib/stripe/resources/customer.rb +6 -1
- data/lib/stripe/version.rb +1 -1
- data/test/stripe/customer_test.rb +2 -2
- 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: f2339577f165121c223f4295756bda5201da78e319999ade2af402d20d126ee2
|
4
|
+
data.tar.gz: 8488a28668b139b205ce0d5f1352ae330fe8c5c9653c4028a9fa0302aed77711
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16992739fced47381ac70ca4f4b8bd710a63633824c496fe1fdd8cb7cdf7928022a4c3aa4b84fe631ebb0e75a42aaa246d575c7ea7eaadfc15bf26631f031258
|
7
|
+
data.tar.gz: b7ce68eae234665c2ded8c5e9691865bb6c98564cfe5f4928f94b660e42cc08eddfa375d4a9a790eb61e096ab679affdfd53e16c8a707dcf88c275e2ffaf2d5e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 5.29.1 - 2021-02-09
|
4
|
+
* [#964](https://github.com/stripe/stripe-ruby/pull/964) Fix return value of `Customer#delete_discount`
|
5
|
+
|
3
6
|
## 5.29.0 - 2021-01-05
|
4
7
|
* [#952](https://github.com/stripe/stripe-ruby/pull/952) Allow client_id configuration on instance config
|
5
8
|
|
data/README.md
CHANGED
@@ -21,6 +21,9 @@ The library also provides other features. For example:
|
|
21
21
|
|
22
22
|
See the [Ruby API docs](https://stripe.com/docs/api/ruby#intro).
|
23
23
|
|
24
|
+
See [video demonstrations][youtube-playlist] covering how to use the library.
|
25
|
+
|
26
|
+
|
24
27
|
## Installation
|
25
28
|
|
26
29
|
You don't need this source code unless you want to modify the gem. If you just
|
@@ -340,6 +343,7 @@ Update the bundled [stripe-mock] by editing the version number found in
|
|
340
343
|
[idempotency-keys]: https://stripe.com/docs/api/ruby#idempotent_requests
|
341
344
|
[stripe-mock]: https://github.com/stripe/stripe-mock
|
342
345
|
[versioning]: https://stripe.com/docs/api/ruby#versioning
|
346
|
+
[youtube-playlist]: https://www.youtube.com/playlist?list=PLy1nL-pvL2M50RmP6ie-gdcSnfOuQCRYk
|
343
347
|
|
344
348
|
<!--
|
345
349
|
# vim: set tw=79:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
5.29.
|
1
|
+
5.29.1
|
@@ -28,9 +28,14 @@ module Stripe
|
|
28
28
|
alias detach_source delete_source
|
29
29
|
end
|
30
30
|
|
31
|
+
# Deletes a discount associated with the customer.
|
32
|
+
#
|
33
|
+
# Returns the deleted discount. The customer object is not updated,
|
34
|
+
# so you must call `refresh` on it to get a new version with the
|
35
|
+
# discount removed.
|
31
36
|
def delete_discount
|
32
37
|
resp, opts = execute_resource_request(:delete, resource_url + "/discount")
|
33
|
-
|
38
|
+
Util.convert_to_stripe_object(resp.data, opts)
|
34
39
|
end
|
35
40
|
end
|
36
41
|
end
|
data/lib/stripe/version.rb
CHANGED
@@ -56,9 +56,9 @@ module Stripe
|
|
56
56
|
context "#delete_discount" do
|
57
57
|
should "delete a discount" do
|
58
58
|
customer = Stripe::Customer.retrieve("cus_123")
|
59
|
-
|
59
|
+
discount = customer.delete_discount
|
60
60
|
assert_requested :delete, "#{Stripe.api_base}/v1/customers/cus_123/discount"
|
61
|
-
assert
|
61
|
+
assert discount.is_a?(Stripe::Discount)
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
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: 5.29.
|
4
|
+
version: 5.29.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stripe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-09 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.
|