dodopayments 1.73.0 → 1.74.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 +8 -0
- data/README.md +1 -1
- data/lib/dodopayments/models/checkout_session_request.rb +86 -1
- data/lib/dodopayments/models/customer_list_params.rb +25 -1
- data/lib/dodopayments/models/discount_list_params.rb +33 -1
- data/lib/dodopayments/models/license_key_list_params.rb +17 -1
- data/lib/dodopayments/models/payment.rb +32 -1
- data/lib/dodopayments/models/payment_list_response.rb +28 -1
- data/lib/dodopayments/models/subscription.rb +32 -1
- data/lib/dodopayments/models/subscription_list_response.rb +9 -1
- data/lib/dodopayments/resources/checkout_sessions.rb +6 -2
- data/lib/dodopayments/resources/customers.rb +7 -1
- data/lib/dodopayments/resources/discounts.rb +9 -1
- data/lib/dodopayments/resources/license_keys.rb +5 -1
- data/lib/dodopayments/version.rb +1 -1
- data/rbi/dodopayments/models/checkout_session_request.rbi +175 -0
- data/rbi/dodopayments/models/customer_list_params.rbi +33 -0
- data/rbi/dodopayments/models/discount_list_params.rbi +44 -0
- data/rbi/dodopayments/models/license_key_list_params.rbi +22 -0
- data/rbi/dodopayments/models/payment.rbi +46 -0
- data/rbi/dodopayments/models/payment_list_response.rbi +16 -0
- data/rbi/dodopayments/models/subscription.rbi +50 -0
- data/rbi/dodopayments/models/subscription_list_response.rbi +8 -0
- data/rbi/dodopayments/resources/checkout_sessions.rbi +16 -0
- data/rbi/dodopayments/resources/customers.rbi +9 -0
- data/rbi/dodopayments/resources/discounts.rbi +12 -0
- data/rbi/dodopayments/resources/license_keys.rbi +6 -0
- data/sig/dodopayments/models/checkout_session_request.rbs +76 -0
- data/sig/dodopayments/models/customer_list_params.rbs +26 -1
- data/sig/dodopayments/models/discount_list_params.rbs +34 -1
- data/sig/dodopayments/models/license_key_list_params.rbs +14 -0
- data/sig/dodopayments/models/payment.rbs +17 -0
- data/sig/dodopayments/models/payment_list_response.rbs +10 -0
- data/sig/dodopayments/models/subscription.rbs +17 -0
- data/sig/dodopayments/models/subscription_list_response.rbs +5 -0
- data/sig/dodopayments/resources/checkout_sessions.rbs +2 -0
- data/sig/dodopayments/resources/customers.rbs +3 -0
- data/sig/dodopayments/resources/discounts.rbs +4 -0
- data/sig/dodopayments/resources/license_keys.rbs +2 -0
- metadata +2 -2
|
@@ -63,7 +63,10 @@ module Dodopayments
|
|
|
63
63
|
|
|
64
64
|
sig do
|
|
65
65
|
params(
|
|
66
|
+
created_at_gte: Time,
|
|
67
|
+
created_at_lte: Time,
|
|
66
68
|
email: String,
|
|
69
|
+
name: String,
|
|
67
70
|
page_number: Integer,
|
|
68
71
|
page_size: Integer,
|
|
69
72
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
@@ -74,8 +77,14 @@ module Dodopayments
|
|
|
74
77
|
)
|
|
75
78
|
end
|
|
76
79
|
def list(
|
|
80
|
+
# Filter customers created on or after this timestamp
|
|
81
|
+
created_at_gte: nil,
|
|
82
|
+
# Filter customers created on or before this timestamp
|
|
83
|
+
created_at_lte: nil,
|
|
77
84
|
# Filter by customer email
|
|
78
85
|
email: nil,
|
|
86
|
+
# Filter by customer name (partial match, case-insensitive)
|
|
87
|
+
name: nil,
|
|
79
88
|
# Page number default is 0
|
|
80
89
|
page_number: nil,
|
|
81
90
|
# Page size default is 10 max is 100
|
|
@@ -111,8 +111,12 @@ module Dodopayments
|
|
|
111
111
|
# GET /discounts
|
|
112
112
|
sig do
|
|
113
113
|
params(
|
|
114
|
+
active: T::Boolean,
|
|
115
|
+
code: String,
|
|
116
|
+
discount_type: Dodopayments::DiscountType::OrSymbol,
|
|
114
117
|
page_number: Integer,
|
|
115
118
|
page_size: Integer,
|
|
119
|
+
product_id: String,
|
|
116
120
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
117
121
|
).returns(
|
|
118
122
|
Dodopayments::Internal::DefaultPageNumberPagination[
|
|
@@ -121,10 +125,18 @@ module Dodopayments
|
|
|
121
125
|
)
|
|
122
126
|
end
|
|
123
127
|
def list(
|
|
128
|
+
# Filter by active status (true = not expired, false = expired)
|
|
129
|
+
active: nil,
|
|
130
|
+
# Filter by discount code (partial match, case-insensitive)
|
|
131
|
+
code: nil,
|
|
132
|
+
# Filter by discount type (percentage)
|
|
133
|
+
discount_type: nil,
|
|
124
134
|
# Page number (default = 0).
|
|
125
135
|
page_number: nil,
|
|
126
136
|
# Page size (default = 10, max = 100).
|
|
127
137
|
page_size: nil,
|
|
138
|
+
# Filter by product restriction (only discounts that apply to this product)
|
|
139
|
+
product_id: nil,
|
|
128
140
|
request_options: {}
|
|
129
141
|
)
|
|
130
142
|
end
|
|
@@ -43,6 +43,8 @@ module Dodopayments
|
|
|
43
43
|
|
|
44
44
|
sig do
|
|
45
45
|
params(
|
|
46
|
+
created_at_gte: Time,
|
|
47
|
+
created_at_lte: Time,
|
|
46
48
|
customer_id: String,
|
|
47
49
|
page_number: Integer,
|
|
48
50
|
page_size: Integer,
|
|
@@ -56,6 +58,10 @@ module Dodopayments
|
|
|
56
58
|
)
|
|
57
59
|
end
|
|
58
60
|
def list(
|
|
61
|
+
# Filter license keys created on or after this timestamp
|
|
62
|
+
created_at_gte: nil,
|
|
63
|
+
# Filter license keys created on or before this timestamp
|
|
64
|
+
created_at_lte: nil,
|
|
59
65
|
# Filter by customer ID
|
|
60
66
|
customer_id: nil,
|
|
61
67
|
# Page number default is 0
|
|
@@ -7,6 +7,7 @@ module Dodopayments
|
|
|
7
7
|
billing_address: Dodopayments::CheckoutSessionRequest::BillingAddress?,
|
|
8
8
|
billing_currency: Dodopayments::Models::currency?,
|
|
9
9
|
confirm: bool,
|
|
10
|
+
custom_fields: ::Array[Dodopayments::CheckoutSessionRequest::CustomField]?,
|
|
10
11
|
customer: Dodopayments::Models::customer_request?,
|
|
11
12
|
customization: Dodopayments::CheckoutSessionRequest::Customization,
|
|
12
13
|
discount_code: String?,
|
|
@@ -35,6 +36,8 @@ module Dodopayments
|
|
|
35
36
|
|
|
36
37
|
def confirm=: (bool) -> bool
|
|
37
38
|
|
|
39
|
+
attr_accessor custom_fields: ::Array[Dodopayments::CheckoutSessionRequest::CustomField]?
|
|
40
|
+
|
|
38
41
|
attr_accessor customer: Dodopayments::Models::customer_request?
|
|
39
42
|
|
|
40
43
|
attr_reader customization: Dodopayments::CheckoutSessionRequest::Customization?
|
|
@@ -81,6 +84,7 @@ module Dodopayments
|
|
|
81
84
|
?billing_address: Dodopayments::CheckoutSessionRequest::BillingAddress?,
|
|
82
85
|
?billing_currency: Dodopayments::Models::currency?,
|
|
83
86
|
?confirm: bool,
|
|
87
|
+
?custom_fields: ::Array[Dodopayments::CheckoutSessionRequest::CustomField]?,
|
|
84
88
|
?customer: Dodopayments::Models::customer_request?,
|
|
85
89
|
?customization: Dodopayments::CheckoutSessionRequest::Customization,
|
|
86
90
|
?discount_code: String?,
|
|
@@ -102,6 +106,7 @@ module Dodopayments
|
|
|
102
106
|
billing_address: Dodopayments::CheckoutSessionRequest::BillingAddress?,
|
|
103
107
|
billing_currency: Dodopayments::Models::currency?,
|
|
104
108
|
confirm: bool,
|
|
109
|
+
custom_fields: ::Array[Dodopayments::CheckoutSessionRequest::CustomField]?,
|
|
105
110
|
customer: Dodopayments::Models::customer_request?,
|
|
106
111
|
customization: Dodopayments::CheckoutSessionRequest::Customization,
|
|
107
112
|
discount_code: String?,
|
|
@@ -186,6 +191,77 @@ module Dodopayments
|
|
|
186
191
|
}
|
|
187
192
|
end
|
|
188
193
|
|
|
194
|
+
type custom_field =
|
|
195
|
+
{
|
|
196
|
+
field_type: Dodopayments::Models::CheckoutSessionRequest::CustomField::field_type,
|
|
197
|
+
key: String,
|
|
198
|
+
label: String,
|
|
199
|
+
options: ::Array[String]?,
|
|
200
|
+
placeholder: String?,
|
|
201
|
+
required: bool
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
class CustomField < Dodopayments::Internal::Type::BaseModel
|
|
205
|
+
attr_accessor field_type: Dodopayments::Models::CheckoutSessionRequest::CustomField::field_type
|
|
206
|
+
|
|
207
|
+
attr_accessor key: String
|
|
208
|
+
|
|
209
|
+
attr_accessor label: String
|
|
210
|
+
|
|
211
|
+
attr_accessor options: ::Array[String]?
|
|
212
|
+
|
|
213
|
+
attr_accessor placeholder: String?
|
|
214
|
+
|
|
215
|
+
attr_reader required: bool?
|
|
216
|
+
|
|
217
|
+
def required=: (bool) -> bool
|
|
218
|
+
|
|
219
|
+
def initialize: (
|
|
220
|
+
field_type: Dodopayments::Models::CheckoutSessionRequest::CustomField::field_type,
|
|
221
|
+
key: String,
|
|
222
|
+
label: String,
|
|
223
|
+
?options: ::Array[String]?,
|
|
224
|
+
?placeholder: String?,
|
|
225
|
+
?required: bool
|
|
226
|
+
) -> void
|
|
227
|
+
|
|
228
|
+
def to_hash: -> {
|
|
229
|
+
field_type: Dodopayments::Models::CheckoutSessionRequest::CustomField::field_type,
|
|
230
|
+
key: String,
|
|
231
|
+
label: String,
|
|
232
|
+
options: ::Array[String]?,
|
|
233
|
+
placeholder: String?,
|
|
234
|
+
required: bool
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
type field_type =
|
|
238
|
+
:text
|
|
239
|
+
| :number
|
|
240
|
+
| :email
|
|
241
|
+
| :url
|
|
242
|
+
| :phone
|
|
243
|
+
| :date
|
|
244
|
+
| :datetime
|
|
245
|
+
| :dropdown
|
|
246
|
+
| :boolean
|
|
247
|
+
|
|
248
|
+
module FieldType
|
|
249
|
+
extend Dodopayments::Internal::Type::Enum
|
|
250
|
+
|
|
251
|
+
TEXT: :text
|
|
252
|
+
NUMBER: :number
|
|
253
|
+
EMAIL: :email
|
|
254
|
+
URL: :url
|
|
255
|
+
PHONE: :phone
|
|
256
|
+
DATE: :date
|
|
257
|
+
DATETIME: :datetime
|
|
258
|
+
DROPDOWN: :dropdown
|
|
259
|
+
BOOLEAN: :boolean
|
|
260
|
+
|
|
261
|
+
def self?.values: -> ::Array[Dodopayments::Models::CheckoutSessionRequest::CustomField::field_type]
|
|
262
|
+
end
|
|
263
|
+
end
|
|
264
|
+
|
|
189
265
|
type customization =
|
|
190
266
|
{
|
|
191
267
|
force_language: String?,
|
|
@@ -1,17 +1,36 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type customer_list_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
created_at_gte: Time,
|
|
6
|
+
created_at_lte: Time,
|
|
7
|
+
email: String,
|
|
8
|
+
name: String,
|
|
9
|
+
page_number: Integer,
|
|
10
|
+
page_size: Integer
|
|
11
|
+
}
|
|
5
12
|
& Dodopayments::Internal::Type::request_parameters
|
|
6
13
|
|
|
7
14
|
class CustomerListParams < Dodopayments::Internal::Type::BaseModel
|
|
8
15
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
16
|
include Dodopayments::Internal::Type::RequestParameters
|
|
10
17
|
|
|
18
|
+
attr_reader created_at_gte: Time?
|
|
19
|
+
|
|
20
|
+
def created_at_gte=: (Time) -> Time
|
|
21
|
+
|
|
22
|
+
attr_reader created_at_lte: Time?
|
|
23
|
+
|
|
24
|
+
def created_at_lte=: (Time) -> Time
|
|
25
|
+
|
|
11
26
|
attr_reader email: String?
|
|
12
27
|
|
|
13
28
|
def email=: (String) -> String
|
|
14
29
|
|
|
30
|
+
attr_reader name: String?
|
|
31
|
+
|
|
32
|
+
def name=: (String) -> String
|
|
33
|
+
|
|
15
34
|
attr_reader page_number: Integer?
|
|
16
35
|
|
|
17
36
|
def page_number=: (Integer) -> Integer
|
|
@@ -21,14 +40,20 @@ module Dodopayments
|
|
|
21
40
|
def page_size=: (Integer) -> Integer
|
|
22
41
|
|
|
23
42
|
def initialize: (
|
|
43
|
+
?created_at_gte: Time,
|
|
44
|
+
?created_at_lte: Time,
|
|
24
45
|
?email: String,
|
|
46
|
+
?name: String,
|
|
25
47
|
?page_number: Integer,
|
|
26
48
|
?page_size: Integer,
|
|
27
49
|
?request_options: Dodopayments::request_opts
|
|
28
50
|
) -> void
|
|
29
51
|
|
|
30
52
|
def to_hash: -> {
|
|
53
|
+
created_at_gte: Time,
|
|
54
|
+
created_at_lte: Time,
|
|
31
55
|
email: String,
|
|
56
|
+
name: String,
|
|
32
57
|
page_number: Integer,
|
|
33
58
|
page_size: Integer,
|
|
34
59
|
request_options: Dodopayments::RequestOptions
|
|
@@ -1,13 +1,34 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type discount_list_params =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
active: bool,
|
|
6
|
+
code: String,
|
|
7
|
+
discount_type: Dodopayments::Models::discount_type,
|
|
8
|
+
page_number: Integer,
|
|
9
|
+
page_size: Integer,
|
|
10
|
+
product_id: String
|
|
11
|
+
}
|
|
5
12
|
& Dodopayments::Internal::Type::request_parameters
|
|
6
13
|
|
|
7
14
|
class DiscountListParams < Dodopayments::Internal::Type::BaseModel
|
|
8
15
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
9
16
|
include Dodopayments::Internal::Type::RequestParameters
|
|
10
17
|
|
|
18
|
+
attr_reader active: bool?
|
|
19
|
+
|
|
20
|
+
def active=: (bool) -> bool
|
|
21
|
+
|
|
22
|
+
attr_reader code: String?
|
|
23
|
+
|
|
24
|
+
def code=: (String) -> String
|
|
25
|
+
|
|
26
|
+
attr_reader discount_type: Dodopayments::Models::discount_type?
|
|
27
|
+
|
|
28
|
+
def discount_type=: (
|
|
29
|
+
Dodopayments::Models::discount_type
|
|
30
|
+
) -> Dodopayments::Models::discount_type
|
|
31
|
+
|
|
11
32
|
attr_reader page_number: Integer?
|
|
12
33
|
|
|
13
34
|
def page_number=: (Integer) -> Integer
|
|
@@ -16,15 +37,27 @@ module Dodopayments
|
|
|
16
37
|
|
|
17
38
|
def page_size=: (Integer) -> Integer
|
|
18
39
|
|
|
40
|
+
attr_reader product_id: String?
|
|
41
|
+
|
|
42
|
+
def product_id=: (String) -> String
|
|
43
|
+
|
|
19
44
|
def initialize: (
|
|
45
|
+
?active: bool,
|
|
46
|
+
?code: String,
|
|
47
|
+
?discount_type: Dodopayments::Models::discount_type,
|
|
20
48
|
?page_number: Integer,
|
|
21
49
|
?page_size: Integer,
|
|
50
|
+
?product_id: String,
|
|
22
51
|
?request_options: Dodopayments::request_opts
|
|
23
52
|
) -> void
|
|
24
53
|
|
|
25
54
|
def to_hash: -> {
|
|
55
|
+
active: bool,
|
|
56
|
+
code: String,
|
|
57
|
+
discount_type: Dodopayments::Models::discount_type,
|
|
26
58
|
page_number: Integer,
|
|
27
59
|
page_size: Integer,
|
|
60
|
+
product_id: String,
|
|
28
61
|
request_options: Dodopayments::RequestOptions
|
|
29
62
|
}
|
|
30
63
|
end
|
|
@@ -2,6 +2,8 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
type license_key_list_params =
|
|
4
4
|
{
|
|
5
|
+
created_at_gte: Time,
|
|
6
|
+
created_at_lte: Time,
|
|
5
7
|
customer_id: String,
|
|
6
8
|
page_number: Integer,
|
|
7
9
|
page_size: Integer,
|
|
@@ -14,6 +16,14 @@ module Dodopayments
|
|
|
14
16
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
15
17
|
include Dodopayments::Internal::Type::RequestParameters
|
|
16
18
|
|
|
19
|
+
attr_reader created_at_gte: Time?
|
|
20
|
+
|
|
21
|
+
def created_at_gte=: (Time) -> Time
|
|
22
|
+
|
|
23
|
+
attr_reader created_at_lte: Time?
|
|
24
|
+
|
|
25
|
+
def created_at_lte=: (Time) -> Time
|
|
26
|
+
|
|
17
27
|
attr_reader customer_id: String?
|
|
18
28
|
|
|
19
29
|
def customer_id=: (String) -> String
|
|
@@ -37,6 +47,8 @@ module Dodopayments
|
|
|
37
47
|
) -> Dodopayments::Models::LicenseKeyListParams::status
|
|
38
48
|
|
|
39
49
|
def initialize: (
|
|
50
|
+
?created_at_gte: Time,
|
|
51
|
+
?created_at_lte: Time,
|
|
40
52
|
?customer_id: String,
|
|
41
53
|
?page_number: Integer,
|
|
42
54
|
?page_size: Integer,
|
|
@@ -46,6 +58,8 @@ module Dodopayments
|
|
|
46
58
|
) -> void
|
|
47
59
|
|
|
48
60
|
def to_hash: -> {
|
|
61
|
+
created_at_gte: Time,
|
|
62
|
+
created_at_lte: Time,
|
|
49
63
|
customer_id: String,
|
|
50
64
|
page_number: Integer,
|
|
51
65
|
page_size: Integer,
|
|
@@ -22,6 +22,7 @@ module Dodopayments
|
|
|
22
22
|
card_network: String?,
|
|
23
23
|
card_type: String?,
|
|
24
24
|
checkout_session_id: String?,
|
|
25
|
+
custom_field_responses: ::Array[Dodopayments::Payment::CustomFieldResponse]?,
|
|
25
26
|
discount_id: String?,
|
|
26
27
|
error_code: String?,
|
|
27
28
|
error_message: String?,
|
|
@@ -79,6 +80,8 @@ module Dodopayments
|
|
|
79
80
|
|
|
80
81
|
attr_accessor checkout_session_id: String?
|
|
81
82
|
|
|
83
|
+
attr_accessor custom_field_responses: ::Array[Dodopayments::Payment::CustomFieldResponse]?
|
|
84
|
+
|
|
82
85
|
attr_accessor discount_id: String?
|
|
83
86
|
|
|
84
87
|
attr_accessor error_code: String?
|
|
@@ -128,6 +131,7 @@ module Dodopayments
|
|
|
128
131
|
?card_network: String?,
|
|
129
132
|
?card_type: String?,
|
|
130
133
|
?checkout_session_id: String?,
|
|
134
|
+
?custom_field_responses: ::Array[Dodopayments::Payment::CustomFieldResponse]?,
|
|
131
135
|
?discount_id: String?,
|
|
132
136
|
?error_code: String?,
|
|
133
137
|
?error_message: String?,
|
|
@@ -165,6 +169,7 @@ module Dodopayments
|
|
|
165
169
|
card_network: String?,
|
|
166
170
|
card_type: String?,
|
|
167
171
|
checkout_session_id: String?,
|
|
172
|
+
custom_field_responses: ::Array[Dodopayments::Payment::CustomFieldResponse]?,
|
|
168
173
|
discount_id: String?,
|
|
169
174
|
error_code: String?,
|
|
170
175
|
error_message: String?,
|
|
@@ -238,6 +243,18 @@ module Dodopayments
|
|
|
238
243
|
}
|
|
239
244
|
end
|
|
240
245
|
|
|
246
|
+
type custom_field_response = { key: String, value: String }
|
|
247
|
+
|
|
248
|
+
class CustomFieldResponse < Dodopayments::Internal::Type::BaseModel
|
|
249
|
+
attr_accessor key: String
|
|
250
|
+
|
|
251
|
+
attr_accessor value: String
|
|
252
|
+
|
|
253
|
+
def initialize: (key: String, value: String) -> void
|
|
254
|
+
|
|
255
|
+
def to_hash: -> { key: String, value: String }
|
|
256
|
+
end
|
|
257
|
+
|
|
241
258
|
type product_cart = { product_id: String, quantity: Integer }
|
|
242
259
|
|
|
243
260
|
class ProductCart < Dodopayments::Internal::Type::BaseModel
|
|
@@ -10,6 +10,8 @@ module Dodopayments
|
|
|
10
10
|
metadata: ::Hash[Symbol, String],
|
|
11
11
|
payment_id: String,
|
|
12
12
|
total_amount: Integer,
|
|
13
|
+
invoice_id: String?,
|
|
14
|
+
invoice_url: String?,
|
|
13
15
|
payment_method: String?,
|
|
14
16
|
payment_method_type: String?,
|
|
15
17
|
status: Dodopayments::Models::intent_status?,
|
|
@@ -33,6 +35,10 @@ module Dodopayments
|
|
|
33
35
|
|
|
34
36
|
attr_accessor total_amount: Integer
|
|
35
37
|
|
|
38
|
+
attr_accessor invoice_id: String?
|
|
39
|
+
|
|
40
|
+
attr_accessor invoice_url: String?
|
|
41
|
+
|
|
36
42
|
attr_accessor payment_method: String?
|
|
37
43
|
|
|
38
44
|
attr_accessor payment_method_type: String?
|
|
@@ -50,6 +56,8 @@ module Dodopayments
|
|
|
50
56
|
metadata: ::Hash[Symbol, String],
|
|
51
57
|
payment_id: String,
|
|
52
58
|
total_amount: Integer,
|
|
59
|
+
?invoice_id: String?,
|
|
60
|
+
?invoice_url: String?,
|
|
53
61
|
?payment_method: String?,
|
|
54
62
|
?payment_method_type: String?,
|
|
55
63
|
?status: Dodopayments::Models::intent_status?,
|
|
@@ -65,6 +73,8 @@ module Dodopayments
|
|
|
65
73
|
metadata: ::Hash[Symbol, String],
|
|
66
74
|
payment_id: String,
|
|
67
75
|
total_amount: Integer,
|
|
76
|
+
invoice_id: String?,
|
|
77
|
+
invoice_url: String?,
|
|
68
78
|
payment_method: String?,
|
|
69
79
|
payment_method_type: String?,
|
|
70
80
|
status: Dodopayments::Models::intent_status?,
|
|
@@ -25,6 +25,7 @@ module Dodopayments
|
|
|
25
25
|
tax_inclusive: bool,
|
|
26
26
|
trial_period_days: Integer,
|
|
27
27
|
cancelled_at: Time?,
|
|
28
|
+
custom_field_responses: ::Array[Dodopayments::Subscription::CustomFieldResponse]?,
|
|
28
29
|
discount_cycles_remaining: Integer?,
|
|
29
30
|
discount_id: String?,
|
|
30
31
|
expires_at: Time?,
|
|
@@ -79,6 +80,8 @@ module Dodopayments
|
|
|
79
80
|
|
|
80
81
|
attr_accessor cancelled_at: Time?
|
|
81
82
|
|
|
83
|
+
attr_accessor custom_field_responses: ::Array[Dodopayments::Subscription::CustomFieldResponse]?
|
|
84
|
+
|
|
82
85
|
attr_accessor discount_cycles_remaining: Integer?
|
|
83
86
|
|
|
84
87
|
attr_accessor discount_id: String?
|
|
@@ -113,6 +116,7 @@ module Dodopayments
|
|
|
113
116
|
tax_inclusive: bool,
|
|
114
117
|
trial_period_days: Integer,
|
|
115
118
|
?cancelled_at: Time?,
|
|
119
|
+
?custom_field_responses: ::Array[Dodopayments::Subscription::CustomFieldResponse]?,
|
|
116
120
|
?discount_cycles_remaining: Integer?,
|
|
117
121
|
?discount_id: String?,
|
|
118
122
|
?expires_at: Time?,
|
|
@@ -144,6 +148,7 @@ module Dodopayments
|
|
|
144
148
|
tax_inclusive: bool,
|
|
145
149
|
trial_period_days: Integer,
|
|
146
150
|
cancelled_at: Time?,
|
|
151
|
+
custom_field_responses: ::Array[Dodopayments::Subscription::CustomFieldResponse]?,
|
|
147
152
|
discount_cycles_remaining: Integer?,
|
|
148
153
|
discount_id: String?,
|
|
149
154
|
expires_at: Time?,
|
|
@@ -197,6 +202,18 @@ module Dodopayments
|
|
|
197
202
|
description: String?
|
|
198
203
|
}
|
|
199
204
|
end
|
|
205
|
+
|
|
206
|
+
type custom_field_response = { key: String, value: String }
|
|
207
|
+
|
|
208
|
+
class CustomFieldResponse < Dodopayments::Internal::Type::BaseModel
|
|
209
|
+
attr_accessor key: String
|
|
210
|
+
|
|
211
|
+
attr_accessor value: String
|
|
212
|
+
|
|
213
|
+
def initialize: (key: String, value: String) -> void
|
|
214
|
+
|
|
215
|
+
def to_hash: -> { key: String, value: String }
|
|
216
|
+
end
|
|
200
217
|
end
|
|
201
218
|
end
|
|
202
219
|
end
|
|
@@ -26,6 +26,7 @@ module Dodopayments
|
|
|
26
26
|
discount_cycles_remaining: Integer?,
|
|
27
27
|
discount_id: String?,
|
|
28
28
|
payment_method_id: String?,
|
|
29
|
+
product_name: String?,
|
|
29
30
|
tax_id: String?
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -78,6 +79,8 @@ module Dodopayments
|
|
|
78
79
|
|
|
79
80
|
attr_accessor payment_method_id: String?
|
|
80
81
|
|
|
82
|
+
attr_accessor product_name: String?
|
|
83
|
+
|
|
81
84
|
attr_accessor tax_id: String?
|
|
82
85
|
|
|
83
86
|
def initialize: (
|
|
@@ -105,6 +108,7 @@ module Dodopayments
|
|
|
105
108
|
?discount_cycles_remaining: Integer?,
|
|
106
109
|
?discount_id: String?,
|
|
107
110
|
?payment_method_id: String?,
|
|
111
|
+
?product_name: String?,
|
|
108
112
|
?tax_id: String?
|
|
109
113
|
) -> void
|
|
110
114
|
|
|
@@ -133,6 +137,7 @@ module Dodopayments
|
|
|
133
137
|
discount_cycles_remaining: Integer?,
|
|
134
138
|
discount_id: String?,
|
|
135
139
|
payment_method_id: String?,
|
|
140
|
+
product_name: String?,
|
|
136
141
|
tax_id: String?
|
|
137
142
|
}
|
|
138
143
|
end
|
|
@@ -7,6 +7,7 @@ module Dodopayments
|
|
|
7
7
|
?billing_address: Dodopayments::CheckoutSessionRequest::BillingAddress?,
|
|
8
8
|
?billing_currency: Dodopayments::Models::currency?,
|
|
9
9
|
?confirm: bool,
|
|
10
|
+
?custom_fields: ::Array[Dodopayments::CheckoutSessionRequest::CustomField]?,
|
|
10
11
|
?customer: Dodopayments::Models::customer_request?,
|
|
11
12
|
?customization: Dodopayments::CheckoutSessionRequest::Customization,
|
|
12
13
|
?discount_code: String?,
|
|
@@ -34,6 +35,7 @@ module Dodopayments
|
|
|
34
35
|
?billing_address: Dodopayments::CheckoutSessionRequest::BillingAddress?,
|
|
35
36
|
?billing_currency: Dodopayments::Models::currency?,
|
|
36
37
|
?confirm: bool,
|
|
38
|
+
?custom_fields: ::Array[Dodopayments::CheckoutSessionRequest::CustomField]?,
|
|
37
39
|
?customer: Dodopayments::Models::customer_request?,
|
|
38
40
|
?customization: Dodopayments::CheckoutSessionRequest::Customization,
|
|
39
41
|
?discount_code: String?,
|
|
@@ -27,7 +27,10 @@ module Dodopayments
|
|
|
27
27
|
) -> Dodopayments::Customer
|
|
28
28
|
|
|
29
29
|
def list: (
|
|
30
|
+
?created_at_gte: Time,
|
|
31
|
+
?created_at_lte: Time,
|
|
30
32
|
?email: String,
|
|
33
|
+
?name: String,
|
|
31
34
|
?page_number: Integer,
|
|
32
35
|
?page_size: Integer,
|
|
33
36
|
?request_options: Dodopayments::request_opts
|
|
@@ -32,8 +32,12 @@ module Dodopayments
|
|
|
32
32
|
) -> Dodopayments::Discount
|
|
33
33
|
|
|
34
34
|
def list: (
|
|
35
|
+
?active: bool,
|
|
36
|
+
?code: String,
|
|
37
|
+
?discount_type: Dodopayments::Models::discount_type,
|
|
35
38
|
?page_number: Integer,
|
|
36
39
|
?page_size: Integer,
|
|
40
|
+
?product_id: String,
|
|
37
41
|
?request_options: Dodopayments::request_opts
|
|
38
42
|
) -> Dodopayments::Internal::DefaultPageNumberPagination[Dodopayments::Discount]
|
|
39
43
|
|
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.
|
|
4
|
+
version: 1.74.0
|
|
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-01-
|
|
11
|
+
date: 2026-01-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|