stripe 4.21.1 → 4.21.2

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: b3d5fb94d35bef2ad0de0ef67062dc7ac37eb4484b49d1db65a2e618d59c7f98
4
- data.tar.gz: e13ba52e3c48ef28ba30ad39bda15620f53a71aad0e547ec9e3f9658349e852c
3
+ metadata.gz: 9565603560cfb5f63405f2ac5a1fbbab363d736c81bb7d06858a06530e9fb5b9
4
+ data.tar.gz: cc69afe87e63b28d38b1fcd5482cc947b24e0f13414e2c8abc4a2267b27ba373
5
5
  SHA512:
6
- metadata.gz: 4df2e3f8ad55db738229fc7d6c1207c395af3f9506227c52b06bddf082039afd88f8c6b19991af80547e6fc4a39be1cce05b179f9e10f6f7748bb11bd10237b7
7
- data.tar.gz: c5a5bb5bd7ead7119d95c8b158506b5c32e7617a6f8a8935271e8ff44cfb7ff4c6c7732c937cdb97f055032a579445cf9735f52f55575f808ebd432267b7cd53
6
+ metadata.gz: 6fdbf78bb9cce8463cedb3859755607b5c4b5e9eeea2125aee9079e3ea9ed00c623d8ce5dd249b4ee042c05552b80be8b7848a831c1a73d1e14cc72bcbd11e97
7
+ data.tar.gz: 539d01633f5ced964669bd7611aaeb64534b54a2125ea8e0480867e9d94a5af8d9563450e6ac9e2bdedf3e72d0f25fca77ca8c2d3c08a6049b804a72340bc237
data/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.21.2 - 2019-07-05
4
+ * [#806](https://github.com/stripe/stripe-ruby/pull/806) Revert back to `initialize_from` from `Util.convert_to_stripe_object`
5
+
3
6
  ## 4.21.1 - 2019-07-04
4
7
  * [#807](https://github.com/stripe/stripe-ruby/pull/807) Add gem metadata
5
8
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.21.1
1
+ 4.21.2
@@ -21,7 +21,7 @@ module Stripe
21
21
 
22
22
  def reject(params = {}, opts = {})
23
23
  resp, opts = request(:post, resource_url + "/reject", params, opts)
24
- Util.convert_to_stripe_object(resp.data, opts)
24
+ initialize_from(resp.data, opts)
25
25
  end
26
26
 
27
27
  save_nested_resource :external_account
@@ -12,7 +12,7 @@ module Stripe
12
12
 
13
13
  def void_credit_note(params = {}, opts = {})
14
14
  resp, opts = request(:post, resource_url + "/void", params, opts)
15
- Util.convert_to_stripe_object(resp.data, opts)
15
+ initialize_from(resp.data, opts)
16
16
  end
17
17
  end
18
18
  end
@@ -11,7 +11,7 @@ module Stripe
11
11
 
12
12
  def close(params = {}, opts = {})
13
13
  resp, opts = request(:post, resource_url + "/close", params, opts)
14
- Util.convert_to_stripe_object(resp.data, opts)
14
+ initialize_from(resp.data, opts)
15
15
  end
16
16
 
17
17
  def close_url
@@ -17,27 +17,27 @@ module Stripe
17
17
 
18
18
  def finalize_invoice(params = {}, opts = {})
19
19
  resp, opts = request(:post, resource_url + "/finalize", params, opts)
20
- Util.convert_to_stripe_object(resp.data, opts)
20
+ initialize_from(resp.data, opts)
21
21
  end
22
22
 
23
23
  def mark_uncollectible(params = {}, opts = {})
24
24
  resp, opts = request(:post, resource_url + "/mark_uncollectible", params, opts)
25
- Util.convert_to_stripe_object(resp.data, opts)
25
+ initialize_from(resp.data, opts)
26
26
  end
27
27
 
28
28
  def pay(params = {}, opts = {})
29
29
  resp, opts = request(:post, resource_url + "/pay", params, opts)
30
- Util.convert_to_stripe_object(resp.data, opts)
30
+ initialize_from(resp.data, opts)
31
31
  end
32
32
 
33
33
  def send_invoice(params = {}, opts = {})
34
34
  resp, opts = request(:post, resource_url + "/send", params, opts)
35
- Util.convert_to_stripe_object(resp.data, opts)
35
+ initialize_from(resp.data, opts)
36
36
  end
37
37
 
38
38
  def void_invoice(params = {}, opts = {})
39
39
  resp, opts = request(:post, resource_url + "/void", params, opts)
40
- Util.convert_to_stripe_object(resp.data, opts)
40
+ initialize_from(resp.data, opts)
41
41
  end
42
42
 
43
43
  def self.upcoming(params, opts = {})
@@ -13,12 +13,12 @@ module Stripe
13
13
 
14
14
  def approve(params = {}, opts = {})
15
15
  resp, opts = request(:post, resource_url + "/approve", params, opts)
16
- Util.convert_to_stripe_object(resp.data, opts)
16
+ initialize_from(resp.data, opts)
17
17
  end
18
18
 
19
19
  def decline(params = {}, opts = {})
20
20
  resp, opts = request(:post, resource_url + "/decline", params, opts)
21
- Util.convert_to_stripe_object(resp.data, opts)
21
+ initialize_from(resp.data, opts)
22
22
  end
23
23
  end
24
24
  end
@@ -14,17 +14,17 @@ module Stripe
14
14
 
15
15
  def cancel(params = {}, opts = {})
16
16
  resp, opts = request(:post, resource_url + "/cancel", params, opts)
17
- Util.convert_to_stripe_object(resp.data, opts)
17
+ initialize_from(resp.data, opts)
18
18
  end
19
19
 
20
20
  def capture(params = {}, opts = {})
21
21
  resp, opts = request(:post, resource_url + "/capture", params, opts)
22
- Util.convert_to_stripe_object(resp.data, opts)
22
+ initialize_from(resp.data, opts)
23
23
  end
24
24
 
25
25
  def confirm(params = {}, opts = {})
26
26
  resp, opts = request(:post, resource_url + "/confirm", params, opts)
27
- Util.convert_to_stripe_object(resp.data, opts)
27
+ initialize_from(resp.data, opts)
28
28
  end
29
29
  end
30
30
  end
@@ -13,12 +13,12 @@ module Stripe
13
13
 
14
14
  def attach(params = {}, opts = {})
15
15
  resp, opts = request(:post, resource_url + "/attach", params, opts)
16
- Util.convert_to_stripe_object(resp.data, opts)
16
+ initialize_from(resp.data, opts)
17
17
  end
18
18
 
19
19
  def detach(params = {}, opts = {})
20
20
  resp, opts = request(:post, resource_url + "/detach", params, opts)
21
- Util.convert_to_stripe_object(resp.data, opts)
21
+ initialize_from(resp.data, opts)
22
22
  end
23
23
  end
24
24
  end
@@ -12,7 +12,7 @@ module Stripe
12
12
 
13
13
  def cancel(params = {}, opts = {})
14
14
  resp, opts = request(:post, resource_url + "/cancel", params, opts)
15
- Util.convert_to_stripe_object(resp.data, opts)
15
+ initialize_from(resp.data, opts)
16
16
  end
17
17
 
18
18
  def cancel_url
@@ -10,7 +10,7 @@ module Stripe
10
10
 
11
11
  def approve(params = {}, opts = {})
12
12
  resp, opts = request(:post, resource_url + "/approve", params, opts)
13
- Util.convert_to_stripe_object(resp.data, opts)
13
+ initialize_from(resp.data, opts)
14
14
  end
15
15
  end
16
16
  end
@@ -13,12 +13,12 @@ module Stripe
13
13
 
14
14
  def cancel(params = {}, opts = {})
15
15
  resp, opts = request(:post, resource_url + "/cancel", params, opts)
16
- Util.convert_to_stripe_object(resp.data, opts)
16
+ initialize_from(resp.data, opts)
17
17
  end
18
18
 
19
19
  def confirm(params = {}, opts = {})
20
20
  resp, opts = request(:post, resource_url + "/confirm", params, opts)
21
- Util.convert_to_stripe_object(resp.data, opts)
21
+ initialize_from(resp.data, opts)
22
22
  end
23
23
  end
24
24
  end
@@ -11,7 +11,7 @@ module Stripe
11
11
 
12
12
  def verify(params = {}, opts = {})
13
13
  resp, opts = request(:post, resource_url + "/verify", params, opts)
14
- Util.convert_to_stripe_object(resp.data, opts)
14
+ initialize_from(resp.data, opts)
15
15
  end
16
16
 
17
17
  def detach(params = {}, opts = {})
@@ -16,12 +16,12 @@ module Stripe
16
16
 
17
17
  def cancel(params = {}, opts = {})
18
18
  resp, opts = request(:post, resource_url + "/cancel", params, opts)
19
- Util.convert_to_stripe_object(resp.data, opts)
19
+ initialize_from(resp.data, opts)
20
20
  end
21
21
 
22
22
  def release(params = {}, opts = {})
23
23
  resp, opts = request(:post, resource_url + "/release", params, opts)
24
- Util.convert_to_stripe_object(resp.data, opts)
24
+ initialize_from(resp.data, opts)
25
25
  end
26
26
 
27
27
  def revisions(params = {}, opts = {})
@@ -12,7 +12,7 @@ module Stripe
12
12
 
13
13
  def cancel(params = {}, opts = {})
14
14
  resp, opts = request(:post, resource_url + "/cancel", params, opts)
15
- Util.convert_to_stripe_object(resp.data, opts)
15
+ initialize_from(resp.data, opts)
16
16
  end
17
17
  end
18
18
  end
@@ -16,7 +16,7 @@ module Stripe
16
16
 
17
17
  def cancel(params = {}, opts = {})
18
18
  resp, opts = request(:post, resource_url + "/cancel", params, opts)
19
- Util.convert_to_stripe_object(resp.data, opts)
19
+ initialize_from(resp.data, opts)
20
20
  end
21
21
 
22
22
  def cancel_url
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "4.21.1".freeze
4
+ VERSION = "4.21.2".freeze
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: 4.21.1
4
+ version: 4.21.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-04 00:00:00.000000000 Z
11
+ date: 2019-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday