From 7818d08ce6cf34b4352aa9ea307eb63fa5eaa0f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D0=B5=D0=BC?= Date: Wed, 4 Feb 2026 17:12:24 +0300 Subject: [PATCH 1/2] added new method --- .../spec/definitions/CashLimitBound.yaml | 13 ++++++++++ .../spec/definitions/WalletCashLimit.yaml | 16 ++++++++++++ .../paths/wallets@{walletID}@cash-limits.yaml | 26 +++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 api/wallet/spec/definitions/CashLimitBound.yaml create mode 100644 api/wallet/spec/definitions/WalletCashLimit.yaml create mode 100644 api/wallet/spec/paths/wallets@{walletID}@cash-limits.yaml diff --git a/api/wallet/spec/definitions/CashLimitBound.yaml b/api/wallet/spec/definitions/CashLimitBound.yaml new file mode 100644 index 00000000..c0af627c --- /dev/null +++ b/api/wallet/spec/definitions/CashLimitBound.yaml @@ -0,0 +1,13 @@ +--- +description: Cash limit bound. +type: object +required: + - amount + - inclusive +properties: + amount: + type: integer + format: int64 + minimum: 0 + inclusive: + type: boolean diff --git a/api/wallet/spec/definitions/WalletCashLimit.yaml b/api/wallet/spec/definitions/WalletCashLimit.yaml new file mode 100644 index 00000000..5296bd76 --- /dev/null +++ b/api/wallet/spec/definitions/WalletCashLimit.yaml @@ -0,0 +1,16 @@ +--- +type: object +required: + - currency + - withdrawalMethod + - lowerBound + - upperBound +properties: + currency: + $ref: "#/definitions/CurrencyID" + withdrawalMethod: + $ref: "#/definitions/WithdrawalMethod" + lowerBound: + $ref: "#/definitions/CashLimitBound" + upperBound: + $ref: "#/definitions/CashLimitBound" diff --git a/api/wallet/spec/paths/wallets@{walletID}@cash-limits.yaml b/api/wallet/spec/paths/wallets@{walletID}@cash-limits.yaml new file mode 100644 index 00000000..5cd4b31a --- /dev/null +++ b/api/wallet/spec/paths/wallets@{walletID}@cash-limits.yaml @@ -0,0 +1,26 @@ +--- +get: + description: Get wallet cash limits + operationId: getWalletCashLimitsForParty + tags: + - Wallets + parameters: + - $ref: "#/parameters/requestID" + - $ref: "#/parameters/deadline" + - $ref: "#/parameters/walletID" + - $ref: "#/parameters/partyID" + responses: + "200": + description: | + Cash limits found. Each item is scoped to a specific withdrawal method. + If a withdrawal method is absent in the list, that method is not allowed for the wallet. + schema: + type: array + items: + $ref: "#/definitions/WalletCashLimit" + "404": + $ref: "#/responses/NotFound" + "401": + $ref: "#/responses/Unauthorized" + "400": + $ref: "#/responses/BadRequest" From 5ee6c57b1d04beab1e77cddb711174480b12e101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D1=80=D1=82=D0=B5=D0=BC?= Date: Wed, 4 Feb 2026 17:29:05 +0300 Subject: [PATCH 2/2] renamed --- api/wallet/spec/paths/wallets@{walletID}@cash-limits.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/wallet/spec/paths/wallets@{walletID}@cash-limits.yaml b/api/wallet/spec/paths/wallets@{walletID}@cash-limits.yaml index 5cd4b31a..8c5879c7 100644 --- a/api/wallet/spec/paths/wallets@{walletID}@cash-limits.yaml +++ b/api/wallet/spec/paths/wallets@{walletID}@cash-limits.yaml @@ -1,7 +1,7 @@ --- get: description: Get wallet cash limits - operationId: getWalletCashLimitsForParty + operationId: getWalletCashLimits tags: - Wallets parameters: