Project

General

Profile

Specification » History » Version 8

Soh Keong, 06/02/2023 09:26 AM

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