From 32984032584124b63408cd65b6a0638dafc0e33f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Klaus=20Dahl=C3=A9n?= Date: Thu, 23 May 2019 11:14:00 +0300 Subject: [PATCH] Update bookings-create-v2 response w/ new paymentParameters (#389) * Update bookings-create-v2 response w/ new paymentParameters * Bump version to 7.10.0 --- package.json | 2 +- .../bookings/v2/bookings-create/response.json | 60 ++++++++++++++++++- 2 files changed, 60 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 14311aa6c..0b0f03980 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "maas-schemas", - "version": "7.9.0", + "version": "7.10.0", "description": "Schemas for MaaS infrastructure", "main": "index.js", "engine": { diff --git a/schemas/maas-backend/bookings/v2/bookings-create/response.json b/schemas/maas-backend/bookings/v2/bookings-create/response.json index 1b8c5d832..b23a00270 100644 --- a/schemas/maas-backend/bookings/v2/bookings-create/response.json +++ b/schemas/maas-backend/bookings/v2/bookings-create/response.json @@ -24,6 +24,64 @@ "definitions": { "avainpayPaymentParameters": { "anyOf": [ + { + "type": "object", + "description": "JSAPI payment parameters @ v1.0.2", + "properties": { + "return_code": { + "description": "The return code, usually 'SUCCESS'", + "type": "string" + }, + "appid": { + "description": "App Id", + "type": "string" + }, + "sub_appid": { + "description": "Submerchant app ID", + "type": "string" + }, + "mch_id": { + "description": "Merchant ID", + "type": "string" + }, + "sub_mch_id": { + "description": "Submerchant ID", + "type": "string" + }, + "nonce_str": { + "description": "Nonce string", + "type": "string" + }, + "result_code": { + "description": "The result code, usually 'SUCCESS'", + "type": "string" + }, + "prepay_id": { + "description": "WeChat's prepay ID", + "type": "string" + }, + "trade_type": { + "description": "Trade type", + "type": "string" + }, + "code_url": { + "description": "WeChat's code URL", + "type": "string" + }, + "sign": { + "description": "WeChat's message signature", + "type": "string" + }, + "paySign": { + "description": "WeChat's payment signature", + "type": "string" + }, + "timeStamp": { + "description": "Timestamp", + "type": "string" + } + } + }, { "type": "object", "description": "JSAPI payment parameters", @@ -71,7 +129,7 @@ "type": "string" }, "sub_mch_id": { - "description": "Our sub-merchant ID", + "description": "Sub-merchant ID", "type": "string" }, "nonce_str": {