Skip to content

Add verified payment provider reassignment and listing checks - #2

Open
turboeliasson wants to merge 1 commit into
164investments:mainfrom
turboeliasson:feat/payment-provider-reassignment
Open

Add verified payment provider reassignment and listing checks#2
turboeliasson wants to merge 1 commit into
164investments:mainfrom
turboeliasson:feat/payment-provider-reassignment

Conversation

@turboeliasson

Copy link
Copy Markdown

Listings explicitly assigned to one payment processor can reject direct assignment to another. Add guesty pp unassign-listings to return them to the active default provider, plus verify-listings to check the effective provider and connected Stripe account.

The move validates the batch and destination, supports dry runs, skips listings already on the default, and verifies the result after writing. The CLI contract includes the helper's API requests. The Open API unassign endpoint was verified live on 6 September 2026; it is absent from the published reference.

Validation: seven tests and TypeScript build passed. Live read-only checks verified all 26 migrated listings, an idempotent dry run proposed zero writes, and a deliberately wrong expected provider returned exit 1. The unassign API also accepted an already-default listing without changing the resulting assignments. Existing stored cards retain their original processor.

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