Type.registerNamespace('selectmusic.services');
selectmusic.services.SelectMusicCartService=function() {
selectmusic.services.SelectMusicCartService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
selectmusic.services.SelectMusicCartService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return selectmusic.services.SelectMusicCartService._staticInstance.get_path();},
AddTrackToBasket:function(clientID,categoryID,trackId,itemType,succeededCallback, failedCallback, userContext) {
/// <param name="clientID" type="Number">System.Int32</param>
/// <param name="categoryID" type="Number">System.Int32</param>
/// <param name="trackId" type="Number">System.Int32</param>
/// <param name="itemType" type="selectmusic.bll.ShoppingCartItem_ShoppingCartItemType">selectmusic.bll.ShoppingCartItem+ShoppingCartItemType</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'AddTrackToBasket',true,{clientID:clientID,categoryID:categoryID,trackId:trackId,itemType:itemType},succeededCallback,failedCallback,userContext); },
RemoveFromBasket:function(clientID,categoryID,trackId,itemType,succeededCallback, failedCallback, userContext) {
/// <param name="clientID" type="Number">System.Int32</param>
/// <param name="categoryID" type="Number">System.Int32</param>
/// <param name="trackId" type="Number">System.Int32</param>
/// <param name="itemType" type="selectmusic.bll.ShoppingCartItem_ShoppingCartItemType">selectmusic.bll.ShoppingCartItem+ShoppingCartItemType</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'RemoveFromBasket',false,{clientID:clientID,categoryID:categoryID,trackId:trackId,itemType:itemType},succeededCallback,failedCallback,userContext); },
ProcessPayment:function(paymentMethodType,mobileNumber,expiryDate,creditCardNo,ccv,miMoneyVoucherNumber,GiftVoucher,billAmount,succeededCallback, failedCallback, userContext) {
/// <param name="paymentMethodType" type="selectmusic.bll.PaymentMethod_PaymentMethodType">selectmusic.bll.PaymentMethod+PaymentMethodType</param>
/// <param name="mobileNumber" type="String">System.String</param>
/// <param name="expiryDate" type="Date">System.DateTime</param>
/// <param name="creditCardNo" type="String">System.String</param>
/// <param name="ccv" type="String">System.String</param>
/// <param name="miMoneyVoucherNumber" type="String">System.String</param>
/// <param name="GiftVoucher" type="String">System.String</param>
/// <param name="billAmount" type="Number">System.Decimal</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'ProcessPayment',false,{paymentMethodType:paymentMethodType,mobileNumber:mobileNumber,expiryDate:expiryDate,creditCardNo:creditCardNo,ccv:ccv,miMoneyVoucherNumber:miMoneyVoucherNumber,GiftVoucher:GiftVoucher,billAmount:billAmount},succeededCallback,failedCallback,userContext); },
GetCartTotal:function(drmType,itemID,succeededCallback, failedCallback, userContext) {
/// <param name="drmType" type="String">System.String</param>
/// <param name="itemID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetCartTotal',true,{drmType:drmType,itemID:itemID},succeededCallback,failedCallback,userContext); },
IsCookiesNotNull:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'IsCookiesNotNull',true,{},succeededCallback,failedCallback,userContext); }}
selectmusic.services.SelectMusicCartService.registerClass('selectmusic.services.SelectMusicCartService',Sys.Net.WebServiceProxy);
selectmusic.services.SelectMusicCartService._staticInstance = new selectmusic.services.SelectMusicCartService();
selectmusic.services.SelectMusicCartService.set_path = function(value) {
selectmusic.services.SelectMusicCartService._staticInstance.set_path(value); }
selectmusic.services.SelectMusicCartService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return selectmusic.services.SelectMusicCartService._staticInstance.get_path();}
selectmusic.services.SelectMusicCartService.set_timeout = function(value) {
selectmusic.services.SelectMusicCartService._staticInstance.set_timeout(value); }
selectmusic.services.SelectMusicCartService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return selectmusic.services.SelectMusicCartService._staticInstance.get_timeout(); }
selectmusic.services.SelectMusicCartService.set_defaultUserContext = function(value) { 
selectmusic.services.SelectMusicCartService._staticInstance.set_defaultUserContext(value); }
selectmusic.services.SelectMusicCartService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return selectmusic.services.SelectMusicCartService._staticInstance.get_defaultUserContext(); }
selectmusic.services.SelectMusicCartService.set_defaultSucceededCallback = function(value) { 
 selectmusic.services.SelectMusicCartService._staticInstance.set_defaultSucceededCallback(value); }
selectmusic.services.SelectMusicCartService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return selectmusic.services.SelectMusicCartService._staticInstance.get_defaultSucceededCallback(); }
selectmusic.services.SelectMusicCartService.set_defaultFailedCallback = function(value) { 
selectmusic.services.SelectMusicCartService._staticInstance.set_defaultFailedCallback(value); }
selectmusic.services.SelectMusicCartService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return selectmusic.services.SelectMusicCartService._staticInstance.get_defaultFailedCallback(); }
selectmusic.services.SelectMusicCartService.set_path("/Services/SelectMusicCartService.asmx");
selectmusic.services.SelectMusicCartService.AddTrackToBasket= function(clientID,categoryID,trackId,itemType,onSuccess,onFailed,userContext) {
/// <param name="clientID" type="Number">System.Int32</param>
/// <param name="categoryID" type="Number">System.Int32</param>
/// <param name="trackId" type="Number">System.Int32</param>
/// <param name="itemType" type="selectmusic.bll.ShoppingCartItem_ShoppingCartItemType">selectmusic.bll.ShoppingCartItem+ShoppingCartItemType</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
selectmusic.services.SelectMusicCartService._staticInstance.AddTrackToBasket(clientID,categoryID,trackId,itemType,onSuccess,onFailed,userContext); }
selectmusic.services.SelectMusicCartService.RemoveFromBasket= function(clientID,categoryID,trackId,itemType,onSuccess,onFailed,userContext) {
/// <param name="clientID" type="Number">System.Int32</param>
/// <param name="categoryID" type="Number">System.Int32</param>
/// <param name="trackId" type="Number">System.Int32</param>
/// <param name="itemType" type="selectmusic.bll.ShoppingCartItem_ShoppingCartItemType">selectmusic.bll.ShoppingCartItem+ShoppingCartItemType</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
selectmusic.services.SelectMusicCartService._staticInstance.RemoveFromBasket(clientID,categoryID,trackId,itemType,onSuccess,onFailed,userContext); }
selectmusic.services.SelectMusicCartService.ProcessPayment= function(paymentMethodType,mobileNumber,expiryDate,creditCardNo,ccv,miMoneyVoucherNumber,GiftVoucher,billAmount,onSuccess,onFailed,userContext) {
/// <param name="paymentMethodType" type="selectmusic.bll.PaymentMethod_PaymentMethodType">selectmusic.bll.PaymentMethod+PaymentMethodType</param>
/// <param name="mobileNumber" type="String">System.String</param>
/// <param name="expiryDate" type="Date">System.DateTime</param>
/// <param name="creditCardNo" type="String">System.String</param>
/// <param name="ccv" type="String">System.String</param>
/// <param name="miMoneyVoucherNumber" type="String">System.String</param>
/// <param name="GiftVoucher" type="String">System.String</param>
/// <param name="billAmount" type="Number">System.Decimal</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
selectmusic.services.SelectMusicCartService._staticInstance.ProcessPayment(paymentMethodType,mobileNumber,expiryDate,creditCardNo,ccv,miMoneyVoucherNumber,GiftVoucher,billAmount,onSuccess,onFailed,userContext); }
selectmusic.services.SelectMusicCartService.GetCartTotal= function(drmType,itemID,onSuccess,onFailed,userContext) {
/// <param name="drmType" type="String">System.String</param>
/// <param name="itemID" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
selectmusic.services.SelectMusicCartService._staticInstance.GetCartTotal(drmType,itemID,onSuccess,onFailed,userContext); }
selectmusic.services.SelectMusicCartService.IsCookiesNotNull= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
selectmusic.services.SelectMusicCartService._staticInstance.IsCookiesNotNull(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('ExactPaymentInterface');
if (typeof(ExactPaymentInterface.Response) === 'undefined') {
ExactPaymentInterface.Response=gtc("ExactPaymentInterface.Response");
ExactPaymentInterface.Response.registerClass('ExactPaymentInterface.Response');
}
Type.registerNamespace('selectmusic.bll');
if (typeof(selectmusic.bll.ShoppingCartItemType) === 'undefined') {
selectmusic.bll.ShoppingCartItemType = function() { throw Error.invalidOperation(); }
selectmusic.bll.ShoppingCartItemType.prototype = {Track: 1,Album: 2}
selectmusic.bll.ShoppingCartItemType.registerEnum('selectmusic.bll.ShoppingCartItemType', true);
}
if (typeof(selectmusic.bll.PaymentMethodType) === 'undefined') {
selectmusic.bll.PaymentMethodType = function() { throw Error.invalidOperation(); }
selectmusic.bll.PaymentMethodType.prototype = {PhoneAccount: 1,CreditCard: 2,MiMoney: 5,GiftVoucher: 7}
selectmusic.bll.PaymentMethodType.registerEnum('selectmusic.bll.PaymentMethodType', true);
}

