dodopayments 1.47.0 → 1.49.0
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 +10 -0
- data/README.md +1 -1
- data/lib/dodopayments/models/subscription_update_params.rb +7 -1
- data/lib/dodopayments/models/webhook_create_params.rb +5 -5
- data/lib/dodopayments/models/webhook_retrieve_secret_params.rb +14 -0
- data/lib/dodopayments/models/webhook_retrieve_secret_response.rb +16 -0
- data/lib/dodopayments/models.rb +2 -0
- data/lib/dodopayments/resources/subscriptions.rb +3 -1
- data/lib/dodopayments/resources/webhooks.rb +21 -2
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +2 -0
- data/rbi/dodopayments/models/subscription_update_params.rbi +6 -0
- data/rbi/dodopayments/models/webhook_create_params.rbi +6 -6
- data/rbi/dodopayments/models/webhook_retrieve_secret_params.rbi +32 -0
- data/rbi/dodopayments/models/webhook_retrieve_secret_response.rbi +26 -0
- data/rbi/dodopayments/models.rbi +3 -0
- data/rbi/dodopayments/resources/subscriptions.rbi +2 -0
- data/rbi/dodopayments/resources/webhooks.rbi +13 -3
- data/sig/dodopayments/models/subscription_update_params.rbs +5 -0
- data/sig/dodopayments/models/webhook_retrieve_secret_params.rbs +15 -0
- data/sig/dodopayments/models/webhook_retrieve_secret_response.rbs +13 -0
- data/sig/dodopayments/models.rbs +2 -0
- data/sig/dodopayments/resources/subscriptions.rbs +1 -0
- data/sig/dodopayments/resources/webhooks.rbs +5 -0
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b45d38877c288edc8b11d903e289f22f1c043dacc6203d8fc781b3ef5536b111
|
4
|
+
data.tar.gz: 3b8f3e10b1d8761e4eaa26b7d75e15e924b334329a3b556c4607f99531352682
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d5bd6cff1e74681df78e763bdc35e7c9768467d23860c534f7fda5c95e8991969b04dcfbd2666024a09842fad3aaea8a836b21f324bab06a2ad06fc582341bf
|
7
|
+
data.tar.gz: 1faa04dd18b57edd9ac35c9e24c32894b474adaaae5934f7ec80be1afda9ebf8f535b2a9b1f42238628ca2f29df11af583846b82741c1e0457bb9b6092a9f69e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.49.0 (2025-08-13)
|
4
|
+
|
5
|
+
Full Changelog: [v1.47.0...v1.49.0](https://github.com/dodopayments/dodopayments-ruby/compare/v1.47.0...v1.49.0)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** manual updates ([f9127c5](https://github.com/dodopayments/dodopayments-ruby/commit/f9127c578fca2e4304bcf47a394f9fa8b778f4a3))
|
10
|
+
* **api:** manual updates ([84efbc4](https://github.com/dodopayments/dodopayments-ruby/commit/84efbc4d2c7daceafb7db5232283025e0711908b))
|
11
|
+
* **api:** updated code for v1.49.0 ([9290571](https://github.com/dodopayments/dodopayments-ruby/commit/9290571193e4a5dee306b847d2a007529f46cd50))
|
12
|
+
|
3
13
|
## 1.47.0 (2025-08-13)
|
4
14
|
|
5
15
|
Full Changelog: [v1.22.0...v1.47.0](https://github.com/dodopayments/dodopayments-ruby/compare/v1.22.0...v1.47.0)
|
data/README.md
CHANGED
@@ -27,6 +27,11 @@ module Dodopayments
|
|
27
27
|
# @return [Hash{Symbol=>String}, nil]
|
28
28
|
optional :metadata, Dodopayments::Internal::Type::HashOf[String], nil?: true
|
29
29
|
|
30
|
+
# @!attribute next_billing_date
|
31
|
+
#
|
32
|
+
# @return [Time, nil]
|
33
|
+
optional :next_billing_date, Time, nil?: true
|
34
|
+
|
30
35
|
# @!attribute status
|
31
36
|
#
|
32
37
|
# @return [Symbol, Dodopayments::Models::SubscriptionStatus, nil]
|
@@ -37,11 +42,12 @@ module Dodopayments
|
|
37
42
|
# @return [String, nil]
|
38
43
|
optional :tax_id, String, nil?: true
|
39
44
|
|
40
|
-
# @!method initialize(billing: nil, cancel_at_next_billing_date: nil, disable_on_demand: nil, metadata: nil, status: nil, tax_id: nil, request_options: {})
|
45
|
+
# @!method initialize(billing: nil, cancel_at_next_billing_date: nil, disable_on_demand: nil, metadata: nil, next_billing_date: nil, status: nil, tax_id: nil, request_options: {})
|
41
46
|
# @param billing [Dodopayments::Models::BillingAddress, nil]
|
42
47
|
# @param cancel_at_next_billing_date [Boolean, nil]
|
43
48
|
# @param disable_on_demand [Dodopayments::Models::SubscriptionUpdateParams::DisableOnDemand, nil]
|
44
49
|
# @param metadata [Hash{Symbol=>String}, nil]
|
50
|
+
# @param next_billing_date [Time, nil]
|
45
51
|
# @param status [Symbol, Dodopayments::Models::SubscriptionStatus, nil]
|
46
52
|
# @param tax_id [String, nil]
|
47
53
|
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
@@ -14,9 +14,6 @@ module Dodopayments
|
|
14
14
|
required :url, String
|
15
15
|
|
16
16
|
# @!attribute description
|
17
|
-
# Filter events to the webhook.
|
18
|
-
#
|
19
|
-
# Webhook event will only be sent for events in the list.
|
20
17
|
#
|
21
18
|
# @return [String, nil]
|
22
19
|
optional :description, String, nil?: true
|
@@ -30,6 +27,9 @@ module Dodopayments
|
|
30
27
|
optional :disabled, Dodopayments::Internal::Type::Boolean, nil?: true
|
31
28
|
|
32
29
|
# @!attribute filter_types
|
30
|
+
# Filter events to the webhook.
|
31
|
+
#
|
32
|
+
# Webhook event will only be sent for events in the list.
|
33
33
|
#
|
34
34
|
# @return [Array<Symbol, Dodopayments::Models::WebhookEventType>, nil]
|
35
35
|
optional :filter_types,
|
@@ -66,11 +66,11 @@ module Dodopayments
|
|
66
66
|
#
|
67
67
|
# @param url [String] Url of the webhook
|
68
68
|
#
|
69
|
-
# @param description [String, nil]
|
69
|
+
# @param description [String, nil]
|
70
70
|
#
|
71
71
|
# @param disabled [Boolean, nil] Create the webhook in a disabled state.
|
72
72
|
#
|
73
|
-
# @param filter_types [Array<Symbol, Dodopayments::Models::WebhookEventType>]
|
73
|
+
# @param filter_types [Array<Symbol, Dodopayments::Models::WebhookEventType>] Filter events to the webhook.
|
74
74
|
#
|
75
75
|
# @param headers [Hash{Symbol=>String}, nil] Custom headers to be passed
|
76
76
|
#
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Models
|
5
|
+
# @see Dodopayments::Resources::Webhooks#retrieve_secret
|
6
|
+
class WebhookRetrieveSecretParams < Dodopayments::Internal::Type::BaseModel
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
# @!method initialize(request_options: {})
|
11
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Models
|
5
|
+
# @see Dodopayments::Resources::Webhooks#retrieve_secret
|
6
|
+
class WebhookRetrieveSecretResponse < Dodopayments::Internal::Type::BaseModel
|
7
|
+
# @!attribute secret
|
8
|
+
#
|
9
|
+
# @return [String]
|
10
|
+
required :secret, String
|
11
|
+
|
12
|
+
# @!method initialize(secret:)
|
13
|
+
# @param secret [String]
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/dodopayments/models.rb
CHANGED
@@ -233,6 +233,8 @@ module Dodopayments
|
|
233
233
|
|
234
234
|
WebhookRetrieveParams = Dodopayments::Models::WebhookRetrieveParams
|
235
235
|
|
236
|
+
WebhookRetrieveSecretParams = Dodopayments::Models::WebhookRetrieveSecretParams
|
237
|
+
|
236
238
|
Webhooks = Dodopayments::Models::Webhooks
|
237
239
|
|
238
240
|
WebhookUpdateParams = Dodopayments::Models::WebhookUpdateParams
|
@@ -72,7 +72,7 @@ module Dodopayments
|
|
72
72
|
)
|
73
73
|
end
|
74
74
|
|
75
|
-
# @overload update(subscription_id, billing: nil, cancel_at_next_billing_date: nil, disable_on_demand: nil, metadata: nil, status: nil, tax_id: nil, request_options: {})
|
75
|
+
# @overload update(subscription_id, billing: nil, cancel_at_next_billing_date: nil, disable_on_demand: nil, metadata: nil, next_billing_date: nil, status: nil, tax_id: nil, request_options: {})
|
76
76
|
#
|
77
77
|
# @param subscription_id [String] Subscription Id
|
78
78
|
#
|
@@ -84,6 +84,8 @@ module Dodopayments
|
|
84
84
|
#
|
85
85
|
# @param metadata [Hash{Symbol=>String}, nil]
|
86
86
|
#
|
87
|
+
# @param next_billing_date [Time, nil]
|
88
|
+
#
|
87
89
|
# @param status [Symbol, Dodopayments::Models::SubscriptionStatus, nil]
|
88
90
|
#
|
89
91
|
# @param tax_id [String, nil]
|
@@ -15,11 +15,11 @@ module Dodopayments
|
|
15
15
|
#
|
16
16
|
# @param url [String] Url of the webhook
|
17
17
|
#
|
18
|
-
# @param description [String, nil]
|
18
|
+
# @param description [String, nil]
|
19
19
|
#
|
20
20
|
# @param disabled [Boolean, nil] Create the webhook in a disabled state.
|
21
21
|
#
|
22
|
-
# @param filter_types [Array<Symbol, Dodopayments::Models::WebhookEventType>]
|
22
|
+
# @param filter_types [Array<Symbol, Dodopayments::Models::WebhookEventType>] Filter events to the webhook.
|
23
23
|
#
|
24
24
|
# @param headers [Hash{Symbol=>String}, nil] Custom headers to be passed
|
25
25
|
#
|
@@ -145,6 +145,25 @@ module Dodopayments
|
|
145
145
|
)
|
146
146
|
end
|
147
147
|
|
148
|
+
# Get webhook secret by id
|
149
|
+
#
|
150
|
+
# @overload retrieve_secret(webhook_id, request_options: {})
|
151
|
+
#
|
152
|
+
# @param webhook_id [String]
|
153
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}, nil]
|
154
|
+
#
|
155
|
+
# @return [Dodopayments::Models::WebhookRetrieveSecretResponse]
|
156
|
+
#
|
157
|
+
# @see Dodopayments::Models::WebhookRetrieveSecretParams
|
158
|
+
def retrieve_secret(webhook_id, params = {})
|
159
|
+
@client.request(
|
160
|
+
method: :get,
|
161
|
+
path: ["webhooks/%1$s/secret", webhook_id],
|
162
|
+
model: Dodopayments::Models::WebhookRetrieveSecretResponse,
|
163
|
+
options: params[:request_options]
|
164
|
+
)
|
165
|
+
end
|
166
|
+
|
148
167
|
# @api private
|
149
168
|
#
|
150
169
|
# @param client [Dodopayments::Client]
|
data/lib/dodopayments/version.rb
CHANGED
data/lib/dodopayments.rb
CHANGED
@@ -168,6 +168,8 @@ require_relative "dodopayments/models/webhook_list_params"
|
|
168
168
|
require_relative "dodopayments/models/webhook_list_response"
|
169
169
|
require_relative "dodopayments/models/webhook_retrieve_params"
|
170
170
|
require_relative "dodopayments/models/webhook_retrieve_response"
|
171
|
+
require_relative "dodopayments/models/webhook_retrieve_secret_params"
|
172
|
+
require_relative "dodopayments/models/webhook_retrieve_secret_response"
|
171
173
|
require_relative "dodopayments/models/webhooks/header_retrieve_params"
|
172
174
|
require_relative "dodopayments/models/webhooks/header_retrieve_response"
|
173
175
|
require_relative "dodopayments/models/webhooks/header_update_params"
|
@@ -45,6 +45,9 @@ module Dodopayments
|
|
45
45
|
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
46
46
|
attr_accessor :metadata
|
47
47
|
|
48
|
+
sig { returns(T.nilable(Time)) }
|
49
|
+
attr_accessor :next_billing_date
|
50
|
+
|
48
51
|
sig { returns(T.nilable(Dodopayments::SubscriptionStatus::OrSymbol)) }
|
49
52
|
attr_accessor :status
|
50
53
|
|
@@ -60,6 +63,7 @@ module Dodopayments
|
|
60
63
|
Dodopayments::SubscriptionUpdateParams::DisableOnDemand::OrHash
|
61
64
|
),
|
62
65
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
66
|
+
next_billing_date: T.nilable(Time),
|
63
67
|
status: T.nilable(Dodopayments::SubscriptionStatus::OrSymbol),
|
64
68
|
tax_id: T.nilable(String),
|
65
69
|
request_options: Dodopayments::RequestOptions::OrHash
|
@@ -70,6 +74,7 @@ module Dodopayments
|
|
70
74
|
cancel_at_next_billing_date: nil,
|
71
75
|
disable_on_demand: nil,
|
72
76
|
metadata: nil,
|
77
|
+
next_billing_date: nil,
|
73
78
|
status: nil,
|
74
79
|
tax_id: nil,
|
75
80
|
request_options: {}
|
@@ -86,6 +91,7 @@ module Dodopayments
|
|
86
91
|
Dodopayments::SubscriptionUpdateParams::DisableOnDemand
|
87
92
|
),
|
88
93
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
94
|
+
next_billing_date: T.nilable(Time),
|
89
95
|
status: T.nilable(Dodopayments::SubscriptionStatus::OrSymbol),
|
90
96
|
tax_id: T.nilable(String),
|
91
97
|
request_options: Dodopayments::RequestOptions
|
@@ -18,9 +18,6 @@ module Dodopayments
|
|
18
18
|
sig { returns(String) }
|
19
19
|
attr_accessor :url
|
20
20
|
|
21
|
-
# Filter events to the webhook.
|
22
|
-
#
|
23
|
-
# Webhook event will only be sent for events in the list.
|
24
21
|
sig { returns(T.nilable(String)) }
|
25
22
|
attr_accessor :description
|
26
23
|
|
@@ -30,6 +27,9 @@ module Dodopayments
|
|
30
27
|
sig { returns(T.nilable(T::Boolean)) }
|
31
28
|
attr_accessor :disabled
|
32
29
|
|
30
|
+
# Filter events to the webhook.
|
31
|
+
#
|
32
|
+
# Webhook event will only be sent for events in the list.
|
33
33
|
sig do
|
34
34
|
returns(T.nilable(T::Array[Dodopayments::WebhookEventType::OrSymbol]))
|
35
35
|
end
|
@@ -73,14 +73,14 @@ module Dodopayments
|
|
73
73
|
def self.new(
|
74
74
|
# Url of the webhook
|
75
75
|
url:,
|
76
|
-
# Filter events to the webhook.
|
77
|
-
#
|
78
|
-
# Webhook event will only be sent for events in the list.
|
79
76
|
description: nil,
|
80
77
|
# Create the webhook in a disabled state.
|
81
78
|
#
|
82
79
|
# Default is false
|
83
80
|
disabled: nil,
|
81
|
+
# Filter events to the webhook.
|
82
|
+
#
|
83
|
+
# Webhook event will only be sent for events in the list.
|
84
84
|
filter_types: nil,
|
85
85
|
# Custom headers to be passed
|
86
86
|
headers: nil,
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Models
|
5
|
+
class WebhookRetrieveSecretParams < Dodopayments::Internal::Type::BaseModel
|
6
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
7
|
+
include Dodopayments::Internal::Type::RequestParameters
|
8
|
+
|
9
|
+
OrHash =
|
10
|
+
T.type_alias do
|
11
|
+
T.any(
|
12
|
+
Dodopayments::WebhookRetrieveSecretParams,
|
13
|
+
Dodopayments::Internal::AnyHash
|
14
|
+
)
|
15
|
+
end
|
16
|
+
|
17
|
+
sig do
|
18
|
+
params(request_options: Dodopayments::RequestOptions::OrHash).returns(
|
19
|
+
T.attached_class
|
20
|
+
)
|
21
|
+
end
|
22
|
+
def self.new(request_options: {})
|
23
|
+
end
|
24
|
+
|
25
|
+
sig do
|
26
|
+
override.returns({ request_options: Dodopayments::RequestOptions })
|
27
|
+
end
|
28
|
+
def to_hash
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# typed: strong
|
2
|
+
|
3
|
+
module Dodopayments
|
4
|
+
module Models
|
5
|
+
class WebhookRetrieveSecretResponse < Dodopayments::Internal::Type::BaseModel
|
6
|
+
OrHash =
|
7
|
+
T.type_alias do
|
8
|
+
T.any(
|
9
|
+
Dodopayments::Models::WebhookRetrieveSecretResponse,
|
10
|
+
Dodopayments::Internal::AnyHash
|
11
|
+
)
|
12
|
+
end
|
13
|
+
|
14
|
+
sig { returns(String) }
|
15
|
+
attr_accessor :secret
|
16
|
+
|
17
|
+
sig { params(secret: String).returns(T.attached_class) }
|
18
|
+
def self.new(secret:)
|
19
|
+
end
|
20
|
+
|
21
|
+
sig { override.returns({ secret: String }) }
|
22
|
+
def to_hash
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/rbi/dodopayments/models.rbi
CHANGED
@@ -201,6 +201,9 @@ module Dodopayments
|
|
201
201
|
|
202
202
|
WebhookRetrieveParams = Dodopayments::Models::WebhookRetrieveParams
|
203
203
|
|
204
|
+
WebhookRetrieveSecretParams =
|
205
|
+
Dodopayments::Models::WebhookRetrieveSecretParams
|
206
|
+
|
204
207
|
Webhooks = Dodopayments::Models::Webhooks
|
205
208
|
|
206
209
|
WebhookUpdateParams = Dodopayments::Models::WebhookUpdateParams
|
@@ -94,6 +94,7 @@ module Dodopayments
|
|
94
94
|
Dodopayments::SubscriptionUpdateParams::DisableOnDemand::OrHash
|
95
95
|
),
|
96
96
|
metadata: T.nilable(T::Hash[Symbol, String]),
|
97
|
+
next_billing_date: T.nilable(Time),
|
97
98
|
status: T.nilable(Dodopayments::SubscriptionStatus::OrSymbol),
|
98
99
|
tax_id: T.nilable(String),
|
99
100
|
request_options: Dodopayments::RequestOptions::OrHash
|
@@ -106,6 +107,7 @@ module Dodopayments
|
|
106
107
|
cancel_at_next_billing_date: nil,
|
107
108
|
disable_on_demand: nil,
|
108
109
|
metadata: nil,
|
110
|
+
next_billing_date: nil,
|
109
111
|
status: nil,
|
110
112
|
tax_id: nil,
|
111
113
|
request_options: {}
|
@@ -23,14 +23,14 @@ module Dodopayments
|
|
23
23
|
def create(
|
24
24
|
# Url of the webhook
|
25
25
|
url:,
|
26
|
-
# Filter events to the webhook.
|
27
|
-
#
|
28
|
-
# Webhook event will only be sent for events in the list.
|
29
26
|
description: nil,
|
30
27
|
# Create the webhook in a disabled state.
|
31
28
|
#
|
32
29
|
# Default is false
|
33
30
|
disabled: nil,
|
31
|
+
# Filter events to the webhook.
|
32
|
+
#
|
33
|
+
# Webhook event will only be sent for events in the list.
|
34
34
|
filter_types: nil,
|
35
35
|
# Custom headers to be passed
|
36
36
|
headers: nil,
|
@@ -118,6 +118,16 @@ module Dodopayments
|
|
118
118
|
def delete(webhook_id, request_options: {})
|
119
119
|
end
|
120
120
|
|
121
|
+
# Get webhook secret by id
|
122
|
+
sig do
|
123
|
+
params(
|
124
|
+
webhook_id: String,
|
125
|
+
request_options: Dodopayments::RequestOptions::OrHash
|
126
|
+
).returns(Dodopayments::Models::WebhookRetrieveSecretResponse)
|
127
|
+
end
|
128
|
+
def retrieve_secret(webhook_id, request_options: {})
|
129
|
+
end
|
130
|
+
|
121
131
|
# @api private
|
122
132
|
sig { params(client: Dodopayments::Client).returns(T.attached_class) }
|
123
133
|
def self.new(client:)
|
@@ -6,6 +6,7 @@ module Dodopayments
|
|
6
6
|
cancel_at_next_billing_date: bool?,
|
7
7
|
disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
8
8
|
metadata: ::Hash[Symbol, String]?,
|
9
|
+
next_billing_date: Time?,
|
9
10
|
status: Dodopayments::Models::subscription_status?,
|
10
11
|
tax_id: String?
|
11
12
|
}
|
@@ -23,6 +24,8 @@ module Dodopayments
|
|
23
24
|
|
24
25
|
attr_accessor metadata: ::Hash[Symbol, String]?
|
25
26
|
|
27
|
+
attr_accessor next_billing_date: Time?
|
28
|
+
|
26
29
|
attr_accessor status: Dodopayments::Models::subscription_status?
|
27
30
|
|
28
31
|
attr_accessor tax_id: String?
|
@@ -32,6 +35,7 @@ module Dodopayments
|
|
32
35
|
?cancel_at_next_billing_date: bool?,
|
33
36
|
?disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
34
37
|
?metadata: ::Hash[Symbol, String]?,
|
38
|
+
?next_billing_date: Time?,
|
35
39
|
?status: Dodopayments::Models::subscription_status?,
|
36
40
|
?tax_id: String?,
|
37
41
|
?request_options: Dodopayments::request_opts
|
@@ -42,6 +46,7 @@ module Dodopayments
|
|
42
46
|
cancel_at_next_billing_date: bool?,
|
43
47
|
disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
44
48
|
metadata: ::Hash[Symbol, String]?,
|
49
|
+
next_billing_date: Time?,
|
45
50
|
status: Dodopayments::Models::subscription_status?,
|
46
51
|
tax_id: String?,
|
47
52
|
request_options: Dodopayments::RequestOptions
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module Dodopayments
|
2
|
+
module Models
|
3
|
+
type webhook_retrieve_secret_params =
|
4
|
+
{ } & Dodopayments::Internal::Type::request_parameters
|
5
|
+
|
6
|
+
class WebhookRetrieveSecretParams < Dodopayments::Internal::Type::BaseModel
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
9
|
+
|
10
|
+
def initialize: (?request_options: Dodopayments::request_opts) -> void
|
11
|
+
|
12
|
+
def to_hash: -> { request_options: Dodopayments::RequestOptions }
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Dodopayments
|
2
|
+
module Models
|
3
|
+
type webhook_retrieve_secret_response = { secret: String }
|
4
|
+
|
5
|
+
class WebhookRetrieveSecretResponse < Dodopayments::Internal::Type::BaseModel
|
6
|
+
attr_accessor secret: String
|
7
|
+
|
8
|
+
def initialize: (secret: String) -> void
|
9
|
+
|
10
|
+
def to_hash: -> { secret: String }
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
data/sig/dodopayments/models.rbs
CHANGED
@@ -193,6 +193,8 @@ module Dodopayments
|
|
193
193
|
|
194
194
|
class WebhookRetrieveParams = Dodopayments::Models::WebhookRetrieveParams
|
195
195
|
|
196
|
+
class WebhookRetrieveSecretParams = Dodopayments::Models::WebhookRetrieveSecretParams
|
197
|
+
|
196
198
|
module Webhooks = Dodopayments::Models::Webhooks
|
197
199
|
|
198
200
|
class WebhookUpdateParams = Dodopayments::Models::WebhookUpdateParams
|
@@ -31,6 +31,7 @@ module Dodopayments
|
|
31
31
|
?cancel_at_next_billing_date: bool?,
|
32
32
|
?disable_on_demand: Dodopayments::SubscriptionUpdateParams::DisableOnDemand?,
|
33
33
|
?metadata: ::Hash[Symbol, String]?,
|
34
|
+
?next_billing_date: Time?,
|
34
35
|
?status: Dodopayments::Models::subscription_status?,
|
35
36
|
?tax_id: String?,
|
36
37
|
?request_options: Dodopayments::request_opts
|
@@ -42,6 +42,11 @@ module Dodopayments
|
|
42
42
|
?request_options: Dodopayments::request_opts
|
43
43
|
) -> nil
|
44
44
|
|
45
|
+
def retrieve_secret: (
|
46
|
+
String webhook_id,
|
47
|
+
?request_options: Dodopayments::request_opts
|
48
|
+
) -> Dodopayments::Models::WebhookRetrieveSecretResponse
|
49
|
+
|
45
50
|
def initialize: (client: Dodopayments::Client) -> void
|
46
51
|
end
|
47
52
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dodopayments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.49.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dodo Payments
|
@@ -173,6 +173,8 @@ files:
|
|
173
173
|
- lib/dodopayments/models/webhook_payload.rb
|
174
174
|
- lib/dodopayments/models/webhook_retrieve_params.rb
|
175
175
|
- lib/dodopayments/models/webhook_retrieve_response.rb
|
176
|
+
- lib/dodopayments/models/webhook_retrieve_secret_params.rb
|
177
|
+
- lib/dodopayments/models/webhook_retrieve_secret_response.rb
|
176
178
|
- lib/dodopayments/models/webhook_update_params.rb
|
177
179
|
- lib/dodopayments/models/webhook_update_response.rb
|
178
180
|
- lib/dodopayments/models/webhooks/header_retrieve_params.rb
|
@@ -341,6 +343,8 @@ files:
|
|
341
343
|
- rbi/dodopayments/models/webhook_payload.rbi
|
342
344
|
- rbi/dodopayments/models/webhook_retrieve_params.rbi
|
343
345
|
- rbi/dodopayments/models/webhook_retrieve_response.rbi
|
346
|
+
- rbi/dodopayments/models/webhook_retrieve_secret_params.rbi
|
347
|
+
- rbi/dodopayments/models/webhook_retrieve_secret_response.rbi
|
344
348
|
- rbi/dodopayments/models/webhook_update_params.rbi
|
345
349
|
- rbi/dodopayments/models/webhook_update_response.rbi
|
346
350
|
- rbi/dodopayments/models/webhooks/header_retrieve_params.rbi
|
@@ -508,6 +512,8 @@ files:
|
|
508
512
|
- sig/dodopayments/models/webhook_payload.rbs
|
509
513
|
- sig/dodopayments/models/webhook_retrieve_params.rbs
|
510
514
|
- sig/dodopayments/models/webhook_retrieve_response.rbs
|
515
|
+
- sig/dodopayments/models/webhook_retrieve_secret_params.rbs
|
516
|
+
- sig/dodopayments/models/webhook_retrieve_secret_response.rbs
|
511
517
|
- sig/dodopayments/models/webhook_update_params.rbs
|
512
518
|
- sig/dodopayments/models/webhook_update_response.rbs
|
513
519
|
- sig/dodopayments/models/webhooks/header_retrieve_params.rbs
|