修改transaction中wip方法
diff --git a/payapi-spec/consumeapi.yaml b/payapi-spec/consumeapi.yaml
index b58bf96..7114293 100644
--- a/payapi-spec/consumeapi.yaml
+++ b/payapi-spec/consumeapi.yaml
@@ -86,6 +86,10 @@
result:
title: 交易结果
$ref: 'definitions.yaml#/components/schemas/TransResult'
+ amount:
+ type: integer
+ format: int32
+ title: 消费金额
RefundRequest:
type: object
title: 退款申请
@@ -95,6 +99,7 @@
- transTime
- refno
- amount
+ - shopaccno
properties:
billno:
title: 退款申请订单号
@@ -106,6 +111,8 @@
refno:
title: 退款申请原始订单交易参考号
$ref: 'definitions.yaml#/components/schemas/Refno'
+ shopaccno:
+ $ref: 'definitions.yaml#/components/schemas/ShopAccNo'
amount:
type: integer
title: 退款金额, 正式
@@ -123,6 +130,14 @@
refno:
title: 退款申请原始订单交易参考号
$ref: 'definitions.yaml#/components/schemas/Refno'
+ refundAmount:
+ type: integer
+ format: int32
+ title: 退款金额
+ leftAmount:
+ type: integer
+ format: int32
+ title: 原流水剩余金额
result:
title: 退款处理结果
$ref: 'definitions.yaml#/components/schemas/TransResult'
@@ -235,13 +250,13 @@
refundQuery:
parameters:
- $ref: 'definitions.yaml#/components/headers/TenantId'
- - name: billno
+ - name: refno
in: path
- description: 退款订单号
+ description: 系统交易参考号
required: true
schema:
type: string
- title: 退款订单号
+ title: 系统交易参考号
get:
description: 退款申请查询
tags:
diff --git a/payapi-spec/payapi-spec.yaml b/payapi-spec/payapi-spec.yaml
index 91197ef..6a617af 100644
--- a/payapi-spec/payapi-spec.yaml
+++ b/payapi-spec/payapi-spec.yaml
@@ -13,7 +13,7 @@
$ref: consumeapi.yaml#/components/paths/qrcodePayQuery
/consume/refund:
$ref: consumeapi.yaml#/components/paths/refund
- /consume/refund/query/{billno}:
+ /consume/refund/query/{refno}:
$ref: consumeapi.yaml#/components/paths/refundQuery
/account/query:
$ref: accountapi.yaml#/components/paths/accountQuery