Skip to content

licence: preserve pack-count quantity semantics - #35

Merged
shtse8 merged 1 commit into
mainfrom
vesta/pack-quantity-semantics
Oct 26, 2026
Merged

shtse8 merged 1 commit into
mainfrom
vesta/pack-quantity-semantics

Conversation

@shtse8

@shtse8 shtse8 commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Corrects pack-count semantics for public Money checkout.

The established CLI contract is --pack <id> --qty <count>: the Money line quantity is pack seats × pack count. In particular, lockdocs licence buy --pack 5 --qty 2 buys 10 seats, not 2. Version 0.8.1 restores that behavior and refuses products above 10000.

Verification:

  • cargo test --workspace --locked --all-features: 59 unit + 6 remote + 1 server + 1 doctest passed, including the 5-seat × 2 = 10 request assertion and overflow refusal.
  • cargo clippy --workspace --locked --all-targets --all-features -- -D warnings
  • Changed-file rustfmt and git diff --check.
  • anymd and lockdocs compile and pass their Pro test groups against the local 0.8.1 source.

No live checkout, payment, recovery request or publication was made during implementation.

@shtse8
shtse8 enabled auto-merge (squash) October 26, 2026 00:13
@shtse8
shtse8 merged commit 24d6774 into main Oct 26, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant