document update

master
yixian 3 years ago
parent a22c6d2dbe
commit 8cef83a55a

@ -512,16 +512,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: object $ref: 'components_order.yml#/orderWithChannel'
allOf:
- $ref: 'components_order.yml#/orderBasic'
- type: object
properties:
channel:
type: string
description: 支付渠道,大小写敏感
enum:
- Alipay
responses: responses:
200: 200:
description: Order description: Order
@ -971,27 +962,19 @@ paths:
application/json: application/json:
schema: schema:
allOf: allOf:
- $ref: 'components_order.yml#/orderBasic' - $ref: 'components_order.yml#/orderWithChannel'
- type: object - type: object
required:
- channel
properties: properties:
channel:
type: string
description: 支付渠道,大小写敏感
enum:
- Wechat
- Alipay
system: system:
type: string type: string
description: 客户端操作类型,支付宝选填,微信不需要 description: 客户端操作类型Alipay选填Wechat不需要AlipayPlus必填
enum: enum:
- android - android
- iphone - iphone
- ipad - ipad
version: version:
type: string type: string
description: 客户端版本号,支付宝选填,微信不需要 description: 客户端版本号,Alipay选填其他渠道不需要
appid: appid:
type: string type: string
description: 微信必填开发者平台appid description: 微信必填开发者平台appid

@ -522,16 +522,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
type: object $ref: 'components_order.yml#/orderWithChannel'
allOf:
- $ref: 'components_order.yml#/orderBasic'
- type: object
properties:
channel:
type: string
description: channel. case sensitive
enum:
- Alipay
responses: responses:
200: 200:
description: Order description: Order
@ -993,30 +984,22 @@ paths:
application/json: application/json:
schema: schema:
allOf: allOf:
- $ref: 'components_order.yml#/orderBasic' - $ref: 'components_order.yml#/orderWithChannel'
- type: object - type: object
required:
- channel
properties: properties:
channel:
type: string
description: Payment channel, required, case sensitive
enum:
- Wechat
- Alipay
system: system:
type: string 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: enum:
- android - android
- iphone - iphone
- ipad - ipad
version: version:
type: string type: string
description: client app version, optional for Alipay, not required for Wechat description: client app version, optional only for Alipay
appid: appid:
type: string type: string
description: wechat appid, required for Wechat, not required for Alipay description: wechat appid, only required for Wechat
responses: responses:
200: 200:
description: Order description: Order

Loading…
Cancel
Save