Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .stainless/stainless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ resources:
external_account_create: '#/components/schemas/ExternalAccountCreateRequest'
external_account_info_one_of: "#/components/schemas/ExternalAccountInfoOneOf"
business_beneficiary: "#/components/schemas/BusinessBeneficiary"
wallet_beneficiary_fields: "#/components/schemas/WalletBeneficiaryFields"
wallet_beneficiary_one_of: "#/components/schemas/WalletBeneficiaryOneOf"
wallet_individual_beneficiary: "#/components/schemas/WalletIndividualBeneficiary"
# Ownership verification (challenge/verify)
ownership_verification_method: "#/components/schemas/OwnershipVerificationMethod"
ownership_challenge_request: "#/components/schemas/OwnershipChallengeRequest"
Expand Down
45 changes: 45 additions & 0 deletions mintlify/openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions openapi.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions openapi/components/schemas/common/WalletIndividualBeneficiary.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
title: Individual Beneficiary
type: object
required:
- beneficiaryType
- fullName
- countryOfResidence
properties:
beneficiaryType:
type: string
enum:
- INDIVIDUAL
fullName:
type: string
description: The full name of the beneficiary
example: John Michael Doe
countryOfResidence:
type: string
description: The country of residence of the beneficiary (ISO 3166-1 alpha-2)
example: US
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ title: Base Wallet
allOf:
- $ref: ./BaseExternalAccountInfo.yaml
- $ref: ../common/BaseWalletInfo.yaml


- $ref: ./WalletBeneficiaryFields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ title: Ethereum L1 Wallet
allOf:
- $ref: ./BaseExternalAccountInfo.yaml
- $ref: ../common/EthereumWalletInfo.yaml
- $ref: ./WalletBeneficiaryFields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ title: Plasma Wallet
allOf:
- $ref: ./BaseExternalAccountInfo.yaml
- $ref: ../common/PlasmaWalletInfo.yaml
- $ref: ./WalletBeneficiaryFields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ title: Polygon Wallet
allOf:
- $ref: ./BaseExternalAccountInfo.yaml
- $ref: ../common/PolygonWalletInfo.yaml


- $ref: ./WalletBeneficiaryFields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ title: Solana Wallet
allOf:
- $ref: ./BaseExternalAccountInfo.yaml
- $ref: ../common/SolanaWalletInfo.yaml


- $ref: ./WalletBeneficiaryFields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ title: Spark Wallet
allOf:
- $ref: ./BaseExternalAccountInfo.yaml
- $ref: ../common/SparkWalletInfo.yaml


- $ref: ./WalletBeneficiaryFields.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ title: Tron Wallet
allOf:
- $ref: ./BaseExternalAccountInfo.yaml
- $ref: ../common/TronWalletInfo.yaml


- $ref: ./WalletBeneficiaryFields.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type: object
properties:
beneficiary:
description: >-
The wallet's owner. Optional for `FIRST_PARTY` accounts — the
customer's verified identity is used. Required for `THIRD_PARTY`
wallets on platforms with counterparty requirements (e.g. EU Travel
Rule); if missing there, creation fails with `400 INVALID_INPUT`.
$ref: ./WalletBeneficiaryOneOf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
description: >-
The person or business that owns a crypto wallet external account.
oneOf:
- title: Individual Beneficiary
$ref: ../common/WalletIndividualBeneficiary.yaml
- title: Business Beneficiary
$ref: ../common/BusinessBeneficiary.yaml
discriminator:
propertyName: beneficiaryType
mapping:
INDIVIDUAL: ../common/WalletIndividualBeneficiary.yaml
BUSINESS: ../common/BusinessBeneficiary.yaml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this mean there'll be a business beneficiary as well?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Er I mean is there a individual beneficiary we can resuse

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh i guess not I see a bunch of different types of beneficiaries depending on the country but not a generic one.

Do you think this one will be generic or is it only for wallets?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah we went through the exercise of splitting up beneficiaries for individuals based on region reqs but we havent done that for business yet -- so reusing the existing business one and added a new one just for wallets w the minimum requirements

Loading