Add ZAR KES TSZ ZMW RWF account beneficiary information for grid#231
Add ZAR KES TSZ ZMW RWF account beneficiary information for grid#231matthappens wants to merge 1 commit intomainfrom
Conversation
✱ Stainless preview buildsThis PR will update the kotlin openapi python typescript Edit this comment to update them. They will appear in their respective SDK's changelogs. ✅ grid-python studio · code · diff
✅ grid-openapi studio · code · diff
⏳ grid-kotlin studio✅ grid-typescript studio · code · diff
⏳ These are partial results; builds are still running. This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push. |
cli/package-lock.json
Outdated
| "@types/node": "^20.0.0", | ||
| "ts-node": "^10.9.2", | ||
| "typescript": "^5.4.0" | ||
| }, |
There was a problem hiding this comment.
we might be able to skip this
3621b11 to
07d2ba8
Compare
Greptile SummaryAdded support for 5 new African currencies (KES, RWF, TZS, ZAR, ZMW) with region-specific payment methods. The implementation follows existing patterns consistently across all new account types. Key Changes:
Note: The PR description mentions "Added Node.js engine requirement of >=18.0.0 in CLI package.json" but no package.json changes are present in this diff. This may need clarification. Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| openapi/components/schemas/common/KesAccountInfo.yaml | Added Kenya mobile money account schema with M-PESA provider and phone validation |
| openapi/components/schemas/common/RwfAccountInfo.yaml | Added Rwanda mobile money account schema with MTN and AIRTEL providers |
| openapi/components/schemas/common/TzsAccountInfo.yaml | Added Tanzania mobile money account schema with AIRTEL and VODACOM providers |
| openapi/components/schemas/common/ZarAccountInfo.yaml | Added South Africa bank transfer account schema with account number validation (9-13 digits) |
| openapi/components/schemas/common/ZmwAccountInfo.yaml | Added Zambia mobile money account schema with TNM, AIRTEL, ZAMTEL, and MTN providers |
| openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml | Integrated all 5 new account types into discriminator mapping and oneOf schema |
| openapi/components/schemas/external_accounts/ExternalAccountType.yaml | Added all 5 new account type enums (KES, RWF, TZS, ZAR, ZMW) |
Last reviewed commit: 07d2ba8
| type: string | ||
| description: Kenyan mobile money phone number | ||
| example: '+254712345678' | ||
| pattern: ^\+254[0-9]{9}$ |
There was a problem hiding this comment.
Verify pattern ^\+254[0-9]{9}$ correctly validates all M-PESA numbers (check if 7xx, 1xx prefixes are the only valid ones for Kenya mobile money).
Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/common/KesAccountInfo.yaml
Line: 29
Comment:
Verify pattern `^\+254[0-9]{9}$` correctly validates all M-PESA numbers (check if 7xx, 1xx prefixes are the only valid ones for Kenya mobile money).
How can I resolve this? If you propose a fix, please make it concise.| type: string | ||
| description: Rwandan mobile money phone number | ||
| example: '+250781234567' | ||
| pattern: ^\+250[0-9]{9}$ |
There was a problem hiding this comment.
Verify pattern ^\+250[0-9]{9}$ covers all valid MTN and AIRTEL mobile money numbers in Rwanda.
Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/common/RwfAccountInfo.yaml
Line: 29
Comment:
Verify pattern `^\+250[0-9]{9}$` covers all valid MTN and AIRTEL mobile money numbers in Rwanda.
How can I resolve this? If you propose a fix, please make it concise.| type: string | ||
| description: Tanzanian mobile money phone number | ||
| example: '+255712345678' | ||
| pattern: ^\+255[0-9]{9}$ |
There was a problem hiding this comment.
Verify pattern ^\+255[0-9]{9}$ covers all valid AIRTEL and VODACOM mobile money numbers in Tanzania.
Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/common/TzsAccountInfo.yaml
Line: 29
Comment:
Verify pattern `^\+255[0-9]{9}$` covers all valid AIRTEL and VODACOM mobile money numbers in Tanzania.
How can I resolve this? If you propose a fix, please make it concise.| type: string | ||
| description: Zambian mobile money phone number | ||
| example: '+260971234567' | ||
| pattern: ^\+260[0-9]{9}$ |
There was a problem hiding this comment.
Verify pattern ^\+260[0-9]{9}$ covers all valid mobile money numbers for TNM, AIRTEL, ZAMTEL, and MTN in Zambia.
Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/common/ZmwAccountInfo.yaml
Line: 29
Comment:
Verify pattern `^\+260[0-9]{9}$` covers all valid mobile money numbers for TNM, AIRTEL, ZAMTEL, and MTN in Zambia.
How can I resolve this? If you propose a fix, please make it concise.
TL;DR
Added support for 5 new African currencies (KES, RWF, TZS, ZAR, ZMW) with mobile money and bank transfer payment methods, plus set minimum Node.js version requirement to 18.0.0.
What changed?
How to test?
Why make this change?
This change expands payment coverage to key African markets by adding support for popular local payment methods like M-PESA in Kenya and various mobile money providers across East and Southern Africa.