dodopayments 2.17.0 → 2.17.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: b5b5a813ef0dcfa859ff2aef7c2fe213ed446a40f808ae369754480072fd7b42
4
- data.tar.gz: 8a37693a349b715e35b0219f1e59e5485e5b048bdc30ccbbd0f24f8a1e0922cc
3
+ metadata.gz: cbbc9fa9d82e0c6e65c55283f6ed071347ee5eeac1991a3cebb88416ae2a5b96
4
+ data.tar.gz: 479550f1d1243c6b5747d8b81400ed158a20aa88bb56163ceae194de52bb5174
5
5
  SHA512:
6
- metadata.gz: 4243e3ff21a36c427911b9e18d5bda3646827ccdf553dd356ba6993a8a2573e57e876bb3e066bf02c21e467cbcfffc74ffa4598feb228bfce6bac173439e699b
7
- data.tar.gz: 3f9f0f4bf6052a08b2a5ae4ee451d64870201154548a63a9028a98f2fd1f6c09e1c4137be1f6d326cc467ee0c49e36d4d7eb696b0e6020c63c877817b711c6ec
6
+ metadata.gz: 8caabf2fa045e47dc985505bf98e9ee9118242a41d2b11f34ba2d644e438e821eccb386e4bfe6747077ffef3f99b9f88911eecb2c9552de1fdfbe01c0d59d7b9
7
+ data.tar.gz: 686a9a414ec0dfb94b9ab737357651a3bb8571b4c7c8f2a8818e19915d71679512eb7a086ac3b56ed5b3156c8e22e154c8e5ba4b0df35887f4a450564d97704d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.17.1](https://github.com/dodopayments/dodopayments-ruby/compare/v2.17.0...v2.17.1) (2026-06-18)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **pagination:** stop cursor auto-pagination dropping pages ([3087920](https://github.com/dodopayments/dodopayments-ruby/commit/30879201b468d8c91cf5b153f7a0658efd1eff60))
9
+ * **pagination:** stop cursor auto-pagination dropping pages ([2a00fad](https://github.com/dodopayments/dodopayments-ruby/commit/2a00fad57b3a3c2481cde3d99df06b17739d199d))
10
+
11
+
12
+ ### Chores
13
+
14
+ * restore release-please-owned files from main ([cb8a39d](https://github.com/dodopayments/dodopayments-ruby/commit/cb8a39dccedcfa3ff0ccdb718e659ae2af0a7140))
15
+
3
16
  ## [2.17.0](https://github.com/dodopayments/dodopayments-ruby/compare/v2.16.0...v2.17.0) (2026-06-16)
4
17
 
5
18
 
data/README.md CHANGED
@@ -23,7 +23,7 @@ To use this gem, install via Bundler by adding the following to your application
23
23
  <!-- x-release-please-start-version -->
24
24
 
25
25
  ```ruby
26
- gem "dodopayments", "~> 2.17.0"
26
+ gem "dodopayments", "~> 2.17.1"
27
27
  ```
28
28
 
29
29
  <!-- x-release-please-end -->
@@ -27,7 +27,7 @@ module Dodopayments
27
27
 
28
28
  # @return [Boolean]
29
29
  def next_page?
30
- done
30
+ !data.to_a.empty? && !iterator.to_s.empty?
31
31
  end
32
32
 
33
33
  # @raise [Dodopayments::HTTP::Error]
@@ -74,7 +74,8 @@ module Dodopayments
74
74
 
75
75
  # @overload retrieve(id, request_options: {})
76
76
  #
77
- # @param id [String]
77
+ # @param id [String] Checkout Session ID
78
+ #
78
79
  # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}, nil]
79
80
  #
80
81
  # @return [Dodopayments::Models::CheckoutSessionStatus]
@@ -6,7 +6,8 @@ module Dodopayments
6
6
  class Payments
7
7
  # @overload retrieve(payment_id, request_options: {})
8
8
  #
9
- # @param payment_id [String]
9
+ # @param payment_id [String] Payment ID
10
+ #
10
11
  # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}, nil]
11
12
  #
12
13
  # @return [StringIO]
@@ -24,7 +25,8 @@ module Dodopayments
24
25
 
25
26
  # @overload retrieve_payout(payout_id, request_options: {})
26
27
  #
27
- # @param payout_id [String]
28
+ # @param payout_id [String] Payout ID
29
+ #
28
30
  # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}, nil]
29
31
  #
30
32
  # @return [StringIO]
@@ -42,7 +44,8 @@ module Dodopayments
42
44
 
43
45
  # @overload retrieve_refund(refund_id, request_options: {})
44
46
  #
45
- # @param refund_id [String]
47
+ # @param refund_id [String] Refund ID
48
+ #
46
49
  # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}, nil]
47
50
  #
48
51
  # @return [StringIO]
@@ -83,7 +83,7 @@ module Dodopayments
83
83
  #
84
84
  # @overload update(id, addons: nil, brand_id: nil, credit_entitlements: nil, description: nil, digital_product_delivery: nil, entitlements: nil, image_id: nil, license_key_activation_message: nil, license_key_activations_limit: nil, license_key_duration: nil, license_key_enabled: nil, metadata: nil, name: nil, price: nil, pricing_mode: nil, tax_category: nil, request_options: {})
85
85
  #
86
- # @param id [String]
86
+ # @param id [String] Product Id
87
87
  #
88
88
  # @param addons [Array<String>, nil] Available Addons for subscription products
89
89
  #
@@ -168,7 +168,8 @@ module Dodopayments
168
168
 
169
169
  # @overload archive(id, request_options: {})
170
170
  #
171
- # @param id [String]
171
+ # @param id [String] Product Id
172
+ #
172
173
  # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}, nil]
173
174
  #
174
175
  # @return [nil]
@@ -185,7 +186,8 @@ module Dodopayments
185
186
 
186
187
  # @overload unarchive(id, request_options: {})
187
188
  #
188
- # @param id [String]
189
+ # @param id [String] Product Id
190
+ #
189
191
  # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}, nil]
190
192
  #
191
193
  # @return [nil]
@@ -8,7 +8,8 @@ module Dodopayments
8
8
  #
9
9
  # @overload retrieve(webhook_id, request_options: {})
10
10
  #
11
- # @param webhook_id [String]
11
+ # @param webhook_id [String] Webhook ID
12
+ #
12
13
  # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}, nil]
13
14
  #
14
15
  # @return [Dodopayments::Models::Webhooks::HeaderRetrieveResponse]
@@ -27,7 +28,7 @@ module Dodopayments
27
28
  #
28
29
  # @overload update(webhook_id, headers:, request_options: {})
29
30
  #
30
- # @param webhook_id [String]
31
+ # @param webhook_id [String] Webhook ID
31
32
  #
32
33
  # @param headers [Hash{Symbol=>String}] Object of header-value pair to update or add
33
34
  #
@@ -49,7 +49,8 @@ module Dodopayments
49
49
  #
50
50
  # @overload retrieve(webhook_id, request_options: {})
51
51
  #
52
- # @param webhook_id [String]
52
+ # @param webhook_id [String] Webhook ID
53
+ #
53
54
  # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}, nil]
54
55
  #
55
56
  # @return [Dodopayments::Models::WebhookDetails]
@@ -71,7 +72,7 @@ module Dodopayments
71
72
  #
72
73
  # @overload update(webhook_id, description: nil, disabled: nil, filter_types: nil, metadata: nil, rate_limit: nil, url: nil, request_options: {})
73
74
  #
74
- # @param webhook_id [String]
75
+ # @param webhook_id [String] Webhook ID
75
76
  #
76
77
  # @param description [String, nil] Description of the webhook
77
78
  #
@@ -131,7 +132,8 @@ module Dodopayments
131
132
  #
132
133
  # @overload delete(webhook_id, request_options: {})
133
134
  #
134
- # @param webhook_id [String]
135
+ # @param webhook_id [String] Webhook ID
136
+ #
135
137
  # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}, nil]
136
138
  #
137
139
  # @return [nil]
@@ -150,7 +152,8 @@ module Dodopayments
150
152
  #
151
153
  # @overload retrieve_secret(webhook_id, request_options: {})
152
154
  #
153
- # @param webhook_id [String]
155
+ # @param webhook_id [String] Webhook ID
156
+ #
154
157
  # @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}, nil]
155
158
  #
156
159
  # @return [Dodopayments::Models::WebhookRetrieveSecretResponse]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dodopayments
4
- VERSION = "2.17.0"
4
+ VERSION = "2.17.1"
5
5
  end
@@ -116,7 +116,11 @@ module Dodopayments
116
116
  request_options: Dodopayments::RequestOptions::OrHash
117
117
  ).returns(Dodopayments::CheckoutSessionStatus)
118
118
  end
119
- def retrieve(id, request_options: {})
119
+ def retrieve(
120
+ # Checkout Session ID
121
+ id,
122
+ request_options: {}
123
+ )
120
124
  end
121
125
 
122
126
  sig do
@@ -10,7 +10,11 @@ module Dodopayments
10
10
  request_options: Dodopayments::RequestOptions::OrHash
11
11
  ).returns(StringIO)
12
12
  end
13
- def retrieve(payment_id, request_options: {})
13
+ def retrieve(
14
+ # Payment ID
15
+ payment_id,
16
+ request_options: {}
17
+ )
14
18
  end
15
19
 
16
20
  sig do
@@ -19,7 +23,11 @@ module Dodopayments
19
23
  request_options: Dodopayments::RequestOptions::OrHash
20
24
  ).returns(StringIO)
21
25
  end
22
- def retrieve_payout(payout_id, request_options: {})
26
+ def retrieve_payout(
27
+ # Payout ID
28
+ payout_id,
29
+ request_options: {}
30
+ )
23
31
  end
24
32
 
25
33
  sig do
@@ -28,7 +36,11 @@ module Dodopayments
28
36
  request_options: Dodopayments::RequestOptions::OrHash
29
37
  ).returns(StringIO)
30
38
  end
31
- def retrieve_refund(refund_id, request_options: {})
39
+ def retrieve_refund(
40
+ # Refund ID
41
+ refund_id,
42
+ request_options: {}
43
+ )
32
44
  end
33
45
 
34
46
  # @api private
@@ -145,6 +145,7 @@ module Dodopayments
145
145
  ).void
146
146
  end
147
147
  def update(
148
+ # Product Id
148
149
  id,
149
150
  # Available Addons for subscription products
150
151
  addons: nil,
@@ -246,7 +247,11 @@ module Dodopayments
246
247
  request_options: Dodopayments::RequestOptions::OrHash
247
248
  ).void
248
249
  end
249
- def archive(id, request_options: {})
250
+ def archive(
251
+ # Product Id
252
+ id,
253
+ request_options: {}
254
+ )
250
255
  end
251
256
 
252
257
  sig do
@@ -255,7 +260,11 @@ module Dodopayments
255
260
  request_options: Dodopayments::RequestOptions::OrHash
256
261
  ).void
257
262
  end
258
- def unarchive(id, request_options: {})
263
+ def unarchive(
264
+ # Product Id
265
+ id,
266
+ request_options: {}
267
+ )
259
268
  end
260
269
 
261
270
  sig do
@@ -11,7 +11,11 @@ module Dodopayments
11
11
  request_options: Dodopayments::RequestOptions::OrHash
12
12
  ).returns(Dodopayments::Models::Webhooks::HeaderRetrieveResponse)
13
13
  end
14
- def retrieve(webhook_id, request_options: {})
14
+ def retrieve(
15
+ # Webhook ID
16
+ webhook_id,
17
+ request_options: {}
18
+ )
15
19
  end
16
20
 
17
21
  # Patch a webhook by id
@@ -23,6 +27,7 @@ module Dodopayments
23
27
  ).void
24
28
  end
25
29
  def update(
30
+ # Webhook ID
26
31
  webhook_id,
27
32
  # Object of header-value pair to update or add
28
33
  headers:,
@@ -50,7 +50,11 @@ module Dodopayments
50
50
  request_options: Dodopayments::RequestOptions::OrHash
51
51
  ).returns(Dodopayments::WebhookDetails)
52
52
  end
53
- def retrieve(webhook_id, request_options: {})
53
+ def retrieve(
54
+ # Webhook ID
55
+ webhook_id,
56
+ request_options: {}
57
+ )
54
58
  end
55
59
 
56
60
  # Patch a webhook by id
@@ -68,6 +72,7 @@ module Dodopayments
68
72
  ).returns(Dodopayments::WebhookDetails)
69
73
  end
70
74
  def update(
75
+ # Webhook ID
71
76
  webhook_id,
72
77
  # Description of the webhook
73
78
  description: nil,
@@ -115,7 +120,11 @@ module Dodopayments
115
120
  request_options: Dodopayments::RequestOptions::OrHash
116
121
  ).void
117
122
  end
118
- def delete(webhook_id, request_options: {})
123
+ def delete(
124
+ # Webhook ID
125
+ webhook_id,
126
+ request_options: {}
127
+ )
119
128
  end
120
129
 
121
130
  # Get webhook secret by id
@@ -125,7 +134,11 @@ module Dodopayments
125
134
  request_options: Dodopayments::RequestOptions::OrHash
126
135
  ).returns(Dodopayments::Models::WebhookRetrieveSecretResponse)
127
136
  end
128
- def retrieve_secret(webhook_id, request_options: {})
137
+ def retrieve_secret(
138
+ # Webhook ID
139
+ webhook_id,
140
+ request_options: {}
141
+ )
129
142
  end
130
143
 
131
144
  sig do
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: 2.17.0
4
+ version: 2.17.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: 2026-06-16 00:00:00.000000000 Z
11
+ date: 2026-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi