Project

General

Profile

Specification » History » Revision 4

Revision 3 (Soh Keong, 01/14/2021 12:17 PM) → Revision 4/8 (Soh Keong, 04/01/2021 02:16 PM)

{{toc}} 

 h1. Specification 

 h2. Programming Guide 

 h3. Jar version  

 |_. version |_. Description    | 
 | 2.5         | Init             | 

 h3. Jar File Download 

 "Jar":/redmine/attachments/download/520/coswayJsonService-2.5.jar 
 "Lib":/redmine/attachments/download/521/lib.rar 
 "Properties":/redmine/attachments/download/522/service.properties 

 h3. properties file 

 * *service.properties* 

 # *json.url*                  - provided by DotNet team 
 # *cosway.key*                - provided by DotNet team 
 # *initialization.vector*     - provided by DotNet team 
 # *aes.key*                   - provided by DotNet team 
 # *service.mode*              - provided by DotNet team 
 # *wsdl.url*                  - provided by DotNet team 
 # *json.key*                  - provided by DotNet team 
 # *connection.timeout*        - set connection timeout 
 # *connection.read.timeout* - set connection read timeout 

 h1. Methods 

 h2. Store Pickup Service 

 <pre> 
 com.ecosway.cosway.cpsjson.service.StorePickupService service = new com.ecosway.cosway.cpsjson.service.StorePickupService(); 
 </pre> 

 h3. getOrderByStore (IGetOrderByStore) 

 <pre> 
 com.ecosway.cosway.cpsjson.model.OrderByStoreResultBean resultBean = service.getOrderByStore(String stockistCode) 
 </pre> 

 * *com.ecosway.cosway.cpsjson.model.OrderByStoreResultBean* 
 > * *errCode*         - String 
 > * *errMessage*      - String 
 > * *stockistCode*    - String 
 > * *totalRec*        - String 
 > * *orderBeanList* - List<OrderResultBean> 
 >> * *boId*             - String 
 >> * *invDate*          - Date 
 >> * *invNo*            - String 

 h3. getOrderByInvoice (IGetOrderByInvNo) 

 <pre> 
 com.ecosway.cosway.cpsjson.model.OrderByInvNoResultBean resultBean = service.getOrderByInvoice(String invNo) 
 </pre> 

 * *com.ecosway.cosway.cpsjson.model.OrderByInvNoResultBean* 
 > * *errCode*         - String 
 > * *errMessage*      - String 
 > * *boId*                   - String 
 > * *city*                   - String 
 > * *collectorContact*       - String 
 > * *collectorIC*            - String 
 > * *collectorName*          - String 
 > * *deliveryType*           - String 
 > * *invDate*                - Date 
 > * *invNo*                  - String 
 > * *invStatus*              - com.ecosway.cosway.cpsjson.constant.CommonConstant.ITEM_STATUS_CODE_APPROVED  
                                                                                .ITEM_STATUS_CODE_FULFILLED 
                                                                                .ITEM_STATUS_CODE_CANCELLED 
                                                                                .ITEM_STATUS_CODE_HOLD 
                                                                                .ITEM_STATUS_CODE_PARTIAL 
                                                                                .ITEM_STATUS_CODE_WAREHOUSE_CANCEL 
 > * *pickupType*             - String 
 > * *invoiceRC*              - String 
 > * *referralID*             - String 
 > * *state*                  - String 
 > * *stockistCode*           - String 
 > * *totalRec*               - Int 
 > * *orderDetailBeanList*    - List<OrderDetailResultBean> 
 >> * *gstAmt*                  	 - String 
 >> * *itemStatusCode*          	 - String 
 >> * *itemStatusCodeDatetime*   	 - Date 
 >> * *prodCode*   		 - String 
 >> * *prodType*   		 - String 
 >> * *qtyCancel*   		 - Int 
 >> * *qtyFulfill*   		 - Int 
 >> * *qtyReturn*   		 - Int 
 >> * *qtySold*   		 - Int 
 >> * *setCode*   		 - String 
 >> * *taxCode*   		 - String 
 >> * *uKeyOffline*   		 - String 
 >> * *uKeyOnline*   		 - String 
 >> * *value*   			 - String 
 >> * *childRetailPrice*   	 - Double 
 >> * *nowPrice*   		 - Double 
 >> * *prodRCUtilized*   		 - Int 

 h3. updateOrderByInvoice (IUpdateOrderByInvNo) 

 <pre> 
 com.ecosway.cosway.cpsjson.model.ResultBean resultBean = service.updateOrderByInvoice(UpdateOrderByInvoiceBean bean) 
 </pre> 

 * *com.ecosway.cosway.cpsjson.model.UpdateOrderByInvoiceBean* 
 > * *invNo*           - String 
 > * *statusCode*      - String 
 > * *receiveNoteNo* - String 


 * *com.ecosway.cosway.cpsjson.model.ResultBean* 
 > * *errCode*         - String 
 > * *errMessage*      - String 


 h2. Taiwan Activation 

 <pre> 
 com.ecosway.cosway.cpsjson.service.TaiwanRegistrationService service = new com.ecosway.cosway.cpsjson.service.TaiwanRegistrationService(); 
 </pre> 

 h3. sendActivationList 

 <pre> 
 com.ecosway.cosway.cpsjson.service.ResultBean resultBean = service.sendActivationList(TWActivationBean activationBean) 
 </pre> 

 * *com.ecosway.cosway.cpsjson.model.TWActivationBean* 
 > * *countryId*        - String 
 > * *centerId*         - String (com.ecosway.cosway.cpsjson.constant.CommonConstant.CENTER_ID_ONLINE) 
 > * *transactionId*    - String 
 > * *familyBeanList* - List<TWFamilyBean> 
 >> * *memberId*          - String 
 >> * *sponsorId*         - String 
 >> * *placementId*       - String 
 >> * *tempPlacementId* - String 
 >> * *icNo*              - String 
 >> * *name*              - String 
 >> * *status*            - String 

 * *com.ecosway.cosway.cpsjson.model.ResultBean* 
 > * *errCode*         - String 
 > * *errMessage*      - String