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
|
@@ -110,6 +110,7 @@ module Dodopayments
|
|
|
110
110
|
| :full_immediately
|
|
111
111
|
| :difference_immediately
|
|
112
112
|
| :do_not_bill
|
|
113
|
+
| :prorated_immediately_keep_cycle
|
|
113
114
|
|
|
114
115
|
module ProrationBillingModeOnDowngrade
|
|
115
116
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -118,6 +119,7 @@ module Dodopayments
|
|
|
118
119
|
FULL_IMMEDIATELY: :full_immediately
|
|
119
120
|
DIFFERENCE_IMMEDIATELY: :difference_immediately
|
|
120
121
|
DO_NOT_BILL: :do_not_bill
|
|
122
|
+
PRORATED_IMMEDIATELY_KEEP_CYCLE: :prorated_immediately_keep_cycle
|
|
121
123
|
|
|
122
124
|
def self?.values: -> ::Array[Dodopayments::Models::ProductCollectionUpdateParams::proration_billing_mode_on_downgrade]
|
|
123
125
|
end
|
|
@@ -127,6 +129,7 @@ module Dodopayments
|
|
|
127
129
|
| :full_immediately
|
|
128
130
|
| :difference_immediately
|
|
129
131
|
| :do_not_bill
|
|
132
|
+
| :prorated_immediately_keep_cycle
|
|
130
133
|
|
|
131
134
|
module ProrationBillingModeOnUpgrade
|
|
132
135
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -135,6 +138,7 @@ module Dodopayments
|
|
|
135
138
|
FULL_IMMEDIATELY: :full_immediately
|
|
136
139
|
DIFFERENCE_IMMEDIATELY: :difference_immediately
|
|
137
140
|
DO_NOT_BILL: :do_not_bill
|
|
141
|
+
PRORATED_IMMEDIATELY_KEEP_CYCLE: :prorated_immediately_keep_cycle
|
|
138
142
|
|
|
139
143
|
def self?.values: -> ::Array[Dodopayments::Models::ProductCollectionUpdateParams::proration_billing_mode_on_upgrade]
|
|
140
144
|
end
|
|
@@ -15,6 +15,7 @@ module Dodopayments
|
|
|
15
15
|
currency: Dodopayments::Models::currency?,
|
|
16
16
|
network_reference: String?,
|
|
17
17
|
network_reference_type: Dodopayments::Models::refund_network_reference_type?,
|
|
18
|
+
network_reference_updated_at: Time?,
|
|
18
19
|
reason: String?
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -45,6 +46,8 @@ module Dodopayments
|
|
|
45
46
|
|
|
46
47
|
attr_accessor network_reference_type: Dodopayments::Models::refund_network_reference_type?
|
|
47
48
|
|
|
49
|
+
attr_accessor network_reference_updated_at: Time?
|
|
50
|
+
|
|
48
51
|
attr_accessor reason: String?
|
|
49
52
|
|
|
50
53
|
def initialize: (
|
|
@@ -61,6 +64,7 @@ module Dodopayments
|
|
|
61
64
|
?currency: Dodopayments::Models::currency?,
|
|
62
65
|
?network_reference: String?,
|
|
63
66
|
?network_reference_type: Dodopayments::Models::refund_network_reference_type?,
|
|
67
|
+
?network_reference_updated_at: Time?,
|
|
64
68
|
?reason: String?
|
|
65
69
|
) -> void
|
|
66
70
|
|
|
@@ -78,6 +82,7 @@ module Dodopayments
|
|
|
78
82
|
currency: Dodopayments::Models::currency?,
|
|
79
83
|
network_reference: String?,
|
|
80
84
|
network_reference_type: Dodopayments::Models::refund_network_reference_type?,
|
|
85
|
+
network_reference_updated_at: Time?,
|
|
81
86
|
reason: String?
|
|
82
87
|
}
|
|
83
88
|
end
|
|
@@ -12,6 +12,7 @@ module Dodopayments
|
|
|
12
12
|
currency: Dodopayments::Models::currency?,
|
|
13
13
|
network_reference: String?,
|
|
14
14
|
network_reference_type: Dodopayments::Models::refund_network_reference_type?,
|
|
15
|
+
network_reference_updated_at: Time?,
|
|
15
16
|
reason: String?
|
|
16
17
|
}
|
|
17
18
|
|
|
@@ -36,6 +37,8 @@ module Dodopayments
|
|
|
36
37
|
|
|
37
38
|
attr_accessor network_reference_type: Dodopayments::Models::refund_network_reference_type?
|
|
38
39
|
|
|
40
|
+
attr_accessor network_reference_updated_at: Time?
|
|
41
|
+
|
|
39
42
|
attr_accessor reason: String?
|
|
40
43
|
|
|
41
44
|
def initialize: (
|
|
@@ -49,6 +52,7 @@ module Dodopayments
|
|
|
49
52
|
?currency: Dodopayments::Models::currency?,
|
|
50
53
|
?network_reference: String?,
|
|
51
54
|
?network_reference_type: Dodopayments::Models::refund_network_reference_type?,
|
|
55
|
+
?network_reference_updated_at: Time?,
|
|
52
56
|
?reason: String?
|
|
53
57
|
) -> void
|
|
54
58
|
|
|
@@ -63,6 +67,7 @@ module Dodopayments
|
|
|
63
67
|
currency: Dodopayments::Models::currency?,
|
|
64
68
|
network_reference: String?,
|
|
65
69
|
network_reference_type: Dodopayments::Models::refund_network_reference_type?,
|
|
70
|
+
network_reference_updated_at: Time?,
|
|
66
71
|
reason: String?
|
|
67
72
|
}
|
|
68
73
|
end
|
|
@@ -31,16 +31,20 @@ module Dodopayments
|
|
|
31
31
|
type: :"subscription.active"
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
type data = { past_due_ends_at: Time? }
|
|
34
|
+
type data = { past_due_ends_at: Time?, payment_id: String? }
|
|
35
35
|
|
|
36
36
|
class Data < Dodopayments::Models::Subscription
|
|
37
37
|
def past_due_ends_at: -> Time?
|
|
38
38
|
|
|
39
39
|
def past_due_ends_at=: (Time? _) -> Time?
|
|
40
40
|
|
|
41
|
-
def
|
|
41
|
+
def payment_id: -> String?
|
|
42
42
|
|
|
43
|
-
def
|
|
43
|
+
def payment_id=: (String? _) -> String?
|
|
44
|
+
|
|
45
|
+
def initialize: (?past_due_ends_at: Time?, ?payment_id: String?) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> { past_due_ends_at: Time?, payment_id: String? }
|
|
44
48
|
end
|
|
45
49
|
end
|
|
46
50
|
end
|
|
@@ -31,16 +31,20 @@ module Dodopayments
|
|
|
31
31
|
type: :"subscription.cancelled"
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
type data = { past_due_ends_at: Time? }
|
|
34
|
+
type data = { past_due_ends_at: Time?, payment_id: String? }
|
|
35
35
|
|
|
36
36
|
class Data < Dodopayments::Models::Subscription
|
|
37
37
|
def past_due_ends_at: -> Time?
|
|
38
38
|
|
|
39
39
|
def past_due_ends_at=: (Time? _) -> Time?
|
|
40
40
|
|
|
41
|
-
def
|
|
41
|
+
def payment_id: -> String?
|
|
42
42
|
|
|
43
|
-
def
|
|
43
|
+
def payment_id=: (String? _) -> String?
|
|
44
|
+
|
|
45
|
+
def initialize: (?past_due_ends_at: Time?, ?payment_id: String?) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> { past_due_ends_at: Time?, payment_id: String? }
|
|
44
48
|
end
|
|
45
49
|
end
|
|
46
50
|
end
|
|
@@ -31,16 +31,20 @@ module Dodopayments
|
|
|
31
31
|
type: :"subscription.expired"
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
type data = { past_due_ends_at: Time? }
|
|
34
|
+
type data = { past_due_ends_at: Time?, payment_id: String? }
|
|
35
35
|
|
|
36
36
|
class Data < Dodopayments::Models::Subscription
|
|
37
37
|
def past_due_ends_at: -> Time?
|
|
38
38
|
|
|
39
39
|
def past_due_ends_at=: (Time? _) -> Time?
|
|
40
40
|
|
|
41
|
-
def
|
|
41
|
+
def payment_id: -> String?
|
|
42
42
|
|
|
43
|
-
def
|
|
43
|
+
def payment_id=: (String? _) -> String?
|
|
44
|
+
|
|
45
|
+
def initialize: (?past_due_ends_at: Time?, ?payment_id: String?) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> { past_due_ends_at: Time?, payment_id: String? }
|
|
44
48
|
end
|
|
45
49
|
end
|
|
46
50
|
end
|
|
@@ -31,16 +31,20 @@ module Dodopayments
|
|
|
31
31
|
type: :"subscription.failed"
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
type data = { past_due_ends_at: Time? }
|
|
34
|
+
type data = { past_due_ends_at: Time?, payment_id: String? }
|
|
35
35
|
|
|
36
36
|
class Data < Dodopayments::Models::Subscription
|
|
37
37
|
def past_due_ends_at: -> Time?
|
|
38
38
|
|
|
39
39
|
def past_due_ends_at=: (Time? _) -> Time?
|
|
40
40
|
|
|
41
|
-
def
|
|
41
|
+
def payment_id: -> String?
|
|
42
42
|
|
|
43
|
-
def
|
|
43
|
+
def payment_id=: (String? _) -> String?
|
|
44
|
+
|
|
45
|
+
def initialize: (?past_due_ends_at: Time?, ?payment_id: String?) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> { past_due_ends_at: Time?, payment_id: String? }
|
|
44
48
|
end
|
|
45
49
|
end
|
|
46
50
|
end
|
|
@@ -31,16 +31,20 @@ module Dodopayments
|
|
|
31
31
|
type: :"subscription.on_hold"
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
type data = { past_due_ends_at: Time? }
|
|
34
|
+
type data = { past_due_ends_at: Time?, payment_id: String? }
|
|
35
35
|
|
|
36
36
|
class Data < Dodopayments::Models::Subscription
|
|
37
37
|
def past_due_ends_at: -> Time?
|
|
38
38
|
|
|
39
39
|
def past_due_ends_at=: (Time? _) -> Time?
|
|
40
40
|
|
|
41
|
-
def
|
|
41
|
+
def payment_id: -> String?
|
|
42
42
|
|
|
43
|
-
def
|
|
43
|
+
def payment_id=: (String? _) -> String?
|
|
44
|
+
|
|
45
|
+
def initialize: (?past_due_ends_at: Time?, ?payment_id: String?) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> { past_due_ends_at: Time?, payment_id: String? }
|
|
44
48
|
end
|
|
45
49
|
end
|
|
46
50
|
end
|
|
@@ -31,16 +31,20 @@ module Dodopayments
|
|
|
31
31
|
type: :"subscription.past_due"
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
type data = { past_due_ends_at: Time? }
|
|
34
|
+
type data = { past_due_ends_at: Time?, payment_id: String? }
|
|
35
35
|
|
|
36
36
|
class Data < Dodopayments::Models::Subscription
|
|
37
37
|
def past_due_ends_at: -> Time?
|
|
38
38
|
|
|
39
39
|
def past_due_ends_at=: (Time? _) -> Time?
|
|
40
40
|
|
|
41
|
-
def
|
|
41
|
+
def payment_id: -> String?
|
|
42
42
|
|
|
43
|
-
def
|
|
43
|
+
def payment_id=: (String? _) -> String?
|
|
44
|
+
|
|
45
|
+
def initialize: (?past_due_ends_at: Time?, ?payment_id: String?) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> { past_due_ends_at: Time?, payment_id: String? }
|
|
44
48
|
end
|
|
45
49
|
end
|
|
46
50
|
end
|
|
@@ -31,16 +31,20 @@ module Dodopayments
|
|
|
31
31
|
type: :"subscription.paused"
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
type data = { past_due_ends_at: Time? }
|
|
34
|
+
type data = { past_due_ends_at: Time?, payment_id: String? }
|
|
35
35
|
|
|
36
36
|
class Data < Dodopayments::Models::Subscription
|
|
37
37
|
def past_due_ends_at: -> Time?
|
|
38
38
|
|
|
39
39
|
def past_due_ends_at=: (Time? _) -> Time?
|
|
40
40
|
|
|
41
|
-
def
|
|
41
|
+
def payment_id: -> String?
|
|
42
42
|
|
|
43
|
-
def
|
|
43
|
+
def payment_id=: (String? _) -> String?
|
|
44
|
+
|
|
45
|
+
def initialize: (?past_due_ends_at: Time?, ?payment_id: String?) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> { past_due_ends_at: Time?, payment_id: String? }
|
|
44
48
|
end
|
|
45
49
|
end
|
|
46
50
|
end
|
|
@@ -31,16 +31,20 @@ module Dodopayments
|
|
|
31
31
|
type: :"subscription.plan_changed"
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
type data = { past_due_ends_at: Time? }
|
|
34
|
+
type data = { past_due_ends_at: Time?, payment_id: String? }
|
|
35
35
|
|
|
36
36
|
class Data < Dodopayments::Models::Subscription
|
|
37
37
|
def past_due_ends_at: -> Time?
|
|
38
38
|
|
|
39
39
|
def past_due_ends_at=: (Time? _) -> Time?
|
|
40
40
|
|
|
41
|
-
def
|
|
41
|
+
def payment_id: -> String?
|
|
42
42
|
|
|
43
|
-
def
|
|
43
|
+
def payment_id=: (String? _) -> String?
|
|
44
|
+
|
|
45
|
+
def initialize: (?past_due_ends_at: Time?, ?payment_id: String?) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> { past_due_ends_at: Time?, payment_id: String? }
|
|
44
48
|
end
|
|
45
49
|
end
|
|
46
50
|
end
|
|
@@ -31,16 +31,20 @@ module Dodopayments
|
|
|
31
31
|
type: :"subscription.renewed"
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
type data = { past_due_ends_at: Time? }
|
|
34
|
+
type data = { past_due_ends_at: Time?, payment_id: String? }
|
|
35
35
|
|
|
36
36
|
class Data < Dodopayments::Models::Subscription
|
|
37
37
|
def past_due_ends_at: -> Time?
|
|
38
38
|
|
|
39
39
|
def past_due_ends_at=: (Time? _) -> Time?
|
|
40
40
|
|
|
41
|
-
def
|
|
41
|
+
def payment_id: -> String?
|
|
42
42
|
|
|
43
|
-
def
|
|
43
|
+
def payment_id=: (String? _) -> String?
|
|
44
|
+
|
|
45
|
+
def initialize: (?past_due_ends_at: Time?, ?payment_id: String?) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> { past_due_ends_at: Time?, payment_id: String? }
|
|
44
48
|
end
|
|
45
49
|
end
|
|
46
50
|
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
module Dodopayments
|
|
2
|
+
module Models
|
|
3
|
+
type subscription_service_period =
|
|
4
|
+
{
|
|
5
|
+
ends_at: Time,
|
|
6
|
+
proration_factor: String,
|
|
7
|
+
starts_at: Time,
|
|
8
|
+
subscription_id: String
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
class SubscriptionServicePeriod < Dodopayments::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor ends_at: Time
|
|
13
|
+
|
|
14
|
+
attr_accessor proration_factor: String
|
|
15
|
+
|
|
16
|
+
attr_accessor starts_at: Time
|
|
17
|
+
|
|
18
|
+
attr_accessor subscription_id: String
|
|
19
|
+
|
|
20
|
+
def initialize: (
|
|
21
|
+
ends_at: Time,
|
|
22
|
+
proration_factor: String,
|
|
23
|
+
starts_at: Time,
|
|
24
|
+
subscription_id: String
|
|
25
|
+
) -> void
|
|
26
|
+
|
|
27
|
+
def to_hash: -> {
|
|
28
|
+
ends_at: Time,
|
|
29
|
+
proration_factor: String,
|
|
30
|
+
starts_at: Time,
|
|
31
|
+
subscription_id: String
|
|
32
|
+
}
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -31,16 +31,20 @@ module Dodopayments
|
|
|
31
31
|
type: :"subscription.unpaused"
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
type data = { past_due_ends_at: Time? }
|
|
34
|
+
type data = { past_due_ends_at: Time?, payment_id: String? }
|
|
35
35
|
|
|
36
36
|
class Data < Dodopayments::Models::Subscription
|
|
37
37
|
def past_due_ends_at: -> Time?
|
|
38
38
|
|
|
39
39
|
def past_due_ends_at=: (Time? _) -> Time?
|
|
40
40
|
|
|
41
|
-
def
|
|
41
|
+
def payment_id: -> String?
|
|
42
42
|
|
|
43
|
-
def
|
|
43
|
+
def payment_id=: (String? _) -> String?
|
|
44
|
+
|
|
45
|
+
def initialize: (?past_due_ends_at: Time?, ?payment_id: String?) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> { past_due_ends_at: Time?, payment_id: String? }
|
|
44
48
|
end
|
|
45
49
|
end
|
|
46
50
|
end
|
|
@@ -31,16 +31,20 @@ module Dodopayments
|
|
|
31
31
|
type: :"subscription.update_payment_method"
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
type data = { past_due_ends_at: Time? }
|
|
34
|
+
type data = { past_due_ends_at: Time?, payment_id: String? }
|
|
35
35
|
|
|
36
36
|
class Data < Dodopayments::Models::Subscription
|
|
37
37
|
def past_due_ends_at: -> Time?
|
|
38
38
|
|
|
39
39
|
def past_due_ends_at=: (Time? _) -> Time?
|
|
40
40
|
|
|
41
|
-
def
|
|
41
|
+
def payment_id: -> String?
|
|
42
42
|
|
|
43
|
-
def
|
|
43
|
+
def payment_id=: (String? _) -> String?
|
|
44
|
+
|
|
45
|
+
def initialize: (?past_due_ends_at: Time?, ?payment_id: String?) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> { past_due_ends_at: Time?, payment_id: String? }
|
|
44
48
|
end
|
|
45
49
|
end
|
|
46
50
|
end
|
|
@@ -31,16 +31,20 @@ module Dodopayments
|
|
|
31
31
|
type: :"subscription.updated"
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
type data = { past_due_ends_at: Time? }
|
|
34
|
+
type data = { past_due_ends_at: Time?, payment_id: String? }
|
|
35
35
|
|
|
36
36
|
class Data < Dodopayments::Models::Subscription
|
|
37
37
|
def past_due_ends_at: -> Time?
|
|
38
38
|
|
|
39
39
|
def past_due_ends_at=: (Time? _) -> Time?
|
|
40
40
|
|
|
41
|
-
def
|
|
41
|
+
def payment_id: -> String?
|
|
42
42
|
|
|
43
|
-
def
|
|
43
|
+
def payment_id=: (String? _) -> String?
|
|
44
|
+
|
|
45
|
+
def initialize: (?past_due_ends_at: Time?, ?payment_id: String?) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> { past_due_ends_at: Time?, payment_id: String? }
|
|
44
48
|
end
|
|
45
49
|
end
|
|
46
50
|
end
|
|
@@ -96,6 +96,7 @@ module Dodopayments
|
|
|
96
96
|
| :full_immediately
|
|
97
97
|
| :difference_immediately
|
|
98
98
|
| :do_not_bill
|
|
99
|
+
| :prorated_immediately_keep_cycle
|
|
99
100
|
|
|
100
101
|
module ProrationBillingMode
|
|
101
102
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -104,6 +105,7 @@ module Dodopayments
|
|
|
104
105
|
FULL_IMMEDIATELY: :full_immediately
|
|
105
106
|
DIFFERENCE_IMMEDIATELY: :difference_immediately
|
|
106
107
|
DO_NOT_BILL: :do_not_bill
|
|
108
|
+
PRORATED_IMMEDIATELY_KEEP_CYCLE: :prorated_immediately_keep_cycle
|
|
107
109
|
|
|
108
110
|
def self?.values: -> ::Array[Dodopayments::Models::UpdateSubscriptionPlanReq::proration_billing_mode]
|
|
109
111
|
end
|
|
@@ -60,7 +60,11 @@ module Dodopayments
|
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
type subscription =
|
|
63
|
-
{
|
|
63
|
+
{
|
|
64
|
+
payload_type: :Subscription,
|
|
65
|
+
past_due_ends_at: Time?,
|
|
66
|
+
payment_id: String?
|
|
67
|
+
}
|
|
64
68
|
|
|
65
69
|
class Subscription < Dodopayments::Models::Subscription
|
|
66
70
|
def payload_type: -> :Subscription
|
|
@@ -71,14 +75,20 @@ module Dodopayments
|
|
|
71
75
|
|
|
72
76
|
def past_due_ends_at=: (Time? _) -> Time?
|
|
73
77
|
|
|
78
|
+
def payment_id: -> String?
|
|
79
|
+
|
|
80
|
+
def payment_id=: (String? _) -> String?
|
|
81
|
+
|
|
74
82
|
def initialize: (
|
|
75
83
|
?past_due_ends_at: Time?,
|
|
84
|
+
?payment_id: String?,
|
|
76
85
|
?payload_type: :Subscription
|
|
77
86
|
) -> void
|
|
78
87
|
|
|
79
88
|
def to_hash: -> {
|
|
80
89
|
payload_type: :Subscription,
|
|
81
|
-
past_due_ends_at: Time
|
|
90
|
+
past_due_ends_at: Time?,
|
|
91
|
+
payment_id: String?
|
|
82
92
|
}
|
|
83
93
|
end
|
|
84
94
|
|
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
|
|
@@ -473,6 +475,8 @@ module Dodopayments
|
|
|
473
475
|
|
|
474
476
|
class SubscriptionRetrieveUsageHistoryParams = Dodopayments::Models::SubscriptionRetrieveUsageHistoryParams
|
|
475
477
|
|
|
478
|
+
class SubscriptionServicePeriod = Dodopayments::Models::SubscriptionServicePeriod
|
|
479
|
+
|
|
476
480
|
module SubscriptionStatus = Dodopayments::Models::SubscriptionStatus
|
|
477
481
|
|
|
478
482
|
class SubscriptionUnpausedWebhookEvent = Dodopayments::Models::SubscriptionUnpausedWebhookEvent
|
|
@@ -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
|
|
@@ -422,6 +423,7 @@ files:
|
|
|
422
423
|
- lib/dodopayments/models/subscription_retrieve_params.rb
|
|
423
424
|
- lib/dodopayments/models/subscription_retrieve_usage_history_params.rb
|
|
424
425
|
- lib/dodopayments/models/subscription_retrieve_usage_history_response.rb
|
|
426
|
+
- lib/dodopayments/models/subscription_service_period.rb
|
|
425
427
|
- lib/dodopayments/models/subscription_status.rb
|
|
426
428
|
- lib/dodopayments/models/subscription_unpaused_webhook_event.rb
|
|
427
429
|
- lib/dodopayments/models/subscription_update_params.rb
|
|
@@ -568,6 +570,7 @@ files:
|
|
|
568
570
|
- rbi/dodopayments/models/cancellation_feedback.rbi
|
|
569
571
|
- rbi/dodopayments/models/cbb_overage_behavior.rbi
|
|
570
572
|
- rbi/dodopayments/models/cbb_proration_behavior.rbi
|
|
573
|
+
- rbi/dodopayments/models/charge_type.rbi
|
|
571
574
|
- rbi/dodopayments/models/checkout_session_billing_address.rbi
|
|
572
575
|
- rbi/dodopayments/models/checkout_session_create_params.rbi
|
|
573
576
|
- rbi/dodopayments/models/checkout_session_customization.rbi
|
|
@@ -860,6 +863,7 @@ files:
|
|
|
860
863
|
- rbi/dodopayments/models/subscription_retrieve_params.rbi
|
|
861
864
|
- rbi/dodopayments/models/subscription_retrieve_usage_history_params.rbi
|
|
862
865
|
- rbi/dodopayments/models/subscription_retrieve_usage_history_response.rbi
|
|
866
|
+
- rbi/dodopayments/models/subscription_service_period.rbi
|
|
863
867
|
- rbi/dodopayments/models/subscription_status.rbi
|
|
864
868
|
- rbi/dodopayments/models/subscription_unpaused_webhook_event.rbi
|
|
865
869
|
- rbi/dodopayments/models/subscription_update_params.rbi
|
|
@@ -1005,6 +1009,7 @@ files:
|
|
|
1005
1009
|
- sig/dodopayments/models/cancellation_feedback.rbs
|
|
1006
1010
|
- sig/dodopayments/models/cbb_overage_behavior.rbs
|
|
1007
1011
|
- sig/dodopayments/models/cbb_proration_behavior.rbs
|
|
1012
|
+
- sig/dodopayments/models/charge_type.rbs
|
|
1008
1013
|
- sig/dodopayments/models/checkout_session_billing_address.rbs
|
|
1009
1014
|
- sig/dodopayments/models/checkout_session_create_params.rbs
|
|
1010
1015
|
- sig/dodopayments/models/checkout_session_customization.rbs
|
|
@@ -1297,6 +1302,7 @@ files:
|
|
|
1297
1302
|
- sig/dodopayments/models/subscription_retrieve_params.rbs
|
|
1298
1303
|
- sig/dodopayments/models/subscription_retrieve_usage_history_params.rbs
|
|
1299
1304
|
- sig/dodopayments/models/subscription_retrieve_usage_history_response.rbs
|
|
1305
|
+
- sig/dodopayments/models/subscription_service_period.rbs
|
|
1300
1306
|
- sig/dodopayments/models/subscription_status.rbs
|
|
1301
1307
|
- sig/dodopayments/models/subscription_unpaused_webhook_event.rbs
|
|
1302
1308
|
- sig/dodopayments/models/subscription_update_params.rbs
|