dodopayments 2.33.0 → 2.34.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/internal/type/enum.rb +11 -11
- data/lib/dodopayments/models/charge_type.rb +33 -0
- data/lib/dodopayments/models/checkout_session_preview_response.rb +12 -1
- data/lib/dodopayments/models/invoices/payment_retrieve_params.rb +14 -1
- data/lib/dodopayments/models/invoices/payment_retrieve_payout_params.rb +14 -1
- data/lib/dodopayments/models/invoices/payment_retrieve_refund_params.rb +14 -1
- data/lib/dodopayments/models/payment.rb +57 -8
- data/lib/dodopayments/models/payment_list_response.rb +63 -6
- data/lib/dodopayments/models/price.rb +56 -20
- data/lib/dodopayments/models/product_collections/group_update_params.rb +2 -1
- data/lib/dodopayments/models/subscription_service_period.rb +12 -1
- data/lib/dodopayments/models.rb +2 -0
- data/lib/dodopayments/resources/invoices/payments.rb +30 -6
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +1 -0
- data/rbi/dodopayments/models/charge_type.rbi +37 -0
- data/rbi/dodopayments/models/checkout_session_preview_response.rbi +14 -0
- data/rbi/dodopayments/models/invoices/payment_retrieve_params.rbi +17 -1
- data/rbi/dodopayments/models/invoices/payment_retrieve_payout_params.rbi +21 -2
- data/rbi/dodopayments/models/invoices/payment_retrieve_refund_params.rbi +21 -2
- data/rbi/dodopayments/models/payment.rbi +70 -8
- data/rbi/dodopayments/models/payment_list_response.rbi +76 -6
- data/rbi/dodopayments/models/price.rbi +96 -24
- data/rbi/dodopayments/models/product_collections/group_update_params.rbi +4 -2
- data/rbi/dodopayments/models/subscription_service_period.rbi +24 -4
- data/rbi/dodopayments/models.rbi +2 -0
- data/rbi/dodopayments/resources/invoices/payments.rbi +12 -0
- data/rbi/dodopayments/resources/product_collections/groups.rbi +2 -1
- data/sig/dodopayments/models/charge_type.rbs +16 -0
- data/sig/dodopayments/models/checkout_session_preview_response.rbs +5 -0
- data/sig/dodopayments/models/invoices/payment_retrieve_params.rbs +7 -1
- data/sig/dodopayments/models/invoices/payment_retrieve_payout_params.rbs +8 -1
- data/sig/dodopayments/models/invoices/payment_retrieve_refund_params.rbs +8 -1
- data/sig/dodopayments/models/payment.rbs +20 -0
- data/sig/dodopayments/models/payment_list_response.rbs +25 -0
- data/sig/dodopayments/models/subscription_service_period.rbs +10 -1
- data/sig/dodopayments/models.rbs +2 -0
- data/sig/dodopayments/resources/invoices/payments.rbs +3 -0
- metadata +5 -2
|
@@ -10,6 +10,7 @@ module Dodopayments
|
|
|
10
10
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
11
11
|
digital_products_delivered: bool,
|
|
12
12
|
disputes: ::Array[Dodopayments::Dispute],
|
|
13
|
+
includes_usage: bool,
|
|
13
14
|
is_multi_subscription: bool,
|
|
14
15
|
is_update_payment_method: bool,
|
|
15
16
|
metadata: Dodopayments::Models::metadata,
|
|
@@ -22,11 +23,14 @@ module Dodopayments
|
|
|
22
23
|
settlement_currency: Dodopayments::Models::currency,
|
|
23
24
|
subscription_ids: ::Array[String],
|
|
24
25
|
total_amount: Integer,
|
|
26
|
+
card_exp_month: String?,
|
|
27
|
+
card_exp_year: String?,
|
|
25
28
|
card_holder_name: String?,
|
|
26
29
|
card_issuing_country: Dodopayments::Models::country_code?,
|
|
27
30
|
card_last_four: String?,
|
|
28
31
|
card_network: String?,
|
|
29
32
|
card_type: String?,
|
|
33
|
+
charge_type: Dodopayments::Models::charge_type?,
|
|
30
34
|
checkout_session_id: String?,
|
|
31
35
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
32
36
|
discount_id: String?,
|
|
@@ -65,6 +69,8 @@ module Dodopayments
|
|
|
65
69
|
|
|
66
70
|
attr_accessor disputes: ::Array[Dodopayments::Dispute]
|
|
67
71
|
|
|
72
|
+
attr_accessor includes_usage: bool
|
|
73
|
+
|
|
68
74
|
attr_accessor is_multi_subscription: bool
|
|
69
75
|
|
|
70
76
|
attr_accessor is_update_payment_method: bool
|
|
@@ -89,6 +95,10 @@ module Dodopayments
|
|
|
89
95
|
|
|
90
96
|
attr_accessor total_amount: Integer
|
|
91
97
|
|
|
98
|
+
attr_accessor card_exp_month: String?
|
|
99
|
+
|
|
100
|
+
attr_accessor card_exp_year: String?
|
|
101
|
+
|
|
92
102
|
attr_accessor card_holder_name: String?
|
|
93
103
|
|
|
94
104
|
attr_accessor card_issuing_country: Dodopayments::Models::country_code?
|
|
@@ -99,6 +109,8 @@ module Dodopayments
|
|
|
99
109
|
|
|
100
110
|
attr_accessor card_type: String?
|
|
101
111
|
|
|
112
|
+
attr_accessor charge_type: Dodopayments::Models::charge_type?
|
|
113
|
+
|
|
102
114
|
attr_accessor checkout_session_id: String?
|
|
103
115
|
|
|
104
116
|
attr_accessor custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?
|
|
@@ -146,6 +158,7 @@ module Dodopayments
|
|
|
146
158
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
147
159
|
digital_products_delivered: bool,
|
|
148
160
|
disputes: ::Array[Dodopayments::Dispute],
|
|
161
|
+
includes_usage: bool,
|
|
149
162
|
is_multi_subscription: bool,
|
|
150
163
|
is_update_payment_method: bool,
|
|
151
164
|
metadata: Dodopayments::Models::metadata,
|
|
@@ -158,11 +171,14 @@ module Dodopayments
|
|
|
158
171
|
settlement_currency: Dodopayments::Models::currency,
|
|
159
172
|
subscription_ids: ::Array[String],
|
|
160
173
|
total_amount: Integer,
|
|
174
|
+
?card_exp_month: String?,
|
|
175
|
+
?card_exp_year: String?,
|
|
161
176
|
?card_holder_name: String?,
|
|
162
177
|
?card_issuing_country: Dodopayments::Models::country_code?,
|
|
163
178
|
?card_last_four: String?,
|
|
164
179
|
?card_network: String?,
|
|
165
180
|
?card_type: String?,
|
|
181
|
+
?charge_type: Dodopayments::Models::charge_type?,
|
|
166
182
|
?checkout_session_id: String?,
|
|
167
183
|
?custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
168
184
|
?discount_id: String?,
|
|
@@ -193,6 +209,7 @@ module Dodopayments
|
|
|
193
209
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
194
210
|
digital_products_delivered: bool,
|
|
195
211
|
disputes: ::Array[Dodopayments::Dispute],
|
|
212
|
+
includes_usage: bool,
|
|
196
213
|
is_multi_subscription: bool,
|
|
197
214
|
is_update_payment_method: bool,
|
|
198
215
|
metadata: Dodopayments::Models::metadata,
|
|
@@ -205,11 +222,14 @@ module Dodopayments
|
|
|
205
222
|
settlement_currency: Dodopayments::Models::currency,
|
|
206
223
|
subscription_ids: ::Array[String],
|
|
207
224
|
total_amount: Integer,
|
|
225
|
+
card_exp_month: String?,
|
|
226
|
+
card_exp_year: String?,
|
|
208
227
|
card_holder_name: String?,
|
|
209
228
|
card_issuing_country: Dodopayments::Models::country_code?,
|
|
210
229
|
card_last_four: String?,
|
|
211
230
|
card_network: String?,
|
|
212
231
|
card_type: String?,
|
|
232
|
+
charge_type: Dodopayments::Models::charge_type?,
|
|
213
233
|
checkout_session_id: String?,
|
|
214
234
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
215
235
|
discount_id: String?,
|
|
@@ -8,6 +8,7 @@ module Dodopayments
|
|
|
8
8
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
9
9
|
digital_products_delivered: bool,
|
|
10
10
|
has_license_key: bool,
|
|
11
|
+
includes_usage: bool,
|
|
11
12
|
is_multi_subscription: bool,
|
|
12
13
|
metadata: Dodopayments::Models::metadata,
|
|
13
14
|
payment_id: String,
|
|
@@ -16,8 +17,12 @@ module Dodopayments
|
|
|
16
17
|
service_periods: ::Array[Dodopayments::SubscriptionServicePeriod],
|
|
17
18
|
subscription_ids: ::Array[String],
|
|
18
19
|
total_amount: Integer,
|
|
20
|
+
card_exp_month: String?,
|
|
21
|
+
card_exp_year: String?,
|
|
19
22
|
card_last_four: String?,
|
|
20
23
|
card_network: String?,
|
|
24
|
+
card_type: String?,
|
|
25
|
+
charge_type: Dodopayments::Models::charge_type?,
|
|
21
26
|
checkout_session_id: String?,
|
|
22
27
|
dispute_status: Dodopayments::Models::dispute_status?,
|
|
23
28
|
invoice_id: String?,
|
|
@@ -42,6 +47,8 @@ module Dodopayments
|
|
|
42
47
|
|
|
43
48
|
attr_accessor has_license_key: bool
|
|
44
49
|
|
|
50
|
+
attr_accessor includes_usage: bool
|
|
51
|
+
|
|
45
52
|
attr_accessor is_multi_subscription: bool
|
|
46
53
|
|
|
47
54
|
attr_accessor metadata: Dodopayments::Models::metadata
|
|
@@ -58,10 +65,18 @@ module Dodopayments
|
|
|
58
65
|
|
|
59
66
|
attr_accessor total_amount: Integer
|
|
60
67
|
|
|
68
|
+
attr_accessor card_exp_month: String?
|
|
69
|
+
|
|
70
|
+
attr_accessor card_exp_year: String?
|
|
71
|
+
|
|
61
72
|
attr_accessor card_last_four: String?
|
|
62
73
|
|
|
63
74
|
attr_accessor card_network: String?
|
|
64
75
|
|
|
76
|
+
attr_accessor card_type: String?
|
|
77
|
+
|
|
78
|
+
attr_accessor charge_type: Dodopayments::Models::charge_type?
|
|
79
|
+
|
|
65
80
|
attr_accessor checkout_session_id: String?
|
|
66
81
|
|
|
67
82
|
attr_accessor dispute_status: Dodopayments::Models::dispute_status?
|
|
@@ -87,6 +102,7 @@ module Dodopayments
|
|
|
87
102
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
88
103
|
digital_products_delivered: bool,
|
|
89
104
|
has_license_key: bool,
|
|
105
|
+
includes_usage: bool,
|
|
90
106
|
is_multi_subscription: bool,
|
|
91
107
|
metadata: Dodopayments::Models::metadata,
|
|
92
108
|
payment_id: String,
|
|
@@ -95,8 +111,12 @@ module Dodopayments
|
|
|
95
111
|
service_periods: ::Array[Dodopayments::SubscriptionServicePeriod],
|
|
96
112
|
subscription_ids: ::Array[String],
|
|
97
113
|
total_amount: Integer,
|
|
114
|
+
?card_exp_month: String?,
|
|
115
|
+
?card_exp_year: String?,
|
|
98
116
|
?card_last_four: String?,
|
|
99
117
|
?card_network: String?,
|
|
118
|
+
?card_type: String?,
|
|
119
|
+
?charge_type: Dodopayments::Models::charge_type?,
|
|
100
120
|
?checkout_session_id: String?,
|
|
101
121
|
?dispute_status: Dodopayments::Models::dispute_status?,
|
|
102
122
|
?invoice_id: String?,
|
|
@@ -115,6 +135,7 @@ module Dodopayments
|
|
|
115
135
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
116
136
|
digital_products_delivered: bool,
|
|
117
137
|
has_license_key: bool,
|
|
138
|
+
includes_usage: bool,
|
|
118
139
|
is_multi_subscription: bool,
|
|
119
140
|
metadata: Dodopayments::Models::metadata,
|
|
120
141
|
payment_id: String,
|
|
@@ -123,8 +144,12 @@ module Dodopayments
|
|
|
123
144
|
service_periods: ::Array[Dodopayments::SubscriptionServicePeriod],
|
|
124
145
|
subscription_ids: ::Array[String],
|
|
125
146
|
total_amount: Integer,
|
|
147
|
+
card_exp_month: String?,
|
|
148
|
+
card_exp_year: String?,
|
|
126
149
|
card_last_four: String?,
|
|
127
150
|
card_network: String?,
|
|
151
|
+
card_type: String?,
|
|
152
|
+
charge_type: Dodopayments::Models::charge_type?,
|
|
128
153
|
checkout_session_id: String?,
|
|
129
154
|
dispute_status: Dodopayments::Models::dispute_status?,
|
|
130
155
|
invoice_id: String?,
|
|
@@ -1,23 +1,32 @@
|
|
|
1
1
|
module Dodopayments
|
|
2
2
|
module Models
|
|
3
3
|
type subscription_service_period =
|
|
4
|
-
{
|
|
4
|
+
{
|
|
5
|
+
ends_at: Time,
|
|
6
|
+
proration_factor: String,
|
|
7
|
+
starts_at: Time,
|
|
8
|
+
subscription_id: String
|
|
9
|
+
}
|
|
5
10
|
|
|
6
11
|
class SubscriptionServicePeriod < Dodopayments::Internal::Type::BaseModel
|
|
7
12
|
attr_accessor ends_at: Time
|
|
8
13
|
|
|
14
|
+
attr_accessor proration_factor: String
|
|
15
|
+
|
|
9
16
|
attr_accessor starts_at: Time
|
|
10
17
|
|
|
11
18
|
attr_accessor subscription_id: String
|
|
12
19
|
|
|
13
20
|
def initialize: (
|
|
14
21
|
ends_at: Time,
|
|
22
|
+
proration_factor: String,
|
|
15
23
|
starts_at: Time,
|
|
16
24
|
subscription_id: String
|
|
17
25
|
) -> void
|
|
18
26
|
|
|
19
27
|
def to_hash: -> {
|
|
20
28
|
ends_at: Time,
|
|
29
|
+
proration_factor: String,
|
|
21
30
|
starts_at: Time,
|
|
22
31
|
subscription_id: String
|
|
23
32
|
}
|
data/sig/dodopayments/models.rbs
CHANGED
|
@@ -55,6 +55,8 @@ module Dodopayments
|
|
|
55
55
|
|
|
56
56
|
module CbbProrationBehavior = Dodopayments::Models::CbbProrationBehavior
|
|
57
57
|
|
|
58
|
+
module ChargeType = Dodopayments::Models::ChargeType
|
|
59
|
+
|
|
58
60
|
class CheckoutSessionBillingAddress = Dodopayments::Models::CheckoutSessionBillingAddress
|
|
59
61
|
|
|
60
62
|
class CheckoutSessionCreateParams = Dodopayments::Models::CheckoutSessionCreateParams
|
|
@@ -4,16 +4,19 @@ module Dodopayments
|
|
|
4
4
|
class Payments
|
|
5
5
|
def retrieve: (
|
|
6
6
|
String payment_id,
|
|
7
|
+
?token: String,
|
|
7
8
|
?request_options: Dodopayments::request_opts
|
|
8
9
|
) -> StringIO
|
|
9
10
|
|
|
10
11
|
def retrieve_payout: (
|
|
11
12
|
String payout_id,
|
|
13
|
+
?token: String,
|
|
12
14
|
?request_options: Dodopayments::request_opts
|
|
13
15
|
) -> StringIO
|
|
14
16
|
|
|
15
17
|
def retrieve_refund: (
|
|
16
18
|
String refund_id,
|
|
19
|
+
?token: String,
|
|
17
20
|
?request_options: Dodopayments::request_opts
|
|
18
21
|
) -> StringIO
|
|
19
22
|
|
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.
|
|
4
|
+
version: 2.34.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-10-
|
|
11
|
+
date: 2026-10-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|
|
@@ -130,6 +130,7 @@ files:
|
|
|
130
130
|
- lib/dodopayments/models/cancellation_feedback.rb
|
|
131
131
|
- lib/dodopayments/models/cbb_overage_behavior.rb
|
|
132
132
|
- lib/dodopayments/models/cbb_proration_behavior.rb
|
|
133
|
+
- lib/dodopayments/models/charge_type.rb
|
|
133
134
|
- lib/dodopayments/models/checkout_session_billing_address.rb
|
|
134
135
|
- lib/dodopayments/models/checkout_session_create_params.rb
|
|
135
136
|
- lib/dodopayments/models/checkout_session_customization.rb
|
|
@@ -569,6 +570,7 @@ files:
|
|
|
569
570
|
- rbi/dodopayments/models/cancellation_feedback.rbi
|
|
570
571
|
- rbi/dodopayments/models/cbb_overage_behavior.rbi
|
|
571
572
|
- rbi/dodopayments/models/cbb_proration_behavior.rbi
|
|
573
|
+
- rbi/dodopayments/models/charge_type.rbi
|
|
572
574
|
- rbi/dodopayments/models/checkout_session_billing_address.rbi
|
|
573
575
|
- rbi/dodopayments/models/checkout_session_create_params.rbi
|
|
574
576
|
- rbi/dodopayments/models/checkout_session_customization.rbi
|
|
@@ -1007,6 +1009,7 @@ files:
|
|
|
1007
1009
|
- sig/dodopayments/models/cancellation_feedback.rbs
|
|
1008
1010
|
- sig/dodopayments/models/cbb_overage_behavior.rbs
|
|
1009
1011
|
- sig/dodopayments/models/cbb_proration_behavior.rbs
|
|
1012
|
+
- sig/dodopayments/models/charge_type.rbs
|
|
1010
1013
|
- sig/dodopayments/models/checkout_session_billing_address.rbs
|
|
1011
1014
|
- sig/dodopayments/models/checkout_session_create_params.rbs
|
|
1012
1015
|
- sig/dodopayments/models/checkout_session_customization.rbs
|