Actions
Specification » History » Revision 17
« Previous |
Revision 17/23
(diff)
| Next »
Soh Keong, 11/11/2020 05:07 PM
- Table of contents
- Specification
- Programming Guide
- flow chart
- Methods
- Common Instance
- getMomBeanByOrderId / getCancelMomByOrderId / getRegistrationBeanByOrderId / getCancelRegistrationBeanByOrderId / getRenewalBeanByOrderId / getCancelRenewalBeanByOrderId
- addOrder
- checkShippingStatus
- updateCancelRequestBeforeApproval / cancelCancelRequest
- getDeliveryAddressByOrderId
- updateDeliveryAddress
- getShippingCountryByOrderId
- Common Bean - MomBean
- Common Bean - MomShippingAddressBean
- Common Bean - ResultBean
Specification¶
Programming Guide¶
Jar version¶
version | Description |
---|---|
2.8 | Init |
2.8.1 | Fixed shipping error |
Jar File Download¶
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
flow chart¶
Taiwan¶
Methods¶
Common Instance¶
com.bv.ws.service.MomService service = new com.bv.ws.service.MomService();
getMomBeanByOrderId / getCancelMomByOrderId / getRegistrationBeanByOrderId / getCancelRegistrationBeanByOrderId / getRenewalBeanByOrderId / getCancelRenewalBeanByOrderId¶
com.bv.ws.model.MomBean momBean = service.getMomBeanByOrderId(Connection connStore, String orderId); com.bv.ws.model.MomBean momBean = service.getCancelMomByOrderId(Connection connUsa, Connection connStore, String orderId); com.bv.ws.model.MomBean momBean = service.getRegistrationBeanByOrderId(Connection conn, String orderId) com.bv.ws.model.MomBean momBean = service.getCancelRegistrationBeanByOrderId(Connection conn, String orderId) com.bv.ws.model.MomBean momBean = service.getRenewalBeanByOrderId (Connection conn, String orderId) com.bv.ws.model.MomBean momBean = service.getCancelRenewalBeanByOrderId(Connection conn, String orderId)
addOrder¶
com.bv.ws.model.ResultBean resultBean = service.addOrder(MomBean bean)
com.bv.ws.model.MomBean
com.bv.ws.model.ResultBean
checkShippingStatus¶
com.bv.ws.model.QueryResultBean resutlBean = service.checkShippingStatus(QueryOrderBean bean)
- *com.bv.ws.model.QueryOrderBean *
- orderId - String
- countryCode - String
- com.bv.ws.model.QueryResultBean
- errCode - String
- errMessage - String
- invoiceStatus - String ("return" = good had return : empty = yet return)
- shipped - boolean
updateCancelRequestBeforeApproval / cancelCancelRequest¶
com.bv.ws.model.ResultBean resultBean = service.updateCancelRequestBeforeApproval(UpdateOrderBean bean) com.bv.ws.model.ResultBean resultBean = service.cancelCancelRequest(UpdateOrderBean bean) com.bv.ws.model.ResultBean resultBean = service.updateCancelRequestAfterApproval(UpdateOrderBean bean) com.bv.ws.model.ResultBean resultBean = service.updateCancelStatus(UpdateOrderBean bean)
- com.bv.ws.model.UpdateOrderBean
- orderId - String
- countryCode - String
- stockistCode - com.bv.ws.constant.CommonConstant.STOCKIST_CODE_ONLINE
- orderList - String
- orderId - String
- cancelRequest - String (NO NEED to set value, auto fixed by calling difference method)
NOTE: R=Before Approval; Y=After Approval;
- orderStatus -String (default to 'cancel')
getDeliveryAddressByOrderId¶
com.bv.ws.model.MomShippingAddressBean addressBean = service.getDeliveryAddressByOrderId(Connection conn, String orderId)
com.bv.ws.model.MomShippingAddressBean
updateDeliveryAddress¶
com.bv.ws.model.ResultBean resultBean = service.updateDeliveryAddress(MomShippingAddressBean bean)
com.bv.ws.model.MomShippingAddressBean
com.bv.ws.model.ResultBean
getShippingCountryByOrderId¶
String shippingCountry = service.getShippingCountryByOrderId(Connection connStore, String orderId);
Common Bean - MomBean¶
- 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
Common Bean - MomShippingAddressBean¶
- com.bv.ws.model.MomShippingAddressBean
- orderId - String
- countryCode - String
- deliveryAddress - String
- memberIc - String
- telNo - String
- receiverName - String
Common Bean - ResultBean¶
- com.bv.ws.model.ResultBean
- errCode - String
- errMessage - String
Updated by Soh Keong about 4 years ago · 17 revisions