document update

master
yixian 3 years ago
parent a22c6d2dbe
commit 8cef83a55a

@ -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

@ -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

Loading…
Cancel
Save