Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fmcoupon-linux
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李定达
fmcoupon-linux
Commits
619b957f
Commit
619b957f
authored
Jun 27, 2019
by
Carwyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. CoCo 券插件配置文件上传
parent
bf95a6bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
290 additions
and
0 deletions
+290
-0
Config/CoCo/Client.xml
+290
-0
No files found.
Config/CoCo/Client.xml
0 → 100644
View file @
619b957f
<Freemud>
<FreemudFront>
<!--hx-->
<ReqType
key=
"fm_cmd"
value=
"10032"
>
<stationId
type=
"string"
okey=
"pos_id"
/>
<voucherNumber
type=
"string"
okey=
"coupon"
/>
<storeNumber
type=
"string"
okey=
"store_id"
/>
<requestAccount
type=
"string"
okey=
"partner_id"
/>
<transId
type=
"string"
okey=
"trans_id"
/>
<signParam
type=
"string"
okey=
"signParam"
/>
<orderInfo
type=
"object"
>
<amountRec
type=
"string"
okey=
"order_amount"
/>
<amountPaid
type=
"int"
okey=
"order_amount"
/>
<orderProducts
type=
"array"
okey=
"products"
>
<lineNumber
type=
"int"
okey=
"products/seq"
/>
<productNumber
type=
"string"
okey=
"products/pid"
/>
<productName
type=
"string"
okey=
"products/name"
/>
<quantity
type=
"int"
okey=
"products/qty"
/>
<initPrice
type=
"int"
okey=
"products/price"
/>
<nowPrice
type=
"int"
okey=
"products/price"
/>
<payMoney
type=
"int"
okey=
"products/price"
/>
</orderProducts>
</orderInfo>
</ReqType>
<!--rollback-->
<ReqType
key=
"fm_cmd"
value=
"10033"
>
<signParam
type=
"string"
okey=
"signParam"
/>
<stationId
type=
"string"
okey=
"pos_id"
/>
<voucherNumber
type=
"string"
okey=
"coupon"
/>
<storeNumber
type=
"string"
okey=
"store_id"
/>
<requestAccount
type=
"string"
okey=
"partner_id"
/>
<transId
type=
"string"
okey=
"trans_id"
/>
</ReqType>
<!--pay-->
<ReqType
key=
"fm_cmd"
value=
"10031"
>
<reqtype
type=
"int"
>
72
</reqtype>
<ver
type=
"int"
okey=
"ver"
/>
<business_date
type=
"string"
okey=
"business_date"
/>
<operator_id
type=
"string"
okey=
"operator_id"
/>
<store_id
type=
"string"
okey=
"store_id"
/>
<station_id
type=
"string"
okey=
"pos_id"
/>
<partnerid
type=
"string"
okey=
"partner_id"
/>
<trans_id
type=
"string"
okey=
"trans_id"
/>
<transactions
type=
"array"
>
<amount
type=
"int"
okey=
"order_amount"
/>
<undis_amount
type=
"int"
okey=
"undis_amount"
/>
<code
type=
"string"
okey=
"barcode"
/>
<products
type=
"array"
okey=
"products"
>
<consume_num
type=
"int"
okey=
"products/consume_num"
/>
<pid
type=
"string"
okey=
"products/pid"
/>
<price
type=
"int"
okey=
"products/price"
/>
<sales_type
type=
"string"
okey=
"products/sales_type"
/>
<seq
type=
"int"
okey=
"products/seq"
/>
</products>
</transactions>
</ReqType>
<!--refund-->
<ReqType
key=
"fm_cmd"
value=
"10041"
>
<reqtype
type=
"int"
>
62
</reqtype>
<ver
type=
"int"
okey=
"ver"
/>
<operator_id
type=
"string"
okey=
"operator_id"
/>
<store_id
type=
"string"
okey=
"store_id"
/>
<station_id
type=
"string"
okey=
"pos_id"
/>
<partnerid
type=
"string"
okey=
"partner_id"
/>
<trans_id
type=
"string"
okey=
"trans_id"
/>
<refund_id
type=
"string"
okey=
"trans_id"
/>
<transactions
type=
"array"
>
<fmid
type=
"string"
okey=
"fm_order_id"
/>
<refund_count
type=
"int"
okey=
"refund_amount"
/>
</transactions>
</ReqType>
<!--pay rollback-->
<ReqType
key=
"fm_cmd"
value=
"10044"
>
<reqtype
type=
"int"
>
3
</reqtype>
<ver
type=
"int"
okey=
"ver"
>
2
</ver>
<business_date
type=
"string"
okey=
"business_date"
/>
<operator_id
type=
"string"
okey=
"operator_id"
/>
<store_id
type=
"string"
okey=
"store_id"
/>
<station_id
type=
"string"
okey=
"pos_id"
/>
<partnerid
type=
"string"
okey=
"partner_id"
/>
<trans_id
type=
"string"
okey=
"trans_id"
/>
<transactions
type=
"array"
>
<amount
type=
"int"
okey=
"order_amount"
/>
<undis_amount
type=
"int"
okey=
"undis_amount"
/>
<code
type=
"string"
okey=
"barcode"
/>
<products
type=
"array"
okey=
"products"
>
<consume_num
type=
"int"
okey=
"products/consume_num"
/>
<pid
type=
"string"
okey=
"products/pid"
/>
<price
type=
"int"
okey=
"products/price"
/>
<sales_type
type=
"string"
okey=
"products/sales_type"
/>
<seq
type=
"int"
okey=
"products/seq"
/>
</products>
</transactions>
</ReqType>
<!--check-->
<ReqType
key=
"fm_cmd"
value=
"10039"
>
<stationId
type=
"string"
okey=
"pos_id"
/>
<voucherNumber
type=
"string"
okey=
"coupon"
/>
<storeNumber
type=
"string"
okey=
"store_id"
/>
<requestAccount
type=
"string"
okey=
"partner_id"
/>
<signParam
type=
"string"
okey=
"signParam"
/>
</ReqType>
</FreemudFront>
<FreemudPost>
<ReqType
key=
"fm_cmd"
value=
"10041"
>
<status_code
type=
"int"
okey=
"statusCode"
/>
<msg
type=
"string"
okey=
"msg"
/>
<ext
type=
"object"
okey=
"ext"
>
<print
type=
"string"
okey=
"ext/print"
/>
</ext>
</ReqType>
<ReqType
key=
"fm_cmd"
value=
"10031"
>
<status_code
type=
"int"
okey=
"statusCode"
/>
<msg
type=
"string"
okey=
"msg"
/>
<trans_id
type=
"string"
okey=
"trans_id"
/>
<fm_trans_id
type=
"string"
okey=
"pay_transId"
/>
<fm_order_id
type=
"string"
okey=
"fmId"
/>
<paid_total_amount
type=
"int"
okey=
"total_amount"
/>
<invoice_amount
type=
"int"
okey=
"invoice_amount"
/>
<discount_amount
type=
"int"
okey=
"(%mcoupon_amount%)"
/>
<discount_amount
type=
"int"
okey=
"(%pcoupon_amount%)"
/>
<discount_amount
type=
"int"
okey=
"(%mcoupon_amount%+%pcoupon_amount%)"
/>
<pay_ids
type=
"array"
havekey=
"fmId"
>
<pay_id
type=
"string"
okey=
"pay_ebcode"
/>
<pay_str
type=
"string"
okey=
"pay_id"
/>
<pay_amount
type=
"int"
okey=
"alipay_amount"
/>
<pay_account
type=
"string"
okey=
"pay_acount"
/>
<platform_discount
type=
"int"
okey=
"mcoupon_amount"
/>
<merchant_discount
type=
"int"
okey=
"pcoupon_amount"
/>
<ext
type=
"object"
okey=
"ext"
>
<print
type=
"string"
okey=
"ext/print"
/>
</ext>
</pay_ids>
</ReqType>
<ReqType
key=
"fm_cmd"
value=
"10033"
>
<status_code
type=
"int"
okey=
"resultCode"
>
<maping
mkey=
"1"
mvalue=
"100"
/>
<maping
mkey=
"x6001"
mvalue=
"21"
/>
<maping
mkey=
"x6002"
mvalue=
"22"
/>
<maping
mkey=
"x6003"
mvalue=
"23"
/>
<maping
mkey=
"x6004"
mvalue=
"24"
/>
<maping
mkey=
"x6005"
mvalue=
"25"
/>
</status_code>
<msg
type=
"string"
okey=
"errorMsg"
/>
</ReqType>
<!--checkrequest-->
<ReqType
key=
"fm_cmd"
value=
"10039"
>
<status_code
type=
"int"
okey=
"resultCode"
>
<maping
mkey=
"1"
mvalue=
"100"
/>
<maping
mkey=
"x6001"
mvalue=
"21"
/>
<maping
mkey=
"x6002"
mvalue=
"22"
/>
<maping
mkey=
"x6003"
mvalue=
"23"
/>
<maping
mkey=
"x6004"
mvalue=
"24"
/>
<maping
mkey=
"x6005"
mvalue=
"25"
/>
</status_code>
<msg
type=
"string"
okey=
"errorMsg"
/>
<expiration_date
type=
"string"
okey=
"expiration_date"
/>
<promotion
type=
"array"
havekey=
"orderProducts/productNumber"
>
<object
notzero=
"orderProducts/initPrice"
>
<type
type=
"int"
>
1
</type>
<id
type=
"string"
okey=
"orderInfo/activeCode"
/>
<desc
type=
"string"
okey=
"orderInfo/activeName"
/>
<seq
type=
"string"
>
1
</seq>
<offer
type=
"int"
okey=
"orderInfo/totalPlatformDiscount"
/>
</object>
<object
notzero=
"orderInfo/totalMerchantDiscount"
>
<type
type=
"int"
>
2
</type>
<id
type=
"string"
okey=
"orderInfo/activeCode"
/>
<desc
type=
"string"
okey=
"orderInfo/activeName"
/>
<seq
type=
"string"
>
2
</seq>
<offer
type=
"int"
okey=
"orderInfo/totalMerchantDiscount"
/>
</object>
<object
notzero=
"orderInfo/totalOtherDiscount"
>
<type
type=
"int"
>
3
</type>
<id
type=
"string"
okey=
"orderInfo/activeCode"
/>
<desc
type=
"string"
okey=
"orderInfo/activeName"
/>
<seq
type=
"string"
>
3
</seq>
<offer
type=
"int"
okey=
"orderInfo/totalOtherDiscount"
/>
</object>
</promotion>
</ReqType>
<!--hxrequest-->
<ReqType
key=
"fm_cmd"
value=
"10032"
>
<status_code
type=
"int"
okey=
"resultCode"
>
<maping
mkey=
"1"
mvalue=
"100"
/>
<maping
mkey=
"x6001"
mvalue=
"21"
/>
<maping
mkey=
"x6002"
mvalue=
"22"
/>
<maping
mkey=
"x6003"
mvalue=
"23"
/>
<maping
mkey=
"x6004"
mvalue=
"24"
/>
<maping
mkey=
"x6005"
mvalue=
"25"
/>
</status_code>
<msg
type=
"string"
okey=
"errorMsg"
/>
<order_amount
type=
"string"
okey=
"orderInfo/amountPaid"
/>
<coupon
type=
"string"
okey=
"voucherNumber"
/>
<!-- voucherType: 0 商品券; 1 代金券; 3 折扣券 -->
<!-- 0 商品券 -->
<promotion
type=
"array"
notzero=
"orderInfo/totalPlatformDiscount"
iszero=
"orderInfo/voucherType"
okey=
"orderInfo/discountOrderProducts"
>
<type
type=
"int"
notzero=
"orderInfo/discountOrderProducts/platformDiscountPrice"
>
2
</type>
<id
type=
"string"
notzero=
"orderInfo/discountOrderProducts/platformDiscountPrice"
okey=
"orderInfo/activeCode"
/>
<desc
type=
"string"
notzero=
"orderInfo/discountOrderProducts/platformDiscountPrice"
okey=
"orderInfo/activeName"
/>
<seq
type=
"string"
notzero=
"orderInfo/discountOrderProducts/platformDiscountPrice"
okey=
"orderInfo/discountOrderProducts/lineNumber"
/>
<pid
type=
"string"
notzero=
"orderInfo/discountOrderProducts/platformDiscountPrice"
okey=
"orderInfo/discountOrderProducts/productNumber"
/>
<offer
type=
"int"
notzero=
"orderInfo/discountOrderProducts/platformDiscountPrice"
okey=
"orderInfo/discountOrderProducts/platformDiscountPrice"
/>
<channel
type=
"string"
notzero=
"orderInfo/discountOrderProducts/platformDiscountPrice"
okey=
"partnerName"
/>
</promotion>
<promotion
type=
"array"
notzero=
"orderInfo/totalMerchantDiscount"
iszero=
"orderInfo/voucherType"
okey=
"orderInfo/discountOrderProducts"
>
<type
type=
"int"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
>
1
</type>
<!-- buyOrPromote: 0 买的商品; 1 活动商品 -->
<type
type=
"int"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
>
5
</type>
<type
type=
"int"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
iszero=
"(%orderInfo/discountOrderProducts/buyOrPromote%-1)"
>
1
</type>
<id
type=
"string"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
okey=
"orderInfo/activeCode"
/>
<desc
type=
"string"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
okey=
"orderInfo/activeName"
/>
<seq
type=
"string"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
okey=
"orderInfo/discountOrderProducts/lineNumber"
/>
<pid
type=
"string"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
okey=
"orderInfo/discountOrderProducts/productNumber"
/>
<offer
type=
"int"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
okey=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
/>
<channel
type=
"string"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
okey=
"partnerName"
/>
</promotion>
<promotion
type=
"array"
notzero=
"orderInfo/totalMerchantDiscount"
iszero=
"orderInfo/voucherType"
okey=
"orderInfo/discountOrderProducts"
>
<!-- buyOrPromote: 0 买的商品; 1 活动商品 -->
<type
type=
"int"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
>
5
</type>
<id
type=
"string"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
okey=
"orderInfo/activeCode"
/>
<desc
type=
"string"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
okey=
"orderInfo/activeName"
/>
<seq
type=
"string"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
okey=
"orderInfo/discountOrderProducts/lineNumber"
/>
<pid
type=
"string"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
okey=
"orderInfo/discountOrderProducts/productNumber"
/>
<offer
type=
"int"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
>
0
</offer>
<channel
type=
"string"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
okey=
"partnerName"
/>
</promotion>
<promotion
type=
"array"
notzero=
"orderInfo/totalMerchantDiscount"
iszero=
"(%orderInfo/voucherType%-3)"
okey=
"orderInfo/discountOrderProducts"
>
^M
<!-- buyOrPromote: 0 买的商品; 1 活动商品 -->
<type
type=
"int"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
>
5
</type>
<type
type=
"int"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
iszero=
"(%orderInfo/discountOrderProducts/buyOrPromote%-1)"
>
1
</type>
<id
type=
"string"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
okey=
"orderInfo/activeCode"
/>
^M
<desc
type=
"string"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
okey=
"orderInfo/activeName"
/>
^M
<seq
type=
"string"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
okey=
"orderInfo/discountOrderProducts/lineNumber"
/>
^M
<pid
type=
"string"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
okey=
"orderInfo/discountOrderProducts/productNumber"
/>
^M
<offer
type=
"int"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
okey=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
/>
^M
<channel
type=
"string"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
okey=
"partnerName"
/>
^M
</promotion>
<promotion
type=
"array"
notzero=
"orderInfo/totalMerchantDiscount"
iszero=
"(%orderInfo/voucherType%-3)"
okey=
"orderInfo/discountOrderProducts"
>
<!-- buyOrPromote: 0 买的商品; 1 活动商品 -->
<type
type=
"int"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
>
5
</type>
<id
type=
"string"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
okey=
"orderInfo/activeCode"
/>
<desc
type=
"string"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
okey=
"orderInfo/activeName"
/>
<seq
type=
"string"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
okey=
"orderInfo/discountOrderProducts/lineNumber"
/>
<pid
type=
"string"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
okey=
"orderInfo/discountOrderProducts/productNumber"
/>
<offer
type=
"int"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
>
0
</offer>
<channel
type=
"string"
iszero=
"orderInfo/discountOrderProducts/buyOrPromote"
okey=
"partnerName"
/>
</promotion>
<!-- 1 代金券: 平台优惠入账,商户优惠入折扣 -->
<promotion
type=
"array"
notzero=
"orderInfo/totalPlatformDiscount"
iszero=
"(%orderInfo/voucherType%-1)"
>
<object
notzero=
"orderInfo/totalPlatformDiscount"
>
<type
type=
"int"
notzero=
"orderInfo/totalPlatformDiscount"
>
3
</type>
<id
type=
"string"
notzero=
"orderInfo/totalPlatformDiscount"
okey=
"orderInfo/activeCode"
/>
<desc
type=
"string"
notzero=
"orderInfo/totalPlatformDiscount"
okey=
"orderInfo/activeName"
/>
<offer
type=
"int"
notzero=
"orderInfo/totalPlatformDiscount"
okey=
"orderInfo/totalPlatformDiscount"
/>
<channel
type=
"string"
notzero=
"orderInfo/totalPlatformDiscount"
okey=
"partnerName"
/>
</object>
</promotion>
<promotion
type=
"array"
notzero=
"orderInfo/totalMerchantDiscount"
iszero=
"(%orderInfo/voucherType%-1)"
>
<object
notzero=
"orderInfo/totalMerchantDiscount"
iszero=
"productLimit"
>
<!-- productLimit: 0 无商品限制; 1 有商品限制 -->
<type
type=
"int"
notzero=
"orderInfo/totalMerchantDiscount"
>
4
</type>
<id
type=
"string"
notzero=
"orderInfo/totalMerchantDiscount"
okey=
"orderInfo/activeCode"
/>
<desc
type=
"string"
notzero=
"orderInfo/totalMerchantDiscount"
okey=
"orderInfo/activeName"
/>
<offer
type=
"int"
notzero=
"orderInfo/totalMerchantDiscount"
okey=
"orderInfo/totalMerchantDiscount"
/>
<channel
type=
"string"
notzero=
"orderInfo/totalMerchantDiscount"
okey=
"partnerName"
/>
</object>
</promotion>
<promotion
type=
"array"
notzero=
"orderInfo/totalMerchantDiscount"
iszero=
"(%orderInfo/voucherType%-1)"
okey=
"orderInfo/discountOrderProducts"
>
<!-- productLimit: 0 无商品限制; 1 有商品限制 -->
<type
type=
"int"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
iszero=
"(%productLimit%-1)"
>
1
</type>
<id
type=
"string"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
iszero=
"(%productLimit%-1)"
okey=
"orderInfo/activeCode"
/>
<pid
type=
"string"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
iszero=
"(%productLimit%-1)"
okey=
"orderInfo/discountOrderProducts/productNumber"
/>
<seq
type=
"string"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
iszero=
"(%productLimit%-1)"
okey=
"orderInfo/discountOrderProducts/lineNumber"
/>
<desc
type=
"string"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
iszero=
"(%productLimit%-1)"
okey=
"orderInfo/activeName"
/>
<offer
type=
"int"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
iszero=
"(%productLimit%-1)"
okey=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
/>
<channel
type=
"string"
notzero=
"orderInfo/discountOrderProducts/merchantDiscountPrice"
iszero=
"(%productLimit%-1)"
okey=
"partnerName"
/>
</promotion>
</ReqType>
</FreemudPost>
</Freemud>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment