@commercelayer/sdk 5.35.0 → 6.0.0-alfa.10
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 +0 -3
- package/lib/cjs/api.js +0 -10
- package/lib/cjs/client.d.ts +6 -14
- package/lib/cjs/client.js +41 -75
- package/lib/cjs/commercelayer.d.ts +126 -125
- package/lib/cjs/commercelayer.js +267 -155
- package/lib/cjs/common.js +1 -12
- package/lib/cjs/config.js +0 -2
- package/lib/cjs/debug.js +0 -21
- package/lib/cjs/error.d.ts +6 -7
- package/lib/cjs/error.js +36 -35
- package/lib/cjs/fetch.d.ts +13 -0
- package/lib/cjs/fetch.js +67 -0
- package/lib/cjs/index.js +0 -2
- package/lib/cjs/interceptor.d.ts +22 -10
- package/lib/cjs/jsonapi.js +0 -2
- package/lib/cjs/model.d.ts +0 -3
- package/lib/cjs/model.js +0 -1
- package/lib/cjs/query.d.ts +2 -1
- package/lib/cjs/query.js +8 -7
- package/lib/cjs/resource.d.ts +2 -5
- package/lib/cjs/resource.js +32 -58
- package/lib/cjs/resources/addresses.d.ts +1 -0
- package/lib/cjs/resources/addresses.js +4 -1
- package/lib/cjs/resources/adjustments.d.ts +1 -0
- package/lib/cjs/resources/adjustments.js +4 -1
- package/lib/cjs/resources/adyen_gateways.d.ts +1 -0
- package/lib/cjs/resources/adyen_gateways.js +4 -1
- package/lib/cjs/resources/adyen_payments.d.ts +1 -0
- package/lib/cjs/resources/adyen_payments.js +4 -1
- package/lib/cjs/resources/application.d.ts +1 -0
- package/lib/cjs/resources/application.js +4 -1
- package/lib/cjs/resources/attachments.d.ts +1 -0
- package/lib/cjs/resources/attachments.js +4 -1
- package/lib/cjs/resources/authorizations.d.ts +1 -0
- package/lib/cjs/resources/authorizations.js +4 -1
- package/lib/cjs/resources/avalara_accounts.d.ts +1 -0
- package/lib/cjs/resources/avalara_accounts.js +4 -1
- package/lib/cjs/resources/axerve_gateways.d.ts +1 -0
- package/lib/cjs/resources/axerve_gateways.js +4 -1
- package/lib/cjs/resources/axerve_payments.d.ts +1 -0
- package/lib/cjs/resources/axerve_payments.js +4 -1
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -0
- package/lib/cjs/resources/billing_info_validation_rules.js +4 -1
- package/lib/cjs/resources/bing_geocoders.d.ts +1 -0
- package/lib/cjs/resources/bing_geocoders.js +4 -1
- package/lib/cjs/resources/braintree_gateways.d.ts +1 -0
- package/lib/cjs/resources/braintree_gateways.js +4 -1
- package/lib/cjs/resources/braintree_payments.d.ts +1 -0
- package/lib/cjs/resources/braintree_payments.js +4 -1
- package/lib/cjs/resources/bundles.d.ts +1 -0
- package/lib/cjs/resources/bundles.js +4 -1
- package/lib/cjs/resources/buy_x_pay_y_promotions.d.ts +1 -0
- package/lib/cjs/resources/buy_x_pay_y_promotions.js +4 -1
- package/lib/cjs/resources/captures.d.ts +1 -0
- package/lib/cjs/resources/captures.js +4 -1
- package/lib/cjs/resources/carrier_accounts.d.ts +1 -0
- package/lib/cjs/resources/carrier_accounts.js +4 -1
- package/lib/cjs/resources/checkout_com_gateways.d.ts +1 -0
- package/lib/cjs/resources/checkout_com_gateways.js +4 -1
- package/lib/cjs/resources/checkout_com_payments.d.ts +1 -0
- package/lib/cjs/resources/checkout_com_payments.js +4 -1
- package/lib/cjs/resources/cleanups.d.ts +1 -0
- package/lib/cjs/resources/cleanups.js +4 -1
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +4 -1
- package/lib/cjs/resources/coupon_recipients.d.ts +1 -0
- package/lib/cjs/resources/coupon_recipients.js +4 -1
- package/lib/cjs/resources/coupons.d.ts +1 -0
- package/lib/cjs/resources/coupons.js +4 -1
- package/lib/cjs/resources/custom_promotion_rules.d.ts +1 -0
- package/lib/cjs/resources/custom_promotion_rules.js +4 -1
- package/lib/cjs/resources/customer_addresses.d.ts +1 -0
- package/lib/cjs/resources/customer_addresses.js +4 -1
- package/lib/cjs/resources/customer_groups.d.ts +1 -0
- package/lib/cjs/resources/customer_groups.js +4 -1
- package/lib/cjs/resources/customer_password_resets.d.ts +1 -0
- package/lib/cjs/resources/customer_password_resets.js +4 -1
- package/lib/cjs/resources/customer_payment_sources.d.ts +1 -0
- package/lib/cjs/resources/customer_payment_sources.js +4 -1
- package/lib/cjs/resources/customer_subscriptions.d.ts +1 -0
- package/lib/cjs/resources/customer_subscriptions.js +4 -1
- package/lib/cjs/resources/customers.d.ts +1 -0
- package/lib/cjs/resources/customers.js +4 -1
- package/lib/cjs/resources/delivery_lead_times.d.ts +1 -0
- package/lib/cjs/resources/delivery_lead_times.js +4 -1
- package/lib/cjs/resources/event_callbacks.d.ts +1 -0
- package/lib/cjs/resources/event_callbacks.js +4 -1
- package/lib/cjs/resources/events.d.ts +1 -0
- package/lib/cjs/resources/events.js +4 -1
- package/lib/cjs/resources/exports.d.ts +1 -0
- package/lib/cjs/resources/exports.js +4 -1
- package/lib/cjs/resources/external_gateways.d.ts +1 -0
- package/lib/cjs/resources/external_gateways.js +4 -1
- package/lib/cjs/resources/external_payments.d.ts +1 -0
- package/lib/cjs/resources/external_payments.js +4 -1
- package/lib/cjs/resources/external_promotions.d.ts +1 -0
- package/lib/cjs/resources/external_promotions.js +4 -1
- package/lib/cjs/resources/external_tax_calculators.d.ts +1 -0
- package/lib/cjs/resources/external_tax_calculators.js +4 -1
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -0
- package/lib/cjs/resources/fixed_amount_promotions.js +4 -1
- package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -0
- package/lib/cjs/resources/fixed_price_promotions.js +4 -1
- package/lib/cjs/resources/free_gift_promotions.d.ts +1 -0
- package/lib/cjs/resources/free_gift_promotions.js +4 -1
- package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -0
- package/lib/cjs/resources/free_shipping_promotions.js +4 -1
- package/lib/cjs/resources/geocoders.d.ts +1 -0
- package/lib/cjs/resources/geocoders.js +4 -1
- package/lib/cjs/resources/gift_card_recipients.d.ts +1 -0
- package/lib/cjs/resources/gift_card_recipients.js +4 -1
- package/lib/cjs/resources/gift_cards.d.ts +1 -0
- package/lib/cjs/resources/gift_cards.js +4 -1
- package/lib/cjs/resources/google_geocoders.d.ts +1 -0
- package/lib/cjs/resources/google_geocoders.js +4 -1
- package/lib/cjs/resources/imports.d.ts +1 -0
- package/lib/cjs/resources/imports.js +4 -1
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -0
- package/lib/cjs/resources/in_stock_subscriptions.js +4 -1
- package/lib/cjs/resources/inventory_models.d.ts +1 -0
- package/lib/cjs/resources/inventory_models.js +4 -1
- package/lib/cjs/resources/inventory_return_locations.d.ts +1 -0
- package/lib/cjs/resources/inventory_return_locations.js +4 -1
- package/lib/cjs/resources/inventory_stock_locations.d.ts +1 -0
- package/lib/cjs/resources/inventory_stock_locations.js +4 -1
- package/lib/cjs/resources/klarna_gateways.d.ts +1 -0
- package/lib/cjs/resources/klarna_gateways.js +4 -1
- package/lib/cjs/resources/klarna_payments.d.ts +1 -0
- package/lib/cjs/resources/klarna_payments.js +4 -1
- package/lib/cjs/resources/line_item_options.d.ts +1 -0
- package/lib/cjs/resources/line_item_options.js +4 -1
- package/lib/cjs/resources/line_items.d.ts +1 -0
- package/lib/cjs/resources/line_items.js +4 -1
- package/lib/cjs/resources/manual_gateways.d.ts +1 -0
- package/lib/cjs/resources/manual_gateways.js +4 -1
- package/lib/cjs/resources/manual_tax_calculators.d.ts +1 -0
- package/lib/cjs/resources/manual_tax_calculators.js +4 -1
- package/lib/cjs/resources/markets.d.ts +1 -0
- package/lib/cjs/resources/markets.js +4 -1
- package/lib/cjs/resources/merchants.d.ts +1 -0
- package/lib/cjs/resources/merchants.js +4 -1
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -0
- package/lib/cjs/resources/order_amount_promotion_rules.js +4 -1
- package/lib/cjs/resources/order_copies.d.ts +1 -0
- package/lib/cjs/resources/order_copies.js +4 -1
- package/lib/cjs/resources/order_factories.d.ts +1 -0
- package/lib/cjs/resources/order_factories.js +4 -1
- package/lib/cjs/resources/order_subscription_items.d.ts +1 -0
- package/lib/cjs/resources/order_subscription_items.js +4 -1
- package/lib/cjs/resources/order_subscriptions.d.ts +1 -0
- package/lib/cjs/resources/order_subscriptions.js +4 -1
- package/lib/cjs/resources/order_validation_rules.d.ts +1 -0
- package/lib/cjs/resources/order_validation_rules.js +4 -1
- package/lib/cjs/resources/orders.d.ts +1 -0
- package/lib/cjs/resources/orders.js +4 -1
- package/lib/cjs/resources/organization.d.ts +1 -0
- package/lib/cjs/resources/organization.js +4 -1
- package/lib/cjs/resources/packages.d.ts +1 -0
- package/lib/cjs/resources/packages.js +4 -1
- package/lib/cjs/resources/parcel_line_items.d.ts +1 -0
- package/lib/cjs/resources/parcel_line_items.js +4 -1
- package/lib/cjs/resources/parcels.d.ts +1 -0
- package/lib/cjs/resources/parcels.js +4 -1
- package/lib/cjs/resources/payment_gateways.d.ts +1 -0
- package/lib/cjs/resources/payment_gateways.js +4 -1
- package/lib/cjs/resources/payment_methods.d.ts +1 -0
- package/lib/cjs/resources/payment_methods.js +4 -1
- package/lib/cjs/resources/payment_options.d.ts +1 -0
- package/lib/cjs/resources/payment_options.js +4 -1
- package/lib/cjs/resources/paypal_gateways.d.ts +1 -0
- package/lib/cjs/resources/paypal_gateways.js +4 -1
- package/lib/cjs/resources/paypal_payments.d.ts +1 -0
- package/lib/cjs/resources/paypal_payments.js +4 -1
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -0
- package/lib/cjs/resources/percentage_discount_promotions.js +4 -1
- package/lib/cjs/resources/price_frequency_tiers.d.ts +1 -0
- package/lib/cjs/resources/price_frequency_tiers.js +4 -1
- package/lib/cjs/resources/price_lists.d.ts +1 -0
- package/lib/cjs/resources/price_lists.js +4 -1
- package/lib/cjs/resources/price_tiers.d.ts +1 -0
- package/lib/cjs/resources/price_tiers.js +4 -1
- package/lib/cjs/resources/price_volume_tiers.d.ts +1 -0
- package/lib/cjs/resources/price_volume_tiers.js +4 -1
- package/lib/cjs/resources/prices.d.ts +1 -0
- package/lib/cjs/resources/prices.js +4 -1
- package/lib/cjs/resources/promotion_rules.d.ts +1 -0
- package/lib/cjs/resources/promotion_rules.js +4 -1
- package/lib/cjs/resources/promotions.d.ts +1 -0
- package/lib/cjs/resources/promotions.js +4 -1
- package/lib/cjs/resources/recurring_order_copies.d.ts +1 -0
- package/lib/cjs/resources/recurring_order_copies.js +4 -1
- package/lib/cjs/resources/refunds.d.ts +1 -0
- package/lib/cjs/resources/refunds.js +4 -1
- package/lib/cjs/resources/reserved_stocks.d.ts +1 -0
- package/lib/cjs/resources/reserved_stocks.js +4 -1
- package/lib/cjs/resources/resource_errors.d.ts +1 -0
- package/lib/cjs/resources/resource_errors.js +4 -1
- package/lib/cjs/resources/return_line_items.d.ts +1 -0
- package/lib/cjs/resources/return_line_items.js +4 -1
- package/lib/cjs/resources/returns.d.ts +1 -0
- package/lib/cjs/resources/returns.js +4 -1
- package/lib/cjs/resources/satispay_gateways.d.ts +1 -0
- package/lib/cjs/resources/satispay_gateways.js +4 -1
- package/lib/cjs/resources/satispay_payments.d.ts +1 -0
- package/lib/cjs/resources/satispay_payments.js +4 -1
- package/lib/cjs/resources/shipments.d.ts +1 -0
- package/lib/cjs/resources/shipments.js +4 -1
- package/lib/cjs/resources/shipping_categories.d.ts +1 -0
- package/lib/cjs/resources/shipping_categories.js +4 -1
- package/lib/cjs/resources/shipping_method_tiers.d.ts +1 -0
- package/lib/cjs/resources/shipping_method_tiers.js +4 -1
- package/lib/cjs/resources/shipping_methods.d.ts +1 -0
- package/lib/cjs/resources/shipping_methods.js +4 -1
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +1 -0
- package/lib/cjs/resources/shipping_weight_tiers.js +4 -1
- package/lib/cjs/resources/shipping_zones.d.ts +1 -0
- package/lib/cjs/resources/shipping_zones.js +4 -1
- package/lib/cjs/resources/sku_list_items.d.ts +1 -0
- package/lib/cjs/resources/sku_list_items.js +4 -1
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -0
- package/lib/cjs/resources/sku_list_promotion_rules.js +4 -1
- package/lib/cjs/resources/sku_lists.d.ts +1 -0
- package/lib/cjs/resources/sku_lists.js +4 -1
- package/lib/cjs/resources/sku_options.d.ts +1 -0
- package/lib/cjs/resources/sku_options.js +4 -1
- package/lib/cjs/resources/skus.d.ts +1 -0
- package/lib/cjs/resources/skus.js +4 -1
- package/lib/cjs/resources/stock_items.d.ts +1 -0
- package/lib/cjs/resources/stock_items.js +4 -1
- package/lib/cjs/resources/stock_line_items.d.ts +1 -0
- package/lib/cjs/resources/stock_line_items.js +4 -1
- package/lib/cjs/resources/stock_locations.d.ts +1 -0
- package/lib/cjs/resources/stock_locations.js +4 -1
- package/lib/cjs/resources/stock_reservations.d.ts +1 -0
- package/lib/cjs/resources/stock_reservations.js +4 -1
- package/lib/cjs/resources/stock_transfers.d.ts +1 -0
- package/lib/cjs/resources/stock_transfers.js +4 -1
- package/lib/cjs/resources/stripe_gateways.d.ts +1 -0
- package/lib/cjs/resources/stripe_gateways.js +4 -1
- package/lib/cjs/resources/stripe_payments.d.ts +1 -0
- package/lib/cjs/resources/stripe_payments.js +4 -1
- package/lib/cjs/resources/subscription_models.d.ts +1 -0
- package/lib/cjs/resources/subscription_models.js +4 -1
- package/lib/cjs/resources/tags.d.ts +1 -0
- package/lib/cjs/resources/tags.js +4 -1
- package/lib/cjs/resources/tax_calculators.d.ts +1 -0
- package/lib/cjs/resources/tax_calculators.js +4 -1
- package/lib/cjs/resources/tax_categories.d.ts +1 -0
- package/lib/cjs/resources/tax_categories.js +4 -1
- package/lib/cjs/resources/tax_rules.d.ts +1 -0
- package/lib/cjs/resources/tax_rules.js +4 -1
- package/lib/cjs/resources/taxjar_accounts.d.ts +1 -0
- package/lib/cjs/resources/taxjar_accounts.js +4 -1
- package/lib/cjs/resources/transactions.d.ts +1 -0
- package/lib/cjs/resources/transactions.js +4 -1
- package/lib/cjs/resources/versions.d.ts +1 -0
- package/lib/cjs/resources/versions.js +4 -1
- package/lib/cjs/resources/voids.d.ts +1 -0
- package/lib/cjs/resources/voids.js +4 -1
- package/lib/cjs/resources/webhooks.d.ts +1 -0
- package/lib/cjs/resources/webhooks.js +4 -1
- package/lib/cjs/resources/wire_transfers.d.ts +1 -0
- package/lib/cjs/resources/wire_transfers.js +4 -1
- package/lib/cjs/static.js +0 -1
- package/lib/cjs/util.js +0 -1
- package/lib/esm/api.d.ts +0 -3
- package/lib/esm/api.js +0 -10
- package/lib/esm/client.d.ts +6 -14
- package/lib/esm/client.js +43 -90
- package/lib/esm/commercelayer.d.ts +126 -125
- package/lib/esm/commercelayer.js +270 -171
- package/lib/esm/common.js +1 -12
- package/lib/esm/config.js +0 -2
- package/lib/esm/debug.js +0 -21
- package/lib/esm/error.d.ts +6 -7
- package/lib/esm/error.js +44 -35
- package/lib/esm/fetch.d.ts +13 -0
- package/lib/esm/fetch.js +46 -0
- package/lib/esm/index.js +0 -2
- package/lib/esm/interceptor.d.ts +22 -10
- package/lib/esm/jsonapi.js +0 -2
- package/lib/esm/model.d.ts +0 -3
- package/lib/esm/model.js +0 -1
- package/lib/esm/query.d.ts +2 -1
- package/lib/esm/query.js +7 -7
- package/lib/esm/resource.d.ts +2 -5
- package/lib/esm/resource.js +40 -76
- package/lib/esm/resources/addresses.d.ts +1 -0
- package/lib/esm/resources/addresses.js +5 -2
- package/lib/esm/resources/adjustments.d.ts +1 -0
- package/lib/esm/resources/adjustments.js +5 -2
- package/lib/esm/resources/adyen_gateways.d.ts +1 -0
- package/lib/esm/resources/adyen_gateways.js +5 -2
- package/lib/esm/resources/adyen_payments.d.ts +1 -0
- package/lib/esm/resources/adyen_payments.js +5 -2
- package/lib/esm/resources/application.d.ts +1 -0
- package/lib/esm/resources/application.js +5 -2
- package/lib/esm/resources/attachments.d.ts +1 -0
- package/lib/esm/resources/attachments.js +5 -2
- package/lib/esm/resources/authorizations.d.ts +1 -0
- package/lib/esm/resources/authorizations.js +5 -2
- package/lib/esm/resources/avalara_accounts.d.ts +1 -0
- package/lib/esm/resources/avalara_accounts.js +5 -2
- package/lib/esm/resources/axerve_gateways.d.ts +1 -0
- package/lib/esm/resources/axerve_gateways.js +5 -2
- package/lib/esm/resources/axerve_payments.d.ts +1 -0
- package/lib/esm/resources/axerve_payments.js +5 -2
- package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -0
- package/lib/esm/resources/billing_info_validation_rules.js +5 -2
- package/lib/esm/resources/bing_geocoders.d.ts +1 -0
- package/lib/esm/resources/bing_geocoders.js +5 -2
- package/lib/esm/resources/braintree_gateways.d.ts +1 -0
- package/lib/esm/resources/braintree_gateways.js +5 -2
- package/lib/esm/resources/braintree_payments.d.ts +1 -0
- package/lib/esm/resources/braintree_payments.js +5 -2
- package/lib/esm/resources/bundles.d.ts +1 -0
- package/lib/esm/resources/bundles.js +5 -2
- package/lib/esm/resources/buy_x_pay_y_promotions.d.ts +1 -0
- package/lib/esm/resources/buy_x_pay_y_promotions.js +5 -2
- package/lib/esm/resources/captures.d.ts +1 -0
- package/lib/esm/resources/captures.js +5 -2
- package/lib/esm/resources/carrier_accounts.d.ts +1 -0
- package/lib/esm/resources/carrier_accounts.js +5 -2
- package/lib/esm/resources/checkout_com_gateways.d.ts +1 -0
- package/lib/esm/resources/checkout_com_gateways.js +5 -2
- package/lib/esm/resources/checkout_com_payments.d.ts +1 -0
- package/lib/esm/resources/checkout_com_payments.js +5 -2
- package/lib/esm/resources/cleanups.d.ts +1 -0
- package/lib/esm/resources/cleanups.js +5 -2
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.js +5 -2
- package/lib/esm/resources/coupon_recipients.d.ts +1 -0
- package/lib/esm/resources/coupon_recipients.js +5 -2
- package/lib/esm/resources/coupons.d.ts +1 -0
- package/lib/esm/resources/coupons.js +5 -2
- package/lib/esm/resources/custom_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/custom_promotion_rules.js +5 -2
- package/lib/esm/resources/customer_addresses.d.ts +1 -0
- package/lib/esm/resources/customer_addresses.js +5 -2
- package/lib/esm/resources/customer_groups.d.ts +1 -0
- package/lib/esm/resources/customer_groups.js +5 -2
- package/lib/esm/resources/customer_password_resets.d.ts +1 -0
- package/lib/esm/resources/customer_password_resets.js +5 -2
- package/lib/esm/resources/customer_payment_sources.d.ts +1 -0
- package/lib/esm/resources/customer_payment_sources.js +5 -2
- package/lib/esm/resources/customer_subscriptions.d.ts +1 -0
- package/lib/esm/resources/customer_subscriptions.js +5 -2
- package/lib/esm/resources/customers.d.ts +1 -0
- package/lib/esm/resources/customers.js +5 -2
- package/lib/esm/resources/delivery_lead_times.d.ts +1 -0
- package/lib/esm/resources/delivery_lead_times.js +5 -2
- package/lib/esm/resources/event_callbacks.d.ts +1 -0
- package/lib/esm/resources/event_callbacks.js +5 -2
- package/lib/esm/resources/events.d.ts +1 -0
- package/lib/esm/resources/events.js +5 -2
- package/lib/esm/resources/exports.d.ts +1 -0
- package/lib/esm/resources/exports.js +5 -2
- package/lib/esm/resources/external_gateways.d.ts +1 -0
- package/lib/esm/resources/external_gateways.js +5 -2
- package/lib/esm/resources/external_payments.d.ts +1 -0
- package/lib/esm/resources/external_payments.js +5 -2
- package/lib/esm/resources/external_promotions.d.ts +1 -0
- package/lib/esm/resources/external_promotions.js +5 -2
- package/lib/esm/resources/external_tax_calculators.d.ts +1 -0
- package/lib/esm/resources/external_tax_calculators.js +5 -2
- package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -0
- package/lib/esm/resources/fixed_amount_promotions.js +5 -2
- package/lib/esm/resources/fixed_price_promotions.d.ts +1 -0
- package/lib/esm/resources/fixed_price_promotions.js +5 -2
- package/lib/esm/resources/free_gift_promotions.d.ts +1 -0
- package/lib/esm/resources/free_gift_promotions.js +5 -2
- package/lib/esm/resources/free_shipping_promotions.d.ts +1 -0
- package/lib/esm/resources/free_shipping_promotions.js +5 -2
- package/lib/esm/resources/geocoders.d.ts +1 -0
- package/lib/esm/resources/geocoders.js +5 -2
- package/lib/esm/resources/gift_card_recipients.d.ts +1 -0
- package/lib/esm/resources/gift_card_recipients.js +5 -2
- package/lib/esm/resources/gift_cards.d.ts +1 -0
- package/lib/esm/resources/gift_cards.js +5 -2
- package/lib/esm/resources/google_geocoders.d.ts +1 -0
- package/lib/esm/resources/google_geocoders.js +5 -2
- package/lib/esm/resources/imports.d.ts +1 -0
- package/lib/esm/resources/imports.js +5 -2
- package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -0
- package/lib/esm/resources/in_stock_subscriptions.js +5 -2
- package/lib/esm/resources/inventory_models.d.ts +1 -0
- package/lib/esm/resources/inventory_models.js +5 -2
- package/lib/esm/resources/inventory_return_locations.d.ts +1 -0
- package/lib/esm/resources/inventory_return_locations.js +5 -2
- package/lib/esm/resources/inventory_stock_locations.d.ts +1 -0
- package/lib/esm/resources/inventory_stock_locations.js +5 -2
- package/lib/esm/resources/klarna_gateways.d.ts +1 -0
- package/lib/esm/resources/klarna_gateways.js +5 -2
- package/lib/esm/resources/klarna_payments.d.ts +1 -0
- package/lib/esm/resources/klarna_payments.js +5 -2
- package/lib/esm/resources/line_item_options.d.ts +1 -0
- package/lib/esm/resources/line_item_options.js +5 -2
- package/lib/esm/resources/line_items.d.ts +1 -0
- package/lib/esm/resources/line_items.js +5 -2
- package/lib/esm/resources/manual_gateways.d.ts +1 -0
- package/lib/esm/resources/manual_gateways.js +5 -2
- package/lib/esm/resources/manual_tax_calculators.d.ts +1 -0
- package/lib/esm/resources/manual_tax_calculators.js +5 -2
- package/lib/esm/resources/markets.d.ts +1 -0
- package/lib/esm/resources/markets.js +5 -2
- package/lib/esm/resources/merchants.d.ts +1 -0
- package/lib/esm/resources/merchants.js +5 -2
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/order_amount_promotion_rules.js +5 -2
- package/lib/esm/resources/order_copies.d.ts +1 -0
- package/lib/esm/resources/order_copies.js +5 -2
- package/lib/esm/resources/order_factories.d.ts +1 -0
- package/lib/esm/resources/order_factories.js +5 -2
- package/lib/esm/resources/order_subscription_items.d.ts +1 -0
- package/lib/esm/resources/order_subscription_items.js +5 -2
- package/lib/esm/resources/order_subscriptions.d.ts +1 -0
- package/lib/esm/resources/order_subscriptions.js +5 -2
- package/lib/esm/resources/order_validation_rules.d.ts +1 -0
- package/lib/esm/resources/order_validation_rules.js +5 -2
- package/lib/esm/resources/orders.d.ts +1 -0
- package/lib/esm/resources/orders.js +5 -2
- package/lib/esm/resources/organization.d.ts +1 -0
- package/lib/esm/resources/organization.js +5 -2
- package/lib/esm/resources/packages.d.ts +1 -0
- package/lib/esm/resources/packages.js +5 -2
- package/lib/esm/resources/parcel_line_items.d.ts +1 -0
- package/lib/esm/resources/parcel_line_items.js +5 -2
- package/lib/esm/resources/parcels.d.ts +1 -0
- package/lib/esm/resources/parcels.js +5 -2
- package/lib/esm/resources/payment_gateways.d.ts +1 -0
- package/lib/esm/resources/payment_gateways.js +5 -2
- package/lib/esm/resources/payment_methods.d.ts +1 -0
- package/lib/esm/resources/payment_methods.js +5 -2
- package/lib/esm/resources/payment_options.d.ts +1 -0
- package/lib/esm/resources/payment_options.js +5 -2
- package/lib/esm/resources/paypal_gateways.d.ts +1 -0
- package/lib/esm/resources/paypal_gateways.js +5 -2
- package/lib/esm/resources/paypal_payments.d.ts +1 -0
- package/lib/esm/resources/paypal_payments.js +5 -2
- package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -0
- package/lib/esm/resources/percentage_discount_promotions.js +5 -2
- package/lib/esm/resources/price_frequency_tiers.d.ts +1 -0
- package/lib/esm/resources/price_frequency_tiers.js +5 -2
- package/lib/esm/resources/price_lists.d.ts +1 -0
- package/lib/esm/resources/price_lists.js +5 -2
- package/lib/esm/resources/price_tiers.d.ts +1 -0
- package/lib/esm/resources/price_tiers.js +5 -2
- package/lib/esm/resources/price_volume_tiers.d.ts +1 -0
- package/lib/esm/resources/price_volume_tiers.js +5 -2
- package/lib/esm/resources/prices.d.ts +1 -0
- package/lib/esm/resources/prices.js +5 -2
- package/lib/esm/resources/promotion_rules.d.ts +1 -0
- package/lib/esm/resources/promotion_rules.js +5 -2
- package/lib/esm/resources/promotions.d.ts +1 -0
- package/lib/esm/resources/promotions.js +5 -2
- package/lib/esm/resources/recurring_order_copies.d.ts +1 -0
- package/lib/esm/resources/recurring_order_copies.js +5 -2
- package/lib/esm/resources/refunds.d.ts +1 -0
- package/lib/esm/resources/refunds.js +5 -2
- package/lib/esm/resources/reserved_stocks.d.ts +1 -0
- package/lib/esm/resources/reserved_stocks.js +5 -2
- package/lib/esm/resources/resource_errors.d.ts +1 -0
- package/lib/esm/resources/resource_errors.js +5 -2
- package/lib/esm/resources/return_line_items.d.ts +1 -0
- package/lib/esm/resources/return_line_items.js +5 -2
- package/lib/esm/resources/returns.d.ts +1 -0
- package/lib/esm/resources/returns.js +5 -2
- package/lib/esm/resources/satispay_gateways.d.ts +1 -0
- package/lib/esm/resources/satispay_gateways.js +5 -2
- package/lib/esm/resources/satispay_payments.d.ts +1 -0
- package/lib/esm/resources/satispay_payments.js +5 -2
- package/lib/esm/resources/shipments.d.ts +1 -0
- package/lib/esm/resources/shipments.js +5 -2
- package/lib/esm/resources/shipping_categories.d.ts +1 -0
- package/lib/esm/resources/shipping_categories.js +5 -2
- package/lib/esm/resources/shipping_method_tiers.d.ts +1 -0
- package/lib/esm/resources/shipping_method_tiers.js +5 -2
- package/lib/esm/resources/shipping_methods.d.ts +1 -0
- package/lib/esm/resources/shipping_methods.js +5 -2
- package/lib/esm/resources/shipping_weight_tiers.d.ts +1 -0
- package/lib/esm/resources/shipping_weight_tiers.js +5 -2
- package/lib/esm/resources/shipping_zones.d.ts +1 -0
- package/lib/esm/resources/shipping_zones.js +5 -2
- package/lib/esm/resources/sku_list_items.d.ts +1 -0
- package/lib/esm/resources/sku_list_items.js +5 -2
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/sku_list_promotion_rules.js +5 -2
- package/lib/esm/resources/sku_lists.d.ts +1 -0
- package/lib/esm/resources/sku_lists.js +5 -2
- package/lib/esm/resources/sku_options.d.ts +1 -0
- package/lib/esm/resources/sku_options.js +5 -2
- package/lib/esm/resources/skus.d.ts +1 -0
- package/lib/esm/resources/skus.js +5 -2
- package/lib/esm/resources/stock_items.d.ts +1 -0
- package/lib/esm/resources/stock_items.js +5 -2
- package/lib/esm/resources/stock_line_items.d.ts +1 -0
- package/lib/esm/resources/stock_line_items.js +5 -2
- package/lib/esm/resources/stock_locations.d.ts +1 -0
- package/lib/esm/resources/stock_locations.js +5 -2
- package/lib/esm/resources/stock_reservations.d.ts +1 -0
- package/lib/esm/resources/stock_reservations.js +5 -2
- package/lib/esm/resources/stock_transfers.d.ts +1 -0
- package/lib/esm/resources/stock_transfers.js +5 -2
- package/lib/esm/resources/stripe_gateways.d.ts +1 -0
- package/lib/esm/resources/stripe_gateways.js +5 -2
- package/lib/esm/resources/stripe_payments.d.ts +1 -0
- package/lib/esm/resources/stripe_payments.js +5 -2
- package/lib/esm/resources/subscription_models.d.ts +1 -0
- package/lib/esm/resources/subscription_models.js +5 -2
- package/lib/esm/resources/tags.d.ts +1 -0
- package/lib/esm/resources/tags.js +5 -2
- package/lib/esm/resources/tax_calculators.d.ts +1 -0
- package/lib/esm/resources/tax_calculators.js +5 -2
- package/lib/esm/resources/tax_categories.d.ts +1 -0
- package/lib/esm/resources/tax_categories.js +5 -2
- package/lib/esm/resources/tax_rules.d.ts +1 -0
- package/lib/esm/resources/tax_rules.js +5 -2
- package/lib/esm/resources/taxjar_accounts.d.ts +1 -0
- package/lib/esm/resources/taxjar_accounts.js +5 -2
- package/lib/esm/resources/transactions.d.ts +1 -0
- package/lib/esm/resources/transactions.js +5 -2
- package/lib/esm/resources/versions.d.ts +1 -0
- package/lib/esm/resources/versions.js +5 -2
- package/lib/esm/resources/voids.d.ts +1 -0
- package/lib/esm/resources/voids.js +5 -2
- package/lib/esm/resources/webhooks.d.ts +1 -0
- package/lib/esm/resources/webhooks.js +5 -2
- package/lib/esm/resources/wire_transfers.d.ts +1 -0
- package/lib/esm/resources/wire_transfers.js +5 -2
- package/lib/esm/static.js +0 -1
- package/lib/esm/util.js +1 -27
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +20 -17
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class SkuLists extends ApiResource {
|
3
|
+
static TYPE = 'sku_lists';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: SkuLists.TYPE }, params, options);
|
5
6
|
}
|
@@ -37,11 +38,13 @@ class SkuLists extends ApiResource {
|
|
37
38
|
return resource.type && (resource.type === SkuLists.TYPE);
|
38
39
|
}
|
39
40
|
relationship(id) {
|
40
|
-
return (
|
41
|
+
return super.relationshipOneToOne(id);
|
42
|
+
}
|
43
|
+
relationshipToMany(...ids) {
|
44
|
+
return super.relationshipOneToMany(...ids);
|
41
45
|
}
|
42
46
|
type() {
|
43
47
|
return SkuLists.TYPE;
|
44
48
|
}
|
45
49
|
}
|
46
|
-
SkuLists.TYPE = 'sku_lists';
|
47
50
|
export default SkuLists;
|
@@ -65,6 +65,7 @@ declare class SkuOptions extends ApiResource<SkuOption> {
|
|
65
65
|
versions(skuOptionId: string | SkuOption, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
66
66
|
isSkuOption(resource: any): resource is SkuOption;
|
67
67
|
relationship(id: string | ResourceId | null): SkuOptionRel;
|
68
|
+
relationshipToMany(...ids: string[]): SkuOptionRel[];
|
68
69
|
type(): SkuOptionType;
|
69
70
|
}
|
70
71
|
export default SkuOptions;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class SkuOptions extends ApiResource {
|
3
|
+
static TYPE = 'sku_options';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: SkuOptions.TYPE }, params, options);
|
5
6
|
}
|
@@ -33,11 +34,13 @@ class SkuOptions extends ApiResource {
|
|
33
34
|
return resource.type && (resource.type === SkuOptions.TYPE);
|
34
35
|
}
|
35
36
|
relationship(id) {
|
36
|
-
return (
|
37
|
+
return super.relationshipOneToOne(id);
|
38
|
+
}
|
39
|
+
relationshipToMany(...ids) {
|
40
|
+
return super.relationshipOneToMany(...ids);
|
37
41
|
}
|
38
42
|
type() {
|
39
43
|
return SkuOptions.TYPE;
|
40
44
|
}
|
41
45
|
}
|
42
|
-
SkuOptions.TYPE = 'sku_options';
|
43
46
|
export default SkuOptions;
|
@@ -90,6 +90,7 @@ declare class Skus extends ApiResource<Sku> {
|
|
90
90
|
versions(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
91
91
|
isSku(resource: any): resource is Sku;
|
92
92
|
relationship(id: string | ResourceId | null): SkuRel;
|
93
|
+
relationshipToMany(...ids: string[]): SkuRel[];
|
93
94
|
type(): SkuType;
|
94
95
|
}
|
95
96
|
export default Skus;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Skus extends ApiResource {
|
3
|
+
static TYPE = 'skus';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: Skus.TYPE }, params, options);
|
5
6
|
}
|
@@ -53,11 +54,13 @@ class Skus extends ApiResource {
|
|
53
54
|
return resource.type && (resource.type === Skus.TYPE);
|
54
55
|
}
|
55
56
|
relationship(id) {
|
56
|
-
return (
|
57
|
+
return super.relationshipOneToOne(id);
|
58
|
+
}
|
59
|
+
relationshipToMany(...ids) {
|
60
|
+
return super.relationshipOneToMany(...ids);
|
57
61
|
}
|
58
62
|
type() {
|
59
63
|
return Skus.TYPE;
|
60
64
|
}
|
61
65
|
}
|
62
|
-
Skus.TYPE = 'skus';
|
63
66
|
export default Skus;
|
@@ -53,6 +53,7 @@ declare class StockItems extends ApiResource<StockItem> {
|
|
53
53
|
versions(stockItemId: string | StockItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
54
54
|
isStockItem(resource: any): resource is StockItem;
|
55
55
|
relationship(id: string | ResourceId | null): StockItemRel;
|
56
|
+
relationshipToMany(...ids: string[]): StockItemRel[];
|
56
57
|
type(): StockItemType;
|
57
58
|
}
|
58
59
|
export default StockItems;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class StockItems extends ApiResource {
|
3
|
+
static TYPE = 'stock_items';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: StockItems.TYPE }, params, options);
|
5
6
|
}
|
@@ -37,11 +38,13 @@ class StockItems extends ApiResource {
|
|
37
38
|
return resource.type && (resource.type === StockItems.TYPE);
|
38
39
|
}
|
39
40
|
relationship(id) {
|
40
|
-
return (
|
41
|
+
return super.relationshipOneToOne(id);
|
42
|
+
}
|
43
|
+
relationshipToMany(...ids) {
|
44
|
+
return super.relationshipOneToMany(...ids);
|
41
45
|
}
|
42
46
|
type() {
|
43
47
|
return StockItems.TYPE;
|
44
48
|
}
|
45
49
|
}
|
46
|
-
StockItems.TYPE = 'stock_items';
|
47
50
|
export default StockItems;
|
@@ -67,6 +67,7 @@ declare class StockLineItems extends ApiResource<StockLineItem> {
|
|
67
67
|
_decrement_stock(id: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLineItem>;
|
68
68
|
isStockLineItem(resource: any): resource is StockLineItem;
|
69
69
|
relationship(id: string | ResourceId | null): StockLineItemRel;
|
70
|
+
relationshipToMany(...ids: string[]): StockLineItemRel[];
|
70
71
|
type(): StockLineItemType;
|
71
72
|
}
|
72
73
|
export default StockLineItems;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class StockLineItems extends ApiResource {
|
3
|
+
static TYPE = 'stock_line_items';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: StockLineItems.TYPE }, params, options);
|
5
6
|
}
|
@@ -42,11 +43,13 @@ class StockLineItems extends ApiResource {
|
|
42
43
|
return resource.type && (resource.type === StockLineItems.TYPE);
|
43
44
|
}
|
44
45
|
relationship(id) {
|
45
|
-
return (
|
46
|
+
return super.relationshipOneToOne(id);
|
47
|
+
}
|
48
|
+
relationshipToMany(...ids) {
|
49
|
+
return super.relationshipOneToMany(...ids);
|
46
50
|
}
|
47
51
|
type() {
|
48
52
|
return StockLineItems.TYPE;
|
49
53
|
}
|
50
54
|
}
|
51
|
-
StockLineItems.TYPE = 'stock_line_items';
|
52
55
|
export default StockLineItems;
|
@@ -58,6 +58,7 @@ declare class StockLocations extends ApiResource<StockLocation> {
|
|
58
58
|
versions(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
59
59
|
isStockLocation(resource: any): resource is StockLocation;
|
60
60
|
relationship(id: string | ResourceId | null): StockLocationRel;
|
61
|
+
relationshipToMany(...ids: string[]): StockLocationRel[];
|
61
62
|
type(): StockLocationType;
|
62
63
|
}
|
63
64
|
export default StockLocations;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class StockLocations extends ApiResource {
|
3
|
+
static TYPE = 'stock_locations';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: StockLocations.TYPE }, params, options);
|
5
6
|
}
|
@@ -41,11 +42,13 @@ class StockLocations extends ApiResource {
|
|
41
42
|
return resource.type && (resource.type === StockLocations.TYPE);
|
42
43
|
}
|
43
44
|
relationship(id) {
|
44
|
-
return (
|
45
|
+
return super.relationshipOneToOne(id);
|
46
|
+
}
|
47
|
+
relationshipToMany(...ids) {
|
48
|
+
return super.relationshipOneToMany(...ids);
|
45
49
|
}
|
46
50
|
type() {
|
47
51
|
return StockLocations.TYPE;
|
48
52
|
}
|
49
53
|
}
|
50
|
-
StockLocations.TYPE = 'stock_locations';
|
51
54
|
export default StockLocations;
|
@@ -45,6 +45,7 @@ declare class StockReservations extends ApiResource<StockReservation> {
|
|
45
45
|
_pending(id: string | StockReservation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockReservation>;
|
46
46
|
isStockReservation(resource: any): resource is StockReservation;
|
47
47
|
relationship(id: string | ResourceId | null): StockReservationRel;
|
48
|
+
relationshipToMany(...ids: string[]): StockReservationRel[];
|
48
49
|
type(): StockReservationType;
|
49
50
|
}
|
50
51
|
export default StockReservations;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class StockReservations extends ApiResource {
|
3
|
+
static TYPE = 'stock_reservations';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: StockReservations.TYPE }, params, options);
|
5
6
|
}
|
@@ -36,11 +37,13 @@ class StockReservations extends ApiResource {
|
|
36
37
|
return resource.type && (resource.type === StockReservations.TYPE);
|
37
38
|
}
|
38
39
|
relationship(id) {
|
39
|
-
return (
|
40
|
+
return super.relationshipOneToOne(id);
|
41
|
+
}
|
42
|
+
relationshipToMany(...ids) {
|
43
|
+
return super.relationshipOneToMany(...ids);
|
40
44
|
}
|
41
45
|
type() {
|
42
46
|
return StockReservations.TYPE;
|
43
47
|
}
|
44
48
|
}
|
45
|
-
StockReservations.TYPE = 'stock_reservations';
|
46
49
|
export default StockReservations;
|
@@ -80,6 +80,7 @@ declare class StockTransfers extends ApiResource<StockTransfer> {
|
|
80
80
|
_cancel(id: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockTransfer>;
|
81
81
|
isStockTransfer(resource: any): resource is StockTransfer;
|
82
82
|
relationship(id: string | ResourceId | null): StockTransferRel;
|
83
|
+
relationshipToMany(...ids: string[]): StockTransferRel[];
|
83
84
|
type(): StockTransferType;
|
84
85
|
}
|
85
86
|
export default StockTransfers;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class StockTransfers extends ApiResource {
|
3
|
+
static TYPE = 'stock_transfers';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: StockTransfers.TYPE }, params, options);
|
5
6
|
}
|
@@ -59,11 +60,13 @@ class StockTransfers extends ApiResource {
|
|
59
60
|
return resource.type && (resource.type === StockTransfers.TYPE);
|
60
61
|
}
|
61
62
|
relationship(id) {
|
62
|
-
return (
|
63
|
+
return super.relationshipOneToOne(id);
|
64
|
+
}
|
65
|
+
relationshipToMany(...ids) {
|
66
|
+
return super.relationshipOneToMany(...ids);
|
63
67
|
}
|
64
68
|
type() {
|
65
69
|
return StockTransfers.TYPE;
|
66
70
|
}
|
67
71
|
}
|
68
|
-
StockTransfers.TYPE = 'stock_transfers';
|
69
72
|
export default StockTransfers;
|
@@ -39,6 +39,7 @@ declare class StripeGateways extends ApiResource<StripeGateway> {
|
|
39
39
|
stripe_payments(stripeGatewayId: string | StripeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StripePayment>>;
|
40
40
|
isStripeGateway(resource: any): resource is StripeGateway;
|
41
41
|
relationship(id: string | ResourceId | null): StripeGatewayRel;
|
42
|
+
relationshipToMany(...ids: string[]): StripeGatewayRel[];
|
42
43
|
type(): StripeGatewayType;
|
43
44
|
}
|
44
45
|
export default StripeGateways;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class StripeGateways extends ApiResource {
|
3
|
+
static TYPE = 'stripe_gateways';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: StripeGateways.TYPE }, params, options);
|
5
6
|
}
|
@@ -25,11 +26,13 @@ class StripeGateways extends ApiResource {
|
|
25
26
|
return resource.type && (resource.type === StripeGateways.TYPE);
|
26
27
|
}
|
27
28
|
relationship(id) {
|
28
|
-
return (
|
29
|
+
return super.relationshipOneToOne(id);
|
30
|
+
}
|
31
|
+
relationshipToMany(...ids) {
|
32
|
+
return super.relationshipOneToMany(...ids);
|
29
33
|
}
|
30
34
|
type() {
|
31
35
|
return StripeGateways.TYPE;
|
32
36
|
}
|
33
37
|
}
|
34
|
-
StripeGateways.TYPE = 'stripe_gateways';
|
35
38
|
export default StripeGateways;
|
@@ -56,6 +56,7 @@ declare class StripePayments extends ApiResource<StripePayment> {
|
|
56
56
|
_refresh(id: string | StripePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripePayment>;
|
57
57
|
isStripePayment(resource: any): resource is StripePayment;
|
58
58
|
relationship(id: string | ResourceId | null): StripePaymentRel;
|
59
|
+
relationshipToMany(...ids: string[]): StripePaymentRel[];
|
59
60
|
type(): StripePaymentType;
|
60
61
|
}
|
61
62
|
export default StripePayments;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class StripePayments extends ApiResource {
|
3
|
+
static TYPE = 'stripe_payments';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: StripePayments.TYPE }, params, options);
|
5
6
|
}
|
@@ -31,11 +32,13 @@ class StripePayments extends ApiResource {
|
|
31
32
|
return resource.type && (resource.type === StripePayments.TYPE);
|
32
33
|
}
|
33
34
|
relationship(id) {
|
34
|
-
return (
|
35
|
+
return super.relationshipOneToOne(id);
|
36
|
+
}
|
37
|
+
relationshipToMany(...ids) {
|
38
|
+
return super.relationshipOneToMany(...ids);
|
35
39
|
}
|
36
40
|
type() {
|
37
41
|
return StripePayments.TYPE;
|
38
42
|
}
|
39
43
|
}
|
40
|
-
StripePayments.TYPE = 'stripe_payments';
|
41
44
|
export default StripePayments;
|
@@ -43,6 +43,7 @@ declare class SubscriptionModels extends ApiResource<SubscriptionModel> {
|
|
43
43
|
attachments(subscriptionModelId: string | SubscriptionModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
44
44
|
isSubscriptionModel(resource: any): resource is SubscriptionModel;
|
45
45
|
relationship(id: string | ResourceId | null): SubscriptionModelRel;
|
46
|
+
relationshipToMany(...ids: string[]): SubscriptionModelRel[];
|
46
47
|
type(): SubscriptionModelType;
|
47
48
|
}
|
48
49
|
export default SubscriptionModels;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class SubscriptionModels extends ApiResource {
|
3
|
+
static TYPE = 'subscription_models';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: SubscriptionModels.TYPE }, params, options);
|
5
6
|
}
|
@@ -25,11 +26,13 @@ class SubscriptionModels extends ApiResource {
|
|
25
26
|
return resource.type && (resource.type === SubscriptionModels.TYPE);
|
26
27
|
}
|
27
28
|
relationship(id) {
|
28
|
-
return (
|
29
|
+
return super.relationshipOneToOne(id);
|
30
|
+
}
|
31
|
+
relationshipToMany(...ids) {
|
32
|
+
return super.relationshipOneToMany(...ids);
|
29
33
|
}
|
30
34
|
type() {
|
31
35
|
return SubscriptionModels.TYPE;
|
32
36
|
}
|
33
37
|
}
|
34
|
-
SubscriptionModels.TYPE = 'subscription_models';
|
35
38
|
export default SubscriptionModels;
|
@@ -22,6 +22,7 @@ declare class Tags extends ApiResource<Tag> {
|
|
22
22
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
23
23
|
isTag(resource: any): resource is Tag;
|
24
24
|
relationship(id: string | ResourceId | null): TagRel;
|
25
|
+
relationshipToMany(...ids: string[]): TagRel[];
|
25
26
|
type(): TagType;
|
26
27
|
}
|
27
28
|
export default Tags;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Tags extends ApiResource {
|
3
|
+
static TYPE = 'tags';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: Tags.TYPE }, params, options);
|
5
6
|
}
|
@@ -13,11 +14,13 @@ class Tags extends ApiResource {
|
|
13
14
|
return resource.type && (resource.type === Tags.TYPE);
|
14
15
|
}
|
15
16
|
relationship(id) {
|
16
|
-
return (
|
17
|
+
return super.relationshipOneToOne(id);
|
18
|
+
}
|
19
|
+
relationshipToMany(...ids) {
|
20
|
+
return super.relationshipOneToMany(...ids);
|
17
21
|
}
|
18
22
|
type() {
|
19
23
|
return Tags.TYPE;
|
20
24
|
}
|
21
25
|
}
|
22
|
-
Tags.TYPE = 'tags';
|
23
26
|
export default Tags;
|
@@ -22,6 +22,7 @@ declare class TaxCalculators extends ApiResource<TaxCalculator> {
|
|
22
22
|
versions(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
23
23
|
isTaxCalculator(resource: any): resource is TaxCalculator;
|
24
24
|
relationship(id: string | ResourceId | null): TaxCalculatorRel;
|
25
|
+
relationshipToMany(...ids: string[]): TaxCalculatorRel[];
|
25
26
|
type(): TaxCalculatorType;
|
26
27
|
}
|
27
28
|
export default TaxCalculators;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class TaxCalculators extends ApiResource {
|
3
|
+
static TYPE = 'tax_calculators';
|
3
4
|
async markets(taxCalculatorId, params, options) {
|
4
5
|
const _taxCalculatorId = taxCalculatorId.id || taxCalculatorId;
|
5
6
|
return this.resources.fetch({ type: 'markets' }, `tax_calculators/${_taxCalculatorId}/markets`, params, options);
|
@@ -16,11 +17,13 @@ class TaxCalculators extends ApiResource {
|
|
16
17
|
return resource.type && (resource.type === TaxCalculators.TYPE);
|
17
18
|
}
|
18
19
|
relationship(id) {
|
19
|
-
return (
|
20
|
+
return super.relationshipOneToOne(id);
|
21
|
+
}
|
22
|
+
relationshipToMany(...ids) {
|
23
|
+
return super.relationshipOneToMany(...ids);
|
20
24
|
}
|
21
25
|
type() {
|
22
26
|
return TaxCalculators.TYPE;
|
23
27
|
}
|
24
28
|
}
|
25
|
-
TaxCalculators.TYPE = 'tax_calculators';
|
26
29
|
export default TaxCalculators;
|
@@ -57,6 +57,7 @@ declare class TaxCategories extends ApiResource<TaxCategory> {
|
|
57
57
|
versions(taxCategoryId: string | TaxCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
58
58
|
isTaxCategory(resource: any): resource is TaxCategory;
|
59
59
|
relationship(id: string | ResourceId | null): TaxCategoryRel;
|
60
|
+
relationshipToMany(...ids: string[]): TaxCategoryRel[];
|
60
61
|
type(): TaxCategoryType;
|
61
62
|
}
|
62
63
|
export default TaxCategories;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class TaxCategories extends ApiResource {
|
3
|
+
static TYPE = 'tax_categories';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: TaxCategories.TYPE }, params, options);
|
5
6
|
}
|
@@ -25,11 +26,13 @@ class TaxCategories extends ApiResource {
|
|
25
26
|
return resource.type && (resource.type === TaxCategories.TYPE);
|
26
27
|
}
|
27
28
|
relationship(id) {
|
28
|
-
return (
|
29
|
+
return super.relationshipOneToOne(id);
|
30
|
+
}
|
31
|
+
relationshipToMany(...ids) {
|
32
|
+
return super.relationshipOneToMany(...ids);
|
29
33
|
}
|
30
34
|
type() {
|
31
35
|
return TaxCategories.TYPE;
|
32
36
|
}
|
33
37
|
}
|
34
|
-
TaxCategories.TYPE = 'tax_categories';
|
35
38
|
export default TaxCategories;
|
@@ -67,6 +67,7 @@ declare class TaxRules extends ApiResource<TaxRule> {
|
|
67
67
|
versions(taxRuleId: string | TaxRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
68
68
|
isTaxRule(resource: any): resource is TaxRule;
|
69
69
|
relationship(id: string | ResourceId | null): TaxRuleRel;
|
70
|
+
relationshipToMany(...ids: string[]): TaxRuleRel[];
|
70
71
|
type(): TaxRuleType;
|
71
72
|
}
|
72
73
|
export default TaxRules;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class TaxRules extends ApiResource {
|
3
|
+
static TYPE = 'tax_rules';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: TaxRules.TYPE }, params, options);
|
5
6
|
}
|
@@ -21,11 +22,13 @@ class TaxRules extends ApiResource {
|
|
21
22
|
return resource.type && (resource.type === TaxRules.TYPE);
|
22
23
|
}
|
23
24
|
relationship(id) {
|
24
|
-
return (
|
25
|
+
return super.relationshipOneToOne(id);
|
26
|
+
}
|
27
|
+
relationshipToMany(...ids) {
|
28
|
+
return super.relationshipOneToMany(...ids);
|
25
29
|
}
|
26
30
|
type() {
|
27
31
|
return TaxRules.TYPE;
|
28
32
|
}
|
29
33
|
}
|
30
|
-
TaxRules.TYPE = 'tax_rules';
|
31
34
|
export default TaxRules;
|
@@ -41,6 +41,7 @@ declare class TaxjarAccounts extends ApiResource<TaxjarAccount> {
|
|
41
41
|
tax_categories(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCategory>>;
|
42
42
|
isTaxjarAccount(resource: any): resource is TaxjarAccount;
|
43
43
|
relationship(id: string | ResourceId | null): TaxjarAccountRel;
|
44
|
+
relationshipToMany(...ids: string[]): TaxjarAccountRel[];
|
44
45
|
type(): TaxjarAccountType;
|
45
46
|
}
|
46
47
|
export default TaxjarAccounts;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class TaxjarAccounts extends ApiResource {
|
3
|
+
static TYPE = 'taxjar_accounts';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: TaxjarAccounts.TYPE }, params, options);
|
5
6
|
}
|
@@ -29,11 +30,13 @@ class TaxjarAccounts extends ApiResource {
|
|
29
30
|
return resource.type && (resource.type === TaxjarAccounts.TYPE);
|
30
31
|
}
|
31
32
|
relationship(id) {
|
32
|
-
return (
|
33
|
+
return super.relationshipOneToOne(id);
|
34
|
+
}
|
35
|
+
relationshipToMany(...ids) {
|
36
|
+
return super.relationshipOneToMany(...ids);
|
33
37
|
}
|
34
38
|
type() {
|
35
39
|
return TaxjarAccounts.TYPE;
|
36
40
|
}
|
37
41
|
}
|
38
|
-
TaxjarAccounts.TYPE = 'taxjar_accounts';
|
39
42
|
export default TaxjarAccounts;
|
@@ -35,6 +35,7 @@ declare class Transactions extends ApiResource<Transaction> {
|
|
35
35
|
versions(transactionId: string | Transaction, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
36
36
|
isTransaction(resource: any): resource is Transaction;
|
37
37
|
relationship(id: string | ResourceId | null): TransactionRel;
|
38
|
+
relationshipToMany(...ids: string[]): TransactionRel[];
|
38
39
|
type(): TransactionType;
|
39
40
|
}
|
40
41
|
export default Transactions;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Transactions extends ApiResource {
|
3
|
+
static TYPE = 'transactions';
|
3
4
|
async order(transactionId, params, options) {
|
4
5
|
const _transactionId = transactionId.id || transactionId;
|
5
6
|
return this.resources.fetch({ type: 'orders' }, `transactions/${_transactionId}/order`, params, options);
|
@@ -20,11 +21,13 @@ class Transactions extends ApiResource {
|
|
20
21
|
return resource.type && (resource.type === Transactions.TYPE);
|
21
22
|
}
|
22
23
|
relationship(id) {
|
23
|
-
return (
|
24
|
+
return super.relationshipOneToOne(id);
|
25
|
+
}
|
26
|
+
relationshipToMany(...ids) {
|
27
|
+
return super.relationshipOneToMany(...ids);
|
24
28
|
}
|
25
29
|
type() {
|
26
30
|
return Transactions.TYPE;
|
27
31
|
}
|
28
32
|
}
|
29
|
-
Transactions.TYPE = 'transactions';
|
30
33
|
export default Transactions;
|
@@ -16,6 +16,7 @@ declare class Versions extends ApiResource<Version> {
|
|
16
16
|
static readonly TYPE: VersionType;
|
17
17
|
isVersion(resource: any): resource is Version;
|
18
18
|
relationship(id: string | ResourceId | null): VersionRel;
|
19
|
+
relationshipToMany(...ids: string[]): VersionRel[];
|
19
20
|
type(): VersionType;
|
20
21
|
}
|
21
22
|
export default Versions;
|
@@ -1,14 +1,17 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Versions extends ApiResource {
|
3
|
+
static TYPE = 'versions';
|
3
4
|
isVersion(resource) {
|
4
5
|
return resource.type && (resource.type === Versions.TYPE);
|
5
6
|
}
|
6
7
|
relationship(id) {
|
7
|
-
return (
|
8
|
+
return super.relationshipOneToOne(id);
|
9
|
+
}
|
10
|
+
relationshipToMany(...ids) {
|
11
|
+
return super.relationshipOneToMany(...ids);
|
8
12
|
}
|
9
13
|
type() {
|
10
14
|
return Versions.TYPE;
|
11
15
|
}
|
12
16
|
}
|
13
|
-
Versions.TYPE = 'versions';
|
14
17
|
export default Versions;
|
@@ -38,6 +38,7 @@ declare class Voids extends ApiResource<Void> {
|
|
38
38
|
reference_authorization(voidId: string | Void, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
39
39
|
isVoid(resource: any): resource is Void;
|
40
40
|
relationship(id: string | ResourceId | null): VoidRel;
|
41
|
+
relationshipToMany(...ids: string[]): VoidRel[];
|
41
42
|
type(): VoidType;
|
42
43
|
}
|
43
44
|
export default Voids;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Voids extends ApiResource {
|
3
|
+
static TYPE = 'voids';
|
3
4
|
async order(voidId, params, options) {
|
4
5
|
const _voidId = voidId.id || voidId;
|
5
6
|
return this.resources.fetch({ type: 'orders' }, `voids/${_voidId}/order`, params, options);
|
@@ -24,11 +25,13 @@ class Voids extends ApiResource {
|
|
24
25
|
return resource.type && (resource.type === Voids.TYPE);
|
25
26
|
}
|
26
27
|
relationship(id) {
|
27
|
-
return (
|
28
|
+
return super.relationshipOneToOne(id);
|
29
|
+
}
|
30
|
+
relationshipToMany(...ids) {
|
31
|
+
return super.relationshipOneToMany(...ids);
|
28
32
|
}
|
29
33
|
type() {
|
30
34
|
return Voids.TYPE;
|
31
35
|
}
|
32
36
|
}
|
33
|
-
Voids.TYPE = 'voids';
|
34
37
|
export default Voids;
|
@@ -49,6 +49,7 @@ declare class Webhooks extends ApiResource<Webhook> {
|
|
49
49
|
_reset_circuit(id: string | Webhook, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Webhook>;
|
50
50
|
isWebhook(resource: any): resource is Webhook;
|
51
51
|
relationship(id: string | ResourceId | null): WebhookRel;
|
52
|
+
relationshipToMany(...ids: string[]): WebhookRel[];
|
52
53
|
type(): WebhookType;
|
53
54
|
}
|
54
55
|
export default Webhooks;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Webhooks extends ApiResource {
|
3
|
+
static TYPE = 'webhooks';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: Webhooks.TYPE }, params, options);
|
5
6
|
}
|
@@ -30,11 +31,13 @@ class Webhooks extends ApiResource {
|
|
30
31
|
return resource.type && (resource.type === Webhooks.TYPE);
|
31
32
|
}
|
32
33
|
relationship(id) {
|
33
|
-
return (
|
34
|
+
return super.relationshipOneToOne(id);
|
35
|
+
}
|
36
|
+
relationshipToMany(...ids) {
|
37
|
+
return super.relationshipOneToMany(...ids);
|
34
38
|
}
|
35
39
|
type() {
|
36
40
|
return Webhooks.TYPE;
|
37
41
|
}
|
38
42
|
}
|
39
|
-
Webhooks.TYPE = 'webhooks';
|
40
43
|
export default Webhooks;
|