dodopayments 1.66.1 → 1.67.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 972a3614fedb42869f13add8d65c94c5d9ab86ddf846ab3a731b3e0aba2fb8ee
4
- data.tar.gz: db9d83611c7efd7d69ac9b65b2b835163c04254a40c79410aab014a9d5077e86
3
+ metadata.gz: d54dcfe7068050b678733244ff06f58777535d7bcf28438d3ef7efdc4cb541c6
4
+ data.tar.gz: 7d98fe14c1541c20092c996c9e4dac7b3f4189328eeceeddea9c9b249f91c15f
5
5
  SHA512:
6
- metadata.gz: a549157df59ceab775aeb937d7f2255d82236032ab5def65f3f6ac8c869326d2e95cbaff72d8a4b2e0e03d60a575b3607be83b17d3c1b43d1131ec8093bcb8d6
7
- data.tar.gz: 816652a5e782d96450eb2bef110f9ae61f4b3883e6e7090cb7fc8a899efd93f648b59c80f03e883fb284984024145920ab5b3c74824b798a1e3698dbcf60d62e
6
+ metadata.gz: 4c0f651bf117501cc5d455bbe88ad5e25553f6f7dcfa63842df9f2e4673845598c6e2ee261d7347cca276245f66239968301e695bb542b7c86ac16b434a12139
7
+ data.tar.gz: a1bb32edd4d5beda4261695c5e4e0da727eb4ee8843bbd7262c202adf6bbecb8652e0927019ba2d67d0cb8f63004d4696b546ccde77a0f144e18752266b44e5a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.67.1 (2025-12-17)
4
+
5
+ Full Changelog: [v1.67.0...v1.67.1](https://github.com/dodopayments/dodopayments-ruby/compare/v1.67.0...v1.67.1)
6
+
7
+ ### Bug Fixes
8
+
9
+ * calling `break` out of streams should be instantaneous ([b0d7935](https://github.com/dodopayments/dodopayments-ruby/commit/b0d79352157047c5fda04b1e5c524c07b5c5516b))
10
+
11
+ ## 1.67.0 (2025-12-16)
12
+
13
+ Full Changelog: [v1.66.1...v1.67.0](https://github.com/dodopayments/dodopayments-ruby/compare/v1.66.1...v1.67.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** updated openapi spec to 1.67.0 ([30b278e](https://github.com/dodopayments/dodopayments-ruby/commit/30b278ee529c922bf14a538e6b6da52056a420c2))
18
+
3
19
  ## 1.66.1 (2025-12-12)
4
20
 
5
21
  Full Changelog: [v1.66.0...v1.66.1](https://github.com/dodopayments/dodopayments-ruby/compare/v1.66.0...v1.66.1)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "dodopayments", "~> 1.66.1"
20
+ gem "dodopayments", "~> 1.67.1"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -153,17 +153,19 @@ module Dodopayments
153
153
  end
154
154
 
155
155
  self.class.calibrate_socket_timeout(conn, deadline)
156
- conn.request(req) do |rsp|
157
- y << [req, rsp]
158
- break if finished
159
-
160
- rsp.read_body do |bytes|
161
- y << bytes.force_encoding(Encoding::BINARY)
162
- break if finished
163
-
164
- self.class.calibrate_socket_timeout(conn, deadline)
156
+ ::Kernel.catch(:jump) do
157
+ conn.request(req) do |rsp|
158
+ y << [req, rsp]
159
+ ::Kernel.throw(:jump) if finished
160
+
161
+ rsp.read_body do |bytes|
162
+ y << bytes.force_encoding(Encoding::BINARY)
163
+ ::Kernel.throw(:jump) if finished
164
+
165
+ self.class.calibrate_socket_timeout(conn, deadline)
166
+ end
167
+ eof = true
165
168
  end
166
- eof = true
167
169
  end
168
170
  end
169
171
  ensure
@@ -142,6 +142,12 @@ module Dodopayments
142
142
  # @return [String, nil]
143
143
  optional :error_message, String, nil?: true
144
144
 
145
+ # @!attribute invoice_id
146
+ # Invoice ID for this payment. Uses India-specific invoice ID if available.
147
+ #
148
+ # @return [String, nil]
149
+ optional :invoice_id, String, nil?: true
150
+
145
151
  # @!attribute payment_link
146
152
  # Checkout URL
147
153
  #
@@ -200,7 +206,7 @@ module Dodopayments
200
206
  # @return [Time, nil]
201
207
  optional :updated_at, Time, nil?: true
202
208
 
203
- # @!method initialize(billing:, brand_id:, business_id:, created_at:, currency:, customer:, digital_products_delivered:, disputes:, metadata:, payment_id:, refunds:, settlement_amount:, settlement_currency:, total_amount:, card_issuing_country: nil, card_last_four: nil, card_network: nil, card_type: nil, checkout_session_id: nil, discount_id: nil, error_code: nil, error_message: nil, payment_link: nil, payment_method: nil, payment_method_type: nil, product_cart: nil, settlement_tax: nil, status: nil, subscription_id: nil, tax: nil, updated_at: nil)
209
+ # @!method initialize(billing:, brand_id:, business_id:, created_at:, currency:, customer:, digital_products_delivered:, disputes:, metadata:, payment_id:, refunds:, settlement_amount:, settlement_currency:, total_amount:, card_issuing_country: nil, card_last_four: nil, card_network: nil, card_type: nil, checkout_session_id: nil, discount_id: nil, error_code: nil, error_message: nil, invoice_id: nil, payment_link: nil, payment_method: nil, payment_method_type: nil, product_cart: nil, settlement_tax: nil, status: nil, subscription_id: nil, tax: nil, updated_at: nil)
204
210
  # Some parameter documentations has been truncated, see
205
211
  # {Dodopayments::Models::Payment} for more details.
206
212
  #
@@ -248,6 +254,8 @@ module Dodopayments
248
254
  #
249
255
  # @param error_message [String, nil] An error message if the payment failed
250
256
  #
257
+ # @param invoice_id [String, nil] Invoice ID for this payment. Uses India-specific invoice ID if available.
258
+ #
251
259
  # @param payment_link [String, nil] Checkout URL
252
260
  #
253
261
  # @param payment_method [String, nil] Payment method used by customer (e.g. "card", "bank_transfer")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dodopayments
4
- VERSION = "1.66.1"
4
+ VERSION = "1.67.1"
5
5
  end
@@ -110,6 +110,10 @@ module Dodopayments
110
110
  sig { returns(T.nilable(String)) }
111
111
  attr_accessor :error_message
112
112
 
113
+ # Invoice ID for this payment. Uses India-specific invoice ID if available.
114
+ sig { returns(T.nilable(String)) }
115
+ attr_accessor :invoice_id
116
+
113
117
  # Checkout URL
114
118
  sig { returns(T.nilable(String)) }
115
119
  attr_accessor :payment_link
@@ -172,6 +176,7 @@ module Dodopayments
172
176
  discount_id: T.nilable(String),
173
177
  error_code: T.nilable(String),
174
178
  error_message: T.nilable(String),
179
+ invoice_id: T.nilable(String),
175
180
  payment_link: T.nilable(String),
176
181
  payment_method: T.nilable(String),
177
182
  payment_method_type: T.nilable(String),
@@ -235,6 +240,8 @@ module Dodopayments
235
240
  error_code: nil,
236
241
  # An error message if the payment failed
237
242
  error_message: nil,
243
+ # Invoice ID for this payment. Uses India-specific invoice ID if available.
244
+ invoice_id: nil,
238
245
  # Checkout URL
239
246
  payment_link: nil,
240
247
  # Payment method used by customer (e.g. "card", "bank_transfer")
@@ -284,6 +291,7 @@ module Dodopayments
284
291
  discount_id: T.nilable(String),
285
292
  error_code: T.nilable(String),
286
293
  error_message: T.nilable(String),
294
+ invoice_id: T.nilable(String),
287
295
  payment_link: T.nilable(String),
288
296
  payment_method: T.nilable(String),
289
297
  payment_method_type: T.nilable(String),
@@ -24,6 +24,7 @@ module Dodopayments
24
24
  discount_id: String?,
25
25
  error_code: String?,
26
26
  error_message: String?,
27
+ invoice_id: String?,
27
28
  payment_link: String?,
28
29
  payment_method: String?,
29
30
  payment_method_type: String?,
@@ -80,6 +81,8 @@ module Dodopayments
80
81
 
81
82
  attr_accessor error_message: String?
82
83
 
84
+ attr_accessor invoice_id: String?
85
+
83
86
  attr_accessor payment_link: String?
84
87
 
85
88
  attr_accessor payment_method: String?
@@ -121,6 +124,7 @@ module Dodopayments
121
124
  ?discount_id: String?,
122
125
  ?error_code: String?,
123
126
  ?error_message: String?,
127
+ ?invoice_id: String?,
124
128
  ?payment_link: String?,
125
129
  ?payment_method: String?,
126
130
  ?payment_method_type: String?,
@@ -155,6 +159,7 @@ module Dodopayments
155
159
  discount_id: String?,
156
160
  error_code: String?,
157
161
  error_message: String?,
162
+ invoice_id: String?,
158
163
  payment_link: String?,
159
164
  payment_method: String?,
160
165
  payment_method_type: String?,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dodopayments
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.66.1
4
+ version: 1.67.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dodo Payments
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-12 00:00:00.000000000 Z
11
+ date: 2025-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool