Project

General

Profile

Specification » History » Version 5

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
|_. version |_. Description  |
10
| 2.5       | Init           |
11
12
h3. Jar File Download
13
14 5 Soh Keong
"Jar":/redmine/attachments/download/614/coswayJsonService-2.6.jar
15 1 Soh Keong
"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 1 Soh Keong
                                                                               .ITEM_STATUS_CODE_WAREHOUSE_CANCEL
79 5 Soh Keong
                                                                               .ITEM_STATUS_CODE_NEW_RECORD
80 2 Soh Keong
> * *pickupType*           - String
81
> * *invoiceRC*            - String
82
> * *referralID*           - String
83
> * *state*                - String
84
> * *stockistCode*         - String
85
> * *totalRec*             - Int
86
> * *orderDetailBeanList*  - List<OrderDetailResultBean>
87
>> * *gstAmt*                 	- String
88
>> * *itemStatusCode*         	- String
89
>> * *itemStatusCodeDatetime*  	- Date
90
>> * *prodCode*  		- String
91
>> * *prodType*  		- String
92
>> * *qtyCancel*  		- Int
93
>> * *qtyFulfill*  		- Int
94
>> * *qtyReturn*  		- Int
95
>> * *qtySold*  		- Int
96
>> * *setCode*  		- String
97
>> * *taxCode*  		- String
98
>> * *uKeyOffline*  		- String
99
>> * *uKeyOnline*  		- String
100
>> * *value*  			- String
101
>> * *childRetailPrice*  	- Double
102
>> * *nowPrice*  		- Double
103
>> * *prodRCUtilized*  		- Int
104
105 4 Soh Keong
h3. updateOrderByInvoice (IUpdateOrderByInvNo)
106 2 Soh Keong
107
<pre>
108
com.ecosway.cosway.cpsjson.model.ResultBean resultBean = service.updateOrderByInvoice(UpdateOrderByInvoiceBean bean)
109
</pre>
110
111
* *com.ecosway.cosway.cpsjson.model.UpdateOrderByInvoiceBean*
112
> * *invNo*         - String
113
> * *statusCode*    - String
114
> * *receiveNoteNo* - String
115
116
117
* *com.ecosway.cosway.cpsjson.model.ResultBean*
118
> * *errCode*       - String
119
> * *errMessage*    - String
120
121
122
h2. Taiwan Activation
123
124
<pre>
125
com.ecosway.cosway.cpsjson.service.TaiwanRegistrationService service = new com.ecosway.cosway.cpsjson.service.TaiwanRegistrationService();
126
</pre>
127
128
h3. sendActivationList
129
130
<pre>
131
com.ecosway.cosway.cpsjson.service.ResultBean resultBean = service.sendActivationList(TWActivationBean activationBean)
132
</pre>
133
134
* *com.ecosway.cosway.cpsjson.model.TWActivationBean*
135
> * *countryId*      - String
136
> * *centerId*       - String (com.ecosway.cosway.cpsjson.constant.CommonConstant.CENTER_ID_ONLINE)
137
> * *transactionId*  - String
138
> * *familyBeanList* - List<TWFamilyBean>
139
>> * *memberId*        - String
140
>> * *sponsorId*       - String
141
>> * *placementId*     - String
142
>> * *tempPlacementId* - String
143
>> * *icNo*            - String
144
>> * *name*            - String
145
>> * *status*          - String
146
147
* *com.ecosway.cosway.cpsjson.model.ResultBean*
148
> * *errCode*       - String
149
> * *errMessage*    - String