Add FAMILY_SUPPORT and SALARY_PAYMENT to PurposeOfPayment#592
Conversation
Thunes corridors require these purposes that the enum couldn't express: WeChatPay C2C accepts only FAMILY_SUPPORT/SALARY_PAYMENT, and AliPay B2C accepts SALARY_PAYMENT — without these, those purposes normalize to OTHER and the payout is declined (DECLINED-INVALID-PURPOSE-OF-REMITTANCE). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
✱ Stainless preview builds for gridThis PR will update the cli csharp go kotlin openapi php python ruby typescript ✅ grid-ruby studio · code
|
## Summary - Added `FAMILY_SUPPORT` and `SALARY_PAYMENT` to the documented purpose of payment codes in the cross-currency transfers guide These values were added to the OpenAPI schema in PR #592 (commit 460f14d) but the Mintlify documentation wasn't updated. ## Changes **Documentation (mintlify/):** - `mintlify/snippets/sending/cross-currency.mdx` - Added missing purpose of payment codes to match the schema ## Not updated (no changes needed) - **Contact verification endpoints** (PR #557): Already documented in `mintlify/snippets/kyc/kyc-unregulated.mdx` - **Stablecoin provider accounts** (PR #594): New API surface - not referenced in existing guides - **Kotlin sample app**: Uses SDK factory method for PurposeOfPayment which auto-supports new values - **Grid Visualizer**: Uses `'GIFT'` as example value which remains valid 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Adds
FAMILY_SUPPORTandSALARY_PAYMENTto thePurposeOfPaymentenum.Thunes corridors require these and the enum can't express them today: WeChatPay C2C accepts only
FAMILY_SUPPORT/SALARY_PAYMENT, and AliPay B2C acceptsSALARY_PAYMENT. Without them, the sparkcore purpose mapping normalizes these toOTHERand the payout is declined (DECLINED-INVALID-PURPOSE-OF-REMITTANCE). sparkcore enum + mapping follow once this merges.