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