stripe 8.1.0.pre.beta.1 → 8.1.0.pre.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -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 +29 -0
- data/lib/stripe/resources/tax_transaction.rb +20 -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: 7fa1351b66838b7806285da2a479099fbbfcc2083ac1f227f363f3dd34842f48
|
4
|
+
data.tar.gz: '0669c2151ae39aeeffe8f99dce91d7232d4038b63ebbf9ff77b0ba64e0ae2cb0'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41226fd0a4e4bc70f4338d775d7beb3cd69497ac269357a4a60ef737c66738490e948befb2f70981f2f2f413958ec7e21841c66754f3a69b10aaa25fdc376084
|
7
|
+
data.tar.gz: b96050e968077fd86319f4f2329948ccd18e346e289c87370da55cda392f1ab8e957066b7931f3392212724070515a5970ffb09ec84eca908139eb2ec93fb4d0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 8.1.0-beta.2 - 2022-12-15
|
4
|
+
* [#1156](https://github.com/stripe/stripe-ruby/pull/1156) API Updates for beta branch
|
5
|
+
* Updated stable APIs to the latest version
|
6
|
+
* Add support for new resources `TaxCalculation`, and `TaxTransaction`
|
7
|
+
* Add support for `create` and `list_line_items` methods on resource `TaxCalculation`
|
8
|
+
* Add support for `create_reversal`, `create`, and `retrieve` methods on resource `TaxTransaction`
|
9
|
+
* [#1155](https://github.com/stripe/stripe-ruby/pull/1155) API Updates for beta branch
|
10
|
+
* Updated stable APIs to the latest version
|
11
|
+
* Add support for new resource `QuoteLine`.
|
12
|
+
|
3
13
|
## 8.1.0-beta.1 - 2022-12-08
|
4
14
|
* [#1153](https://github.com/stripe/stripe-ruby/pull/1153) API Updates for beta branch
|
5
15
|
* Updated stable APIs to the latest version
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v215
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
8.1.0-beta.
|
1
|
+
8.1.0-beta.2
|
data/lib/stripe/object_types.rb
CHANGED
@@ -97,9 +97,11 @@ module Stripe
|
|
97
97
|
Subscription::OBJECT_NAME => Subscription,
|
98
98
|
SubscriptionItem::OBJECT_NAME => SubscriptionItem,
|
99
99
|
SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
|
100
|
+
TaxCalculation::OBJECT_NAME => TaxCalculation,
|
100
101
|
TaxCode::OBJECT_NAME => TaxCode,
|
101
102
|
TaxId::OBJECT_NAME => TaxId,
|
102
103
|
TaxRate::OBJECT_NAME => TaxRate,
|
104
|
+
TaxTransaction::OBJECT_NAME => TaxTransaction,
|
103
105
|
Terminal::Configuration::OBJECT_NAME => Terminal::Configuration,
|
104
106
|
Terminal::ConnectionToken::OBJECT_NAME => Terminal::ConnectionToken,
|
105
107
|
Terminal::Location::OBJECT_NAME => Terminal::Location,
|
@@ -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,29 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
# A Tax `Calculation` allows you to calculate the tax to collect from your customer.
|
6
|
+
class TaxCalculation < APIResource
|
7
|
+
extend Stripe::APIOperations::Create
|
8
|
+
|
9
|
+
OBJECT_NAME = "tax.calculation"
|
10
|
+
|
11
|
+
def list_line_items(params = {}, opts = {})
|
12
|
+
request_stripe_object(
|
13
|
+
method: :get,
|
14
|
+
path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(self["id"]) }),
|
15
|
+
params: params,
|
16
|
+
opts: opts
|
17
|
+
)
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.list_line_items(calculation, params = {}, opts = {})
|
21
|
+
request_stripe_object(
|
22
|
+
method: :get,
|
23
|
+
path: format("/v1/tax/calculations/%<calculation>s/line_items", { calculation: CGI.escape(calculation) }),
|
24
|
+
params: params,
|
25
|
+
opts: opts
|
26
|
+
)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# File generated from our OpenAPI spec
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
module Stripe
|
5
|
+
# A Tax `Transaction` records the tax collected from or refunded to your customer.
|
6
|
+
class TaxTransaction < APIResource
|
7
|
+
extend Stripe::APIOperations::Create
|
8
|
+
|
9
|
+
OBJECT_NAME = "tax.transaction"
|
10
|
+
|
11
|
+
def self.create_reversal(params = {}, opts = {})
|
12
|
+
request_stripe_object(
|
13
|
+
method: :post,
|
14
|
+
path: "/v1/tax/transactions/create_reversal",
|
15
|
+
params: params,
|
16
|
+
opts: opts
|
17
|
+
)
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/stripe/resources.rb
CHANGED
@@ -84,9 +84,11 @@ 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"
|
87
88
|
require "stripe/resources/tax_code"
|
88
89
|
require "stripe/resources/tax_id"
|
89
90
|
require "stripe/resources/tax_rate"
|
91
|
+
require "stripe/resources/tax_transaction"
|
90
92
|
require "stripe/resources/terminal/configuration"
|
91
93
|
require "stripe/resources/terminal/connection_token"
|
92
94
|
require "stripe/resources/terminal/location"
|
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.2
|
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-16 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,9 +136,11 @@ 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
|
139
140
|
- lib/stripe/resources/tax_code.rb
|
140
141
|
- lib/stripe/resources/tax_id.rb
|
141
142
|
- lib/stripe/resources/tax_rate.rb
|
143
|
+
- lib/stripe/resources/tax_transaction.rb
|
142
144
|
- lib/stripe/resources/terminal/configuration.rb
|
143
145
|
- lib/stripe/resources/terminal/connection_token.rb
|
144
146
|
- lib/stripe/resources/terminal/location.rb
|