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 +4 -4
- data/CHANGELOG.md +13 -0
- data/README.md +1 -1
- data/lib/dodopayments/internal/cursor_page_pagination.rb +1 -1
- data/lib/dodopayments/resources/checkout_sessions.rb +2 -1
- data/lib/dodopayments/resources/invoices/payments.rb +6 -3
- data/lib/dodopayments/resources/products.rb +5 -3
- data/lib/dodopayments/resources/webhooks/headers.rb +3 -2
- data/lib/dodopayments/resources/webhooks.rb +7 -4
- data/lib/dodopayments/version.rb +1 -1
- data/rbi/dodopayments/resources/checkout_sessions.rbi +5 -1
- data/rbi/dodopayments/resources/invoices/payments.rbi +15 -3
- data/rbi/dodopayments/resources/products.rbi +11 -2
- data/rbi/dodopayments/resources/webhooks/headers.rbi +6 -1
- data/rbi/dodopayments/resources/webhooks.rbi +16 -3
- 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: cbbc9fa9d82e0c6e65c55283f6ed071347ee5eeac1991a3cebb88416ae2a5b96
|
|
4
|
+
data.tar.gz: 479550f1d1243c6b5747d8b81400ed158a20aa88bb56163ceae194de52bb5174
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
@@ -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]
|
data/lib/dodopayments/version.rb
CHANGED
|
@@ -116,7 +116,11 @@ module Dodopayments
|
|
|
116
116
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
117
117
|
).returns(Dodopayments::CheckoutSessionStatus)
|
|
118
118
|
end
|
|
119
|
-
def retrieve(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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.
|
|
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-
|
|
11
|
+
date: 2026-06-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|