@@ -74,6 +74,7 @@ public enum EventObject: Codable {
7474 case applicationFee( ApplicationFee )
7575 case applicationFeeRefund( ApplicationFeeRefund )
7676 case balance( Balance )
77+ case billingPortalSession( PortalSession )
7778 case capability( Capability )
7879 case charge( Charge )
7980 case dispute( Dispute )
@@ -104,7 +105,7 @@ public enum EventObject: Codable {
104105 case price( Price )
105106 case product( Product )
106107 case promotionCode( PromotionCode )
107- case earlyFraudWarniing ( EarlyFraudWarning )
108+ case earlyFraudWarning ( EarlyFraudWarning )
108109 case quote( Quote )
109110 case reportRun( ReportRun )
110111 case reportType( ReportType )
@@ -138,6 +139,8 @@ public enum EventObject: Codable {
138139 self = try . bankAccount( BankAccount ( from: decoder) )
139140 case " billing_portal.configuration " :
140141 self = try . configuration( PortalConfiguration ( from: decoder) )
142+ case " billing_portal.session " :
143+ self = try . billingPortalSession( PortalSession ( from: decoder) )
141144 case " fee_refund " :
142145 self = try . applicationFeeRefund( ApplicationFeeRefund ( from: decoder) )
143146 case " balance " :
@@ -203,7 +206,7 @@ public enum EventObject: Codable {
203206 case " promotion_code " :
204207 self = try . promotionCode( PromotionCode ( from: decoder) )
205208 case " radar.early_fraud_warning " :
206- self = try . earlyFraudWarniing ( EarlyFraudWarning ( from: decoder) )
209+ self = try . earlyFraudWarning ( EarlyFraudWarning ( from: decoder) )
207210 case " quote " :
208211 self = try . quote( Quote ( from: decoder) )
209212 case " reporting.report_run " :
@@ -247,6 +250,8 @@ public enum EventObject: Codable {
247250 try cashBalance. encode ( to: encoder)
248251 case . bankAccount( let bankAccount) :
249252 try bankAccount. encode ( to: encoder)
253+ case . billingPortalSession( let portalSession) :
254+ try portalSession. encode ( to: encoder)
250255 case . applicationFee( let applicationFee) :
251256 try applicationFee. encode ( to: encoder)
252257 case . applicationFeeRefund( let applicationFeeRefund) :
@@ -313,7 +318,7 @@ public enum EventObject: Codable {
313318 try product. encode ( to: encoder)
314319 case . promotionCode( let promotionCode) :
315320 try promotionCode. encode ( to: encoder)
316- case . earlyFraudWarniing ( let earlyFraudWarning) :
321+ case . earlyFraudWarning ( let earlyFraudWarning) :
317322 try earlyFraudWarning. encode ( to: encoder)
318323 case . quote( let quote) :
319324 try quote. encode ( to: encoder)
0 commit comments