stripe 8.2.0.pre.beta.1 → 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: 86e0c712e8155324601cf71b098b91c252c22473bbbf3a671195c815ba815cfe
4
- data.tar.gz: 97ce27efffe0ffa8f75daf0cf13a18ac3700ed7633df03245c5028be46b5421a
3
+ metadata.gz: aa1585cd53daccc89067fdde2358a67153c13e1fdd3f9e275797f06d54233843
4
+ data.tar.gz: cd8578e2ca72690121685be247f30b986ba34b6c2eb913a4ba11bc7b696a91ea
5
5
  SHA512:
6
- metadata.gz: 1e5b084e781ede95c6e2ae09151f1bb06129dea7415738a28e615ee38cf4d95139ee96ac78b57d09b27eb1f274f02c03f75ecc252402af59d774673977e79454
7
- data.tar.gz: a603298931ad90e6d0511e538b0d01434b9b89355d5ff3491f62ee9f0dbff3b4cb4ec4c4be94762b2447dc069976dc8ac60618627afe1899a42930aa64ca45fc
6
+ metadata.gz: 50142325e8edb33a566c70415c7b3d2cbb9c6ed22048fe65185a6fe4626ea2eaa9afc93d2b0ba7f35a6916d142ece3826325802ed2a82990bea9a26b9a161b82
7
+ data.tar.gz: ec8062514afc03548c5b2c364b0b5afac8dffc5237c88fb7c1b786b2c7bc9a6523fed5e46e3910baf61390e233c8fc958878e1aa0d78e399aab1febdb4218427
data/CHANGELOG.md CHANGED
@@ -1,10 +1,20 @@
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
+
8
+ ## 8.2.0-beta.2 - 2023-01-19
9
+ * [#1170](https://github.com/stripe/stripe-ruby/pull/1170) API Updates for beta branch
10
+ * Updated stable APIs to the latest version
11
+ * Add support for `Tax.Settings` resource.
12
+
3
13
  ## 8.2.0-beta.1 - 2023-01-12
4
14
  * [#1167](https://github.com/stripe/stripe-ruby/pull/1167) API Updates for beta branch
5
15
  * Updated stable APIs to the latest version
6
16
  * Change `quote.draft_quote` implementation to from calling `POST /v1/quotes/{quote}/draft` to `POST /v1/quotes/{quote}/mark_draft`
7
- * Add support for `Tax::Register` resource
17
+ * Add support for `Tax::Register` resource
8
18
 
9
19
  ## 8.1.0 - 2023-01-12
10
20
  * [#1162](https://github.com/stripe/stripe-ruby/pull/1162) Improve request events instrumentation
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v218
1
+ v221
data/README.md CHANGED
@@ -253,7 +253,11 @@ a success or error. Receives `RequestEndEvent` with the following properties:
253
253
  - `path`: Request path. (`String`)
254
254
  - `user_data`: A hash on which users may have set arbitrary data in
255
255
  `request_begin`. See above for more information. (`Hash`)
256
- - `request_id`. HTTP request identifier.
256
+ - `request_id`: HTTP request identifier. (`String`)
257
+ - `response_header`: The response headers. (`Hash`)
258
+ - `response_body` = The response body. (`String`)
259
+ - `request_header` = The request headers. (`Hash`)
260
+ - `request_body` = The request body. (`String`)
257
261
 
258
262
  #### Example
259
263
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 8.2.0-beta.1
1
+ 8.2.0-beta.3
@@ -99,6 +99,7 @@ module Stripe
99
99
  SubscriptionSchedule::OBJECT_NAME => SubscriptionSchedule,
100
100
  Tax::Calculation::OBJECT_NAME => Tax::Calculation,
101
101
  Tax::Registration::OBJECT_NAME => Tax::Registration,
102
+ Tax::Settings::OBJECT_NAME => Tax::Settings,
102
103
  Tax::Transaction::OBJECT_NAME => Tax::Transaction,
103
104
  TaxCode::OBJECT_NAME => TaxCode,
104
105
  TaxId::OBJECT_NAME => TaxId,
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Tax
6
+ # You can use Tax `Settings` to manage configurations used by Stripe Tax calculations.
7
+ #
8
+ # Related guide: [Account settings](https://stripe.com/docs/tax/connect/settings).
9
+ class Settings < SingletonAPIResource
10
+ include Stripe::APIOperations::Save
11
+
12
+ OBJECT_NAME = "tax.settings"
13
+ end
14
+ end
15
+ end
@@ -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
@@ -86,6 +86,7 @@ require "stripe/resources/subscription_item"
86
86
  require "stripe/resources/subscription_schedule"
87
87
  require "stripe/resources/tax/calculation"
88
88
  require "stripe/resources/tax/registration"
89
+ require "stripe/resources/tax/settings"
89
90
  require "stripe/resources/tax/transaction"
90
91
  require "stripe/resources/tax_code"
91
92
  require "stripe/resources/tax_id"
@@ -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.1"
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.1
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-12 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.
@@ -138,6 +138,7 @@ files:
138
138
  - lib/stripe/resources/subscription_schedule.rb
139
139
  - lib/stripe/resources/tax/calculation.rb
140
140
  - lib/stripe/resources/tax/registration.rb
141
+ - lib/stripe/resources/tax/settings.rb
141
142
  - lib/stripe/resources/tax/transaction.rb
142
143
  - lib/stripe/resources/tax_code.rb
143
144
  - lib/stripe/resources/tax_id.rb