stripe 5.29.0 → 5.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6279813f9c71288d0e0ebaed2322dca113ef330825ff6d0ca9cbb714e8b32629
4
- data.tar.gz: 3669b9c18714d88ee54ee14d5446a07ccbd64e29d6ab6755ea1265037c52e4b7
3
+ metadata.gz: f2339577f165121c223f4295756bda5201da78e319999ade2af402d20d126ee2
4
+ data.tar.gz: 8488a28668b139b205ce0d5f1352ae330fe8c5c9653c4028a9fa0302aed77711
5
5
  SHA512:
6
- metadata.gz: b23da505116525af9e0d3effb22b93ea6fcb59bea0ffec13ca56bb18a21a6ab6317e0885a213570328d192a55f03ff4fa307108e0765d7a15b6973de00c4e906
7
- data.tar.gz: f44454e686caa4b97663a6629d78c1ac07406c9ef789f7f7c3f33091f3432e5d90a27207f1e35cb4d0e1e7fc7453266a6d233e5e70dadeacf993686dd306bf19
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.0
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
- initialize_from(resp.data, opts, true)
38
+ Util.convert_to_stripe_object(resp.data, opts)
34
39
  end
35
40
  end
36
41
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "5.29.0"
4
+ VERSION = "5.29.1"
5
5
  end
@@ -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
- customer = customer.delete_discount
59
+ discount = customer.delete_discount
60
60
  assert_requested :delete, "#{Stripe.api_base}/v1/customers/cus_123/discount"
61
- assert customer.is_a?(Stripe::Customer)
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.0
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-01-05 00:00:00.000000000 Z
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.