diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index a6069a95d..8bda073a6 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -16690,6 +16690,13 @@ components: - UNDER_REVIEW - INACTIVE description: Status of an external account + OwnershipType: + type: string + enum: + - FIRST_PARTY + - THIRD_PARTY + description: Whether the external account belongs to the customer themselves (first party) or to someone else (third party) + example: FIRST_PARTY BeneficiaryVerificationStatus: type: string enum: @@ -19060,6 +19067,8 @@ components: type: string description: Optional platform-specific identifier for this account example: acc_123456789 + ownershipType: + $ref: '#/components/schemas/OwnershipType' currency: type: string description: The ISO 4217 currency code @@ -19972,6 +19981,8 @@ components: type: string description: Your platform's identifier for the account in your system. This can be used to reference the account by your own identifier. example: ext_acc_123456 + ownershipType: + $ref: '#/components/schemas/OwnershipType' defaultUmaDepositAccount: type: boolean description: Whether to set the external account as the default UMA deposit account. When set to true, incoming payments to this customer's UMA address will be automatically deposited into this external account. False if not provided. Note that only one external account can be set as the default UMA deposit account for a customer, so if there is already a default UMA deposit account, this will override the existing default UMA deposit account. If there is no default UMA deposit account, incoming UMA payments will be deposited into the primary internal account for the customer. @@ -19992,6 +20003,8 @@ components: type: string description: Your platform's identifier for the account in your system. This can be used to reference the account by your own identifier. example: ext_acc_123456 + ownershipType: + $ref: '#/components/schemas/OwnershipType' accountInfo: $ref: '#/components/schemas/ExternalAccountCreateInfoOneOf' BeneficialOwnerListResponse: diff --git a/openapi.yaml b/openapi.yaml index a6069a95d..8bda073a6 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -16690,6 +16690,13 @@ components: - UNDER_REVIEW - INACTIVE description: Status of an external account + OwnershipType: + type: string + enum: + - FIRST_PARTY + - THIRD_PARTY + description: Whether the external account belongs to the customer themselves (first party) or to someone else (third party) + example: FIRST_PARTY BeneficiaryVerificationStatus: type: string enum: @@ -19060,6 +19067,8 @@ components: type: string description: Optional platform-specific identifier for this account example: acc_123456789 + ownershipType: + $ref: '#/components/schemas/OwnershipType' currency: type: string description: The ISO 4217 currency code @@ -19972,6 +19981,8 @@ components: type: string description: Your platform's identifier for the account in your system. This can be used to reference the account by your own identifier. example: ext_acc_123456 + ownershipType: + $ref: '#/components/schemas/OwnershipType' defaultUmaDepositAccount: type: boolean description: Whether to set the external account as the default UMA deposit account. When set to true, incoming payments to this customer's UMA address will be automatically deposited into this external account. False if not provided. Note that only one external account can be set as the default UMA deposit account for a customer, so if there is already a default UMA deposit account, this will override the existing default UMA deposit account. If there is no default UMA deposit account, incoming UMA payments will be deposited into the primary internal account for the customer. @@ -19992,6 +20003,8 @@ components: type: string description: Your platform's identifier for the account in your system. This can be used to reference the account by your own identifier. example: ext_acc_123456 + ownershipType: + $ref: '#/components/schemas/OwnershipType' accountInfo: $ref: '#/components/schemas/ExternalAccountCreateInfoOneOf' BeneficialOwnerListResponse: diff --git a/openapi/components/schemas/external_accounts/ExternalAccount.yaml b/openapi/components/schemas/external_accounts/ExternalAccount.yaml index 6d31d9a06..08449b833 100644 --- a/openapi/components/schemas/external_accounts/ExternalAccount.yaml +++ b/openapi/components/schemas/external_accounts/ExternalAccount.yaml @@ -22,6 +22,8 @@ allOf: type: string description: Optional platform-specific identifier for this account example: acc_123456789 + ownershipType: + $ref: ./OwnershipType.yaml currency: type: string description: The ISO 4217 currency code diff --git a/openapi/components/schemas/external_accounts/ExternalAccountCreateRequest.yaml b/openapi/components/schemas/external_accounts/ExternalAccountCreateRequest.yaml index c8977658a..b97ace94c 100644 --- a/openapi/components/schemas/external_accounts/ExternalAccountCreateRequest.yaml +++ b/openapi/components/schemas/external_accounts/ExternalAccountCreateRequest.yaml @@ -18,6 +18,8 @@ allOf: type: string description: Your platform's identifier for the account in your system. This can be used to reference the account by your own identifier. example: ext_acc_123456 + ownershipType: + $ref: ./OwnershipType.yaml defaultUmaDepositAccount: type: boolean description: >- diff --git a/openapi/components/schemas/external_accounts/OwnershipType.yaml b/openapi/components/schemas/external_accounts/OwnershipType.yaml new file mode 100644 index 000000000..e2b6bce03 --- /dev/null +++ b/openapi/components/schemas/external_accounts/OwnershipType.yaml @@ -0,0 +1,8 @@ +type: string +enum: + - FIRST_PARTY + - THIRD_PARTY +description: >- + Whether the external account belongs to the customer themselves (first party) + or to someone else (third party) +example: FIRST_PARTY diff --git a/openapi/components/schemas/external_accounts/PlatformExternalAccountCreateRequest.yaml b/openapi/components/schemas/external_accounts/PlatformExternalAccountCreateRequest.yaml index 27e26f51f..c0ab2b25d 100644 --- a/openapi/components/schemas/external_accounts/PlatformExternalAccountCreateRequest.yaml +++ b/openapi/components/schemas/external_accounts/PlatformExternalAccountCreateRequest.yaml @@ -11,5 +11,7 @@ properties: type: string description: Your platform's identifier for the account in your system. This can be used to reference the account by your own identifier. example: ext_acc_123456 + ownershipType: + $ref: ./OwnershipType.yaml accountInfo: $ref: ./ExternalAccountCreateInfoOneOf.yaml