Specification » History » Revision 4
Revision 3 (Soh Keong, 10/22/2020 10:59 AM) → Revision 4/23 (Soh Keong, 10/22/2020 05:39 PM)
h1. Specification h2. h1. Programming Guide h3. Jar version |_. version |_. Description | | 2.8 | Init | h3. Jar File Download "Jar":/redmine/attachments/download/483/BVService-2.8.jar "Lib":/redmine/attachments/download/484/lib.rar "Properties":/redmine/attachments/download/485/service.properties h3. properties file * *service.properties* # *json.url.mom* - Provided by POS # *json.key* - Provided by POS # *aes.key* - Provided by POS # *connection.timeout* - Set connection timeout # *connection.read.timeout* - Set connection red timeout h2. Methods h3. Common Instance <pre> com.bv.ws.service.MomService service = new com.bv.ws.service.MomService(); </pre> h3. getMomBeanByOrderId <pre> com.bv.ws.model.MomBean momBean = service.getMomBeanByOrderId(Connection connStore, conn, String orderId); </pre> h3. getCancelMomByOrderId <pre> com.bv.ws.model.MomBean momBean = service.getMomBeanByOrderId(Connection connUsa, Connection connStore, String orderId); </pre> h3. checkShippingStatus <pre> com.bv.ws.model.QueryResultBean checkShippingStatus(QueryOrderBean bean) </pre> * *com.bv.ws.model.QueryOrderBean * > * *orderId* - String > * *countryCode* - String * *com.bv.ws.model.QueryResultBean* > * *errCode* - String > * *errMessage* - String > * *deliveryType* - String > * *deliveryNo* - String > * *deliveryDate* - String > * *consignNo* - String > * *consignDate* - String > * *collectDate* - String > * *orderId* - String > * *orderDate* - String > * *pickupStore* - String > * *whDownload* - String > * *posDownload* - String > * *sendCarton* - String > * *receiveCarton* - String > * *receiveDate* - String > * *invoiceStatus* - String > * *originalOrdNo* - String > * *returnInvNo* - String > * *returnInvDate* - String > * *onlCancelRequest* - String > * *shipped* - boolean h3. getShippingCountryByOrderId <pre> String shippingCountry = service.getShippingCountryByOrderId(Connection connStore, String orderId); </pre> * *com.bv.ws.model.MomBean* > * *orderId* - String > * *countryCode* - String > * *deliveryAddress* - String > * *memberIc* - String > * *telNo* - String > * *receiverName* - String > * *stockistCode* - String > * *orderDate* - Date > * *memberId* - String > * *invoiceAmount* - double > * *processDate* - Date > * *collectorName* - String > * *collectorIc* - String > * *collectorContact* - String > * *deliveryType* - String > * *pickupStore* - String > * *approvalCode* - String > * *freightCharges* - double > * *purchaserName* - String > * *ewalletAdminFee* - double > * *currency* - String > * *originalOrdNo* - String > * *onlineMall* - String > * *warehouse* - String > * *lossFee* - double > * *productList* >> * *setId* - String >> * *productId* - String >> * *productType* - String >> * *quantity* - int >> * *setSold* - int >> * *productPrice* - double >> * *deductStock* - String >> * *childPrice* - double >> * *childTotalPrice* - double