stripe 8.7.0.pre.beta.1 → 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 +4 -4
- data/CHANGELOG.md +14 -1
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/api_version.rb +1 -1
- data/lib/stripe/object_types.rb +1 -0
- data/lib/stripe/resources/issuing/card.rb +18 -0
- data/lib/stripe/resources/person.rb +1 -1
- data/lib/stripe/resources/quote.rb +24 -42
- data/lib/stripe/resources/shipping_rate.rb +2 -3
- data/lib/stripe/resources/tax/form.rb +39 -0
- data/lib/stripe/resources.rb +1 -0
- data/lib/stripe/stripe_client.rb +1 -1
- data/lib/stripe/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58cf6a053cd2c06123c49e3e3a0821cc69c639c7c5d286c0e5e3c020be2b8739
|
4
|
+
data.tar.gz: fadd0f3f33477c8ee167eb4ed141573730a82b74d89b4b26c7e8540a576013c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c121e9dcb1aba1c902e5f5810a8f84c00fa632c86832cf3e6fa4640177114044df580d37c9f0184af31a26335c0daddbd91c98f5c7553780755f400fd6303608
|
7
|
+
data.tar.gz: 6bda9c1bc6b38a47f1d99736bd5e938f46627e4874ec343004d73b3b5abdf8f9097fc293fd45002ac7183e4360ee114fb482e8392c3219da98cfe29b184e2cca
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
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
|
+
|
8
|
+
## 8.7.0-beta.2 - 2023-07-28
|
9
|
+
* [#1251](https://github.com/stripe/stripe-ruby/pull/1251) Update generated code for beta
|
10
|
+
* Add support for new resource `Tax.Form`
|
11
|
+
* Add support for `list`, `pdf`, and `retrieve` methods on resource `Form`
|
12
|
+
* [#1249](https://github.com/stripe/stripe-ruby/pull/1249) Update generated code for beta
|
13
|
+
* [#1246](https://github.com/stripe/stripe-ruby/pull/1246) Update generated code for beta
|
14
|
+
|
15
|
+
|
3
16
|
## 8.7.0-beta.1 - 2023-07-13
|
4
17
|
* [#1245](https://github.com/stripe/stripe-ruby/pull/1245) Update generated code for beta
|
5
18
|
Release specs are identical.
|
@@ -29,7 +42,7 @@
|
|
29
42
|
|
30
43
|
* [#1225](https://github.com/stripe/stripe-ruby/pull/1225) Downgrade jaro_winkler
|
31
44
|
* [#1219](https://github.com/stripe/stripe-ruby/pull/1219) Update generated code
|
32
|
-
|
45
|
+
|
33
46
|
Documentation updates.
|
34
47
|
* [#1215](https://github.com/stripe/stripe-ruby/pull/1215) Update generated code
|
35
48
|
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v442
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
8.7.0-beta.
|
1
|
+
8.7.0-beta.3
|
data/lib/stripe/api_version.rb
CHANGED
data/lib/stripe/object_types.rb
CHANGED
@@ -104,6 +104,7 @@ module Stripe
|
|
104
104
|
SubscriptionItem::OBJECT_NAME => SubscriptionItem,
|
105
105
|
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
106
106
|
Tax::Calculation::OBJECT_NAME => Tax::Calculation,
|
107
|
+
Tax::Form::OBJECT_NAME => Tax::Form,
|
107
108
|
Tax::Registration::OBJECT_NAME => Tax::Registration,
|
108
109
|
Tax::Settings::OBJECT_NAME => Tax::Settings,
|
109
110
|
Tax::Transaction::OBJECT_NAME => Tax::Transaction,
|
@@ -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
|
@@ -5,7 +5,7 @@ module Stripe
|
|
5
5
|
# This is an object representing a person associated with a Stripe account.
|
6
6
|
#
|
7
7
|
# A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account.
|
8
|
-
# See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform
|
8
|
+
# See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform prefilling and account onboarding steps.
|
9
9
|
#
|
10
10
|
# Related guide: [Handling identity verification with the API](https://stripe.com/docs/connect/identity-verification-api#person-information)
|
11
11
|
class Person < APIResource
|
@@ -83,6 +83,18 @@ module Stripe
|
|
83
83
|
)
|
84
84
|
end
|
85
85
|
|
86
|
+
def pdf(params = {}, opts = {}, &read_body_chunk_block)
|
87
|
+
config = opts[:client]&.config || Stripe.config
|
88
|
+
opts = { api_base: config.uploads_base }.merge(opts)
|
89
|
+
request_stream(
|
90
|
+
method: :get,
|
91
|
+
path: format("/v1/quotes/%<quote>s/pdf", { quote: CGI.escape(self["id"]) }),
|
92
|
+
params: params,
|
93
|
+
opts: opts,
|
94
|
+
&read_body_chunk_block
|
95
|
+
)
|
96
|
+
end
|
97
|
+
|
86
98
|
def preview_invoice_lines(preview_invoice, params = {}, opts = {})
|
87
99
|
request_stripe_object(
|
88
100
|
method: :get,
|
@@ -191,6 +203,18 @@ module Stripe
|
|
191
203
|
)
|
192
204
|
end
|
193
205
|
|
206
|
+
def self.pdf(quote, params = {}, opts = {}, &read_body_chunk_block)
|
207
|
+
config = opts[:client]&.config || Stripe.config
|
208
|
+
opts = { api_base: config.uploads_base }.merge(opts)
|
209
|
+
execute_resource_request_stream(
|
210
|
+
:get,
|
211
|
+
format("/v1/quotes/%<quote>s/pdf", { quote: CGI.escape(quote) }),
|
212
|
+
params,
|
213
|
+
opts,
|
214
|
+
&read_body_chunk_block
|
215
|
+
)
|
216
|
+
end
|
217
|
+
|
194
218
|
def self.preview_invoice_lines(
|
195
219
|
quote,
|
196
220
|
preview_invoice,
|
@@ -231,47 +255,5 @@ module Stripe
|
|
231
255
|
opts: opts
|
232
256
|
)
|
233
257
|
end
|
234
|
-
|
235
|
-
def pdf(params = {}, opts = {}, &read_body_chunk_block)
|
236
|
-
unless block_given?
|
237
|
-
raise ArgumentError, "A read_body_chunk_block block parameter is required when calling the pdf method."
|
238
|
-
end
|
239
|
-
|
240
|
-
config = opts[:client]&.config || Stripe.config
|
241
|
-
|
242
|
-
request_stream(
|
243
|
-
method: :get,
|
244
|
-
path: resource_url + "/pdf",
|
245
|
-
params: params,
|
246
|
-
opts: {
|
247
|
-
api_base: config.uploads_base,
|
248
|
-
}.merge(opts),
|
249
|
-
&read_body_chunk_block
|
250
|
-
)
|
251
|
-
end
|
252
|
-
|
253
|
-
def self.pdf(id, params = {}, opts = {}, &read_body_chunk_block)
|
254
|
-
unless id.is_a?(String)
|
255
|
-
raise ArgumentError,
|
256
|
-
"id should be a string representing the ID of an API resource"
|
257
|
-
end
|
258
|
-
|
259
|
-
unless block_given?
|
260
|
-
raise ArgumentError, "A read_body_chunk_block block parameter is required when calling the pdf method."
|
261
|
-
end
|
262
|
-
|
263
|
-
config = opts[:client]&.config || Stripe.config
|
264
|
-
|
265
|
-
resp = execute_resource_request_stream(
|
266
|
-
:get,
|
267
|
-
"#{resource_url}/#{CGI.escape(id)}/pdf",
|
268
|
-
params,
|
269
|
-
{
|
270
|
-
api_base: config.uploads_base,
|
271
|
-
}.merge(opts),
|
272
|
-
&read_body_chunk_block
|
273
|
-
)
|
274
|
-
resp
|
275
|
-
end
|
276
258
|
end
|
277
259
|
end
|
@@ -2,9 +2,8 @@
|
|
2
2
|
# frozen_string_literal: true
|
3
3
|
|
4
4
|
module Stripe
|
5
|
-
# Shipping rates describe the price of shipping presented to your customers and
|
6
|
-
# applied to [
|
7
|
-
# and [Orders](https://stripe.com/docs/orders/shipping) to collect shipping costs.
|
5
|
+
# Shipping rates describe the price of shipping presented to your customers and
|
6
|
+
# applied to a purchase. For more information, see [Charge for shipping](https://stripe.com/docs/payments/during-payment/charge-shipping).
|
8
7
|
class ShippingRate < APIResource
|
9
8
|
extend Stripe::APIOperations::Create
|
10
9
|
extend Stripe::APIOperations::List
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Tax
|
6
|
+
# Tax forms are legal documents which are delivered to one or more tax authorities for information reporting purposes.
|
7
|
+
#
|
8
|
+
# Related guide: [US tax reporting for Connect platforms](https://stripe.com/docs/connect/tax-reporting)
|
9
|
+
class Form < APIResource
|
10
|
+
extend Stripe::APIOperations::List
|
11
|
+
|
12
|
+
OBJECT_NAME = "tax.form"
|
13
|
+
|
14
|
+
def pdf(params = {}, opts = {}, &read_body_chunk_block)
|
15
|
+
config = opts[:client]&.config || Stripe.config
|
16
|
+
opts = { api_base: config.uploads_base }.merge(opts)
|
17
|
+
request_stream(
|
18
|
+
method: :get,
|
19
|
+
path: format("/v1/tax/forms/%<id>s/pdf", { id: CGI.escape(self["id"]) }),
|
20
|
+
params: params,
|
21
|
+
opts: opts,
|
22
|
+
&read_body_chunk_block
|
23
|
+
)
|
24
|
+
end
|
25
|
+
|
26
|
+
def self.pdf(id, params = {}, opts = {}, &read_body_chunk_block)
|
27
|
+
config = opts[:client]&.config || Stripe.config
|
28
|
+
opts = { api_base: config.uploads_base }.merge(opts)
|
29
|
+
execute_resource_request_stream(
|
30
|
+
:get,
|
31
|
+
format("/v1/tax/forms/%<id>s/pdf", { id: CGI.escape(id) }),
|
32
|
+
params,
|
33
|
+
opts,
|
34
|
+
&read_body_chunk_block
|
35
|
+
)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
data/lib/stripe/resources.rb
CHANGED
@@ -91,6 +91,7 @@ require "stripe/resources/subscription"
|
|
91
91
|
require "stripe/resources/subscription_item"
|
92
92
|
require "stripe/resources/subscription_schedule"
|
93
93
|
require "stripe/resources/tax/calculation"
|
94
|
+
require "stripe/resources/tax/form"
|
94
95
|
require "stripe/resources/tax/registration"
|
95
96
|
require "stripe/resources/tax/settings"
|
96
97
|
require "stripe/resources/tax/transaction"
|
data/lib/stripe/stripe_client.rb
CHANGED
@@ -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]
|
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],
|
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: 8.7.0.pre.beta.
|
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-
|
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.
|
@@ -144,6 +144,7 @@ files:
|
|
144
144
|
- lib/stripe/resources/subscription_item.rb
|
145
145
|
- lib/stripe/resources/subscription_schedule.rb
|
146
146
|
- lib/stripe/resources/tax/calculation.rb
|
147
|
+
- lib/stripe/resources/tax/form.rb
|
147
148
|
- lib/stripe/resources/tax/registration.rb
|
148
149
|
- lib/stripe/resources/tax/settings.rb
|
149
150
|
- lib/stripe/resources/tax/transaction.rb
|