From 8cef83a55a28cfbf8e81c0062335d597239b859d Mon Sep 17 00:00:00 2001 From: yixian Date: Fri, 8 Oct 2021 17:50:49 +0800 Subject: [PATCH] document update --- src/document/openapi/cn/document.yml | 25 ++++--------------------- src/document/openapi/en/document.yml | 27 +++++---------------------- 2 files changed, 9 insertions(+), 43 deletions(-) diff --git a/src/document/openapi/cn/document.yml b/src/document/openapi/cn/document.yml index cf140e5f8..ae0fb5768 100644 --- a/src/document/openapi/cn/document.yml +++ b/src/document/openapi/cn/document.yml @@ -512,16 +512,7 @@ paths: content: application/json: schema: - type: object - allOf: - - $ref: 'components_order.yml#/orderBasic' - - type: object - properties: - channel: - type: string - description: 支付渠道,大小写敏感 - enum: - - Alipay + $ref: 'components_order.yml#/orderWithChannel' responses: 200: description: Order @@ -971,27 +962,19 @@ paths: application/json: schema: allOf: - - $ref: 'components_order.yml#/orderBasic' + - $ref: 'components_order.yml#/orderWithChannel' - type: object - required: - - channel properties: - channel: - type: string - description: 支付渠道,大小写敏感 - enum: - - Wechat - - Alipay system: type: string - description: 客户端操作类型,支付宝选填,微信不需要 + description: 客户端操作类型,Alipay选填,Wechat不需要,AlipayPlus必填 enum: - android - iphone - ipad version: type: string - description: 客户端版本号,支付宝选填,微信不需要 + description: 客户端版本号,Alipay选填,其他渠道不需要 appid: type: string description: 微信必填,开发者平台appid diff --git a/src/document/openapi/en/document.yml b/src/document/openapi/en/document.yml index 2058f972a..93d9d0aa5 100644 --- a/src/document/openapi/en/document.yml +++ b/src/document/openapi/en/document.yml @@ -522,16 +522,7 @@ paths: content: application/json: schema: - type: object - allOf: - - $ref: 'components_order.yml#/orderBasic' - - type: object - properties: - channel: - type: string - description: channel. case sensitive - enum: - - Alipay + $ref: 'components_order.yml#/orderWithChannel' responses: 200: description: Order @@ -993,30 +984,22 @@ paths: application/json: schema: allOf: - - $ref: 'components_order.yml#/orderBasic' + - $ref: 'components_order.yml#/orderWithChannel' - type: object - required: - - channel properties: - channel: - type: string - description: Payment channel, required, case sensitive - enum: - - Wechat - - Alipay system: type: string - description: OS type of client app, optional for Alipay, not required for Wechat + description: OS type of client app, optional for Alipay, required for AlipayPlus, not required for Wechat enum: - android - iphone - ipad version: type: string - description: client app version, optional for Alipay, not required for Wechat + description: client app version, optional only for Alipay appid: type: string - description: wechat appid, required for Wechat, not required for Alipay + description: wechat appid, only required for Wechat responses: 200: description: Order