namespace TrackQrApi.Features.Billing.Common;

public record CheckoutSessionRequest(
    Guid WorkspaceId,
    string Plan,
    string SuccessUrl,
    string CancelUrl
);

public record CheckoutSessionResponse(string Url);

public record PortalSessionRequest(string ReturnUrl);

public record PortalSessionResponse(string Url);

public record SubscriptionResponse(
    Guid WorkspaceId,
    string Plan,
    string? SubscriptionId,
    DateTime? CurrentPeriodEnd,
    bool IsActive,
    bool CancelAtPeriodEnd
);