Commit 389c108124b29c7a82148933017df9b4b9f19543
1 parent
c7c22e90
普通客户创建订单 修改参数
Showing
1 changed file
with
42 additions
and
44 deletions
commons/api/hg/transaction/l_createAndTrade.py
... | ... | @@ -22,59 +22,57 @@ class l_createAndTrade(): |
22 | 22 | "Host":"test.gateway.diligrp.com:8285" |
23 | 23 | } |
24 | 24 | self.body = { |
25 | - "sellerId":141969, | |
26 | - "sellerName":"严安彬卖", | |
27 | - "sellerAccountId":107677, | |
28 | - "sellerCardNo":"888810061102", | |
29 | - "buyerId":141968, | |
30 | - "buyerName":"袁豪正买", | |
31 | - "buyerAccountId":107676, | |
32 | - "buyerCardNo":"888810061104", | |
33 | - "posCode":"333444", | |
34 | - "tradePassword":"111111", | |
35 | - "orderItemList":[ | |
36 | - { | |
37 | - "number":0, | |
38 | - "batchCode":"2109000223", | |
39 | - "productId":125, | |
40 | - "productCode":"374690", | |
41 | - "productName":"苹果", | |
42 | - "categoryId":754107, | |
43 | - "weightType":1, | |
44 | - "quantity":10, | |
45 | - "pieceWeight":10, | |
46 | - "grossWeight":0, | |
47 | - "tareWeight":0, | |
48 | - "weight":10, | |
49 | - "price":100, | |
50 | - "PriceStr":"10.00", | |
51 | - "amount":1000, | |
52 | - "amountStr":10, | |
53 | - "originId":40000000, | |
54 | - "originName":"阿尔及利亚", | |
55 | - "feeItemList":[ | |
56 | - { | |
25 | + "sellerId":141969, | |
26 | + "sellerName":"严安彬卖", | |
27 | + "sellerAccountId":107677, | |
28 | + "sellerCardNo":"888810061102", | |
29 | + "buyerId":141968, | |
30 | + "buyerName":"袁豪正买", | |
31 | + "buyerCardHolder":"袁豪正买", | |
32 | + "buyerAccountId":107676, | |
33 | + "buyerCardNo":"888810061104", | |
34 | + "posCode":"333444", | |
35 | + "tradePassword":"111111", | |
36 | + "orderItemList":[{ | |
37 | + "number":0, | |
38 | + "batchCode":"2109000660", | |
39 | + "productId":125, | |
40 | + "productCode":"374690", | |
41 | + "productName":"苹果", | |
42 | + "categoryId":374690, | |
43 | + "weightType":1, | |
44 | + "quantity":10, | |
45 | + "pieceWeight":1, | |
46 | + "grossWeight":0.0, | |
47 | + "tareWeight":0.0, | |
48 | + "weight":10.0, | |
49 | + "price":2000, | |
50 | + "PriceStr":"20.00", | |
51 | + "amount":20000, | |
52 | + "amountStr":"200.00", | |
53 | + "originId":510100, | |
54 | + "originName":"成都市", | |
55 | + "feeItemList":[{ | |
57 | 56 | "type":1, |
58 | 57 | "chargeItemId":521, |
59 | 58 | "chargeItemName":"买家手续费", |
60 | - "amount":1122 | |
61 | - }, | |
62 | - { | |
59 | + "amount":550.0 | |
60 | + },{ | |
63 | 61 | "type":2, |
64 | 62 | "chargeItemId":522, |
65 | 63 | "chargeItemName":"卖家手续费", |
66 | - "amount":610 | |
67 | - }, | |
68 | - { | |
64 | + "amount":989.00 | |
65 | + },{ | |
69 | 66 | "type":2, |
70 | 67 | "chargeItemId":527, |
71 | 68 | "chargeItemName":"卖家仓储服务费", |
72 | - "amount":522 | |
73 | - } | |
74 | - ] | |
75 | - } | |
76 | - ] | |
77 | -} | |
69 | + "amount":522.00 | |
70 | + },{ | |
71 | + "type":2, | |
72 | + "chargeItemId":534, | |
73 | + "chargeItemName":"卖家其他费用", | |
74 | + "amount":231.00 | |
75 | + }]}]} | |
78 | 76 | |
79 | 77 | |
80 | 78 | # lcat = l_createAndTrade() | ... | ... |