tangocard.sdk
Class TangoCardServiceApi

java.lang.Object
  extended by tangocard.sdk.TangoCardServiceApi

public final class TangoCardServiceApi
extends java.lang.Object


Method Summary
static boolean GetAvailableBalance(TangoCardServiceApiEnum enumTangoCardServiceApi, java.lang.String username, java.lang.String password, GetAvailableBalanceResponse response)
          Gets the available balance.
static java.lang.String GetVersion()
          Get SDK Version from config file.
static boolean PurchaseCard(TangoCardServiceApiEnum enumTangoCardServiceApi, java.lang.String username, java.lang.String password, java.lang.String cardSku, int cardValue, boolean tcSend, java.lang.String recipientName, java.lang.String recipientEmail, java.lang.String giftMessage, java.lang.String giftFrom, java.lang.String companyIdentifier, PurchaseCardResponse response)
          Purchase card.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

GetVersion

public static java.lang.String GetVersion()
Get SDK Version from config file.

Returns:
String SDK version

GetAvailableBalance

public static boolean GetAvailableBalance(TangoCardServiceApiEnum enumTangoCardServiceApi,
                                          java.lang.String username,
                                          java.lang.String password,
                                          GetAvailableBalanceResponse response)
                                   throws java.lang.Exception
Gets the available balance.

Parameters:
enumTangoCardServiceApi - the enum Tango Card service api
username - The username to access User's registered Tango Card account
password - The password to access User's registered Tango Card account
response - the response
Returns:
true, if successful
Throws:
java.lang.Exception - the exception

PurchaseCard

public static boolean PurchaseCard(TangoCardServiceApiEnum enumTangoCardServiceApi,
                                   java.lang.String username,
                                   java.lang.String password,
                                   java.lang.String cardSku,
                                   int cardValue,
                                   boolean tcSend,
                                   java.lang.String recipientName,
                                   java.lang.String recipientEmail,
                                   java.lang.String giftMessage,
                                   java.lang.String giftFrom,
                                   java.lang.String companyIdentifier,
                                   PurchaseCardResponse response)
                            throws java.lang.Exception
Purchase card.

Parameters:
enumTangoCardServiceApi - the enum tango card service api
username - The username to access User's registered Tango Card account
password - The password to access User's registered Tango Card account
cardSku - The card sku
cardValue - The card value
tcSend - Determines if Tango Card Service will send an email with gift card information to recipient.
recipientName - The recipient name
recipientEmail - The recipient email
giftMessage - The gift message
giftFrom - The gift from
companyIdentifier - The Company identifier for which Email Template to use when sending Gift Card.
response - The response
Returns:
true, if successful
Throws:
java.lang.Exception - the exception