@@ -74,7 +74,7 @@ public enum EventObject: Codable {
74
74
case applicationFee( ApplicationFee )
75
75
case applicationFeeRefund( ApplicationFeeRefund )
76
76
case balance( Balance )
77
- case billingPortalSessionCreated ( PortalSession )
77
+ case billingPortalSession ( PortalSession )
78
78
case capability( Capability )
79
79
case charge( Charge )
80
80
case dispute( Dispute )
@@ -139,8 +139,8 @@ public enum EventObject: Codable {
139
139
self = try . bankAccount( BankAccount ( from: decoder) )
140
140
case " billing_portal.configuration " :
141
141
self = try . configuration( PortalConfiguration ( from: decoder) )
142
- case " billing_portal.session.created " :
143
- self = try . billingPortalSessionCreated ( PortalSession ( from: decoder) )
142
+ case " billing_portal.session " :
143
+ self = try . billingPortalSession ( PortalSession ( from: decoder) )
144
144
case " fee_refund " :
145
145
self = try . applicationFeeRefund( ApplicationFeeRefund ( from: decoder) )
146
146
case " balance " :
@@ -250,7 +250,7 @@ public enum EventObject: Codable {
250
250
try cashBalance. encode ( to: encoder)
251
251
case . bankAccount( let bankAccount) :
252
252
try bankAccount. encode ( to: encoder)
253
- case . billingPortalSessionCreated ( let portalSession) :
253
+ case . billingPortalSession ( let portalSession) :
254
254
try portalSession. encode ( to: encoder)
255
255
case . applicationFee( let applicationFee) :
256
256
try applicationFee. encode ( to: encoder)
0 commit comments