Skip to content

30-Day Pro Trial Support (client-side) #75

@fupelaqu

Description

@fupelaqu

Story 5.9: 30-Day Pro Trial Support (elasticsql)

As a new user evaluating SoftClient4ES,
I want to activate a 30-day Pro trial via API key,
So that I can experience full Pro capabilities before purchasing.

Scope (elasticsql only)

  • Add isTrial convenience method to LicenseKey and LicenseManager trait
  • Add daysRemaining computed property to LicenseKey
  • Update SHOW LICENSE output to surface trial status ("Pro (trial)", trial boolean column, days_remaining column)
  • Unit tests for isTrial and daysRemaining

Acceptance Criteria

  1. Given a JWT with "trial": true and tier: "pro" When validated Then LicenseKey.isTrial returns true and full Pro quotas are active
  2. Given SHOW LICENSE on a trial license Then license_type shows "Pro (trial)", trial column is true, days_remaining shows days left
  3. Trial is a metadata flag on Pro — not a separate LicenseType

Files

File Action
licensing/src/main/scala/app/softnetwork/elastic/licensing/package.scala Add isTrial, daysRemaining to LicenseKey; add isTrial to LicenseManager
licensing/src/test/scala/app/softnetwork/elastic/licensing/LicenseKeySpec.scala Add tests
core/src/main/scala/app/softnetwork/elastic/client/GatewayApi.scala Update executeShowLicense()

Dependencies

Implementation Artifact

See _bmad-output/implementation-artifacts/5-9-30-day-pro-trial-support.md (Tasks 1–2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions