Project

General

Profile

Actions

Programming Guide » History » Revision 6

« Previous | Revision 6/15 (diff) | Next »
chin-yeh, 10/25/2011 05:57 PM


Programming Guide

Demo Application:

http://192.168.2.68:8080/sp-test/index.html

Below is the list of libraries needed:
  • sp-stub - download the latest version from Nexus
  • sp-client - download the latest version from Nexus

Steps-By-Steps

Query Utilization Status

This API checks if the member has already purchased the special bundle set.

Steps:
  1. This API requires the parameters:
    • memberId
    • countryCode
  2. Pass the required parameters into the method, queryUtilizationStatus
  3. If the returned status is:
    • 0000
      1. then proceed to check value, isUtilized, true means has been utilized
    • any other codes
      1. do not proceed as it could be system error or programming error

Utilize the Special Bundle Set

This API informs SP web services when the member has purchased the special bundle set.

Steps:
  1. Query the utilization status of the special bundle set
    1. if not yet utilized
      1. pass the following parameters to the method, flagSpecialSetUtilization:
        • dbConnection
        • orderId
        • countryCode
        • memberId
        • trxDate
      2. if the returned status is 0000, it has been successfully processed else failed to process.
    2. if utilized, inform the member that he/she has purchased the bundle set.

Return or Exchange Special Bundle Set

Invokes this API when the member return or exchange the special bundle set.

Steps:
  1. there's no need to query the utilization status
  2. pass the following parameters to the method, unflagSpecialSetUtilization:
    • dbConnection
    • orderId
    • countryCode
    • memberId
    • trxDate
  3. if the returned status is 0000, it has been successfully processed else failed to process.

API References

See API References

Updated by chin-yeh about 13 years ago · 6 revisions