Project

General

Profile

Actions

Specification » History » Revision 6

« Previous | Revision 6/8 (diff) | Next »
Soh Keong, 09/28/2021 03:28 PM


Specification

Programming Guide

Jar version

version Description
2.5 Init
2.6 Added item status Code N

Jar File Download

Jar
Lib
Properties

properties file

  • service.properties
  1. json.url - provided by DotNet team
  2. cosway.key - provided by DotNet team
  3. initialization.vector - provided by DotNet team
  4. aes.key - provided by DotNet team
  5. service.mode - provided by DotNet team
  6. wsdl.url - provided by DotNet team
  7. json.key - provided by DotNet team
  8. connection.timeout - set connection timeout
  9. connection.read.timeout - set connection read timeout

Methods

Store Pickup Service

com.ecosway.cosway.cpsjson.service.StorePickupService service = new com.ecosway.cosway.cpsjson.service.StorePickupService();

getOrderByStore (IGetOrderByStore)

com.ecosway.cosway.cpsjson.model.OrderByStoreResultBean resultBean = service.getOrderByStore(String stockistCode)
  • com.ecosway.cosway.cpsjson.model.OrderByStoreResultBean
  • errCode - String
  • errMessage - String
  • stockistCode - String
  • totalRec - String
  • orderBeanList - List<OrderResultBean>
  • boId - String
  • invDate - Date
  • invNo - String

getOrderByInvoice (IGetOrderByInvNo)

com.ecosway.cosway.cpsjson.model.OrderByInvNoResultBean resultBean = service.getOrderByInvoice(String invNo)
  • 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
.ITEM_STATUS_CODE_NEW_RECORD
  • 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

updateOrderByInvoice (IUpdateOrderByInvNo)

com.ecosway.cosway.cpsjson.model.ResultBean resultBean = service.updateOrderByInvoice(UpdateOrderByInvoiceBean bean)
  • com.ecosway.cosway.cpsjson.model.UpdateOrderByInvoiceBean
  • invNo - String
  • statusCode - String
  • receiveNoteNo - String
  • com.ecosway.cosway.cpsjson.model.ResultBean
  • errCode - String
  • errMessage - String

Taiwan Activation

com.ecosway.cosway.cpsjson.service.TaiwanRegistrationService service = new com.ecosway.cosway.cpsjson.service.TaiwanRegistrationService();

sendActivationList

com.ecosway.cosway.cpsjson.service.ResultBean resultBean = service.sendActivationList(TWActivationBean activationBean)
  • 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

Updated by Soh Keong about 3 years ago · 6 revisions