Type.registerNamespace('Viseca.B2C.UI.Web.Code');
Viseca.B2C.UI.Web.Code.CardFinderService=function() {
Viseca.B2C.UI.Web.Code.CardFinderService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Viseca.B2C.UI.Web.Code.CardFinderService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Viseca.B2C.UI.Web.Code.CardFinderService._staticInstance.get_path();},
HelloWorld: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(), 'HelloWorld',false,{},succeededCallback,failedCallback,userContext); },
GetCardProposal:function(age,annuity,monthlySales,interestId,succeededCallback, failedCallback, userContext) {
/// <param name="age" type="Number">System.Int32</param>
/// <param name="annuity" type="Number">System.Double</param>
/// <param name="monthlySales" type="Number">System.Double</param>
/// <param name="interestId" 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(), 'GetCardProposal',false,{age:age,annuity:annuity,monthlySales:monthlySales,interestId:interestId},succeededCallback,failedCallback,userContext); },
GetCardDetails:function(cardId,succeededCallback, failedCallback, userContext) {
/// <param name="cardId" type="Number">System.Int64</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(), 'GetCardDetails',false,{cardId:cardId},succeededCallback,failedCallback,userContext); }}
Viseca.B2C.UI.Web.Code.CardFinderService.registerClass('Viseca.B2C.UI.Web.Code.CardFinderService',Sys.Net.WebServiceProxy);
Viseca.B2C.UI.Web.Code.CardFinderService._staticInstance = new Viseca.B2C.UI.Web.Code.CardFinderService();
Viseca.B2C.UI.Web.Code.CardFinderService.set_path = function(value) {
Viseca.B2C.UI.Web.Code.CardFinderService._staticInstance.set_path(value); }
Viseca.B2C.UI.Web.Code.CardFinderService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Viseca.B2C.UI.Web.Code.CardFinderService._staticInstance.get_path();}
Viseca.B2C.UI.Web.Code.CardFinderService.set_timeout = function(value) {
Viseca.B2C.UI.Web.Code.CardFinderService._staticInstance.set_timeout(value); }
Viseca.B2C.UI.Web.Code.CardFinderService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Viseca.B2C.UI.Web.Code.CardFinderService._staticInstance.get_timeout(); }
Viseca.B2C.UI.Web.Code.CardFinderService.set_defaultUserContext = function(value) { 
Viseca.B2C.UI.Web.Code.CardFinderService._staticInstance.set_defaultUserContext(value); }
Viseca.B2C.UI.Web.Code.CardFinderService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Viseca.B2C.UI.Web.Code.CardFinderService._staticInstance.get_defaultUserContext(); }
Viseca.B2C.UI.Web.Code.CardFinderService.set_defaultSucceededCallback = function(value) { 
 Viseca.B2C.UI.Web.Code.CardFinderService._staticInstance.set_defaultSucceededCallback(value); }
Viseca.B2C.UI.Web.Code.CardFinderService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Viseca.B2C.UI.Web.Code.CardFinderService._staticInstance.get_defaultSucceededCallback(); }
Viseca.B2C.UI.Web.Code.CardFinderService.set_defaultFailedCallback = function(value) { 
Viseca.B2C.UI.Web.Code.CardFinderService._staticInstance.set_defaultFailedCallback(value); }
Viseca.B2C.UI.Web.Code.CardFinderService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Viseca.B2C.UI.Web.Code.CardFinderService._staticInstance.get_defaultFailedCallback(); }
Viseca.B2C.UI.Web.Code.CardFinderService.set_path("/Code/CardFinderService.asmx");
Viseca.B2C.UI.Web.Code.CardFinderService.HelloWorld= 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>
Viseca.B2C.UI.Web.Code.CardFinderService._staticInstance.HelloWorld(onSuccess,onFailed,userContext); }
Viseca.B2C.UI.Web.Code.CardFinderService.GetCardProposal= function(age,annuity,monthlySales,interestId,onSuccess,onFailed,userContext) {
/// <param name="age" type="Number">System.Int32</param>
/// <param name="annuity" type="Number">System.Double</param>
/// <param name="monthlySales" type="Number">System.Double</param>
/// <param name="interestId" 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>
Viseca.B2C.UI.Web.Code.CardFinderService._staticInstance.GetCardProposal(age,annuity,monthlySales,interestId,onSuccess,onFailed,userContext); }
Viseca.B2C.UI.Web.Code.CardFinderService.GetCardDetails= function(cardId,onSuccess,onFailed,userContext) {
/// <param name="cardId" type="Number">System.Int64</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>
Viseca.B2C.UI.Web.Code.CardFinderService._staticInstance.GetCardDetails(cardId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(Viseca.B2C.UI.Web.Code.CardFinderContext) === 'undefined') {
Viseca.B2C.UI.Web.Code.CardFinderContext=gtc("Viseca.B2C.UI.Web.Code.CardFinderContext");
Viseca.B2C.UI.Web.Code.CardFinderContext.registerClass('Viseca.B2C.UI.Web.Code.CardFinderContext');
}
if (typeof(Viseca.B2C.UI.Web.Code.CardInfo) === 'undefined') {
Viseca.B2C.UI.Web.Code.CardInfo=gtc("Viseca.B2C.UI.Web.Code.CardInfo");
Viseca.B2C.UI.Web.Code.CardInfo.registerClass('Viseca.B2C.UI.Web.Code.CardInfo');
}
if (typeof(Viseca.B2C.UI.Web.Code.CardProposal) === 'undefined') {
Viseca.B2C.UI.Web.Code.CardProposal=gtc("Viseca.B2C.UI.Web.Code.CardProposal");
Viseca.B2C.UI.Web.Code.CardProposal.registerClass('Viseca.B2C.UI.Web.Code.CardProposal');
}
