dodopayments 1.71.1 → 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 +21 -0
- data/README.md +1 -1
- data/lib/dodopayments/models/checkout_session_preview_params.rb +14 -0
- data/lib/dodopayments/models/checkout_session_preview_response.rb +426 -0
- data/lib/dodopayments/models/checkout_session_request.rb +94 -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/discount_retrieve_by_code_params.rb +14 -0
- data/lib/dodopayments/models/license_key_list_params.rb +17 -1
- data/lib/dodopayments/models/payment.rb +40 -1
- data/lib/dodopayments/models/payment_list_response.rb +28 -1
- data/lib/dodopayments/models/payment_method_types.rb +13 -98
- data/lib/dodopayments/models/product.rb +9 -1
- data/lib/dodopayments/models/subscription.rb +32 -1
- data/lib/dodopayments/models/subscription_change_plan_params.rb +10 -1
- data/lib/dodopayments/models/subscription_list_response.rb +9 -1
- data/lib/dodopayments/models/subscription_preview_change_plan_params.rb +10 -1
- data/lib/dodopayments/models.rb +4 -0
- data/lib/dodopayments/resources/checkout_sessions.rb +64 -1
- data/lib/dodopayments/resources/customers.rb +7 -1
- data/lib/dodopayments/resources/discounts.rb +31 -1
- data/lib/dodopayments/resources/license_keys.rb +5 -1
- data/lib/dodopayments/resources/subscriptions.rb +6 -2
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +3 -0
- data/rbi/dodopayments/models/checkout_session_preview_params.rbi +32 -0
- data/rbi/dodopayments/models/checkout_session_preview_response.rbi +616 -0
- data/rbi/dodopayments/models/checkout_session_request.rbi +183 -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/discount_retrieve_by_code_params.rbi +32 -0
- data/rbi/dodopayments/models/license_key_list_params.rbi +22 -0
- data/rbi/dodopayments/models/payment.rbi +54 -0
- data/rbi/dodopayments/models/payment_list_response.rbi +16 -0
- data/rbi/dodopayments/models/payment_method_types.rbi +18 -186
- data/rbi/dodopayments/models/product.rbi +11 -3
- data/rbi/dodopayments/models/subscription.rbi +50 -0
- data/rbi/dodopayments/models/subscription_change_plan_params.rbi +10 -0
- data/rbi/dodopayments/models/subscription_list_response.rbi +8 -0
- data/rbi/dodopayments/models/subscription_preview_change_plan_params.rbi +10 -0
- data/rbi/dodopayments/models.rbi +6 -0
- data/rbi/dodopayments/resources/checkout_sessions.rbi +104 -0
- data/rbi/dodopayments/resources/customers.rbi +9 -0
- data/rbi/dodopayments/resources/discounts.rbi +28 -0
- data/rbi/dodopayments/resources/license_keys.rbi +6 -0
- data/rbi/dodopayments/resources/subscriptions.rbi +8 -0
- data/sig/dodopayments/models/checkout_session_preview_params.rbs +15 -0
- data/sig/dodopayments/models/checkout_session_preview_response.rbs +330 -0
- data/sig/dodopayments/models/checkout_session_request.rbs +81 -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/discount_retrieve_by_code_params.rbs +15 -0
- data/sig/dodopayments/models/license_key_list_params.rbs +14 -0
- data/sig/dodopayments/models/payment.rbs +22 -0
- data/sig/dodopayments/models/payment_list_response.rbs +10 -0
- data/sig/dodopayments/models/payment_method_types.rbs +26 -196
- data/sig/dodopayments/models/product.rbs +8 -3
- data/sig/dodopayments/models/subscription.rbs +17 -0
- data/sig/dodopayments/models/subscription_change_plan_params.rbs +6 -1
- data/sig/dodopayments/models/subscription_list_response.rbs +5 -0
- data/sig/dodopayments/models/subscription_preview_change_plan_params.rbs +6 -1
- data/sig/dodopayments/models.rbs +4 -0
- data/sig/dodopayments/resources/checkout_sessions.rbs +25 -0
- data/sig/dodopayments/resources/customers.rbs +3 -0
- data/sig/dodopayments/resources/discounts.rbs +9 -0
- data/sig/dodopayments/resources/license_keys.rbs +2 -0
- data/sig/dodopayments/resources/subscriptions.rbs +2 -0
- metadata +11 -2
|
@@ -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
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type discount_retrieve_by_code_params =
|
|
4
|
+
{ } & Dodopayments::Internal::Type::request_parameters
|
|
5
|
+
|
|
6
|
+
class DiscountRetrieveByCodeParams < 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
|
|
@@ -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,10 +22,12 @@ 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?,
|
|
28
29
|
invoice_id: String?,
|
|
30
|
+
invoice_url: String?,
|
|
29
31
|
payment_link: String?,
|
|
30
32
|
payment_method: String?,
|
|
31
33
|
payment_method_type: String?,
|
|
@@ -78,6 +80,8 @@ module Dodopayments
|
|
|
78
80
|
|
|
79
81
|
attr_accessor checkout_session_id: String?
|
|
80
82
|
|
|
83
|
+
attr_accessor custom_field_responses: ::Array[Dodopayments::Payment::CustomFieldResponse]?
|
|
84
|
+
|
|
81
85
|
attr_accessor discount_id: String?
|
|
82
86
|
|
|
83
87
|
attr_accessor error_code: String?
|
|
@@ -86,6 +90,8 @@ module Dodopayments
|
|
|
86
90
|
|
|
87
91
|
attr_accessor invoice_id: String?
|
|
88
92
|
|
|
93
|
+
attr_accessor invoice_url: String?
|
|
94
|
+
|
|
89
95
|
attr_accessor payment_link: String?
|
|
90
96
|
|
|
91
97
|
attr_accessor payment_method: String?
|
|
@@ -125,10 +131,12 @@ module Dodopayments
|
|
|
125
131
|
?card_network: String?,
|
|
126
132
|
?card_type: String?,
|
|
127
133
|
?checkout_session_id: String?,
|
|
134
|
+
?custom_field_responses: ::Array[Dodopayments::Payment::CustomFieldResponse]?,
|
|
128
135
|
?discount_id: String?,
|
|
129
136
|
?error_code: String?,
|
|
130
137
|
?error_message: String?,
|
|
131
138
|
?invoice_id: String?,
|
|
139
|
+
?invoice_url: String?,
|
|
132
140
|
?payment_link: String?,
|
|
133
141
|
?payment_method: String?,
|
|
134
142
|
?payment_method_type: String?,
|
|
@@ -161,10 +169,12 @@ module Dodopayments
|
|
|
161
169
|
card_network: String?,
|
|
162
170
|
card_type: String?,
|
|
163
171
|
checkout_session_id: String?,
|
|
172
|
+
custom_field_responses: ::Array[Dodopayments::Payment::CustomFieldResponse]?,
|
|
164
173
|
discount_id: String?,
|
|
165
174
|
error_code: String?,
|
|
166
175
|
error_message: String?,
|
|
167
176
|
invoice_id: String?,
|
|
177
|
+
invoice_url: String?,
|
|
168
178
|
payment_link: String?,
|
|
169
179
|
payment_method: String?,
|
|
170
180
|
payment_method_type: String?,
|
|
@@ -233,6 +243,18 @@ module Dodopayments
|
|
|
233
243
|
}
|
|
234
244
|
end
|
|
235
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
|
+
|
|
236
258
|
type product_cart = { product_id: String, quantity: Integer }
|
|
237
259
|
|
|
238
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?,
|
|
@@ -1,218 +1,48 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type payment_method_types =
|
|
4
|
-
:
|
|
5
|
-
| :
|
|
6
|
-
| :
|
|
7
|
-
| :
|
|
8
|
-
| :ali_pay
|
|
9
|
-
| :ali_pay_hk
|
|
10
|
-
| :alma
|
|
11
|
-
| :amazon_pay
|
|
4
|
+
:credit
|
|
5
|
+
| :debit
|
|
6
|
+
| :upi_collect
|
|
7
|
+
| :upi_intent
|
|
12
8
|
| :apple_pay
|
|
13
|
-
| :atome
|
|
14
|
-
| :bacs
|
|
15
|
-
| :bancontact_card
|
|
16
|
-
| :becs
|
|
17
|
-
| :benefit
|
|
18
|
-
| :bizum
|
|
19
|
-
| :blik
|
|
20
|
-
| :boleto
|
|
21
|
-
| :bca_bank_transfer
|
|
22
|
-
| :bni_va
|
|
23
|
-
| :bri_va
|
|
24
|
-
| :card_redirect
|
|
25
|
-
| :cimb_va
|
|
26
|
-
| :classic
|
|
27
|
-
| :credit
|
|
28
|
-
| :crypto_currency
|
|
29
9
|
| :cashapp
|
|
30
|
-
| :dana
|
|
31
|
-
| :danamon_va
|
|
32
|
-
| :debit
|
|
33
|
-
| :duit_now
|
|
34
|
-
| :efecty
|
|
35
|
-
| :eft
|
|
36
|
-
| :eps
|
|
37
|
-
| :fps
|
|
38
|
-
| :evoucher
|
|
39
|
-
| :giropay
|
|
40
|
-
| :givex
|
|
41
10
|
| :google_pay
|
|
42
|
-
| :go_pay
|
|
43
|
-
| :gcash
|
|
44
|
-
| :ideal
|
|
45
|
-
| :interac
|
|
46
|
-
| :indomaret
|
|
47
|
-
| :klarna
|
|
48
|
-
| :kakao_pay
|
|
49
|
-
| :local_bank_redirect
|
|
50
|
-
| :mandiri_va
|
|
51
|
-
| :knet
|
|
52
|
-
| :mb_way
|
|
53
|
-
| :mobile_pay
|
|
54
|
-
| :momo
|
|
55
|
-
| :momo_atm
|
|
56
11
|
| :multibanco
|
|
57
|
-
| :
|
|
58
|
-
| :
|
|
59
|
-
| :
|
|
60
|
-
| :online_banking_fpx
|
|
61
|
-
| :online_banking_poland
|
|
62
|
-
| :online_banking_slovakia
|
|
63
|
-
| :oxxo
|
|
64
|
-
| :pago_efectivo
|
|
65
|
-
| :permata_bank_transfer
|
|
66
|
-
| :open_banking_uk
|
|
67
|
-
| :pay_bright
|
|
68
|
-
| :paypal
|
|
69
|
-
| :paze
|
|
70
|
-
| :pix
|
|
71
|
-
| :pay_safe_card
|
|
12
|
+
| :bancontact_card
|
|
13
|
+
| :eps
|
|
14
|
+
| :ideal
|
|
72
15
|
| :przelewy24
|
|
73
|
-
| :
|
|
74
|
-
| :
|
|
75
|
-
| :
|
|
76
|
-
| :red_pagos
|
|
77
|
-
| :samsung_pay
|
|
16
|
+
| :paypal
|
|
17
|
+
| :affirm
|
|
18
|
+
| :klarna
|
|
78
19
|
| :sepa
|
|
79
|
-
| :
|
|
80
|
-
| :
|
|
81
|
-
| :
|
|
82
|
-
| :touch_n_go
|
|
83
|
-
| :trustly
|
|
84
|
-
| :twint
|
|
85
|
-
| :upi_collect
|
|
86
|
-
| :upi_intent
|
|
87
|
-
| :vipps
|
|
88
|
-
| :viet_qr
|
|
89
|
-
| :venmo
|
|
90
|
-
| :walley
|
|
91
|
-
| :we_chat_pay
|
|
92
|
-
| :seven_eleven
|
|
93
|
-
| :lawson
|
|
94
|
-
| :mini_stop
|
|
95
|
-
| :family_mart
|
|
96
|
-
| :seicomart
|
|
97
|
-
| :pay_easy
|
|
98
|
-
| :local_bank_transfer
|
|
99
|
-
| :mifinity
|
|
100
|
-
| :open_banking_pis
|
|
101
|
-
| :direct_carrier_billing
|
|
102
|
-
| :instant_bank_transfer
|
|
103
|
-
| :billie
|
|
104
|
-
| :zip
|
|
105
|
-
| :revolut_pay
|
|
106
|
-
| :naver_pay
|
|
107
|
-
| :payco
|
|
20
|
+
| :ach
|
|
21
|
+
| :amazon_pay
|
|
22
|
+
| :afterpay_clearpay
|
|
108
23
|
|
|
109
24
|
module PaymentMethodTypes
|
|
110
25
|
extend Dodopayments::Internal::Type::Enum
|
|
111
26
|
|
|
112
|
-
ACH: :ach
|
|
113
|
-
AFFIRM: :affirm
|
|
114
|
-
AFTERPAY_CLEARPAY: :afterpay_clearpay
|
|
115
|
-
ALFAMART: :alfamart
|
|
116
|
-
ALI_PAY: :ali_pay
|
|
117
|
-
ALI_PAY_HK: :ali_pay_hk
|
|
118
|
-
ALMA: :alma
|
|
119
|
-
AMAZON_PAY: :amazon_pay
|
|
120
|
-
APPLE_PAY: :apple_pay
|
|
121
|
-
ATOME: :atome
|
|
122
|
-
BACS: :bacs
|
|
123
|
-
BANCONTACT_CARD: :bancontact_card
|
|
124
|
-
BECS: :becs
|
|
125
|
-
BENEFIT: :benefit
|
|
126
|
-
BIZUM: :bizum
|
|
127
|
-
BLIK: :blik
|
|
128
|
-
BOLETO: :boleto
|
|
129
|
-
BCA_BANK_TRANSFER: :bca_bank_transfer
|
|
130
|
-
BNI_VA: :bni_va
|
|
131
|
-
BRI_VA: :bri_va
|
|
132
|
-
CARD_REDIRECT: :card_redirect
|
|
133
|
-
CIMB_VA: :cimb_va
|
|
134
|
-
CLASSIC: :classic
|
|
135
27
|
CREDIT: :credit
|
|
136
|
-
CRYPTO_CURRENCY: :crypto_currency
|
|
137
|
-
CASHAPP: :cashapp
|
|
138
|
-
DANA: :dana
|
|
139
|
-
DANAMON_VA: :danamon_va
|
|
140
28
|
DEBIT: :debit
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
FPS: :fps
|
|
146
|
-
EVOUCHER: :evoucher
|
|
147
|
-
GIROPAY: :giropay
|
|
148
|
-
GIVEX: :givex
|
|
29
|
+
UPI_COLLECT: :upi_collect
|
|
30
|
+
UPI_INTENT: :upi_intent
|
|
31
|
+
APPLE_PAY: :apple_pay
|
|
32
|
+
CASHAPP: :cashapp
|
|
149
33
|
GOOGLE_PAY: :google_pay
|
|
150
|
-
GO_PAY: :go_pay
|
|
151
|
-
GCASH: :gcash
|
|
152
|
-
IDEAL: :ideal
|
|
153
|
-
INTERAC: :interac
|
|
154
|
-
INDOMARET: :indomaret
|
|
155
|
-
KLARNA: :klarna
|
|
156
|
-
KAKAO_PAY: :kakao_pay
|
|
157
|
-
LOCAL_BANK_REDIRECT: :local_bank_redirect
|
|
158
|
-
MANDIRI_VA: :mandiri_va
|
|
159
|
-
KNET: :knet
|
|
160
|
-
MB_WAY: :mb_way
|
|
161
|
-
MOBILE_PAY: :mobile_pay
|
|
162
|
-
MOMO: :momo
|
|
163
|
-
MOMO_ATM: :momo_atm
|
|
164
34
|
MULTIBANCO: :multibanco
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
ONLINE_BANKING_FPX: :online_banking_fpx
|
|
169
|
-
ONLINE_BANKING_POLAND: :online_banking_poland
|
|
170
|
-
ONLINE_BANKING_SLOVAKIA: :online_banking_slovakia
|
|
171
|
-
OXXO: :oxxo
|
|
172
|
-
PAGO_EFECTIVO: :pago_efectivo
|
|
173
|
-
PERMATA_BANK_TRANSFER: :permata_bank_transfer
|
|
174
|
-
OPEN_BANKING_UK: :open_banking_uk
|
|
175
|
-
PAY_BRIGHT: :pay_bright
|
|
176
|
-
PAYPAL: :paypal
|
|
177
|
-
PAZE: :paze
|
|
178
|
-
PIX: :pix
|
|
179
|
-
PAY_SAFE_CARD: :pay_safe_card
|
|
35
|
+
BANCONTACT_CARD: :bancontact_card
|
|
36
|
+
EPS: :eps
|
|
37
|
+
IDEAL: :ideal
|
|
180
38
|
PRZELEWY24: :przelewy24
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
RED_PAGOS: :red_pagos
|
|
185
|
-
SAMSUNG_PAY: :samsung_pay
|
|
39
|
+
PAYPAL: :paypal
|
|
40
|
+
AFFIRM: :affirm
|
|
41
|
+
KLARNA: :klarna
|
|
186
42
|
SEPA: :sepa
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
TOUCH_N_GO: :touch_n_go
|
|
191
|
-
TRUSTLY: :trustly
|
|
192
|
-
TWINT: :twint
|
|
193
|
-
UPI_COLLECT: :upi_collect
|
|
194
|
-
UPI_INTENT: :upi_intent
|
|
195
|
-
VIPPS: :vipps
|
|
196
|
-
VIET_QR: :viet_qr
|
|
197
|
-
VENMO: :venmo
|
|
198
|
-
WALLEY: :walley
|
|
199
|
-
WE_CHAT_PAY: :we_chat_pay
|
|
200
|
-
SEVEN_ELEVEN: :seven_eleven
|
|
201
|
-
LAWSON: :lawson
|
|
202
|
-
MINI_STOP: :mini_stop
|
|
203
|
-
FAMILY_MART: :family_mart
|
|
204
|
-
SEICOMART: :seicomart
|
|
205
|
-
PAY_EASY: :pay_easy
|
|
206
|
-
LOCAL_BANK_TRANSFER: :local_bank_transfer
|
|
207
|
-
MIFINITY: :mifinity
|
|
208
|
-
OPEN_BANKING_PIS: :open_banking_pis
|
|
209
|
-
DIRECT_CARRIER_BILLING: :direct_carrier_billing
|
|
210
|
-
INSTANT_BANK_TRANSFER: :instant_bank_transfer
|
|
211
|
-
BILLIE: :billie
|
|
212
|
-
ZIP: :zip
|
|
213
|
-
REVOLUT_PAY: :revolut_pay
|
|
214
|
-
NAVER_PAY: :naver_pay
|
|
215
|
-
PAYCO: :payco
|
|
43
|
+
ACH: :ach
|
|
44
|
+
AMAZON_PAY: :amazon_pay
|
|
45
|
+
AFTERPAY_CLEARPAY: :afterpay_clearpay
|
|
216
46
|
|
|
217
47
|
def self?.values: -> ::Array[Dodopayments::Models::payment_method_types]
|
|
218
48
|
end
|
|
@@ -19,7 +19,8 @@ module Dodopayments
|
|
|
19
19
|
license_key_activation_message: String?,
|
|
20
20
|
license_key_activations_limit: Integer?,
|
|
21
21
|
license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
22
|
-
name: String
|
|
22
|
+
name: String?,
|
|
23
|
+
product_collection_id: String?
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
class Product < Dodopayments::Internal::Type::BaseModel
|
|
@@ -59,6 +60,8 @@ module Dodopayments
|
|
|
59
60
|
|
|
60
61
|
attr_accessor name: String?
|
|
61
62
|
|
|
63
|
+
attr_accessor product_collection_id: String?
|
|
64
|
+
|
|
62
65
|
def initialize: (
|
|
63
66
|
brand_id: String,
|
|
64
67
|
business_id: String,
|
|
@@ -77,7 +80,8 @@ module Dodopayments
|
|
|
77
80
|
?license_key_activation_message: String?,
|
|
78
81
|
?license_key_activations_limit: Integer?,
|
|
79
82
|
?license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
80
|
-
?name: String
|
|
83
|
+
?name: String?,
|
|
84
|
+
?product_collection_id: String?
|
|
81
85
|
) -> void
|
|
82
86
|
|
|
83
87
|
def to_hash: -> {
|
|
@@ -98,7 +102,8 @@ module Dodopayments
|
|
|
98
102
|
license_key_activation_message: String?,
|
|
99
103
|
license_key_activations_limit: Integer?,
|
|
100
104
|
license_key_duration: Dodopayments::LicenseKeyDuration?,
|
|
101
|
-
name: String
|
|
105
|
+
name: String?,
|
|
106
|
+
product_collection_id: String?
|
|
102
107
|
}
|
|
103
108
|
|
|
104
109
|
type digital_product_delivery =
|
|
@@ -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
|
|
@@ -5,7 +5,8 @@ module Dodopayments
|
|
|
5
5
|
product_id: String,
|
|
6
6
|
proration_billing_mode: Dodopayments::Models::SubscriptionChangePlanParams::proration_billing_mode,
|
|
7
7
|
quantity: Integer,
|
|
8
|
-
addons: ::Array[Dodopayments::AttachAddon]
|
|
8
|
+
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
9
|
+
metadata: ::Hash[Symbol, String]?
|
|
9
10
|
}
|
|
10
11
|
& Dodopayments::Internal::Type::request_parameters
|
|
11
12
|
|
|
@@ -21,11 +22,14 @@ module Dodopayments
|
|
|
21
22
|
|
|
22
23
|
attr_accessor addons: ::Array[Dodopayments::AttachAddon]?
|
|
23
24
|
|
|
25
|
+
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
26
|
+
|
|
24
27
|
def initialize: (
|
|
25
28
|
product_id: String,
|
|
26
29
|
proration_billing_mode: Dodopayments::Models::SubscriptionChangePlanParams::proration_billing_mode,
|
|
27
30
|
quantity: Integer,
|
|
28
31
|
?addons: ::Array[Dodopayments::AttachAddon]?,
|
|
32
|
+
?metadata: ::Hash[Symbol, String]?,
|
|
29
33
|
?request_options: Dodopayments::request_opts
|
|
30
34
|
) -> void
|
|
31
35
|
|
|
@@ -34,6 +38,7 @@ module Dodopayments
|
|
|
34
38
|
proration_billing_mode: Dodopayments::Models::SubscriptionChangePlanParams::proration_billing_mode,
|
|
35
39
|
quantity: Integer,
|
|
36
40
|
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
41
|
+
metadata: ::Hash[Symbol, String]?,
|
|
37
42
|
request_options: Dodopayments::RequestOptions
|
|
38
43
|
}
|
|
39
44
|
|
|
@@ -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
|
|
@@ -5,7 +5,8 @@ module Dodopayments
|
|
|
5
5
|
product_id: String,
|
|
6
6
|
proration_billing_mode: Dodopayments::Models::SubscriptionPreviewChangePlanParams::proration_billing_mode,
|
|
7
7
|
quantity: Integer,
|
|
8
|
-
addons: ::Array[Dodopayments::AttachAddon]
|
|
8
|
+
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
9
|
+
metadata: ::Hash[Symbol, String]?
|
|
9
10
|
}
|
|
10
11
|
& Dodopayments::Internal::Type::request_parameters
|
|
11
12
|
|
|
@@ -21,11 +22,14 @@ module Dodopayments
|
|
|
21
22
|
|
|
22
23
|
attr_accessor addons: ::Array[Dodopayments::AttachAddon]?
|
|
23
24
|
|
|
25
|
+
attr_accessor metadata: ::Hash[Symbol, String]?
|
|
26
|
+
|
|
24
27
|
def initialize: (
|
|
25
28
|
product_id: String,
|
|
26
29
|
proration_billing_mode: Dodopayments::Models::SubscriptionPreviewChangePlanParams::proration_billing_mode,
|
|
27
30
|
quantity: Integer,
|
|
28
31
|
?addons: ::Array[Dodopayments::AttachAddon]?,
|
|
32
|
+
?metadata: ::Hash[Symbol, String]?,
|
|
29
33
|
?request_options: Dodopayments::request_opts
|
|
30
34
|
) -> void
|
|
31
35
|
|
|
@@ -34,6 +38,7 @@ module Dodopayments
|
|
|
34
38
|
proration_billing_mode: Dodopayments::Models::SubscriptionPreviewChangePlanParams::proration_billing_mode,
|
|
35
39
|
quantity: Integer,
|
|
36
40
|
addons: ::Array[Dodopayments::AttachAddon]?,
|
|
41
|
+
metadata: ::Hash[Symbol, String]?,
|
|
37
42
|
request_options: Dodopayments::RequestOptions
|
|
38
43
|
}
|
|
39
44
|
|
data/sig/dodopayments/models.rbs
CHANGED
|
@@ -35,6 +35,8 @@ module Dodopayments
|
|
|
35
35
|
|
|
36
36
|
class CheckoutSessionCreateParams = Dodopayments::Models::CheckoutSessionCreateParams
|
|
37
37
|
|
|
38
|
+
class CheckoutSessionPreviewParams = Dodopayments::Models::CheckoutSessionPreviewParams
|
|
39
|
+
|
|
38
40
|
class CheckoutSessionRequest = Dodopayments::Models::CheckoutSessionRequest
|
|
39
41
|
|
|
40
42
|
class CheckoutSessionResponse = Dodopayments::Models::CheckoutSessionResponse
|
|
@@ -77,6 +79,8 @@ module Dodopayments
|
|
|
77
79
|
|
|
78
80
|
class DiscountListParams = Dodopayments::Models::DiscountListParams
|
|
79
81
|
|
|
82
|
+
class DiscountRetrieveByCodeParams = Dodopayments::Models::DiscountRetrieveByCodeParams
|
|
83
|
+
|
|
80
84
|
class DiscountRetrieveParams = Dodopayments::Models::DiscountRetrieveParams
|
|
81
85
|
|
|
82
86
|
module DiscountType = Dodopayments::Models::DiscountType
|