Skip to content

Commit 97fd213

Browse files
authored
Merge branch 'main' into feat/fx-rate-explorer
2 parents 2486adb + c848e22 commit 97fd213

128 files changed

Lines changed: 5397 additions & 1944 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stainless/stainless.yml

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,19 @@ resources:
109109
subresources:
110110
external_accounts:
111111
models:
112-
us_account_info: '#/components/schemas/UsAccountExternalAccountInfo'
113-
clabe_account_info: '#/components/schemas/ClabeAccountExternalAccountInfo'
114-
pix_account_info: '#/components/schemas/PixAccountExternalAccountInfo'
115-
iban_account_info: '#/components/schemas/IbanAccountExternalAccountInfo'
116-
upi_account_info: '#/components/schemas/UpiAccountExternalAccountInfo'
117-
ngn_account_info: '#/components/schemas/NgnAccountExternalAccountInfo'
118-
cad_account_info: '#/components/schemas/CadAccountExternalAccountInfo'
119-
gbp_account_info: '#/components/schemas/GbpAccountExternalAccountInfo'
120-
php_account_info: '#/components/schemas/PhpAccountExternalAccountInfo'
121-
sgd_account_info: '#/components/schemas/SgdAccountExternalAccountInfo'
112+
usd_account_info: '#/components/schemas/UsdExternalAccountInfo'
113+
brl_account_info: '#/components/schemas/BrlExternalAccountInfo'
114+
mxn_account_info: '#/components/schemas/MxnExternalAccountInfo'
115+
dkk_account_info: '#/components/schemas/DkkExternalAccountInfo'
116+
inr_account_info: '#/components/schemas/InrExternalAccountInfo'
117+
gbp_account_info: '#/components/schemas/GbpExternalAccountInfo'
118+
hkd_account_info: '#/components/schemas/HkdExternalAccountInfo'
119+
idr_account_info: '#/components/schemas/IdrExternalAccountInfo'
120+
myr_account_info: '#/components/schemas/MyrExternalAccountInfo'
121+
php_account_info: '#/components/schemas/PhpExternalAccountInfo'
122+
sgd_account_info: '#/components/schemas/SgdExternalAccountInfo'
123+
thb_account_info: '#/components/schemas/ThbExternalAccountInfo'
124+
vnd_account_info: '#/components/schemas/VndExternalAccountInfo'
122125
spark_wallet_info: '#/components/schemas/SparkWalletExternalAccountInfo'
123126
solana_wallet_info: '#/components/schemas/SolanaWalletExternalAccountInfo'
124127
tron_wallet_info: '#/components/schemas/TronWalletExternalAccountInfo'
@@ -483,12 +486,22 @@ openapi:
483486
stripping the accountType discriminator, which causes TS2312 errors
484487
args:
485488
target:
486-
- "$.components.schemas.PaymentClabeAccountInfo.allOf[0]"
487-
- "$.components.schemas.PaymentUsAccountInfo.allOf[0]"
488-
- "$.components.schemas.PaymentPixAccountInfo.allOf[0]"
489-
- "$.components.schemas.PaymentIbanAccountInfo.allOf[0]"
490-
- "$.components.schemas.PaymentUpiAccountInfo.allOf[0]"
489+
- "$.components.schemas.PaymentUsdAccountInfo.allOf[0]"
490+
- "$.components.schemas.PaymentBrlAccountInfo.allOf[0]"
491+
- "$.components.schemas.PaymentMxnAccountInfo.allOf[0]"
492+
- "$.components.schemas.PaymentDkkAccountInfo.allOf[0]"
493+
- "$.components.schemas.PaymentEurAccountInfo.allOf[0]"
494+
- "$.components.schemas.PaymentInrAccountInfo.allOf[0]"
491495
- "$.components.schemas.PaymentNgnAccountInfo.allOf[0]"
496+
- "$.components.schemas.PaymentCadAccountInfo.allOf[0]"
497+
- "$.components.schemas.PaymentGbpAccountInfo.allOf[0]"
498+
- "$.components.schemas.PaymentHkdAccountInfo.allOf[0]"
499+
- "$.components.schemas.PaymentIdrAccountInfo.allOf[0]"
500+
- "$.components.schemas.PaymentMyrAccountInfo.allOf[0]"
501+
- "$.components.schemas.PaymentPhpAccountInfo.allOf[0]"
502+
- "$.components.schemas.PaymentSgdAccountInfo.allOf[0]"
503+
- "$.components.schemas.PaymentThbAccountInfo.allOf[0]"
504+
- "$.components.schemas.PaymentVndAccountInfo.allOf[0]"
492505
- "$.components.schemas.PaymentSparkWalletInfo.allOf[0]"
493506
- "$.components.schemas.PaymentLightningInvoiceInfo.allOf[0]"
494507
- "$.components.schemas.PaymentSolanaWalletInfo.allOf[0]"
@@ -520,16 +533,6 @@ openapi:
520533
- "$.components.schemas.ExternalAccountDetailsDestination.allOf[0]"
521534
keys: [ "$ref" ]
522535

523-
# ── beneficiaryType: remove from base schema ──
524-
- command: remove
525-
reason: >-
526-
Remove beneficiaryType $ref from base schema so the inline
527-
single-value enums in each beneficiary variant become the sole definition
528-
args:
529-
target:
530-
- "$.components.schemas.BaseBeneficiary.properties"
531-
keys: [ "beneficiaryType" ]
532-
533536
codeflow:
534537
detect_breaking_changes: true
535538
release_environment: npm

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Grid is an API for global payments across fiat, stablecoins, and Bitcoin.
1313
- Use snippets from `mintlify/snippets/` instead of duplicating content across use cases
1414
- Follow writing standards in `mintlify/CLAUDE.md` for all documentation content
1515
- MDX files require frontmatter with `title` and `description`
16+
- React hooks (`useState`, `useEffect`, etc.) work in MDX. If the acorn parser throws, it's usually a JS expression issue (e.g., template literals in JSX curlies), not the hook itself.
1617

1718
## Commands
1819

mintlify/docs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
}
3030
},
3131
"favicon": {
32-
"light": "/favicon-dark.svg",
33-
"dark": "/favicon-light.svg"
32+
"light": "/favicon-light.svg",
33+
"dark": "/favicon-dark.svg"
3434
},
3535
"navigation": {
3636
"tabs": [

mintlify/favicon-dark.svg

Lines changed: 1 addition & 2 deletions
Loading

mintlify/favicon-light.svg

Lines changed: 1 addition & 2 deletions
Loading

mintlify/global-p2p/platform-tools/sandbox-testing.mdx

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,14 @@ curl -X POST "https://api.lightspark.com/grid/2025-10-13/quotes" \
6868
-H "Content-Type: application/json" \
6969
-d '{
7070
"lookupId": "Lookup:019542f5-b3e7-1d02-0000-000000000009",
71-
"sendingCurrencyCode": "MXN",
72-
"receivingCurrencyCode": "USD",
71+
"source": {
72+
"sourceType": "REALTIME_FUNDING",
73+
"currency": "MXN"
74+
},
75+
"destination": {
76+
"destinationType": "UMA_ADDRESS",
77+
"umaAddress": "$success.usd@sandbox.uma.money"
78+
},
7379
"lockedCurrencySide": "SENDING",
7480
"lockedCurrencyAmount": 10000
7581
}'
@@ -165,8 +171,14 @@ curl -X POST "https://api.lightspark.com/grid/2025-10-13/quotes" \
165171
-H "Content-Type: application/json" \
166172
-d '{
167173
"lookupId": "Lookup:019542f5-b3e7-1d02-0000-000000000009",
168-
"sendingCurrencyCode": "MXN",
169-
"receivingCurrencyCode": "USD",
174+
"source": {
175+
"sourceType": "REALTIME_FUNDING",
176+
"currency": "MXN"
177+
},
178+
"destination": {
179+
"destinationType": "UMA_ADDRESS",
180+
"umaAddress": "$success.usd@sandbox.uma.money"
181+
},
170182
"lockedCurrencySide": "SENDING",
171183
"lockedCurrencyAmount": 10000
172184
}'

mintlify/global-p2p/quickstart.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ icon: "/images/icons/rocket.svg"
77
import { remittanceProductName } from '/snippets/variables.mdx'
88

99
<img
10-
src="/images/heroes/hero-quickstart-globalp2p-light.svg"
10+
src="/images/heroes/hero-quickstart-globalp2p-light.jpg"
1111
alt="Global P2P quickstart hero"
1212
className="page-hero block dark:hidden"
1313
/>
1414
<img
15-
src="/images/heroes/hero-quickstart-globalp2p-dark.svg"
15+
src="/images/heroes/hero-quickstart-globalp2p-dark.jpg"
1616
alt="Global P2P quickstart hero"
1717
className="page-hero hidden dark:block"
1818
/>
35.9 KB
Loading
42.6 KB
Loading
32.2 KB
Loading

0 commit comments

Comments
 (0)