diff --git a/api/wallet/spec/definitions/Withdrawal.yaml b/api/wallet/spec/definitions/Withdrawal.yaml index 0cc55c0..deb0519 100644 --- a/api/wallet/spec/definitions/Withdrawal.yaml +++ b/api/wallet/spec/definitions/Withdrawal.yaml @@ -39,4 +39,7 @@ allOf: externalID: x-rebillyMerge: - $ref: "#/definitions/ExternalID" + quote: + x-rebillyMerge: + - $ref: "#/definitions/WithdrawalReadQuote" - $ref: "#/definitions/WithdrawalStatus" diff --git a/api/wallet/spec/definitions/WithdrawalReadQuote.yaml b/api/wallet/spec/definitions/WithdrawalReadQuote.yaml new file mode 100644 index 0000000..02676f0 --- /dev/null +++ b/api/wallet/spec/definitions/WithdrawalReadQuote.yaml @@ -0,0 +1,29 @@ +--- +description: Quote data for withdrawal +type: object +required: + - cashFrom + - cashTo + - createdAt + - expiresOn +properties: + cashFrom: + x-rebillyMerge: + - $ref: "#/definitions/Asset" + - description: Amount of funds in source currency + - readOnly: true + cashTo: + x-rebillyMerge: + - $ref: "#/definitions/Asset" + - description: Amount of funds in target currency + - readOnly: true + createdAt: + description: Date and time the quote was received + type: string + format: date-time + readOnly: true + expiresOn: + description: Quote expiration date and time + type: string + format: date-time + readOnly: true