package ports import ( "Rezina-Backend/internal/domain" "context" ) type CoursePurchaseStore interface { CourseVideoLessonIDs(context.Context, string) ([]int64, error) HasCoursePurchase(context.Context, int64, int64) (bool, error) CourseContentAccess(context.Context, string, int64) (domain.CourseContentAccess, error) // CompleteCoursePayment atomically marks payment successful and grants access, idempotently. CompleteCoursePayment(context.Context, int64, string, string) error }