@commercelayer/sdk 2.0.4 → 2.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/api.d.ts +10 -3
- package/lib/client.d.ts +2 -0
- package/lib/commercelayer.d.ts +9 -1
- package/lib/index.d.ts +4 -2
- package/lib/interceptor.d.ts +10 -0
- package/lib/model.d.ts +94 -0
- package/lib/resource.d.ts +6 -3
- package/lib/resources/addresses.d.ts +1 -2
- package/lib/resources/adjustments.d.ts +1 -2
- package/lib/resources/adyen_gateways.d.ts +1 -2
- package/lib/resources/adyen_payments.d.ts +1 -2
- package/lib/resources/application.d.ts +1 -2
- package/lib/resources/attachments.d.ts +1 -2
- package/lib/resources/authorizations.d.ts +1 -2
- package/lib/resources/avalara_accounts.d.ts +1 -2
- package/lib/resources/billing_info_validation_rules.d.ts +1 -2
- package/lib/resources/bing_geocoders.d.ts +1 -2
- package/lib/resources/braintree_gateways.d.ts +1 -2
- package/lib/resources/braintree_payments.d.ts +1 -2
- package/lib/resources/bundles.d.ts +1 -2
- package/lib/resources/captures.d.ts +1 -2
- package/lib/resources/carrier_accounts.d.ts +1 -2
- package/lib/resources/checkout_com_gateways.d.ts +1 -2
- package/lib/resources/checkout_com_payments.d.ts +1 -2
- package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -2
- package/lib/resources/coupons.d.ts +1 -2
- package/lib/resources/customer_addresses.d.ts +1 -2
- package/lib/resources/customer_groups.d.ts +1 -2
- package/lib/resources/customer_password_resets.d.ts +1 -2
- package/lib/resources/customer_payment_sources.d.ts +1 -2
- package/lib/resources/customer_subscriptions.d.ts +1 -2
- package/lib/resources/customers.d.ts +3 -2
- package/lib/resources/delivery_lead_times.d.ts +1 -2
- package/lib/resources/external_gateways.d.ts +1 -2
- package/lib/resources/external_payments.d.ts +1 -2
- package/lib/resources/external_promotions.d.ts +1 -2
- package/lib/resources/external_tax_calculators.d.ts +1 -2
- package/lib/resources/fixed_amount_promotions.d.ts +1 -2
- package/lib/resources/free_shipping_promotions.d.ts +1 -2
- package/lib/resources/geocoders.d.ts +1 -2
- package/lib/resources/gift_card_recipients.d.ts +1 -2
- package/lib/resources/gift_cards.d.ts +1 -2
- package/lib/resources/google_geocoders.d.ts +1 -2
- package/lib/resources/imports.d.ts +2 -3
- package/lib/resources/in_stock_subscriptions.d.ts +1 -2
- package/lib/resources/inventory_models.d.ts +1 -2
- package/lib/resources/inventory_return_locations.d.ts +1 -2
- package/lib/resources/inventory_stock_locations.d.ts +1 -2
- package/lib/resources/line_item_options.d.ts +1 -2
- package/lib/resources/line_items.d.ts +1 -2
- package/lib/resources/manual_gateways.d.ts +1 -2
- package/lib/resources/manual_tax_calculators.d.ts +1 -2
- package/lib/resources/markets.d.ts +1 -2
- package/lib/resources/merchants.d.ts +1 -2
- package/lib/resources/order_amount_promotion_rules.d.ts +1 -2
- package/lib/resources/order_copies.d.ts +1 -2
- package/lib/resources/order_subscriptions.d.ts +3 -2
- package/lib/resources/orders.d.ts +2 -2
- package/lib/resources/organization.d.ts +1 -2
- package/lib/resources/packages.d.ts +1 -2
- package/lib/resources/parcel_line_items.d.ts +1 -2
- package/lib/resources/parcels.d.ts +1 -2
- package/lib/resources/payment_gateways.d.ts +1 -2
- package/lib/resources/payment_methods.d.ts +1 -2
- package/lib/resources/paypal_gateways.d.ts +1 -2
- package/lib/resources/paypal_payments.d.ts +1 -2
- package/lib/resources/percentage_discount_promotions.d.ts +1 -2
- package/lib/resources/price_lists.d.ts +1 -2
- package/lib/resources/prices.d.ts +1 -2
- package/lib/resources/promotion_rules.d.ts +1 -2
- package/lib/resources/promotions.d.ts +1 -2
- package/lib/resources/refunds.d.ts +1 -2
- package/lib/resources/return_line_items.d.ts +1 -2
- package/lib/resources/returns.d.ts +1 -2
- package/lib/resources/shipments.d.ts +1 -2
- package/lib/resources/shipping_categories.d.ts +1 -2
- package/lib/resources/shipping_methods.d.ts +1 -2
- package/lib/resources/shipping_zones.d.ts +1 -2
- package/lib/resources/sku_list_items.d.ts +1 -2
- package/lib/resources/sku_list_promotion_rules.d.ts +1 -2
- package/lib/resources/sku_lists.d.ts +1 -2
- package/lib/resources/sku_options.d.ts +1 -2
- package/lib/resources/skus.d.ts +1 -2
- package/lib/resources/stock_items.d.ts +1 -2
- package/lib/resources/stock_line_items.d.ts +1 -2
- package/lib/resources/stock_locations.d.ts +1 -2
- package/lib/resources/stock_transfers.d.ts +1 -2
- package/lib/resources/stripe_gateways.d.ts +1 -2
- package/lib/resources/stripe_payments.d.ts +2 -2
- package/lib/resources/tax_calculators.d.ts +1 -2
- package/lib/resources/tax_categories.d.ts +1 -2
- package/lib/resources/tax_rules.d.ts +1 -2
- package/lib/resources/taxjar_accounts.d.ts +1 -2
- package/lib/resources/transactions.d.ts +1 -2
- package/lib/resources/voids.d.ts +1 -2
- package/lib/resources/webhooks.d.ts +1 -2
- package/lib/resources/wire_transfers.d.ts +1 -2
- package/lib/sdk.cjs.development.js +808 -274
- package/lib/sdk.cjs.development.js.map +1 -1
- package/lib/sdk.cjs.production.min.js +1 -1
- package/lib/sdk.cjs.production.min.js.map +1 -1
- package/lib/sdk.esm.js +808 -274
- package/lib/sdk.esm.js.map +1 -1
- package/package.json +7 -4
- package/lib/.DS_Store +0 -0
- package/lib/api.js +0 -271
- package/lib/client.js +0 -132
- package/lib/commercelayer.js +0 -163
- package/lib/error.js +0 -25
- package/lib/jsonapi.js +0 -83
- package/lib/poly.d.ts +0 -9
- package/lib/poly.js +0 -2
- package/lib/query.js +0 -172
- package/lib/resource.js +0 -94
- package/lib/resources/addresses.js +0 -45
- package/lib/resources/adjustments.js +0 -45
- package/lib/resources/adyen_gateways.js +0 -45
- package/lib/resources/adyen_payments.js +0 -45
- package/lib/resources/application.js +0 -33
- package/lib/resources/attachments.js +0 -45
- package/lib/resources/authorizations.js +0 -45
- package/lib/resources/avalara_accounts.js +0 -45
- package/lib/resources/billing_info_validation_rules.js +0 -45
- package/lib/resources/braintree_gateways.js +0 -45
- package/lib/resources/braintree_payments.js +0 -45
- package/lib/resources/captures.js +0 -39
- package/lib/resources/carrier_accounts.js +0 -36
- package/lib/resources/checkout_com_gateways.js +0 -45
- package/lib/resources/checkout_com_payments.js +0 -45
- package/lib/resources/coupon_codes_promotion_rules.js +0 -45
- package/lib/resources/coupons.js +0 -45
- package/lib/resources/customer_addresses.js +0 -45
- package/lib/resources/customer_groups.js +0 -45
- package/lib/resources/customer_password_resets.js +0 -45
- package/lib/resources/customer_payment_sources.js +0 -45
- package/lib/resources/customer_subscriptions.js +0 -45
- package/lib/resources/customers.js +0 -45
- package/lib/resources/delivery_lead_times.js +0 -45
- package/lib/resources/external_gateways.js +0 -45
- package/lib/resources/external_payments.js +0 -45
- package/lib/resources/external_promotions.js +0 -45
- package/lib/resources/external_tax_calculators.js +0 -45
- package/lib/resources/fixed_amount_promotions.js +0 -45
- package/lib/resources/free_shipping_promotions.js +0 -45
- package/lib/resources/gift_card_recipients.js +0 -45
- package/lib/resources/gift_cards.js +0 -45
- package/lib/resources/imports.js +0 -42
- package/lib/resources/in_stock_subscriptions.js +0 -45
- package/lib/resources/inventory_models.js +0 -45
- package/lib/resources/inventory_return_locations.js +0 -45
- package/lib/resources/inventory_stock_locations.js +0 -45
- package/lib/resources/line_item_options.js +0 -45
- package/lib/resources/line_items.js +0 -45
- package/lib/resources/manual_gateways.js +0 -45
- package/lib/resources/manual_tax_calculators.js +0 -45
- package/lib/resources/markets.js +0 -45
- package/lib/resources/merchants.js +0 -45
- package/lib/resources/order_amount_promotion_rules.js +0 -45
- package/lib/resources/orders.js +0 -45
- package/lib/resources/organization.js +0 -33
- package/lib/resources/packages.js +0 -45
- package/lib/resources/parcel_line_items.js +0 -45
- package/lib/resources/parcels.js +0 -45
- package/lib/resources/payment_gateways.js +0 -45
- package/lib/resources/payment_methods.js +0 -45
- package/lib/resources/paypal_gateways.js +0 -45
- package/lib/resources/paypal_payments.js +0 -45
- package/lib/resources/percentage_discount_promotions.js +0 -45
- package/lib/resources/price_lists.js +0 -45
- package/lib/resources/prices.js +0 -45
- package/lib/resources/promotion_rules.js +0 -33
- package/lib/resources/promotions.js +0 -33
- package/lib/resources/refunds.js +0 -36
- package/lib/resources/return_line_items.js +0 -45
- package/lib/resources/returns.js +0 -45
- package/lib/resources/shipments.js +0 -39
- package/lib/resources/shipping_categories.js +0 -45
- package/lib/resources/shipping_methods.js +0 -45
- package/lib/resources/shipping_zones.js +0 -45
- package/lib/resources/sku_list_items.js +0 -45
- package/lib/resources/sku_list_promotion_rules.js +0 -45
- package/lib/resources/sku_lists.js +0 -45
- package/lib/resources/sku_options.js +0 -45
- package/lib/resources/skus.js +0 -45
- package/lib/resources/stock_items.js +0 -45
- package/lib/resources/stock_line_items.js +0 -36
- package/lib/resources/stock_locations.js +0 -45
- package/lib/resources/stock_transfers.js +0 -45
- package/lib/resources/stripe_gateways.js +0 -45
- package/lib/resources/stripe_payments.js +0 -45
- package/lib/resources/tax_calculators.js +0 -33
- package/lib/resources/tax_categories.js +0 -45
- package/lib/resources/tax_rules.js +0 -45
- package/lib/resources/taxjar_accounts.js +0 -45
- package/lib/resources/transactions.js +0 -33
- package/lib/resources/voids.js +0 -36
- package/lib/resources/webhooks.js +0 -45
- package/lib/resources/wire_transfers.js +0 -45
- package/lib/util.js +0 -7
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,r=(t=require("axios"))&&"object"==typeof t&&"default"in t?t.default:t;function e(t,r,e,n,u,i,s){try{var c=t[i](s),a=c.value}catch(t){return void e(t)}c.done?r(a):Promise.resolve(a).then(n,u)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(u,i){var s=t.apply(r,n);function c(t){e(s,u,i,c,a,"next",t)}function a(t){e(s,u,i,c,a,"throw",t)}c(void 0)}))}}function u(){return(u=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t}).apply(this,arguments)}function i(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,c(t,r)}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,r){return(c=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t})(t,r)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function o(t,r,e){return(o=a()?Reflect.construct:function(t,r,e){var n=[null];n.push.apply(n,r);var u=new(Function.bind.apply(t,n));return e&&c(u,e.prototype),u}).apply(null,arguments)}function p(t){var r="function"==typeof Map?new Map:void 0;return(p=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return o(t,arguments,s(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),c(e,t)})(t)}var f=0;function h(t){return"__private_"+f+++"_"+t}function y(t,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw new TypeError("attempted to use private field on non-instance");return t}var d,v,l=(function(t){var r=function(t){var r=Object.prototype,e=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},u=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function c(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{c({},"")}catch(t){c=function(t,r,e){return t[r]=e}}function a(t,r,e,n){var u=Object.create((r&&r.prototype instanceof f?r:f).prototype),i=new b(n||[]);return u._invoke=function(t,r,e){var n="suspendedStart";return function(u,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===u)throw i;return{value:void 0,done:!0}}for(e.method=u,e.arg=i;;){var s=e.delegate;if(s){var c=T(s,e);if(c){if(c===p)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var a=o(t,r,e);if("normal"===a.type){if(n=e.done?"completed":"suspendedYield",a.arg===p)continue;return{value:a.arg,done:e.done}}"throw"===a.type&&(n="completed",e.method="throw",e.arg=a.arg)}}}(t,e,i),u}function o(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=a;var p={};function f(){}function h(){}function y(){}var d={};c(d,u,(function(){return this}));var v=Object.getPrototypeOf,l=v&&v(v(x([])));l&&l!==r&&e.call(l,u)&&(d=l);var w=y.prototype=f.prototype=Object.create(d);function E(t){["next","throw","return"].forEach((function(r){c(t,r,(function(t){return this._invoke(r,t)}))}))}function P(t,r){var n;this._invoke=function(u,i){function s(){return new r((function(n,s){!function n(u,i,s,c){var a=o(t[u],t,i);if("throw"!==a.type){var p=a.arg,f=p.value;return f&&"object"==typeof f&&e.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):r.resolve(f).then((function(t){p.value=t,s(p)}),(function(t){return n("throw",t,s,c)}))}c(a.arg)}(u,i,n,s)}))}return n=n?n.then(s,s):s()}}function T(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,T(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=o(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var u=n.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function Y(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function m(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function b(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function x(t){if(t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return i.next=i}}return{next:k}}function k(){return{value:void 0,done:!0}}return h.prototype=y,c(w,"constructor",y),c(y,"constructor",h),h.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===h||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},E(P.prototype),c(P.prototype,i,(function(){return this})),t.AsyncIterator=P,t.async=function(r,e,n,u,i){void 0===i&&(i=Promise);var s=new P(a(r,e,n,u),i);return t.isGeneratorFunction(e)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},E(w),c(w,s,"Generator"),c(w,u,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=x,b.prototype={constructor:b,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(m),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e,n){return s.type="throw",s.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var u=this.tryEntries.length-1;u>=0;--u){var i=this.tryEntries[u],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=e.call(i,"catchLoc"),a=e.call(i,"finallyLoc");if(c&&a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var u=this.tryEntries[n];if(u.tryLoc<=this.prev&&e.call(u,"finallyLoc")&&this.prev<u.finallyLoc){var i=u;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=r,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(s)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),p},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),m(e),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var u=n.arg;m(e)}return u}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:x(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}(v={exports:{}}),v.exports);!function(t){t.CLIENT="client",t.REQUEST="request",t.RESPONSE="response",t.GENERIC="generic"}(d||(d={}));var w=function(t){function r(r){var e;return(e=t.call(this,r.message)||this).errors=[],e.name=e.constructor.name,e.type=r.type||d.GENERIC,e}return i(r,t),r.isApiError=function(t){return t instanceof r&&t.type===d.RESPONSE},r}(p(Error)),E=function(t,r){return"https://"+t.toLowerCase()+"."+(r||"commercelayer.io")+"/api"},P=function(t){var e=new w({message:t.message,type:d.GENERIC});throw r.isAxiosError(t)&&(t.response?(e.type=d.RESPONSE,e.status=t.response.status,e.code=String(e.status),e.errors=t.response.data.errors):e.type=t.request?d.REQUEST:d.CLIENT),e},T=h("accessToken"),Y=h("client"),m=function(){function t(t){Object.defineProperty(this,T,{writable:!0,value:void 0}),Object.defineProperty(this,Y,{writable:!0,value:void 0}),this.baseUrl=E(t.organization,t.domain),y(this,T)[T]=t.accessToken;var e={timeout:t.timeout||3e3};y(this,Y)[Y]=r.create(u({baseURL:this.baseUrl,timeout:3e3,headers:{Accept:"application/vnd.api+json","Content-Type":"application/vnd.api+json",Authorization:"Bearer "+y(this,T)[T]}},e))}t.create=function(r){if(null==r||!r.organization)throw new Error("Undefined 'organization' parameter");if(null==r||!r.accessToken)throw new Error("Undefined 'accessToken' parameter");return new t(r)};var e=t.prototype;return e.config=function(t){var r=y(this,Y)[Y].defaults;t.timeout&&(r.timeout=t.timeout),t.organization&&(this.baseUrl=E(t.organization,t.domain)),t.accessToken&&(y(this,T)[T]=t.accessToken)},e.request=function(){var t=n(l.mark((function t(r,e,n,i){var s,c,a,o;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return s=n?{data:n}:void 0,c=e,a=null!=i&&i.organization?E(i.organization,i.domain):void 0,o=null!=i&&i.accessToken?{Authorization:"Bearer "+i.accessToken}:void 0,t.abrupt("return",y(this,Y)[Y].request(u({method:r,baseURL:a,url:c,data:s,headers:o},i)).then((function(t){return t.data})).catch((function(t){return P(t)})));case 5:case"end":return t.stop()}}),t,this)})));return function(r,e,n,u){return t.apply(this,arguments)}}(),t}(),b=function(t){return t&&t.type&&t.id},x=function(t){t.links&&delete t.links;var r=t.data,e=t.included;return Array.isArray(r)?r.map((function(t){return g(t,e)})):g(r,e)},k=function(t,r){return void 0===r&&(r=[]),r.find((function(r){return t.id===r.id&&t.type===r.type}))},g=function t(r,e){var n=u({id:r.id,type:r.type},r.attributes);return r.relationships&&Object.keys(r.relationships).forEach((function(u){var i=r.relationships[u].data;i?n[u]=Array.isArray(i)?i.map((function(r){return t(k(r,e),e)})):t(k(i,e),e):null===i&&(n[u]=null)})),n},_=function(t){var r={},e={};for(var n in t)if(!["type","id"].includes(n)){var u=t[n];u&&b(u)?e[n]={data:u}:r[n]=u}var i={type:t.type,attributes:r,relationships:e};return b(t)&&(i.id=t.id),i},O=function(t){var r={};return t?(t.include&&(r.include=t.include.join(",")),t.fields&&Object.entries(t.fields).forEach((function(t){r["fields["+t[0]+"]"]=t[1].join(",")})),function(t){return t.filters||t.pageNumber||t.pageSize||t.sort}(t)&&(t.sort&&(r.sort=Array.isArray(t.sort)?t.sort.join(","):Object.entries(t.sort).map((function(t){return("desc"===t[1]?"-":"")+t[0]})).join(",")),t.pageNumber&&(r["page[number]"]=String(t.pageNumber)),t.pageSize&&(r["page[size]"]=String(t.pageSize)),t.filters&&Object.entries(t.filters).forEach((function(t){r["filter[q]["+t[0]+"]"]=String(t[1])}))),r):r},j=function(t){function r(r,e){var n;return(n=t.call.apply(t,[this].concat(e))||this).meta=r,n}i(r,t);var e=r.prototype;return e.first=function(){return this.length?this[0]:void 0},e.last=function(){return this.length?this[this.length-1]:void 0},e.get=function(t){return this.length&&t>=0?this[t]:void 0},r}(p(Array)),S=h("client"),L=h("config"),C=function(){function t(t){Object.defineProperty(this,S,{writable:!0,value:void 0}),Object.defineProperty(this,L,{writable:!0,value:void 0}),y(this,L)[L]={},y(this,S)[S]=m.create(t),this.config(t)}var r=t.prototype;return r.config=function(t){t&&y(this,S)[S].config(t)},r.singleton=function(){var t=n(l.mark((function t(r,e,n){var i,s;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=O(e),t.next=3,y(this,S)[S].request("get",""+r.type,void 0,u({},n,{params:i}));case 3:return s=x(t.sent),t.abrupt("return",s);case 6:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),r.retrieve=function(){var t=n(l.mark((function t(r,e,n){var i,s;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=O(e),t.next=3,y(this,S)[S].request("get",r.type+"/"+r.id,void 0,u({},n,{params:i}));case 3:return s=x(t.sent),t.abrupt("return",s);case 6:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),r.list=function(){var t=n(l.mark((function t(r,e,n){var i,s,c,a,o,p;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=O(e),t.next=3,y(this,S)[S].request("get",""+r.type,void 0,u({},n,{params:c}));case 3:return o=x(a=t.sent),p={pageCount:Number(null==(i=a.meta)?void 0:i.page_count),recordCount:Number(null==(s=a.meta)?void 0:s.record_count),currentPage:(null==e?void 0:e.pageNumber)||1,recordsPerPage:(null==e?void 0:e.pageSize)||10},t.abrupt("return",new j(p,o));case 7:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),r.create=function(){var t=n(l.mark((function t(r,e){var n,u;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=_(r),t.next=3,y(this,S)[S].request("post",r.type,n,e);case 3:return u=x(t.sent),t.abrupt("return",u);case 6:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),r.update=function(){var t=n(l.mark((function t(r,e){var n,u;return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=_(r),t.next=3,y(this,S)[S].request("patch",r.type+"/"+r.id,n,e);case 3:return u=x(t.sent),t.abrupt("return",u);case 6:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),r.delete=function(){var t=n(l.mark((function t(r,e){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:y(this,S)[S].request("delete",r.type+"/"+r.id,void 0,e);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),t}(),z=function(t){this.resources=t},A=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAddress=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);A.TYPE="addresses";var R=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAdjustment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);R.TYPE="adjustments";var G=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAdyenGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);G.TYPE="adyen_gateways";var N=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAdyenPayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);N.TYPE="adyen_payments";var I=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.retrieve=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.singleton({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isApplication=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);I.TYPE="application";var q=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAttachment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);q.TYPE="attachments";var F=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAuthorization=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);F.TYPE="authorizations";var M=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAvalaraAccount=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);M.TYPE="avalara_accounts";var B=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isBillingInfoValidationRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);B.TYPE="billing_info_validation_rules";var U=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isBingGeocoder=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);U.TYPE="bing_geocoders";var D=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isBraintreeGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);D.TYPE="braintree_gateways";var Q=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isBraintreePayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Q.TYPE="braintree_payments";var V=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isBundle=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);V.TYPE="bundles";var W=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCapture=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);W.TYPE="captures";var Z=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isCarrierAccount=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Z.TYPE="carrier_accounts";var H=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCheckoutComGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);H.TYPE="checkout_com_gateways";var J=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCheckoutComPayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);J.TYPE="checkout_com_payments";var K=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCouponCodesPromotionRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);K.TYPE="coupon_codes_promotion_rules";var X=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCoupon=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);X.TYPE="coupons";var $=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomerAddress=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);$.TYPE="customer_addresses";var tt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomerGroup=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);tt.TYPE="customer_groups";var rt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomerPasswordReset=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);rt.TYPE="customer_password_resets";var et=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomerPaymentSource=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);et.TYPE="customer_payment_sources";var nt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomerSubscription=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);nt.TYPE="customer_subscriptions";var ut=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomer=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);ut.TYPE="customers";var it=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isDeliveryLeadTime=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);it.TYPE="delivery_lead_times";var st=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isExternalGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);st.TYPE="external_gateways";var ct=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isExternalPayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);ct.TYPE="external_payments";var at=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isExternalPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);at.TYPE="external_promotions";var ot=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isExternalTaxCalculator=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);ot.TYPE="external_tax_calculators";var pt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isFixedAmountPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);pt.TYPE="fixed_amount_promotions";var ft=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isFreeShippingPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);ft.TYPE="free_shipping_promotions";var ht=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isGeocoder=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);ht.TYPE="geocoders";var yt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isGiftCardRecipient=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);yt.TYPE="gift_card_recipients";var dt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isGiftCard=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);dt.TYPE="gift_cards";var vt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isGoogleGeocoder=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);vt.TYPE="google_geocoders";var lt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isImport=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);lt.TYPE="imports";var wt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isInStockSubscription=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);wt.TYPE="in_stock_subscriptions";var Et=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isInventoryModel=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Et.TYPE="inventory_models";var Pt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isInventoryReturnLocation=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Pt.TYPE="inventory_return_locations";var Tt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isInventoryStockLocation=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Tt.TYPE="inventory_stock_locations";var Yt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isLineItemOption=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Yt.TYPE="line_item_options";var mt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isLineItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);mt.TYPE="line_items";var bt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isManualGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);bt.TYPE="manual_gateways";var xt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isManualTaxCalculator=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);xt.TYPE="manual_tax_calculators";var kt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isMarket=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);kt.TYPE="markets";var gt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isMerchant=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);gt.TYPE="merchants";var _t=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrderAmountPromotionRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);_t.TYPE="order_amount_promotion_rules";var Ot=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrderCopy=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Ot.TYPE="order_copies";var jt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrderSubscription=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);jt.TYPE="order_subscriptions";var St=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrder=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);St.TYPE="orders";var Lt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.retrieve=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.singleton({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrganization=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Lt.TYPE="organization";var Ct=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPackage=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Ct.TYPE="packages";var zt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isParcelLineItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);zt.TYPE="parcel_line_items";var At=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isParcel=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);At.TYPE="parcels";var Rt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPaymentGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Rt.TYPE="payment_gateways";var Gt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPaymentMethod=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Gt.TYPE="payment_methods";var Nt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPaypalGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Nt.TYPE="paypal_gateways";var It=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPaypalPayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);It.TYPE="paypal_payments";var qt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPercentageDiscountPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);qt.TYPE="percentage_discount_promotions";var Ft=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPriceList=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Ft.TYPE="price_lists";var Mt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPrice=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Mt.TYPE="prices";var Bt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPromotionRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Bt.TYPE="promotion_rules";var Ut=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Ut.TYPE="promotions";var Dt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isRefund=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Dt.TYPE="refunds";var Qt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isReturnLineItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Qt.TYPE="return_line_items";var Vt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isReturn=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Vt.TYPE="returns";var Wt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isShipment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Wt.TYPE="shipments";var Zt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isShippingCategory=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Zt.TYPE="shipping_categories";var Ht=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isShippingMethod=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Ht.TYPE="shipping_methods";var Jt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isShippingZone=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Jt.TYPE="shipping_zones";var Kt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isSkuListItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Kt.TYPE="sku_list_items";var Xt=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isSkuListPromotionRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);Xt.TYPE="sku_list_promotion_rules";var $t=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isSkuList=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);$t.TYPE="sku_lists";var tr=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isSkuOption=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);tr.TYPE="sku_options";var rr=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isSku=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);rr.TYPE="skus";var er=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isStockItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);er.TYPE="stock_items";var nr=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isStockLineItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);nr.TYPE="stock_line_items";var ur=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isStockLocation=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);ur.TYPE="stock_locations";var ir=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isStockTransfer=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);ir.TYPE="stock_transfers";var sr=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isStripeGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);sr.TYPE="stripe_gateways";var cr=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isStripePayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);cr.TYPE="stripe_payments";var ar=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isTaxCalculator=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);ar.TYPE="tax_calculators";var or=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isTaxCategory=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);or.TYPE="tax_categories";var pr=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isTaxRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);pr.TYPE="tax_rules";var fr=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isTaxjarAccount=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);fr.TYPE="taxjar_accounts";var hr=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isTransaction=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);hr.TYPE="transactions";var yr=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isVoid=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);yr.TYPE="voids";var dr=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isWebhook=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);dr.TYPE="webhooks";var vr=function(t){function r(){return t.apply(this,arguments)||this}i(r,t);var e=r.prototype;return e.list=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(Object.assign(e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(l.mark((function t(e,n,u){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(u({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(l.mark((function t(e,n){return l.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.resources.delete({type:r.TYPE,id:e},n);case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isWireTransfer=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(z);vr.TYPE="wire_transfers";var lr=["addresses","adjustments","adyen_gateways","adyen_payments","application","attachments","authorizations","avalara_accounts","billing_info_validation_rules","bing_geocoders","braintree_gateways","braintree_payments","bundles","captures","carrier_accounts","checkout_com_gateways","checkout_com_payments","coupon_codes_promotion_rules","coupons","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","free_shipping_promotions","geocoders","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","line_item_options","line_items","manual_gateways","manual_tax_calculators","markets","merchants","order_amount_promotion_rules","order_copies","order_subscriptions","orders","organization","packages","parcel_line_items","parcels","payment_gateways","payment_methods","paypal_gateways","paypal_payments","percentage_discount_promotions","price_lists","prices","promotion_rules","promotions","refunds","return_line_items","returns","shipments","shipping_categories","shipping_methods","shipping_zones","sku_list_items","sku_list_promotion_rules","sku_lists","sku_options","skus","stock_items","stock_line_items","stock_locations","stock_transfers","stripe_gateways","stripe_payments","tax_calculators","tax_categories","tax_rules","taxjar_accounts","transactions","voids","webhooks","wire_transfers"],wr=h("adapter"),Er=h("organization"),Pr=function(){function t(t){Object.defineProperty(this,wr,{writable:!0,value:void 0}),Object.defineProperty(this,Er,{writable:!0,value:void 0}),y(this,wr)[wr]=new C(t),y(this,Er)[Er]=t.organization,this.addresses=new A(y(this,wr)[wr]),this.adjustments=new R(y(this,wr)[wr]),this.adyen_gateways=new G(y(this,wr)[wr]),this.adyen_payments=new N(y(this,wr)[wr]),this.application=new I(y(this,wr)[wr]),this.attachments=new q(y(this,wr)[wr]),this.authorizations=new F(y(this,wr)[wr]),this.avalara_accounts=new M(y(this,wr)[wr]),this.billing_info_validation_rules=new B(y(this,wr)[wr]),this.bing_geocoders=new U(y(this,wr)[wr]),this.braintree_gateways=new D(y(this,wr)[wr]),this.braintree_payments=new Q(y(this,wr)[wr]),this.bundles=new V(y(this,wr)[wr]),this.captures=new W(y(this,wr)[wr]),this.carrier_accounts=new Z(y(this,wr)[wr]),this.checkout_com_gateways=new H(y(this,wr)[wr]),this.checkout_com_payments=new J(y(this,wr)[wr]),this.coupon_codes_promotion_rules=new K(y(this,wr)[wr]),this.coupons=new X(y(this,wr)[wr]),this.customer_addresses=new $(y(this,wr)[wr]),this.customer_groups=new tt(y(this,wr)[wr]),this.customer_password_resets=new rt(y(this,wr)[wr]),this.customer_payment_sources=new et(y(this,wr)[wr]),this.customer_subscriptions=new nt(y(this,wr)[wr]),this.customers=new ut(y(this,wr)[wr]),this.delivery_lead_times=new it(y(this,wr)[wr]),this.external_gateways=new st(y(this,wr)[wr]),this.external_payments=new ct(y(this,wr)[wr]),this.external_promotions=new at(y(this,wr)[wr]),this.external_tax_calculators=new ot(y(this,wr)[wr]),this.fixed_amount_promotions=new pt(y(this,wr)[wr]),this.free_shipping_promotions=new ft(y(this,wr)[wr]),this.geocoders=new ht(y(this,wr)[wr]),this.gift_card_recipients=new yt(y(this,wr)[wr]),this.gift_cards=new dt(y(this,wr)[wr]),this.google_geocoders=new vt(y(this,wr)[wr]),this.imports=new lt(y(this,wr)[wr]),this.in_stock_subscriptions=new wt(y(this,wr)[wr]),this.inventory_models=new Et(y(this,wr)[wr]),this.inventory_return_locations=new Pt(y(this,wr)[wr]),this.inventory_stock_locations=new Tt(y(this,wr)[wr]),this.line_item_options=new Yt(y(this,wr)[wr]),this.line_items=new mt(y(this,wr)[wr]),this.manual_gateways=new bt(y(this,wr)[wr]),this.manual_tax_calculators=new xt(y(this,wr)[wr]),this.markets=new kt(y(this,wr)[wr]),this.merchants=new gt(y(this,wr)[wr]),this.order_amount_promotion_rules=new _t(y(this,wr)[wr]),this.order_copies=new Ot(y(this,wr)[wr]),this.order_subscriptions=new jt(y(this,wr)[wr]),this.orders=new St(y(this,wr)[wr]),this.organization=new Lt(y(this,wr)[wr]),this.packages=new Ct(y(this,wr)[wr]),this.parcel_line_items=new zt(y(this,wr)[wr]),this.parcels=new At(y(this,wr)[wr]),this.payment_gateways=new Rt(y(this,wr)[wr]),this.payment_methods=new Gt(y(this,wr)[wr]),this.paypal_gateways=new Nt(y(this,wr)[wr]),this.paypal_payments=new It(y(this,wr)[wr]),this.percentage_discount_promotions=new qt(y(this,wr)[wr]),this.price_lists=new Ft(y(this,wr)[wr]),this.prices=new Mt(y(this,wr)[wr]),this.promotion_rules=new Bt(y(this,wr)[wr]),this.promotions=new Ut(y(this,wr)[wr]),this.refunds=new Dt(y(this,wr)[wr]),this.return_line_items=new Qt(y(this,wr)[wr]),this.returns=new Vt(y(this,wr)[wr]),this.shipments=new Wt(y(this,wr)[wr]),this.shipping_categories=new Zt(y(this,wr)[wr]),this.shipping_methods=new Ht(y(this,wr)[wr]),this.shipping_zones=new Jt(y(this,wr)[wr]),this.sku_list_items=new Kt(y(this,wr)[wr]),this.sku_list_promotion_rules=new Xt(y(this,wr)[wr]),this.sku_lists=new $t(y(this,wr)[wr]),this.sku_options=new tr(y(this,wr)[wr]),this.skus=new rr(y(this,wr)[wr]),this.stock_items=new er(y(this,wr)[wr]),this.stock_line_items=new nr(y(this,wr)[wr]),this.stock_locations=new ur(y(this,wr)[wr]),this.stock_transfers=new ir(y(this,wr)[wr]),this.stripe_gateways=new sr(y(this,wr)[wr]),this.stripe_payments=new cr(y(this,wr)[wr]),this.tax_calculators=new ar(y(this,wr)[wr]),this.tax_categories=new or(y(this,wr)[wr]),this.tax_rules=new pr(y(this,wr)[wr]),this.taxjar_accounts=new fr(y(this,wr)[wr]),this.transactions=new hr(y(this,wr)[wr]),this.voids=new yr(y(this,wr)[wr]),this.webhooks=new dr(y(this,wr)[wr]),this.wire_transfers=new vr(y(this,wr)[wr])}var r,e=t.prototype;return e.config=function(t){t&&(t.organization&&(y(this,Er)[Er]=t.organization),y(this,wr)[wr].config(t))},e.resources=function(){return lr},e.isApiError=function(t){return w.isApiError(t)},(r=[{key:"currentOrganization",get:function(){return y(this,Er)[Er]}}])&&function(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,r),t}();exports.default=function(t){return new Pr(t)};
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,r=(t=require("axios"))&&"object"==typeof t&&"default"in t?t.default:t;function e(t,r,e,n,i,u,s){try{var a=t[u](s),c=a.value}catch(t){return void e(t)}a.done?r(c):Promise.resolve(c).then(n,i)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(i,u){var s=t.apply(r,n);function a(t){e(s,i,u,a,c,"next",t)}function c(t){e(s,i,u,a,c,"throw",t)}a(void 0)}))}}function i(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function u(t,r,e){return r&&i(t.prototype,r),e&&i(t,e),t}function s(){return(s=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t}).apply(this,arguments)}function a(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,o(t,r)}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(t,r){return(o=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t})(t,r)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function f(t,r,e){return(f=p()?Reflect.construct:function(t,r,e){var n=[null];n.push.apply(n,r);var i=new(Function.bind.apply(t,n));return e&&o(i,e.prototype),i}).apply(null,arguments)}function h(t){var r="function"==typeof Map?new Map:void 0;return(h=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return f(t,arguments,c(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),o(e,t)})(t)}var y=0;function d(t){return"__private_"+y+++"_"+t}function l(t,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw new TypeError("attempted to use private field on non-instance");return t}var v,w,m=(function(t){var r=function(t){var r=Object.prototype,e=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",u=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function a(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{a({},"")}catch(t){a=function(t,r,e){return t[r]=e}}function c(t,r,e,n){var i=Object.create((r&&r.prototype instanceof f?r:f).prototype),u=new x(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(i,u){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw u;return{value:void 0,done:!0}}for(e.method=i,e.arg=u;;){var s=e.delegate;if(s){var a=P(s,e);if(a){if(a===p)continue;return a}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var c=o(t,r,e);if("normal"===c.type){if(n=e.done?"completed":"suspendedYield",c.arg===p)continue;return{value:c.arg,done:e.done}}"throw"===c.type&&(n="completed",e.method="throw",e.arg=c.arg)}}}(t,e,u),i}function o(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var p={};function f(){}function h(){}function y(){}var d={};a(d,i,(function(){return this}));var l=Object.getPrototypeOf,v=l&&l(l(_([])));v&&v!==r&&e.call(v,i)&&(d=v);var w=y.prototype=f.prototype=Object.create(d);function m(t){["next","throw","return"].forEach((function(r){a(t,r,(function(t){return this._invoke(r,t)}))}))}function E(t,r){var n;this._invoke=function(i,u){function s(){return new r((function(n,s){!function n(i,u,s,a){var c=o(t[i],t,u);if("throw"!==c.type){var p=c.arg,f=p.value;return f&&"object"==typeof f&&e.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,s,a)}),(function(t){n("throw",t,s,a)})):r.resolve(f).then((function(t){p.value=t,s(p)}),(function(t){return n("throw",t,s,a)}))}a(c.arg)}(i,u,n,s)}))}return n=n?n.then(s,s):s()}}function P(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,P(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=o(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var i=n.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function T(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function Y(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function _(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,u=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return u.next=u}}return{next:k}}function k(){return{value:void 0,done:!0}}return h.prototype=y,a(w,"constructor",y),a(y,"constructor",h),h.displayName=a(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===h||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,a(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},m(E.prototype),a(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(r,e,n,i,u){void 0===u&&(u=Promise);var s=new E(c(r,e,n,i),u);return t.isGeneratorFunction(e)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},m(w),a(w,s,"Generator"),a(w,i,(function(){return this})),a(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=_,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(Y),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e,n){return s.type="throw",s.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],s=u.completion;if("root"===u.tryLoc)return n("end");if(u.tryLoc<=this.prev){var a=e.call(u,"catchLoc"),c=e.call(u,"finallyLoc");if(a&&c){if(this.prev<u.catchLoc)return n(u.catchLoc,!0);if(this.prev<u.finallyLoc)return n(u.finallyLoc)}else if(a){if(this.prev<u.catchLoc)return n(u.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return n(u.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&e.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var u=i;break}}u&&("break"===t||"continue"===t)&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var s=u?u.completion:{};return s.type=t,s.arg=r,u?(this.method="next",this.next=u.finallyLoc,p):this.complete(s)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),p},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),Y(e),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var i=n.arg;Y(e)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:_(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}(w={exports:{}}),w.exports);!function(t){t.CLIENT="client",t.REQUEST="request",t.RESPONSE="response",t.GENERIC="generic"}(v||(v={}));var E=function(t){function r(r){var e;return(e=t.call(this,r.message)||this).errors=[],e.name=e.constructor.name,e.type=r.type||v.GENERIC,e}return a(r,t),r.isApiError=function(t){return t&&"ApiError"===t.name&&t.type===v.RESPONSE},r}(h(Error)),P=function(t,r){return"https://"+t.toLowerCase()+"."+(r||"commercelayer.io")+"/api"},T=function(t){var e=new E({message:t.message,type:v.GENERIC});throw r.isAxiosError(t)&&(t.response?(e.type=v.RESPONSE,e.status=t.response.status,e.code=String(e.status),e.errors=t.response.data.errors):e.type=t.request?v.REQUEST:v.CLIENT),e},Y=d("accessToken"),x=d("client"),_=function(){function t(t){Object.defineProperty(this,Y,{writable:!0,value:void 0}),Object.defineProperty(this,x,{writable:!0,value:void 0}),this.baseUrl=P(t.organization,t.domain),l(this,Y)[Y]=t.accessToken;var e={timeout:t.timeout||3e3};l(this,x)[x]=r.create(s({baseURL:this.baseUrl,timeout:3e3,headers:{Accept:"application/vnd.api+json","Content-Type":"application/vnd.api+json",Authorization:"Bearer "+l(this,Y)[Y]}},e)),this.interceptors=l(this,x)[x].interceptors}t.create=function(r){if(null==r||!r.organization)throw new Error("Undefined 'organization' parameter");if(null==r||!r.accessToken)throw new Error("Undefined 'accessToken' parameter");return new t(r)};var e=t.prototype;return e.config=function(t){var r=l(this,x)[x].defaults;t.timeout&&(r.timeout=t.timeout),t.organization&&(this.baseUrl=P(t.organization,t.domain)),t.accessToken&&(l(this,Y)[Y]=t.accessToken)},e.request=function(){var t=n(m.mark((function t(r,e,n,i){var u,a,c,o;return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=n?{data:n}:void 0,a=e,c=null!=i&&i.organization?P(i.organization,i.domain):void 0,o=null!=i&&i.accessToken?{Authorization:"Bearer "+i.accessToken}:void 0,t.abrupt("return",l(this,x)[x].request(s({method:r,baseURL:c,url:a,data:u,headers:o},i)).then((function(t){return t.data})).catch((function(t){return T(t)})));case 5:case"end":return t.stop()}}),t,this)})));return function(r,e,n,i){return t.apply(this,arguments)}}(),t}(),k=function(t){return t&&t.type&&t.id},b=function(t){t.links&&delete t.links;var r=t.data,e=t.included;return Array.isArray(r)?r.map((function(t){return j(t,e)})):j(r,e)},g=function(t,r){return void 0===r&&(r=[]),r.find((function(r){return t.id===r.id&&t.type===r.type}))},j=function t(r,e){var n=s({id:r.id,type:r.type},r.attributes);return r.relationships&&Object.keys(r.relationships).forEach((function(i){var u=r.relationships[i].data;u?n[i]=Array.isArray(u)?u.map((function(r){return t(g(r,e),e)})):t(g(u,e),e):null===u&&(n[i]=null)})),n},O=function(t){var r={},e={};for(var n in t)if(!["type","id"].includes(n)){var i=t[n];i&&(k(i)||Array.isArray(i)&&k(i[0]))?e[n]={data:i}:r[n]=i}var u={type:t.type,attributes:r,relationships:e};return k(t)&&(u.id=t.id),u},S=function(t){var r={};return t?(t.include&&(r.include=t.include.join(",")),t.fields&&Object.entries(t.fields).forEach((function(t){r["fields["+t[0]+"]"]=t[1].join(",")})),function(t){return t.filters||t.pageNumber||t.pageSize||t.sort}(t)&&(t.sort&&(r.sort=Array.isArray(t.sort)?t.sort.join(","):Object.entries(t.sort).map((function(t){return("desc"===t[1]?"-":"")+t[0]})).join(",")),t.pageNumber&&(r["page[number]"]=String(t.pageNumber)),t.pageSize&&(r["page[size]"]=String(t.pageSize)),t.filters&&Object.entries(t.filters).forEach((function(t){r["filter[q]["+t[0]+"]"]=String(t[1])}))),r):r},L=function(t){function r(r,e){var n;return(n=t.call.apply(t,[this].concat(e))||this).meta=r,n}a(r,t);var e=r.prototype;return e.first=function(){return this.length?this[0]:void 0},e.last=function(){return this.length?this[this.length-1]:void 0},e.get=function(t){return this.length&&t>=0?this[t]:void 0},r}(h(Array)),z=d("client"),A=d("config"),C=function(){function t(t){Object.defineProperty(this,z,{writable:!0,value:void 0}),Object.defineProperty(this,A,{writable:!0,value:void 0}),l(this,A)[A]={},l(this,z)[z]=_.create(t),this.config(t)}var r=t.prototype;return r.config=function(t){t&&l(this,z)[z].config(t)},r.singleton=function(){var t=n(m.mark((function t(r,e,n){var i,u;return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=S(e),null!=n&&n.params&&Object.assign(i,null==n?void 0:n.params),t.next=4,l(this,z)[z].request("get",""+r.type,void 0,s({},n,{params:i}));case 4:return u=b(t.sent),t.abrupt("return",u);case 7:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),r.retrieve=function(){var t=n(m.mark((function t(r,e,n){var i,u;return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=S(e),null!=n&&n.params&&Object.assign(i,null==n?void 0:n.params),t.next=4,l(this,z)[z].request("get",r.type+"/"+r.id,void 0,s({},n,{params:i}));case 4:return u=b(t.sent),t.abrupt("return",u);case 7:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),r.list=function(){var t=n(m.mark((function t(r,e,n){var i,u,a,c,o,p;return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=S(e),null!=n&&n.params&&Object.assign(a,null==n?void 0:n.params),t.next=4,l(this,z)[z].request("get",""+r.type,void 0,s({},n,{params:a}));case 4:return o=b(c=t.sent),p={pageCount:Number(null==(i=c.meta)?void 0:i.page_count),recordCount:Number(null==(u=c.meta)?void 0:u.record_count),currentPage:(null==e?void 0:e.pageNumber)||1,recordsPerPage:(null==e?void 0:e.pageSize)||10},t.abrupt("return",new L(p,o));case 8:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),r.create=function(){var t=n(m.mark((function t(r,e){var n,i;return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=O(r),t.next=3,l(this,z)[z].request("post",r.type,n,e);case 3:return i=b(t.sent),t.abrupt("return",i);case 6:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),r.update=function(){var t=n(m.mark((function t(r,e){var n,i;return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=O(r),t.next=3,l(this,z)[z].request("patch",r.type+"/"+r.id,n,e);case 3:return i=b(t.sent),t.abrupt("return",i);case 6:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),r.delete=function(){var t=n(m.mark((function t(r,e){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l(this,z)[z].request("delete",r.type+"/"+r.id,void 0,e);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),u(t,[{key:"interceptors",get:function(){return l(this,z)[z].interceptors}}]),t}(),R=function(t){this.resources=t},G=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAddress=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);G.TYPE="addresses";var I=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAdjustment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);I.TYPE="adjustments";var N=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAdyenGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);N.TYPE="adyen_gateways";var q=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAdyenPayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);q.TYPE="adyen_payments";var F=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.retrieve=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.singleton({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isApplication=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);F.TYPE="application";var M=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAttachment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);M.TYPE="attachments";var B=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAuthorization=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);B.TYPE="authorizations";var U=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAvalaraAccount=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);U.TYPE="avalara_accounts";var D=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isBillingInfoValidationRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);D.TYPE="billing_info_validation_rules";var Q=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isBingGeocoder=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Q.TYPE="bing_geocoders";var V=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isBraintreeGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);V.TYPE="braintree_gateways";var W=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isBraintreePayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);W.TYPE="braintree_payments";var Z=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isBundle=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Z.TYPE="bundles";var H=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCapture=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);H.TYPE="captures";var J=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isCarrierAccount=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);J.TYPE="carrier_accounts";var K=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCheckoutComGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);K.TYPE="checkout_com_gateways";var X=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCheckoutComPayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);X.TYPE="checkout_com_payments";var $=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCouponCodesPromotionRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);$.TYPE="coupon_codes_promotion_rules";var tt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCoupon=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);tt.TYPE="coupons";var rt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomerAddress=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);rt.TYPE="customer_addresses";var et=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomerGroup=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);et.TYPE="customer_groups";var nt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomerPasswordReset=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);nt.TYPE="customer_password_resets";var it=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomerPaymentSource=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);it.TYPE="customer_payment_sources";var ut=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomerSubscription=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);ut.TYPE="customer_subscriptions";var st=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomer=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);st.TYPE="customers";var at=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isDeliveryLeadTime=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);at.TYPE="delivery_lead_times";var ct=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isExternalGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);ct.TYPE="external_gateways";var ot=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isExternalPayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);ot.TYPE="external_payments";var pt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isExternalPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);pt.TYPE="external_promotions";var ft=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isExternalTaxCalculator=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);ft.TYPE="external_tax_calculators";var ht=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isFixedAmountPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);ht.TYPE="fixed_amount_promotions";var yt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isFreeShippingPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);yt.TYPE="free_shipping_promotions";var dt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isGeocoder=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);dt.TYPE="geocoders";var lt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isGiftCardRecipient=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);lt.TYPE="gift_card_recipients";var vt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isGiftCard=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);vt.TYPE="gift_cards";var wt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isGoogleGeocoder=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);wt.TYPE="google_geocoders";var mt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isImport=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);mt.TYPE="imports";var Et=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isInStockSubscription=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Et.TYPE="in_stock_subscriptions";var Pt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isInventoryModel=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Pt.TYPE="inventory_models";var Tt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isInventoryReturnLocation=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Tt.TYPE="inventory_return_locations";var Yt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isInventoryStockLocation=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Yt.TYPE="inventory_stock_locations";var xt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isLineItemOption=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);xt.TYPE="line_item_options";var _t=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isLineItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);_t.TYPE="line_items";var kt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isManualGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);kt.TYPE="manual_gateways";var bt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isManualTaxCalculator=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);bt.TYPE="manual_tax_calculators";var gt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isMarket=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);gt.TYPE="markets";var jt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isMerchant=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);jt.TYPE="merchants";var Ot=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrderAmountPromotionRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Ot.TYPE="order_amount_promotion_rules";var St=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrderCopy=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);St.TYPE="order_copies";var Lt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrderSubscription=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Lt.TYPE="order_subscriptions";var zt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrder=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);zt.TYPE="orders";var At=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.retrieve=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.singleton({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrganization=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);At.TYPE="organization";var Ct=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPackage=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Ct.TYPE="packages";var Rt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isParcelLineItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Rt.TYPE="parcel_line_items";var Gt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isParcel=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Gt.TYPE="parcels";var It=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPaymentGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);It.TYPE="payment_gateways";var Nt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPaymentMethod=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Nt.TYPE="payment_methods";var qt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPaypalGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);qt.TYPE="paypal_gateways";var Ft=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPaypalPayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Ft.TYPE="paypal_payments";var Mt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPercentageDiscountPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Mt.TYPE="percentage_discount_promotions";var Bt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPriceList=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Bt.TYPE="price_lists";var Ut=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPrice=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Ut.TYPE="prices";var Dt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPromotionRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Dt.TYPE="promotion_rules";var Qt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Qt.TYPE="promotions";var Vt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isRefund=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Vt.TYPE="refunds";var Wt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isReturnLineItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Wt.TYPE="return_line_items";var Zt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isReturn=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Zt.TYPE="returns";var Ht=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isShipment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Ht.TYPE="shipments";var Jt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isShippingCategory=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Jt.TYPE="shipping_categories";var Kt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isShippingMethod=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Kt.TYPE="shipping_methods";var Xt=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isShippingZone=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);Xt.TYPE="shipping_zones";var $t=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isSkuListItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);$t.TYPE="sku_list_items";var tr=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isSkuListPromotionRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);tr.TYPE="sku_list_promotion_rules";var rr=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isSkuList=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);rr.TYPE="sku_lists";var er=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isSkuOption=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);er.TYPE="sku_options";var nr=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isSku=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);nr.TYPE="skus";var ir=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isStockItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);ir.TYPE="stock_items";var ur=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isStockLineItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);ur.TYPE="stock_line_items";var sr=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isStockLocation=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);sr.TYPE="stock_locations";var ar=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isStockTransfer=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);ar.TYPE="stock_transfers";var cr=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isStripeGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);cr.TYPE="stripe_gateways";var or=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isStripePayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);or.TYPE="stripe_payments";var pr=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isTaxCalculator=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);pr.TYPE="tax_calculators";var fr=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isTaxCategory=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);fr.TYPE="tax_categories";var hr=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isTaxRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);hr.TYPE="tax_rules";var yr=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isTaxjarAccount=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);yr.TYPE="taxjar_accounts";var dr=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isTransaction=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);dr.TYPE="transactions";var lr=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isVoid=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);lr.TYPE="voids";var vr=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isWebhook=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);vr.TYPE="webhooks";var wr=function(t){function r(){return t.apply(this,arguments)||this}a(r,t);var e=r.prototype;return e.list=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(m.mark((function t(e,n,i){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,i));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(m.mark((function t(e,n){return m.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isWireTransfer=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},r}(R);wr.TYPE="wire_transfers";var mr={addresses:{name:"address",type:"addresses",api:"addresses"},adjustments:{name:"adjustment",type:"adjustments",api:"adjustments"},adyen_gateways:{name:"adyen_gateway",type:"adyen_gateways",api:"adyen_gateways"},adyen_payments:{name:"adyen_payment",type:"adyen_payments",api:"adyen_payments"},application:{name:"application",type:"application",api:"application"},attachments:{name:"attachment",type:"attachments",api:"attachments"},authorizations:{name:"authorization",type:"authorizations",api:"authorizations"},avalara_accounts:{name:"avalara_account",type:"avalara_accounts",api:"avalara_accounts"},billing_info_validation_rules:{name:"billing_info_validation_rule",type:"billing_info_validation_rules",api:"billing_info_validation_rules"},bing_geocoders:{name:"bing_geocoder",type:"bing_geocoders",api:"bing_geocoders"},braintree_gateways:{name:"braintree_gateway",type:"braintree_gateways",api:"braintree_gateways"},braintree_payments:{name:"braintree_payment",type:"braintree_payments",api:"braintree_payments"},bundles:{name:"bundle",type:"bundles",api:"bundles"},captures:{name:"capture",type:"captures",api:"captures"},carrier_accounts:{name:"carrier_account",type:"carrier_accounts",api:"carrier_accounts"},checkout_com_gateways:{name:"checkout_com_gateway",type:"checkout_com_gateways",api:"checkout_com_gateways"},checkout_com_payments:{name:"checkout_com_payment",type:"checkout_com_payments",api:"checkout_com_payments"},coupon_codes_promotion_rules:{name:"coupon_codes_promotion_rule",type:"coupon_codes_promotion_rules",api:"coupon_codes_promotion_rules"},coupons:{name:"coupon",type:"coupons",api:"coupons"},customer_addresses:{name:"customer_address",type:"customer_addresses",api:"customer_addresses"},customer_groups:{name:"customer_group",type:"customer_groups",api:"customer_groups"},customer_password_resets:{name:"customer_password_reset",type:"customer_password_resets",api:"customer_password_resets"},customer_payment_sources:{name:"customer_payment_source",type:"customer_payment_sources",api:"customer_payment_sources"},customer_subscriptions:{name:"customer_subscription",type:"customer_subscriptions",api:"customer_subscriptions"},customers:{name:"customer",type:"customers",api:"customers"},delivery_lead_times:{name:"delivery_lead_time",type:"delivery_lead_times",api:"delivery_lead_times"},external_gateways:{name:"external_gateway",type:"external_gateways",api:"external_gateways"},external_payments:{name:"external_payment",type:"external_payments",api:"external_payments"},external_promotions:{name:"external_promotion",type:"external_promotions",api:"external_promotions"},external_tax_calculators:{name:"external_tax_calculator",type:"external_tax_calculators",api:"external_tax_calculators"},fixed_amount_promotions:{name:"fixed_amount_promotion",type:"fixed_amount_promotions",api:"fixed_amount_promotions"},free_shipping_promotions:{name:"free_shipping_promotion",type:"free_shipping_promotions",api:"free_shipping_promotions"},geocoders:{name:"geocoder",type:"geocoders",api:"geocoders"},gift_card_recipients:{name:"gift_card_recipient",type:"gift_card_recipients",api:"gift_card_recipients"},gift_cards:{name:"gift_card",type:"gift_cards",api:"gift_cards"},google_geocoders:{name:"google_geocoder",type:"google_geocoders",api:"google_geocoders"},imports:{name:"import",type:"imports",api:"imports"},in_stock_subscriptions:{name:"in_stock_subscription",type:"in_stock_subscriptions",api:"in_stock_subscriptions"},inventory_models:{name:"inventory_model",type:"inventory_models",api:"inventory_models"},inventory_return_locations:{name:"inventory_return_location",type:"inventory_return_locations",api:"inventory_return_locations"},inventory_stock_locations:{name:"inventory_stock_location",type:"inventory_stock_locations",api:"inventory_stock_locations"},line_item_options:{name:"line_item_option",type:"line_item_options",api:"line_item_options"},line_items:{name:"line_item",type:"line_items",api:"line_items"},manual_gateways:{name:"manual_gateway",type:"manual_gateways",api:"manual_gateways"},manual_tax_calculators:{name:"manual_tax_calculator",type:"manual_tax_calculators",api:"manual_tax_calculators"},markets:{name:"market",type:"markets",api:"markets"},merchants:{name:"merchant",type:"merchants",api:"merchants"},order_amount_promotion_rules:{name:"order_amount_promotion_rule",type:"order_amount_promotion_rules",api:"order_amount_promotion_rules"},order_copies:{name:"order_copy",type:"order_copies",api:"order_copies"},order_subscriptions:{name:"order_subscription",type:"order_subscriptions",api:"order_subscriptions"},orders:{name:"order",type:"orders",api:"orders"},organization:{name:"organization",type:"organization",api:"organization"},packages:{name:"package",type:"packages",api:"packages"},parcel_line_items:{name:"parcel_line_item",type:"parcel_line_items",api:"parcel_line_items"},parcels:{name:"parcel",type:"parcels",api:"parcels"},payment_gateways:{name:"payment_gateway",type:"payment_gateways",api:"payment_gateways"},payment_methods:{name:"payment_method",type:"payment_methods",api:"payment_methods"},paypal_gateways:{name:"paypal_gateway",type:"paypal_gateways",api:"paypal_gateways"},paypal_payments:{name:"paypal_payment",type:"paypal_payments",api:"paypal_payments"},percentage_discount_promotions:{name:"percentage_discount_promotion",type:"percentage_discount_promotions",api:"percentage_discount_promotions"},price_lists:{name:"price_list",type:"price_lists",api:"price_lists"},prices:{name:"price",type:"prices",api:"prices"},promotion_rules:{name:"promotion_rule",type:"promotion_rules",api:"promotion_rules"},promotions:{name:"promotion",type:"promotions",api:"promotions"},refunds:{name:"refund",type:"refunds",api:"refunds"},return_line_items:{name:"return_line_item",type:"return_line_items",api:"return_line_items"},returns:{name:"return",type:"returns",api:"returns"},shipments:{name:"shipment",type:"shipments",api:"shipments"},shipping_categories:{name:"shipping_category",type:"shipping_categories",api:"shipping_categories"},shipping_methods:{name:"shipping_method",type:"shipping_methods",api:"shipping_methods"},shipping_zones:{name:"shipping_zone",type:"shipping_zones",api:"shipping_zones"},sku_list_items:{name:"sku_list_item",type:"sku_list_items",api:"sku_list_items"},sku_list_promotion_rules:{name:"sku_list_promotion_rule",type:"sku_list_promotion_rules",api:"sku_list_promotion_rules"},sku_lists:{name:"sku_list",type:"sku_lists",api:"sku_lists"},sku_options:{name:"sku_option",type:"sku_options",api:"sku_options"},skus:{name:"sku",type:"skus",api:"skus"},stock_items:{name:"stock_item",type:"stock_items",api:"stock_items"},stock_line_items:{name:"stock_line_item",type:"stock_line_items",api:"stock_line_items"},stock_locations:{name:"stock_location",type:"stock_locations",api:"stock_locations"},stock_transfers:{name:"stock_transfer",type:"stock_transfers",api:"stock_transfers"},stripe_gateways:{name:"stripe_gateway",type:"stripe_gateways",api:"stripe_gateways"},stripe_payments:{name:"stripe_payment",type:"stripe_payments",api:"stripe_payments"},tax_calculators:{name:"tax_calculator",type:"tax_calculators",api:"tax_calculators"},tax_categories:{name:"tax_category",type:"tax_categories",api:"tax_categories"},tax_rules:{name:"tax_rule",type:"tax_rules",api:"tax_rules"},taxjar_accounts:{name:"taxjar_account",type:"taxjar_accounts",api:"taxjar_accounts"},transactions:{name:"transaction",type:"transactions",api:"transactions"},voids:{name:"void",type:"voids",api:"voids"},webhooks:{name:"webhook",type:"webhooks",api:"webhooks"},wire_transfers:{name:"wire_transfer",type:"wire_transfers",api:"wire_transfers"}},Er=d("adapter"),Pr=d("organization"),Tr=function(){function t(t){Object.defineProperty(this,Er,{writable:!0,value:void 0}),Object.defineProperty(this,Pr,{writable:!0,value:void 0}),l(this,Er)[Er]=new C(t),l(this,Pr)[Pr]=t.organization,this.addresses=new G(l(this,Er)[Er]),this.adjustments=new I(l(this,Er)[Er]),this.adyen_gateways=new N(l(this,Er)[Er]),this.adyen_payments=new q(l(this,Er)[Er]),this.application=new F(l(this,Er)[Er]),this.attachments=new M(l(this,Er)[Er]),this.authorizations=new B(l(this,Er)[Er]),this.avalara_accounts=new U(l(this,Er)[Er]),this.billing_info_validation_rules=new D(l(this,Er)[Er]),this.bing_geocoders=new Q(l(this,Er)[Er]),this.braintree_gateways=new V(l(this,Er)[Er]),this.braintree_payments=new W(l(this,Er)[Er]),this.bundles=new Z(l(this,Er)[Er]),this.captures=new H(l(this,Er)[Er]),this.carrier_accounts=new J(l(this,Er)[Er]),this.checkout_com_gateways=new K(l(this,Er)[Er]),this.checkout_com_payments=new X(l(this,Er)[Er]),this.coupon_codes_promotion_rules=new $(l(this,Er)[Er]),this.coupons=new tt(l(this,Er)[Er]),this.customer_addresses=new rt(l(this,Er)[Er]),this.customer_groups=new et(l(this,Er)[Er]),this.customer_password_resets=new nt(l(this,Er)[Er]),this.customer_payment_sources=new it(l(this,Er)[Er]),this.customer_subscriptions=new ut(l(this,Er)[Er]),this.customers=new st(l(this,Er)[Er]),this.delivery_lead_times=new at(l(this,Er)[Er]),this.external_gateways=new ct(l(this,Er)[Er]),this.external_payments=new ot(l(this,Er)[Er]),this.external_promotions=new pt(l(this,Er)[Er]),this.external_tax_calculators=new ft(l(this,Er)[Er]),this.fixed_amount_promotions=new ht(l(this,Er)[Er]),this.free_shipping_promotions=new yt(l(this,Er)[Er]),this.geocoders=new dt(l(this,Er)[Er]),this.gift_card_recipients=new lt(l(this,Er)[Er]),this.gift_cards=new vt(l(this,Er)[Er]),this.google_geocoders=new wt(l(this,Er)[Er]),this.imports=new mt(l(this,Er)[Er]),this.in_stock_subscriptions=new Et(l(this,Er)[Er]),this.inventory_models=new Pt(l(this,Er)[Er]),this.inventory_return_locations=new Tt(l(this,Er)[Er]),this.inventory_stock_locations=new Yt(l(this,Er)[Er]),this.line_item_options=new xt(l(this,Er)[Er]),this.line_items=new _t(l(this,Er)[Er]),this.manual_gateways=new kt(l(this,Er)[Er]),this.manual_tax_calculators=new bt(l(this,Er)[Er]),this.markets=new gt(l(this,Er)[Er]),this.merchants=new jt(l(this,Er)[Er]),this.order_amount_promotion_rules=new Ot(l(this,Er)[Er]),this.order_copies=new St(l(this,Er)[Er]),this.order_subscriptions=new Lt(l(this,Er)[Er]),this.orders=new zt(l(this,Er)[Er]),this.organization=new At(l(this,Er)[Er]),this.packages=new Ct(l(this,Er)[Er]),this.parcel_line_items=new Rt(l(this,Er)[Er]),this.parcels=new Gt(l(this,Er)[Er]),this.payment_gateways=new It(l(this,Er)[Er]),this.payment_methods=new Nt(l(this,Er)[Er]),this.paypal_gateways=new qt(l(this,Er)[Er]),this.paypal_payments=new Ft(l(this,Er)[Er]),this.percentage_discount_promotions=new Mt(l(this,Er)[Er]),this.price_lists=new Bt(l(this,Er)[Er]),this.prices=new Ut(l(this,Er)[Er]),this.promotion_rules=new Dt(l(this,Er)[Er]),this.promotions=new Qt(l(this,Er)[Er]),this.refunds=new Vt(l(this,Er)[Er]),this.return_line_items=new Wt(l(this,Er)[Er]),this.returns=new Zt(l(this,Er)[Er]),this.shipments=new Ht(l(this,Er)[Er]),this.shipping_categories=new Jt(l(this,Er)[Er]),this.shipping_methods=new Kt(l(this,Er)[Er]),this.shipping_zones=new Xt(l(this,Er)[Er]),this.sku_list_items=new $t(l(this,Er)[Er]),this.sku_list_promotion_rules=new tr(l(this,Er)[Er]),this.sku_lists=new rr(l(this,Er)[Er]),this.sku_options=new er(l(this,Er)[Er]),this.skus=new nr(l(this,Er)[Er]),this.stock_items=new ir(l(this,Er)[Er]),this.stock_line_items=new ur(l(this,Er)[Er]),this.stock_locations=new sr(l(this,Er)[Er]),this.stock_transfers=new ar(l(this,Er)[Er]),this.stripe_gateways=new cr(l(this,Er)[Er]),this.stripe_payments=new or(l(this,Er)[Er]),this.tax_calculators=new pr(l(this,Er)[Er]),this.tax_categories=new fr(l(this,Er)[Er]),this.tax_rules=new hr(l(this,Er)[Er]),this.taxjar_accounts=new yr(l(this,Er)[Er]),this.transactions=new dr(l(this,Er)[Er]),this.voids=new lr(l(this,Er)[Er]),this.webhooks=new vr(l(this,Er)[Er]),this.wire_transfers=new wr(l(this,Er)[Er])}var r=t.prototype;return r.config=function(t){t&&(t.organization&&(l(this,Pr)[Pr]=t.organization),l(this,Er)[Er].config(t))},r.resources=function(){return Yr.resources()},r.isApiError=function(t){return Yr.isApiError(t)},r.addRequestInterceptor=function(t,r){return l(this,Er)[Er].interceptors.request.use(t,r)},r.addResponseInterceptor=function(t,r){return l(this,Er)[Er].interceptors.response.use(t,r)},r.removeInterceptor=function(t,r){return l(this,Er)[Er].interceptors[t].eject(r)},u(t,[{key:"currentOrganization",get:function(){return l(this,Pr)[Pr]}}]),t}(),Yr={resources:function(){return Object.keys(mr)},isApiError:function(t){return E.isApiError(t)}};exports.CommerceLayerStatic=Yr,exports.default=function(t){return new Tr(t)};
|
2
2
|
//# sourceMappingURL=sdk.cjs.production.min.js.map
|