Skip to content

release: 0.143.0 - #224

Merged
hiroTamada merged 2 commits into
mainfrom
release-please--branches--main--changes--next
Nov 7, 2026
Merged

hiroTamada merged 2 commits into
mainfrom
release-please--branches--main--changes--next

Conversation

@kernel-internal

@kernel-internal kernel-internal Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Automated Release PR

0.143.0 (2026-11-07)

Features

  • chore(stlc): seal custom-code tracking files (f0ab2b0)

This pull request is managed by Stainless's GitHub App.

The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.

For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.

🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions


Note

Medium Risk
Changes the VGS card vault request contract and required-field rules for payment flows; integrators must set card_mode correctly to avoid API rejections.

Overview
Bumps the SDK to v0.143.0 (manifest, changelog, README pin, and PackageVersion).

The functional API change is VGS vault card purchases now support a card_mode field (full or cvc_only) on VgsCardVaultItemSpec and related vault union types, plus GetCardMode() on params. cvc_only covers checkouts where the merchant already has the PAN and only needs a fresh CVC alias.

VgsCardInput / VgsCardInputParam validation is relaxed to match: only cvc_alias stays always required; pan_alias, expiry, and last4 are optional in the SDK (required at the API for full, disallowed for cvc_only) and request params use param.Opt where appropriate.

Reviewed by Cursor Bugbot for commit 285ee21. Bugbot is set up for automated code reviews on this repo. Configure here.

Stainless-Generated-From: d22d35c6ed7d6e9c7855c18de818227ad4db24ce

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 285ee21. Configure here.

Comment thread vaultitem.go
Last4 param.Opt[string] `json:"last4,omitzero"`
// A persistent alias of the card number in the customer's vault. Required with
// card_mode full, rejected with card_mode cvc_only.
PanAlias param.Opt[string] `json:"pan_alias,omitzero"`

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undocumented required-to-optional field change

Medium Severity

Existing VgsCardInputParam fields ExpMonth, ExpYear, Last4, and PanAlias changed from required concrete types to param.Opt, so assignments like params.ExpMonth = 12 no longer compile. CHANGELOG.md and the release notes do not name these fields or the required-to-optional shift.

Additional Locations (1)
Fix in Cursor Fix in Web

Triggered by learned rule: Flag undocumented Params required↔optional type changes

Reviewed by Cursor Bugbot for commit 285ee21. Configure here.

@hiroTamada
hiroTamada merged commit 76cd35d into main Nov 7, 2026
12 checks passed
@kernel-internal

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant