dodopayments 1.55.8 → 1.56.2
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/client.rb +4 -4
- data/lib/dodopayments/internal/type/union.rb +9 -7
- data/lib/dodopayments/models/checkout_session_retrieve_params.rb +14 -0
- data/lib/dodopayments/models/checkout_session_status.rb +64 -0
- data/lib/dodopayments/models/dispute_accepted_webhook_event.rb +76 -0
- data/lib/dodopayments/models/dispute_cancelled_webhook_event.rb +76 -0
- data/lib/dodopayments/models/dispute_challenged_webhook_event.rb +76 -0
- data/lib/dodopayments/models/dispute_expired_webhook_event.rb +76 -0
- data/lib/dodopayments/models/dispute_lost_webhook_event.rb +76 -0
- data/lib/dodopayments/models/dispute_opened_webhook_event.rb +76 -0
- data/lib/dodopayments/models/dispute_won_webhook_event.rb +76 -0
- data/lib/dodopayments/models/license_key_created_webhook_event.rb +76 -0
- data/lib/dodopayments/models/payment_cancelled_webhook_event.rb +76 -0
- data/lib/dodopayments/models/payment_failed_webhook_event.rb +76 -0
- data/lib/dodopayments/models/payment_processing_webhook_event.rb +76 -0
- data/lib/dodopayments/models/payment_succeeded_webhook_event.rb +76 -0
- data/lib/dodopayments/models/refund_failed_webhook_event.rb +76 -0
- data/lib/dodopayments/models/refund_succeeded_webhook_event.rb +76 -0
- data/lib/dodopayments/models/subscription_active_webhook_event.rb +76 -0
- data/lib/dodopayments/models/subscription_cancelled_webhook_event.rb +76 -0
- data/lib/dodopayments/models/subscription_expired_webhook_event.rb +76 -0
- data/lib/dodopayments/models/subscription_failed_webhook_event.rb +76 -0
- data/lib/dodopayments/models/subscription_on_hold_webhook_event.rb +76 -0
- data/lib/dodopayments/models/subscription_plan_changed_webhook_event.rb +76 -0
- data/lib/dodopayments/models/subscription_renewed_webhook_event.rb +76 -0
- data/lib/dodopayments/models/subscription_update_params.rb +8 -1
- data/lib/dodopayments/models/unsafe_unwrap_webhook_event.rb +54 -0
- data/lib/dodopayments/models/unwrap_webhook_event.rb +54 -0
- data/lib/dodopayments/models/webhook_unsafe_unwrap_params.rb +14 -0
- data/lib/dodopayments/models/webhook_unwrap_params.rb +14 -0
- data/lib/dodopayments/models.rb +54 -0
- data/lib/dodopayments/resources/checkout_sessions.rb +17 -0
- data/lib/dodopayments/resources/subscriptions.rb +3 -1
- data/lib/dodopayments/resources/webhooks.rb +16 -0
- data/lib/dodopayments/version.rb +1 -1
- data/lib/dodopayments.rb +51 -3
- data/rbi/dodopayments/client.rbi +3 -3
- data/rbi/dodopayments/models/checkout_session_retrieve_params.rbi +32 -0
- data/rbi/dodopayments/models/checkout_session_status.rbi +88 -0
- data/rbi/dodopayments/models/dispute_accepted_webhook_event.rbi +182 -0
- data/rbi/dodopayments/models/dispute_cancelled_webhook_event.rbi +182 -0
- data/rbi/dodopayments/models/dispute_challenged_webhook_event.rbi +183 -0
- data/rbi/dodopayments/models/dispute_expired_webhook_event.rbi +182 -0
- data/rbi/dodopayments/models/dispute_lost_webhook_event.rbi +176 -0
- data/rbi/dodopayments/models/dispute_opened_webhook_event.rbi +180 -0
- data/rbi/dodopayments/models/dispute_won_webhook_event.rbi +176 -0
- data/rbi/dodopayments/models/license_key_created_webhook_event.rbi +183 -0
- data/rbi/dodopayments/models/payment_cancelled_webhook_event.rbi +182 -0
- data/rbi/dodopayments/models/payment_failed_webhook_event.rbi +180 -0
- data/rbi/dodopayments/models/payment_processing_webhook_event.rbi +183 -0
- data/rbi/dodopayments/models/payment_succeeded_webhook_event.rbi +182 -0
- data/rbi/dodopayments/models/refund_failed_webhook_event.rbi +178 -0
- data/rbi/dodopayments/models/refund_succeeded_webhook_event.rbi +182 -0
- data/rbi/dodopayments/models/subscription_active_webhook_event.rbi +185 -0
- data/rbi/dodopayments/models/subscription_cancelled_webhook_event.rbi +185 -0
- data/rbi/dodopayments/models/subscription_expired_webhook_event.rbi +185 -0
- data/rbi/dodopayments/models/subscription_failed_webhook_event.rbi +185 -0
- data/rbi/dodopayments/models/subscription_on_hold_webhook_event.rbi +185 -0
- data/rbi/dodopayments/models/subscription_plan_changed_webhook_event.rbi +189 -0
- data/rbi/dodopayments/models/subscription_renewed_webhook_event.rbi +185 -0
- data/rbi/dodopayments/models/subscription_update_params.rbi +6 -0
- data/rbi/dodopayments/models/unsafe_unwrap_webhook_event.rbi +44 -0
- data/rbi/dodopayments/models/unwrap_webhook_event.rbi +42 -0
- data/rbi/dodopayments/models/webhook_unsafe_unwrap_params.rbi +32 -0
- data/rbi/dodopayments/models/webhook_unwrap_params.rbi +32 -0
- data/rbi/dodopayments/models.rbi +70 -0
- data/rbi/dodopayments/resources/checkout_sessions.rbi +9 -0
- data/rbi/dodopayments/resources/subscriptions.rbi +2 -0
- data/rbi/dodopayments/resources/webhooks.rbi +66 -0
- data/sig/dodopayments/client.rbs +2 -2
- data/sig/dodopayments/models/checkout_session_retrieve_params.rbs +15 -0
- data/sig/dodopayments/models/checkout_session_status.rbs +45 -0
- data/sig/dodopayments/models/dispute_accepted_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/dispute_cancelled_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/dispute_challenged_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/dispute_expired_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/dispute_lost_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/dispute_opened_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/dispute_won_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/license_key_created_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/payment_cancelled_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/payment_failed_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/payment_processing_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/payment_succeeded_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/refund_failed_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/refund_succeeded_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/subscription_active_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/subscription_cancelled_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/subscription_expired_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/subscription_failed_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/subscription_on_hold_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/subscription_plan_changed_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/subscription_renewed_webhook_event.rbs +76 -0
- data/sig/dodopayments/models/subscription_update_params.rbs +5 -0
- data/sig/dodopayments/models/unsafe_unwrap_webhook_event.rbs +32 -0
- data/sig/dodopayments/models/unwrap_webhook_event.rbs +32 -0
- data/sig/dodopayments/models/webhook_unsafe_unwrap_params.rbs +15 -0
- data/sig/dodopayments/models/webhook_unwrap_params.rbs +15 -0
- data/sig/dodopayments/models.rbs +54 -0
- data/sig/dodopayments/resources/checkout_sessions.rbs +5 -0
- data/sig/dodopayments/resources/subscriptions.rbs +1 -0
- data/sig/dodopayments/resources/webhooks.rbs +48 -0
- metadata +83 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12aa5f73bbc394a9c94235aa84d6cd067df7d038adcf3de991bace729b58afd7
|
|
4
|
+
data.tar.gz: 99d11f78c2f2cac8457f9d656c190a31bf9e2eaa7369d47351906742d2012a35
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fda9e6a8f1b679fd1d3695c130dceefabc5e354467d70d8319c912a3a55908a182b7ecd0123cb5a4c14123899411a16ff98767a00f867e8d2018562e4b63d2df
|
|
7
|
+
data.tar.gz: 29ac046586bd1d5175a1b63bd2f6ed6d8a285b6e5edb49a78531949378d0356e1ffd0ba67d5794728ca2ecfb9abb84fc497d118ee565a825eed380911a60009e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.56.2 (2025-10-27)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.56.0...v1.56.2](https://github.com/dodopayments/dodopayments-ruby/compare/v1.56.0...v1.56.2)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** updated to openapi spec v1.56.0 ([e734ebf](https://github.com/dodopayments/dodopayments-ruby/commit/e734ebfd1718a0cfda521a01c71dc0b7faf4a1cd))
|
|
10
|
+
|
|
11
|
+
## 1.56.0 (2025-10-25)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v1.55.8...v1.56.0](https://github.com/dodopayments/dodopayments-ruby/compare/v1.55.8...v1.56.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** added unwrap functions for webhooks ([3aab01b](https://github.com/dodopayments/dodopayments-ruby/commit/3aab01bd934c029ae0d533b2b28aec933f1c58bf))
|
|
18
|
+
|
|
3
19
|
## 1.55.8 (2025-10-24)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v1.55.7...v1.55.8](https://github.com/dodopayments/dodopayments-ruby/compare/v1.55.7...v1.55.8)
|
data/README.md
CHANGED
data/lib/dodopayments/client.rb
CHANGED
|
@@ -57,9 +57,6 @@ module Dodopayments
|
|
|
57
57
|
# @return [Dodopayments::Resources::Payouts]
|
|
58
58
|
attr_reader :payouts
|
|
59
59
|
|
|
60
|
-
# @return [Dodopayments::Resources::WebhookEvents]
|
|
61
|
-
attr_reader :webhook_events
|
|
62
|
-
|
|
63
60
|
# @return [Dodopayments::Resources::Products]
|
|
64
61
|
attr_reader :products
|
|
65
62
|
|
|
@@ -78,6 +75,9 @@ module Dodopayments
|
|
|
78
75
|
# @return [Dodopayments::Resources::Webhooks]
|
|
79
76
|
attr_reader :webhooks
|
|
80
77
|
|
|
78
|
+
# @return [Dodopayments::Resources::WebhookEvents]
|
|
79
|
+
attr_reader :webhook_events
|
|
80
|
+
|
|
81
81
|
# @return [Dodopayments::Resources::UsageEvents]
|
|
82
82
|
attr_reader :usage_events
|
|
83
83
|
|
|
@@ -153,13 +153,13 @@ module Dodopayments
|
|
|
153
153
|
@refunds = Dodopayments::Resources::Refunds.new(client: self)
|
|
154
154
|
@disputes = Dodopayments::Resources::Disputes.new(client: self)
|
|
155
155
|
@payouts = Dodopayments::Resources::Payouts.new(client: self)
|
|
156
|
-
@webhook_events = Dodopayments::Resources::WebhookEvents.new(client: self)
|
|
157
156
|
@products = Dodopayments::Resources::Products.new(client: self)
|
|
158
157
|
@misc = Dodopayments::Resources::Misc.new(client: self)
|
|
159
158
|
@discounts = Dodopayments::Resources::Discounts.new(client: self)
|
|
160
159
|
@addons = Dodopayments::Resources::Addons.new(client: self)
|
|
161
160
|
@brands = Dodopayments::Resources::Brands.new(client: self)
|
|
162
161
|
@webhooks = Dodopayments::Resources::Webhooks.new(client: self)
|
|
162
|
+
@webhook_events = Dodopayments::Resources::WebhookEvents.new(client: self)
|
|
163
163
|
@usage_events = Dodopayments::Resources::UsageEvents.new(client: self)
|
|
164
164
|
@meters = Dodopayments::Resources::Meters.new(client: self)
|
|
165
165
|
end
|
|
@@ -6,14 +6,16 @@ module Dodopayments
|
|
|
6
6
|
# @api private
|
|
7
7
|
#
|
|
8
8
|
# @example
|
|
9
|
-
# # `
|
|
10
|
-
# case
|
|
11
|
-
# when Dodopayments::
|
|
12
|
-
# puts(
|
|
13
|
-
# when Dodopayments::
|
|
14
|
-
# puts(
|
|
9
|
+
# # `unsafe_unwrap_webhook_event` is a `Dodopayments::UnsafeUnwrapWebhookEvent`
|
|
10
|
+
# case unsafe_unwrap_webhook_event
|
|
11
|
+
# when Dodopayments::DisputeAcceptedWebhookEvent
|
|
12
|
+
# puts(unsafe_unwrap_webhook_event.business_id)
|
|
13
|
+
# when Dodopayments::DisputeCancelledWebhookEvent
|
|
14
|
+
# puts(unsafe_unwrap_webhook_event.data)
|
|
15
|
+
# when Dodopayments::DisputeChallengedWebhookEvent
|
|
16
|
+
# puts(unsafe_unwrap_webhook_event.timestamp)
|
|
15
17
|
# else
|
|
16
|
-
# puts(
|
|
18
|
+
# puts(unsafe_unwrap_webhook_event)
|
|
17
19
|
# end
|
|
18
20
|
module Union
|
|
19
21
|
include Dodopayments::Internal::Type::Converter
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
# @see Dodopayments::Resources::CheckoutSessions#retrieve
|
|
6
|
+
class CheckoutSessionRetrieveParams < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
extend Dodopayments::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Dodopayments::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!method initialize(request_options: {})
|
|
11
|
+
# @param request_options [Dodopayments::RequestOptions, Hash{Symbol=>Object}]
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
# @see Dodopayments::Resources::CheckoutSessions#retrieve
|
|
6
|
+
class CheckoutSessionStatus < Dodopayments::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# Id of the checkout session
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute created_at
|
|
14
|
+
# Created at timestamp
|
|
15
|
+
#
|
|
16
|
+
# @return [Time]
|
|
17
|
+
required :created_at, Time
|
|
18
|
+
|
|
19
|
+
# @!attribute customer_email
|
|
20
|
+
# Customer email: prefers payment's customer, falls back to session
|
|
21
|
+
#
|
|
22
|
+
# @return [String, nil]
|
|
23
|
+
optional :customer_email, String, nil?: true
|
|
24
|
+
|
|
25
|
+
# @!attribute customer_name
|
|
26
|
+
# Customer name: prefers payment's customer, falls back to session
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
optional :customer_name, String, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute payment_id
|
|
32
|
+
# Id of the payment created by the checkout sessions.
|
|
33
|
+
#
|
|
34
|
+
# Null if checkout sessions is still at the details collection stage.
|
|
35
|
+
#
|
|
36
|
+
# @return [String, nil]
|
|
37
|
+
optional :payment_id, String, nil?: true
|
|
38
|
+
|
|
39
|
+
# @!attribute payment_status
|
|
40
|
+
# status of the payment.
|
|
41
|
+
#
|
|
42
|
+
# Null if checkout sessions is still at the details collection stage.
|
|
43
|
+
#
|
|
44
|
+
# @return [Symbol, Dodopayments::Models::IntentStatus, nil]
|
|
45
|
+
optional :payment_status, enum: -> { Dodopayments::IntentStatus }, nil?: true
|
|
46
|
+
|
|
47
|
+
# @!method initialize(id:, created_at:, customer_email: nil, customer_name: nil, payment_id: nil, payment_status: nil)
|
|
48
|
+
# Some parameter documentations has been truncated, see
|
|
49
|
+
# {Dodopayments::Models::CheckoutSessionStatus} for more details.
|
|
50
|
+
#
|
|
51
|
+
# @param id [String] Id of the checkout session
|
|
52
|
+
#
|
|
53
|
+
# @param created_at [Time] Created at timestamp
|
|
54
|
+
#
|
|
55
|
+
# @param customer_email [String, nil] Customer email: prefers payment's customer, falls back to session
|
|
56
|
+
#
|
|
57
|
+
# @param customer_name [String, nil] Customer name: prefers payment's customer, falls back to session
|
|
58
|
+
#
|
|
59
|
+
# @param payment_id [String, nil] Id of the payment created by the checkout sessions.
|
|
60
|
+
#
|
|
61
|
+
# @param payment_status [Symbol, Dodopayments::Models::IntentStatus, nil] status of the payment.
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
class DisputeAcceptedWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute business_id
|
|
7
|
+
# The business identifier
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :business_id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute data
|
|
13
|
+
# Event-specific data
|
|
14
|
+
#
|
|
15
|
+
# @return [Dodopayments::Models::DisputeAcceptedWebhookEvent::Data]
|
|
16
|
+
required :data, -> { Dodopayments::DisputeAcceptedWebhookEvent::Data }
|
|
17
|
+
|
|
18
|
+
# @!attribute timestamp
|
|
19
|
+
# The timestamp of when the event occurred
|
|
20
|
+
#
|
|
21
|
+
# @return [Time]
|
|
22
|
+
required :timestamp, Time
|
|
23
|
+
|
|
24
|
+
# @!attribute type
|
|
25
|
+
# The event type
|
|
26
|
+
#
|
|
27
|
+
# @return [Symbol, Dodopayments::Models::DisputeAcceptedWebhookEvent::Type]
|
|
28
|
+
required :type, enum: -> { Dodopayments::DisputeAcceptedWebhookEvent::Type }
|
|
29
|
+
|
|
30
|
+
# @!method initialize(business_id:, data:, timestamp:, type:)
|
|
31
|
+
# @param business_id [String] The business identifier
|
|
32
|
+
#
|
|
33
|
+
# @param data [Dodopayments::Models::DisputeAcceptedWebhookEvent::Data] Event-specific data
|
|
34
|
+
#
|
|
35
|
+
# @param timestamp [Time] The timestamp of when the event occurred
|
|
36
|
+
#
|
|
37
|
+
# @param type [Symbol, Dodopayments::Models::DisputeAcceptedWebhookEvent::Type] The event type
|
|
38
|
+
|
|
39
|
+
# @see Dodopayments::Models::DisputeAcceptedWebhookEvent#data
|
|
40
|
+
class Data < Dodopayments::Models::Dispute
|
|
41
|
+
# @!attribute payload_type
|
|
42
|
+
# The type of payload in the data field
|
|
43
|
+
#
|
|
44
|
+
# @return [Symbol, Dodopayments::Models::DisputeAcceptedWebhookEvent::Data::PayloadType, nil]
|
|
45
|
+
optional :payload_type, enum: -> { Dodopayments::DisputeAcceptedWebhookEvent::Data::PayloadType }
|
|
46
|
+
|
|
47
|
+
# @!method initialize(payload_type: nil)
|
|
48
|
+
# Event-specific data
|
|
49
|
+
#
|
|
50
|
+
# @param payload_type [Symbol, Dodopayments::Models::DisputeAcceptedWebhookEvent::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
|
+
DISPUTE = :Dispute
|
|
57
|
+
|
|
58
|
+
# @!method self.values
|
|
59
|
+
# @return [Array<Symbol>]
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# The event type
|
|
64
|
+
#
|
|
65
|
+
# @see Dodopayments::Models::DisputeAcceptedWebhookEvent#type
|
|
66
|
+
module Type
|
|
67
|
+
extend Dodopayments::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
DISPUTE_ACCEPTED = :"dispute.accepted"
|
|
70
|
+
|
|
71
|
+
# @!method self.values
|
|
72
|
+
# @return [Array<Symbol>]
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
class DisputeCancelledWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute business_id
|
|
7
|
+
# The business identifier
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :business_id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute data
|
|
13
|
+
# Event-specific data
|
|
14
|
+
#
|
|
15
|
+
# @return [Dodopayments::Models::DisputeCancelledWebhookEvent::Data]
|
|
16
|
+
required :data, -> { Dodopayments::DisputeCancelledWebhookEvent::Data }
|
|
17
|
+
|
|
18
|
+
# @!attribute timestamp
|
|
19
|
+
# The timestamp of when the event occurred
|
|
20
|
+
#
|
|
21
|
+
# @return [Time]
|
|
22
|
+
required :timestamp, Time
|
|
23
|
+
|
|
24
|
+
# @!attribute type
|
|
25
|
+
# The event type
|
|
26
|
+
#
|
|
27
|
+
# @return [Symbol, Dodopayments::Models::DisputeCancelledWebhookEvent::Type]
|
|
28
|
+
required :type, enum: -> { Dodopayments::DisputeCancelledWebhookEvent::Type }
|
|
29
|
+
|
|
30
|
+
# @!method initialize(business_id:, data:, timestamp:, type:)
|
|
31
|
+
# @param business_id [String] The business identifier
|
|
32
|
+
#
|
|
33
|
+
# @param data [Dodopayments::Models::DisputeCancelledWebhookEvent::Data] Event-specific data
|
|
34
|
+
#
|
|
35
|
+
# @param timestamp [Time] The timestamp of when the event occurred
|
|
36
|
+
#
|
|
37
|
+
# @param type [Symbol, Dodopayments::Models::DisputeCancelledWebhookEvent::Type] The event type
|
|
38
|
+
|
|
39
|
+
# @see Dodopayments::Models::DisputeCancelledWebhookEvent#data
|
|
40
|
+
class Data < Dodopayments::Models::Dispute
|
|
41
|
+
# @!attribute payload_type
|
|
42
|
+
# The type of payload in the data field
|
|
43
|
+
#
|
|
44
|
+
# @return [Symbol, Dodopayments::Models::DisputeCancelledWebhookEvent::Data::PayloadType, nil]
|
|
45
|
+
optional :payload_type, enum: -> { Dodopayments::DisputeCancelledWebhookEvent::Data::PayloadType }
|
|
46
|
+
|
|
47
|
+
# @!method initialize(payload_type: nil)
|
|
48
|
+
# Event-specific data
|
|
49
|
+
#
|
|
50
|
+
# @param payload_type [Symbol, Dodopayments::Models::DisputeCancelledWebhookEvent::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
|
+
DISPUTE = :Dispute
|
|
57
|
+
|
|
58
|
+
# @!method self.values
|
|
59
|
+
# @return [Array<Symbol>]
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# The event type
|
|
64
|
+
#
|
|
65
|
+
# @see Dodopayments::Models::DisputeCancelledWebhookEvent#type
|
|
66
|
+
module Type
|
|
67
|
+
extend Dodopayments::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
DISPUTE_CANCELLED = :"dispute.cancelled"
|
|
70
|
+
|
|
71
|
+
# @!method self.values
|
|
72
|
+
# @return [Array<Symbol>]
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
class DisputeChallengedWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute business_id
|
|
7
|
+
# The business identifier
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :business_id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute data
|
|
13
|
+
# Event-specific data
|
|
14
|
+
#
|
|
15
|
+
# @return [Dodopayments::Models::DisputeChallengedWebhookEvent::Data]
|
|
16
|
+
required :data, -> { Dodopayments::DisputeChallengedWebhookEvent::Data }
|
|
17
|
+
|
|
18
|
+
# @!attribute timestamp
|
|
19
|
+
# The timestamp of when the event occurred
|
|
20
|
+
#
|
|
21
|
+
# @return [Time]
|
|
22
|
+
required :timestamp, Time
|
|
23
|
+
|
|
24
|
+
# @!attribute type
|
|
25
|
+
# The event type
|
|
26
|
+
#
|
|
27
|
+
# @return [Symbol, Dodopayments::Models::DisputeChallengedWebhookEvent::Type]
|
|
28
|
+
required :type, enum: -> { Dodopayments::DisputeChallengedWebhookEvent::Type }
|
|
29
|
+
|
|
30
|
+
# @!method initialize(business_id:, data:, timestamp:, type:)
|
|
31
|
+
# @param business_id [String] The business identifier
|
|
32
|
+
#
|
|
33
|
+
# @param data [Dodopayments::Models::DisputeChallengedWebhookEvent::Data] Event-specific data
|
|
34
|
+
#
|
|
35
|
+
# @param timestamp [Time] The timestamp of when the event occurred
|
|
36
|
+
#
|
|
37
|
+
# @param type [Symbol, Dodopayments::Models::DisputeChallengedWebhookEvent::Type] The event type
|
|
38
|
+
|
|
39
|
+
# @see Dodopayments::Models::DisputeChallengedWebhookEvent#data
|
|
40
|
+
class Data < Dodopayments::Models::Dispute
|
|
41
|
+
# @!attribute payload_type
|
|
42
|
+
# The type of payload in the data field
|
|
43
|
+
#
|
|
44
|
+
# @return [Symbol, Dodopayments::Models::DisputeChallengedWebhookEvent::Data::PayloadType, nil]
|
|
45
|
+
optional :payload_type, enum: -> { Dodopayments::DisputeChallengedWebhookEvent::Data::PayloadType }
|
|
46
|
+
|
|
47
|
+
# @!method initialize(payload_type: nil)
|
|
48
|
+
# Event-specific data
|
|
49
|
+
#
|
|
50
|
+
# @param payload_type [Symbol, Dodopayments::Models::DisputeChallengedWebhookEvent::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
|
+
DISPUTE = :Dispute
|
|
57
|
+
|
|
58
|
+
# @!method self.values
|
|
59
|
+
# @return [Array<Symbol>]
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# The event type
|
|
64
|
+
#
|
|
65
|
+
# @see Dodopayments::Models::DisputeChallengedWebhookEvent#type
|
|
66
|
+
module Type
|
|
67
|
+
extend Dodopayments::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
DISPUTE_CHALLENGED = :"dispute.challenged"
|
|
70
|
+
|
|
71
|
+
# @!method self.values
|
|
72
|
+
# @return [Array<Symbol>]
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
class DisputeExpiredWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute business_id
|
|
7
|
+
# The business identifier
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :business_id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute data
|
|
13
|
+
# Event-specific data
|
|
14
|
+
#
|
|
15
|
+
# @return [Dodopayments::Models::DisputeExpiredWebhookEvent::Data]
|
|
16
|
+
required :data, -> { Dodopayments::DisputeExpiredWebhookEvent::Data }
|
|
17
|
+
|
|
18
|
+
# @!attribute timestamp
|
|
19
|
+
# The timestamp of when the event occurred
|
|
20
|
+
#
|
|
21
|
+
# @return [Time]
|
|
22
|
+
required :timestamp, Time
|
|
23
|
+
|
|
24
|
+
# @!attribute type
|
|
25
|
+
# The event type
|
|
26
|
+
#
|
|
27
|
+
# @return [Symbol, Dodopayments::Models::DisputeExpiredWebhookEvent::Type]
|
|
28
|
+
required :type, enum: -> { Dodopayments::DisputeExpiredWebhookEvent::Type }
|
|
29
|
+
|
|
30
|
+
# @!method initialize(business_id:, data:, timestamp:, type:)
|
|
31
|
+
# @param business_id [String] The business identifier
|
|
32
|
+
#
|
|
33
|
+
# @param data [Dodopayments::Models::DisputeExpiredWebhookEvent::Data] Event-specific data
|
|
34
|
+
#
|
|
35
|
+
# @param timestamp [Time] The timestamp of when the event occurred
|
|
36
|
+
#
|
|
37
|
+
# @param type [Symbol, Dodopayments::Models::DisputeExpiredWebhookEvent::Type] The event type
|
|
38
|
+
|
|
39
|
+
# @see Dodopayments::Models::DisputeExpiredWebhookEvent#data
|
|
40
|
+
class Data < Dodopayments::Models::Dispute
|
|
41
|
+
# @!attribute payload_type
|
|
42
|
+
# The type of payload in the data field
|
|
43
|
+
#
|
|
44
|
+
# @return [Symbol, Dodopayments::Models::DisputeExpiredWebhookEvent::Data::PayloadType, nil]
|
|
45
|
+
optional :payload_type, enum: -> { Dodopayments::DisputeExpiredWebhookEvent::Data::PayloadType }
|
|
46
|
+
|
|
47
|
+
# @!method initialize(payload_type: nil)
|
|
48
|
+
# Event-specific data
|
|
49
|
+
#
|
|
50
|
+
# @param payload_type [Symbol, Dodopayments::Models::DisputeExpiredWebhookEvent::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
|
+
DISPUTE = :Dispute
|
|
57
|
+
|
|
58
|
+
# @!method self.values
|
|
59
|
+
# @return [Array<Symbol>]
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# The event type
|
|
64
|
+
#
|
|
65
|
+
# @see Dodopayments::Models::DisputeExpiredWebhookEvent#type
|
|
66
|
+
module Type
|
|
67
|
+
extend Dodopayments::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
DISPUTE_EXPIRED = :"dispute.expired"
|
|
70
|
+
|
|
71
|
+
# @!method self.values
|
|
72
|
+
# @return [Array<Symbol>]
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
class DisputeLostWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute business_id
|
|
7
|
+
# The business identifier
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :business_id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute data
|
|
13
|
+
# Event-specific data
|
|
14
|
+
#
|
|
15
|
+
# @return [Dodopayments::Models::DisputeLostWebhookEvent::Data]
|
|
16
|
+
required :data, -> { Dodopayments::DisputeLostWebhookEvent::Data }
|
|
17
|
+
|
|
18
|
+
# @!attribute timestamp
|
|
19
|
+
# The timestamp of when the event occurred
|
|
20
|
+
#
|
|
21
|
+
# @return [Time]
|
|
22
|
+
required :timestamp, Time
|
|
23
|
+
|
|
24
|
+
# @!attribute type
|
|
25
|
+
# The event type
|
|
26
|
+
#
|
|
27
|
+
# @return [Symbol, Dodopayments::Models::DisputeLostWebhookEvent::Type]
|
|
28
|
+
required :type, enum: -> { Dodopayments::DisputeLostWebhookEvent::Type }
|
|
29
|
+
|
|
30
|
+
# @!method initialize(business_id:, data:, timestamp:, type:)
|
|
31
|
+
# @param business_id [String] The business identifier
|
|
32
|
+
#
|
|
33
|
+
# @param data [Dodopayments::Models::DisputeLostWebhookEvent::Data] Event-specific data
|
|
34
|
+
#
|
|
35
|
+
# @param timestamp [Time] The timestamp of when the event occurred
|
|
36
|
+
#
|
|
37
|
+
# @param type [Symbol, Dodopayments::Models::DisputeLostWebhookEvent::Type] The event type
|
|
38
|
+
|
|
39
|
+
# @see Dodopayments::Models::DisputeLostWebhookEvent#data
|
|
40
|
+
class Data < Dodopayments::Models::Dispute
|
|
41
|
+
# @!attribute payload_type
|
|
42
|
+
# The type of payload in the data field
|
|
43
|
+
#
|
|
44
|
+
# @return [Symbol, Dodopayments::Models::DisputeLostWebhookEvent::Data::PayloadType, nil]
|
|
45
|
+
optional :payload_type, enum: -> { Dodopayments::DisputeLostWebhookEvent::Data::PayloadType }
|
|
46
|
+
|
|
47
|
+
# @!method initialize(payload_type: nil)
|
|
48
|
+
# Event-specific data
|
|
49
|
+
#
|
|
50
|
+
# @param payload_type [Symbol, Dodopayments::Models::DisputeLostWebhookEvent::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
|
+
DISPUTE = :Dispute
|
|
57
|
+
|
|
58
|
+
# @!method self.values
|
|
59
|
+
# @return [Array<Symbol>]
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# The event type
|
|
64
|
+
#
|
|
65
|
+
# @see Dodopayments::Models::DisputeLostWebhookEvent#type
|
|
66
|
+
module Type
|
|
67
|
+
extend Dodopayments::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
DISPUTE_LOST = :"dispute.lost"
|
|
70
|
+
|
|
71
|
+
# @!method self.values
|
|
72
|
+
# @return [Array<Symbol>]
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Dodopayments
|
|
4
|
+
module Models
|
|
5
|
+
class DisputeOpenedWebhookEvent < Dodopayments::Internal::Type::BaseModel
|
|
6
|
+
# @!attribute business_id
|
|
7
|
+
# The business identifier
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :business_id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute data
|
|
13
|
+
# Event-specific data
|
|
14
|
+
#
|
|
15
|
+
# @return [Dodopayments::Models::DisputeOpenedWebhookEvent::Data]
|
|
16
|
+
required :data, -> { Dodopayments::DisputeOpenedWebhookEvent::Data }
|
|
17
|
+
|
|
18
|
+
# @!attribute timestamp
|
|
19
|
+
# The timestamp of when the event occurred
|
|
20
|
+
#
|
|
21
|
+
# @return [Time]
|
|
22
|
+
required :timestamp, Time
|
|
23
|
+
|
|
24
|
+
# @!attribute type
|
|
25
|
+
# The event type
|
|
26
|
+
#
|
|
27
|
+
# @return [Symbol, Dodopayments::Models::DisputeOpenedWebhookEvent::Type]
|
|
28
|
+
required :type, enum: -> { Dodopayments::DisputeOpenedWebhookEvent::Type }
|
|
29
|
+
|
|
30
|
+
# @!method initialize(business_id:, data:, timestamp:, type:)
|
|
31
|
+
# @param business_id [String] The business identifier
|
|
32
|
+
#
|
|
33
|
+
# @param data [Dodopayments::Models::DisputeOpenedWebhookEvent::Data] Event-specific data
|
|
34
|
+
#
|
|
35
|
+
# @param timestamp [Time] The timestamp of when the event occurred
|
|
36
|
+
#
|
|
37
|
+
# @param type [Symbol, Dodopayments::Models::DisputeOpenedWebhookEvent::Type] The event type
|
|
38
|
+
|
|
39
|
+
# @see Dodopayments::Models::DisputeOpenedWebhookEvent#data
|
|
40
|
+
class Data < Dodopayments::Models::Dispute
|
|
41
|
+
# @!attribute payload_type
|
|
42
|
+
# The type of payload in the data field
|
|
43
|
+
#
|
|
44
|
+
# @return [Symbol, Dodopayments::Models::DisputeOpenedWebhookEvent::Data::PayloadType, nil]
|
|
45
|
+
optional :payload_type, enum: -> { Dodopayments::DisputeOpenedWebhookEvent::Data::PayloadType }
|
|
46
|
+
|
|
47
|
+
# @!method initialize(payload_type: nil)
|
|
48
|
+
# Event-specific data
|
|
49
|
+
#
|
|
50
|
+
# @param payload_type [Symbol, Dodopayments::Models::DisputeOpenedWebhookEvent::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
|
+
DISPUTE = :Dispute
|
|
57
|
+
|
|
58
|
+
# @!method self.values
|
|
59
|
+
# @return [Array<Symbol>]
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# The event type
|
|
64
|
+
#
|
|
65
|
+
# @see Dodopayments::Models::DisputeOpenedWebhookEvent#type
|
|
66
|
+
module Type
|
|
67
|
+
extend Dodopayments::Internal::Type::Enum
|
|
68
|
+
|
|
69
|
+
DISPUTE_OPENED = :"dispute.opened"
|
|
70
|
+
|
|
71
|
+
# @!method self.values
|
|
72
|
+
# @return [Array<Symbol>]
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|