@commercelayer/sdk-utils
Version:
Commerce Layer Javascript SDK Utils library
1,678 lines (1,677 loc) • 89.7 kB
JavaScript
import { ResourceInclude } from './chunk-4TM5LA2E.js';
// src/helpers/include/resources.ts
var AddressInclude = class extends ResourceInclude {
get geocoder() {
return new GeocoderInclude(this.include("geocoder"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var AdjustmentInclude = class extends ResourceInclude {
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var AdyenGatewayInclude = class extends ResourceInclude {
get payment_methods() {
return new PaymentMethodInclude(this.include("payment_methods"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get adyen_payments() {
return new AdyenPaymentInclude(this.include("adyen_payments"));
}
};
var AdyenPaymentInclude = class extends ResourceInclude {
get order() {
return new OrderInclude(this.include("order"));
}
get payment_gateway() {
return new PaymentGatewayInclude(this.include("payment_gateway"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var ApplicationInclude = class extends ResourceInclude {
};
var AttachmentInclude = class extends ResourceInclude {
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var AuthorizationInclude = class extends ResourceInclude {
get order() {
return new OrderInclude(this.include("order"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get captures() {
return new CaptureInclude(this.include("captures"));
}
get voids() {
return new VoidInclude(this.include("voids"));
}
};
var AvalaraAccountInclude = class extends ResourceInclude {
get markets() {
return new MarketInclude(this.include("markets"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get tax_categories() {
return new TaxCategoryInclude(this.include("tax_categories"));
}
};
var AxerveGatewayInclude = class extends ResourceInclude {
get payment_methods() {
return new PaymentMethodInclude(this.include("payment_methods"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get axerve_payments() {
return new AxervePaymentInclude(this.include("axerve_payments"));
}
};
var AxervePaymentInclude = class extends ResourceInclude {
get order() {
return new OrderInclude(this.include("order"));
}
get payment_gateway() {
return new PaymentGatewayInclude(this.include("payment_gateway"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var BillingInfoValidationRuleInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var BingGeocoderInclude = class extends ResourceInclude {
get markets() {
return new MarketInclude(this.include("markets"));
}
get addresses() {
return new AddressInclude(this.include("addresses"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var BraintreeGatewayInclude = class extends ResourceInclude {
get payment_methods() {
return new PaymentMethodInclude(this.include("payment_methods"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get braintree_payments() {
return new BraintreePaymentInclude(this.include("braintree_payments"));
}
};
var BraintreePaymentInclude = class extends ResourceInclude {
get order() {
return new OrderInclude(this.include("order"));
}
get payment_gateway() {
return new PaymentGatewayInclude(this.include("payment_gateway"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var BundleInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get sku_list() {
return new SkuListInclude(this.include("sku_list"));
}
get skus() {
return new SkuInclude(this.include("skus"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var BuyXPayYPromotionInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get promotion_rules() {
return new PromotionRuleInclude(this.include("promotion_rules"));
}
// polymorphic
get order_amount_promotion_rule() {
return new OrderAmountPromotionRuleInclude(this.include("order_amount_promotion_rule"));
}
get sku_list_promotion_rule() {
return new SkuListPromotionRuleInclude(this.include("sku_list_promotion_rule"));
}
get coupon_codes_promotion_rule() {
return new CouponCodesPromotionRuleInclude(this.include("coupon_codes_promotion_rule"));
}
get custom_promotion_rule() {
return new CustomPromotionRuleInclude(this.include("custom_promotion_rule"));
}
get sku_list() {
return new SkuListInclude(this.include("sku_list"));
}
get coupons() {
return new CouponInclude(this.include("coupons"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get skus() {
return new SkuInclude(this.include("skus"));
}
};
var CaptureInclude = class extends ResourceInclude {
get order() {
return new OrderInclude(this.include("order"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get reference_authorization() {
return new AuthorizationInclude(this.include("reference_authorization"));
}
get refunds() {
return new RefundInclude(this.include("refunds"));
}
get return() {
return new ReturnInclude(this.include("return"));
}
};
var CarrierAccountInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var CheckoutComGatewayInclude = class extends ResourceInclude {
get payment_methods() {
return new PaymentMethodInclude(this.include("payment_methods"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get checkout_com_payments() {
return new CheckoutComPaymentInclude(this.include("checkout_com_payments"));
}
};
var CheckoutComPaymentInclude = class extends ResourceInclude {
get order() {
return new OrderInclude(this.include("order"));
}
get payment_gateway() {
return new PaymentGatewayInclude(this.include("payment_gateway"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var CleanupInclude = class extends ResourceInclude {
get events() {
return new EventInclude(this.include("events"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var CouponInclude = class extends ResourceInclude {
get promotion_rule() {
return new CouponCodesPromotionRuleInclude(this.include("promotion_rule"));
}
get coupon_recipient() {
return new CouponRecipientInclude(this.include("coupon_recipient"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var CouponCodesPromotionRuleInclude = class extends ResourceInclude {
get promotion() {
return new PromotionInclude(this.include("promotion"));
}
// polymorphic
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get coupons() {
return new CouponInclude(this.include("coupons"));
}
};
var CouponRecipientInclude = class extends ResourceInclude {
get customer() {
return new CustomerInclude(this.include("customer"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
};
var CustomPromotionRuleInclude = class extends ResourceInclude {
get promotion() {
return new PromotionInclude(this.include("promotion"));
}
// polymorphic
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var CustomerInclude = class _CustomerInclude extends ResourceInclude {
get customer_group() {
return new CustomerGroupInclude(this.include("customer_group"));
}
get customer_addresses() {
return new CustomerAddressInclude(this.include("customer_addresses"));
}
get customer_payment_sources() {
return new CustomerPaymentSourceInclude(this.include("customer_payment_sources"));
}
get customer_subscriptions() {
return new CustomerSubscriptionInclude(this.include("customer_subscriptions"));
}
get orders() {
return new OrderInclude(this.include("orders"));
}
get order_subscriptions() {
return new OrderSubscriptionInclude(this.include("order_subscriptions"));
}
get returns() {
return new ReturnInclude(this.include("returns"));
}
get sku_lists() {
return new SkuListInclude(this.include("sku_lists"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get jwt_customer() {
return new _CustomerInclude(this.include("jwt_customer"));
}
get jwt_markets() {
return new MarketInclude(this.include("jwt_markets"));
}
get jwt_stock_locations() {
return new StockLocationInclude(this.include("jwt_stock_locations"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var CustomerAddressInclude = class extends ResourceInclude {
get customer() {
return new CustomerInclude(this.include("customer"));
}
get address() {
return new AddressInclude(this.include("address"));
}
get events() {
return new EventInclude(this.include("events"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var CustomerGroupInclude = class extends ResourceInclude {
get customers() {
return new CustomerInclude(this.include("customers"));
}
get markets() {
return new MarketInclude(this.include("markets"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var CustomerPasswordResetInclude = class extends ResourceInclude {
get customer() {
return new CustomerInclude(this.include("customer"));
}
get events() {
return new EventInclude(this.include("events"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var CustomerPaymentSourceInclude = class extends ResourceInclude {
get customer() {
return new CustomerInclude(this.include("customer"));
}
get payment_method() {
return new PaymentMethodInclude(this.include("payment_method"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var CustomerSubscriptionInclude = class extends ResourceInclude {
get customer() {
return new CustomerInclude(this.include("customer"));
}
get events() {
return new EventInclude(this.include("events"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var DeliveryLeadTimeInclude = class extends ResourceInclude {
get stock_location() {
return new StockLocationInclude(this.include("stock_location"));
}
get shipping_method() {
return new ShippingMethodInclude(this.include("shipping_method"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var DiscountEngineInclude = class extends ResourceInclude {
get markets() {
return new MarketInclude(this.include("markets"));
}
get discount_engine_items() {
return new DiscountEngineItemInclude(this.include("discount_engine_items"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var DiscountEngineItemInclude = class extends ResourceInclude {
get discount_engine() {
return new DiscountEngineInclude(this.include("discount_engine"));
}
get order() {
return new OrderInclude(this.include("order"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var EasypostPickupInclude = class extends ResourceInclude {
get shipment() {
return new ShipmentInclude(this.include("shipment"));
}
get parcels() {
return new ParcelInclude(this.include("parcels"));
}
get events() {
return new EventInclude(this.include("events"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var EventInclude = class extends ResourceInclude {
get webhooks() {
return new WebhookInclude(this.include("webhooks"));
}
get last_event_callbacks() {
return new EventCallbackInclude(this.include("last_event_callbacks"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var EventCallbackInclude = class extends ResourceInclude {
get webhook() {
return new WebhookInclude(this.include("webhook"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var EventStoreInclude = class extends ResourceInclude {
};
var ExportInclude = class extends ResourceInclude {
get events() {
return new EventInclude(this.include("events"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var ExternalGatewayInclude = class extends ResourceInclude {
get payment_methods() {
return new PaymentMethodInclude(this.include("payment_methods"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get external_payments() {
return new ExternalPaymentInclude(this.include("external_payments"));
}
};
var ExternalPaymentInclude = class extends ResourceInclude {
get order() {
return new OrderInclude(this.include("order"));
}
get payment_gateway() {
return new PaymentGatewayInclude(this.include("payment_gateway"));
}
get wallet() {
return new CustomerPaymentSourceInclude(this.include("wallet"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var ExternalPromotionInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get promotion_rules() {
return new PromotionRuleInclude(this.include("promotion_rules"));
}
// polymorphic
get order_amount_promotion_rule() {
return new OrderAmountPromotionRuleInclude(this.include("order_amount_promotion_rule"));
}
get sku_list_promotion_rule() {
return new SkuListPromotionRuleInclude(this.include("sku_list_promotion_rule"));
}
get coupon_codes_promotion_rule() {
return new CouponCodesPromotionRuleInclude(this.include("coupon_codes_promotion_rule"));
}
get custom_promotion_rule() {
return new CustomPromotionRuleInclude(this.include("custom_promotion_rule"));
}
get sku_list() {
return new SkuListInclude(this.include("sku_list"));
}
get coupons() {
return new CouponInclude(this.include("coupons"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get skus() {
return new SkuInclude(this.include("skus"));
}
};
var ExternalTaxCalculatorInclude = class extends ResourceInclude {
get markets() {
return new MarketInclude(this.include("markets"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var FixedAmountPromotionInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get promotion_rules() {
return new PromotionRuleInclude(this.include("promotion_rules"));
}
// polymorphic
get order_amount_promotion_rule() {
return new OrderAmountPromotionRuleInclude(this.include("order_amount_promotion_rule"));
}
get sku_list_promotion_rule() {
return new SkuListPromotionRuleInclude(this.include("sku_list_promotion_rule"));
}
get coupon_codes_promotion_rule() {
return new CouponCodesPromotionRuleInclude(this.include("coupon_codes_promotion_rule"));
}
get custom_promotion_rule() {
return new CustomPromotionRuleInclude(this.include("custom_promotion_rule"));
}
get sku_list() {
return new SkuListInclude(this.include("sku_list"));
}
get coupons() {
return new CouponInclude(this.include("coupons"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get skus() {
return new SkuInclude(this.include("skus"));
}
};
var FixedPricePromotionInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get promotion_rules() {
return new PromotionRuleInclude(this.include("promotion_rules"));
}
// polymorphic
get order_amount_promotion_rule() {
return new OrderAmountPromotionRuleInclude(this.include("order_amount_promotion_rule"));
}
get sku_list_promotion_rule() {
return new SkuListPromotionRuleInclude(this.include("sku_list_promotion_rule"));
}
get coupon_codes_promotion_rule() {
return new CouponCodesPromotionRuleInclude(this.include("coupon_codes_promotion_rule"));
}
get custom_promotion_rule() {
return new CustomPromotionRuleInclude(this.include("custom_promotion_rule"));
}
get sku_list() {
return new SkuListInclude(this.include("sku_list"));
}
get coupons() {
return new CouponInclude(this.include("coupons"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get skus() {
return new SkuInclude(this.include("skus"));
}
};
var FlexPromotionInclude = class extends ResourceInclude {
get coupon_codes_promotion_rule() {
return new CouponCodesPromotionRuleInclude(this.include("coupon_codes_promotion_rule"));
}
get coupons() {
return new CouponInclude(this.include("coupons"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var FreeGiftPromotionInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get promotion_rules() {
return new PromotionRuleInclude(this.include("promotion_rules"));
}
// polymorphic
get order_amount_promotion_rule() {
return new OrderAmountPromotionRuleInclude(this.include("order_amount_promotion_rule"));
}
get sku_list_promotion_rule() {
return new SkuListPromotionRuleInclude(this.include("sku_list_promotion_rule"));
}
get coupon_codes_promotion_rule() {
return new CouponCodesPromotionRuleInclude(this.include("coupon_codes_promotion_rule"));
}
get custom_promotion_rule() {
return new CustomPromotionRuleInclude(this.include("custom_promotion_rule"));
}
get sku_list() {
return new SkuListInclude(this.include("sku_list"));
}
get coupons() {
return new CouponInclude(this.include("coupons"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get skus() {
return new SkuInclude(this.include("skus"));
}
};
var FreeShippingPromotionInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get promotion_rules() {
return new PromotionRuleInclude(this.include("promotion_rules"));
}
// polymorphic
get order_amount_promotion_rule() {
return new OrderAmountPromotionRuleInclude(this.include("order_amount_promotion_rule"));
}
get sku_list_promotion_rule() {
return new SkuListPromotionRuleInclude(this.include("sku_list_promotion_rule"));
}
get coupon_codes_promotion_rule() {
return new CouponCodesPromotionRuleInclude(this.include("coupon_codes_promotion_rule"));
}
get custom_promotion_rule() {
return new CustomPromotionRuleInclude(this.include("custom_promotion_rule"));
}
get sku_list() {
return new SkuListInclude(this.include("sku_list"));
}
get coupons() {
return new CouponInclude(this.include("coupons"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var GeocoderInclude = class extends ResourceInclude {
get markets() {
return new MarketInclude(this.include("markets"));
}
get addresses() {
return new AddressInclude(this.include("addresses"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var GiftCardInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get gift_card_recipient() {
return new GiftCardRecipientInclude(this.include("gift_card_recipient"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var GiftCardRecipientInclude = class extends ResourceInclude {
get customer() {
return new CustomerInclude(this.include("customer"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
};
var GoogleGeocoderInclude = class extends ResourceInclude {
get markets() {
return new MarketInclude(this.include("markets"));
}
get addresses() {
return new AddressInclude(this.include("addresses"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var ImportInclude = class extends ResourceInclude {
get events() {
return new EventInclude(this.include("events"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var InStockSubscriptionInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get customer() {
return new CustomerInclude(this.include("customer"));
}
get sku() {
return new SkuInclude(this.include("sku"));
}
get events() {
return new EventInclude(this.include("events"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var InventoryModelInclude = class extends ResourceInclude {
get inventory_stock_locations() {
return new InventoryStockLocationInclude(this.include("inventory_stock_locations"));
}
get inventory_return_locations() {
return new InventoryReturnLocationInclude(this.include("inventory_return_locations"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var InventoryReturnLocationInclude = class extends ResourceInclude {
get stock_location() {
return new StockLocationInclude(this.include("stock_location"));
}
get inventory_model() {
return new InventoryModelInclude(this.include("inventory_model"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var InventoryStockLocationInclude = class extends ResourceInclude {
get stock_location() {
return new StockLocationInclude(this.include("stock_location"));
}
get inventory_model() {
return new InventoryModelInclude(this.include("inventory_model"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var KlarnaGatewayInclude = class extends ResourceInclude {
get payment_methods() {
return new PaymentMethodInclude(this.include("payment_methods"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get klarna_payments() {
return new KlarnaPaymentInclude(this.include("klarna_payments"));
}
};
var KlarnaPaymentInclude = class extends ResourceInclude {
get order() {
return new OrderInclude(this.include("order"));
}
get payment_gateway() {
return new PaymentGatewayInclude(this.include("payment_gateway"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var LineItemInclude = class extends ResourceInclude {
get order() {
return new OrderInclude(this.include("order"));
}
get sku() {
return new SkuInclude(this.include("sku"));
}
// polymorphic
get bundle() {
return new BundleInclude(this.include("bundle"));
}
// polymorphic
get adjustment() {
return new AdjustmentInclude(this.include("adjustment"));
}
// polymorphic
get gift_card() {
return new GiftCardInclude(this.include("gift_card"));
}
// polymorphic
get shipment() {
return new ShipmentInclude(this.include("shipment"));
}
// polymorphic
get payment_method() {
return new PaymentMethodInclude(this.include("payment_method"));
}
// polymorphic
get line_item_options() {
return new LineItemOptionInclude(this.include("line_item_options"));
}
get return_line_items() {
return new ReturnLineItemInclude(this.include("return_line_items"));
}
get shipment_line_items() {
return new ShipmentLineItemInclude(this.include("shipment_line_items"));
}
get stock_reservations() {
return new StockReservationInclude(this.include("stock_reservations"));
}
get stock_line_items() {
return new StockLineItemInclude(this.include("stock_line_items"));
}
get stock_transfers() {
return new StockTransferInclude(this.include("stock_transfers"));
}
get notifications() {
return new NotificationInclude(this.include("notifications"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var LineItemOptionInclude = class extends ResourceInclude {
get line_item() {
return new LineItemInclude(this.include("line_item"));
}
get sku_option() {
return new SkuOptionInclude(this.include("sku_option"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var LinkInclude = class extends ResourceInclude {
get events() {
return new EventInclude(this.include("events"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var ManualGatewayInclude = class extends ResourceInclude {
get payment_methods() {
return new PaymentMethodInclude(this.include("payment_methods"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var ManualTaxCalculatorInclude = class extends ResourceInclude {
get markets() {
return new MarketInclude(this.include("markets"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get tax_rules() {
return new TaxRuleInclude(this.include("tax_rules"));
}
};
var MarketInclude = class extends ResourceInclude {
get merchant() {
return new MerchantInclude(this.include("merchant"));
}
get price_list() {
return new PriceListInclude(this.include("price_list"));
}
get base_price_list() {
return new PriceListInclude(this.include("base_price_list"));
}
get inventory_model() {
return new InventoryModelInclude(this.include("inventory_model"));
}
get subscription_model() {
return new SubscriptionModelInclude(this.include("subscription_model"));
}
get discount_engine() {
return new DiscountEngineInclude(this.include("discount_engine"));
}
get tax_calculator() {
return new TaxCalculatorInclude(this.include("tax_calculator"));
}
// polymorphic
get customer_group() {
return new CustomerGroupInclude(this.include("customer_group"));
}
get geocoder() {
return new GeocoderInclude(this.include("geocoder"));
}
get default_shipping_method() {
return new ShippingMethodInclude(this.include("default_shipping_method"));
}
get default_payment_method() {
return new PaymentMethodInclude(this.include("default_payment_method"));
}
get stores() {
return new StoreInclude(this.include("stores"));
}
get price_list_schedulers() {
return new PriceListSchedulerInclude(this.include("price_list_schedulers"));
}
get order_validation_rules() {
return new OrderValidationRuleInclude(this.include("order_validation_rules"));
}
// polymorphic
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var MerchantInclude = class extends ResourceInclude {
get address() {
return new AddressInclude(this.include("address"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var NotificationInclude = class extends ResourceInclude {
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var OrderInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get customer() {
return new CustomerInclude(this.include("customer"));
}
get shipping_address() {
return new AddressInclude(this.include("shipping_address"));
}
get billing_address() {
return new AddressInclude(this.include("billing_address"));
}
get store() {
return new StoreInclude(this.include("store"));
}
get default_shipping_method() {
return new ShippingMethodInclude(this.include("default_shipping_method"));
}
get default_payment_method() {
return new PaymentMethodInclude(this.include("default_payment_method"));
}
get available_payment_methods() {
return new PaymentMethodInclude(this.include("available_payment_methods"));
}
get available_customer_payment_sources() {
return new CustomerPaymentSourceInclude(this.include("available_customer_payment_sources"));
}
get available_free_skus() {
return new SkuInclude(this.include("available_free_skus"));
}
get available_free_bundles() {
return new BundleInclude(this.include("available_free_bundles"));
}
get payment_method() {
return new PaymentMethodInclude(this.include("payment_method"));
}
get discount_engine_item() {
return new DiscountEngineItemInclude(this.include("discount_engine_item"));
}
get line_items() {
return new LineItemInclude(this.include("line_items"));
}
get line_item_options() {
return new LineItemOptionInclude(this.include("line_item_options"));
}
get stock_reservations() {
return new StockReservationInclude(this.include("stock_reservations"));
}
get stock_line_items() {
return new StockLineItemInclude(this.include("stock_line_items"));
}
get stock_transfers() {
return new StockTransferInclude(this.include("stock_transfers"));
}
get shipments() {
return new ShipmentInclude(this.include("shipments"));
}
get payment_options() {
return new PaymentOptionInclude(this.include("payment_options"));
}
get transactions() {
return new TransactionInclude(this.include("transactions"));
}
// polymorphic
get authorizations() {
return new AuthorizationInclude(this.include("authorizations"));
}
get captures() {
return new CaptureInclude(this.include("captures"));
}
get voids() {
return new VoidInclude(this.include("voids"));
}
get refunds() {
return new RefundInclude(this.include("refunds"));
}
get returns() {
return new ReturnInclude(this.include("returns"));
}
get order_subscription() {
return new OrderSubscriptionInclude(this.include("order_subscription"));
}
get order_subscriptions() {
return new OrderSubscriptionInclude(this.include("order_subscriptions"));
}
get order_factories() {
return new OrderFactoryInclude(this.include("order_factories"));
}
get order_copies() {
return new OrderCopyInclude(this.include("order_copies"));
}
get recurring_order_copies() {
return new RecurringOrderCopyInclude(this.include("recurring_order_copies"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get notifications() {
return new NotificationInclude(this.include("notifications"));
}
get links() {
return new LinkInclude(this.include("links"));
}
get resource_errors() {
return new ResourceErrorInclude(this.include("resource_errors"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var OrderAmountPromotionRuleInclude = class extends ResourceInclude {
get promotion() {
return new PromotionInclude(this.include("promotion"));
}
// polymorphic
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var OrderCopyInclude = class extends ResourceInclude {
get source_order() {
return new OrderInclude(this.include("source_order"));
}
get target_order() {
return new OrderInclude(this.include("target_order"));
}
get events() {
return new EventInclude(this.include("events"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get order_subscription() {
return new OrderSubscriptionInclude(this.include("order_subscription"));
}
};
var OrderFactoryInclude = class extends ResourceInclude {
get source_order() {
return new OrderInclude(this.include("source_order"));
}
get target_order() {
return new OrderInclude(this.include("target_order"));
}
get events() {
return new EventInclude(this.include("events"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var OrderSubscriptionInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get subscription_model() {
return new SubscriptionModelInclude(this.include("subscription_model"));
}
get source_order() {
return new OrderInclude(this.include("source_order"));
}
get customer() {
return new CustomerInclude(this.include("customer"));
}
get customer_payment_source() {
return new CustomerPaymentSourceInclude(this.include("customer_payment_source"));
}
get order_subscription_items() {
return new OrderSubscriptionItemInclude(this.include("order_subscription_items"));
}
get order_factories() {
return new OrderFactoryInclude(this.include("order_factories"));
}
get order_copies() {
return new OrderCopyInclude(this.include("order_copies"));
}
get recurring_order_copies() {
return new RecurringOrderCopyInclude(this.include("recurring_order_copies"));
}
get orders() {
return new OrderInclude(this.include("orders"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var OrderSubscriptionItemInclude = class extends ResourceInclude {
get order_subscription() {
return new OrderSubscriptionInclude(this.include("order_subscription"));
}
get sku() {
return new SkuInclude(this.include("sku"));
}
// polymorphic
get bundle() {
return new BundleInclude(this.include("bundle"));
}
// polymorphic
get adjustment() {
return new AdjustmentInclude(this.include("adjustment"));
}
// polymorphic
get source_line_item() {
return new LineItemInclude(this.include("source_line_item"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var OrderValidationRuleInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var OrganizationInclude = class extends ResourceInclude {
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var PackageInclude = class extends ResourceInclude {
get stock_location() {
return new StockLocationInclude(this.include("stock_location"));
}
get parcels() {
return new ParcelInclude(this.include("parcels"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var ParcelInclude = class extends ResourceInclude {
get shipment() {
return new ShipmentInclude(this.include("shipment"));
}
get package() {
return new PackageInclude(this.include("package"));
}
get parcel_line_items() {
return new ParcelLineItemInclude(this.include("parcel_line_items"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var ParcelLineItemInclude = class extends ResourceInclude {
get parcel() {
return new ParcelInclude(this.include("parcel"));
}
get stock_line_item() {
return new StockLineItemInclude(this.include("stock_line_item"));
}
get shipment_line_item() {
return new ShipmentLineItemInclude(this.include("shipment_line_item"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var PaymentGatewayInclude = class extends ResourceInclude {
get payment_methods() {
return new PaymentMethodInclude(this.include("payment_methods"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var PaymentMethodInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get payment_gateway() {
return new PaymentGatewayInclude(this.include("payment_gateway"));
}
get store() {
return new StoreInclude(this.include("store"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var PaymentOptionInclude = class extends ResourceInclude {
get order() {
return new OrderInclude(this.include("order"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var PaypalGatewayInclude = class extends ResourceInclude {
get payment_methods() {
return new PaymentMethodInclude(this.include("payment_methods"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get paypal_payments() {
return new PaypalPaymentInclude(this.include("paypal_payments"));
}
};
var PaypalPaymentInclude = class extends ResourceInclude {
get order() {
return new OrderInclude(this.include("order"));
}
get payment_gateway() {
return new PaymentGatewayInclude(this.include("payment_gateway"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
};
var PercentageDiscountPromotionInclude = class extends ResourceInclude {
get market() {
return new MarketInclude(this.include("market"));
}
get promotion_rules() {
return new PromotionRuleInclude(this.include("promotion_rules"));
}
// polymorphic
get order_amount_promotion_rule() {
return new OrderAmountPromotionRuleInclude(this.include("order_amount_promotion_rule"));
}
get sku_list_promotion_rule() {
return new SkuListPromotionRuleInclude(this.include("sku_list_promotion_rule"));
}
get coupon_codes_promotion_rule() {
return new CouponCodesPromotionRuleInclude(this.include("coupon_codes_promotion_rule"));
}
get custom_promotion_rule() {
return new CustomPromotionRuleInclude(this.include("custom_promotion_rule"));
}
get sku_list() {
return new SkuListInclude(this.include("sku_list"));
}
get coupons() {
return new CouponInclude(this.include("coupons"));
}
get attachments() {
return new AttachmentInclude(this.include("attachments"));
}
get events() {
return new EventInclude(this.include("events"));
}
get tags() {
return new TagInclude(this.include("tags"));
}
get versions() {
return new VersionInclude(this.include("versions"));
}
get event_stores() {
return new EventStoreInclude(this.include("event_stores"));
}
get sk