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