dodopayments 2.32.2 → 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 +16 -0
- data/README.md +1 -1
- data/lib/dodopayments/internal/type/enum.rb +11 -11
- data/lib/dodopayments/models/balance_ledger_entry.rb +3 -0
- data/lib/dodopayments/models/balance_retrieve_ledger_params.rb +3 -0
- data/lib/dodopayments/models/charge_type.rb +33 -0
- data/lib/dodopayments/models/checkout_session_flags.rb +3 -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/manual_retry_state.rb +27 -1
- data/lib/dodopayments/models/payment.rb +69 -7
- data/lib/dodopayments/models/payment_list_response.rb +94 -5
- data/lib/dodopayments/models/price.rb +56 -20
- data/lib/dodopayments/models/product_collection.rb +2 -0
- data/lib/dodopayments/models/product_collection_create_params.rb +2 -0
- data/lib/dodopayments/models/product_collection_update_params.rb +2 -0
- data/lib/dodopayments/models/product_collections/group_update_params.rb +2 -1
- data/lib/dodopayments/models/refund.rb +11 -1
- data/lib/dodopayments/models/refund_list_item.rb +11 -1
- data/lib/dodopayments/models/subscription_active_webhook_event.rb +10 -1
- data/lib/dodopayments/models/subscription_cancelled_webhook_event.rb +10 -1
- data/lib/dodopayments/models/subscription_expired_webhook_event.rb +10 -1
- data/lib/dodopayments/models/subscription_failed_webhook_event.rb +10 -1
- data/lib/dodopayments/models/subscription_on_hold_webhook_event.rb +10 -1
- data/lib/dodopayments/models/subscription_past_due_webhook_event.rb +10 -1
- data/lib/dodopayments/models/subscription_paused_webhook_event.rb +10 -1
- data/lib/dodopayments/models/subscription_plan_changed_webhook_event.rb +10 -1
- data/lib/dodopayments/models/subscription_renewed_webhook_event.rb +10 -1
- data/lib/dodopayments/models/subscription_service_period.rb +50 -0
- data/lib/dodopayments/models/subscription_unpaused_webhook_event.rb +10 -1
- data/lib/dodopayments/models/subscription_update_payment_method_webhook_event.rb +10 -1
- data/lib/dodopayments/models/subscription_updated_webhook_event.rb +10 -1
- data/lib/dodopayments/models/update_subscription_plan_req.rb +1 -0
- data/lib/dodopayments/models/webhook_payload.rb +10 -1
- data/lib/dodopayments/models.rb +4 -0
- data/lib/dodopayments/resources/invoices/payments.rb +30 -6
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +2 -0
- data/rbi/dodopayments/models/balance_ledger_entry.rbi +15 -0
- data/rbi/dodopayments/models/balance_retrieve_ledger_params.rbi +15 -0
- data/rbi/dodopayments/models/charge_type.rbi +37 -0
- data/rbi/dodopayments/models/checkout_session_flags.rbi +6 -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/manual_retry_state.rbi +28 -0
- data/rbi/dodopayments/models/payment.rbi +85 -6
- data/rbi/dodopayments/models/payment_list_response.rbi +113 -4
- data/rbi/dodopayments/models/price.rbi +96 -24
- data/rbi/dodopayments/models/product_collection.rbi +10 -0
- data/rbi/dodopayments/models/product_collection_create_params.rbi +10 -0
- data/rbi/dodopayments/models/product_collection_update_params.rbi +10 -0
- data/rbi/dodopayments/models/product_collections/group_update_params.rbi +4 -2
- data/rbi/dodopayments/models/refund.rbi +12 -0
- data/rbi/dodopayments/models/refund_list_item.rbi +12 -0
- data/rbi/dodopayments/models/subscription_active_webhook_event.rbi +18 -3
- data/rbi/dodopayments/models/subscription_cancelled_webhook_event.rbi +18 -3
- data/rbi/dodopayments/models/subscription_expired_webhook_event.rbi +18 -3
- data/rbi/dodopayments/models/subscription_failed_webhook_event.rbi +18 -3
- data/rbi/dodopayments/models/subscription_on_hold_webhook_event.rbi +18 -3
- data/rbi/dodopayments/models/subscription_past_due_webhook_event.rbi +18 -3
- data/rbi/dodopayments/models/subscription_paused_webhook_event.rbi +18 -3
- data/rbi/dodopayments/models/subscription_plan_changed_webhook_event.rbi +18 -3
- data/rbi/dodopayments/models/subscription_renewed_webhook_event.rbi +18 -3
- data/rbi/dodopayments/models/subscription_service_period.rbi +75 -0
- data/rbi/dodopayments/models/subscription_unpaused_webhook_event.rbi +18 -3
- data/rbi/dodopayments/models/subscription_update_payment_method_webhook_event.rbi +18 -3
- data/rbi/dodopayments/models/subscription_updated_webhook_event.rbi +18 -3
- data/rbi/dodopayments/models/update_subscription_plan_req.rbi +5 -0
- data/rbi/dodopayments/models/webhook_payload.rbi +14 -1
- data/rbi/dodopayments/models.rbi +4 -0
- data/rbi/dodopayments/resources/invoices/payments.rbi +12 -0
- data/rbi/dodopayments/resources/product_collections/groups.rbi +2 -1
- data/sig/dodopayments/models/balance_ledger_entry.rbs +6 -0
- data/sig/dodopayments/models/balance_retrieve_ledger_params.rbs +6 -0
- 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/manual_retry_state.rbs +15 -0
- data/sig/dodopayments/models/payment.rbs +25 -0
- data/sig/dodopayments/models/payment_list_response.rbs +40 -0
- data/sig/dodopayments/models/product_collection.rbs +4 -0
- data/sig/dodopayments/models/product_collection_create_params.rbs +4 -0
- data/sig/dodopayments/models/product_collection_update_params.rbs +4 -0
- data/sig/dodopayments/models/refund.rbs +5 -0
- data/sig/dodopayments/models/refund_list_item.rbs +5 -0
- data/sig/dodopayments/models/subscription_active_webhook_event.rbs +7 -3
- data/sig/dodopayments/models/subscription_cancelled_webhook_event.rbs +7 -3
- data/sig/dodopayments/models/subscription_expired_webhook_event.rbs +7 -3
- data/sig/dodopayments/models/subscription_failed_webhook_event.rbs +7 -3
- data/sig/dodopayments/models/subscription_on_hold_webhook_event.rbs +7 -3
- data/sig/dodopayments/models/subscription_past_due_webhook_event.rbs +7 -3
- data/sig/dodopayments/models/subscription_paused_webhook_event.rbs +7 -3
- data/sig/dodopayments/models/subscription_plan_changed_webhook_event.rbs +7 -3
- data/sig/dodopayments/models/subscription_renewed_webhook_event.rbs +7 -3
- data/sig/dodopayments/models/subscription_service_period.rbs +35 -0
- data/sig/dodopayments/models/subscription_unpaused_webhook_event.rbs +7 -3
- data/sig/dodopayments/models/subscription_update_payment_method_webhook_event.rbs +7 -3
- data/sig/dodopayments/models/subscription_updated_webhook_event.rbs +7 -3
- data/sig/dodopayments/models/update_subscription_plan_req.rbs +2 -0
- data/sig/dodopayments/models/webhook_payload.rbs +12 -2
- data/sig/dodopayments/models.rbs +4 -0
- data/sig/dodopayments/resources/invoices/payments.rbs +3 -0
- metadata +8 -2
|
@@ -88,10 +88,18 @@ module Dodopayments
|
|
|
88
88
|
sig { returns(T.nilable(Time)) }
|
|
89
89
|
attr_accessor :past_due_ends_at
|
|
90
90
|
|
|
91
|
+
# Identifier of the payment that caused this event. It is set only for
|
|
92
|
+
# `subscription.renewed`. It is null for all other subscription events.
|
|
93
|
+
sig { returns(T.nilable(String)) }
|
|
94
|
+
attr_accessor :payment_id
|
|
95
|
+
|
|
91
96
|
# Subscription payload sent on a webhook. It carries every field of
|
|
92
97
|
# `SubscriptionResponse`, plus the grace-period deadline.
|
|
93
98
|
sig do
|
|
94
|
-
params(
|
|
99
|
+
params(
|
|
100
|
+
past_due_ends_at: T.nilable(Time),
|
|
101
|
+
payment_id: T.nilable(String)
|
|
102
|
+
).returns(T.attached_class)
|
|
95
103
|
end
|
|
96
104
|
def self.new(
|
|
97
105
|
# Time when the grace period ends. The subscription moves to `on_hold` or to
|
|
@@ -101,11 +109,18 @@ module Dodopayments
|
|
|
101
109
|
# row snapshot that produced `status`. It is set whenever the subscription sits in
|
|
102
110
|
# a window at that moment. A delayed event of another type therefore carries the
|
|
103
111
|
# deadline too, next to a `past_due` status.
|
|
104
|
-
past_due_ends_at: nil
|
|
112
|
+
past_due_ends_at: nil,
|
|
113
|
+
# Identifier of the payment that caused this event. It is set only for
|
|
114
|
+
# `subscription.renewed`. It is null for all other subscription events.
|
|
115
|
+
payment_id: nil
|
|
105
116
|
)
|
|
106
117
|
end
|
|
107
118
|
|
|
108
|
-
sig
|
|
119
|
+
sig do
|
|
120
|
+
override.returns(
|
|
121
|
+
{ past_due_ends_at: T.nilable(Time), payment_id: T.nilable(String) }
|
|
122
|
+
)
|
|
123
|
+
end
|
|
109
124
|
def to_hash
|
|
110
125
|
end
|
|
111
126
|
end
|
|
@@ -330,6 +330,11 @@ module Dodopayments
|
|
|
330
330
|
:do_not_bill,
|
|
331
331
|
Dodopayments::UpdateSubscriptionPlanReq::ProrationBillingMode::TaggedSymbol
|
|
332
332
|
)
|
|
333
|
+
PRORATED_IMMEDIATELY_KEEP_CYCLE =
|
|
334
|
+
T.let(
|
|
335
|
+
:prorated_immediately_keep_cycle,
|
|
336
|
+
Dodopayments::UpdateSubscriptionPlanReq::ProrationBillingMode::TaggedSymbol
|
|
337
|
+
)
|
|
333
338
|
|
|
334
339
|
sig do
|
|
335
340
|
override.returns(
|
|
@@ -163,10 +163,16 @@ module Dodopayments
|
|
|
163
163
|
sig { returns(T.nilable(Time)) }
|
|
164
164
|
attr_accessor :past_due_ends_at
|
|
165
165
|
|
|
166
|
+
# Identifier of the payment that caused this event. It is set only for
|
|
167
|
+
# `subscription.renewed`. It is null for all other subscription events.
|
|
168
|
+
sig { returns(T.nilable(String)) }
|
|
169
|
+
attr_accessor :payment_id
|
|
170
|
+
|
|
166
171
|
# Response struct representing subscription details
|
|
167
172
|
sig do
|
|
168
173
|
params(
|
|
169
174
|
past_due_ends_at: T.nilable(Time),
|
|
175
|
+
payment_id: T.nilable(String),
|
|
170
176
|
payload_type: Symbol
|
|
171
177
|
).returns(T.attached_class)
|
|
172
178
|
end
|
|
@@ -179,13 +185,20 @@ module Dodopayments
|
|
|
179
185
|
# a window at that moment. A delayed event of another type therefore carries the
|
|
180
186
|
# deadline too, next to a `past_due` status.
|
|
181
187
|
past_due_ends_at: nil,
|
|
188
|
+
# Identifier of the payment that caused this event. It is set only for
|
|
189
|
+
# `subscription.renewed`. It is null for all other subscription events.
|
|
190
|
+
payment_id: nil,
|
|
182
191
|
payload_type: :Subscription
|
|
183
192
|
)
|
|
184
193
|
end
|
|
185
194
|
|
|
186
195
|
sig do
|
|
187
196
|
override.returns(
|
|
188
|
-
{
|
|
197
|
+
{
|
|
198
|
+
payload_type: Symbol,
|
|
199
|
+
past_due_ends_at: T.nilable(Time),
|
|
200
|
+
payment_id: T.nilable(String)
|
|
201
|
+
}
|
|
189
202
|
)
|
|
190
203
|
end
|
|
191
204
|
def to_hash
|
data/rbi/dodopayments/models.rbi
CHANGED
|
@@ -60,6 +60,8 @@ module Dodopayments
|
|
|
60
60
|
|
|
61
61
|
CbbProrationBehavior = Dodopayments::Models::CbbProrationBehavior
|
|
62
62
|
|
|
63
|
+
ChargeType = Dodopayments::Models::ChargeType
|
|
64
|
+
|
|
63
65
|
CheckoutSessionBillingAddress =
|
|
64
66
|
Dodopayments::Models::CheckoutSessionBillingAddress
|
|
65
67
|
|
|
@@ -551,6 +553,8 @@ module Dodopayments
|
|
|
551
553
|
SubscriptionRetrieveUsageHistoryParams =
|
|
552
554
|
Dodopayments::Models::SubscriptionRetrieveUsageHistoryParams
|
|
553
555
|
|
|
556
|
+
SubscriptionServicePeriod = Dodopayments::Models::SubscriptionServicePeriod
|
|
557
|
+
|
|
554
558
|
SubscriptionStatus = Dodopayments::Models::SubscriptionStatus
|
|
555
559
|
|
|
556
560
|
SubscriptionUnpausedWebhookEvent =
|
|
@@ -7,12 +7,16 @@ module Dodopayments
|
|
|
7
7
|
sig do
|
|
8
8
|
params(
|
|
9
9
|
payment_id: String,
|
|
10
|
+
token: String,
|
|
10
11
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
11
12
|
).returns(StringIO)
|
|
12
13
|
end
|
|
13
14
|
def retrieve(
|
|
14
15
|
# Payment ID
|
|
15
16
|
payment_id,
|
|
17
|
+
# The signed link token. If the business asks for a credential on its invoice
|
|
18
|
+
# links, a valid token for this record replaces the credential.
|
|
19
|
+
token: nil,
|
|
16
20
|
request_options: {}
|
|
17
21
|
)
|
|
18
22
|
end
|
|
@@ -20,12 +24,16 @@ module Dodopayments
|
|
|
20
24
|
sig do
|
|
21
25
|
params(
|
|
22
26
|
payout_id: String,
|
|
27
|
+
token: String,
|
|
23
28
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
24
29
|
).returns(StringIO)
|
|
25
30
|
end
|
|
26
31
|
def retrieve_payout(
|
|
27
32
|
# Payout ID
|
|
28
33
|
payout_id,
|
|
34
|
+
# The signed link token. If the business asks for a credential on its invoice
|
|
35
|
+
# links, a valid token for this record replaces the credential.
|
|
36
|
+
token: nil,
|
|
29
37
|
request_options: {}
|
|
30
38
|
)
|
|
31
39
|
end
|
|
@@ -33,12 +41,16 @@ module Dodopayments
|
|
|
33
41
|
sig do
|
|
34
42
|
params(
|
|
35
43
|
refund_id: String,
|
|
44
|
+
token: String,
|
|
36
45
|
request_options: Dodopayments::RequestOptions::OrHash
|
|
37
46
|
).returns(StringIO)
|
|
38
47
|
end
|
|
39
48
|
def retrieve_refund(
|
|
40
49
|
# Refund ID
|
|
41
50
|
refund_id,
|
|
51
|
+
# The signed link token. If the business asks for a credential on its invoice
|
|
52
|
+
# links, a valid token for this record replaces the credential.
|
|
53
|
+
token: nil,
|
|
42
54
|
request_options: {}
|
|
43
55
|
)
|
|
44
56
|
end
|
|
@@ -51,7 +51,8 @@ module Dodopayments
|
|
|
51
51
|
# Path param: Product Collection Id
|
|
52
52
|
id:,
|
|
53
53
|
# Body param: Optional group name update: Some(Some(name)) = set name, Some(None)
|
|
54
|
-
# = clear name, None = no change
|
|
54
|
+
# = clear name, None = no change The API returns 422 if another group in the
|
|
55
|
+
# collection has no name.
|
|
55
56
|
group_name: nil,
|
|
56
57
|
# Body param: Optional new order for products in this group (array of
|
|
57
58
|
# product_collection_group_pdts UUIDs)
|
|
@@ -108,6 +108,9 @@ module Dodopayments
|
|
|
108
108
|
| :reserve_hold
|
|
109
109
|
| :reserve_release
|
|
110
110
|
| :moderation_fees
|
|
111
|
+
| :dodo_fixed_fee
|
|
112
|
+
| :interchange_fee
|
|
113
|
+
| :scheme_fee
|
|
111
114
|
|
|
112
115
|
module EventType
|
|
113
116
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -143,6 +146,9 @@ module Dodopayments
|
|
|
143
146
|
RESERVE_HOLD: :reserve_hold
|
|
144
147
|
RESERVE_RELEASE: :reserve_release
|
|
145
148
|
MODERATION_FEES: :moderation_fees
|
|
149
|
+
DODO_FIXED_FEE: :dodo_fixed_fee
|
|
150
|
+
INTERCHANGE_FEE: :interchange_fee
|
|
151
|
+
SCHEME_FEE: :scheme_fee
|
|
146
152
|
|
|
147
153
|
def self?.values: -> ::Array[Dodopayments::Models::BalanceLedgerEntry::event_type]
|
|
148
154
|
end
|
|
@@ -408,6 +408,9 @@ module Dodopayments
|
|
|
408
408
|
| :reserve_hold
|
|
409
409
|
| :reserve_release
|
|
410
410
|
| :moderation_fees
|
|
411
|
+
| :dodo_fixed_fee
|
|
412
|
+
| :interchange_fee
|
|
413
|
+
| :scheme_fee
|
|
411
414
|
|
|
412
415
|
module EventType
|
|
413
416
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -443,6 +446,9 @@ module Dodopayments
|
|
|
443
446
|
RESERVE_HOLD: :reserve_hold
|
|
444
447
|
RESERVE_RELEASE: :reserve_release
|
|
445
448
|
MODERATION_FEES: :moderation_fees
|
|
449
|
+
DODO_FIXED_FEE: :dodo_fixed_fee
|
|
450
|
+
INTERCHANGE_FEE: :interchange_fee
|
|
451
|
+
SCHEME_FEE: :scheme_fee
|
|
446
452
|
|
|
447
453
|
def self?.values: -> ::Array[Dodopayments::Models::BalanceRetrieveLedgerParams::event_type]
|
|
448
454
|
end
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type charge_type = :new | :renewal | :plan_change | :on_demand
|
|
4
|
+
|
|
5
|
+
module ChargeType
|
|
6
|
+
extend Dodopayments::Internal::Type::Enum
|
|
7
|
+
|
|
8
|
+
NEW: :new
|
|
9
|
+
RENEWAL: :renewal
|
|
10
|
+
PLAN_CHANGE: :plan_change
|
|
11
|
+
ON_DEMAND: :on_demand
|
|
12
|
+
|
|
13
|
+
def self?.values: -> ::Array[Dodopayments::Models::charge_type]
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
@@ -142,6 +142,7 @@ module Dodopayments
|
|
|
142
142
|
description: String?,
|
|
143
143
|
discount_amount: Integer?,
|
|
144
144
|
discount_cycle: Integer?,
|
|
145
|
+
monthly_equivalent: Integer?,
|
|
145
146
|
name: String?,
|
|
146
147
|
tax: Integer?
|
|
147
148
|
}
|
|
@@ -181,6 +182,8 @@ module Dodopayments
|
|
|
181
182
|
|
|
182
183
|
attr_accessor discount_cycle: Integer?
|
|
183
184
|
|
|
185
|
+
attr_accessor monthly_equivalent: Integer?
|
|
186
|
+
|
|
184
187
|
attr_accessor name: String?
|
|
185
188
|
|
|
186
189
|
attr_accessor tax: Integer?
|
|
@@ -203,6 +206,7 @@ module Dodopayments
|
|
|
203
206
|
?description: String?,
|
|
204
207
|
?discount_amount: Integer?,
|
|
205
208
|
?discount_cycle: Integer?,
|
|
209
|
+
?monthly_equivalent: Integer?,
|
|
206
210
|
?name: String?,
|
|
207
211
|
?tax: Integer?
|
|
208
212
|
) -> void
|
|
@@ -225,6 +229,7 @@ module Dodopayments
|
|
|
225
229
|
description: String?,
|
|
226
230
|
discount_amount: Integer?,
|
|
227
231
|
discount_cycle: Integer?,
|
|
232
|
+
monthly_equivalent: Integer?,
|
|
228
233
|
name: String?,
|
|
229
234
|
tax: Integer?
|
|
230
235
|
}
|
|
@@ -2,7 +2,7 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
module Invoices
|
|
4
4
|
type payment_retrieve_params =
|
|
5
|
-
{ payment_id: String }
|
|
5
|
+
{ payment_id: String, token: String }
|
|
6
6
|
& Dodopayments::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class PaymentRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
@@ -11,13 +11,19 @@ module Dodopayments
|
|
|
11
11
|
|
|
12
12
|
attr_accessor payment_id: String
|
|
13
13
|
|
|
14
|
+
attr_reader token: String?
|
|
15
|
+
|
|
16
|
+
def token=: (String) -> String
|
|
17
|
+
|
|
14
18
|
def initialize: (
|
|
15
19
|
payment_id: String,
|
|
20
|
+
?token: String,
|
|
16
21
|
?request_options: Dodopayments::request_opts
|
|
17
22
|
) -> void
|
|
18
23
|
|
|
19
24
|
def to_hash: -> {
|
|
20
25
|
payment_id: String,
|
|
26
|
+
token: String,
|
|
21
27
|
request_options: Dodopayments::RequestOptions
|
|
22
28
|
}
|
|
23
29
|
end
|
|
@@ -2,7 +2,8 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
module Invoices
|
|
4
4
|
type payment_retrieve_payout_params =
|
|
5
|
-
{ payout_id: String
|
|
5
|
+
{ payout_id: String, token: String }
|
|
6
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
6
7
|
|
|
7
8
|
class PaymentRetrievePayoutParams < Dodopayments::Internal::Type::BaseModel
|
|
8
9
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
@@ -10,13 +11,19 @@ module Dodopayments
|
|
|
10
11
|
|
|
11
12
|
attr_accessor payout_id: String
|
|
12
13
|
|
|
14
|
+
attr_reader token: String?
|
|
15
|
+
|
|
16
|
+
def token=: (String) -> String
|
|
17
|
+
|
|
13
18
|
def initialize: (
|
|
14
19
|
payout_id: String,
|
|
20
|
+
?token: String,
|
|
15
21
|
?request_options: Dodopayments::request_opts
|
|
16
22
|
) -> void
|
|
17
23
|
|
|
18
24
|
def to_hash: -> {
|
|
19
25
|
payout_id: String,
|
|
26
|
+
token: String,
|
|
20
27
|
request_options: Dodopayments::RequestOptions
|
|
21
28
|
}
|
|
22
29
|
end
|
|
@@ -2,7 +2,8 @@ module Dodopayments
|
|
|
2
2
|
module Models
|
|
3
3
|
module Invoices
|
|
4
4
|
type payment_retrieve_refund_params =
|
|
5
|
-
{ refund_id: String
|
|
5
|
+
{ refund_id: String, token: String }
|
|
6
|
+
& Dodopayments::Internal::Type::request_parameters
|
|
6
7
|
|
|
7
8
|
class PaymentRetrieveRefundParams < Dodopayments::Internal::Type::BaseModel
|
|
8
9
|
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
@@ -10,13 +11,19 @@ module Dodopayments
|
|
|
10
11
|
|
|
11
12
|
attr_accessor refund_id: String
|
|
12
13
|
|
|
14
|
+
attr_reader token: String?
|
|
15
|
+
|
|
16
|
+
def token=: (String) -> String
|
|
17
|
+
|
|
13
18
|
def initialize: (
|
|
14
19
|
refund_id: String,
|
|
20
|
+
?token: String,
|
|
15
21
|
?request_options: Dodopayments::request_opts
|
|
16
22
|
) -> void
|
|
17
23
|
|
|
18
24
|
def to_hash: -> {
|
|
19
25
|
refund_id: String,
|
|
26
|
+
token: String,
|
|
20
27
|
request_options: Dodopayments::RequestOptions
|
|
21
28
|
}
|
|
22
29
|
end
|
|
@@ -5,6 +5,9 @@ module Dodopayments
|
|
|
5
5
|
can_retry: bool,
|
|
6
6
|
sends_allowed: Integer,
|
|
7
7
|
sends_used: Integer,
|
|
8
|
+
automatic_retry_number: Integer?,
|
|
9
|
+
automatic_retry_total: Integer?,
|
|
10
|
+
next_automatic_retry_at: Time?,
|
|
8
11
|
reason: String?,
|
|
9
12
|
retry_available_at: Time?
|
|
10
13
|
}
|
|
@@ -16,6 +19,12 @@ module Dodopayments
|
|
|
16
19
|
|
|
17
20
|
attr_accessor sends_used: Integer
|
|
18
21
|
|
|
22
|
+
attr_accessor automatic_retry_number: Integer?
|
|
23
|
+
|
|
24
|
+
attr_accessor automatic_retry_total: Integer?
|
|
25
|
+
|
|
26
|
+
attr_accessor next_automatic_retry_at: Time?
|
|
27
|
+
|
|
19
28
|
attr_accessor reason: String?
|
|
20
29
|
|
|
21
30
|
attr_accessor retry_available_at: Time?
|
|
@@ -24,6 +33,9 @@ module Dodopayments
|
|
|
24
33
|
can_retry: bool,
|
|
25
34
|
sends_allowed: Integer,
|
|
26
35
|
sends_used: Integer,
|
|
36
|
+
?automatic_retry_number: Integer?,
|
|
37
|
+
?automatic_retry_total: Integer?,
|
|
38
|
+
?next_automatic_retry_at: Time?,
|
|
27
39
|
?reason: String?,
|
|
28
40
|
?retry_available_at: Time?
|
|
29
41
|
) -> void
|
|
@@ -32,6 +44,9 @@ module Dodopayments
|
|
|
32
44
|
can_retry: bool,
|
|
33
45
|
sends_allowed: Integer,
|
|
34
46
|
sends_used: Integer,
|
|
47
|
+
automatic_retry_number: Integer?,
|
|
48
|
+
automatic_retry_total: Integer?,
|
|
49
|
+
next_automatic_retry_at: Time?,
|
|
35
50
|
reason: String?,
|
|
36
51
|
retry_available_at: Time?
|
|
37
52
|
}
|
|
@@ -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,
|
|
@@ -17,15 +18,19 @@ module Dodopayments
|
|
|
17
18
|
payment_provider: Dodopayments::Models::Payment::payment_provider,
|
|
18
19
|
refunds: ::Array[Dodopayments::RefundListItem],
|
|
19
20
|
retry_attempt: Integer,
|
|
21
|
+
service_periods: ::Array[Dodopayments::SubscriptionServicePeriod],
|
|
20
22
|
settlement_amount: Integer,
|
|
21
23
|
settlement_currency: Dodopayments::Models::currency,
|
|
22
24
|
subscription_ids: ::Array[String],
|
|
23
25
|
total_amount: Integer,
|
|
26
|
+
card_exp_month: String?,
|
|
27
|
+
card_exp_year: String?,
|
|
24
28
|
card_holder_name: String?,
|
|
25
29
|
card_issuing_country: Dodopayments::Models::country_code?,
|
|
26
30
|
card_last_four: String?,
|
|
27
31
|
card_network: String?,
|
|
28
32
|
card_type: String?,
|
|
33
|
+
charge_type: Dodopayments::Models::charge_type?,
|
|
29
34
|
checkout_session_id: String?,
|
|
30
35
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
31
36
|
discount_id: String?,
|
|
@@ -64,6 +69,8 @@ module Dodopayments
|
|
|
64
69
|
|
|
65
70
|
attr_accessor disputes: ::Array[Dodopayments::Dispute]
|
|
66
71
|
|
|
72
|
+
attr_accessor includes_usage: bool
|
|
73
|
+
|
|
67
74
|
attr_accessor is_multi_subscription: bool
|
|
68
75
|
|
|
69
76
|
attr_accessor is_update_payment_method: bool
|
|
@@ -78,6 +85,8 @@ module Dodopayments
|
|
|
78
85
|
|
|
79
86
|
attr_accessor retry_attempt: Integer
|
|
80
87
|
|
|
88
|
+
attr_accessor service_periods: ::Array[Dodopayments::SubscriptionServicePeriod]
|
|
89
|
+
|
|
81
90
|
attr_accessor settlement_amount: Integer
|
|
82
91
|
|
|
83
92
|
attr_accessor settlement_currency: Dodopayments::Models::currency
|
|
@@ -86,6 +95,10 @@ module Dodopayments
|
|
|
86
95
|
|
|
87
96
|
attr_accessor total_amount: Integer
|
|
88
97
|
|
|
98
|
+
attr_accessor card_exp_month: String?
|
|
99
|
+
|
|
100
|
+
attr_accessor card_exp_year: String?
|
|
101
|
+
|
|
89
102
|
attr_accessor card_holder_name: String?
|
|
90
103
|
|
|
91
104
|
attr_accessor card_issuing_country: Dodopayments::Models::country_code?
|
|
@@ -96,6 +109,8 @@ module Dodopayments
|
|
|
96
109
|
|
|
97
110
|
attr_accessor card_type: String?
|
|
98
111
|
|
|
112
|
+
attr_accessor charge_type: Dodopayments::Models::charge_type?
|
|
113
|
+
|
|
99
114
|
attr_accessor checkout_session_id: String?
|
|
100
115
|
|
|
101
116
|
attr_accessor custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?
|
|
@@ -143,6 +158,7 @@ module Dodopayments
|
|
|
143
158
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
144
159
|
digital_products_delivered: bool,
|
|
145
160
|
disputes: ::Array[Dodopayments::Dispute],
|
|
161
|
+
includes_usage: bool,
|
|
146
162
|
is_multi_subscription: bool,
|
|
147
163
|
is_update_payment_method: bool,
|
|
148
164
|
metadata: Dodopayments::Models::metadata,
|
|
@@ -150,15 +166,19 @@ module Dodopayments
|
|
|
150
166
|
payment_provider: Dodopayments::Models::Payment::payment_provider,
|
|
151
167
|
refunds: ::Array[Dodopayments::RefundListItem],
|
|
152
168
|
retry_attempt: Integer,
|
|
169
|
+
service_periods: ::Array[Dodopayments::SubscriptionServicePeriod],
|
|
153
170
|
settlement_amount: Integer,
|
|
154
171
|
settlement_currency: Dodopayments::Models::currency,
|
|
155
172
|
subscription_ids: ::Array[String],
|
|
156
173
|
total_amount: Integer,
|
|
174
|
+
?card_exp_month: String?,
|
|
175
|
+
?card_exp_year: String?,
|
|
157
176
|
?card_holder_name: String?,
|
|
158
177
|
?card_issuing_country: Dodopayments::Models::country_code?,
|
|
159
178
|
?card_last_four: String?,
|
|
160
179
|
?card_network: String?,
|
|
161
180
|
?card_type: String?,
|
|
181
|
+
?charge_type: Dodopayments::Models::charge_type?,
|
|
162
182
|
?checkout_session_id: String?,
|
|
163
183
|
?custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
164
184
|
?discount_id: String?,
|
|
@@ -189,6 +209,7 @@ module Dodopayments
|
|
|
189
209
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
190
210
|
digital_products_delivered: bool,
|
|
191
211
|
disputes: ::Array[Dodopayments::Dispute],
|
|
212
|
+
includes_usage: bool,
|
|
192
213
|
is_multi_subscription: bool,
|
|
193
214
|
is_update_payment_method: bool,
|
|
194
215
|
metadata: Dodopayments::Models::metadata,
|
|
@@ -196,15 +217,19 @@ module Dodopayments
|
|
|
196
217
|
payment_provider: Dodopayments::Models::Payment::payment_provider,
|
|
197
218
|
refunds: ::Array[Dodopayments::RefundListItem],
|
|
198
219
|
retry_attempt: Integer,
|
|
220
|
+
service_periods: ::Array[Dodopayments::SubscriptionServicePeriod],
|
|
199
221
|
settlement_amount: Integer,
|
|
200
222
|
settlement_currency: Dodopayments::Models::currency,
|
|
201
223
|
subscription_ids: ::Array[String],
|
|
202
224
|
total_amount: Integer,
|
|
225
|
+
card_exp_month: String?,
|
|
226
|
+
card_exp_year: String?,
|
|
203
227
|
card_holder_name: String?,
|
|
204
228
|
card_issuing_country: Dodopayments::Models::country_code?,
|
|
205
229
|
card_last_four: String?,
|
|
206
230
|
card_network: String?,
|
|
207
231
|
card_type: String?,
|
|
232
|
+
charge_type: Dodopayments::Models::charge_type?,
|
|
208
233
|
checkout_session_id: String?,
|
|
209
234
|
custom_field_responses: ::Array[Dodopayments::CustomFieldResponse]?,
|
|
210
235
|
discount_id: String?,
|
|
@@ -8,14 +8,22 @@ 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,
|
|
14
15
|
payment_provider: Dodopayments::Models::PaymentListResponse::payment_provider,
|
|
16
|
+
retry_attempt: Integer,
|
|
17
|
+
service_periods: ::Array[Dodopayments::SubscriptionServicePeriod],
|
|
15
18
|
subscription_ids: ::Array[String],
|
|
16
19
|
total_amount: Integer,
|
|
20
|
+
card_exp_month: String?,
|
|
21
|
+
card_exp_year: String?,
|
|
17
22
|
card_last_four: String?,
|
|
18
23
|
card_network: String?,
|
|
24
|
+
card_type: String?,
|
|
25
|
+
charge_type: Dodopayments::Models::charge_type?,
|
|
26
|
+
checkout_session_id: String?,
|
|
19
27
|
dispute_status: Dodopayments::Models::dispute_status?,
|
|
20
28
|
invoice_id: String?,
|
|
21
29
|
invoice_url: String?,
|
|
@@ -39,6 +47,8 @@ module Dodopayments
|
|
|
39
47
|
|
|
40
48
|
attr_accessor has_license_key: bool
|
|
41
49
|
|
|
50
|
+
attr_accessor includes_usage: bool
|
|
51
|
+
|
|
42
52
|
attr_accessor is_multi_subscription: bool
|
|
43
53
|
|
|
44
54
|
attr_accessor metadata: Dodopayments::Models::metadata
|
|
@@ -47,14 +57,28 @@ module Dodopayments
|
|
|
47
57
|
|
|
48
58
|
attr_accessor payment_provider: Dodopayments::Models::PaymentListResponse::payment_provider
|
|
49
59
|
|
|
60
|
+
attr_accessor retry_attempt: Integer
|
|
61
|
+
|
|
62
|
+
attr_accessor service_periods: ::Array[Dodopayments::SubscriptionServicePeriod]
|
|
63
|
+
|
|
50
64
|
attr_accessor subscription_ids: ::Array[String]
|
|
51
65
|
|
|
52
66
|
attr_accessor total_amount: Integer
|
|
53
67
|
|
|
68
|
+
attr_accessor card_exp_month: String?
|
|
69
|
+
|
|
70
|
+
attr_accessor card_exp_year: String?
|
|
71
|
+
|
|
54
72
|
attr_accessor card_last_four: String?
|
|
55
73
|
|
|
56
74
|
attr_accessor card_network: String?
|
|
57
75
|
|
|
76
|
+
attr_accessor card_type: String?
|
|
77
|
+
|
|
78
|
+
attr_accessor charge_type: Dodopayments::Models::charge_type?
|
|
79
|
+
|
|
80
|
+
attr_accessor checkout_session_id: String?
|
|
81
|
+
|
|
58
82
|
attr_accessor dispute_status: Dodopayments::Models::dispute_status?
|
|
59
83
|
|
|
60
84
|
attr_accessor invoice_id: String?
|
|
@@ -78,14 +102,22 @@ module Dodopayments
|
|
|
78
102
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
79
103
|
digital_products_delivered: bool,
|
|
80
104
|
has_license_key: bool,
|
|
105
|
+
includes_usage: bool,
|
|
81
106
|
is_multi_subscription: bool,
|
|
82
107
|
metadata: Dodopayments::Models::metadata,
|
|
83
108
|
payment_id: String,
|
|
84
109
|
payment_provider: Dodopayments::Models::PaymentListResponse::payment_provider,
|
|
110
|
+
retry_attempt: Integer,
|
|
111
|
+
service_periods: ::Array[Dodopayments::SubscriptionServicePeriod],
|
|
85
112
|
subscription_ids: ::Array[String],
|
|
86
113
|
total_amount: Integer,
|
|
114
|
+
?card_exp_month: String?,
|
|
115
|
+
?card_exp_year: String?,
|
|
87
116
|
?card_last_four: String?,
|
|
88
117
|
?card_network: String?,
|
|
118
|
+
?card_type: String?,
|
|
119
|
+
?charge_type: Dodopayments::Models::charge_type?,
|
|
120
|
+
?checkout_session_id: String?,
|
|
89
121
|
?dispute_status: Dodopayments::Models::dispute_status?,
|
|
90
122
|
?invoice_id: String?,
|
|
91
123
|
?invoice_url: String?,
|
|
@@ -103,14 +135,22 @@ module Dodopayments
|
|
|
103
135
|
customer: Dodopayments::CustomerLimitedDetails,
|
|
104
136
|
digital_products_delivered: bool,
|
|
105
137
|
has_license_key: bool,
|
|
138
|
+
includes_usage: bool,
|
|
106
139
|
is_multi_subscription: bool,
|
|
107
140
|
metadata: Dodopayments::Models::metadata,
|
|
108
141
|
payment_id: String,
|
|
109
142
|
payment_provider: Dodopayments::Models::PaymentListResponse::payment_provider,
|
|
143
|
+
retry_attempt: Integer,
|
|
144
|
+
service_periods: ::Array[Dodopayments::SubscriptionServicePeriod],
|
|
110
145
|
subscription_ids: ::Array[String],
|
|
111
146
|
total_amount: Integer,
|
|
147
|
+
card_exp_month: String?,
|
|
148
|
+
card_exp_year: String?,
|
|
112
149
|
card_last_four: String?,
|
|
113
150
|
card_network: String?,
|
|
151
|
+
card_type: String?,
|
|
152
|
+
charge_type: Dodopayments::Models::charge_type?,
|
|
153
|
+
checkout_session_id: String?,
|
|
114
154
|
dispute_status: Dodopayments::Models::dispute_status?,
|
|
115
155
|
invoice_id: String?,
|
|
116
156
|
invoice_url: String?,
|
|
@@ -114,6 +114,7 @@ module Dodopayments
|
|
|
114
114
|
| :full_immediately
|
|
115
115
|
| :difference_immediately
|
|
116
116
|
| :do_not_bill
|
|
117
|
+
| :prorated_immediately_keep_cycle
|
|
117
118
|
|
|
118
119
|
module ProrationBillingModeOnDowngrade
|
|
119
120
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -122,6 +123,7 @@ module Dodopayments
|
|
|
122
123
|
FULL_IMMEDIATELY: :full_immediately
|
|
123
124
|
DIFFERENCE_IMMEDIATELY: :difference_immediately
|
|
124
125
|
DO_NOT_BILL: :do_not_bill
|
|
126
|
+
PRORATED_IMMEDIATELY_KEEP_CYCLE: :prorated_immediately_keep_cycle
|
|
125
127
|
|
|
126
128
|
def self?.values: -> ::Array[Dodopayments::Models::ProductCollection::proration_billing_mode_on_downgrade]
|
|
127
129
|
end
|
|
@@ -131,6 +133,7 @@ module Dodopayments
|
|
|
131
133
|
| :full_immediately
|
|
132
134
|
| :difference_immediately
|
|
133
135
|
| :do_not_bill
|
|
136
|
+
| :prorated_immediately_keep_cycle
|
|
134
137
|
|
|
135
138
|
module ProrationBillingModeOnUpgrade
|
|
136
139
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -139,6 +142,7 @@ module Dodopayments
|
|
|
139
142
|
FULL_IMMEDIATELY: :full_immediately
|
|
140
143
|
DIFFERENCE_IMMEDIATELY: :difference_immediately
|
|
141
144
|
DO_NOT_BILL: :do_not_bill
|
|
145
|
+
PRORATED_IMMEDIATELY_KEEP_CYCLE: :prorated_immediately_keep_cycle
|
|
142
146
|
|
|
143
147
|
def self?.values: -> ::Array[Dodopayments::Models::ProductCollection::proration_billing_mode_on_upgrade]
|
|
144
148
|
end
|
|
@@ -100,6 +100,7 @@ module Dodopayments
|
|
|
100
100
|
| :full_immediately
|
|
101
101
|
| :difference_immediately
|
|
102
102
|
| :do_not_bill
|
|
103
|
+
| :prorated_immediately_keep_cycle
|
|
103
104
|
|
|
104
105
|
module ProrationBillingModeOnDowngrade
|
|
105
106
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -108,6 +109,7 @@ module Dodopayments
|
|
|
108
109
|
FULL_IMMEDIATELY: :full_immediately
|
|
109
110
|
DIFFERENCE_IMMEDIATELY: :difference_immediately
|
|
110
111
|
DO_NOT_BILL: :do_not_bill
|
|
112
|
+
PRORATED_IMMEDIATELY_KEEP_CYCLE: :prorated_immediately_keep_cycle
|
|
111
113
|
|
|
112
114
|
def self?.values: -> ::Array[Dodopayments::Models::ProductCollectionCreateParams::proration_billing_mode_on_downgrade]
|
|
113
115
|
end
|
|
@@ -117,6 +119,7 @@ module Dodopayments
|
|
|
117
119
|
| :full_immediately
|
|
118
120
|
| :difference_immediately
|
|
119
121
|
| :do_not_bill
|
|
122
|
+
| :prorated_immediately_keep_cycle
|
|
120
123
|
|
|
121
124
|
module ProrationBillingModeOnUpgrade
|
|
122
125
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -125,6 +128,7 @@ module Dodopayments
|
|
|
125
128
|
FULL_IMMEDIATELY: :full_immediately
|
|
126
129
|
DIFFERENCE_IMMEDIATELY: :difference_immediately
|
|
127
130
|
DO_NOT_BILL: :do_not_bill
|
|
131
|
+
PRORATED_IMMEDIATELY_KEEP_CYCLE: :prorated_immediately_keep_cycle
|
|
128
132
|
|
|
129
133
|
def self?.values: -> ::Array[Dodopayments::Models::ProductCollectionCreateParams::proration_billing_mode_on_upgrade]
|
|
130
134
|
end
|