@commercelayer/sdk 2.3.13 → 3.1.0
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/lib/cjs/api.d.ts +1 -1
- package/lib/cjs/client.d.ts +1 -1
- package/lib/cjs/client.js +1 -1
- package/lib/cjs/commercelayer.d.ts +1 -0
- package/lib/cjs/commercelayer.js +1 -1
- package/lib/cjs/common.js +1 -1
- package/lib/cjs/error.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/jsonapi.d.ts +0 -2
- package/lib/cjs/jsonapi.js +1 -1
- package/lib/cjs/model.d.ts +2 -2
- package/lib/cjs/query.d.ts +3 -37
- package/lib/cjs/query.js +1 -1
- package/lib/cjs/resource.d.ts +1 -1
- package/lib/cjs/resource.js +1 -1
- package/lib/cjs/resources/addresses.d.ts +0 -4
- package/lib/cjs/resources/adjustments.d.ts +0 -4
- package/lib/cjs/resources/adyen_gateways.d.ts +0 -4
- package/lib/cjs/resources/adyen_gateways.js +1 -1
- package/lib/cjs/resources/adyen_payments.d.ts +1 -6
- package/lib/cjs/resources/adyen_payments.js +1 -1
- package/lib/cjs/resources/application.d.ts +0 -4
- package/lib/cjs/resources/attachments.d.ts +1 -5
- package/lib/cjs/resources/authorizations.d.ts +0 -4
- package/lib/cjs/resources/avalara_accounts.d.ts +0 -4
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -5
- package/lib/cjs/resources/bing_geocoders.d.ts +0 -4
- package/lib/cjs/resources/braintree_gateways.d.ts +0 -4
- package/lib/cjs/resources/braintree_gateways.js +1 -1
- package/lib/cjs/resources/braintree_payments.d.ts +1 -5
- package/lib/cjs/resources/braintree_payments.js +1 -1
- package/lib/cjs/resources/bundles.d.ts +1 -5
- package/lib/cjs/resources/captures.d.ts +0 -4
- package/lib/cjs/resources/carrier_accounts.d.ts +0 -4
- package/lib/cjs/resources/checkout_com_gateways.d.ts +0 -4
- package/lib/cjs/resources/checkout_com_gateways.js +1 -1
- package/lib/cjs/resources/checkout_com_payments.d.ts +1 -6
- package/lib/cjs/resources/checkout_com_payments.js +1 -1
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -5
- package/lib/cjs/resources/coupon_recipients.d.ts +0 -4
- package/lib/cjs/resources/coupons.d.ts +4 -5
- package/lib/cjs/resources/customer_addresses.d.ts +2 -6
- package/lib/cjs/resources/customer_groups.d.ts +0 -4
- package/lib/cjs/resources/customer_password_resets.d.ts +0 -4
- package/lib/cjs/resources/customer_payment_sources.d.ts +2 -6
- package/lib/cjs/resources/customer_subscriptions.d.ts +0 -4
- package/lib/cjs/resources/customers.d.ts +0 -4
- package/lib/cjs/resources/delivery_lead_times.d.ts +2 -6
- package/lib/cjs/resources/delivery_lead_times.js +1 -1
- package/lib/cjs/resources/event_callbacks.d.ts +0 -4
- package/lib/cjs/resources/external_gateways.d.ts +0 -4
- package/lib/cjs/resources/external_gateways.js +1 -1
- package/lib/cjs/resources/external_payments.d.ts +1 -5
- package/lib/cjs/resources/external_payments.js +1 -1
- package/lib/cjs/resources/external_promotions.d.ts +0 -4
- package/lib/cjs/resources/external_promotions.js +1 -1
- package/lib/cjs/resources/external_tax_calculators.d.ts +0 -4
- package/lib/cjs/resources/external_tax_calculators.js +1 -1
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +0 -4
- package/lib/cjs/resources/fixed_amount_promotions.js +1 -1
- package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -5
- package/lib/cjs/resources/free_gift_promotions.d.ts +1 -5
- package/lib/cjs/resources/free_gift_promotions.js +1 -1
- package/lib/cjs/resources/free_shipping_promotions.d.ts +0 -4
- package/lib/cjs/resources/geocoders.d.ts +2 -5
- package/lib/cjs/resources/geocoders.js +1 -1
- package/lib/cjs/resources/gift_card_recipients.d.ts +0 -4
- package/lib/cjs/resources/gift_card_recipients.js +1 -1
- package/lib/cjs/resources/gift_cards.d.ts +0 -4
- package/lib/cjs/resources/google_geocoders.d.ts +0 -4
- package/lib/cjs/resources/imports.d.ts +0 -4
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +3 -7
- package/lib/cjs/resources/in_stock_subscriptions.js +1 -1
- package/lib/cjs/resources/inventory_models.d.ts +0 -4
- package/lib/cjs/resources/inventory_return_locations.d.ts +2 -6
- package/lib/cjs/resources/inventory_stock_locations.d.ts +2 -6
- package/lib/cjs/resources/line_item_options.d.ts +2 -6
- package/lib/cjs/resources/line_item_options.js +1 -1
- package/lib/cjs/resources/line_items.d.ts +1 -5
- package/lib/cjs/resources/line_items.js +1 -1
- package/lib/cjs/resources/manual_gateways.d.ts +0 -4
- package/lib/cjs/resources/manual_gateways.js +1 -1
- package/lib/cjs/resources/manual_tax_calculators.d.ts +0 -4
- package/lib/cjs/resources/markets.d.ts +3 -7
- package/lib/cjs/resources/merchants.d.ts +1 -5
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -5
- package/lib/cjs/resources/order_amount_promotion_rules.js +1 -1
- package/lib/cjs/resources/order_copies.d.ts +1 -5
- package/lib/cjs/resources/order_subscriptions.d.ts +1 -5
- package/lib/cjs/resources/order_validation_rules.d.ts +2 -5
- package/lib/cjs/resources/order_validation_rules.js +1 -1
- package/lib/cjs/resources/orders.d.ts +0 -4
- package/lib/cjs/resources/organization.d.ts +0 -4
- package/lib/cjs/resources/organization.js +1 -1
- package/lib/cjs/resources/packages.d.ts +1 -5
- package/lib/cjs/resources/parcel_line_items.d.ts +2 -6
- package/lib/cjs/resources/parcels.d.ts +2 -6
- package/lib/cjs/resources/payment_gateways.d.ts +2 -15
- package/lib/cjs/resources/payment_gateways.js +1 -1
- package/lib/cjs/resources/payment_methods.d.ts +5 -6
- package/lib/cjs/resources/payment_methods.js +1 -1
- package/lib/cjs/resources/paypal_gateways.d.ts +0 -4
- package/lib/cjs/resources/paypal_gateways.js +1 -1
- package/lib/cjs/resources/paypal_payments.d.ts +1 -5
- package/lib/cjs/resources/paypal_payments.js +1 -1
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +0 -4
- package/lib/cjs/resources/percentage_discount_promotions.js +1 -1
- package/lib/cjs/resources/price_lists.d.ts +0 -4
- package/lib/cjs/resources/prices.d.ts +1 -5
- package/lib/cjs/resources/promotion_rules.d.ts +2 -5
- package/lib/cjs/resources/promotion_rules.js +1 -1
- package/lib/cjs/resources/promotions.d.ts +2 -5
- package/lib/cjs/resources/promotions.js +1 -1
- package/lib/cjs/resources/refunds.d.ts +0 -4
- package/lib/cjs/resources/return_line_items.d.ts +2 -6
- package/lib/cjs/resources/return_line_items.js +1 -1
- package/lib/cjs/resources/returns.d.ts +1 -5
- package/lib/cjs/resources/shipments.d.ts +0 -4
- package/lib/cjs/resources/shipping_categories.d.ts +0 -4
- package/lib/cjs/resources/shipping_methods.d.ts +3 -7
- package/lib/cjs/resources/shipping_methods.js +1 -1
- package/lib/cjs/resources/shipping_zones.d.ts +0 -4
- package/lib/cjs/resources/sku_list_items.d.ts +7 -8
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -5
- package/lib/cjs/resources/sku_lists.d.ts +0 -4
- package/lib/cjs/resources/sku_lists.js +1 -1
- package/lib/cjs/resources/sku_options.d.ts +1 -5
- package/lib/cjs/resources/sku_options.js +1 -1
- package/lib/cjs/resources/skus.d.ts +1 -5
- package/lib/cjs/resources/stock_items.d.ts +1 -5
- package/lib/cjs/resources/stock_line_items.d.ts +0 -4
- package/lib/cjs/resources/stock_locations.d.ts +1 -5
- package/lib/cjs/resources/stock_transfers.d.ts +3 -7
- package/lib/cjs/resources/stripe_gateways.d.ts +0 -4
- package/lib/cjs/resources/stripe_gateways.js +1 -1
- package/lib/cjs/resources/stripe_payments.d.ts +1 -5
- package/lib/cjs/resources/stripe_payments.js +1 -1
- package/lib/cjs/resources/tax_calculators.d.ts +2 -5
- package/lib/cjs/resources/tax_calculators.js +1 -1
- package/lib/cjs/resources/tax_categories.d.ts +2 -6
- package/lib/cjs/resources/tax_rules.d.ts +1 -5
- package/lib/cjs/resources/taxjar_accounts.d.ts +0 -4
- package/lib/cjs/resources/transactions.d.ts +2 -5
- package/lib/cjs/resources/transactions.js +1 -1
- package/lib/cjs/resources/voids.d.ts +0 -4
- package/lib/cjs/resources/webhooks.d.ts +0 -4
- package/lib/cjs/resources/wire_transfers.d.ts +1 -5
- package/lib/cjs/static.js +1 -1
- package/lib/esm/api.d.ts +1 -1
- package/lib/esm/client.d.ts +1 -1
- package/lib/esm/client.js +1 -1
- package/lib/esm/commercelayer.d.ts +1 -0
- package/lib/esm/commercelayer.js +1 -1
- package/lib/esm/common.js +1 -1
- package/lib/esm/error.js +1 -1
- package/lib/esm/jsonapi.d.ts +0 -2
- package/lib/esm/jsonapi.js +1 -1
- package/lib/esm/model.d.ts +2 -2
- package/lib/esm/query.d.ts +3 -37
- package/lib/esm/query.js +1 -1
- package/lib/esm/resource.d.ts +1 -1
- package/lib/esm/resource.js +1 -1
- package/lib/esm/resources/addresses.d.ts +0 -4
- package/lib/esm/resources/addresses.js +1 -1
- package/lib/esm/resources/adjustments.d.ts +0 -4
- package/lib/esm/resources/adjustments.js +1 -1
- package/lib/esm/resources/adyen_gateways.d.ts +0 -4
- package/lib/esm/resources/adyen_gateways.js +1 -1
- package/lib/esm/resources/adyen_payments.d.ts +1 -6
- package/lib/esm/resources/adyen_payments.js +1 -1
- package/lib/esm/resources/application.d.ts +0 -4
- package/lib/esm/resources/application.js +1 -1
- package/lib/esm/resources/attachments.d.ts +1 -5
- package/lib/esm/resources/attachments.js +1 -1
- package/lib/esm/resources/authorizations.d.ts +0 -4
- package/lib/esm/resources/authorizations.js +1 -1
- package/lib/esm/resources/avalara_accounts.d.ts +0 -4
- package/lib/esm/resources/avalara_accounts.js +1 -1
- package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -5
- package/lib/esm/resources/billing_info_validation_rules.js +1 -1
- package/lib/esm/resources/bing_geocoders.d.ts +0 -4
- package/lib/esm/resources/bing_geocoders.js +1 -1
- package/lib/esm/resources/braintree_gateways.d.ts +0 -4
- package/lib/esm/resources/braintree_gateways.js +1 -1
- package/lib/esm/resources/braintree_payments.d.ts +1 -5
- package/lib/esm/resources/braintree_payments.js +1 -1
- package/lib/esm/resources/bundles.d.ts +1 -5
- package/lib/esm/resources/bundles.js +1 -1
- package/lib/esm/resources/captures.d.ts +0 -4
- package/lib/esm/resources/captures.js +1 -1
- package/lib/esm/resources/carrier_accounts.d.ts +0 -4
- package/lib/esm/resources/carrier_accounts.js +1 -1
- package/lib/esm/resources/checkout_com_gateways.d.ts +0 -4
- package/lib/esm/resources/checkout_com_gateways.js +1 -1
- package/lib/esm/resources/checkout_com_payments.d.ts +1 -6
- package/lib/esm/resources/checkout_com_payments.js +1 -1
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -5
- package/lib/esm/resources/coupon_codes_promotion_rules.js +1 -1
- package/lib/esm/resources/coupon_recipients.d.ts +0 -4
- package/lib/esm/resources/coupon_recipients.js +1 -1
- package/lib/esm/resources/coupons.d.ts +4 -5
- package/lib/esm/resources/coupons.js +1 -1
- package/lib/esm/resources/customer_addresses.d.ts +2 -6
- package/lib/esm/resources/customer_addresses.js +1 -1
- package/lib/esm/resources/customer_groups.d.ts +0 -4
- package/lib/esm/resources/customer_groups.js +1 -1
- package/lib/esm/resources/customer_password_resets.d.ts +0 -4
- package/lib/esm/resources/customer_password_resets.js +1 -1
- package/lib/esm/resources/customer_payment_sources.d.ts +2 -6
- package/lib/esm/resources/customer_payment_sources.js +1 -1
- package/lib/esm/resources/customer_subscriptions.d.ts +0 -4
- package/lib/esm/resources/customer_subscriptions.js +1 -1
- package/lib/esm/resources/customers.d.ts +0 -4
- package/lib/esm/resources/customers.js +1 -1
- package/lib/esm/resources/delivery_lead_times.d.ts +2 -6
- package/lib/esm/resources/delivery_lead_times.js +1 -1
- package/lib/esm/resources/event_callbacks.d.ts +0 -4
- package/lib/esm/resources/event_callbacks.js +1 -1
- package/lib/esm/resources/external_gateways.d.ts +0 -4
- package/lib/esm/resources/external_payments.d.ts +1 -5
- package/lib/esm/resources/external_promotions.d.ts +0 -4
- package/lib/esm/resources/external_promotions.js +1 -1
- package/lib/esm/resources/external_tax_calculators.d.ts +0 -4
- package/lib/esm/resources/external_tax_calculators.js +1 -1
- package/lib/esm/resources/fixed_amount_promotions.d.ts +0 -4
- package/lib/esm/resources/fixed_amount_promotions.js +1 -1
- package/lib/esm/resources/fixed_price_promotions.d.ts +1 -5
- package/lib/esm/resources/fixed_price_promotions.js +1 -1
- package/lib/esm/resources/free_gift_promotions.d.ts +1 -5
- package/lib/esm/resources/free_gift_promotions.js +1 -1
- package/lib/esm/resources/free_shipping_promotions.d.ts +0 -4
- package/lib/esm/resources/free_shipping_promotions.js +1 -1
- package/lib/esm/resources/geocoders.d.ts +2 -5
- package/lib/esm/resources/geocoders.js +1 -1
- package/lib/esm/resources/gift_card_recipients.d.ts +0 -4
- package/lib/esm/resources/gift_card_recipients.js +1 -1
- package/lib/esm/resources/gift_cards.d.ts +0 -4
- package/lib/esm/resources/gift_cards.js +1 -1
- package/lib/esm/resources/google_geocoders.d.ts +0 -4
- package/lib/esm/resources/google_geocoders.js +1 -1
- package/lib/esm/resources/imports.d.ts +0 -4
- package/lib/esm/resources/imports.js +1 -1
- package/lib/esm/resources/in_stock_subscriptions.d.ts +3 -7
- package/lib/esm/resources/in_stock_subscriptions.js +1 -1
- package/lib/esm/resources/inventory_models.d.ts +0 -4
- package/lib/esm/resources/inventory_models.js +1 -1
- package/lib/esm/resources/inventory_return_locations.d.ts +2 -6
- package/lib/esm/resources/inventory_return_locations.js +1 -1
- package/lib/esm/resources/inventory_stock_locations.d.ts +2 -6
- package/lib/esm/resources/inventory_stock_locations.js +1 -1
- package/lib/esm/resources/line_item_options.d.ts +2 -6
- package/lib/esm/resources/line_item_options.js +1 -1
- package/lib/esm/resources/line_items.d.ts +1 -5
- package/lib/esm/resources/line_items.js +1 -1
- package/lib/esm/resources/manual_gateways.d.ts +0 -4
- package/lib/esm/resources/manual_gateways.js +1 -1
- package/lib/esm/resources/manual_tax_calculators.d.ts +0 -4
- package/lib/esm/resources/manual_tax_calculators.js +1 -1
- package/lib/esm/resources/markets.d.ts +3 -7
- package/lib/esm/resources/markets.js +1 -1
- package/lib/esm/resources/merchants.d.ts +1 -5
- package/lib/esm/resources/merchants.js +1 -1
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -5
- package/lib/esm/resources/order_amount_promotion_rules.js +1 -1
- package/lib/esm/resources/order_copies.d.ts +1 -5
- package/lib/esm/resources/order_copies.js +1 -1
- package/lib/esm/resources/order_subscriptions.d.ts +1 -5
- package/lib/esm/resources/order_subscriptions.js +1 -1
- package/lib/esm/resources/order_validation_rules.d.ts +2 -5
- package/lib/esm/resources/order_validation_rules.js +1 -1
- package/lib/esm/resources/orders.d.ts +0 -4
- package/lib/esm/resources/orders.js +1 -1
- package/lib/esm/resources/organization.d.ts +0 -4
- package/lib/esm/resources/organization.js +1 -1
- package/lib/esm/resources/packages.d.ts +1 -5
- package/lib/esm/resources/packages.js +1 -1
- package/lib/esm/resources/parcel_line_items.d.ts +2 -6
- package/lib/esm/resources/parcel_line_items.js +1 -1
- package/lib/esm/resources/parcels.d.ts +2 -6
- package/lib/esm/resources/parcels.js +1 -1
- package/lib/esm/resources/payment_gateways.d.ts +2 -15
- package/lib/esm/resources/payment_gateways.js +1 -1
- package/lib/esm/resources/payment_methods.d.ts +5 -6
- package/lib/esm/resources/payment_methods.js +1 -1
- package/lib/esm/resources/paypal_gateways.d.ts +0 -4
- package/lib/esm/resources/paypal_gateways.js +1 -1
- package/lib/esm/resources/paypal_payments.d.ts +1 -5
- package/lib/esm/resources/paypal_payments.js +1 -1
- package/lib/esm/resources/percentage_discount_promotions.d.ts +0 -4
- package/lib/esm/resources/percentage_discount_promotions.js +1 -1
- package/lib/esm/resources/price_lists.d.ts +0 -4
- package/lib/esm/resources/price_lists.js +1 -1
- package/lib/esm/resources/prices.d.ts +1 -5
- package/lib/esm/resources/prices.js +1 -1
- package/lib/esm/resources/promotion_rules.d.ts +2 -5
- package/lib/esm/resources/promotion_rules.js +1 -1
- package/lib/esm/resources/promotions.d.ts +2 -5
- package/lib/esm/resources/promotions.js +1 -1
- package/lib/esm/resources/refunds.d.ts +0 -4
- package/lib/esm/resources/refunds.js +1 -1
- package/lib/esm/resources/return_line_items.d.ts +2 -6
- package/lib/esm/resources/return_line_items.js +1 -1
- package/lib/esm/resources/returns.d.ts +1 -5
- package/lib/esm/resources/returns.js +1 -1
- package/lib/esm/resources/shipments.d.ts +0 -4
- package/lib/esm/resources/shipments.js +1 -1
- package/lib/esm/resources/shipping_categories.d.ts +0 -4
- package/lib/esm/resources/shipping_categories.js +1 -1
- package/lib/esm/resources/shipping_methods.d.ts +3 -7
- package/lib/esm/resources/shipping_methods.js +1 -1
- package/lib/esm/resources/shipping_zones.d.ts +0 -4
- package/lib/esm/resources/shipping_zones.js +1 -1
- package/lib/esm/resources/sku_list_items.d.ts +7 -8
- package/lib/esm/resources/sku_list_items.js +1 -1
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -5
- package/lib/esm/resources/sku_list_promotion_rules.js +1 -1
- package/lib/esm/resources/sku_lists.d.ts +0 -4
- package/lib/esm/resources/sku_lists.js +1 -1
- package/lib/esm/resources/sku_options.d.ts +1 -5
- package/lib/esm/resources/sku_options.js +1 -1
- package/lib/esm/resources/skus.d.ts +1 -5
- package/lib/esm/resources/skus.js +1 -1
- package/lib/esm/resources/stock_items.d.ts +1 -5
- package/lib/esm/resources/stock_items.js +1 -1
- package/lib/esm/resources/stock_line_items.d.ts +0 -4
- package/lib/esm/resources/stock_line_items.js +1 -1
- package/lib/esm/resources/stock_locations.d.ts +1 -5
- package/lib/esm/resources/stock_locations.js +1 -1
- package/lib/esm/resources/stock_transfers.d.ts +3 -7
- package/lib/esm/resources/stock_transfers.js +1 -1
- package/lib/esm/resources/stripe_gateways.d.ts +0 -4
- package/lib/esm/resources/stripe_gateways.js +1 -1
- package/lib/esm/resources/stripe_payments.d.ts +1 -5
- package/lib/esm/resources/stripe_payments.js +1 -1
- package/lib/esm/resources/tax_calculators.d.ts +2 -5
- package/lib/esm/resources/tax_calculators.js +1 -1
- package/lib/esm/resources/tax_categories.d.ts +2 -6
- package/lib/esm/resources/tax_categories.js +1 -1
- package/lib/esm/resources/tax_rules.d.ts +1 -5
- package/lib/esm/resources/tax_rules.js +1 -1
- package/lib/esm/resources/taxjar_accounts.d.ts +0 -4
- package/lib/esm/resources/taxjar_accounts.js +1 -1
- package/lib/esm/resources/transactions.d.ts +2 -5
- package/lib/esm/resources/transactions.js +1 -1
- package/lib/esm/resources/voids.d.ts +0 -4
- package/lib/esm/resources/voids.js +1 -1
- package/lib/esm/resources/webhooks.d.ts +0 -4
- package/lib/esm/resources/webhooks.js +1 -1
- package/lib/esm/resources/wire_transfers.d.ts +1 -5
- package/lib/esm/resources/wire_transfers.js +1 -1
- package/lib/esm/static.js +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +18 -14
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { TaxCategory } from './tax_categories';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isAvalaraAccount(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="avalara_accounts";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Market } from './markets';
|
@@ -15,7 +11,7 @@ interface BillingInfoValidationRule extends Resource {
|
|
15
11
|
market?: Market;
|
16
12
|
}
|
17
13
|
interface BillingInfoValidationRuleCreate extends ResourceCreate {
|
18
|
-
market
|
14
|
+
market: MarketRel;
|
19
15
|
}
|
20
16
|
interface BillingInfoValidationRuleUpdate extends ResourceUpdate {
|
21
17
|
market?: MarketRel;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as c}from"../resource";class t extends c{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isBillingInfoValidationRule(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="billing_info_validation_rules";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Address } from './addresses';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as a}from"../resource";class e extends a{async list(t,s){return this.resources.list({type:e.TYPE},t,s)}async create(t,s,r){return this.resources.create(Object.assign(Object.assign({},t),{type:e.TYPE}),s,r)}async retrieve(t,s,r){return this.resources.retrieve({type:e.TYPE,id:t},s,r)}async update(t,s,r){return this.resources.update(Object.assign(Object.assign({},t),{type:e.TYPE}),s,r)}async delete(t,s){await this.resources.delete({type:e.TYPE,id:t},s)}isBingGeocoder(t){return t.type&&t.type===e.TYPE}relationship(t){return typeof t=="string"?{id:t,type:e.TYPE}:{id:t.id,type:e.TYPE}}type(){return e.TYPE}}e.TYPE="bing_geocoders";export default e;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { PaymentMethod } from './payment_methods';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as c}from"../resource";class t extends c{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isBraintreeGateway(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="braintree_gateways";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Order } from './orders';
|
@@ -25,7 +21,7 @@ interface BraintreePaymentCreate extends ResourceCreate {
|
|
25
21
|
payment_id?: string;
|
26
22
|
local?: boolean;
|
27
23
|
options?: object;
|
28
|
-
order
|
24
|
+
order: OrderRel;
|
29
25
|
}
|
30
26
|
interface BraintreePaymentUpdate extends ResourceUpdate {
|
31
27
|
payment_method_nonce?: string;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as p}from"../resource";class t extends p{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isBraintreePayment(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="braintree_payments";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Market } from './markets';
|
@@ -43,7 +39,7 @@ interface BundleCreate extends ResourceCreate {
|
|
43
39
|
compare_at_amount_cents: number;
|
44
40
|
_compute_compare_at_amount?: boolean;
|
45
41
|
market?: MarketRel;
|
46
|
-
sku_list
|
42
|
+
sku_list: SkuListRel;
|
47
43
|
}
|
48
44
|
interface BundleUpdate extends ResourceUpdate {
|
49
45
|
code?: string;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isBundle(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="bundles";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Order } from './orders';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}isCapture(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="captures";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Market } from './markets';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as s}from"../resource";class t extends s{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async retrieve(e,r,p){return this.resources.retrieve({type:t.TYPE,id:e},r,p)}isCarrierAccount(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="carrier_accounts";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { PaymentMethod } from './payment_methods';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class
|
1
|
+
import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}isCheckoutComGateway(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="checkout_com_gateways";export default r;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Order } from './orders';
|
@@ -27,13 +23,12 @@ interface CheckoutComPaymentCreate extends ResourceCreate {
|
|
27
23
|
payment_type: string;
|
28
24
|
token: string;
|
29
25
|
session_id?: string;
|
30
|
-
order
|
26
|
+
order: OrderRel;
|
31
27
|
}
|
32
28
|
interface CheckoutComPaymentUpdate extends ResourceUpdate {
|
33
29
|
payment_type?: string;
|
34
30
|
token?: string;
|
35
31
|
session_id?: string;
|
36
|
-
_authorize?: boolean;
|
37
32
|
_details?: boolean;
|
38
33
|
_refresh?: boolean;
|
39
34
|
order?: OrderRel;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class
|
1
|
+
import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}isCheckoutComPayment(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="checkout_com_payments";export default r;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { PercentageDiscountPromotion } from './percentage_discount_promotions';
|
@@ -40,7 +36,7 @@ interface CouponCodesPromotionRule extends Resource {
|
|
40
36
|
coupons?: Coupon[];
|
41
37
|
}
|
42
38
|
interface CouponCodesPromotionRuleCreate extends ResourceCreate {
|
43
|
-
promotion
|
39
|
+
promotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
|
44
40
|
coupons?: CouponRel[];
|
45
41
|
}
|
46
42
|
interface CouponCodesPromotionRuleUpdate extends ResourceUpdate {
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as c}from"../resource";class t extends c{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isCouponCodesPromotionRule(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="coupon_codes_promotion_rules";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Customer } from './customers';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as a}from"../resource";class t extends a{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isCouponRecipient(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="coupon_recipients";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
|
@@ -13,6 +9,7 @@ declare type CouponCodesPromotionRuleRel = ResourceId & {
|
|
13
9
|
};
|
14
10
|
interface Coupon extends Resource {
|
15
11
|
code?: string;
|
12
|
+
customer_single_use?: boolean;
|
16
13
|
usage_limit?: number;
|
17
14
|
usage_count?: number;
|
18
15
|
recipient_email?: string;
|
@@ -20,12 +17,14 @@ interface Coupon extends Resource {
|
|
20
17
|
}
|
21
18
|
interface CouponCreate extends ResourceCreate {
|
22
19
|
code: string;
|
20
|
+
customer_single_use?: boolean;
|
23
21
|
usage_limit: number;
|
24
22
|
recipient_email?: string;
|
25
|
-
promotion_rule
|
23
|
+
promotion_rule: CouponCodesPromotionRuleRel;
|
26
24
|
}
|
27
25
|
interface CouponUpdate extends ResourceUpdate {
|
28
26
|
code?: string;
|
27
|
+
customer_single_use?: boolean;
|
29
28
|
usage_limit?: number;
|
30
29
|
recipient_email?: string;
|
31
30
|
promotion_rule?: CouponCodesPromotionRuleRel;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isCoupon(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="coupons";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Customer } from './customers';
|
@@ -21,8 +17,8 @@ interface CustomerAddress extends Resource {
|
|
21
17
|
address?: Address;
|
22
18
|
}
|
23
19
|
interface CustomerAddressCreate extends ResourceCreate {
|
24
|
-
customer
|
25
|
-
address
|
20
|
+
customer: CustomerRel;
|
21
|
+
address: AddressRel;
|
26
22
|
}
|
27
23
|
interface CustomerAddressUpdate extends ResourceUpdate {
|
28
24
|
customer?: CustomerRel;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as a}from"../resource";class e extends a{async list(t,r){return this.resources.list({type:e.TYPE},t,r)}async create(t,r,i){return this.resources.create(Object.assign(Object.assign({},t),{type:e.TYPE}),r,i)}async retrieve(t,r,i){return this.resources.retrieve({type:e.TYPE,id:t},r,i)}async update(t,r,i){return this.resources.update(Object.assign(Object.assign({},t),{type:e.TYPE}),r,i)}async delete(t,r){await this.resources.delete({type:e.TYPE,id:t},r)}isCustomerAddress(t){return t.type&&t.type===e.TYPE}relationship(t){return typeof t=="string"?{id:t,type:e.TYPE}:{id:t.id,type:e.TYPE}}type(){return e.TYPE}}e.TYPE="customer_addresses";export default e;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Customer } from './customers';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isCustomerGroup(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="customer_groups";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Customer } from './customers';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as n}from"../resource";class t extends n{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,i){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,i)}async retrieve(e,r,i){return this.resources.retrieve({type:t.TYPE,id:e},r,i)}async update(e,r,i){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,i)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isCustomerPasswordReset(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="customer_password_resets";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Customer } from './customers';
|
@@ -47,8 +43,8 @@ interface CustomerPaymentSource extends Resource {
|
|
47
43
|
payment_source?: AdyenPayment | BraintreePayment | CheckoutComPayment | ExternalPayment | PaypalPayment | StripePayment | WireTransfer;
|
48
44
|
}
|
49
45
|
interface CustomerPaymentSourceCreate extends ResourceCreate {
|
50
|
-
customer
|
51
|
-
payment_source
|
46
|
+
customer: CustomerRel;
|
47
|
+
payment_source: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
52
48
|
}
|
53
49
|
interface CustomerPaymentSourceUpdate extends ResourceUpdate {
|
54
50
|
customer?: CustomerRel;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isCustomerPaymentSource(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="customer_payment_sources";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Customer } from './customers';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as s}from"../resource";class t extends s{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,a){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,a)}async retrieve(e,r,a){return this.resources.retrieve({type:t.TYPE,id:e},r,a)}async update(e,r,a){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,a)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isCustomerSubscription(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="customer_subscriptions";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { CustomerGroup } from './customer_groups';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isCustomer(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="customers";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { StockLocation } from './stock_locations';
|
@@ -28,8 +24,8 @@ interface DeliveryLeadTime extends Resource {
|
|
28
24
|
interface DeliveryLeadTimeCreate extends ResourceCreate {
|
29
25
|
min_hours: number;
|
30
26
|
max_hours: number;
|
31
|
-
stock_location
|
32
|
-
shipping_method
|
27
|
+
stock_location: StockLocationRel;
|
28
|
+
shipping_method: ShippingMethodRel;
|
33
29
|
}
|
34
30
|
interface DeliveryLeadTimeUpdate extends ResourceUpdate {
|
35
31
|
min_hours?: number;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as n}from"../resource";class e extends n{async list(t,s){return this.resources.list({type:e.TYPE},t,s)}async create(t,s,r){return this.resources.create(Object.assign(Object.assign({},t),{type:e.TYPE}),s,r)}async retrieve(t,s,r){return this.resources.retrieve({type:e.TYPE,id:t},s,r)}async update(t,s,r){return this.resources.update(Object.assign(Object.assign({},t),{type:e.TYPE}),s,r)}async delete(t,s){await this.resources.delete({type:e.TYPE,id:t},s)}isDeliveryLeadTime(t){return t.type&&t.type===e.TYPE}relationship(t){return typeof t=="string"?{id:t,type:e.TYPE}:{id:t.id,type:e.TYPE}}type(){return e.TYPE}}e.TYPE="delivery_lead_times";export default e;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Webhook } from './webhooks';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as p}from"../resource";class r extends p{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async retrieve(e,t,i){return this.resources.retrieve({type:r.TYPE,id:e},t,i)}isEventCallback(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="event_callbacks";export default r;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { PaymentMethod } from './payment_methods';
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Order } from './orders';
|
@@ -21,7 +17,7 @@ interface ExternalPayment extends Resource {
|
|
21
17
|
interface ExternalPaymentCreate extends ResourceCreate {
|
22
18
|
payment_source_token: string;
|
23
19
|
options?: object;
|
24
|
-
order
|
20
|
+
order: OrderRel;
|
25
21
|
}
|
26
22
|
interface ExternalPaymentUpdate extends ResourceUpdate {
|
27
23
|
options?: object;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Market } from './markets';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as p}from"../resource";class t extends p{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isExternalPromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="external_promotions";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { TaxCategory } from './tax_categories';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isExternalTaxCalculator(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="external_tax_calculators";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Market } from './markets';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as a}from"../resource";class t extends a{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isFixedAmountPromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="fixed_amount_promotions";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Market } from './markets';
|
@@ -63,7 +59,7 @@ interface FixedPricePromotionCreate extends ResourceCreate {
|
|
63
59
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
64
60
|
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
65
61
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
66
|
-
sku_list
|
62
|
+
sku_list: SkuListRel;
|
67
63
|
}
|
68
64
|
interface FixedPricePromotionUpdate extends ResourceUpdate {
|
69
65
|
name?: string;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as p}from"../resource";class t extends p{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isFixedPricePromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="fixed_price_promotions";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Market } from './markets';
|
@@ -61,7 +57,7 @@ interface FreeGiftPromotionCreate extends ResourceCreate {
|
|
61
57
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
62
58
|
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
63
59
|
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
64
|
-
sku_list
|
60
|
+
sku_list: SkuListRel;
|
65
61
|
}
|
66
62
|
interface FreeGiftPromotionUpdate extends ResourceUpdate {
|
67
63
|
name?: string;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as a}from"../resource";class t extends a{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isFreeGiftPromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="free_gift_promotions";export default t;
|
@@ -1,7 +1,3 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
|
4
|
-
**/
|
5
1
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
2
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
3
|
import { Market } from './markets';
|