From 1dffe2a42aacf42a663d4ca94cc7bf6b77491ef9 Mon Sep 17 00:00:00 2001 From: Kostya Struga Date: Tue, 15 Mar 2022 14:53:50 +0300 Subject: [PATCH] Add generic payment tool --- openapi/components/schemas/DestinationResource.yaml | 4 +++- openapi/components/schemas/GenericPaymentTool.yaml | 10 ++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 openapi/components/schemas/GenericPaymentTool.yaml diff --git a/openapi/components/schemas/DestinationResource.yaml b/openapi/components/schemas/DestinationResource.yaml index a63a551..27af7c0 100644 --- a/openapi/components/schemas/DestinationResource.yaml +++ b/openapi/components/schemas/DestinationResource.yaml @@ -11,10 +11,12 @@ properties: - BankCard - CryptoWallet - DigitalWallet + - GenericPaymentTool discriminator: propertyName: type mapping: 'BankCard': '../schemas/BankCard.yaml' 'CryptoWallet': '../schemas/CryptoWallet.yaml' - 'DigitalWallet': '../schemas/DigitalWallet.yaml' \ No newline at end of file + 'DigitalWallet': '../schemas/DigitalWallet.yaml' + 'GenericPaymentTool': '../schemas/GenericPaymentTool.yaml' \ No newline at end of file diff --git a/openapi/components/schemas/GenericPaymentTool.yaml b/openapi/components/schemas/GenericPaymentTool.yaml new file mode 100644 index 0000000..04a64aa --- /dev/null +++ b/openapi/components/schemas/GenericPaymentTool.yaml @@ -0,0 +1,10 @@ +description: Универсальный платежный метод +allOf: + - $ref: '../schemas/DestinationResource.yaml' + - type: object + required: + - paymentServiceId + properties: + paymentServiceId: + description: Идентификатор платежного сервиса + type: string