Add subcription feature 4

This commit is contained in:
Urtzi Alfaro
2026-01-15 22:06:36 +01:00
parent b674708a4c
commit 483a9f64cd
10 changed files with 1209 additions and 1390 deletions

View File

@@ -67,4 +67,14 @@ class SubscriptionUpdateFailed(PaymentException):
class PaymentServiceError(PaymentException):
"""General payment service error"""
def __init__(self, message: str = "Payment service error"):
super().__init__(message)
class PaymentMethodError(PaymentException):
"""Exception raised when payment method operations fail"""
def __init__(self, message: str = "Payment method operation failed"):
super().__init__(message)
class CustomerUpdateFailed(PaymentException):
"""Exception raised when customer update operations fail"""
def __init__(self, message: str = "Customer update failed"):
super().__init__(message)