-
Notifications
You must be signed in to change notification settings - Fork 7
docs: sync CNY_ACCOUNT support with OpenAPI schema #555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,6 +24,7 @@ import { FeatureCard, FeatureCardGrid, FeatureCardList, FeatureCardContainer } f | |
| | 🇧🇷 Brazil | BR | `PIX` | | ||
| | 🇧🇬 Bulgaria | BG | `SEPA` `SEPA Instant` | | ||
| | 🇨🇲 Cameroon | CM | `Bank Transfer` | | ||
| | 🇨🇳 China | CN | `Bank Transfer` | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The OpenAPI schema for Prompt To Fix With AIThis is a comment left during a code review.
Path: mintlify/snippets/country-support.mdx
Line: 27
Comment:
**Payment rail label contradicts the OpenAPI schema**
The OpenAPI schema for `CnyAccountInfo` (`openapi/components/schemas/common/CnyAccountInfo.yaml`) restricts `paymentRails` to a single enum value: `MOBILE_MONEY`. The account fields (`phoneNumber` + `bankName`) also match a phone-based mobile-money flow (consistent with WeChat Pay / Alipay), not a conventional direct bank transfer. Listing China here as `Bank Transfer` will mislead developers who then find the API only accepts `MOBILE_MONEY` as the payment rail. The same mismatch exists in `currencies.ts` (`allRails: ['Bank Transfer']`).
How can I resolve this? If you propose a fix, please make it concise. |
||
| | 🇨🇴 Colombia | CO | `Bank Transfer` | | ||
| | 🇭🇷 Croatia | HR | `SEPA` `SEPA Instant` | | ||
| | 🇨🇾 Cyprus | CY | `SEPA` `SEPA Instant` | | ||
|
|
@@ -87,7 +88,7 @@ Regional Summary | |
| <FeatureCard icon="/images/icons/globe.svg" title="Middle East and Africa" tag="14 countries"> | ||
| Primary: Bank Transfer | ||
| </FeatureCard> | ||
| <FeatureCard icon="/images/icons/globe.svg" title="Asia-Pacific" tag="9 countries"> | ||
| <FeatureCard icon="/images/icons/globe.svg" title="Asia-Pacific" tag="10 countries"> | ||
| Various instant payment systems | ||
| </FeatureCard> | ||
| <FeatureCard icon="/images/icons/globe.svg" title="Americas" tag="5 countries"> | ||
|
|
@@ -102,6 +103,5 @@ Grid is rapidly expanding. These corridors are next on our roadmap — get in to | |
| | Country | ISO Code | | ||
| |---|---| | ||
| | 🇨🇦 Canada | CA | | ||
| | 🇨🇳 China | CN | | ||
| | 🇭🇰 Hong Kong | HK | | ||
| | 🇰🇷 South Korea | KR | | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CnyAccountInfo.yaml) restrictspaymentRailstoMOBILE_MONEYonly, so labelling the rail asBank Transferhere is inconsistent with the API contract. The label should reflect the actual underlying rail (mobile money via WeChat Pay / Alipay) to avoid confusing integrators.Prompt To Fix With AI