@commercelayer/sdk 2.3.12 → 2.4.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 +6 -4
- package/lib/cjs/api.js +1 -1
- package/lib/cjs/client.js +1 -1
- package/lib/cjs/commercelayer.d.ts +2 -0
- package/lib/cjs/commercelayer.js +1 -1
- package/lib/cjs/common.js +1 -1
- package/lib/cjs/debug.d.ts +3 -0
- package/lib/cjs/debug.js +1 -0
- package/lib/cjs/error.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/jsonapi.js +1 -1
- package/lib/cjs/model.d.ts +5 -3
- package/lib/cjs/query.d.ts +35 -0
- package/lib/cjs/query.js +1 -1
- package/lib/cjs/resource.js +1 -1
- package/lib/cjs/resources/addresses.d.ts +2 -2
- package/lib/cjs/resources/adjustments.d.ts +2 -2
- package/lib/cjs/resources/adyen_gateways.d.ts +2 -2
- package/lib/cjs/resources/adyen_gateways.js +1 -1
- package/lib/cjs/resources/adyen_payments.d.ts +2 -3
- package/lib/cjs/resources/adyen_payments.js +1 -1
- package/lib/cjs/resources/application.d.ts +2 -2
- package/lib/cjs/resources/attachments.d.ts +2 -2
- package/lib/cjs/resources/authorizations.d.ts +2 -2
- package/lib/cjs/resources/avalara_accounts.d.ts +2 -2
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +2 -2
- package/lib/cjs/resources/bing_geocoders.d.ts +2 -2
- package/lib/cjs/resources/braintree_gateways.d.ts +2 -2
- package/lib/cjs/resources/braintree_gateways.js +1 -1
- package/lib/cjs/resources/braintree_payments.d.ts +2 -2
- package/lib/cjs/resources/braintree_payments.js +1 -1
- package/lib/cjs/resources/bundles.d.ts +2 -2
- package/lib/cjs/resources/captures.d.ts +2 -2
- package/lib/cjs/resources/carrier_accounts.d.ts +2 -2
- package/lib/cjs/resources/checkout_com_gateways.d.ts +2 -2
- package/lib/cjs/resources/checkout_com_gateways.js +1 -1
- package/lib/cjs/resources/checkout_com_payments.d.ts +2 -3
- package/lib/cjs/resources/checkout_com_payments.js +1 -1
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +2 -2
- package/lib/cjs/resources/coupon_recipients.d.ts +2 -2
- package/lib/cjs/resources/coupons.d.ts +5 -2
- package/lib/cjs/resources/customer_addresses.d.ts +2 -2
- package/lib/cjs/resources/customer_groups.d.ts +2 -2
- package/lib/cjs/resources/customer_password_resets.d.ts +2 -2
- package/lib/cjs/resources/customer_payment_sources.d.ts +9 -5
- package/lib/cjs/resources/customer_subscriptions.d.ts +2 -2
- package/lib/cjs/resources/customers.d.ts +2 -2
- package/lib/cjs/resources/delivery_lead_times.d.ts +2 -2
- package/lib/cjs/resources/delivery_lead_times.js +1 -1
- package/lib/cjs/resources/event_callbacks.d.ts +2 -2
- package/lib/cjs/resources/external_gateways.d.ts +5 -2
- package/lib/cjs/resources/external_gateways.js +1 -1
- package/lib/cjs/resources/external_payments.d.ts +4 -2
- package/lib/cjs/resources/external_payments.js +1 -1
- package/lib/cjs/resources/external_promotions.d.ts +2 -2
- package/lib/cjs/resources/external_promotions.js +1 -1
- package/lib/cjs/resources/external_tax_calculators.d.ts +2 -2
- package/lib/cjs/resources/external_tax_calculators.js +1 -1
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +2 -2
- package/lib/cjs/resources/fixed_amount_promotions.js +1 -1
- package/lib/cjs/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/cjs/resources/free_gift_promotions.d.ts +2 -2
- package/lib/cjs/resources/free_gift_promotions.js +1 -1
- package/lib/cjs/resources/free_shipping_promotions.d.ts +2 -2
- package/lib/cjs/resources/geocoders.d.ts +4 -3
- package/lib/cjs/resources/geocoders.js +1 -1
- package/lib/cjs/resources/gift_card_recipients.d.ts +2 -2
- package/lib/cjs/resources/gift_card_recipients.js +1 -1
- package/lib/cjs/resources/gift_cards.d.ts +2 -2
- package/lib/cjs/resources/google_geocoders.d.ts +2 -2
- package/lib/cjs/resources/imports.d.ts +2 -2
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/cjs/resources/in_stock_subscriptions.js +1 -1
- package/lib/cjs/resources/inventory_models.d.ts +2 -2
- package/lib/cjs/resources/inventory_return_locations.d.ts +2 -2
- package/lib/cjs/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/cjs/resources/klarna_gateways.d.ts +46 -0
- package/lib/cjs/resources/klarna_gateways.js +1 -0
- package/lib/cjs/resources/klarna_payments.d.ts +43 -0
- package/lib/cjs/resources/klarna_payments.js +1 -0
- package/lib/cjs/resources/line_item_options.d.ts +2 -2
- package/lib/cjs/resources/line_item_options.js +1 -1
- package/lib/cjs/resources/line_items.d.ts +2 -2
- package/lib/cjs/resources/line_items.js +1 -1
- package/lib/cjs/resources/manual_gateways.d.ts +2 -2
- package/lib/cjs/resources/manual_gateways.js +1 -1
- package/lib/cjs/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/cjs/resources/markets.d.ts +2 -2
- package/lib/cjs/resources/merchants.d.ts +2 -2
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +2 -2
- package/lib/cjs/resources/order_amount_promotion_rules.js +1 -1
- package/lib/cjs/resources/order_copies.d.ts +2 -2
- package/lib/cjs/resources/order_subscriptions.d.ts +2 -2
- package/lib/cjs/resources/order_validation_rules.d.ts +4 -3
- package/lib/cjs/resources/order_validation_rules.js +1 -1
- package/lib/cjs/resources/orders.d.ts +9 -5
- package/lib/cjs/resources/organization.d.ts +2 -2
- package/lib/cjs/resources/organization.js +1 -1
- package/lib/cjs/resources/packages.d.ts +2 -2
- package/lib/cjs/resources/parcel_line_items.d.ts +2 -2
- package/lib/cjs/resources/parcels.d.ts +2 -2
- package/lib/cjs/resources/payment_gateways.d.ts +4 -13
- package/lib/cjs/resources/payment_gateways.js +1 -1
- package/lib/cjs/resources/payment_methods.d.ts +5 -2
- package/lib/cjs/resources/payment_methods.js +1 -1
- package/lib/cjs/resources/paypal_gateways.d.ts +2 -2
- package/lib/cjs/resources/paypal_gateways.js +1 -1
- package/lib/cjs/resources/paypal_payments.d.ts +2 -2
- package/lib/cjs/resources/paypal_payments.js +1 -1
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +2 -2
- package/lib/cjs/resources/percentage_discount_promotions.js +1 -1
- package/lib/cjs/resources/price_lists.d.ts +2 -2
- package/lib/cjs/resources/prices.d.ts +2 -2
- package/lib/cjs/resources/promotion_rules.d.ts +4 -3
- package/lib/cjs/resources/promotion_rules.js +1 -1
- package/lib/cjs/resources/promotions.d.ts +4 -3
- package/lib/cjs/resources/promotions.js +1 -1
- package/lib/cjs/resources/refunds.d.ts +2 -2
- package/lib/cjs/resources/return_line_items.d.ts +2 -2
- package/lib/cjs/resources/return_line_items.js +1 -1
- package/lib/cjs/resources/returns.d.ts +2 -2
- package/lib/cjs/resources/shipments.d.ts +2 -2
- package/lib/cjs/resources/shipping_categories.d.ts +2 -2
- package/lib/cjs/resources/shipping_methods.d.ts +2 -2
- package/lib/cjs/resources/shipping_methods.js +1 -1
- package/lib/cjs/resources/shipping_zones.d.ts +2 -2
- package/lib/cjs/resources/sku_list_items.d.ts +7 -4
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +2 -2
- package/lib/cjs/resources/sku_lists.d.ts +2 -2
- package/lib/cjs/resources/sku_lists.js +1 -1
- package/lib/cjs/resources/sku_options.d.ts +2 -2
- package/lib/cjs/resources/sku_options.js +1 -1
- package/lib/cjs/resources/skus.d.ts +2 -2
- package/lib/cjs/resources/stock_items.d.ts +2 -2
- package/lib/cjs/resources/stock_line_items.d.ts +2 -2
- package/lib/cjs/resources/stock_locations.d.ts +2 -2
- package/lib/cjs/resources/stock_transfers.d.ts +2 -2
- package/lib/cjs/resources/stripe_gateways.d.ts +2 -2
- package/lib/cjs/resources/stripe_gateways.js +1 -1
- package/lib/cjs/resources/stripe_payments.d.ts +2 -2
- package/lib/cjs/resources/stripe_payments.js +1 -1
- package/lib/cjs/resources/tax_calculators.d.ts +4 -3
- package/lib/cjs/resources/tax_calculators.js +1 -1
- package/lib/cjs/resources/tax_categories.d.ts +2 -2
- package/lib/cjs/resources/tax_rules.d.ts +2 -2
- package/lib/cjs/resources/taxjar_accounts.d.ts +2 -2
- package/lib/cjs/resources/transactions.d.ts +4 -3
- package/lib/cjs/resources/transactions.js +1 -1
- package/lib/cjs/resources/voids.d.ts +2 -2
- package/lib/cjs/resources/webhooks.d.ts +2 -2
- package/lib/cjs/resources/wire_transfers.d.ts +2 -2
- package/lib/cjs/static.js +1 -1
- package/lib/esm/api.d.ts +6 -4
- package/lib/esm/api.js +1 -1
- package/lib/esm/client.js +1 -1
- package/lib/esm/commercelayer.d.ts +2 -0
- package/lib/esm/commercelayer.js +1 -1
- package/lib/esm/common.js +1 -1
- package/lib/esm/debug.d.ts +3 -0
- package/lib/esm/debug.js +1 -0
- package/lib/esm/error.js +1 -1
- package/lib/esm/jsonapi.js +1 -1
- package/lib/esm/model.d.ts +5 -3
- package/lib/esm/query.d.ts +35 -0
- package/lib/esm/query.js +1 -1
- package/lib/esm/resource.js +1 -1
- package/lib/esm/resources/addresses.d.ts +2 -2
- package/lib/esm/resources/addresses.js +1 -1
- package/lib/esm/resources/adjustments.d.ts +2 -2
- package/lib/esm/resources/adjustments.js +1 -1
- package/lib/esm/resources/adyen_gateways.d.ts +2 -2
- package/lib/esm/resources/adyen_gateways.js +1 -1
- package/lib/esm/resources/adyen_payments.d.ts +2 -3
- package/lib/esm/resources/adyen_payments.js +1 -1
- package/lib/esm/resources/application.d.ts +2 -2
- package/lib/esm/resources/application.js +1 -1
- package/lib/esm/resources/attachments.d.ts +2 -2
- package/lib/esm/resources/attachments.js +1 -1
- package/lib/esm/resources/authorizations.d.ts +2 -2
- package/lib/esm/resources/authorizations.js +1 -1
- package/lib/esm/resources/avalara_accounts.d.ts +2 -2
- package/lib/esm/resources/avalara_accounts.js +1 -1
- package/lib/esm/resources/billing_info_validation_rules.d.ts +2 -2
- package/lib/esm/resources/billing_info_validation_rules.js +1 -1
- package/lib/esm/resources/bing_geocoders.d.ts +2 -2
- package/lib/esm/resources/bing_geocoders.js +1 -1
- package/lib/esm/resources/braintree_gateways.d.ts +2 -2
- package/lib/esm/resources/braintree_gateways.js +1 -1
- package/lib/esm/resources/braintree_payments.d.ts +2 -2
- package/lib/esm/resources/braintree_payments.js +1 -1
- package/lib/esm/resources/bundles.d.ts +2 -2
- package/lib/esm/resources/bundles.js +1 -1
- package/lib/esm/resources/captures.d.ts +2 -2
- package/lib/esm/resources/captures.js +1 -1
- package/lib/esm/resources/carrier_accounts.d.ts +2 -2
- package/lib/esm/resources/carrier_accounts.js +1 -1
- package/lib/esm/resources/checkout_com_gateways.d.ts +2 -2
- package/lib/esm/resources/checkout_com_gateways.js +1 -1
- package/lib/esm/resources/checkout_com_payments.d.ts +2 -3
- package/lib/esm/resources/checkout_com_payments.js +1 -1
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +2 -2
- package/lib/esm/resources/coupon_codes_promotion_rules.js +1 -1
- package/lib/esm/resources/coupon_recipients.d.ts +2 -2
- package/lib/esm/resources/coupon_recipients.js +1 -1
- package/lib/esm/resources/coupons.d.ts +5 -2
- package/lib/esm/resources/coupons.js +1 -1
- package/lib/esm/resources/customer_addresses.d.ts +2 -2
- package/lib/esm/resources/customer_addresses.js +1 -1
- package/lib/esm/resources/customer_groups.d.ts +2 -2
- package/lib/esm/resources/customer_groups.js +1 -1
- package/lib/esm/resources/customer_password_resets.d.ts +2 -2
- package/lib/esm/resources/customer_password_resets.js +1 -1
- package/lib/esm/resources/customer_payment_sources.d.ts +9 -5
- package/lib/esm/resources/customer_payment_sources.js +1 -1
- package/lib/esm/resources/customer_subscriptions.d.ts +2 -2
- package/lib/esm/resources/customer_subscriptions.js +1 -1
- package/lib/esm/resources/customers.d.ts +2 -2
- package/lib/esm/resources/customers.js +1 -1
- package/lib/esm/resources/delivery_lead_times.d.ts +2 -2
- package/lib/esm/resources/delivery_lead_times.js +1 -1
- package/lib/esm/resources/event_callbacks.d.ts +2 -2
- package/lib/esm/resources/event_callbacks.js +1 -1
- package/lib/esm/resources/external_gateways.d.ts +5 -2
- package/lib/esm/resources/external_gateways.js +1 -1
- package/lib/esm/resources/external_payments.d.ts +4 -2
- package/lib/esm/resources/external_payments.js +1 -1
- package/lib/esm/resources/external_promotions.d.ts +2 -2
- package/lib/esm/resources/external_promotions.js +1 -1
- package/lib/esm/resources/external_tax_calculators.d.ts +2 -2
- package/lib/esm/resources/external_tax_calculators.js +1 -1
- package/lib/esm/resources/fixed_amount_promotions.d.ts +2 -2
- package/lib/esm/resources/fixed_amount_promotions.js +1 -1
- package/lib/esm/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/esm/resources/fixed_price_promotions.js +1 -1
- package/lib/esm/resources/free_gift_promotions.d.ts +2 -2
- package/lib/esm/resources/free_gift_promotions.js +1 -1
- package/lib/esm/resources/free_shipping_promotions.d.ts +2 -2
- package/lib/esm/resources/free_shipping_promotions.js +1 -1
- package/lib/esm/resources/geocoders.d.ts +4 -3
- package/lib/esm/resources/geocoders.js +1 -1
- package/lib/esm/resources/gift_card_recipients.d.ts +2 -2
- package/lib/esm/resources/gift_card_recipients.js +1 -1
- package/lib/esm/resources/gift_cards.d.ts +2 -2
- package/lib/esm/resources/gift_cards.js +1 -1
- package/lib/esm/resources/google_geocoders.d.ts +2 -2
- package/lib/esm/resources/google_geocoders.js +1 -1
- package/lib/esm/resources/imports.d.ts +2 -2
- package/lib/esm/resources/imports.js +1 -1
- package/lib/esm/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/esm/resources/in_stock_subscriptions.js +1 -1
- package/lib/esm/resources/inventory_models.d.ts +2 -2
- package/lib/esm/resources/inventory_models.js +1 -1
- package/lib/esm/resources/inventory_return_locations.d.ts +2 -2
- package/lib/esm/resources/inventory_return_locations.js +1 -1
- package/lib/esm/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/esm/resources/inventory_stock_locations.js +1 -1
- package/lib/esm/resources/klarna_gateways.d.ts +46 -0
- package/lib/esm/resources/klarna_gateways.js +1 -0
- package/lib/esm/resources/klarna_payments.d.ts +43 -0
- package/lib/esm/resources/klarna_payments.js +1 -0
- package/lib/esm/resources/line_item_options.d.ts +2 -2
- package/lib/esm/resources/line_item_options.js +1 -1
- package/lib/esm/resources/line_items.d.ts +2 -2
- package/lib/esm/resources/line_items.js +1 -1
- package/lib/esm/resources/manual_gateways.d.ts +2 -2
- package/lib/esm/resources/manual_gateways.js +1 -1
- package/lib/esm/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/esm/resources/manual_tax_calculators.js +1 -1
- package/lib/esm/resources/markets.d.ts +2 -2
- package/lib/esm/resources/markets.js +1 -1
- package/lib/esm/resources/merchants.d.ts +2 -2
- package/lib/esm/resources/merchants.js +1 -1
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +2 -2
- package/lib/esm/resources/order_amount_promotion_rules.js +1 -1
- package/lib/esm/resources/order_copies.d.ts +2 -2
- package/lib/esm/resources/order_copies.js +1 -1
- package/lib/esm/resources/order_subscriptions.d.ts +2 -2
- package/lib/esm/resources/order_subscriptions.js +1 -1
- package/lib/esm/resources/order_validation_rules.d.ts +4 -3
- package/lib/esm/resources/order_validation_rules.js +1 -1
- package/lib/esm/resources/orders.d.ts +9 -5
- package/lib/esm/resources/orders.js +1 -1
- package/lib/esm/resources/organization.d.ts +2 -2
- package/lib/esm/resources/organization.js +1 -1
- package/lib/esm/resources/packages.d.ts +2 -2
- package/lib/esm/resources/packages.js +1 -1
- package/lib/esm/resources/parcel_line_items.d.ts +2 -2
- package/lib/esm/resources/parcel_line_items.js +1 -1
- package/lib/esm/resources/parcels.d.ts +2 -2
- package/lib/esm/resources/parcels.js +1 -1
- package/lib/esm/resources/payment_gateways.d.ts +4 -13
- package/lib/esm/resources/payment_gateways.js +1 -1
- package/lib/esm/resources/payment_methods.d.ts +5 -2
- package/lib/esm/resources/payment_methods.js +1 -1
- package/lib/esm/resources/paypal_gateways.d.ts +2 -2
- package/lib/esm/resources/paypal_gateways.js +1 -1
- package/lib/esm/resources/paypal_payments.d.ts +2 -2
- package/lib/esm/resources/paypal_payments.js +1 -1
- package/lib/esm/resources/percentage_discount_promotions.d.ts +2 -2
- package/lib/esm/resources/percentage_discount_promotions.js +1 -1
- package/lib/esm/resources/price_lists.d.ts +2 -2
- package/lib/esm/resources/price_lists.js +1 -1
- package/lib/esm/resources/prices.d.ts +2 -2
- package/lib/esm/resources/prices.js +1 -1
- package/lib/esm/resources/promotion_rules.d.ts +4 -3
- package/lib/esm/resources/promotion_rules.js +1 -1
- package/lib/esm/resources/promotions.d.ts +4 -3
- package/lib/esm/resources/promotions.js +1 -1
- package/lib/esm/resources/refunds.d.ts +2 -2
- package/lib/esm/resources/refunds.js +1 -1
- package/lib/esm/resources/return_line_items.d.ts +2 -2
- package/lib/esm/resources/return_line_items.js +1 -1
- package/lib/esm/resources/returns.d.ts +2 -2
- package/lib/esm/resources/returns.js +1 -1
- package/lib/esm/resources/shipments.d.ts +2 -2
- package/lib/esm/resources/shipments.js +1 -1
- package/lib/esm/resources/shipping_categories.d.ts +2 -2
- package/lib/esm/resources/shipping_categories.js +1 -1
- package/lib/esm/resources/shipping_methods.d.ts +2 -2
- package/lib/esm/resources/shipping_methods.js +1 -1
- package/lib/esm/resources/shipping_zones.d.ts +2 -2
- package/lib/esm/resources/shipping_zones.js +1 -1
- package/lib/esm/resources/sku_list_items.d.ts +7 -4
- package/lib/esm/resources/sku_list_items.js +1 -1
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +2 -2
- package/lib/esm/resources/sku_list_promotion_rules.js +1 -1
- package/lib/esm/resources/sku_lists.d.ts +2 -2
- package/lib/esm/resources/sku_lists.js +1 -1
- package/lib/esm/resources/sku_options.d.ts +2 -2
- package/lib/esm/resources/sku_options.js +1 -1
- package/lib/esm/resources/skus.d.ts +2 -2
- package/lib/esm/resources/skus.js +1 -1
- package/lib/esm/resources/stock_items.d.ts +2 -2
- package/lib/esm/resources/stock_items.js +1 -1
- package/lib/esm/resources/stock_line_items.d.ts +2 -2
- package/lib/esm/resources/stock_line_items.js +1 -1
- package/lib/esm/resources/stock_locations.d.ts +2 -2
- package/lib/esm/resources/stock_locations.js +1 -1
- package/lib/esm/resources/stock_transfers.d.ts +2 -2
- package/lib/esm/resources/stock_transfers.js +1 -1
- package/lib/esm/resources/stripe_gateways.d.ts +2 -2
- package/lib/esm/resources/stripe_gateways.js +1 -1
- package/lib/esm/resources/stripe_payments.d.ts +2 -2
- package/lib/esm/resources/stripe_payments.js +1 -1
- package/lib/esm/resources/tax_calculators.d.ts +4 -3
- package/lib/esm/resources/tax_calculators.js +1 -1
- package/lib/esm/resources/tax_categories.d.ts +2 -2
- package/lib/esm/resources/tax_categories.js +1 -1
- package/lib/esm/resources/tax_rules.d.ts +2 -2
- package/lib/esm/resources/tax_rules.js +1 -1
- package/lib/esm/resources/taxjar_accounts.d.ts +2 -2
- package/lib/esm/resources/taxjar_accounts.js +1 -1
- package/lib/esm/resources/transactions.d.ts +4 -3
- package/lib/esm/resources/transactions.js +1 -1
- package/lib/esm/resources/voids.d.ts +2 -2
- package/lib/esm/resources/voids.js +1 -1
- package/lib/esm/resources/webhooks.d.ts +2 -2
- package/lib/esm/resources/webhooks.js +1 -1
- package/lib/esm/resources/wire_transfers.d.ts +2 -2
- 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 +3 -7
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as u}from"../resource";class t extends u{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)}isShipment(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="shipments";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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)}isShippingCategory(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="shipping_categories";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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)}isShippingMethod(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="shipping_methods";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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)}isShippingZone(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="shipping_zones";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -17,18 +17,21 @@ declare type SkuRel = ResourceId & {
|
|
17
17
|
};
|
18
18
|
interface SkuListItem extends Resource {
|
19
19
|
position?: number;
|
20
|
+
sku_code?: string;
|
20
21
|
quantity?: number;
|
21
22
|
sku_list?: SkuList;
|
22
23
|
sku?: Sku;
|
23
24
|
}
|
24
25
|
interface SkuListItemCreate extends ResourceCreate {
|
25
|
-
position
|
26
|
-
|
26
|
+
position?: number;
|
27
|
+
sku_code?: string;
|
28
|
+
quantity?: number;
|
27
29
|
sku_list?: SkuListRel;
|
28
30
|
sku?: SkuRel;
|
29
31
|
}
|
30
32
|
interface SkuListItemUpdate extends ResourceUpdate {
|
31
33
|
position?: number;
|
34
|
+
sku_code?: string;
|
32
35
|
quantity?: number;
|
33
36
|
}
|
34
37
|
declare class SkuListItems extends ApiResource {
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as n}from"../resource";class r extends n{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)}isSkuListItem(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="sku_list_items";export default r;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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)}isSkuListPromotionRule(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="sku_list_promotion_rules";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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,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)}isSkuList(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="sku_lists";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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)}isSkuOption(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="sku_options";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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)}isSku(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="skus";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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)}isStockItem(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="stock_items";export default r;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}isStockLineItem(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="stock_line_items";export default r;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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 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)}isStockLocation(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="stock_locations";export default r;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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)}isStockTransfer(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="stock_transfers";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as n}from"../resource";class t extends n{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)}isStripeGateway(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="stripe_gateways";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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)}isStripePayment(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="stripe_payments";export default t;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
|
6
|
+
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
7
|
import { TaxCategory } from './tax_categories';
|
8
8
|
import { Market } from './markets';
|
9
9
|
import { Attachment } from './attachments';
|
@@ -19,6 +19,7 @@ interface TaxCalculator extends Resource {
|
|
19
19
|
declare class TaxCalculators extends ApiResource {
|
20
20
|
static readonly TYPE: 'tax_calculators';
|
21
21
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCalculator>>;
|
22
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxCalculator>;
|
22
23
|
isTaxCalculator(resource: any): resource is TaxCalculator;
|
23
24
|
relationship(id: string | ResourceId): TaxCalculatorRel;
|
24
25
|
type(): string;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as p}from"../resource";class t extends p{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async retrieve(e,r,i){return this.resources.retrieve({type:t.TYPE,id:e},r,i)}isTaxCalculator(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="tax_calculators";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as n}from"../resource";class t extends n{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)}isTaxCategory(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="tax_categories";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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)}isTaxRule(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="tax_rules";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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)}isTaxjarAccount(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="taxjar_accounts";export default t;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
|
6
|
+
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
7
|
import { Order } from './orders';
|
8
8
|
declare type TransactionRel = ResourceId & {
|
9
9
|
type: typeof Transactions.TYPE;
|
@@ -25,6 +25,7 @@ interface Transaction extends Resource {
|
|
25
25
|
declare class Transactions extends ApiResource {
|
26
26
|
static readonly TYPE: 'transactions';
|
27
27
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Transaction>>;
|
28
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Transaction>;
|
28
29
|
isTransaction(resource: any): resource is Transaction;
|
29
30
|
relationship(id: string | ResourceId): TransactionRel;
|
30
31
|
type(): string;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as y}from"../resource";class t extends y{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)}isTransaction(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="transactions";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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)}isVoid(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="voids";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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)}isWebhook(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="webhooks";export default t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as p}from"../resource";class e extends p{async list(t,s){return this.resources.list({type:e.TYPE},t,s)}async create(t,s,c){return this.resources.create(Object.assign(Object.assign({},t),{type:e.TYPE}),s,c)}async retrieve(t,s,c){return this.resources.retrieve({type:e.TYPE,id:t},s,c)}async update(t,s,c){return this.resources.update(Object.assign(Object.assign({},t),{type:e.TYPE}),s,c)}async delete(t,s){await this.resources.delete({type:e.TYPE,id:t},s)}isWireTransfer(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="wire_transfers";export default e;
|
package/lib/esm/static.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import*as o from"./api";import{SdkError as i,ApiError as
|
1
|
+
import*as o from"./api";import{SdkError as i,ApiError as e}from"./error";export const CommerceLayerStatic={resources:()=>o.resourceList,isSdkError:r=>i.isSdkError(r),isApiError:r=>e.isApiError(r)};
|