From 703486ece91092acd471297ec209657bf7b3e2f4 Mon Sep 17 00:00:00 2001 From: colinbird Date: Wed, 7 Feb 2024 07:40:14 -0500 Subject: [PATCH] Add deposit-request transactionIds (#1772) * Add deposit-request transactionIds * Update openapi/components/schemas/DepositRequest.yaml * Fix * Remove other change * Update links and embedded --------- Co-authored-by: Alexander Shkarpetin Co-authored-by: Alexander Shkarpetin --- openapi/components/schemas/DepositRequest.yaml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/openapi/components/schemas/DepositRequest.yaml b/openapi/components/schemas/DepositRequest.yaml index 71507d9020..63fa44cbad 100644 --- a/openapi/components/schemas/DepositRequest.yaml +++ b/openapi/components/schemas/DepositRequest.yaml @@ -22,9 +22,19 @@ properties: - 'string' - 'null' description: ID of the transaction that is used in the deposit request. + deprecated: true readOnly: true maxLength: 50 example: txn_0YVDTQJ8YWDGQACV2N2N5SPWQ0 + transactionIds: + type: array + description: |- + List of transaction IDs that are associated with the deposit request. + This list includes transactions that are created from the deposit request. + There is a maximum of one `approved` transaction in the list. + items: + type: string + maxLength: 50 status: description: Status of the request. type: string @@ -163,7 +173,7 @@ properties: enum: - self - deposit - - transaction + - transactions _embedded: type: object description: Embedded objects that are requested by the `expand` query parameter. @@ -173,5 +183,7 @@ properties: type: object website: type: object - transaction: - type: object + transactions: + type: array + maxItems: 10 + description: Most recent associated transactions.