stripe 8.1.0.pre.beta.1 → 8.1.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 +15 -0
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/object_types.rb +2 -0
- data/lib/stripe/resources/quote.rb +108 -0
- data/lib/stripe/resources/tax/calculation.rb +31 -0
- data/lib/stripe/resources/tax/transaction.rb +22 -0
- data/lib/stripe/resources.rb +2 -0
- data/lib/stripe/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dbe161b2c79540bf0c14cccaccd03bded2bb67d98b45321d9f24ebd41b24313
|
4
|
+
data.tar.gz: aee65c5876d3aa9412a05fc3b19282cd3cc2b06e806c139009164ee0544bf99c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58f3a41f66ce6dc02711eb56329f9bc876a7a66c66645565a2068bb76814f918acd724fa2334c6d050d381a3cd4acb28055216c9197ae4213454b8761f86681d
|
7
|
+
data.tar.gz: f06c362d0af1ae83b913d1a6fb282b7a338f3d93f1cddefa6a35f8c67865ece3cee0da3bf8f9c4df15c44d486531c4634f65ed7ce8a1fc39b0892548646d94a1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,20 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 8.1.0-beta.3 - 2022-12-22
|
4
|
+
* [#1158](https://github.com/stripe/stripe-ruby/pull/1158) API Updates for beta branch
|
5
|
+
* Updated stable APIs to the latest version
|
6
|
+
* Move `TaxCalculation` and `TaxTransaction` to `Tax::Calculation` and `Tax::Transaction`.
|
7
|
+
|
8
|
+
## 8.1.0-beta.2 - 2022-12-15
|
9
|
+
* [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
|
10
|
+
* Updated stable APIs to the latest version
|
11
|
+
* Add support for new resources `TaxCalculation`, and `TaxTransaction`
|
12
|
+
* Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
|
13
|
+
* Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
|
14
|
+
* [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
|
15
|
+
* Updated stable APIs to the latest version
|
16
|
+
* Add support for new resource `QuoteLine`.
|
17
|
+
|
3
18
|
## 8.1.0-beta.1 - 2022-12-08
|
4
19
|
* [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
|
5
20
|
* Updated stable APIs to the latest version
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v216
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
8.1.0-beta.
|
1
|
+
8.1.0-beta.3
|
data/lib/stripe/object_types.rb
CHANGED
@@ -97,6 +97,8 @@ module Stripe
|
|
97
97
|
Subscription::OBJECT_NAME => Subscription,
|
98
98
|
SubscriptionItem::OBJECT_NAME => SubscriptionItem,
|
99
99
|
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
100
|
+
Tax::Calculation::OBJECT_NAME => Tax::Calculation,
|
101
|
+
Tax::Transaction::OBJECT_NAME => Tax::Transaction,
|
100
102
|
TaxCode::OBJECT_NAME => TaxCode,
|
101
103
|
TaxId::OBJECT_NAME => TaxId,
|
102
104
|
TaxRate::OBJECT_NAME => TaxRate,
|
@@ -29,6 +29,15 @@ module Stripe
|
|
29
29
|
)
|
30
30
|
end
|
31
31
|
|
32
|
+
def draft_quote(params = {}, opts = {})
|
33
|
+
request_stripe_object(
|
34
|
+
method: :post,
|
35
|
+
path: format("/v1/quotes/%<quote>s/draft", { quote: CGI.escape(self["id"]) }),
|
36
|
+
params: params,
|
37
|
+
opts: opts
|
38
|
+
)
|
39
|
+
end
|
40
|
+
|
32
41
|
def finalize_quote(params = {}, opts = {})
|
33
42
|
request_stripe_object(
|
34
43
|
method: :post,
|
@@ -56,6 +65,51 @@ module Stripe
|
|
56
65
|
)
|
57
66
|
end
|
58
67
|
|
68
|
+
def list_lines(params = {}, opts = {})
|
69
|
+
request_stripe_object(
|
70
|
+
method: :get,
|
71
|
+
path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(self["id"]) }),
|
72
|
+
params: params,
|
73
|
+
opts: opts
|
74
|
+
)
|
75
|
+
end
|
76
|
+
|
77
|
+
def preview_invoice_lines(params = {}, opts = {})
|
78
|
+
request_stripe_object(
|
79
|
+
method: :get,
|
80
|
+
path: format("/v1/quotes/%<quote>s/preview_invoice_lines", { quote: CGI.escape(self["id"]) }),
|
81
|
+
params: params,
|
82
|
+
opts: opts
|
83
|
+
)
|
84
|
+
end
|
85
|
+
|
86
|
+
def preview_invoices(params = {}, opts = {})
|
87
|
+
request_stripe_object(
|
88
|
+
method: :get,
|
89
|
+
path: format("/v1/quotes/%<quote>s/preview_invoices", { quote: CGI.escape(self["id"]) }),
|
90
|
+
params: params,
|
91
|
+
opts: opts
|
92
|
+
)
|
93
|
+
end
|
94
|
+
|
95
|
+
def preview_subscription_schedules(params = {}, opts = {})
|
96
|
+
request_stripe_object(
|
97
|
+
method: :get,
|
98
|
+
path: format("/v1/quotes/%<quote>s/preview_subscription_schedules", { quote: CGI.escape(self["id"]) }),
|
99
|
+
params: params,
|
100
|
+
opts: opts
|
101
|
+
)
|
102
|
+
end
|
103
|
+
|
104
|
+
def reestimate(params = {}, opts = {})
|
105
|
+
request_stripe_object(
|
106
|
+
method: :post,
|
107
|
+
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(self["id"]) }),
|
108
|
+
params: params,
|
109
|
+
opts: opts
|
110
|
+
)
|
111
|
+
end
|
112
|
+
|
59
113
|
def self.accept(quote, params = {}, opts = {})
|
60
114
|
request_stripe_object(
|
61
115
|
method: :post,
|
@@ -74,6 +128,15 @@ module Stripe
|
|
74
128
|
)
|
75
129
|
end
|
76
130
|
|
131
|
+
def self.draft_quote(quote, params = {}, opts = {})
|
132
|
+
request_stripe_object(
|
133
|
+
method: :post,
|
134
|
+
path: format("/v1/quotes/%<quote>s/draft", { quote: CGI.escape(quote) }),
|
135
|
+
params: params,
|
136
|
+
opts: opts
|
137
|
+
)
|
138
|
+
end
|
139
|
+
|
77
140
|
def self.finalize_quote(quote, params = {}, opts = {})
|
78
141
|
request_stripe_object(
|
79
142
|
method: :post,
|
@@ -101,6 +164,51 @@ module Stripe
|
|
101
164
|
)
|
102
165
|
end
|
103
166
|
|
167
|
+
def self.list_lines(quote, params = {}, opts = {})
|
168
|
+
request_stripe_object(
|
169
|
+
method: :get,
|
170
|
+
path: format("/v1/quotes/%<quote>s/lines", { quote: CGI.escape(quote) }),
|
171
|
+
params: params,
|
172
|
+
opts: opts
|
173
|
+
)
|
174
|
+
end
|
175
|
+
|
176
|
+
def self.preview_invoice_lines(quote, params = {}, opts = {})
|
177
|
+
request_stripe_object(
|
178
|
+
method: :get,
|
179
|
+
path: format("/v1/quotes/%<quote>s/preview_invoice_lines", { quote: CGI.escape(quote) }),
|
180
|
+
params: params,
|
181
|
+
opts: opts
|
182
|
+
)
|
183
|
+
end
|
184
|
+
|
185
|
+
def self.preview_invoices(quote, params = {}, opts = {})
|
186
|
+
request_stripe_object(
|
187
|
+
method: :get,
|
188
|
+
path: format("/v1/quotes/%<quote>s/preview_invoices", { quote: CGI.escape(quote) }),
|
189
|
+
params: params,
|
190
|
+
opts: opts
|
191
|
+
)
|
192
|
+
end
|
193
|
+
|
194
|
+
def self.preview_subscription_schedules(quote, params = {}, opts = {})
|
195
|
+
request_stripe_object(
|
196
|
+
method: :get,
|
197
|
+
path: format("/v1/quotes/%<quote>s/preview_subscription_schedules", { quote: CGI.escape(quote) }),
|
198
|
+
params: params,
|
199
|
+
opts: opts
|
200
|
+
)
|
201
|
+
end
|
202
|
+
|
203
|
+
def self.reestimate(quote, params = {}, opts = {})
|
204
|
+
request_stripe_object(
|
205
|
+
method: :post,
|
206
|
+
path: format("/v1/quotes/%<quote>s/reestimate", { quote: CGI.escape(quote) }),
|
207
|
+
params: params,
|
208
|
+
opts: opts
|
209
|
+
)
|
210
|
+
end
|
211
|
+
|
104
212
|
def pdf(params = {}, opts = {}, &read_body_chunk_block)
|
105
213
|
unless block_given?
|
106
214
|
raise ArgumentError, "A read_body_chunk_block block parameter is required when calling the pdf method."
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Tax
|
6
|
+
# A Tax `Calculation` allows you to calculate the tax to collect from your customer.
|
7
|
+
class Calculation < APIResource
|
8
|
+
extend Stripe::APIOperations::Create
|
9
|
+
|
10
|
+
OBJECT_NAME = "tax.calculation"
|
11
|
+
|
12
|
+
def list_line_items(params = {}, opts = {})
|
13
|
+
request_stripe_object(
|
14
|
+
method: :get,
|
15
|
+
path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(self["id"]) }),
|
16
|
+
params: params,
|
17
|
+
opts: opts
|
18
|
+
)
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.list_line_items(calculation, params = {}, opts = {})
|
22
|
+
request_stripe_object(
|
23
|
+
method: :get,
|
24
|
+
path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(calculation) }),
|
25
|
+
params: params,
|
26
|
+
opts: opts
|
27
|
+
)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
module Tax
|
6
|
+
# A Tax `Transaction` records the tax collected from or refunded to your customer.
|
7
|
+
class Transaction < APIResource
|
8
|
+
extend Stripe::APIOperations::Create
|
9
|
+
|
10
|
+
OBJECT_NAME = "tax.transaction"
|
11
|
+
|
12
|
+
def self.create_reversal(params = {}, opts = {})
|
13
|
+
request_stripe_object(
|
14
|
+
method: :post,
|
15
|
+
path: "/v1/tax/transactions/create_reversal",
|
16
|
+
params: params,
|
17
|
+
opts: opts
|
18
|
+
)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/stripe/resources.rb
CHANGED
@@ -84,6 +84,8 @@ require "stripe/resources/source_transaction"
|
|
84
84
|
require "stripe/resources/subscription"
|
85
85
|
require "stripe/resources/subscription_item"
|
86
86
|
require "stripe/resources/subscription_schedule"
|
87
|
+
require "stripe/resources/tax/calculation"
|
88
|
+
require "stripe/resources/tax/transaction"
|
87
89
|
require "stripe/resources/tax_code"
|
88
90
|
require "stripe/resources/tax_id"
|
89
91
|
require "stripe/resources/tax_rate"
|
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.1.0.pre.beta.
|
4
|
+
version: 8.1.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: 2022-12-
|
11
|
+
date: 2022-12-22 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.
|
@@ -136,6 +136,8 @@ files:
|
|
136
136
|
- lib/stripe/resources/subscription.rb
|
137
137
|
- lib/stripe/resources/subscription_item.rb
|
138
138
|
- lib/stripe/resources/subscription_schedule.rb
|
139
|
+
- lib/stripe/resources/tax/calculation.rb
|
140
|
+
- lib/stripe/resources/tax/transaction.rb
|
139
141
|
- lib/stripe/resources/tax_code.rb
|
140
142
|
- lib/stripe/resources/tax_id.rb
|
141
143
|
- lib/stripe/resources/tax_rate.rb
|