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
|
@@ -5,25 +5,110 @@ module Dodopayments
|
|
|
5
5
|
module PaymentMethodTypes
|
|
6
6
|
extend Dodopayments::Internal::Type::Enum
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
ACH = :ach
|
|
9
|
+
AFFIRM = :affirm
|
|
10
|
+
AFTERPAY_CLEARPAY = :afterpay_clearpay
|
|
11
|
+
ALFAMART = :alfamart
|
|
12
|
+
ALI_PAY = :ali_pay
|
|
13
|
+
ALI_PAY_HK = :ali_pay_hk
|
|
14
|
+
ALMA = :alma
|
|
15
|
+
AMAZON_PAY = :amazon_pay
|
|
12
16
|
APPLE_PAY = :apple_pay
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
MULTIBANCO = :multibanco
|
|
17
|
+
ATOME = :atome
|
|
18
|
+
BACS = :bacs
|
|
16
19
|
BANCONTACT_CARD = :bancontact_card
|
|
20
|
+
BECS = :becs
|
|
21
|
+
BENEFIT = :benefit
|
|
22
|
+
BIZUM = :bizum
|
|
23
|
+
BLIK = :blik
|
|
24
|
+
BOLETO = :boleto
|
|
25
|
+
BCA_BANK_TRANSFER = :bca_bank_transfer
|
|
26
|
+
BNI_VA = :bni_va
|
|
27
|
+
BRI_VA = :bri_va
|
|
28
|
+
CARD_REDIRECT = :card_redirect
|
|
29
|
+
CIMB_VA = :cimb_va
|
|
30
|
+
CLASSIC = :classic
|
|
31
|
+
CREDIT = :credit
|
|
32
|
+
CRYPTO_CURRENCY = :crypto_currency
|
|
33
|
+
CASHAPP = :cashapp
|
|
34
|
+
DANA = :dana
|
|
35
|
+
DANAMON_VA = :danamon_va
|
|
36
|
+
DEBIT = :debit
|
|
37
|
+
DUIT_NOW = :duit_now
|
|
38
|
+
EFECTY = :efecty
|
|
39
|
+
EFT = :eft
|
|
17
40
|
EPS = :eps
|
|
41
|
+
FPS = :fps
|
|
42
|
+
EVOUCHER = :evoucher
|
|
43
|
+
GIROPAY = :giropay
|
|
44
|
+
GIVEX = :givex
|
|
45
|
+
GOOGLE_PAY = :google_pay
|
|
46
|
+
GO_PAY = :go_pay
|
|
47
|
+
GCASH = :gcash
|
|
18
48
|
IDEAL = :ideal
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
AFFIRM = :affirm
|
|
49
|
+
INTERAC = :interac
|
|
50
|
+
INDOMARET = :indomaret
|
|
22
51
|
KLARNA = :klarna
|
|
52
|
+
KAKAO_PAY = :kakao_pay
|
|
53
|
+
LOCAL_BANK_REDIRECT = :local_bank_redirect
|
|
54
|
+
MANDIRI_VA = :mandiri_va
|
|
55
|
+
KNET = :knet
|
|
56
|
+
MB_WAY = :mb_way
|
|
57
|
+
MOBILE_PAY = :mobile_pay
|
|
58
|
+
MOMO = :momo
|
|
59
|
+
MOMO_ATM = :momo_atm
|
|
60
|
+
MULTIBANCO = :multibanco
|
|
61
|
+
ONLINE_BANKING_THAILAND = :online_banking_thailand
|
|
62
|
+
ONLINE_BANKING_CZECH_REPUBLIC = :online_banking_czech_republic
|
|
63
|
+
ONLINE_BANKING_FINLAND = :online_banking_finland
|
|
64
|
+
ONLINE_BANKING_FPX = :online_banking_fpx
|
|
65
|
+
ONLINE_BANKING_POLAND = :online_banking_poland
|
|
66
|
+
ONLINE_BANKING_SLOVAKIA = :online_banking_slovakia
|
|
67
|
+
OXXO = :oxxo
|
|
68
|
+
PAGO_EFECTIVO = :pago_efectivo
|
|
69
|
+
PERMATA_BANK_TRANSFER = :permata_bank_transfer
|
|
70
|
+
OPEN_BANKING_UK = :open_banking_uk
|
|
71
|
+
PAY_BRIGHT = :pay_bright
|
|
72
|
+
PAYPAL = :paypal
|
|
73
|
+
PAZE = :paze
|
|
74
|
+
PIX = :pix
|
|
75
|
+
PAY_SAFE_CARD = :pay_safe_card
|
|
76
|
+
PRZELEWY24 = :przelewy24
|
|
77
|
+
PROMPT_PAY = :prompt_pay
|
|
78
|
+
PSE = :pse
|
|
79
|
+
RED_COMPRA = :red_compra
|
|
80
|
+
RED_PAGOS = :red_pagos
|
|
81
|
+
SAMSUNG_PAY = :samsung_pay
|
|
23
82
|
SEPA = :sepa
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
83
|
+
SEPA_BANK_TRANSFER = :sepa_bank_transfer
|
|
84
|
+
SOFORT = :sofort
|
|
85
|
+
SWISH = :swish
|
|
86
|
+
TOUCH_N_GO = :touch_n_go
|
|
87
|
+
TRUSTLY = :trustly
|
|
88
|
+
TWINT = :twint
|
|
89
|
+
UPI_COLLECT = :upi_collect
|
|
90
|
+
UPI_INTENT = :upi_intent
|
|
91
|
+
VIPPS = :vipps
|
|
92
|
+
VIET_QR = :viet_qr
|
|
93
|
+
VENMO = :venmo
|
|
94
|
+
WALLEY = :walley
|
|
95
|
+
WE_CHAT_PAY = :we_chat_pay
|
|
96
|
+
SEVEN_ELEVEN = :seven_eleven
|
|
97
|
+
LAWSON = :lawson
|
|
98
|
+
MINI_STOP = :mini_stop
|
|
99
|
+
FAMILY_MART = :family_mart
|
|
100
|
+
SEICOMART = :seicomart
|
|
101
|
+
PAY_EASY = :pay_easy
|
|
102
|
+
LOCAL_BANK_TRANSFER = :local_bank_transfer
|
|
103
|
+
MIFINITY = :mifinity
|
|
104
|
+
OPEN_BANKING_PIS = :open_banking_pis
|
|
105
|
+
DIRECT_CARRIER_BILLING = :direct_carrier_billing
|
|
106
|
+
INSTANT_BANK_TRANSFER = :instant_bank_transfer
|
|
107
|
+
BILLIE = :billie
|
|
108
|
+
ZIP = :zip
|
|
109
|
+
REVOLUT_PAY = :revolut_pay
|
|
110
|
+
NAVER_PAY = :naver_pay
|
|
111
|
+
PAYCO = :payco
|
|
27
112
|
|
|
28
113
|
# @!method self.values
|
|
29
114
|
# @return [Array<Symbol>]
|
|
@@ -10,10 +10,9 @@ module Dodopayments
|
|
|
10
10
|
required :business_id, String
|
|
11
11
|
|
|
12
12
|
# @!attribute data
|
|
13
|
-
# Event-specific data
|
|
14
13
|
#
|
|
15
|
-
# @return [Dodopayments::Models::
|
|
16
|
-
required :data, -> { Dodopayments::
|
|
14
|
+
# @return [Dodopayments::Models::Payment]
|
|
15
|
+
required :data, -> { Dodopayments::Payment }
|
|
17
16
|
|
|
18
17
|
# @!attribute timestamp
|
|
19
18
|
# The timestamp of when the event occurred
|
|
@@ -30,36 +29,12 @@ module Dodopayments
|
|
|
30
29
|
# @!method initialize(business_id:, data:, timestamp:, type:)
|
|
31
30
|
# @param business_id [String] The business identifier
|
|
32
31
|
#
|
|
33
|
-
# @param data [Dodopayments::Models::
|
|
32
|
+
# @param data [Dodopayments::Models::Payment]
|
|
34
33
|
#
|
|
35
34
|
# @param timestamp [Time] The timestamp of when the event occurred
|
|
36
35
|
#
|
|
37
36
|
# @param type [Symbol, Dodopayments::Models::PaymentProcessingWebhookEvent::Type] The event type
|
|
38
37
|
|
|
39
|
-
# @see Dodopayments::Models::PaymentProcessingWebhookEvent#data
|
|
40
|
-
class Data < Dodopayments::Models::Payment
|
|
41
|
-
# @!attribute payload_type
|
|
42
|
-
# The type of payload in the data field
|
|
43
|
-
#
|
|
44
|
-
# @return [Symbol, Dodopayments::Models::PaymentProcessingWebhookEvent::Data::PayloadType, nil]
|
|
45
|
-
optional :payload_type, enum: -> { Dodopayments::PaymentProcessingWebhookEvent::Data::PayloadType }
|
|
46
|
-
|
|
47
|
-
# @!method initialize(payload_type: nil)
|
|
48
|
-
# Event-specific data
|
|
49
|
-
#
|
|
50
|
-
# @param payload_type [Symbol, Dodopayments::Models::PaymentProcessingWebhookEvent::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
|
-
PAYMENT = :Payment
|
|
57
|
-
|
|
58
|
-
# @!method self.values
|
|
59
|
-
# @return [Array<Symbol>]
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
|
|
63
38
|
# The event type
|
|
64
39
|
#
|
|
65
40
|
# @see Dodopayments::Models::PaymentProcessingWebhookEvent#type
|
|
@@ -10,10 +10,9 @@ module Dodopayments
|
|
|
10
10
|
required :business_id, String
|
|
11
11
|
|
|
12
12
|
# @!attribute data
|
|
13
|
-
# Event-specific data
|
|
14
13
|
#
|
|
15
|
-
# @return [Dodopayments::Models::
|
|
16
|
-
required :data, -> { Dodopayments::
|
|
14
|
+
# @return [Dodopayments::Models::Payment]
|
|
15
|
+
required :data, -> { Dodopayments::Payment }
|
|
17
16
|
|
|
18
17
|
# @!attribute timestamp
|
|
19
18
|
# The timestamp of when the event occurred
|
|
@@ -30,36 +29,12 @@ module Dodopayments
|
|
|
30
29
|
# @!method initialize(business_id:, data:, timestamp:, type:)
|
|
31
30
|
# @param business_id [String] The business identifier
|
|
32
31
|
#
|
|
33
|
-
# @param data [Dodopayments::Models::
|
|
32
|
+
# @param data [Dodopayments::Models::Payment]
|
|
34
33
|
#
|
|
35
34
|
# @param timestamp [Time] The timestamp of when the event occurred
|
|
36
35
|
#
|
|
37
36
|
# @param type [Symbol, Dodopayments::Models::PaymentSucceededWebhookEvent::Type] The event type
|
|
38
37
|
|
|
39
|
-
# @see Dodopayments::Models::PaymentSucceededWebhookEvent#data
|
|
40
|
-
class Data < Dodopayments::Models::Payment
|
|
41
|
-
# @!attribute payload_type
|
|
42
|
-
# The type of payload in the data field
|
|
43
|
-
#
|
|
44
|
-
# @return [Symbol, Dodopayments::Models::PaymentSucceededWebhookEvent::Data::PayloadType, nil]
|
|
45
|
-
optional :payload_type, enum: -> { Dodopayments::PaymentSucceededWebhookEvent::Data::PayloadType }
|
|
46
|
-
|
|
47
|
-
# @!method initialize(payload_type: nil)
|
|
48
|
-
# Event-specific data
|
|
49
|
-
#
|
|
50
|
-
# @param payload_type [Symbol, Dodopayments::Models::PaymentSucceededWebhookEvent::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
|
-
PAYMENT = :Payment
|
|
57
|
-
|
|
58
|
-
# @!method self.values
|
|
59
|
-
# @return [Array<Symbol>]
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
|
|
63
38
|
# The event type
|
|
64
39
|
#
|
|
65
40
|
# @see Dodopayments::Models::PaymentSucceededWebhookEvent#type
|
|
@@ -10,10 +10,9 @@ module Dodopayments
|
|
|
10
10
|
required :business_id, String
|
|
11
11
|
|
|
12
12
|
# @!attribute data
|
|
13
|
-
# Event-specific data
|
|
14
13
|
#
|
|
15
|
-
# @return [Dodopayments::Models::
|
|
16
|
-
required :data, -> { Dodopayments::
|
|
14
|
+
# @return [Dodopayments::Models::Refund]
|
|
15
|
+
required :data, -> { Dodopayments::Refund }
|
|
17
16
|
|
|
18
17
|
# @!attribute timestamp
|
|
19
18
|
# The timestamp of when the event occurred
|
|
@@ -30,36 +29,12 @@ module Dodopayments
|
|
|
30
29
|
# @!method initialize(business_id:, data:, timestamp:, type:)
|
|
31
30
|
# @param business_id [String] The business identifier
|
|
32
31
|
#
|
|
33
|
-
# @param data [Dodopayments::Models::
|
|
32
|
+
# @param data [Dodopayments::Models::Refund]
|
|
34
33
|
#
|
|
35
34
|
# @param timestamp [Time] The timestamp of when the event occurred
|
|
36
35
|
#
|
|
37
36
|
# @param type [Symbol, Dodopayments::Models::RefundFailedWebhookEvent::Type] The event type
|
|
38
37
|
|
|
39
|
-
# @see Dodopayments::Models::RefundFailedWebhookEvent#data
|
|
40
|
-
class Data < Dodopayments::Models::Refund
|
|
41
|
-
# @!attribute payload_type
|
|
42
|
-
# The type of payload in the data field
|
|
43
|
-
#
|
|
44
|
-
# @return [Symbol, Dodopayments::Models::RefundFailedWebhookEvent::Data::PayloadType, nil]
|
|
45
|
-
optional :payload_type, enum: -> { Dodopayments::RefundFailedWebhookEvent::Data::PayloadType }
|
|
46
|
-
|
|
47
|
-
# @!method initialize(payload_type: nil)
|
|
48
|
-
# Event-specific data
|
|
49
|
-
#
|
|
50
|
-
# @param payload_type [Symbol, Dodopayments::Models::RefundFailedWebhookEvent::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
|
-
REFUND = :Refund
|
|
57
|
-
|
|
58
|
-
# @!method self.values
|
|
59
|
-
# @return [Array<Symbol>]
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
|
|
63
38
|
# The event type
|
|
64
39
|
#
|
|
65
40
|
# @see Dodopayments::Models::RefundFailedWebhookEvent#type
|
|
@@ -10,10 +10,9 @@ module Dodopayments
|
|
|
10
10
|
required :business_id, String
|
|
11
11
|
|
|
12
12
|
# @!attribute data
|
|
13
|
-
# Event-specific data
|
|
14
13
|
#
|
|
15
|
-
# @return [Dodopayments::Models::
|
|
16
|
-
required :data, -> { Dodopayments::
|
|
14
|
+
# @return [Dodopayments::Models::Refund]
|
|
15
|
+
required :data, -> { Dodopayments::Refund }
|
|
17
16
|
|
|
18
17
|
# @!attribute timestamp
|
|
19
18
|
# The timestamp of when the event occurred
|
|
@@ -30,36 +29,12 @@ module Dodopayments
|
|
|
30
29
|
# @!method initialize(business_id:, data:, timestamp:, type:)
|
|
31
30
|
# @param business_id [String] The business identifier
|
|
32
31
|
#
|
|
33
|
-
# @param data [Dodopayments::Models::
|
|
32
|
+
# @param data [Dodopayments::Models::Refund]
|
|
34
33
|
#
|
|
35
34
|
# @param timestamp [Time] The timestamp of when the event occurred
|
|
36
35
|
#
|
|
37
36
|
# @param type [Symbol, Dodopayments::Models::RefundSucceededWebhookEvent::Type] The event type
|
|
38
37
|
|
|
39
|
-
# @see Dodopayments::Models::RefundSucceededWebhookEvent#data
|
|
40
|
-
class Data < Dodopayments::Models::Refund
|
|
41
|
-
# @!attribute payload_type
|
|
42
|
-
# The type of payload in the data field
|
|
43
|
-
#
|
|
44
|
-
# @return [Symbol, Dodopayments::Models::RefundSucceededWebhookEvent::Data::PayloadType, nil]
|
|
45
|
-
optional :payload_type, enum: -> { Dodopayments::RefundSucceededWebhookEvent::Data::PayloadType }
|
|
46
|
-
|
|
47
|
-
# @!method initialize(payload_type: nil)
|
|
48
|
-
# Event-specific data
|
|
49
|
-
#
|
|
50
|
-
# @param payload_type [Symbol, Dodopayments::Models::RefundSucceededWebhookEvent::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
|
-
REFUND = :Refund
|
|
57
|
-
|
|
58
|
-
# @!method self.values
|
|
59
|
-
# @return [Array<Symbol>]
|
|
60
|
-
end
|
|
61
|
-
end
|
|
62
|
-
|
|
63
38
|
# The event type
|
|
64
39
|
#
|
|
65
40
|
# @see Dodopayments::Models::RefundSucceededWebhookEvent#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::SubscriptionActiveWebhookEvent::Type] The event type
|
|
38
38
|
|
|
39
|
-
# @see Dodopayments::Models::SubscriptionActiveWebhookEvent#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::SubscriptionActiveWebhookEvent::Data::PayloadType, nil]
|
|
45
|
-
optional :payload_type, enum: -> { Dodopayments::SubscriptionActiveWebhookEvent::Data::PayloadType }
|
|
46
|
-
|
|
47
|
-
# @!method initialize(payload_type: nil)
|
|
48
|
-
# Event-specific data
|
|
49
|
-
#
|
|
50
|
-
# @param payload_type [Symbol, Dodopayments::Models::SubscriptionActiveWebhookEvent::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::SubscriptionActiveWebhookEvent#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::SubscriptionCancelledWebhookEvent::Type] The event type
|
|
38
38
|
|
|
39
|
-
# @see Dodopayments::Models::SubscriptionCancelledWebhookEvent#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::SubscriptionCancelledWebhookEvent::Data::PayloadType, nil]
|
|
45
|
-
optional :payload_type, enum: -> { Dodopayments::SubscriptionCancelledWebhookEvent::Data::PayloadType }
|
|
46
|
-
|
|
47
|
-
# @!method initialize(payload_type: nil)
|
|
48
|
-
# Event-specific data
|
|
49
|
-
#
|
|
50
|
-
# @param payload_type [Symbol, Dodopayments::Models::SubscriptionCancelledWebhookEvent::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::SubscriptionCancelledWebhookEvent#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::SubscriptionExpiredWebhookEvent::Type] The event type
|
|
38
38
|
|
|
39
|
-
# @see Dodopayments::Models::SubscriptionExpiredWebhookEvent#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::SubscriptionExpiredWebhookEvent::Data::PayloadType, nil]
|
|
45
|
-
optional :payload_type, enum: -> { Dodopayments::SubscriptionExpiredWebhookEvent::Data::PayloadType }
|
|
46
|
-
|
|
47
|
-
# @!method initialize(payload_type: nil)
|
|
48
|
-
# Event-specific data
|
|
49
|
-
#
|
|
50
|
-
# @param payload_type [Symbol, Dodopayments::Models::SubscriptionExpiredWebhookEvent::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::SubscriptionExpiredWebhookEvent#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::SubscriptionFailedWebhookEvent::Type] The event type
|
|
38
38
|
|
|
39
|
-
# @see Dodopayments::Models::SubscriptionFailedWebhookEvent#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::SubscriptionFailedWebhookEvent::Data::PayloadType, nil]
|
|
45
|
-
optional :payload_type, enum: -> { Dodopayments::SubscriptionFailedWebhookEvent::Data::PayloadType }
|
|
46
|
-
|
|
47
|
-
# @!method initialize(payload_type: nil)
|
|
48
|
-
# Event-specific data
|
|
49
|
-
#
|
|
50
|
-
# @param payload_type [Symbol, Dodopayments::Models::SubscriptionFailedWebhookEvent::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::SubscriptionFailedWebhookEvent#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::SubscriptionOnHoldWebhookEvent::Type] The event type
|
|
38
38
|
|
|
39
|
-
# @see Dodopayments::Models::SubscriptionOnHoldWebhookEvent#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::SubscriptionOnHoldWebhookEvent::Data::PayloadType, nil]
|
|
45
|
-
optional :payload_type, enum: -> { Dodopayments::SubscriptionOnHoldWebhookEvent::Data::PayloadType }
|
|
46
|
-
|
|
47
|
-
# @!method initialize(payload_type: nil)
|
|
48
|
-
# Event-specific data
|
|
49
|
-
#
|
|
50
|
-
# @param payload_type [Symbol, Dodopayments::Models::SubscriptionOnHoldWebhookEvent::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::SubscriptionOnHoldWebhookEvent#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::SubscriptionPlanChangedWebhookEvent::Type] The event type
|
|
38
38
|
|
|
39
|
-
# @see Dodopayments::Models::SubscriptionPlanChangedWebhookEvent#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::SubscriptionPlanChangedWebhookEvent::Data::PayloadType, nil]
|
|
45
|
-
optional :payload_type, enum: -> { Dodopayments::SubscriptionPlanChangedWebhookEvent::Data::PayloadType }
|
|
46
|
-
|
|
47
|
-
# @!method initialize(payload_type: nil)
|
|
48
|
-
# Event-specific data
|
|
49
|
-
#
|
|
50
|
-
# @param payload_type [Symbol, Dodopayments::Models::SubscriptionPlanChangedWebhookEvent::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::SubscriptionPlanChangedWebhookEvent#type
|