PageSourceSearch

https://www.bankoftexas.com/_next/static/chunks/cb68c103.33c364ef9f2c41ca.js

js bankoftexas.com collected 2026-09-24 19:01:51 UTC 286,842 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[621],{74773:(t,n,i)=>{i.r(n),i.d(n,{Addresses:()=>j,AdminAddresses:()=>U,AdminUserGroups:()=>I,AdminUsers:()=>T,ApiClients:()=>P,ApprovalRules:()=>z,Auth:()=>w,BundleLineItems:()=>tp,BundleSubscriptionItems:()=>td,Bundles:()=>ti,Buyers:()=>V,Cart:()=>ts,Catalogs:()=>Y,Categories:()=>H,Certs:()=>tT,Configuration:()=>d,CostCenters:()=>N,CreditCards:()=>F,DeliveryConfigurations:()=>tw,EntitySynchronization:()=>tb,ErrorConfigs:()=>ty,ForgottenCredentials:()=>D,GroupOrders:()=>tf,ImpersonationConfigs:()=>G,Incrementors:()=>B,IntegrationEvents:()=>tS,InventoryIntegrations:()=>tA,InventoryRecords:()=>tn,LineItems:()=>tr,Locales:()=>R,Me:()=>tg,MessageSenders:()=>tC,OpenIdConnects:()=>k,OrderCloudError:()=>f,OrderReturns:()=>th,OrderSynchronization:()=>tP,Orders:()=>te,Payments:()=>tc,PriceSchedules:()=>Z,ProductCollections:()=>q,ProductFacets:()=>tt,ProductSynchronization:()=>tL,Products:()=>Q,PromotionIntegrations:()=>tD,Promotions:()=>to,SecurityProfiles:()=>L,SellerApprovalRules:()=>tu,Shipments:()=>ta,Specs:()=>$,SpendingAccounts:()=>M,SubscriptionIntegrations:()=>tG,SubscriptionItems:()=>tv,Subscriptions:()=>tm,SupplierAddresses:()=>X,SupplierUserGroups:()=>K,SupplierUsers:()=>W,Suppliers:()=>J,Tokens:()=>A,TrackingEvents:()=>tl,UserGroups:()=>x,UserInfo:()=>tk,Users:()=>_,Webhooks:()=>O,XpIndices:()=>E});var e,s,r=i(5068),o=i(82909).hp,c=i(65364),a=function(t,n){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])})(t,n)},h=function(){return(h=Object.assign||function(t){for(var n,i=1,e=arguments.length;i<e;i++)for(var s in n=arguments[i])Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s]);return t}).apply(this,arguments)};function u(t,n,i,e){return new(i||(i=Promise))(function(s,r){function o(t){try{a(e.next(t))}catch(t){r(t)}}function c(t){try{a(e.throw(t))}catch(t){r(t)}}function a(t){t.done?s(t.value):new i(function(n){n(t.value)}).then(o,c)}a((e=e.apply(t,n||[])).next())})}function p(t,n){var i,e,s,r,o={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return r={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function c(r){return function(c){var a=[r,c];if(i)throw TypeError("Generator is already executing.");for(;o;)try{if(i=1,e&&(s=2&a[0]?e.return:a[0]?e.throw||((s=e.return)&&s.call(e),0):e.next)&&!(s=s.call(e,a[1])).done)return s;switch(e=0,s&&(a=[2&a[0],s.value]),a[0]){case 0:case 1:s=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,e=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(s=(s=o.trys).length>0&&s[s.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!s||a[1]>s[0]&&a[1]<s[3])){o.label=a[1];break}if(6===a[0]&&o.label<s[1]){o.label=s[1],s=a;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(a);break}s[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],e=0}finally{i=s=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}var d=new(function(){function t(){this.defaultConfig={baseApiUrl:"https://api.ordercloud.io",apiVersion:"v1",timeoutInMilliseconds:6e4,clientID:null,cookieOptions:{samesite:"lax",secure:!1,domain:null,prefix:"ordercloud",path:"/"}},this.config=JSON.parse(JSON.stringify(this.defaultConfig)),this.Set=this.Set.bind(this),this.Get=this.Get.bind(this)}return t.prototype.Set=function(t){this.config=h(h(h({},this.defaultConfig),this.config),t||{}),this.config.cookieOptions=h(h(h({},this.defaultConfig.cookieOptions),this.config.cookieOptions),(null==t?void 0:t.cookieOptions)||{})},t.prototype.Get=function(){return this.config},t}()),f=function(t){function n(){this.constructor=i}function i(n){var i,e,s,r=this,o=function(t){var n;try{var i=null==(n=null==t?void 0:t.response)?void 0:n.data;if(!i)return[];if("object"==typeof i)return i.Errors;if("string"==typeof i)return i&&65279===i.charCodeAt(0)&&(i=i.substring(1)),JSON.parse(i).Errors;return i}catch(t){return[]}}(n),c=null==o?void 0:o[0];return(r=t.call(this,(i=n,(e=c)?"NotFound"===e.ErrorCode?"".concat(e.Data.ObjectType," ").concat(e.Data.ObjectID," not found"):e.Message:i.response.statusText))||this).isOrderCloudError=!0,r.errors=o,r.name="OrderCloudError",r.errorCode=(s=c)?s.ErrorCode:"OrderCloudError",r.status=n.response.status,r.statusText=n.response.statusText,r.response=n.response,r.request=n.request,r}return a(i,t),i.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n),i}(Error),v=new(function(){function t(){}return t.prototype.write=function(t,n,i){void 0===n&&(n=void 0),document.cookie=this.buildCookieString(t,n,i)},t.prototype.read=function(t){for(var n=document.cookie.split(";"),i=0;i<n.length;i++){var e=n[i].split("="),s=e[0],r=e[1];if(decodeURIComponent(s.trim().toLowerCase())===t.toLowerCase())return decodeURIComponent(r)}return""},t.prototype.buildCookieString=function(t,n,i){void 0===n&&(n=void 0),n?(e=new Date).setFullYear(e.getFullYear()+1):(e=new Date("Thu, 01 Jan 1970 00:00:00 GMT"),n="");var e,s=encodeURIComponent(t)+"="+encodeURIComponent(n),r=(s+=(i.domain?";domain="+i.domain:"")+(e?";expires="+e.toUTCString():"")+(i.secure?";secure":"")+(i.samesite?";samesite="+i.samesite:"")+(i.path?";path="+i.path:"")).length+1;return r>4096&&console.warn("Cookie ".concat(t," possibly not set or overflowed because it was too large! (").concat(r," > 4096 bytes)")),s},t}()),m=new(function(){function t(){this.get=this.get.bind(this),this.set=this.set.bind(this),this.remove=this.remove.bind(this)}return t.prototype.get=function(t){var n=d.Get().cookieOptions.prefix+t;return v.read(n)},t.prototype.set=function(t,n){var i=d.Get(),e=i.cookieOptions.prefix+t;
1v.write(e,n,i.cookieOptions)},t.prototype.remove=function(t){var n=d.Get(),i=n.cookieOptions.prefix+t;v.write(i,void 0,n.cookieOptions)},t}());function g(t){try{var n=t.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),i=decodeURIComponent(("undefined"!=typeof atob?atob(n):o.from(n,"base64").toString("binary")).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(i)}catch(t){throw Error("Invalid token")}}var l={serialize:function(t){var n=JSON.parse(JSON.stringify(t)),i=[];if(n.filters){var e=function(t){var n={};for(var i in t)!function t(n,i,e){if("[object Object]"===Object.prototype.toString.call(n))for(var s in n)t(n[s],"".concat(i,".").concat(s),e);else{if(null===n)throw Error('Null is not a valid filter prop. Use negative filter "!" combined with wildcard filter "*" to define a filter for the absence of a value. \nex: an order list call with { xp: { hasPaid: \'!*\' } } would return a list of orders where xp.hasPaid is null or undefined\nhttps://ordercloud.io/features/advanced-querying#filtering');e[i]=n}}(t[i],i,n);return n}(n.filters),s=function(t){var n=e[t];Array.isArray(n)?n.forEach(function(n){return i.push("".concat(t,"=").concat(encodeURIComponent(n)))}):("boolean"==typeof n||0===n||n)&&i.push("".concat(t,"=").concat(encodeURIComponent(n)))};for(var r in e)s(r);delete n.filters}for(var r in n){var o=n[r];o&&i.push("".concat(r,"=").concat(encodeURIComponent(o)))}return i.length?"".concat(i.join("&")):""}},w=new(function(){function t(){if(void 0===r.A)throw Error("Ordercloud is missing required peer dependency axios. This must be installed and loaded before the OrderCloud SDK");this.Anonymous=this.Anonymous.bind(this),this.ClientCredentials=this.ClientCredentials.bind(this),this.ElevatedLogin=this.ElevatedLogin.bind(this),this.Login=this.Login.bind(this),this.RefreshToken=this.RefreshToken.bind(this)}return t.prototype.Login=function(t,n,i,e,s,o){return void 0===o&&(o={}),u(this,void 0,void 0,function(){var c,a,u;return p(this,function(p){switch(p.label){case 0:if(e&&!Array.isArray(e))throw Error("scope must be a string array");if(null!=s&&!Array.isArray(s))throw Error("custom roles must be defined as a string array");return(null==e?void 0:e.length)&&!(null==s?void 0:s.length)?c=e.join(" "):!(null==e?void 0:e.length)&&(null==s?void 0:s.length)?c+=" ".concat(s.join(" ")):(null==e?void 0:e.length)&&(null==s?void 0:s.length)&&(c="".concat(e.join(" ")," ").concat(s.join(" "))),a={grant_type:"password",username:t,password:n,client_id:i,scope:c},u=d.Get(),[4,r.A.post("".concat(u.baseApiUrl,"/oauth/token"),l.serialize(a),h({headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},adapter:u.axiosAdapter},o)).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,p.sent().data]}})})},t.prototype.ElevatedLogin=function(t,n,i,e,s,o,c){return void 0===c&&(c={}),u(this,void 0,void 0,function(){var a,u,v;return p(this,function(p){switch(p.label){case 0:if(s&&!Array.isArray(s))throw Error("scope must be a string array");if(null!=o&&!Array.isArray(o))throw Error("custom roles must be defined as a string array");return(null==s?void 0:s.length)&&!(null==o?void 0:o.length)?a=s.join(" "):!(null==s?void 0:s.length)&&(null==o?void 0:o.length)?a+=" ".concat(o.join(" ")):(null==s?void 0:s.length)&&(null==o?void 0:o.length)&&(a="".concat(s.join(" ")," ").concat(o.join(" "))),u={grant_type:"password",scope:a,client_id:e,username:n,password:i,client_secret:t},v=d.Get(),[4,r.A.post("".concat(v.baseApiUrl,"/oauth/token"),l.serialize(u),h({headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},adapter:v.axiosAdapter},c)).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,p.sent().data]}})})},t.prototype.ClientCredentials=function(t,n,i,e,s){return void 0===s&&(s={}),u(this,void 0,void 0,function(){var o,c,a;return p(this,function(u){switch(u.label){case 0:if(i&&!Array.isArray(i))throw Error("scope must be a string array");if(null!=e&&!Array.isArray(e))throw Error("custom roles must be defined as a string array");return(null==i?void 0:i.length)&&!(null==e?void 0:e.length)?o=i.join(" "):!(null==i?void 0:i.length)&&(null==e?void 0:e.length)?o+=" ".concat(e.join(" ")):(null==i?void 0:i.length)&&(null==e?void 0:e.length)&&(o="".concat(i.join(" ")," ").concat(e.join(" "))),c={grant_type:"client_credentials",scope:o,client_id:n,client_secret:t},a=d.Get(),[4,r.A.post("".concat(a.baseApiUrl,"/oauth/token"),l.serialize(c),h({headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},adapter:a.axiosAdapter},s)).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,u.sent().data]}})})},t.prototype.RefreshToken=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e,s;return p(this,function(o){switch(o.label){case 0:return e={grant_type:"refresh_token",client_id:n,refresh_token:t},s=d.Get(),[4,r.A.post("".concat(s.baseApiUrl,"/oauth/token"),l.serialize(e),h({headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},adapter:s.axiosAdapter},i)).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent().data]}})})},t.prototype.Anonymous=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s,o,c;return p(this,function(a){switch(a.label){case 0:if(n&&!Array.isArray(n))throw Error("scope must be a string array");if(null!=i&&!Array.isArray(i))throw Error("custom roles must be defined as a string array");return(null==n?void 0:n.length)&&!(null==i?void 0:i.length)?s=n.join(" "):!(null==n?void 0:n.length)&&(null==i?void 0:i.length)?s+=" ".concat(i.join(" ")):(null==n?void 0:n.length)&&(null==i?void 0:i.length)&&(s="".concat(n.join(" ")," ").concat(i.join(" "))),o={grant_type:"client_credentials",client_id:t,scope:s},e.anonuserid&&(o.anonuserid=e.anonuserid,delete e.anonuserid),c=d.Get(),[4,r.A.post("".concat(c.baseApiUrl,"/oauth/token"),l.serialize(o),h({headers:{"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"},adapter:c.axiosAdapter},e)).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,a.sent().data]}})})},t}()),b=void 0!==c&&!!(null==(e=null==c?void 0:c.versions)?void 0:e.node),y=void 0!==c&&(null==(s=null==c?void 0:c.env)?void 0:s.NEXT_RUNTIME)&&!0,S=b||y,A=new(function(){function t(){this.accessTokenCookieName=".access-token",this.impersonationTokenCookieName=".impersonation-token",this.refreshTokenCookieName=".refresh-token",this.identityTokenCookieName=".identity-token",this.identityProvi
1derAccessTokenCookieName=".idp-access-token",this.accessToken=null,this.impersonationToken=null,this.refreshToken=null,this.identityToken=null,this.identityProviderAccessToken=null,this.GetAccessToken=this.GetAccessToken.bind(this),this.GetImpersonationToken=this.GetImpersonationToken.bind(this),this.GetRefreshToken=this.GetRefreshToken.bind(this),this.RemoveAccessToken=this.RemoveAccessToken.bind(this),this.RemoveImpersonationToken=this.RemoveImpersonationToken.bind(this),this.SetAccessToken=this.SetAccessToken.bind(this),this.RemoveRefreshToken=this.RemoveRefreshToken.bind(this),this.SetImpersonationToken=this.SetImpersonationToken.bind(this),this.SetRefreshToken=this.SetRefreshToken.bind(this),this.RemoveIdentityToken=this.RemoveIdentityToken.bind(this),this.GetIdentityToken=this.GetIdentityToken.bind(this),this.SetIdentityToken=this.SetIdentityToken.bind(this),this._isTokenExpired=this._isTokenExpired.bind(this),this._tryRefreshToken=this._tryRefreshToken.bind(this)}return t.prototype.GetAccessToken=function(){return S?this.accessToken:m.get(this.accessTokenCookieName)},t.prototype.SetAccessToken=function(t){g(t),S?this.accessToken=t:m.set(this.accessTokenCookieName,t)},t.prototype.RemoveAccessToken=function(){S?this.accessToken="":m.remove(this.accessTokenCookieName)},t.prototype.GetImpersonationToken=function(){return S?this.impersonationToken:m.get(this.impersonationTokenCookieName)},t.prototype.SetImpersonationToken=function(t){g(t),S?this.impersonationToken=t:m.set(this.impersonationTokenCookieName,t)},t.prototype.RemoveImpersonationToken=function(){S?this.impersonationToken=null:m.remove(this.impersonationTokenCookieName)},t.prototype.GetRefreshToken=function(){return S?this.refreshToken:m.get(this.refreshTokenCookieName)},t.prototype.SetRefreshToken=function(t){S?this.refreshToken=t:m.set(this.refreshTokenCookieName,t)},t.prototype.RemoveRefreshToken=function(){S?this.refreshToken=null:m.remove(this.refreshTokenCookieName)},t.prototype.GetIdentityToken=function(){return S?this.identityToken:m.get(this.identityTokenCookieName)},t.prototype.SetIdentityToken=function(t){S?this.identityToken=t:m.set(this.identityTokenCookieName,t)},t.prototype.RemoveIdentityToken=function(){S?this.identityToken=null:m.remove(this.identityTokenCookieName)},t.prototype.GetIdpAccessToken=function(){return S?this.identityProviderAccessToken:m.get(this.identityProviderAccessTokenCookieName)},t.prototype.SetIdpAccessToken=function(t){S?this.identityProviderAccessToken=t:m.set(this.identityProviderAccessTokenCookieName,t)},t.prototype.RemoveIdpAccessToken=function(){S?this.identityProviderAccessToken=null:m.remove(this.identityProviderAccessTokenCookieName)},t.prototype.GetValidToken=function(t){return u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:if(n=t||this.GetAccessToken(),!this._isTokenExpired(n))return[3,2];return[4,this._tryRefreshToken(n)];case 1:n=i.sent(),i.label=2;case 2:return[2,Promise.resolve(n||"")]}})})},t.prototype._isTokenExpired=function(t){if(!t)return!0;var n=g(t),i=Date.now()/1e3;return n.exp<i-10},t.prototype._tryRefreshToken=function(t){return u(this,void 0,void 0,function(){var n,i,e,s;return p(this,function(r){switch(r.label){case 0:if(!(n=this.GetRefreshToken())||(i=d.Get(),!t&&!i.clientID))return[2,t||""];if(t&&(e=g(t).cid),i.clientID&&(e=i.clientID),!e)return[2,""];if(!e)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,w.RefreshToken(n,e)];
1case 2:return s=r.sent().access_token,this.SetAccessToken(s),[2,s];case 3:return r.sent(),[2,""];case 4:return[2]}})})},t}()),C=new(function(){function t(){var t=this;if(this.get=function(n,i){return u(t,void 0,void 0,function(){return p(this,function(t){switch(t.label){case 0:return[4,this.makeApiCall("get",n,i)];case 1:return[2,t.sent()]}})})},this.post=function(n,i){return u(t,void 0,void 0,function(){return p(this,function(t){switch(t.label){case 0:return[4,this.makeApiCall("post",n,i)];case 1:return[2,t.sent()]}})})},this.put=function(n,i){return u(t,void 0,void 0,function(){return p(this,function(t){switch(t.label){case 0:return[4,this.makeApiCall("put",n,i)];case 1:return[2,t.sent()]}})})},this.patch=function(n,i){return u(t,void 0,void 0,function(){return p(this,function(t){switch(t.label){case 0:return[4,this.makeApiCall("patch",n,i)];case 1:return[2,t.sent()]}})})},this.delete=function(n,i){return u(t,void 0,void 0,function(){return p(this,function(t){switch(t.label){case 0:return[4,this.makeApiCall("delete",n,i)];case 1:return[2,t.sent()]}})})},void 0===r.A)throw Error("Missing required peer dependency axios. This must be installed and loaded before the OrderCloud SDK");this.get=this.get.bind(this),this.put=this.put.bind(this),this.post=this.post.bind(this),this.patch=this.patch.bind(this),this.delete=this.delete.bind(this),this._resolveToken=this._resolveToken.bind(this),this._buildRequestConfig=this._buildRequestConfig.bind(this),this._addTokenToConfig=this._addTokenToConfig.bind(this)}return t.prototype.makeApiCall=function(t,n,i){return u(this,void 0,void 0,function(){var e,s,o;return p(this,function(c){switch(c.label){case 0:return[4,this._buildRequestConfig(i)];case 1:if(e=c.sent(),s=n.includes("oauth/")?"".concat(d.Get().baseApiUrl,"/").concat(n):"".concat(d.Get().baseApiUrl,"/").concat(d.Get().apiVersion).concat(n),"put"!==t&&"post"!==t&&"patch"!==t)return[3,3];return o=e.data,delete e.data,[4,r.A[t](s,o,e)];case 2:case 4:return[2,c.sent().data];case 3:return[4,r.A[t](s,e)]}})})},t.prototype._addTokenToConfig=function(t){return u(this,void 0,void 0,function(){var n,i;return p(this,function(e){switch(e.label){case 0:return n=this._resolveToken(t),[4,A.GetValidToken(n)];case 1:return i=e.sent(),t.headers||(t.headers={}),t.headers.Authorization="Bearer ".concat(i),[2,t]}})})},t.prototype._resolveToken=function(t){var n;return n=t.accessToken?t.accessToken:t.impersonating?A.GetImpersonationToken():A.GetAccessToken(),delete t.accessToken,delete t.impersonating,n},t.prototype._buildRequestConfig=function(t){var n=d.Get(),i=h(h({},t),{paramsSerializer:l,adapter:n.axiosAdapter,timeout:n.timeoutInMilliseconds,headers:{"Content-Type":"application/json"}});return this._addTokenToConfig(i)},t}()),P=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.ListSecrets=this.ListSecrets.bind(this),this.CreateSecret=this.CreateSecret.bind(this),this.GetSecret=this.GetSecret.bind(this),this.DeleteSecret=this.DeleteSecret.bind(this),this.PatchSecret=this.PatchSecret.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this),this.DeleteBuyerAssignment=this.DeleteBuyerAssignment.bind(this),this.DeleteSupplierAssignment=this.DeleteSupplierAssignment.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/apiclients",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/apiclients",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/apiclients/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/apiclients/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/apiclients/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/apiclients/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListSecrets=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/apiclients/".concat(t,"/secrets"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.CreateSecret=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/apiclients/".concat(t,"/secrets"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.GetSecret=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/apiclients/".concat(t,"/secrets/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteSecret=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/apiclients/".concat(t,"/secrets/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.PatchSecret=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/apiclients/".concat(t,"/secrets/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListAssignments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/apiclients/assignments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveAssignment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/apiclients/assignments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.DeleteBuyerAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/buyers/".concat(n,"/ApiClients/Assignments/").concat(t),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteSupplierAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/suppliers/".concat(n,"/ApiClients/Assignments/").concat(t),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),L=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/securityprofiles",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/securityprofiles",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/securityprofiles/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/securityprofiles/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/securityprofiles/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/securityprofiles/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAssignment=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/securityprofiles/".concat(t,"/assignments"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListAssignments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/securityprofiles/assignments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveAssignment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/securityprofiles/assignments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),D=new(function(){function t(){this.impersonating=!1,this.SendOneTimePassword=this.SendOneTimePassword.bind(this),this.SendVerificationCode=this.SendVerificationCode.bind(this),this.ResetPasswordByVerificationCode=this.ResetPasswordByVerificationCode.bind(this),this.RetrieveUsername=this.RetrieveUsername.bind(this)}return t.prototype.SendOneTimePassword=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/password/onetimepassword",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SendVerificationCode=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/password/reset",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.ResetPasswordByVerificationCode=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/password/reset/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.RetrieveUsername=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/username/retrieve",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),G=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/impersonationconfig",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/impersonationconfig",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/impersonationconfig/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.i
1mpersonating,this.impersonating=!1,[4,C.put("/impersonationconfig/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/impersonationconfig/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/impersonationconfig/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),k=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/openidconnects",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/openidconnects",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/openidconnects/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/openidconnects/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/openidconnects/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/openidconnects/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),T=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.RevokeUserTokens=this.RevokeUserTokens.bind(this),this.UnlockUserAccount=this.UnlockUserAccount.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/adminusers",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/adminusers",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/adminusers/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/adminusers/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/adminusers/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/adminusers/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.RevokeUserTokens=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/adminusers/".concat(t,"/tokens"),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.UnlockUserAccount=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/adminusers/".concat(t,"/unlock"),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),I=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteUserAssignment=this.DeleteUserAssignment.bind(this),this.ListUserAssignments=this.ListUserAssignments.bind(this),this.SaveUserAssignment=this.SaveUserAssignment.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/usergroups",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/usergroups",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/usergroups/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/usergroups/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/usergroups/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/usergroups/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteUserAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/usergroups/".concat(t,"/assignments/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListUserAssignments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/usergroups/assignments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveUserAssignment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/usergroups/assignments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),U=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/addresses",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/addresses",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/addresses/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/addresses/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/addresses/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/addresses/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),B=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/incrementors",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/incrementors",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/incrementors/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/incrementors/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/incrementors/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/incrementors/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),R=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/locales",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.la
1bel){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/locales",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/locales/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/locales/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/locales/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/locales/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAssignment=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/locales/".concat(t,"/assignments"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListAssignments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/locales/assignments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveAssignment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/locales/assignments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),O=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/webhooks",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/webhooks",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/webhooks/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/webhooks/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/webhooks/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/webhooks/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),E=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Put=this.Put.bind(this),this.Delete=this.Delete.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/xpindices",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Put=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/xpindices",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Delete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/xpindices/".concat(t,"/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),V=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.ListBuyerSellers=this.ListBuyerSellers.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/buyers",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/buyers",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/buyers/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/buyers/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/buyers/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListBuyerSellers=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/sellers"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),_=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.GetAccessToken=this.GetAccessToken.bind(this),this.Move=this.Move.bind(this),this.RevokeUserTokens=this.RevokeUserTokens.bind(this),this.UnlockUserAccount=this.UnlockUserAccount.bind(this),this.ListAcrossBuyers=this.ListAcrossBuyers.bind(this)}return t.prototype.List=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/users"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/buyers/".concat(t,"/users"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/users/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/buyers/".concat(t,"/users/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/buyers/".concat(t,"/users/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/buyers/".concat(t,"/users/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.GetAccessToken=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.post("/buyers/".concat(t,"/users/").concat(n,"/accesstoken"),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Move=function(t,n,i,e,s){return void 0===e&&(e={}),void 0===s&&(s={}),u(this,void 0,void 0,function(){var r;return p(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,C.post("/buyers/".concat(t,"/users/").concat(n,"/moveto/").concat(i),h(h({},s),{impersonating:r,params:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.RevokeUserTokens=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/buyers/".concat(t,"/users/").concat(n,"/tokens"),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.UnlockUserAccount=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/buyers/".concat(t,"/users/").concat(n,"/unlock"),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListAcrossBuyers=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/buyerusers",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),x=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteUserAssignment=this.DeleteUserAssignment.bind(this),this.ListUserAssignments=this.ListUserAssignments.bind(this),this.SaveUserAssignment=this.SaveUserAssignment.bind(this)}return t.prototype.List=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/usergroups"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/buyers/".concat(t,"/usergroups"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/usergroups/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/buyers/".concat(t,"/usergroups/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete(
1"/buyers/".concat(t,"/usergroups/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/buyers/".concat(t,"/usergroups/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteUserAssignment=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/buyers/".concat(t,"/usergroups/").concat(n,"/assignments/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListUserAssignments=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/usergroups/assignments"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveUserAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/buyers/".concat(t,"/usergroups/assignments"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),j=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/addresses"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/buyers/".concat(t,"/addresses"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/addresses/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/buyers/".concat(t,"/addresses/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/buyers/".concat(t,"/addresses/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/buyers/".concat(t,"/addresses/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteAssignment=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/buyers/".concat(t,"/addresses/").concat(n,"/assignments"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListAssignments=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/addresses/assignments"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/buyers/".concat(t,"/addresses/assignments"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),N=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/costcenters"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/buyers/".concat(t,"/costcenters"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/costcenters/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/buyers/".concat(t,"/costcenters/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/buyers/".concat(t,"/costcenters/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/buyers/".concat(t,"/costcenters/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteAssignment=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/buyers/".concat(t,"/costcenters/").concat(n,"/assignments"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListAssignments=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/costcenters/assignments"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/buyers/".concat(t,"/costcenters/assignments"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),F=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/creditcards"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/buyers/".concat(t,"/creditcards"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/creditcards/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/buyers/".concat(t,"/creditcards/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/buyers/".concat(t,"/creditcards/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/buyers/".concat(t,"/creditcards/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteAssignment=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/buyers/".concat(t,"/creditcards/").concat(n,"/assignments"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListAssignments=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/creditcards/assignments"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/buyers/".concat(t,"/creditcards/assignments"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),M=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/spendingaccounts"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/buyers/".concat(t,"/spendingaccounts"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/spendingaccounts/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/buyers/".concat(t,"/spendingaccounts/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/buyers/".concat(t,"/spendingaccounts/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/buyers/".concat(t,"/spendingaccounts/").concat(n),h(h({},e),
1{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteAssignment=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/buyers/".concat(t,"/spendingaccounts/").concat(n,"/assignments"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListAssignments=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/spendingaccounts/assignments"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/buyers/".concat(t,"/spendingaccounts/assignments"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),z=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/approvalrules"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/buyers/".concat(t,"/approvalrules"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/approvalrules/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/buyers/".concat(t,"/approvalrules/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/buyers/".concat(t,"/approvalrules/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/buyers/".concat(t,"/approvalrules/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),q=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Get=this.Get.bind(this),this.ListEntries=this.ListEntries.bind(this)}return t.prototype.List=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/productcollections"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/productcollections/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListEntries=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/buyers/".concat(t,"/productcollections/").concat(n,"/products"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),J=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.ListBuyers=this.ListBuyers.bind(this),this.SaveBuyer=this.SaveBuyer.bind(this),this.DeleteBuyer=this.DeleteBuyer.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/suppliers",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/suppliers",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/suppliers/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/suppliers/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/suppliers/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/suppliers/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListBuyers=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/suppliers/".concat(t,"/buyers"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveBuyer=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/suppliers/".concat(t,"/buyers/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteBuyer=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/suppliers/".concat(t,"/buyers/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),W=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.RevokeUserTokens=this.RevokeUserTokens.bind(this),this.UnlockUserAccount=this.UnlockUserAccount.bind(this)}return t.prototype.List=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/suppliers/".concat(t,"/users"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/suppliers/".concat(t,"/users"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/suppliers/".concat(t,"/users/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/suppliers/".concat(t,"/users/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/suppliers/".concat(t,"/users/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/suppliers/".concat(t,"/users/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.RevokeUserTokens=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/suppliers/".concat(t,"/users/").concat(n,"/tokens"),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.UnlockUserAccount=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/suppliers/".concat(t,"/users/").concat(n,"/unlock"),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),K=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteUserAssignment=this.DeleteUserAssignment.bind(this),this.ListUserAssignments=this.ListUserAssignments.bind(this),this.SaveUserAssignment=this.SaveUserAssignment.bind(this)}return t.prototype.List=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/suppliers/".concat(t,"/usergroups"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/suppliers/".concat(t,"/usergroups"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/suppliers/".concat(t,"/usergroups/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/suppliers/".concat(t,"/usergroups/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/suppliers/".concat(t,"/usergroups/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/suppliers/".concat(t,"/usergroups/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteUserAssignment=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/suppliers/".concat(t,"/usergroups/").concat(n,"/assignments/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListUserAssignments=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/suppliers/".concat(t,"/usergroups/assignments"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveUserAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 
10:return e=this.impersonating,this.impersonating=!1,[4,C.post("/suppliers/".concat(t,"/usergroups/assignments"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),X=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/suppliers/".concat(t,"/addresses"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/suppliers/".concat(t,"/addresses"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/suppliers/".concat(t,"/addresses/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/suppliers/".concat(t,"/addresses/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/suppliers/".concat(t,"/addresses/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/suppliers/".concat(t,"/addresses/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),Y=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.DeleteBundleAssignment=this.DeleteBundleAssignment.bind(this),this.DeleteProductAssignment=this.DeleteProductAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this),this.ListBundleAssignments=this.ListBundleAssignments.bind(this),this.SaveBundleAssignment=this.SaveBundleAssignment.bind(this),this.ListProductAssignments=this.ListProductAssignments.bind(this),this.SaveProductAssignment=this.SaveProductAssignment.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/catalogs",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/catalogs",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/catalogs/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/catalogs/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/catalogs/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/catalogs/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAssignment=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/catalogs/".concat(t,"/assignments"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteBundleAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/catalogs/".concat(t,"/bundleassignments/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteProductAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/catalogs/".concat(t,"/productassignments/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListAssignments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/catalogs/assignments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveAssignment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/catalogs/assignments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.ListBundleAssignments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/catalogs/bundleassignments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveBundleAssignment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/catalogs/bundleassignments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.ListProductAssignments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/catalogs/productassignments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveProductAssignment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/catalogs/productassignments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),H=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.DeleteBundleAssignment=this.DeleteBundleAssignment.bind(this),this.DeleteProductAssignment=this.DeleteProductAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this),this.ListBundleAssignments=this.ListBundleAssignments.bind(this),this.SaveBundleAssignment=this.SaveBundleAssignment.bind(this),this.ListProductAssignments=this.ListProductAssignments.bind(this),this.SaveProductAssignment=this.SaveProductAssignment.bind(this)}return t.prototype.List=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/catalogs/".concat(t,"/categories"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.post("/catalogs/".concat(t,"/categories"),h(h({},e),{data:n,impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Get=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/catalogs/".concat(t,"/categories/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,n,i,e,s){return void 0===e&&(e={}),void 0===s&&(s={}),u(this,void 0,void 0,function(){var r;return p(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,C.put("/catalogs/".concat(t,"/categories/").concat(n),h(h({},s),{data:i,impersonating:r,params:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.Delete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/catalogs/".concat(t,"/categories/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,n,i,e,s){return void 0===e&&(e={}),void 0===s&&(s={}),u(this,void 0,void 0,function(){var r;return p(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,C.patch("/catalogs/".concat(t,"/categories/").concat(n),h(h({},s),{data:i,impersonating:r,params:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.DeleteAssignment=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/catalogs/".concat(t,"/categories/").concat(n,"/assignments"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteBundleAssignment=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/catalogs/".concat(t,"/categories/").concat(n,"/bundleassignments/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteProductAssignment=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/catalogs/".concat(t,"/categories/").concat(n,"/productassignments/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListAssignments=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/catalogs/".concat(t,"/categories/assignments"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/catalogs/".concat(t,"/categories/assignments"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListBundleAssignments=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/catalogs/".concat(t,"/categories/bundleassignments"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveBundleAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/catalogs/".concat(t,"/categories/bundleassignments"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListProductAssignments=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/catalogs/".concat(t,"/categories/productassignments"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveProductAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/catalogs/".concat(t,"/categories/productassignments"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this
1.impersonating=!0,this},t}()),Q=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListSpecs=this.ListSpecs.bind(this),this.ListSuppliers=this.ListSuppliers.bind(this),this.SaveSupplier=this.SaveSupplier.bind(this),this.RemoveSupplier=this.RemoveSupplier.bind(this),this.ListVariants=this.ListVariants.bind(this),this.GetVariant=this.GetVariant.bind(this),this.SaveVariant=this.SaveVariant.bind(this),this.PatchVariant=this.PatchVariant.bind(this),this.GenerateVariants=this.GenerateVariants.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/products",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/products",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/products/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/products/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/products/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/products/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAssignment=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/products/".concat(t,"/assignments/").concat(n),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListSpecs=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/products/".concat(t,"/specs"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListSuppliers=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/products/".concat(t,"/suppliers"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveSupplier=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/products/".concat(t,"/suppliers/").concat(n),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.RemoveSupplier=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/products/".concat(t,"/suppliers/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListVariants=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/products/".concat(t,"/variants"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.GetVariant=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/products/".concat(t,"/variants/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveVariant=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/products/".concat(t,"/variants/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.PatchVariant=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/products/".concat(t,"/variants/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.GenerateVariants=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.post("/products/".concat(t,"/variants/generate"),h(h({},e),{data:n,impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListAssignments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/products/assignments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveAssignment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/products/assignments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),Z=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.SavePriceBreak=this.SavePriceBreak.bind(this),this.DeletePriceBreak=this.DeletePriceBreak.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/priceschedules",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/priceschedules",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/priceschedules/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/priceschedules/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/priceschedules/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/priceschedules/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SavePriceBreak=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/priceschedules/".concat(t,"/PriceBreaks"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeletePriceBreak=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/priceschedules/".concat(t,"/PriceBreaks"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),$=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.ListOptions=this.ListOptions.bind(this),this.CreateOption=this.CreateOption.bind(this),this.GetOption=this.GetOption.bind(this),this.SaveOption=this.SaveOption.bind(this),this.DeleteOption=this.DeleteOption.bind(this),this.PatchOption=this.PatchOption.bind(this),this.DeleteProductAssignment=this.DeleteProductAssignment.bind(this),this.ListProductAssignments=this.ListProductAssignments.bind(this),this.SaveProductAssignment=this.SaveProductAssignment.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/specs",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/specs",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/specs/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/specs/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/specs/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/specs/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListOptions=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/specs/".concat(t,"/options"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.CreateOption=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/specs/".concat(t,"/options"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.GetOption=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/specs/".concat(t,"/options/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveOption=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/specs/".concat(t,"/options/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteOption=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/specs/".concat(t,"/options/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.PatchOption=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/specs/".concat(t,"/options/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteProductAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,fu
1nction(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/specs/".concat(t,"/productassignments/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListProductAssignments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/specs/productassignments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveProductAssignment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/specs/productassignments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tt=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/productfacets",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/productfacets",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/productfacets/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/productfacets/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/productfacets/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/productfacets/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tn=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this),this.ListVariant=this.ListVariant.bind(this),this.CreateVariant=this.CreateVariant.bind(this),this.GetVariant=this.GetVariant.bind(this),this.SaveVariant=this.SaveVariant.bind(this),this.DeleteVariant=this.DeleteVariant.bind(this),this.PatchVariant=this.PatchVariant.bind(this),this.DeleteVariantAssignment=this.DeleteVariantAssignment.bind(this),this.ListVariantAssignments=this.ListVariantAssignments.bind(this),this.SaveVariantAssignment=this.SaveVariantAssignment.bind(this)}return t.prototype.List=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/products/".concat(t,"/inventoryrecords"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/products/".concat(t,"/inventoryrecords"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/products/".concat(t,"/inventoryrecords/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/products/".concat(t,"/inventoryrecords/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/products/".concat(t,"/inventoryrecords/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/products/".concat(t,"/inventoryrecords/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteAssignment=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/products/".concat(t,"/inventoryrecords/").concat(n,"/assignments"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListAssignments=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/products/".concat(t,"/inventoryrecords/assignments"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/products/".concat(t,"/inventoryrecords/assignments"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListVariant=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/products/".concat(t,"/variants/").concat(n,"/inventoryrecords"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.CreateVariant=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.post("/products/".concat(t,"/variants/").concat(n,"/inventoryrecords"),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.GetVariant=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/products/".concat(t,"/variants/").concat(n,"/inventoryrecords/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.SaveVariant=function(t,n,i,e,s){return void 0===s&&(s={}),u(this,void 0,void 0,function(){var r;return p(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,C.put("/products/".concat(t,"/variants/").concat(n,"/inventoryrecords/").concat(i),h(h({},s),{data:e,impersonating:r})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.DeleteVariant=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/products/".concat(t,"/variants/").concat(n,"/inventoryrecords/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.PatchVariant=function(t,n,i,e,s){return void 0===s&&(s={}),u(this,void 0,void 0,function(){var r;return p(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,C.patch("/products/".concat(t,"/variants/").concat(n,"/inventoryrecords/").concat(i),h(h({},s),{data:e,impersonating:r})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.DeleteVariantAssignment=function(t,n,i,e,s){return void 0===e&&(e={}),void 0===s&&(s={}),u(this,void 0,void 0,function(){var r;return p(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,C.delete("/products/".concat(t,"/variants/").concat(n,"/inventoryrecords/").concat(i,"/assignments"),h(h({},s),{impersonating:r,params:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.ListVariantAssignments=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/products/".concat(t,"/variants/").concat(n,"/inventoryrecords/assignments"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.SaveVariantAssignment=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.post("/products/".concat(t,"/variants/").concat(n,"/inventoryrecords/assignments"),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),ti=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.DeleteProductAssignment=this.DeleteProductAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this),this.ListProductAssignments=this.ListProductAssignments.bind(this),this.SaveProductAssignment=this.SaveProductAssignment.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/bundles",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/bundles",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/bundles/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/bundles/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/bundles/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/bundles/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAssignment=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/bundles/".concat(t,"/assignments/").concat(n),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteProductAssignment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/bundles/".concat(t,"/productassignments/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListAssignments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/bundles/assignments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveAssignment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/bundles/assignments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.ListProductAssignments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function()
1{var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/bundles/productassignments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveProductAssignment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/bundles/productassignments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),te=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.ApplyPromotions=this.ApplyPromotions.bind(this),this.ListApprovals=this.ListApprovals.bind(this),this.Approve=this.Approve.bind(this),this.SetBillingAddress=this.SetBillingAddress.bind(this),this.PatchBillingAddress=this.PatchBillingAddress.bind(this),this.Cancel=this.Cancel.bind(this),this.Complete=this.Complete.bind(this),this.Decline=this.Decline.bind(this),this.ListEligibleApprovers=this.ListEligibleApprovers.bind(this),this.ListEligiblePromotions=this.ListEligiblePromotions.bind(this),this.Forward=this.Forward.bind(this),this.PatchFromUser=this.PatchFromUser.bind(this),this.ListPromotions=this.ListPromotions.bind(this),this.AddPromotion=this.AddPromotion.bind(this),this.RemovePromotion=this.RemovePromotion.bind(this),this.RefreshPromotions=this.RefreshPromotions.bind(this),this.Ship=this.Ship.bind(this),this.ListShipments=this.ListShipments.bind(this),this.SetShippingAddress=this.SetShippingAddress.bind(this),this.PatchShippingAddress=this.PatchShippingAddress.bind(this),this.Split=this.Split.bind(this),this.Submit=this.Submit.bind(this),this.Validate=this.Validate.bind(this)}return t.prototype.List=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/orders/".concat(t),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/orders/".concat(t,"/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/orders/".concat(t,"/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/orders/".concat(t,"/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/orders/".concat(t,"/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ApplyPromotions=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/applypromotions"),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListApprovals=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/orders/".concat(t,"/").concat(n,"/approvals"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Approve=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/approve"),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.SetBillingAddress=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/orders/".concat(t,"/").concat(n,"/billto"),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.PatchBillingAddress=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/orders/".concat(t,"/").concat(n,"/billto"),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Cancel=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/cancel"),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Complete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/complete"),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Decline=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/decline"),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListEligibleApprovers=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/orders/".concat(t,"/").concat(n,"/eligibleapprovers"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListEligiblePromotions=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/orders/".concat(t,"/").concat(n,"/eligiblepromotions"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Forward=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/forward"),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.PatchFromUser=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/orders/".concat(t,"/").concat(n,"/fromuser"),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListPromotions=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/orders/".concat(t,"/").concat(n,"/promotions"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.AddPromotion=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/promotions/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.RemovePromotion=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/orders/".concat(t,"/").concat(n,"/promotions/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.RefreshPromotions=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/refreshpromotions"),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Ship=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/ship"),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListShipments=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/orders/".concat(t,"/").concat(n,"/shipments"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.SetShippingAddress=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/orders/".concat(t,"/").concat(n,"/shipto"),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.PatchShippingAddress=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/orders/".concat(t,"/").concat(n,"/shipto"),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Split=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/split"),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Submit=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/submit"),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Validate=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/validate"),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),ts=new(function(){function t(){this.impersonating=!1,this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.SetA
1ctiveCart=this.SetActiveCart.bind(this),this.ApplyPromotions=this.ApplyPromotions.bind(this),this.SetBillingAddress=this.SetBillingAddress.bind(this),this.PatchBillingAddress=this.PatchBillingAddress.bind(this),this.CreateBundleItem=this.CreateBundleItem.bind(this),this.DeleteBundleItem=this.DeleteBundleItem.bind(this),this.Calculate=this.Calculate.bind(this),this.ListEligiblePromotions=this.ListEligiblePromotions.bind(this),this.EstimateShipping=this.EstimateShipping.bind(this),this.PatchFromUser=this.PatchFromUser.bind(this),this.ListLineItems=this.ListLineItems.bind(this),this.CreateLineItem=this.CreateLineItem.bind(this),this.GetLineItem=this.GetLineItem.bind(this),this.SaveLineItem=this.SaveLineItem.bind(this),this.DeleteLineItem=this.DeleteLineItem.bind(this),this.PatchLineItem=this.PatchLineItem.bind(this),this.ListPayments=this.ListPayments.bind(this),this.CreatePayment=this.CreatePayment.bind(this),this.GetPayment=this.GetPayment.bind(this),this.DeletePayment=this.DeletePayment.bind(this),this.PatchPayment=this.PatchPayment.bind(this),this.CreatePaymentTransaction=this.CreatePaymentTransaction.bind(this),this.DeletePaymentTransaction=this.DeletePaymentTransaction.bind(this),this.ListPromotions=this.ListPromotions.bind(this),this.AddPromotion=this.AddPromotion.bind(this),this.DeletePromotion=this.DeletePromotion.bind(this),this.RefreshPromotions=this.RefreshPromotions.bind(this),this.SelectShipMethods=this.SelectShipMethods.bind(this),this.SetShippingAddress=this.SetShippingAddress.bind(this),this.PatchShippingAddress=this.PatchShippingAddress.bind(this),this.Submit=this.Submit.bind(this),this.Validate=this.Validate.bind(this),this.GetOrderWorksheet=this.GetOrderWorksheet.bind(this)}return t.prototype.Get=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/cart",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Save=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/cart",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Delete=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/cart",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Patch=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/cart",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SetActiveCart=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/cart/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.ApplyPromotions=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.post("/cart/applypromotions",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.SetBillingAddress=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/cart/billto",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.PatchBillingAddress=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/cart/billto",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.CreateBundleItem=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/cart/bundles/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteBundleItem=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/cart/bundles/".concat(t,"/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Calculate=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.post("/cart/calculate",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.ListEligiblePromotions=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/cart/eligiblepromotions",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.EstimateShipping=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.post("/cart/estimateshipping",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.PatchFromUser=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/cart/fromuser",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.ListLineItems=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/cart/lineitems",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.CreateLineItem=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/cart/lineitems",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetLineItem=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/cart/lineitems/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveLineItem=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/cart/lineitems/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteLineItem=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/cart/lineitems/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.PatchLineItem=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/cart/lineitems/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListPayments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/cart/payments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.CreatePayment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/cart/payments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetPayment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/cart/payments/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.DeletePayment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/cart/payments/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.PatchPayment=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/cart/payments/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.CreatePaymentTransaction=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/cart/payments/".concat(t,"/transactions"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeletePaymentTransaction=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/cart/payments/".concat(t,"/transactions/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListPromotions=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/cart/promotions",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.AddPromotion=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/cart/promotions/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.DeletePromotion=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/cart/promotions/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.RefreshPromotions=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.post("/cart/refreshpromotions",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.SelectShipMethods=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/cart/shipmethods",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SetShippingAddress=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/cart/shipto",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.PatchShippingAddress=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/cart/shipto",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Submit=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.post("/cart/submit",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Validate=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.post("/cart/validate",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.GetOrderWorksheet=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/cart/worksheet",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tr=new(function(){function t(){this.impersonating=!1,this.ListAcrossOrders=this.ListAcrossOrders.bind(this),this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.SetShippingAddress=this.SetShippingAddress.bind(this),this.PatchShippingAddress=this.PatchShippingAddress.bind(this)}return t.prototype.ListAcrossOrders=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/lineitems/".concat(t),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.List=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/orders/".concat(t,"/").concat(n,"/lineitems"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case
1 1:return[2,r.sent()]}})})},t.prototype.Create=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/lineitems"),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Get=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/orders/".concat(t,"/").concat(n,"/lineitems/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Save=function(t,n,i,e,s){return void 0===s&&(s={}),u(this,void 0,void 0,function(){var r;return p(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,C.put("/orders/".concat(t,"/").concat(n,"/lineitems/").concat(i),h(h({},s),{data:e,impersonating:r})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.Delete=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/orders/".concat(t,"/").concat(n,"/lineitems/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Patch=function(t,n,i,e,s){return void 0===s&&(s={}),u(this,void 0,void 0,function(){var r;return p(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,C.patch("/orders/".concat(t,"/").concat(n,"/lineitems/").concat(i),h(h({},s),{data:e,impersonating:r})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.SetShippingAddress=function(t,n,i,e,s){return void 0===s&&(s={}),u(this,void 0,void 0,function(){var r;return p(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,C.put("/orders/".concat(t,"/").concat(n,"/lineitems/").concat(i,"/shipto"),h(h({},s),{data:e,impersonating:r})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.PatchShippingAddress=function(t,n,i,e,s){return void 0===s&&(s={}),u(this,void 0,void 0,function(){var r;return p(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,C.patch("/orders/".concat(t,"/").concat(n,"/lineitems/").concat(i,"/shipto"),h(h({},s),{data:e,impersonating:r})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),to=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/promotions",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/promotions",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/promotions/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/promotions/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/promotions/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/promotions/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAssignment=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/promotions/".concat(t,"/assignments"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListAssignments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/promotions/assignments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveAssignment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/promotions/assignments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tc=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.CreateTransaction=this.CreateTransaction.bind(this),this.DeleteTransaction=this.DeleteTransaction.bind(this)}return t.prototype.List=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/orders/".concat(t,"/").concat(n,"/payments"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Create=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/payments"),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Get=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/orders/".concat(t,"/").concat(n,"/payments/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/orders/".concat(t,"/").concat(n,"/payments/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Patch=function(t,n,i,e,s){return void 0===s&&(s={}),u(this,void 0,void 0,function(){var r;return p(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,C.patch("/orders/".concat(t,"/").concat(n,"/payments/").concat(i),h(h({},s),{data:e,impersonating:r})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.CreateTransaction=function(t,n,i,e,s){return void 0===s&&(s={}),u(this,void 0,void 0,function(){var r;return p(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/payments/").concat(i,"/transactions"),h(h({},s),{data:e,impersonating:r})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.DeleteTransaction=function(t,n,i,e,s){return void 0===s&&(s={}),u(this,void 0,void 0,function(){var r;return p(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,C.delete("/orders/".concat(t,"/").concat(n,"/payments/").concat(i,"/transactions/").concat(e),h(h({},s),{impersonating:r})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),ta=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.ListItems=this.ListItems.bind(this),this.SaveItem=this.SaveItem.bind(this),this.GetItem=this.GetItem.bind(this),this.DeleteItem=this.DeleteItem.bind(this),this.SetShipFromAddress=this.SetShipFromAddress.bind(this),this.SetShipToAddress=this.SetShipToAddress.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/shipments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/shipments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/shipments/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/shipments/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/shipments/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/shipments/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListItems=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/shipments/".concat(t,"/items"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveItem=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/shipments/".concat(t,"/items"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.GetItem=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/shipments/".concat(t,"/items/").concat(n,"/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteItem=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/shipments/".concat(t,"/items/").concat(n,"/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.SetShipFromAddress=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/shipments/".concat(t,"/shipfrom"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SetShipToAddress=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/shipments/".concat(t,"/shipto"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),th=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.ListApprovals=this.ListApprovals.bind(this),this.Ap
1prove=this.Approve.bind(this),this.Cancel=this.Cancel.bind(this),this.Complete=this.Complete.bind(this),this.Decline=this.Decline.bind(this),this.ListEligibleApprovers=this.ListEligibleApprovers.bind(this),this.DeleteItem=this.DeleteItem.bind(this),this.Submit=this.Submit.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/orderreturns",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/orderreturns",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/orderreturns/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/orderreturns/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/orderreturns/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/orderreturns/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListApprovals=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/orderreturns/".concat(t,"/approvals"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Approve=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/orderreturns/".concat(t,"/approve"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Cancel=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/orderreturns/".concat(t,"/cancel"),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Complete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/orderreturns/".concat(t,"/complete"),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Decline=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/orderreturns/".concat(t,"/decline"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListEligibleApprovers=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/orderreturns/".concat(t,"/eligibleapprovers"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteItem=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/orderreturns/".concat(t,"/items/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Submit=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/orderreturns/".concat(t,"/submit"),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tu=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/approvalrules",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/approvalrules",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/approvalrules/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/approvalrules/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/approvalrules/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/approvalrules/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tp=new(function(){function t(){this.impersonating=!1,this.Create=this.Create.bind(this),this.Delete=this.Delete.bind(this)}return t.prototype.Create=function(t,n,i,e,s){return void 0===s&&(s={}),u(this,void 0,void 0,function(){var r;return p(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/bundles/").concat(i),h(h({},s),{data:e,impersonating:r})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.Delete=function(t,n,i,e,s){return void 0===s&&(s={}),u(this,void 0,void 0,function(){var r;return p(this,function(o){switch(o.label){case 0:return r=this.impersonating,this.impersonating=!1,[4,C.delete("/orders/".concat(t,"/").concat(n,"/bundles/").concat(i,"/").concat(e),h(h({},s),{impersonating:r})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,o.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),td=new(function(){function t(){this.impersonating=!1,this.Create=this.Create.bind(this),this.Delete=this.Delete.bind(this)}return t.prototype.Create=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.post("/subscriptions/".concat(t,"/bundles/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/subscriptions/".concat(t,"/bundles/").concat(n,"/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tf=new(function(){function t(){this.impersonating=!1,this.GetToken=this.GetToken.bind(this)}return t.prototype.GetToken=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/grouporders/".concat(t,"/token"),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tv=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/subscriptions/".concat(t,"/items"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Create=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/subscriptions/".concat(t,"/items"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Get=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/subscriptions/".concat(t,"/items/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Save=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/subscriptions/".concat(t,"/items/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.Delete=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/subscriptions/".concat(t,"/items/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Patch=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/subscriptions/".concat(t,"/items/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tm=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/subscriptions",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/subscriptions",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/subscriptions/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/subscriptions/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/subscriptions/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/subscriptions/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tg=new(function(){function t(){this.impersonating=!1,this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Patch=this.Patch.bind(this),this.ListAddresses=this.ListAddresses.bind(this),this.CreateAddress=this.CreateAddress.bind(this),this.GetAddress=this.GetAddress.bind(this),this.SaveAddress=this.SaveAddress.bind(this),this.DeleteAddress=this.DeleteAddress.bind(this),this.PatchAddress=this.PatchAddress.bind(this),this.ListCatalogs=this.ListCatalogs.bind(this),this.GetCatalog=this.GetCatalog.bind(this),this.ListCategories=this.ListCategories.bind(this),this.GetCategory=this.GetCategory.bind(this),this.ListCostCenters=this.ListCostCenters.bind(this),this.ListCreditCards=this.ListCreditCards.bind(this),this.CreateCreditCard=this.CreateCreditCard.bind(this),this.GetCredit
1Card=this.GetCreditCard.bind(this),this.SaveCreditCard=this.SaveCreditCard.bind(this),this.DeleteCreditCard=this.DeleteCreditCard.bind(this),this.PatchCreditCard=this.PatchCreditCard.bind(this),this.ListGroupOrderInvitations=this.ListGroupOrderInvitations.bind(this),this.CreateGroupOrderInvitation=this.CreateGroupOrderInvitation.bind(this),this.GetGroupOrderInvitation=this.GetGroupOrderInvitation.bind(this),this.DeleteGroupOrderInvitation=this.DeleteGroupOrderInvitation.bind(this),this.PatchGroupOrderInvitation=this.PatchGroupOrderInvitation.bind(this),this.ListOrders=this.ListOrders.bind(this),this.TransferAnonUserOrder=this.TransferAnonUserOrder.bind(this),this.ListApprovableOrders=this.ListApprovableOrders.bind(this),this.ResetPasswordByToken=this.ResetPasswordByToken.bind(this),this.ListProductCollections=this.ListProductCollections.bind(this),this.CreateProductCollection=this.CreateProductCollection.bind(this),this.GetProductCollection=this.GetProductCollection.bind(this),this.SaveProductCollection=this.SaveProductCollection.bind(this),this.DeleteProductCollection=this.DeleteProductCollection.bind(this),this.PatchProductCollection=this.PatchProductCollection.bind(this),this.CreateProductCollectionEntry=this.CreateProductCollectionEntry.bind(this),this.DeleteProductCollectionEntry=this.DeleteProductCollectionEntry.bind(this),this.ListProductCollectionInvitations=this.ListProductCollectionInvitations.bind(this),this.CreateProductCollectionInvitation=this.CreateProductCollectionInvitation.bind(this),this.GetProductCollectionInvitation=this.GetProductCollectionInvitation.bind(this),this.DeleteProductCollectionInvitation=this.DeleteProductCollectionInvitation.bind(this),this.PatchProductCollectionInvitation=this.PatchProductCollectionInvitation.bind(this),this.AcceptProductCollectionInvitation=this.AcceptProductCollectionInvitation.bind(this),this.DeclineProductCollectionInvitation=this.DeclineProductCollectionInvitation.bind(this),this.ListProductCollectionEntries=this.ListProductCollectionEntries.bind(this),this.SaveProductCollectionEntry=this.SaveProductCollectionEntry.bind(this),this.ListProducts=this.ListProducts.bind(this),this.GetProduct=this.GetProduct.bind(this),this.ListProductInventoryRecords=this.ListProductInventoryRecords.bind(this),this.ListProductSellers=this.ListProductSellers.bind(this),this.ListSpecs=this.ListSpecs.bind(this),this.GetSpec=this.GetSpec.bind(this),this.ListVariants=this.ListVariants.bind(this),this.GetVariant=this.GetVariant.bind(this),this.ListVariantInventoryRecords=this.ListVariantInventoryRecords.bind(this),this.ListPromotions=this.ListPromotions.bind(this),this.GetPromotion=this.GetPromotion.bind(this),this.Register=this.Register.bind(this),this.ListBuyerSellers=this.ListBuyerSellers.bind(this),this.ListShipments=this.ListShipments.bind(this),this.GetShipment=this.GetShipment.bind(this),this.ListShipmentItems=this.ListShipmentItems.bind(this),this.ListSpendingAccounts=this.ListSpendingAccounts.bind(this),this.GetSpendingAccount=this.GetSpendingAccount.bind(this),this.ListSubscriptions=this.ListSubscriptions.bind(this),this.CreateSubscription=this.CreateSubscription.bind(this),this.GetSubscription=this.GetSubscription.bind(this),this.SaveSubscription=this.SaveSubscription.bind(this),this.DeleteSubscription=this.DeleteSubscription.bind(this),this.PatchSubscription=this.PatchSubscription.bind(this),this.ListSubscriptionItems=this.ListSubscriptionItems.bind(this),this.CreateSubscriptionItem=this.CreateSubscriptionItem.bind(this),this.GetSubscriptionItem=this.GetSubscriptionItem.bind(this),this.SaveSubscriptionItem=this.SaveSubscriptionItem.bind(this),this.DeleteSubscriptionItem=this.DeleteSubscriptionItem.bind(this),this.PatchSubscriptionItem=this.PatchSubscriptionItem.bind(this),this.CreateSubscriptionBundleItem=this.CreateSubscriptionBundleItem.bind(this),this.DeleteSubscriptionBundleItem=this.DeleteSubscriptionBundleItem.bind(this),this.RevokeTokens=this.RevokeTokens.bind(this),this.ListUserGroups=this.ListUserGroups.bind(this)}return t.prototype.Get=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/me",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Save=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/me",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/me",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.ListAddresses=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/addresses",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.CreateAddress=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/me/addresses",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetAddress=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/addresses/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveAddress=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/me/addresses/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAddress=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/me/addresses/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.PatchAddress=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/me/addresses/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})}
1,t.prototype.ListCatalogs=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/catalogs",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetCatalog=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/catalogs/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.ListCategories=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/categories",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetCategory=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/me/categories/".concat(t),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListCostCenters=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/costcenters",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.ListCreditCards=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/creditcards",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.CreateCreditCard=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/me/creditcards",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetCreditCard=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/creditcards/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveCreditCard=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/me/creditcards/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteCreditCard=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/me/creditcards/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.PatchCreditCard=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/me/creditcards/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListGroupOrderInvitations=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/orderinvitations",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.CreateGroupOrderInvitation=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/me/orderinvitations",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetGroupOrderInvitation=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/orderinvitations/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.DeleteGroupOrderInvitation=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/me/orderinvitations/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.PatchGroupOrderInvitation=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/me/orderinvitations/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListOrders=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/orders",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.TransferAnonUserOrder=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/me/orders",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.ListApprovableOrders=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/orders/approvable",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.ResetPasswordByToken=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/me/password",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.ListProductCollections=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/productcollections",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.CreateProductCollection=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/me/productcollections",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetProductCollection=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/productcollections/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveProductCollection=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/me/productcollections/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteProductCollection=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/me/productcollections/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.PatchProductCollection=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/me/productcollections/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.CreateProductCollectionEntry=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/me/productcollections/".concat(t,"/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteProductCollectionEntry=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/me/productcollections/".concat(t,"/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListProductCollectionInvitations=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/me/productcollections/".concat(t,"/invitations"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.CreateProductCollectionInvitation=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/me/productcollections/".concat(t,"/invitations"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.GetProductCollectionInvitation=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/me/productcollections/".concat(t,"/invitations/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteProductCollectionInvitation=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/me/productcollections/".concat(t,"/invitations/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.PatchProductCollectionInvitation=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/me/productcollections/".concat(t,"/invitations/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.AcceptProductCollectionInvitation=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/me/productcollections/".concat(t,"/invitations/accept/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeclineProductCollectionInvitation=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/me/productcollections/".concat(t,"/invitations/decline/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListProductCollectionEntries=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/me/productcollections/".concat(t,"/products"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveProductCollectionEntry=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/me/productcollections/".concat(t,"/products"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListProducts=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/products",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetProduct=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/me/products/".concat(t),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListProductInventoryRecords=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/me/products/".concat(t,"/inventoryrecords"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListProductSellers=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/me/products/".concat(t,"/sellers"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListSpecs=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/me/products/".concat(t,"/specs"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Ge
1tSpec=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/me/products/".concat(t,"/specs/").concat(n),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListVariants=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/me/products/".concat(t,"/variants"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.GetVariant=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/me/products/".concat(t,"/variants/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListVariantInventoryRecords=function(t,n,i,e){return void 0===i&&(i={}),void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.get("/me/products/".concat(t,"/variants/").concat(n,"/inventoryrecords"),h(h({},e),{impersonating:s,params:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.ListPromotions=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/promotions",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetPromotion=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/promotions/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Register=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/me/register",h(h({},i),{data:t,impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListBuyerSellers=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/sellers",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.ListShipments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/shipments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetShipment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/shipments/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.ListShipmentItems=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/me/shipments/".concat(t,"/items"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListSpendingAccounts=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/spendingAccounts",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetSpendingAccount=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/spendingaccounts/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.ListSubscriptions=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/subscriptions",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.CreateSubscription=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/me/subscriptions",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetSubscription=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/subscriptions/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveSubscription=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/me/subscriptions/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteSubscription=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/me/subscriptions/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.PatchSubscription=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/me/subscriptions/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListSubscriptionItems=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/me/subscriptions/".concat(t,"/items"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.CreateSubscriptionItem=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/me/subscriptions/".concat(t,"/items"),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.GetSubscriptionItem=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/me/subscriptions/".concat(t,"/items/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SaveSubscriptionItem=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.put("/me/subscriptions/".concat(t,"/items/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteSubscriptionItem=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/me/subscriptions/".concat(t,"/items/").concat(n),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.PatchSubscriptionItem=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.patch("/me/subscriptions/".concat(t,"/items/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.CreateSubscriptionBundleItem=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.post("/me/subscriptions/".concat(t,"/items/bundles/").concat(n),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.DeleteSubscriptionBundleItem=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.delete("/me/subscriptions/".concat(t,"/items/bundles/").concat(n,"/").concat(i),h(h({},e),{impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.RevokeTokens=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/me/tokens",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.ListUserGroups=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/me/usergroups",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tl=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/trackingEvents",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/integrations/trackingEvents",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/trackingEvents/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/trackingEvents/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/trackingEvents/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/trackingEvents/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tw=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/deliveryconfig",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/integrations/deliveryconfig",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/deliveryconfig/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/deliveryconfig/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/deliveryconfig/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/deliveryconfig/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tb=new(f
1unction(){function t(){this.impersonating=!1,this.GetAdminUsers=this.GetAdminUsers.bind(this),this.SaveAdminUsers=this.SaveAdminUsers.bind(this),this.DeleteAdminUsers=this.DeleteAdminUsers.bind(this),this.PatchAdminUsers=this.PatchAdminUsers.bind(this),this.SyncAdminUser=this.SyncAdminUser.bind(this),this.GetBuyers=this.GetBuyers.bind(this),this.SaveBuyers=this.SaveBuyers.bind(this),this.DeleteBuyers=this.DeleteBuyers.bind(this),this.PatchBuyers=this.PatchBuyers.bind(this),this.SyncBuyer=this.SyncBuyer.bind(this),this.GetBuyerUserGroups=this.GetBuyerUserGroups.bind(this),this.SaveUserGroups=this.SaveUserGroups.bind(this),this.DeleteUserGroups=this.DeleteUserGroups.bind(this),this.PatchBuyerUserGroups=this.PatchBuyerUserGroups.bind(this),this.SyncBuyerUserGroup=this.SyncBuyerUserGroup.bind(this),this.GetBuyerUsers=this.GetBuyerUsers.bind(this),this.SaveBuyerUsers=this.SaveBuyerUsers.bind(this),this.DeleteBuyerUsers=this.DeleteBuyerUsers.bind(this),this.PatchBuyerUsers=this.PatchBuyerUsers.bind(this),this.SyncBuyerUser=this.SyncBuyerUser.bind(this),this.GetCategories=this.GetCategories.bind(this),this.SaveCategories=this.SaveCategories.bind(this),this.DeleteCategories=this.DeleteCategories.bind(this),this.PatchCategories=this.PatchCategories.bind(this),this.SyncCategory=this.SyncCategory.bind(this),this.GetInventoryRecords=this.GetInventoryRecords.bind(this),this.SaveInventoryRecords=this.SaveInventoryRecords.bind(this),this.DeleteInventoryRecords=this.DeleteInventoryRecords.bind(this),this.PatchInventoryRecords=this.PatchInventoryRecords.bind(this),this.SyncInventoryRecord=this.SyncInventoryRecord.bind(this),this.SyncSupplier=this.SyncSupplier.bind(this),this.GetSuppliers=this.GetSuppliers.bind(this),this.SaveSuppliers=this.SaveSuppliers.bind(this),this.DeleteSuppliers=this.DeleteSuppliers.bind(this),this.PatchSuppliers=this.PatchSuppliers.bind(this),this.GetSupplierUsers=this.GetSupplierUsers.bind(this),this.SaveSupplierUsers=this.SaveSupplierUsers.bind(this),this.DeleteSupplierUsers=this.DeleteSupplierUsers.bind(this),this.PatchSupplierUsers=this.PatchSupplierUsers.bind(this),this.SyncSupplierUser=this.SyncSupplierUser.bind(this)}return t.prototype.GetAdminUsers=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/entitysync/adminusers",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.SaveAdminUsers=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/entitysync/adminusers",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.DeleteAdminUsers=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/entitysync/adminusers",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.PatchAdminUsers=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/entitysync/adminusers",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SyncAdminUser=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/integrations/entitysync/adminusers/sync",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetBuyers=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/entitysync/buyers",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.SaveBuyers=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/entitysync/buyers",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.DeleteBuyers=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/entitysync/buyers",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.PatchBuyers=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/entitysync/buyers",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SyncBuyer=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/integrations/entitysync/buyers/sync",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetBuyerUserGroups=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/entitysync/buyers/usergroups",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.SaveUserGroups=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/entitysync/buyers/usergroups",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.DeleteUserGroups=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/entitysync/buyers/usergroups",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.PatchBuyerUserGroups=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/entitysync/buyers/usergroups",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SyncBuyerUserGroup=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/integrations/entitysync/buyers/usergroups/sync",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetBuyerUsers=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/entitysync/buyers/users",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.SaveBuyerUsers=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/entitysync/buyers/users",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.DeleteBuyerUsers=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/entitysync/buyers/users",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.PatchBuyerUsers=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/entitysync/buyers/users",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SyncBuyerUser=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/integrations/entitysync/buyers/users/sync",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetCategories=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/entitysync/categories",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.SaveCategories=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/entitysync/categories",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.DeleteCategories=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/entitysync/categories",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.PatchCategories=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/entitysync/categories",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SyncCategory=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/integrations/entitysync/categories/sync",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetInventoryRecords=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/entitysync/products/inventoryrecords",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.SaveInventoryRecords=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/entitysync/products/inventoryrecords",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.DeleteInventoryRecords=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/entitysync/products/inventoryrecords",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.PatchInventoryRecords=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/entitysync/products/inventoryrecords",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SyncInventoryRecord=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/integrations/entitysync/products/inventoryrecords/sync",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SyncSupplier=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/integrations/entitysync/supplier/sync",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetSuppliers=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/entitysync/suppliers",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.SaveSuppliers=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/entitysync/suppliers",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.DeleteSuppliers=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/entitysync/suppliers",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.PatchSuppliers=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/entitysync/suppliers",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.GetSupplierUsers=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/entitysync/suppliers/users",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.SaveSupplierUsers=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/entitysync/suppliers/users",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.DeleteSupplierUsers=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.la
1bel){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/entitysync/suppliers/users",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.PatchSupplierUsers=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/entitysync/suppliers/users",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SyncSupplierUser=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/integrations/entitysync/suppliers/users/sync",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),ty=new(function(){function t(){this.impersonating=!1,this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.Validate=this.Validate.bind(this)}return t.prototype.Get=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/ErrorConfig",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Save=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/ErrorConfig",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Delete=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/ErrorConfig",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Patch=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/ErrorConfig",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Validate=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.post("/integrations/ErrorConfig/validate",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tS=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.Calculate=this.Calculate.bind(this),this.EstimateShipping=this.EstimateShipping.bind(this),this.SelectShipmethods=this.SelectShipmethods.bind(this),this.GetWorksheet=this.GetWorksheet.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/integrationEvents",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/integrationEvents",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/integrationEvents/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/integrationEvents/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/integrationEvents/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/integrationEvents/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Calculate=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/calculate"),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.EstimateShipping=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/estimateshipping"),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.SelectShipmethods=function(t,n,i,e){return void 0===e&&(e={}),u(this,void 0,void 0,function(){var s;return p(this,function(r){switch(r.label){case 0:return s=this.impersonating,this.impersonating=!1,[4,C.post("/orders/".concat(t,"/").concat(n,"/shipmethods"),h(h({},e),{data:i,impersonating:s})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,r.sent()]}})})},t.prototype.GetWorksheet=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.get("/orders/".concat(t,"/").concat(n,"/worksheet"),h(h({},i),{impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tA=new(function(){function t(){this.impersonating=!1,this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.Get=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/inventory",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Save=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/inventory",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Delete=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/inventory",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Patch=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/inventory",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tC=new(function(){function t(){this.impersonating=!1,this.List=this.List.bind(this),this.Create=this.Create.bind(this),this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.DeleteAssignment=this.DeleteAssignment.bind(this),this.ListAssignments=this.ListAssignments.bind(this),this.SaveAssignment=this.SaveAssignment.bind(this),this.ListCCListenerAssignments=this.ListCCListenerAssignments.bind(this),this.SaveCCListenerAssignment=this.SaveCCListenerAssignment.bind(this)}return t.prototype.List=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/messagesenders",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Create=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/messagesenders",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Get=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/messagesenders/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Save=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.put("/messagesenders/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.Delete=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.delete("/messagesenders/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Patch=function(t,n,i){return void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.patch("/messagesenders/".concat(t),h(h({},i),{data:n,impersonating:e})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.DeleteAssignment=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),u(this,void 0,void 0,function(){var e;return p(this,function(s){switch(s.label){case 0:return e=this.impersonating,this.impersonating=!1,[4,C.delete("/messagesenders/".concat(t,"/assignments"),h(h({},i),{impersonating:e,params:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,s.sent()]}})})},t.prototype.ListAssignments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/messagesenders/assignments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveAssignment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/messagesenders/assignments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})}
1,t.prototype.ListCCListenerAssignments=function(t,n){return void 0===t&&(t={}),void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("/messagesenders/CCListenerAssignments",h(h({},n),{impersonating:i,params:t})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.SaveCCListenerAssignment=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/messagesenders/CCListenerAssignments",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tP=new(function(){function t(){this.impersonating=!1,this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.Get=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/OrderSync",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Save=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/OrderSync",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Delete=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/OrderSync",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Patch=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/OrderSync",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tL=new(function(){function t(){this.impersonating=!1,this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this),this.Sync=this.Sync.bind(this)}return t.prototype.Get=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/productsync",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Save=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/productsync",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Delete=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/productsync",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Patch=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/productsync",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Sync=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.post("/integrations/productsync/sync",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tD=new(function(){function t(){this.impersonating=!1,this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.Get=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/promotion",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Save=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/promotion",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Delete=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/promotion",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Patch=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/promotion",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tG=new(function(){function t(){this.impersonating=!1,this.Get=this.Get.bind(this),this.Save=this.Save.bind(this),this.Delete=this.Delete.bind(this),this.Patch=this.Patch.bind(this)}return t.prototype.Get=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("/integrations/subscription",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Save=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.put("/integrations/subscription",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.Delete=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.delete("/integrations/subscription",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.Patch=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.patch("/integrations/subscription",h(h({},n),{data:t,impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tk=new(function(){function t(){this.impersonating=!1,this.GetToken=this.GetToken.bind(this)}return t.prototype.GetToken=function(t){return void 0===t&&(t={}),u(this,void 0,void 0,function(){var n;return p(this,function(i){switch(i.label){case 0:return n=this.impersonating,this.impersonating=!1,[4,C.get("oauth/userinfo",h(h({},t),{impersonating:n})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,i.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}()),tT=new(function(){function t(){this.impersonating=!1,this.GetPublicKey=this.GetPublicKey.bind(this)}return t.prototype.GetPublicKey=function(t,n){return void 0===n&&(n={}),u(this,void 0,void 0,function(){var i;return p(this,function(e){switch(e.label){case 0:return i=this.impersonating,this.impersonating=!1,[4,C.get("oauth/certs/".concat(t),h(h({},n),{impersonating:i})).catch(function(t){if(t.response)throw new f(t);throw t})];case 1:return[2,e.sent()]}})})},t.prototype.As=function(){return this.impersonating=!0,this},t}())}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.