From d17bf859725274e41b48f0fc4c2bf271a17fece6 Mon Sep 17 00:00:00 2001 From: Jack Latourette Date: Fri, 31 Jul 2026 16:35:53 -0700 Subject: [PATCH] feat(config): fee config fixedFee takes an amount and a currency code fixedFee is an object of amount plus a plain ISO 4217 currency code, so the fee currency is explicit without nesting the full Currency object. Co-Authored-By: Claude Fable 5 --- mintlify/openapi.yaml | 21 ++++++++++---- openapi.yaml | 21 ++++++++++---- .../components/schemas/config/FeeConfig.yaml | 28 ++++++++++++++----- 3 files changed, 53 insertions(+), 17 deletions(-) diff --git a/mintlify/openapi.yaml b/mintlify/openapi.yaml index 132abc89..e7f98bd6 100644 --- a/mintlify/openapi.yaml +++ b/mintlify/openapi.yaml @@ -11497,11 +11497,22 @@ components: description: Variable fee in basis points (1 bps = 0.01%) to apply to a transaction's source-currency amount. example: 30 fixedFee: - type: integer - format: int64 - minimum: 0 - description: Fixed fee charged per transaction, denominated in the smallest unit of the fee config's `sourceCurrency` (e.g., cents for USD). - example: 100 + type: object + description: Fixed fee charged per transaction. + properties: + amount: + type: integer + format: int64 + minimum: 0 + description: Fee amount in the smallest unit of the fixed fee's `currency` (e.g., cents for USD). + example: 100 + currency: + type: string + description: Three-letter currency code (ISO 4217) the fixed fee is denominated in. Some cryptocurrencies may use their own ticker symbols (e.g. "BTC" for Bitcoin, "USDC" for USDC, etc.) + example: USD + required: + - amount + - currency required: - feeType - sourceCurrency diff --git a/openapi.yaml b/openapi.yaml index 132abc89..e7f98bd6 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -11497,11 +11497,22 @@ components: description: Variable fee in basis points (1 bps = 0.01%) to apply to a transaction's source-currency amount. example: 30 fixedFee: - type: integer - format: int64 - minimum: 0 - description: Fixed fee charged per transaction, denominated in the smallest unit of the fee config's `sourceCurrency` (e.g., cents for USD). - example: 100 + type: object + description: Fixed fee charged per transaction. + properties: + amount: + type: integer + format: int64 + minimum: 0 + description: Fee amount in the smallest unit of the fixed fee's `currency` (e.g., cents for USD). + example: 100 + currency: + type: string + description: Three-letter currency code (ISO 4217) the fixed fee is denominated in. Some cryptocurrencies may use their own ticker symbols (e.g. "BTC" for Bitcoin, "USDC" for USDC, etc.) + example: USD + required: + - amount + - currency required: - feeType - sourceCurrency diff --git a/openapi/components/schemas/config/FeeConfig.yaml b/openapi/components/schemas/config/FeeConfig.yaml index 536365dc..833923b9 100644 --- a/openapi/components/schemas/config/FeeConfig.yaml +++ b/openapi/components/schemas/config/FeeConfig.yaml @@ -18,13 +18,27 @@ properties: Variable fee in basis points (1 bps = 0.01%) to apply to a transaction's source-currency amount. example: 30 fixedFee: - type: integer - format: int64 - minimum: 0 - description: >- - Fixed fee charged per transaction, denominated in the smallest unit of - the fee config's `sourceCurrency` (e.g., cents for USD). - example: 100 + type: object + description: Fixed fee charged per transaction. + properties: + amount: + type: integer + format: int64 + minimum: 0 + description: >- + Fee amount in the smallest unit of the fixed fee's `currency` + (e.g., cents for USD). + example: 100 + currency: + type: string + description: >- + Three-letter currency code (ISO 4217) the fixed fee is denominated + in. Some cryptocurrencies may use their own ticker symbols (e.g. + "BTC" for Bitcoin, "USDC" for USDC, etc.) + example: USD + required: + - amount + - currency required: - feeType - sourceCurrency