Project

General

Profile

Specification » History » Version 7

Soh Keong, 05/31/2023 11:00 AM

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