stripe 8.2.0.pre.beta.2 → 8.2.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: 8397ec44dfe136b98575f23ae600640db106e9aec01c7203b7ded2b25a2900a8
4
- data.tar.gz: fda895176cc529320c40a1a0db40c4b2603a4dc9724752d6e1b796d160371b11
3
+ metadata.gz: aa1585cd53daccc89067fdde2358a67153c13e1fdd3f9e275797f06d54233843
4
+ data.tar.gz: cd8578e2ca72690121685be247f30b986ba34b6c2eb913a4ba11bc7b696a91ea
5
5
  SHA512:
6
- metadata.gz: 48fe6def388a78255c8457ed131b6b1210b50785f79f3b5e38fb155edb57baba7a4f7ba3f66bbb5ecd890561eeee2ec37f9a1511fde8df55479ae5c55aac8fd5
7
- data.tar.gz: f1e11cf42f0bb769f8c073ec8cac15496c03863828a3797085cdfae3c9c961cc68102f2ece3377f68edb6422058f5c3a2c46db336e45e9af20513ec8d494c3bd
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
- v219
1
+ v221
data/VERSION CHANGED
@@ -1 +1 @@
1
- 8.2.0-beta.2
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
@@ -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, partial = false)
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 = partial ? Set.new : Set.new(@values.keys - values.keys)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "8.2.0-beta.2"
4
+ VERSION = "8.2.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.2.0.pre.beta.2
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-19 00:00:00.000000000 Z
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.