Type.registerNamespace('B2CPrint.G1.WebSite.ShoppingCart');
B2CPrint.G1.WebSite.ShoppingCart.Method=function() {
B2CPrint.G1.WebSite.ShoppingCart.Method.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
B2CPrint.G1.WebSite.ShoppingCart.Method.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.get_path();},
Add:function(_ShoppingCartItem,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Add',false,{_ShoppingCartItem:_ShoppingCartItem},succeededCallback,failedCallback,userContext); },
AddPhotoGallery:function(_ID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddPhotoGallery',false,{_ID:_ID},succeededCallback,failedCallback,userContext); },
Remove:function(index,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Remove',false,{index:index},succeededCallback,failedCallback,userContext); },
Charge:function(_ChargeData,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'Charge',false,{_ChargeData:_ChargeData},succeededCallback,failedCallback,userContext); },
ApplyCoupon:function(CouponCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ApplyCoupon',false,{CouponCode:CouponCode},succeededCallback,failedCallback,userContext); },
UpdateStateCode:function(StateCode,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateStateCode',false,{StateCode:StateCode},succeededCallback,failedCallback,userContext); }}
B2CPrint.G1.WebSite.ShoppingCart.Method.registerClass('B2CPrint.G1.WebSite.ShoppingCart.Method',Sys.Net.WebServiceProxy);
B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance = new B2CPrint.G1.WebSite.ShoppingCart.Method();
B2CPrint.G1.WebSite.ShoppingCart.Method.set_path = function(value) { B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.set_path(value); }
B2CPrint.G1.WebSite.ShoppingCart.Method.get_path = function() { return B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.get_path(); }
B2CPrint.G1.WebSite.ShoppingCart.Method.set_timeout = function(value) { B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.set_timeout(value); }
B2CPrint.G1.WebSite.ShoppingCart.Method.get_timeout = function() { return B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.get_timeout(); }
B2CPrint.G1.WebSite.ShoppingCart.Method.set_defaultUserContext = function(value) { B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.set_defaultUserContext(value); }
B2CPrint.G1.WebSite.ShoppingCart.Method.get_defaultUserContext = function() { return B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.get_defaultUserContext(); }
B2CPrint.G1.WebSite.ShoppingCart.Method.set_defaultSucceededCallback = function(value) { B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.set_defaultSucceededCallback(value); }
B2CPrint.G1.WebSite.ShoppingCart.Method.get_defaultSucceededCallback = function() { return B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.get_defaultSucceededCallback(); }
B2CPrint.G1.WebSite.ShoppingCart.Method.set_defaultFailedCallback = function(value) { B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.set_defaultFailedCallback(value); }
B2CPrint.G1.WebSite.ShoppingCart.Method.get_defaultFailedCallback = function() { return B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.get_defaultFailedCallback(); }
B2CPrint.G1.WebSite.ShoppingCart.Method.set_path("/ShoppingCart/Method.asmx");
B2CPrint.G1.WebSite.ShoppingCart.Method.Add= function(_ShoppingCartItem,onSuccess,onFailed,userContext) {B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.Add(_ShoppingCartItem,onSuccess,onFailed,userContext); }
B2CPrint.G1.WebSite.ShoppingCart.Method.AddPhotoGallery= function(_ID,onSuccess,onFailed,userContext) {B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.AddPhotoGallery(_ID,onSuccess,onFailed,userContext); }
B2CPrint.G1.WebSite.ShoppingCart.Method.Remove= function(index,onSuccess,onFailed,userContext) {B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.Remove(index,onSuccess,onFailed,userContext); }
B2CPrint.G1.WebSite.ShoppingCart.Method.Charge= function(_ChargeData,onSuccess,onFailed,userContext) {B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.Charge(_ChargeData,onSuccess,onFailed,userContext); }
B2CPrint.G1.WebSite.ShoppingCart.Method.ApplyCoupon= function(CouponCode,onSuccess,onFailed,userContext) {B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.ApplyCoupon(CouponCode,onSuccess,onFailed,userContext); }
B2CPrint.G1.WebSite.ShoppingCart.Method.UpdateStateCode= function(StateCode,onSuccess,onFailed,userContext) {B2CPrint.G1.WebSite.ShoppingCart.Method._staticInstance.UpdateStateCode(StateCode,onSuccess,onFailed,userContext); }
Type.registerNamespace('B2CPrint.G1');
if (typeof(B2CPrint.G1.ErrorType) === 'undefined') {
B2CPrint.G1.ErrorType = function() { throw Error.invalidOperation(); }
B2CPrint.G1.ErrorType.prototype = {UnhandledError: 1,ValidationError: 2}
B2CPrint.G1.ErrorType.registerEnum('B2CPrint.G1.ErrorType', true);
}

