From e9f6ef8cba816752b8d8efed7ef27873f7eb74c9 Mon Sep 17 00:00:00 2001 From: Shreya Date: Fri, 9 Oct 2026 20:17:42 +0000 Subject: [PATCH] refactor(customers): reuse the expected activity enums on the business info types The expectedMonthlyTransactionCount and expectedMonthlyTransactionVolume fields on BusinessInfo, BusinessInfoResponse, BusinessInfoUpdate, and ExpectedActivityVolumes repeated their values inline. They now reference the ExpectedMonthlyTransactionCount and ExpectedMonthlyTransactionVolume schemas that already existed. The wire format is unchanged. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01MYijrrgsrFLJZ5fkmC5XwJ --- mintlify/openapi.yaml | 60 ++----------------- openapi.yaml | 60 ++----------------- .../schemas/customers/BusinessInfo.yaml | 20 +------ .../customers/BusinessInfoResponse.yaml | 20 +------ .../schemas/customers/BusinessInfoUpdate.yaml | 20 +------ .../customers/ExpectedActivityVolumes.yaml | 20 +------ 6 files changed, 20 insertions(+), 180 deletions(-) diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index 644010bdf..4655e4313 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -15280,25 +15280,9 @@ components: description: The primary source of funds for the business example: Funds derived from customer payments for software services expectedMonthlyTransactionCount: - type: string - enum: - - COUNT_UNDER_10 - - COUNT_10_TO_100 - - COUNT_100_TO_500 - - COUNT_500_TO_1000 - - COUNT_OVER_1000 - description: Expected number of transactions per month - example: COUNT_100_TO_500 + $ref: '#/components/schemas/ExpectedMonthlyTransactionCount' expectedMonthlyTransactionVolume: - type: string - enum: - - VOLUME_UNDER_10K - - VOLUME_10K_TO_100K - - VOLUME_100K_TO_1M - - VOLUME_1M_TO_10M - - VOLUME_OVER_10M - description: Expected total transaction volume per month in USD equivalent - example: VOLUME_100K_TO_1M + $ref: '#/components/schemas/ExpectedMonthlyTransactionVolume' expectedRecipientJurisdictions: type: array items: @@ -15414,25 +15398,9 @@ components: description: The primary source of funds for the business example: Funds derived from customer payments for software services expectedMonthlyTransactionCount: - type: string - enum: - - COUNT_UNDER_10 - - COUNT_10_TO_100 - - COUNT_100_TO_500 - - COUNT_500_TO_1000 - - COUNT_OVER_1000 - description: Expected number of transactions per month - example: COUNT_100_TO_500 + $ref: '#/components/schemas/ExpectedMonthlyTransactionCount' expectedMonthlyTransactionVolume: - type: string - enum: - - VOLUME_UNDER_10K - - VOLUME_10K_TO_100K - - VOLUME_100K_TO_1M - - VOLUME_1M_TO_10M - - VOLUME_OVER_10M - description: Expected total transaction volume per month in USD equivalent - example: VOLUME_100K_TO_1M + $ref: '#/components/schemas/ExpectedMonthlyTransactionVolume' expectedRecipientJurisdictions: type: array items: @@ -15769,25 +15737,9 @@ components: description: The primary source of funds for the business example: Funds derived from customer payments for software services expectedMonthlyTransactionCount: - type: string - enum: - - COUNT_UNDER_10 - - COUNT_10_TO_100 - - COUNT_100_TO_500 - - COUNT_500_TO_1000 - - COUNT_OVER_1000 - description: Expected number of transactions per month - example: COUNT_100_TO_500 + $ref: '#/components/schemas/ExpectedMonthlyTransactionCount' expectedMonthlyTransactionVolume: - type: string - enum: - - VOLUME_UNDER_10K - - VOLUME_10K_TO_100K - - VOLUME_100K_TO_1M - - VOLUME_1M_TO_10M - - VOLUME_OVER_10M - description: Expected total transaction volume per month in USD equivalent - example: VOLUME_100K_TO_1M + $ref: '#/components/schemas/ExpectedMonthlyTransactionVolume' expectedRecipientJurisdictions: type: array items: diff --git a/openapi.yaml b/openapi.yaml index 644010bdf..4655e4313 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -15280,25 +15280,9 @@ components: description: The primary source of funds for the business example: Funds derived from customer payments for software services expectedMonthlyTransactionCount: - type: string - enum: - - COUNT_UNDER_10 - - COUNT_10_TO_100 - - COUNT_100_TO_500 - - COUNT_500_TO_1000 - - COUNT_OVER_1000 - description: Expected number of transactions per month - example: COUNT_100_TO_500 + $ref: '#/components/schemas/ExpectedMonthlyTransactionCount' expectedMonthlyTransactionVolume: - type: string - enum: - - VOLUME_UNDER_10K - - VOLUME_10K_TO_100K - - VOLUME_100K_TO_1M - - VOLUME_1M_TO_10M - - VOLUME_OVER_10M - description: Expected total transaction volume per month in USD equivalent - example: VOLUME_100K_TO_1M + $ref: '#/components/schemas/ExpectedMonthlyTransactionVolume' expectedRecipientJurisdictions: type: array items: @@ -15414,25 +15398,9 @@ components: description: The primary source of funds for the business example: Funds derived from customer payments for software services expectedMonthlyTransactionCount: - type: string - enum: - - COUNT_UNDER_10 - - COUNT_10_TO_100 - - COUNT_100_TO_500 - - COUNT_500_TO_1000 - - COUNT_OVER_1000 - description: Expected number of transactions per month - example: COUNT_100_TO_500 + $ref: '#/components/schemas/ExpectedMonthlyTransactionCount' expectedMonthlyTransactionVolume: - type: string - enum: - - VOLUME_UNDER_10K - - VOLUME_10K_TO_100K - - VOLUME_100K_TO_1M - - VOLUME_1M_TO_10M - - VOLUME_OVER_10M - description: Expected total transaction volume per month in USD equivalent - example: VOLUME_100K_TO_1M + $ref: '#/components/schemas/ExpectedMonthlyTransactionVolume' expectedRecipientJurisdictions: type: array items: @@ -15769,25 +15737,9 @@ components: description: The primary source of funds for the business example: Funds derived from customer payments for software services expectedMonthlyTransactionCount: - type: string - enum: - - COUNT_UNDER_10 - - COUNT_10_TO_100 - - COUNT_100_TO_500 - - COUNT_500_TO_1000 - - COUNT_OVER_1000 - description: Expected number of transactions per month - example: COUNT_100_TO_500 + $ref: '#/components/schemas/ExpectedMonthlyTransactionCount' expectedMonthlyTransactionVolume: - type: string - enum: - - VOLUME_UNDER_10K - - VOLUME_10K_TO_100K - - VOLUME_100K_TO_1M - - VOLUME_1M_TO_10M - - VOLUME_OVER_10M - description: Expected total transaction volume per month in USD equivalent - example: VOLUME_100K_TO_1M + $ref: '#/components/schemas/ExpectedMonthlyTransactionVolume' expectedRecipientJurisdictions: type: array items: diff --git a/openapi/components/schemas/customers/BusinessInfo.yaml b/openapi/components/schemas/customers/BusinessInfo.yaml index 55bfc9618..dd3f6c5c1 100644 --- a/openapi/components/schemas/customers/BusinessInfo.yaml +++ b/openapi/components/schemas/customers/BusinessInfo.yaml @@ -58,25 +58,9 @@ properties: description: The primary source of funds for the business example: Funds derived from customer payments for software services expectedMonthlyTransactionCount: - type: string - enum: - - COUNT_UNDER_10 - - COUNT_10_TO_100 - - COUNT_100_TO_500 - - COUNT_500_TO_1000 - - COUNT_OVER_1000 - description: Expected number of transactions per month - example: COUNT_100_TO_500 + $ref: ./ExpectedMonthlyTransactionCount.yaml expectedMonthlyTransactionVolume: - type: string - enum: - - VOLUME_UNDER_10K - - VOLUME_10K_TO_100K - - VOLUME_100K_TO_1M - - VOLUME_1M_TO_10M - - VOLUME_OVER_10M - description: Expected total transaction volume per month in USD equivalent - example: VOLUME_100K_TO_1M + $ref: ./ExpectedMonthlyTransactionVolume.yaml expectedRecipientJurisdictions: type: array items: diff --git a/openapi/components/schemas/customers/BusinessInfoResponse.yaml b/openapi/components/schemas/customers/BusinessInfoResponse.yaml index 32b0d76f3..fe429ccc9 100644 --- a/openapi/components/schemas/customers/BusinessInfoResponse.yaml +++ b/openapi/components/schemas/customers/BusinessInfoResponse.yaml @@ -49,25 +49,9 @@ properties: description: The primary source of funds for the business example: Funds derived from customer payments for software services expectedMonthlyTransactionCount: - type: string - enum: - - COUNT_UNDER_10 - - COUNT_10_TO_100 - - COUNT_100_TO_500 - - COUNT_500_TO_1000 - - COUNT_OVER_1000 - description: Expected number of transactions per month - example: COUNT_100_TO_500 + $ref: ./ExpectedMonthlyTransactionCount.yaml expectedMonthlyTransactionVolume: - type: string - enum: - - VOLUME_UNDER_10K - - VOLUME_10K_TO_100K - - VOLUME_100K_TO_1M - - VOLUME_1M_TO_10M - - VOLUME_OVER_10M - description: Expected total transaction volume per month in USD equivalent - example: VOLUME_100K_TO_1M + $ref: ./ExpectedMonthlyTransactionVolume.yaml expectedRecipientJurisdictions: type: array items: diff --git a/openapi/components/schemas/customers/BusinessInfoUpdate.yaml b/openapi/components/schemas/customers/BusinessInfoUpdate.yaml index 42b1f44fc..7e0014abe 100644 --- a/openapi/components/schemas/customers/BusinessInfoUpdate.yaml +++ b/openapi/components/schemas/customers/BusinessInfoUpdate.yaml @@ -49,25 +49,9 @@ properties: description: The primary source of funds for the business example: Funds derived from customer payments for software services expectedMonthlyTransactionCount: - type: string - enum: - - COUNT_UNDER_10 - - COUNT_10_TO_100 - - COUNT_100_TO_500 - - COUNT_500_TO_1000 - - COUNT_OVER_1000 - description: Expected number of transactions per month - example: COUNT_100_TO_500 + $ref: ./ExpectedMonthlyTransactionCount.yaml expectedMonthlyTransactionVolume: - type: string - enum: - - VOLUME_UNDER_10K - - VOLUME_10K_TO_100K - - VOLUME_100K_TO_1M - - VOLUME_1M_TO_10M - - VOLUME_OVER_10M - description: Expected total transaction volume per month in USD equivalent - example: VOLUME_100K_TO_1M + $ref: ./ExpectedMonthlyTransactionVolume.yaml expectedRecipientJurisdictions: type: array items: diff --git a/openapi/components/schemas/customers/ExpectedActivityVolumes.yaml b/openapi/components/schemas/customers/ExpectedActivityVolumes.yaml index ffb5c3b7a..3adda5475 100644 --- a/openapi/components/schemas/customers/ExpectedActivityVolumes.yaml +++ b/openapi/components/schemas/customers/ExpectedActivityVolumes.yaml @@ -2,22 +2,6 @@ type: object description: Expected monthly transaction activity for the business properties: monthlyTransactionCount: - type: string - enum: - - COUNT_UNDER_10 - - COUNT_10_TO_100 - - COUNT_100_TO_500 - - COUNT_500_TO_1000 - - COUNT_OVER_1000 - description: Expected number of transactions per month - example: COUNT_100_TO_500 + $ref: ./ExpectedMonthlyTransactionCount.yaml monthlyTransactionVolume: - type: string - enum: - - VOLUME_UNDER_10K - - VOLUME_10K_TO_100K - - VOLUME_100K_TO_1M - - VOLUME_1M_TO_10M - - VOLUME_OVER_10M - description: Expected total transaction volume per month in USD equivalent - example: VOLUME_100K_TO_1M + $ref: ./ExpectedMonthlyTransactionVolume.yaml