stripe 8.2.0.pre.beta.2 → 8.2.0.pre.beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/OPENAPI_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/stripe/resources/tax/transaction.rb +27 -0
- data/lib/stripe/stripe_object.rb +2 -2
- data/lib/stripe/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa1585cd53daccc89067fdde2358a67153c13e1fdd3f9e275797f06d54233843
|
4
|
+
data.tar.gz: cd8578e2ca72690121685be247f30b986ba34b6c2eb913a4ba11bc7b696a91ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50142325e8edb33a566c70415c7b3d2cbb9c6ed22048fe65185a6fe4626ea2eaa9afc93d2b0ba7f35a6916d142ece3826325802ed2a82990bea9a26b9a161b82
|
7
|
+
data.tar.gz: ec8062514afc03548c5b2c364b0b5afac8dffc5237c88fb7c1b786b2c7bc9a6523fed5e46e3910baf61390e233c8fc958878e1aa0d78e399aab1febdb4218427
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 8.2.0-beta.3 - 2023-01-26
|
4
|
+
* [#1172](https://github.com/stripe/stripe-ruby/pull/1172) API Updates for beta branch
|
5
|
+
* Updated stable APIs to the latest version
|
6
|
+
* Add support for `list_transactions` method on resource `Tax.Transaction`
|
7
|
+
|
3
8
|
## 8.2.0-beta.2 - 2023-01-19
|
4
9
|
* [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
|
5
10
|
* Updated stable APIs to the latest version
|
6
|
-
* Add support for `Tax.Settings` resource.
|
11
|
+
* Add support for `Tax.Settings` resource.
|
7
12
|
|
8
13
|
## 8.2.0-beta.1 - 2023-01-12
|
9
14
|
* [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
|
data/OPENAPI_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
v221
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
8.2.0-beta.
|
1
|
+
8.2.0-beta.3
|
@@ -9,6 +9,15 @@ module Stripe
|
|
9
9
|
|
10
10
|
OBJECT_NAME = "tax.transaction"
|
11
11
|
|
12
|
+
def list_line_items(params = {}, opts = {})
|
13
|
+
request_stripe_object(
|
14
|
+
method: :get,
|
15
|
+
path: format("/v1/tax/transactions/%<transaction>s/line_items", { transaction: CGI.escape(self["id"]) }),
|
16
|
+
params: params,
|
17
|
+
opts: opts
|
18
|
+
)
|
19
|
+
end
|
20
|
+
|
12
21
|
def self.create_reversal(params = {}, opts = {})
|
13
22
|
request_stripe_object(
|
14
23
|
method: :post,
|
@@ -17,6 +26,24 @@ module Stripe
|
|
17
26
|
opts: opts
|
18
27
|
)
|
19
28
|
end
|
29
|
+
|
30
|
+
def self.list_line_items(transaction, params = {}, opts = {})
|
31
|
+
request_stripe_object(
|
32
|
+
method: :get,
|
33
|
+
path: format("/v1/tax/transactions/%<transaction>s/line_items", { transaction: CGI.escape(transaction) }),
|
34
|
+
params: params,
|
35
|
+
opts: opts
|
36
|
+
)
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.list_transactions(params = {}, opts = {})
|
40
|
+
request_stripe_object(
|
41
|
+
method: :get,
|
42
|
+
path: "/v1/tax/transactions",
|
43
|
+
params: params,
|
44
|
+
opts: opts
|
45
|
+
)
|
46
|
+
end
|
20
47
|
end
|
21
48
|
end
|
22
49
|
end
|
data/lib/stripe/stripe_object.rb
CHANGED
@@ -429,13 +429,13 @@ module Stripe
|
|
429
429
|
# * +:opts:+ Options for StripeObject like an API key.
|
430
430
|
# * +:partial:+ Indicates that the re-initialization should not attempt to
|
431
431
|
# remove accessors.
|
432
|
-
protected def initialize_from(values, opts
|
432
|
+
protected def initialize_from(values, opts)
|
433
433
|
@opts = Util.normalize_opts(opts)
|
434
434
|
|
435
435
|
# the `#send` is here so that we can keep this method private
|
436
436
|
@original_values = self.class.send(:deep_copy, values)
|
437
437
|
|
438
|
-
removed =
|
438
|
+
removed = Set.new(@values.keys - values.keys)
|
439
439
|
added = Set.new(values.keys - @values.keys)
|
440
440
|
|
441
441
|
# Wipe old state before setting new. This is useful for e.g. updating a
|
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.2.0.pre.beta.
|
4
|
+
version: 8.2.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-01-
|
11
|
+
date: 2023-01-27 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.
|