dodopayments 2.9.0 → 2.9.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 +8 -0
- data/README.md +1 -1
- data/lib/dodopayments/models/digital_product_delivery.rb +14 -7
- data/lib/dodopayments/models/digital_product_delivery_file.rb +12 -5
- data/lib/dodopayments/models/entitlement.rb +31 -20
- data/lib/dodopayments/models/entitlement_create_params.rb +3 -3
- data/lib/dodopayments/models/entitlement_grant_created_webhook_event.rb +6 -1
- data/lib/dodopayments/models/entitlement_grant_delivered_webhook_event.rb +6 -1
- data/lib/dodopayments/models/entitlement_grant_failed_webhook_event.rb +6 -1
- data/lib/dodopayments/models/entitlement_grant_revoked_webhook_event.rb +6 -1
- data/lib/dodopayments/models/entitlement_update_params.rb +3 -3
- data/lib/dodopayments/models/entitlements/entitlement_grant.rb +50 -32
- data/lib/dodopayments/models/entitlements/file_upload_response.rb +3 -3
- data/lib/dodopayments/models/entitlements/license_key_grant.rb +14 -9
- data/lib/dodopayments/models/integration_config.rb +70 -27
- data/lib/dodopayments/models/integration_config_response.rb +88 -48
- data/lib/dodopayments/models/product.rb +3 -5
- data/lib/dodopayments/models/product_entitlement_summary.rb +5 -5
- data/lib/dodopayments/models/webhook_payload.rb +5 -0
- data/lib/dodopayments/resources/entitlements/files.rb +3 -10
- data/lib/dodopayments/resources/entitlements/grants.rb +2 -4
- data/lib/dodopayments/resources/entitlements.rb +2 -2
- data/lib/dodopayments/version.rb +1 -1
- data/rbi/dodopayments/models/digital_product_delivery.rbi +15 -5
- data/rbi/dodopayments/models/digital_product_delivery_file.rbi +11 -0
- data/rbi/dodopayments/models/entitlement.rbi +35 -20
- data/rbi/dodopayments/models/entitlement_create_params.rbi +8 -5
- data/rbi/dodopayments/models/entitlement_grant_created_webhook_event.rbi +4 -0
- data/rbi/dodopayments/models/entitlement_grant_delivered_webhook_event.rbi +4 -0
- data/rbi/dodopayments/models/entitlement_grant_failed_webhook_event.rbi +4 -0
- data/rbi/dodopayments/models/entitlement_grant_revoked_webhook_event.rbi +4 -0
- data/rbi/dodopayments/models/entitlement_update_params.rbi +4 -4
- data/rbi/dodopayments/models/entitlements/entitlement_grant.rbi +54 -20
- data/rbi/dodopayments/models/entitlements/file_upload_response.rbi +4 -4
- data/rbi/dodopayments/models/entitlements/license_key_grant.rbi +10 -4
- data/rbi/dodopayments/models/integration_config.rbi +141 -26
- data/rbi/dodopayments/models/integration_config_response.rbi +153 -38
- data/rbi/dodopayments/models/product.rbi +4 -8
- data/rbi/dodopayments/models/product_entitlement_summary.rbi +8 -8
- data/rbi/dodopayments/models/webhook_payload.rbi +2 -0
- data/rbi/dodopayments/resources/entitlements/files.rbi +3 -10
- data/rbi/dodopayments/resources/entitlements/grants.rbi +2 -4
- data/rbi/dodopayments/resources/entitlements.rbi +4 -4
- data/sig/dodopayments/models/entitlement.rbs +8 -10
- data/sig/dodopayments/models/entitlement_create_params.rbs +6 -4
- data/sig/dodopayments/models/entitlements/entitlement_grant.rbs +4 -11
- data/sig/dodopayments/models/integration_config.rbs +28 -4
- data/sig/dodopayments/models/integration_config_response.rbs +28 -9
- data/sig/dodopayments/resources/entitlements.rbs +1 -1
- metadata +2 -2
|
@@ -10,7 +10,7 @@ module Dodopayments
|
|
|
10
10
|
created_at: Time,
|
|
11
11
|
customer_id: String,
|
|
12
12
|
entitlement_id: String,
|
|
13
|
-
|
|
13
|
+
metadata: ::Hash[Symbol, String],
|
|
14
14
|
status: Dodopayments::Models::Entitlements::EntitlementGrant::status,
|
|
15
15
|
updated_at: Time,
|
|
16
16
|
delivered_at: Time?,
|
|
@@ -18,7 +18,6 @@ module Dodopayments
|
|
|
18
18
|
error_code: String?,
|
|
19
19
|
error_message: String?,
|
|
20
20
|
license_key: Dodopayments::Entitlements::LicenseKeyGrant?,
|
|
21
|
-
metadata: top,
|
|
22
21
|
oauth_expires_at: Time?,
|
|
23
22
|
oauth_url: String?,
|
|
24
23
|
payment_id: String?,
|
|
@@ -38,7 +37,7 @@ module Dodopayments
|
|
|
38
37
|
|
|
39
38
|
attr_accessor entitlement_id: String
|
|
40
39
|
|
|
41
|
-
attr_accessor
|
|
40
|
+
attr_accessor metadata: ::Hash[Symbol, String]
|
|
42
41
|
|
|
43
42
|
attr_accessor status: Dodopayments::Models::Entitlements::EntitlementGrant::status
|
|
44
43
|
|
|
@@ -54,10 +53,6 @@ module Dodopayments
|
|
|
54
53
|
|
|
55
54
|
attr_accessor license_key: Dodopayments::Entitlements::LicenseKeyGrant?
|
|
56
55
|
|
|
57
|
-
attr_reader metadata: top?
|
|
58
|
-
|
|
59
|
-
def metadata=: (top) -> top
|
|
60
|
-
|
|
61
56
|
attr_accessor oauth_expires_at: Time?
|
|
62
57
|
|
|
63
58
|
attr_accessor oauth_url: String?
|
|
@@ -76,7 +71,7 @@ module Dodopayments
|
|
|
76
71
|
created_at: Time,
|
|
77
72
|
customer_id: String,
|
|
78
73
|
entitlement_id: String,
|
|
79
|
-
|
|
74
|
+
metadata: ::Hash[Symbol, String],
|
|
80
75
|
status: Dodopayments::Models::Entitlements::EntitlementGrant::status,
|
|
81
76
|
updated_at: Time,
|
|
82
77
|
?delivered_at: Time?,
|
|
@@ -84,7 +79,6 @@ module Dodopayments
|
|
|
84
79
|
?error_code: String?,
|
|
85
80
|
?error_message: String?,
|
|
86
81
|
?license_key: Dodopayments::Entitlements::LicenseKeyGrant?,
|
|
87
|
-
?metadata: top,
|
|
88
82
|
?oauth_expires_at: Time?,
|
|
89
83
|
?oauth_url: String?,
|
|
90
84
|
?payment_id: String?,
|
|
@@ -99,7 +93,7 @@ module Dodopayments
|
|
|
99
93
|
created_at: Time,
|
|
100
94
|
customer_id: String,
|
|
101
95
|
entitlement_id: String,
|
|
102
|
-
|
|
96
|
+
metadata: ::Hash[Symbol, String],
|
|
103
97
|
status: Dodopayments::Models::Entitlements::EntitlementGrant::status,
|
|
104
98
|
updated_at: Time,
|
|
105
99
|
delivered_at: Time?,
|
|
@@ -107,7 +101,6 @@ module Dodopayments
|
|
|
107
101
|
error_code: String?,
|
|
108
102
|
error_message: String?,
|
|
109
103
|
license_key: Dodopayments::Entitlements::LicenseKeyGrant?,
|
|
110
|
-
metadata: top,
|
|
111
104
|
oauth_expires_at: Time?,
|
|
112
105
|
oauth_url: String?,
|
|
113
106
|
payment_id: String?,
|
|
@@ -13,16 +13,40 @@ module Dodopayments
|
|
|
13
13
|
module IntegrationConfig
|
|
14
14
|
extend Dodopayments::Internal::Type::Union
|
|
15
15
|
|
|
16
|
-
type github_config =
|
|
16
|
+
type github_config =
|
|
17
|
+
{
|
|
18
|
+
permission: Dodopayments::Models::IntegrationConfig::GitHubConfig::permission,
|
|
19
|
+
target_id: String
|
|
20
|
+
}
|
|
17
21
|
|
|
18
22
|
class GitHubConfig < Dodopayments::Internal::Type::BaseModel
|
|
19
|
-
attr_accessor permission:
|
|
23
|
+
attr_accessor permission: Dodopayments::Models::IntegrationConfig::GitHubConfig::permission
|
|
20
24
|
|
|
21
25
|
attr_accessor target_id: String
|
|
22
26
|
|
|
23
|
-
def initialize: (
|
|
27
|
+
def initialize: (
|
|
28
|
+
permission: Dodopayments::Models::IntegrationConfig::GitHubConfig::permission,
|
|
29
|
+
target_id: String
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
permission: Dodopayments::Models::IntegrationConfig::GitHubConfig::permission,
|
|
34
|
+
target_id: String
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type permission = :pull | :push | :admin | :maintain | :triage
|
|
38
|
+
|
|
39
|
+
module Permission
|
|
40
|
+
extend Dodopayments::Internal::Type::Enum
|
|
41
|
+
|
|
42
|
+
PULL: :pull
|
|
43
|
+
PUSH: :push
|
|
44
|
+
ADMIN: :admin
|
|
45
|
+
MAINTAIN: :maintain
|
|
46
|
+
TRIAGE: :triage
|
|
24
47
|
|
|
25
|
-
|
|
48
|
+
def self?.values: -> ::Array[Dodopayments::Models::IntegrationConfig::GitHubConfig::permission]
|
|
49
|
+
end
|
|
26
50
|
end
|
|
27
51
|
|
|
28
52
|
type discord_config = { guild_id: String, role_id: String? }
|
|
@@ -13,16 +13,40 @@ module Dodopayments
|
|
|
13
13
|
module IntegrationConfigResponse
|
|
14
14
|
extend Dodopayments::Internal::Type::Union
|
|
15
15
|
|
|
16
|
-
type github_config =
|
|
16
|
+
type github_config =
|
|
17
|
+
{
|
|
18
|
+
permission: Dodopayments::Models::IntegrationConfigResponse::GitHubConfig::permission,
|
|
19
|
+
target_id: String
|
|
20
|
+
}
|
|
17
21
|
|
|
18
22
|
class GitHubConfig < Dodopayments::Internal::Type::BaseModel
|
|
19
|
-
attr_accessor permission:
|
|
23
|
+
attr_accessor permission: Dodopayments::Models::IntegrationConfigResponse::GitHubConfig::permission
|
|
20
24
|
|
|
21
25
|
attr_accessor target_id: String
|
|
22
26
|
|
|
23
|
-
def initialize: (
|
|
27
|
+
def initialize: (
|
|
28
|
+
permission: Dodopayments::Models::IntegrationConfigResponse::GitHubConfig::permission,
|
|
29
|
+
target_id: String
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
permission: Dodopayments::Models::IntegrationConfigResponse::GitHubConfig::permission,
|
|
34
|
+
target_id: String
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type permission = :pull | :push | :admin | :maintain | :triage
|
|
38
|
+
|
|
39
|
+
module Permission
|
|
40
|
+
extend Dodopayments::Internal::Type::Enum
|
|
24
41
|
|
|
25
|
-
|
|
42
|
+
PULL: :pull
|
|
43
|
+
PUSH: :push
|
|
44
|
+
ADMIN: :admin
|
|
45
|
+
MAINTAIN: :maintain
|
|
46
|
+
TRIAGE: :triage
|
|
47
|
+
|
|
48
|
+
def self?.values: -> ::Array[Dodopayments::Models::IntegrationConfigResponse::GitHubConfig::permission]
|
|
49
|
+
end
|
|
26
50
|
end
|
|
27
51
|
|
|
28
52
|
type discord_config = { guild_id: String, role_id: String? }
|
|
@@ -125,7 +149,6 @@ module Dodopayments
|
|
|
125
149
|
expires_in: Integer,
|
|
126
150
|
file_id: String,
|
|
127
151
|
filename: String,
|
|
128
|
-
source: String,
|
|
129
152
|
content_type: String?,
|
|
130
153
|
file_size: Integer?
|
|
131
154
|
}
|
|
@@ -139,8 +162,6 @@ module Dodopayments
|
|
|
139
162
|
|
|
140
163
|
attr_accessor filename: String
|
|
141
164
|
|
|
142
|
-
attr_accessor source: String
|
|
143
|
-
|
|
144
165
|
attr_accessor content_type: String?
|
|
145
166
|
|
|
146
167
|
attr_accessor file_size: Integer?
|
|
@@ -150,7 +171,6 @@ module Dodopayments
|
|
|
150
171
|
expires_in: Integer,
|
|
151
172
|
file_id: String,
|
|
152
173
|
filename: String,
|
|
153
|
-
source: String,
|
|
154
174
|
?content_type: String?,
|
|
155
175
|
?file_size: Integer?
|
|
156
176
|
) -> void
|
|
@@ -160,7 +180,6 @@ module Dodopayments
|
|
|
160
180
|
expires_in: Integer,
|
|
161
181
|
file_id: String,
|
|
162
182
|
filename: String,
|
|
163
|
-
source: String,
|
|
164
183
|
content_type: String?,
|
|
165
184
|
file_size: Integer?
|
|
166
185
|
}
|
|
@@ -10,7 +10,7 @@ module Dodopayments
|
|
|
10
10
|
integration_type: Dodopayments::Models::entitlement_integration_type,
|
|
11
11
|
name: String,
|
|
12
12
|
?description: String?,
|
|
13
|
-
?metadata: ::Hash[Symbol, String]
|
|
13
|
+
?metadata: ::Hash[Symbol, String],
|
|
14
14
|
?request_options: Dodopayments::request_opts
|
|
15
15
|
) -> Dodopayments::Entitlement
|
|
16
16
|
|
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.9.
|
|
4
|
+
version: 2.9.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-04
|
|
11
|
+
date: 2026-05-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|