Skip to content

Commit 9400e77

Browse files
authored
Add Ethereum L1 external accounts and payment instructions (#286)
1 parent c7adcda commit 9400e77

9 files changed

Lines changed: 108 additions & 3 deletions

mintlify/openapi.yaml

Lines changed: 37 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi.yaml

Lines changed: 37 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
type: object
2+
required:
3+
- address
4+
- accountType
5+
properties:
6+
accountType:
7+
type: string
8+
enum:
9+
- ETHEREUM_WALLET
10+
address:
11+
type: string
12+
description: Ethereum L1 wallet address
13+
example: '0xAbCDEF1234567890aBCdEf1234567890ABcDef12'

openapi/components/schemas/common/PaymentAccountType.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,6 @@ enum:
2222
- TRON_WALLET
2323
- POLYGON_WALLET
2424
- BASE_WALLET
25+
- ETHEREUM_WALLET
2526
description: Type of payment account or wallet
2627
example: USD_ACCOUNT
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
title: Ethereum Wallet
2+
allOf:
3+
- $ref: ./BasePaymentAccountInfo.yaml
4+
- $ref: ./EthereumWalletInfo.yaml
5+
- type: object
6+
properties:
7+
assetType:
8+
type: string
9+
description: Type of asset
10+
enum:
11+
- USDC

openapi/components/schemas/common/PaymentInstructions.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ properties:
4747
- $ref: ../common/PaymentTronWalletInfo.yaml
4848
- $ref: ../common/PaymentPolygonWalletInfo.yaml
4949
- $ref: ../common/PaymentBaseWalletInfo.yaml
50+
- $ref: ../common/PaymentEthereumWalletInfo.yaml
5051
discriminator:
5152
propertyName: accountType
5253
mapping:
@@ -72,6 +73,7 @@ properties:
7273
TRON_WALLET: ../common/PaymentTronWalletInfo.yaml
7374
POLYGON_WALLET: ../common/PaymentPolygonWalletInfo.yaml
7475
BASE_WALLET: ../common/PaymentBaseWalletInfo.yaml
76+
ETHEREUM_WALLET: ../common/PaymentEthereumWalletInfo.yaml
7577
AED_ACCOUNT: ../common/PaymentAedAccountInfo.yaml
7678
KES_ACCOUNT: ../common/PaymentKesAccountInfo.yaml
7779
MWK_ACCOUNT: ../common/PaymentMwkAccountInfo.yaml
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
title: Ethereum L1 Wallet
2+
allOf:
3+
- $ref: ./BaseExternalAccountInfo.yaml
4+
- $ref: ../common/EthereumWalletInfo.yaml

openapi/components/schemas/external_accounts/ExternalAccountInfoOneOf.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ oneOf:
2929
- $ref: ./TronWalletExternalAccountInfo.yaml
3030
- $ref: ./PolygonWalletExternalAccountInfo.yaml
3131
- $ref: ./BaseWalletExternalAccountInfo.yaml
32+
- $ref: ./EthereumWalletExternalAccountInfo.yaml
3233
- $ref: ./AedExternalAccountInfo.yaml
3334
- $ref: ./BwpExternalAccountInfo.yaml
3435
- $ref: ./XafExternalAccountInfo.yaml
@@ -65,7 +66,7 @@ discriminator:
6566
TRON_WALLET: ./TronWalletExternalAccountInfo.yaml
6667
POLYGON_WALLET: ./PolygonWalletExternalAccountInfo.yaml
6768
BASE_WALLET: ./BaseWalletExternalAccountInfo.yaml
69+
ETHEREUM_WALLET: ./EthereumWalletExternalAccountInfo.yaml
6870
AED_ACCOUNT: ./AedExternalAccountInfo.yaml
69-
LIGHTNING_ACCOUNT: ./LightningExternalAccountInfo.yaml
7071
BWP_ACCOUNT: ./BwpExternalAccountInfo.yaml
7172
XAF_ACCOUNT: ./XafExternalAccountInfo.yaml

openapi/components/schemas/external_accounts/ExternalAccountType.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ enum:
99
- TRON_WALLET
1010
- POLYGON_WALLET
1111
- BASE_WALLET
12+
- ETHEREUM_WALLET
1213
- AED_ACCOUNT
1314
- BRL_ACCOUNT
1415
- BWP_ACCOUNT

0 commit comments

Comments
 (0)