dodopayments 1.70.0 → 1.71.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 +18 -0
- data/README.md +10 -1
- data/lib/dodopayments/models/customer_retrieve_payment_methods_response.rb +9 -18
- data/lib/dodopayments/models/dispute_accepted_webhook_event.rb +3 -28
- data/lib/dodopayments/models/dispute_cancelled_webhook_event.rb +3 -28
- data/lib/dodopayments/models/dispute_challenged_webhook_event.rb +3 -28
- data/lib/dodopayments/models/dispute_expired_webhook_event.rb +3 -28
- data/lib/dodopayments/models/dispute_lost_webhook_event.rb +3 -28
- data/lib/dodopayments/models/dispute_opened_webhook_event.rb +3 -28
- data/lib/dodopayments/models/dispute_won_webhook_event.rb +3 -28
- data/lib/dodopayments/models/license_key_created_webhook_event.rb +3 -28
- data/lib/dodopayments/models/payment.rb +9 -1
- data/lib/dodopayments/models/payment_cancelled_webhook_event.rb +3 -28
- data/lib/dodopayments/models/payment_failed_webhook_event.rb +3 -28
- data/lib/dodopayments/models/payment_method_types.rb +98 -13
- data/lib/dodopayments/models/payment_processing_webhook_event.rb +3 -28
- data/lib/dodopayments/models/payment_succeeded_webhook_event.rb +3 -28
- data/lib/dodopayments/models/refund_failed_webhook_event.rb +3 -28
- data/lib/dodopayments/models/refund_succeeded_webhook_event.rb +3 -28
- data/lib/dodopayments/models/subscription_active_webhook_event.rb +4 -28
- data/lib/dodopayments/models/subscription_cancelled_webhook_event.rb +4 -28
- data/lib/dodopayments/models/subscription_expired_webhook_event.rb +4 -28
- data/lib/dodopayments/models/subscription_failed_webhook_event.rb +4 -28
- data/lib/dodopayments/models/subscription_on_hold_webhook_event.rb +4 -28
- data/lib/dodopayments/models/subscription_plan_changed_webhook_event.rb +4 -28
- data/lib/dodopayments/models/subscription_renewed_webhook_event.rb +4 -28
- data/lib/dodopayments/models/subscription_updated_webhook_event.rb +4 -28
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +3 -3
- data/rbi/dodopayments/models/customer_retrieve_payment_methods_response.rbi +6 -9
- data/rbi/dodopayments/models/dispute_accepted_webhook_event.rbi +4 -92
- data/rbi/dodopayments/models/dispute_cancelled_webhook_event.rbi +4 -92
- data/rbi/dodopayments/models/dispute_challenged_webhook_event.rbi +4 -92
- data/rbi/dodopayments/models/dispute_expired_webhook_event.rbi +4 -92
- data/rbi/dodopayments/models/dispute_lost_webhook_event.rbi +4 -90
- data/rbi/dodopayments/models/dispute_opened_webhook_event.rbi +4 -90
- data/rbi/dodopayments/models/dispute_won_webhook_event.rbi +4 -90
- data/rbi/dodopayments/models/license_key_created_webhook_event.rbi +4 -92
- data/rbi/dodopayments/models/payment.rbi +8 -0
- data/rbi/dodopayments/models/payment_cancelled_webhook_event.rbi +4 -92
- data/rbi/dodopayments/models/payment_failed_webhook_event.rbi +4 -90
- data/rbi/dodopayments/models/payment_method_types.rbi +186 -18
- data/rbi/dodopayments/models/payment_processing_webhook_event.rbi +4 -92
- data/rbi/dodopayments/models/payment_succeeded_webhook_event.rbi +4 -92
- data/rbi/dodopayments/models/refund_failed_webhook_event.rbi +4 -90
- data/rbi/dodopayments/models/refund_succeeded_webhook_event.rbi +4 -92
- data/rbi/dodopayments/models/subscription_active_webhook_event.rbi +6 -92
- data/rbi/dodopayments/models/subscription_cancelled_webhook_event.rbi +6 -92
- data/rbi/dodopayments/models/subscription_expired_webhook_event.rbi +6 -92
- data/rbi/dodopayments/models/subscription_failed_webhook_event.rbi +6 -92
- data/rbi/dodopayments/models/subscription_on_hold_webhook_event.rbi +6 -92
- data/rbi/dodopayments/models/subscription_plan_changed_webhook_event.rbi +6 -92
- data/rbi/dodopayments/models/subscription_renewed_webhook_event.rbi +6 -92
- data/rbi/dodopayments/models/subscription_updated_webhook_event.rbi +6 -92
- data/sig/dodopayments/models/customer_retrieve_payment_methods_response.rbs +5 -0
- data/sig/dodopayments/models/dispute_accepted_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/dispute_cancelled_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/dispute_challenged_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/dispute_expired_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/dispute_lost_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/dispute_opened_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/dispute_won_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/license_key_created_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/payment.rbs +5 -0
- data/sig/dodopayments/models/payment_cancelled_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/payment_failed_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/payment_method_types.rbs +196 -26
- data/sig/dodopayments/models/payment_processing_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/payment_succeeded_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/refund_failed_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/refund_succeeded_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/subscription_active_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/subscription_cancelled_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/subscription_expired_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/subscription_failed_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/subscription_on_hold_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/subscription_plan_changed_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/subscription_renewed_webhook_event.rbs +4 -35
- data/sig/dodopayments/models/subscription_updated_webhook_event.rbs +4 -35
- metadata +2 -2
|
@@ -10,10 +10,10 @@ module Dodopayments
|
|
|
10
10
|
required :business_id, String
|
|
11
11
|
|
|
12
12
|
# @!attribute data
|
|
13
|
-
#
|
|
13
|
+
# Response struct representing subscription details
|
|
14
14
|
#
|
|
15
|
-
# @return [Dodopayments::Models::
|
|
16
|
-
required :data, -> { Dodopayments::
|
|
15
|
+
# @return [Dodopayments::Models::Subscription]
|
|
16
|
+
required :data, -> { Dodopayments::Subscription }
|
|
17
17
|
|
|
18
18
|
# @!attribute timestamp
|
|
19
19
|
# The timestamp of when the event occurred
|
|
@@ -30,36 +30,12 @@ module Dodopayments
|
|
|
30
30
|
# @!method initialize(business_id:, data:, timestamp:, type:)
|
|
31
31
|
# @param business_id [String] The business identifier
|
|
32
32
|
#
|
|
33
|
-
# @param data [Dodopayments::Models::
|
|
33
|
+
# @param data [Dodopayments::Models::Subscription] Response struct representing subscription details
|
|
34
34
|
#
|
|
35
35
|
# @param timestamp [Time] The timestamp of when the event occurred
|
|
36
36
|
#
|
|
37
37
|
# @param type [Symbol, Dodopayments::Models::SubscriptionRenewedWebhookEvent::Type] The event type
|
|
38
38
|
|
|
39
|
-
# @see Dodopayments::Models::SubscriptionRenewedWebhookEvent#data
|
|
40
|
-
class Data < Dodopayments::Models::Subscription
|
|
41
|
-
# @!attribute payload_type
|
|
42
|
-
# The type of payload in the data field
|
|
43
|
-
#
|
|
44
|
-
# @return [Symbol, Dodopayments::Models::SubscriptionRenewedWebhookEvent::Data::PayloadType, nil]
|
|
45
|
-
optional :payload_type, enum: -> { Dodopayments::SubscriptionRenewedWebhookEvent::Data::PayloadType }
|
|
46
|
-
|
|
47
|
-
# @!method initialize(payload_type: nil)
|
|
48
|
-
# Event-specific data
|
|
49
|
-
#
|
|
50
|
-
# @param payload_type [Symbol, Dodopayments::Models::SubscriptionRenewedWebhookEvent::Data::PayloadType] The type of payload in the data field
|
|
51
|
-
|
|
52
|
-
# The type of payload in the data field
|
|
53
|
-
module PayloadType
|
|
54
|
-
extend Dodopayments::Internal::Type::Enum
|
|
55
|
-
|
|
56
|
-
SUBSCRIPTION = :Subscription
|
|
57
|
-
|
|
58
|
-
# @!method self.values
|
|
59
|
-
# @return [Array<Symbol>]
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
|
|
63
39
|
# The event type
|
|
64
40
|
#
|
|
65
41
|
# @see Dodopayments::Models::SubscriptionRenewedWebhookEvent#type
|
|
@@ -10,10 +10,10 @@ module Dodopayments
|
|
|
10
10
|
required :business_id, String
|
|
11
11
|
|
|
12
12
|
# @!attribute data
|
|
13
|
-
#
|
|
13
|
+
# Response struct representing subscription details
|
|
14
14
|
#
|
|
15
|
-
# @return [Dodopayments::Models::
|
|
16
|
-
required :data, -> { Dodopayments::
|
|
15
|
+
# @return [Dodopayments::Models::Subscription]
|
|
16
|
+
required :data, -> { Dodopayments::Subscription }
|
|
17
17
|
|
|
18
18
|
# @!attribute timestamp
|
|
19
19
|
# The timestamp of when the event occurred
|
|
@@ -30,36 +30,12 @@ module Dodopayments
|
|
|
30
30
|
# @!method initialize(business_id:, data:, timestamp:, type:)
|
|
31
31
|
# @param business_id [String] The business identifier
|
|
32
32
|
#
|
|
33
|
-
# @param data [Dodopayments::Models::
|
|
33
|
+
# @param data [Dodopayments::Models::Subscription] Response struct representing subscription details
|
|
34
34
|
#
|
|
35
35
|
# @param timestamp [Time] The timestamp of when the event occurred
|
|
36
36
|
#
|
|
37
37
|
# @param type [Symbol, Dodopayments::Models::SubscriptionUpdatedWebhookEvent::Type] The event type
|
|
38
38
|
|
|
39
|
-
# @see Dodopayments::Models::SubscriptionUpdatedWebhookEvent#data
|
|
40
|
-
class Data < Dodopayments::Models::Subscription
|
|
41
|
-
# @!attribute payload_type
|
|
42
|
-
# The type of payload in the data field
|
|
43
|
-
#
|
|
44
|
-
# @return [Symbol, Dodopayments::Models::SubscriptionUpdatedWebhookEvent::Data::PayloadType, nil]
|
|
45
|
-
optional :payload_type, enum: -> { Dodopayments::SubscriptionUpdatedWebhookEvent::Data::PayloadType }
|
|
46
|
-
|
|
47
|
-
# @!method initialize(payload_type: nil)
|
|
48
|
-
# Event-specific data
|
|
49
|
-
#
|
|
50
|
-
# @param payload_type [Symbol, Dodopayments::Models::SubscriptionUpdatedWebhookEvent::Data::PayloadType] The type of payload in the data field
|
|
51
|
-
|
|
52
|
-
# The type of payload in the data field
|
|
53
|
-
module PayloadType
|
|
54
|
-
extend Dodopayments::Internal::Type::Enum
|
|
55
|
-
|
|
56
|
-
SUBSCRIPTION = :Subscription
|
|
57
|
-
|
|
58
|
-
# @!method self.values
|
|
59
|
-
# @return [Array<Symbol>]
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
|
|
63
39
|
# The event type
|
|
64
40
|
#
|
|
65
41
|
# @see Dodopayments::Models::SubscriptionUpdatedWebhookEvent#type
|
data/lib/dodopayments/version.rb
CHANGED
data/lib/dodopayments.rb
CHANGED
|
@@ -55,12 +55,11 @@ require_relative "dodopayments/client"
|
|
|
55
55
|
require_relative "dodopayments/internal/cursor_page_pagination"
|
|
56
56
|
require_relative "dodopayments/internal/default_page_number_pagination"
|
|
57
57
|
require_relative "dodopayments/models/checkout_session_request"
|
|
58
|
-
require_relative "dodopayments/models/dispute"
|
|
59
58
|
require_relative "dodopayments/models/license_key"
|
|
60
|
-
require_relative "dodopayments/models/
|
|
59
|
+
require_relative "dodopayments/models/get_dispute"
|
|
61
60
|
require_relative "dodopayments/models/refund"
|
|
62
61
|
require_relative "dodopayments/models/subscription"
|
|
63
|
-
require_relative "dodopayments/models/
|
|
62
|
+
require_relative "dodopayments/models/payment"
|
|
64
63
|
require_relative "dodopayments/models/add_meter_to_price"
|
|
65
64
|
require_relative "dodopayments/models/addon_cart_response_item"
|
|
66
65
|
require_relative "dodopayments/models/addon_create_params"
|
|
@@ -112,6 +111,7 @@ require_relative "dodopayments/models/discount_list_params"
|
|
|
112
111
|
require_relative "dodopayments/models/discount_retrieve_params"
|
|
113
112
|
require_relative "dodopayments/models/discount_type"
|
|
114
113
|
require_relative "dodopayments/models/discount_update_params"
|
|
114
|
+
require_relative "dodopayments/models/dispute"
|
|
115
115
|
require_relative "dodopayments/models/dispute_accepted_webhook_event"
|
|
116
116
|
require_relative "dodopayments/models/dispute_accepted_webhook_event"
|
|
117
117
|
require_relative "dodopayments/models/dispute_cancelled_webhook_event"
|
|
@@ -53,9 +53,6 @@ module Dodopayments
|
|
|
53
53
|
)
|
|
54
54
|
end
|
|
55
55
|
|
|
56
|
-
# PaymentMethod enum from hyperswitch
|
|
57
|
-
#
|
|
58
|
-
# https://github.com/juspay/hyperswitch/blob/ecd05d53c99ae701ac94893ec632a3988afe3238/crates/common_enums/src/enums.rs#L2097
|
|
59
56
|
sig do
|
|
60
57
|
returns(
|
|
61
58
|
Dodopayments::Models::CustomerRetrievePaymentMethodsResponse::Item::PaymentMethod::TaggedSymbol
|
|
@@ -112,9 +109,6 @@ module Dodopayments
|
|
|
112
109
|
).returns(T.attached_class)
|
|
113
110
|
end
|
|
114
111
|
def self.new(
|
|
115
|
-
# PaymentMethod enum from hyperswitch
|
|
116
|
-
#
|
|
117
|
-
# https://github.com/juspay/hyperswitch/blob/ecd05d53c99ae701ac94893ec632a3988afe3238/crates/common_enums/src/enums.rs#L2097
|
|
118
112
|
payment_method:,
|
|
119
113
|
payment_method_id:,
|
|
120
114
|
card: nil,
|
|
@@ -144,9 +138,6 @@ module Dodopayments
|
|
|
144
138
|
def to_hash
|
|
145
139
|
end
|
|
146
140
|
|
|
147
|
-
# PaymentMethod enum from hyperswitch
|
|
148
|
-
#
|
|
149
|
-
# https://github.com/juspay/hyperswitch/blob/ecd05d53c99ae701ac94893ec632a3988afe3238/crates/common_enums/src/enums.rs#L2097
|
|
150
141
|
module PaymentMethod
|
|
151
142
|
extend Dodopayments::Internal::Type::Enum
|
|
152
143
|
|
|
@@ -255,6 +246,9 @@ module Dodopayments
|
|
|
255
246
|
)
|
|
256
247
|
end
|
|
257
248
|
|
|
249
|
+
sig { returns(T.nilable(String)) }
|
|
250
|
+
attr_accessor :card_holder_name
|
|
251
|
+
|
|
258
252
|
# ISO country code alpha2 variant
|
|
259
253
|
sig { returns(T.nilable(Dodopayments::CountryCode::TaggedSymbol)) }
|
|
260
254
|
attr_accessor :card_issuing_country
|
|
@@ -276,6 +270,7 @@ module Dodopayments
|
|
|
276
270
|
|
|
277
271
|
sig do
|
|
278
272
|
params(
|
|
273
|
+
card_holder_name: T.nilable(String),
|
|
279
274
|
card_issuing_country:
|
|
280
275
|
T.nilable(Dodopayments::CountryCode::OrSymbol),
|
|
281
276
|
card_network: T.nilable(String),
|
|
@@ -286,6 +281,7 @@ module Dodopayments
|
|
|
286
281
|
).returns(T.attached_class)
|
|
287
282
|
end
|
|
288
283
|
def self.new(
|
|
284
|
+
card_holder_name: nil,
|
|
289
285
|
# ISO country code alpha2 variant
|
|
290
286
|
card_issuing_country: nil,
|
|
291
287
|
card_network: nil,
|
|
@@ -299,6 +295,7 @@ module Dodopayments
|
|
|
299
295
|
sig do
|
|
300
296
|
override.returns(
|
|
301
297
|
{
|
|
298
|
+
card_holder_name: T.nilable(String),
|
|
302
299
|
card_issuing_country:
|
|
303
300
|
T.nilable(Dodopayments::CountryCode::TaggedSymbol),
|
|
304
301
|
card_network: T.nilable(String),
|
|
@@ -15,15 +15,10 @@ module Dodopayments
|
|
|
15
15
|
sig { returns(String) }
|
|
16
16
|
attr_accessor :business_id
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
sig { returns(Dodopayments::DisputeAcceptedWebhookEvent::Data) }
|
|
18
|
+
sig { returns(Dodopayments::Dispute) }
|
|
20
19
|
attr_reader :data
|
|
21
20
|
|
|
22
|
-
sig
|
|
23
|
-
params(
|
|
24
|
-
data: Dodopayments::DisputeAcceptedWebhookEvent::Data::OrHash
|
|
25
|
-
).void
|
|
26
|
-
end
|
|
21
|
+
sig { params(data: Dodopayments::Dispute::OrHash).void }
|
|
27
22
|
attr_writer :data
|
|
28
23
|
|
|
29
24
|
# The timestamp of when the event occurred
|
|
@@ -39,7 +34,7 @@ module Dodopayments
|
|
|
39
34
|
sig do
|
|
40
35
|
params(
|
|
41
36
|
business_id: String,
|
|
42
|
-
data: Dodopayments::
|
|
37
|
+
data: Dodopayments::Dispute::OrHash,
|
|
43
38
|
timestamp: Time,
|
|
44
39
|
type: Dodopayments::DisputeAcceptedWebhookEvent::Type::OrSymbol
|
|
45
40
|
).returns(T.attached_class)
|
|
@@ -47,7 +42,6 @@ module Dodopayments
|
|
|
47
42
|
def self.new(
|
|
48
43
|
# The business identifier
|
|
49
44
|
business_id:,
|
|
50
|
-
# Event-specific data
|
|
51
45
|
data:,
|
|
52
46
|
# The timestamp of when the event occurred
|
|
53
47
|
timestamp:,
|
|
@@ -60,7 +54,7 @@ module Dodopayments
|
|
|
60
54
|
override.returns(
|
|
61
55
|
{
|
|
62
56
|
business_id: String,
|
|
63
|
-
data: Dodopayments::
|
|
57
|
+
data: Dodopayments::Dispute,
|
|
64
58
|
timestamp: Time,
|
|
65
59
|
type: Dodopayments::DisputeAcceptedWebhookEvent::Type::TaggedSymbol
|
|
66
60
|
}
|
|
@@ -69,88 +63,6 @@ module Dodopayments
|
|
|
69
63
|
def to_hash
|
|
70
64
|
end
|
|
71
65
|
|
|
72
|
-
class Data < Dodopayments::Models::Dispute
|
|
73
|
-
OrHash =
|
|
74
|
-
T.type_alias do
|
|
75
|
-
T.any(
|
|
76
|
-
Dodopayments::DisputeAcceptedWebhookEvent::Data,
|
|
77
|
-
Dodopayments::Internal::AnyHash
|
|
78
|
-
)
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
# The type of payload in the data field
|
|
82
|
-
sig do
|
|
83
|
-
returns(
|
|
84
|
-
T.nilable(
|
|
85
|
-
Dodopayments::DisputeAcceptedWebhookEvent::Data::PayloadType::TaggedSymbol
|
|
86
|
-
)
|
|
87
|
-
)
|
|
88
|
-
end
|
|
89
|
-
attr_reader :payload_type
|
|
90
|
-
|
|
91
|
-
sig do
|
|
92
|
-
params(
|
|
93
|
-
payload_type:
|
|
94
|
-
Dodopayments::DisputeAcceptedWebhookEvent::Data::PayloadType::OrSymbol
|
|
95
|
-
).void
|
|
96
|
-
end
|
|
97
|
-
attr_writer :payload_type
|
|
98
|
-
|
|
99
|
-
# Event-specific data
|
|
100
|
-
sig do
|
|
101
|
-
params(
|
|
102
|
-
payload_type:
|
|
103
|
-
Dodopayments::DisputeAcceptedWebhookEvent::Data::PayloadType::OrSymbol
|
|
104
|
-
).returns(T.attached_class)
|
|
105
|
-
end
|
|
106
|
-
def self.new(
|
|
107
|
-
# The type of payload in the data field
|
|
108
|
-
payload_type: nil
|
|
109
|
-
)
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
sig do
|
|
113
|
-
override.returns(
|
|
114
|
-
{
|
|
115
|
-
payload_type:
|
|
116
|
-
Dodopayments::DisputeAcceptedWebhookEvent::Data::PayloadType::TaggedSymbol
|
|
117
|
-
}
|
|
118
|
-
)
|
|
119
|
-
end
|
|
120
|
-
def to_hash
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
# The type of payload in the data field
|
|
124
|
-
module PayloadType
|
|
125
|
-
extend Dodopayments::Internal::Type::Enum
|
|
126
|
-
|
|
127
|
-
TaggedSymbol =
|
|
128
|
-
T.type_alias do
|
|
129
|
-
T.all(
|
|
130
|
-
Symbol,
|
|
131
|
-
Dodopayments::DisputeAcceptedWebhookEvent::Data::PayloadType
|
|
132
|
-
)
|
|
133
|
-
end
|
|
134
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
135
|
-
|
|
136
|
-
DISPUTE =
|
|
137
|
-
T.let(
|
|
138
|
-
:Dispute,
|
|
139
|
-
Dodopayments::DisputeAcceptedWebhookEvent::Data::PayloadType::TaggedSymbol
|
|
140
|
-
)
|
|
141
|
-
|
|
142
|
-
sig do
|
|
143
|
-
override.returns(
|
|
144
|
-
T::Array[
|
|
145
|
-
Dodopayments::DisputeAcceptedWebhookEvent::Data::PayloadType::TaggedSymbol
|
|
146
|
-
]
|
|
147
|
-
)
|
|
148
|
-
end
|
|
149
|
-
def self.values
|
|
150
|
-
end
|
|
151
|
-
end
|
|
152
|
-
end
|
|
153
|
-
|
|
154
66
|
# The event type
|
|
155
67
|
module Type
|
|
156
68
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -15,15 +15,10 @@ module Dodopayments
|
|
|
15
15
|
sig { returns(String) }
|
|
16
16
|
attr_accessor :business_id
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
sig { returns(Dodopayments::DisputeCancelledWebhookEvent::Data) }
|
|
18
|
+
sig { returns(Dodopayments::Dispute) }
|
|
20
19
|
attr_reader :data
|
|
21
20
|
|
|
22
|
-
sig
|
|
23
|
-
params(
|
|
24
|
-
data: Dodopayments::DisputeCancelledWebhookEvent::Data::OrHash
|
|
25
|
-
).void
|
|
26
|
-
end
|
|
21
|
+
sig { params(data: Dodopayments::Dispute::OrHash).void }
|
|
27
22
|
attr_writer :data
|
|
28
23
|
|
|
29
24
|
# The timestamp of when the event occurred
|
|
@@ -39,7 +34,7 @@ module Dodopayments
|
|
|
39
34
|
sig do
|
|
40
35
|
params(
|
|
41
36
|
business_id: String,
|
|
42
|
-
data: Dodopayments::
|
|
37
|
+
data: Dodopayments::Dispute::OrHash,
|
|
43
38
|
timestamp: Time,
|
|
44
39
|
type: Dodopayments::DisputeCancelledWebhookEvent::Type::OrSymbol
|
|
45
40
|
).returns(T.attached_class)
|
|
@@ -47,7 +42,6 @@ module Dodopayments
|
|
|
47
42
|
def self.new(
|
|
48
43
|
# The business identifier
|
|
49
44
|
business_id:,
|
|
50
|
-
# Event-specific data
|
|
51
45
|
data:,
|
|
52
46
|
# The timestamp of when the event occurred
|
|
53
47
|
timestamp:,
|
|
@@ -60,7 +54,7 @@ module Dodopayments
|
|
|
60
54
|
override.returns(
|
|
61
55
|
{
|
|
62
56
|
business_id: String,
|
|
63
|
-
data: Dodopayments::
|
|
57
|
+
data: Dodopayments::Dispute,
|
|
64
58
|
timestamp: Time,
|
|
65
59
|
type: Dodopayments::DisputeCancelledWebhookEvent::Type::TaggedSymbol
|
|
66
60
|
}
|
|
@@ -69,88 +63,6 @@ module Dodopayments
|
|
|
69
63
|
def to_hash
|
|
70
64
|
end
|
|
71
65
|
|
|
72
|
-
class Data < Dodopayments::Models::Dispute
|
|
73
|
-
OrHash =
|
|
74
|
-
T.type_alias do
|
|
75
|
-
T.any(
|
|
76
|
-
Dodopayments::DisputeCancelledWebhookEvent::Data,
|
|
77
|
-
Dodopayments::Internal::AnyHash
|
|
78
|
-
)
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
# The type of payload in the data field
|
|
82
|
-
sig do
|
|
83
|
-
returns(
|
|
84
|
-
T.nilable(
|
|
85
|
-
Dodopayments::DisputeCancelledWebhookEvent::Data::PayloadType::TaggedSymbol
|
|
86
|
-
)
|
|
87
|
-
)
|
|
88
|
-
end
|
|
89
|
-
attr_reader :payload_type
|
|
90
|
-
|
|
91
|
-
sig do
|
|
92
|
-
params(
|
|
93
|
-
payload_type:
|
|
94
|
-
Dodopayments::DisputeCancelledWebhookEvent::Data::PayloadType::OrSymbol
|
|
95
|
-
).void
|
|
96
|
-
end
|
|
97
|
-
attr_writer :payload_type
|
|
98
|
-
|
|
99
|
-
# Event-specific data
|
|
100
|
-
sig do
|
|
101
|
-
params(
|
|
102
|
-
payload_type:
|
|
103
|
-
Dodopayments::DisputeCancelledWebhookEvent::Data::PayloadType::OrSymbol
|
|
104
|
-
).returns(T.attached_class)
|
|
105
|
-
end
|
|
106
|
-
def self.new(
|
|
107
|
-
# The type of payload in the data field
|
|
108
|
-
payload_type: nil
|
|
109
|
-
)
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
sig do
|
|
113
|
-
override.returns(
|
|
114
|
-
{
|
|
115
|
-
payload_type:
|
|
116
|
-
Dodopayments::DisputeCancelledWebhookEvent::Data::PayloadType::TaggedSymbol
|
|
117
|
-
}
|
|
118
|
-
)
|
|
119
|
-
end
|
|
120
|
-
def to_hash
|
|
121
|
-
end
|
|
122
|
-
|
|
123
|
-
# The type of payload in the data field
|
|
124
|
-
module PayloadType
|
|
125
|
-
extend Dodopayments::Internal::Type::Enum
|
|
126
|
-
|
|
127
|
-
TaggedSymbol =
|
|
128
|
-
T.type_alias do
|
|
129
|
-
T.all(
|
|
130
|
-
Symbol,
|
|
131
|
-
Dodopayments::DisputeCancelledWebhookEvent::Data::PayloadType
|
|
132
|
-
)
|
|
133
|
-
end
|
|
134
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
135
|
-
|
|
136
|
-
DISPUTE =
|
|
137
|
-
T.let(
|
|
138
|
-
:Dispute,
|
|
139
|
-
Dodopayments::DisputeCancelledWebhookEvent::Data::PayloadType::TaggedSymbol
|
|
140
|
-
)
|
|
141
|
-
|
|
142
|
-
sig do
|
|
143
|
-
override.returns(
|
|
144
|
-
T::Array[
|
|
145
|
-
Dodopayments::DisputeCancelledWebhookEvent::Data::PayloadType::TaggedSymbol
|
|
146
|
-
]
|
|
147
|
-
)
|
|
148
|
-
end
|
|
149
|
-
def self.values
|
|
150
|
-
end
|
|
151
|
-
end
|
|
152
|
-
end
|
|
153
|
-
|
|
154
66
|
# The event type
|
|
155
67
|
module Type
|
|
156
68
|
extend Dodopayments::Internal::Type::Enum
|
|
@@ -15,15 +15,10 @@ module Dodopayments
|
|
|
15
15
|
sig { returns(String) }
|
|
16
16
|
attr_accessor :business_id
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
sig { returns(Dodopayments::DisputeChallengedWebhookEvent::Data) }
|
|
18
|
+
sig { returns(Dodopayments::Dispute) }
|
|
20
19
|
attr_reader :data
|
|
21
20
|
|
|
22
|
-
sig
|
|
23
|
-
params(
|
|
24
|
-
data: Dodopayments::DisputeChallengedWebhookEvent::Data::OrHash
|
|
25
|
-
).void
|
|
26
|
-
end
|
|
21
|
+
sig { params(data: Dodopayments::Dispute::OrHash).void }
|
|
27
22
|
attr_writer :data
|
|
28
23
|
|
|
29
24
|
# The timestamp of when the event occurred
|
|
@@ -39,7 +34,7 @@ module Dodopayments
|
|
|
39
34
|
sig do
|
|
40
35
|
params(
|
|
41
36
|
business_id: String,
|
|
42
|
-
data: Dodopayments::
|
|
37
|
+
data: Dodopayments::Dispute::OrHash,
|
|
43
38
|
timestamp: Time,
|
|
44
39
|
type: Dodopayments::DisputeChallengedWebhookEvent::Type::OrSymbol
|
|
45
40
|
).returns(T.attached_class)
|
|
@@ -47,7 +42,6 @@ module Dodopayments
|
|
|
47
42
|
def self.new(
|
|
48
43
|
# The business identifier
|
|
49
44
|
business_id:,
|
|
50
|
-
# Event-specific data
|
|
51
45
|
data:,
|
|
52
46
|
# The timestamp of when the event occurred
|
|
53
47
|
timestamp:,
|
|
@@ -60,7 +54,7 @@ module Dodopayments
|
|
|
60
54
|
override.returns(
|
|
61
55
|
{
|
|
62
56
|
business_id: String,
|
|
63
|
-
data: Dodopayments::
|
|
57
|
+
data: Dodopayments::Dispute,
|
|
64
58
|
timestamp: Time,
|
|
65
59
|
type:
|
|
66
60
|
Dodopayments::DisputeChallengedWebhookEvent::Type::TaggedSymbol
|
|
@@ -70,88 +64,6 @@ module Dodopayments
|
|
|
70
64
|
def to_hash
|
|
71
65
|
end
|
|
72
66
|
|
|
73
|
-
class Data < Dodopayments::Models::Dispute
|
|
74
|
-
OrHash =
|
|
75
|
-
T.type_alias do
|
|
76
|
-
T.any(
|
|
77
|
-
Dodopayments::DisputeChallengedWebhookEvent::Data,
|
|
78
|
-
Dodopayments::Internal::AnyHash
|
|
79
|
-
)
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
# The type of payload in the data field
|
|
83
|
-
sig do
|
|
84
|
-
returns(
|
|
85
|
-
T.nilable(
|
|
86
|
-
Dodopayments::DisputeChallengedWebhookEvent::Data::PayloadType::TaggedSymbol
|
|
87
|
-
)
|
|
88
|
-
)
|
|
89
|
-
end
|
|
90
|
-
attr_reader :payload_type
|
|
91
|
-
|
|
92
|
-
sig do
|
|
93
|
-
params(
|
|
94
|
-
payload_type:
|
|
95
|
-
Dodopayments::DisputeChallengedWebhookEvent::Data::PayloadType::OrSymbol
|
|
96
|
-
).void
|
|
97
|
-
end
|
|
98
|
-
attr_writer :payload_type
|
|
99
|
-
|
|
100
|
-
# Event-specific data
|
|
101
|
-
sig do
|
|
102
|
-
params(
|
|
103
|
-
payload_type:
|
|
104
|
-
Dodopayments::DisputeChallengedWebhookEvent::Data::PayloadType::OrSymbol
|
|
105
|
-
).returns(T.attached_class)
|
|
106
|
-
end
|
|
107
|
-
def self.new(
|
|
108
|
-
# The type of payload in the data field
|
|
109
|
-
payload_type: nil
|
|
110
|
-
)
|
|
111
|
-
end
|
|
112
|
-
|
|
113
|
-
sig do
|
|
114
|
-
override.returns(
|
|
115
|
-
{
|
|
116
|
-
payload_type:
|
|
117
|
-
Dodopayments::DisputeChallengedWebhookEvent::Data::PayloadType::TaggedSymbol
|
|
118
|
-
}
|
|
119
|
-
)
|
|
120
|
-
end
|
|
121
|
-
def to_hash
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
# The type of payload in the data field
|
|
125
|
-
module PayloadType
|
|
126
|
-
extend Dodopayments::Internal::Type::Enum
|
|
127
|
-
|
|
128
|
-
TaggedSymbol =
|
|
129
|
-
T.type_alias do
|
|
130
|
-
T.all(
|
|
131
|
-
Symbol,
|
|
132
|
-
Dodopayments::DisputeChallengedWebhookEvent::Data::PayloadType
|
|
133
|
-
)
|
|
134
|
-
end
|
|
135
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
136
|
-
|
|
137
|
-
DISPUTE =
|
|
138
|
-
T.let(
|
|
139
|
-
:Dispute,
|
|
140
|
-
Dodopayments::DisputeChallengedWebhookEvent::Data::PayloadType::TaggedSymbol
|
|
141
|
-
)
|
|
142
|
-
|
|
143
|
-
sig do
|
|
144
|
-
override.returns(
|
|
145
|
-
T::Array[
|
|
146
|
-
Dodopayments::DisputeChallengedWebhookEvent::Data::PayloadType::TaggedSymbol
|
|
147
|
-
]
|
|
148
|
-
)
|
|
149
|
-
end
|
|
150
|
-
def self.values
|
|
151
|
-
end
|
|
152
|
-
end
|
|
153
|
-
end
|
|
154
|
-
|
|
155
67
|
# The event type
|
|
156
68
|
module Type
|
|
157
69
|
extend Dodopayments::Internal::Type::Enum
|