Specification » History » Version 4
Soh Keong, 04/01/2021 02:16 PM
1 | 1 | Soh Keong | {{toc}} |
---|---|---|---|
2 | |||
3 | h1. Specification |
||
4 | |||
5 | h2. Programming Guide |
||
6 | |||
7 | h3. Jar version |
||
8 | |||
9 | |_. version |_. Description | |
||
10 | | 2.5 | Init | |
||
11 | |||
12 | h3. Jar File Download |
||
13 | |||
14 | "Jar":/redmine/attachments/download/520/coswayJsonService-2.5.jar |
||
15 | "Lib":/redmine/attachments/download/521/lib.rar |
||
16 | "Properties":/redmine/attachments/download/522/service.properties |
||
17 | |||
18 | h3. properties file |
||
19 | |||
20 | * *service.properties* |
||
21 | |||
22 | # *json.url* - provided by DotNet team |
||
23 | # *cosway.key* - provided by DotNet team |
||
24 | # *initialization.vector* - provided by DotNet team |
||
25 | # *aes.key* - provided by DotNet team |
||
26 | # *service.mode* - provided by DotNet team |
||
27 | # *wsdl.url* - provided by DotNet team |
||
28 | # *json.key* - provided by DotNet team |
||
29 | # *connection.timeout* - set connection timeout |
||
30 | # *connection.read.timeout* - set connection read timeout |
||
31 | |||
32 | h1. Methods |
||
33 | |||
34 | h2. Store Pickup Service |
||
35 | |||
36 | <pre> |
||
37 | com.ecosway.cosway.cpsjson.service.StorePickupService service = new com.ecosway.cosway.cpsjson.service.StorePickupService(); |
||
38 | </pre> |
||
39 | |||
40 | 4 | Soh Keong | h3. getOrderByStore (IGetOrderByStore) |
41 | 1 | Soh Keong | |
42 | <pre> |
||
43 | com.ecosway.cosway.cpsjson.model.OrderByStoreResultBean resultBean = service.getOrderByStore(String stockistCode) |
||
44 | </pre> |
||
45 | |||
46 | * *com.ecosway.cosway.cpsjson.model.OrderByStoreResultBean* |
||
47 | > * *errCode* - String |
||
48 | > * *errMessage* - String |
||
49 | > * *stockistCode* - String |
||
50 | > * *totalRec* - String |
||
51 | > * *orderBeanList* - List<OrderResultBean> |
||
52 | >> * *boId* - String |
||
53 | >> * *invDate* - Date |
||
54 | >> * *invNo* - String |
||
55 | 2 | Soh Keong | |
56 | 4 | Soh Keong | h3. getOrderByInvoice (IGetOrderByInvNo) |
57 | 2 | Soh Keong | |
58 | <pre> |
||
59 | com.ecosway.cosway.cpsjson.model.OrderByInvNoResultBean resultBean = service.getOrderByInvoice(String invNo) |
||
60 | </pre> |
||
61 | |||
62 | * *com.ecosway.cosway.cpsjson.model.OrderByInvNoResultBean* |
||
63 | > * *errCode* - String |
||
64 | > * *errMessage* - String |
||
65 | > * *boId* - String |
||
66 | > * *city* - String |
||
67 | > * *collectorContact* - String |
||
68 | > * *collectorIC* - String |
||
69 | > * *collectorName* - String |
||
70 | > * *deliveryType* - String |
||
71 | > * *invDate* - Date |
||
72 | > * *invNo* - String |
||
73 | 3 | Soh Keong | > * *invStatus* - com.ecosway.cosway.cpsjson.constant.CommonConstant.ITEM_STATUS_CODE_APPROVED |
74 | .ITEM_STATUS_CODE_FULFILLED |
||
75 | .ITEM_STATUS_CODE_CANCELLED |
||
76 | .ITEM_STATUS_CODE_HOLD |
||
77 | .ITEM_STATUS_CODE_PARTIAL |
||
78 | .ITEM_STATUS_CODE_WAREHOUSE_CANCEL |
||
79 | 2 | Soh Keong | > * *pickupType* - String |
80 | > * *invoiceRC* - String |
||
81 | > * *referralID* - String |
||
82 | > * *state* - String |
||
83 | > * *stockistCode* - String |
||
84 | > * *totalRec* - Int |
||
85 | > * *orderDetailBeanList* - List<OrderDetailResultBean> |
||
86 | >> * *gstAmt* - String |
||
87 | >> * *itemStatusCode* - String |
||
88 | >> * *itemStatusCodeDatetime* - Date |
||
89 | >> * *prodCode* - String |
||
90 | >> * *prodType* - String |
||
91 | >> * *qtyCancel* - Int |
||
92 | >> * *qtyFulfill* - Int |
||
93 | >> * *qtyReturn* - Int |
||
94 | >> * *qtySold* - Int |
||
95 | >> * *setCode* - String |
||
96 | >> * *taxCode* - String |
||
97 | >> * *uKeyOffline* - String |
||
98 | >> * *uKeyOnline* - String |
||
99 | >> * *value* - String |
||
100 | >> * *childRetailPrice* - Double |
||
101 | >> * *nowPrice* - Double |
||
102 | >> * *prodRCUtilized* - Int |
||
103 | |||
104 | 4 | Soh Keong | h3. updateOrderByInvoice (IUpdateOrderByInvNo) |
105 | 2 | Soh Keong | |
106 | <pre> |
||
107 | com.ecosway.cosway.cpsjson.model.ResultBean resultBean = service.updateOrderByInvoice(UpdateOrderByInvoiceBean bean) |
||
108 | </pre> |
||
109 | |||
110 | * *com.ecosway.cosway.cpsjson.model.UpdateOrderByInvoiceBean* |
||
111 | > * *invNo* - String |
||
112 | > * *statusCode* - String |
||
113 | > * *receiveNoteNo* - String |
||
114 | |||
115 | |||
116 | * *com.ecosway.cosway.cpsjson.model.ResultBean* |
||
117 | > * *errCode* - String |
||
118 | > * *errMessage* - String |
||
119 | |||
120 | |||
121 | h2. Taiwan Activation |
||
122 | |||
123 | <pre> |
||
124 | com.ecosway.cosway.cpsjson.service.TaiwanRegistrationService service = new com.ecosway.cosway.cpsjson.service.TaiwanRegistrationService(); |
||
125 | </pre> |
||
126 | |||
127 | h3. sendActivationList |
||
128 | |||
129 | <pre> |
||
130 | com.ecosway.cosway.cpsjson.service.ResultBean resultBean = service.sendActivationList(TWActivationBean activationBean) |
||
131 | </pre> |
||
132 | |||
133 | * *com.ecosway.cosway.cpsjson.model.TWActivationBean* |
||
134 | > * *countryId* - String |
||
135 | > * *centerId* - String (com.ecosway.cosway.cpsjson.constant.CommonConstant.CENTER_ID_ONLINE) |
||
136 | > * *transactionId* - String |
||
137 | > * *familyBeanList* - List<TWFamilyBean> |
||
138 | >> * *memberId* - String |
||
139 | >> * *sponsorId* - String |
||
140 | >> * *placementId* - String |
||
141 | >> * *tempPlacementId* - String |
||
142 | >> * *icNo* - String |
||
143 | >> * *name* - String |
||
144 | >> * *status* - String |
||
145 | |||
146 | * *com.ecosway.cosway.cpsjson.model.ResultBean* |
||
147 | > * *errCode* - String |
||
148 | > * *errMessage* - String |