Specification » History » Version 2
Soh Keong, 11/20/2020 04:05 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 | h3. getOrderByStore |
||
41 | |||
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 | h3. getOrderByInvoice |
||
57 | |||
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 | > * *invStatus* - String |
||
74 | > * *pickupType* - String |
||
75 | > * *invoiceRC* - String |
||
76 | > * *referralID* - String |
||
77 | > * *state* - String |
||
78 | > * *stockistCode* - String |
||
79 | > * *totalRec* - Int |
||
80 | > * *orderDetailBeanList* - List<OrderDetailResultBean> |
||
81 | >> * *gstAmt* - String |
||
82 | >> * *itemStatusCode* - String |
||
83 | >> * *itemStatusCodeDatetime* - Date |
||
84 | >> * *prodCode* - String |
||
85 | >> * *prodType* - String |
||
86 | >> * *qtyCancel* - Int |
||
87 | >> * *qtyFulfill* - Int |
||
88 | >> * *qtyReturn* - Int |
||
89 | >> * *qtySold* - Int |
||
90 | >> * *setCode* - String |
||
91 | >> * *taxCode* - String |
||
92 | >> * *uKeyOffline* - String |
||
93 | >> * *uKeyOnline* - String |
||
94 | >> * *value* - String |
||
95 | >> * *childRetailPrice* - Double |
||
96 | >> * *nowPrice* - Double |
||
97 | >> * *prodRCUtilized* - Int |
||
98 | |||
99 | h3. updateOrderByInvoice |
||
100 | |||
101 | <pre> |
||
102 | com.ecosway.cosway.cpsjson.model.ResultBean resultBean = service.updateOrderByInvoice(UpdateOrderByInvoiceBean bean) |
||
103 | </pre> |
||
104 | |||
105 | * *com.ecosway.cosway.cpsjson.model.UpdateOrderByInvoiceBean* |
||
106 | > * *invNo* - String |
||
107 | > * *statusCode* - String |
||
108 | > * *receiveNoteNo* - String |
||
109 | |||
110 | |||
111 | * *com.ecosway.cosway.cpsjson.model.ResultBean* |
||
112 | > * *errCode* - String |
||
113 | > * *errMessage* - String |
||
114 | |||
115 | |||
116 | h2. Taiwan Activation |
||
117 | |||
118 | <pre> |
||
119 | com.ecosway.cosway.cpsjson.service.TaiwanRegistrationService service = new com.ecosway.cosway.cpsjson.service.TaiwanRegistrationService(); |
||
120 | </pre> |
||
121 | |||
122 | h3. sendActivationList |
||
123 | |||
124 | <pre> |
||
125 | com.ecosway.cosway.cpsjson.service.ResultBean resultBean = service.sendActivationList(TWActivationBean activationBean) |
||
126 | </pre> |
||
127 | |||
128 | * *com.ecosway.cosway.cpsjson.model.TWActivationBean* |
||
129 | > * *countryId* - String |
||
130 | > * *centerId* - String (com.ecosway.cosway.cpsjson.constant.CommonConstant.CENTER_ID_ONLINE) |
||
131 | > * *transactionId* - String |
||
132 | > * *familyBeanList* - List<TWFamilyBean> |
||
133 | >> * *memberId* - String |
||
134 | >> * *sponsorId* - String |
||
135 | >> * *placementId* - String |
||
136 | >> * *tempPlacementId* - String |
||
137 | >> * *icNo* - String |
||
138 | >> * *name* - String |
||
139 | >> * *status* - String |
||
140 | |||
141 | * *com.ecosway.cosway.cpsjson.model.ResultBean* |
||
142 | > * *errCode* - String |
||
143 | > * *errMessage* - String |