stripe 8.7.0.pre.beta.2 → 8.7.0.pre.beta.3

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: '025923624fe893ec10b1799776ba83c8cee3a59072dcdbc8d2522ea3895a12d1'
4
- data.tar.gz: 62519a92a1901f2ff498f4183becdbde164dea0c96ca29d6725047eb2502d8ea
3
+ metadata.gz: 58cf6a053cd2c06123c49e3e3a0821cc69c639c7c5d286c0e5e3c020be2b8739
4
+ data.tar.gz: fadd0f3f33477c8ee167eb4ed141573730a82b74d89b4b26c7e8540a576013c8
5
5
  SHA512:
6
- metadata.gz: 20c986e3581b57dc5a10d4d617184be0a9d47d1e81b0d4f2a0bc1ed66f4f21a5e0fe8c042c38f87fc9a7015f5333d13489a4884f0c4c15755b9fe51c9636a40b
7
- data.tar.gz: 0f29d293c8d9077ceaf3902879f30ef7d8fba7b157cd9174db8dff4771bc4d47cc23264f47d168cba29702e7af03c43f0abf7edf0fdce05a5d69c827abee73ad
6
+ metadata.gz: c121e9dcb1aba1c902e5f5810a8f84c00fa632c86832cf3e6fa4640177114044df580d37c9f0184af31a26335c0daddbd91c98f5c7553780755f400fd6303608
7
+ data.tar.gz: 6bda9c1bc6b38a47f1d99736bd5e938f46627e4874ec343004d73b3b5abdf8f9097fc293fd45002ac7183e4360ee114fb482e8392c3219da98cfe29b184e2cca
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 8.7.0-beta.3 - 2023-08-03
4
+ * [#1254](https://github.com/stripe/stripe-ruby/pull/1254) Update generated code for beta
5
+ * Add support for `submit_card` test helper method on resource `Issuing.Card`
6
+ * [#1252](https://github.com/stripe/stripe-ruby/pull/1252) Remove developer_message support
7
+
3
8
  ## 8.7.0-beta.2 - 2023-07-28
4
9
  * [#1251](https://github.com/stripe/stripe-ruby/pull/1251) Update generated code for beta
5
10
  * Add support for new resource `Tax.Form`
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v431
1
+ v442
data/VERSION CHANGED
@@ -1 +1 @@
1
- 8.7.0-beta.2
1
+ 8.7.0-beta.3
@@ -54,6 +54,15 @@ module Stripe
54
54
  )
55
55
  end
56
56
 
57
+ def self.submit_card(card, params = {}, opts = {})
58
+ request_stripe_object(
59
+ method: :post,
60
+ path: format("/v1/test_helpers/issuing/cards/%<card>s/shipping/submit", { card: CGI.escape(card) }),
61
+ params: params,
62
+ opts: opts
63
+ )
64
+ end
65
+
57
66
  def deliver_card(params = {}, opts = {})
58
67
  @resource.request_stripe_object(
59
68
  method: :post,
@@ -89,6 +98,15 @@ module Stripe
89
98
  opts: opts
90
99
  )
91
100
  end
101
+
102
+ def submit_card(params = {}, opts = {})
103
+ @resource.request_stripe_object(
104
+ method: :post,
105
+ path: format("/v1/test_helpers/issuing/cards/%<card>s/shipping/submit", { card: CGI.escape(@resource["id"]) }),
106
+ params: params,
107
+ opts: opts
108
+ )
109
+ end
92
110
  end
93
111
  end
94
112
  end
@@ -768,7 +768,7 @@ module Stripe
768
768
  end
769
769
 
770
770
  private def specific_api_error(resp, error_data, context)
771
- message = error_data[:message] || error_data[:developer_message]
771
+ message = error_data[:message]
772
772
  Util.log_error("Stripe API error",
773
773
  status: resp.http_status,
774
774
  error_code: error_data[:code],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "8.7.0-beta.2"
4
+ VERSION = "8.7.0-beta.3"
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: 8.7.0.pre.beta.2
4
+ version: 8.7.0.pre.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-28 00:00:00.000000000 Z
11
+ date: 2023-08-03 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.