From 6ff615598e2128c8b43d43de8c2eb0e9bccaa456 Mon Sep 17 00:00:00 2001 From: Igor Toporkov Date: Wed, 23 Sep 2020 12:11:46 +0300 Subject: [PATCH] Refactor partyID reference, remove it from post request --- spec/paths/processing@customers@{customerID}.yaml | 9 +++++---- ...processing@invoice-templates@{invoiceTemplateID}.yaml | 9 +++++---- ...g@invoice-templates@{invoiceTemplateID}@invoices.yaml | 4 ---- spec/paths/processing@invoices@{invoiceID}.yaml | 9 +++++---- 4 files changed, 15 insertions(+), 16 deletions(-) diff --git a/spec/paths/processing@customers@{customerID}.yaml b/spec/paths/processing@customers@{customerID}.yaml index deb07f3..7cdabd2 100644 --- a/spec/paths/processing@customers@{customerID}.yaml +++ b/spec/paths/processing@customers@{customerID}.yaml @@ -7,10 +7,11 @@ get: - $ref: '#/parameters/requestID' - $ref: '#/parameters/deadline' - $ref: '#/parameters/customerID' - - name: partyID - in: query - schema: - $ref: '#/definitions/PartyID' + - x-rebillyMerge: + - name: partyID + in: query + required: false + - $ref: '#/definitions/PartyID' responses: '200': description: Данные плательщика diff --git a/spec/paths/processing@invoice-templates@{invoiceTemplateID}.yaml b/spec/paths/processing@invoice-templates@{invoiceTemplateID}.yaml index 612209c..8e8ab5a 100644 --- a/spec/paths/processing@invoice-templates@{invoiceTemplateID}.yaml +++ b/spec/paths/processing@invoice-templates@{invoiceTemplateID}.yaml @@ -7,10 +7,11 @@ get: - $ref: '#/parameters/requestID' - $ref: '#/parameters/deadline' - $ref: '#/parameters/invoiceTemplateID' - - name: partyID - in: query - schema: - $ref: '#/definitions/PartyID' + - x-rebillyMerge: + - name: partyID + in: query + required: false + - $ref: '#/definitions/PartyID' responses: '200': description: Шаблон инвойса diff --git a/spec/paths/processing@invoice-templates@{invoiceTemplateID}@invoices.yaml b/spec/paths/processing@invoice-templates@{invoiceTemplateID}@invoices.yaml index 687f332..8cbd988 100644 --- a/spec/paths/processing@invoice-templates@{invoiceTemplateID}@invoices.yaml +++ b/spec/paths/processing@invoice-templates@{invoiceTemplateID}@invoices.yaml @@ -7,10 +7,6 @@ post: - $ref: '#/parameters/requestID' - $ref: '#/parameters/deadline' - $ref: '#/parameters/invoiceTemplateID' - - name: partyID - in: query - schema: - $ref: '#/definitions/PartyID' - name: invoiceParamsWithTemplate description: Параметры создаваемого инвойса in: body diff --git a/spec/paths/processing@invoices@{invoiceID}.yaml b/spec/paths/processing@invoices@{invoiceID}.yaml index 2820592..d2e66c0 100644 --- a/spec/paths/processing@invoices@{invoiceID}.yaml +++ b/spec/paths/processing@invoices@{invoiceID}.yaml @@ -7,10 +7,11 @@ get: - $ref: '#/parameters/requestID' - $ref: '#/parameters/deadline' - $ref: '#/parameters/invoiceID' - - name: partyID - in: query - schema: - $ref: '#/definitions/PartyID' + - x-rebillyMerge: + - name: partyID + in: query + required: false + - $ref: '#/definitions/PartyID' responses: '200': description: Данные инвойса