@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
@@ -45,6 +45,7 @@ declare class AdyenPayments extends ApiResource<AdyenPayment> {
|
|
45
45
|
_details(id: string | AdyenPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenPayment>;
|
46
46
|
isAdyenPayment(resource: any): resource is AdyenPayment;
|
47
47
|
relationship(id: string | ResourceId | null): AdyenPaymentRel;
|
48
|
+
relationshipToMany(...ids: string[]): AdyenPaymentRel[];
|
48
49
|
type(): AdyenPaymentType;
|
49
50
|
}
|
50
51
|
export default AdyenPayments;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class AdyenPayments extends ApiResource {
|
3
|
+
static TYPE = 'adyen_payments';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: AdyenPayments.TYPE }, params, options);
|
5
6
|
}
|
@@ -28,11 +29,13 @@ class AdyenPayments extends ApiResource {
|
|
28
29
|
return resource.type && (resource.type === AdyenPayments.TYPE);
|
29
30
|
}
|
30
31
|
relationship(id) {
|
31
|
-
return (
|
32
|
+
return super.relationshipOneToOne(id);
|
33
|
+
}
|
34
|
+
relationshipToMany(...ids) {
|
35
|
+
return super.relationshipOneToMany(...ids);
|
32
36
|
}
|
33
37
|
type() {
|
34
38
|
return AdyenPayments.TYPE;
|
35
39
|
}
|
36
40
|
}
|
37
|
-
AdyenPayments.TYPE = 'adyen_payments';
|
38
41
|
export default AdyenPayments;
|
@@ -16,6 +16,7 @@ declare class Applications extends ApiSingleton<Application> {
|
|
16
16
|
static readonly TYPE: ApplicationType;
|
17
17
|
isApplication(resource: any): resource is Application;
|
18
18
|
relationship(id: string | ResourceId | null): ApplicationRel;
|
19
|
+
relationshipToMany(...ids: string[]): ApplicationRel[];
|
19
20
|
type(): ApplicationType;
|
20
21
|
}
|
21
22
|
export default Applications;
|
@@ -1,14 +1,17 @@
|
|
1
1
|
import { ApiSingleton } from '../resource';
|
2
2
|
class Applications extends ApiSingleton {
|
3
|
+
static TYPE = 'application';
|
3
4
|
isApplication(resource) {
|
4
5
|
return resource.type && (resource.type === Applications.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 Applications.TYPE;
|
11
15
|
}
|
12
16
|
}
|
13
|
-
Applications.TYPE = 'application';
|
14
17
|
export default Applications;
|
@@ -151,6 +151,7 @@ declare class Attachments extends ApiResource<Attachment> {
|
|
151
151
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
152
152
|
isAttachment(resource: any): resource is Attachment;
|
153
153
|
relationship(id: string | ResourceId | null): AttachmentRel;
|
154
|
+
relationshipToMany(...ids: string[]): AttachmentRel[];
|
154
155
|
type(): AttachmentType;
|
155
156
|
}
|
156
157
|
export default Attachments;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Attachments extends ApiResource {
|
3
|
+
static TYPE = 'attachments';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: Attachments.TYPE }, params, options);
|
5
6
|
}
|
@@ -13,11 +14,13 @@ class Attachments extends ApiResource {
|
|
13
14
|
return resource.type && (resource.type === Attachments.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 Attachments.TYPE;
|
20
24
|
}
|
21
25
|
}
|
22
|
-
Attachments.TYPE = 'attachments';
|
23
26
|
export default Attachments;
|
@@ -64,6 +64,7 @@ declare class Authorizations extends ApiResource<Authorization> {
|
|
64
64
|
_void(id: string | Authorization, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
65
65
|
isAuthorization(resource: any): resource is Authorization;
|
66
66
|
relationship(id: string | ResourceId | null): AuthorizationRel;
|
67
|
+
relationshipToMany(...ids: string[]): AuthorizationRel[];
|
67
68
|
type(): AuthorizationType;
|
68
69
|
}
|
69
70
|
export default Authorizations;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Authorizations extends ApiResource {
|
3
|
+
static TYPE = 'authorizations';
|
3
4
|
async update(resource, params, options) {
|
4
5
|
return this.resources.update({ ...resource, type: Authorizations.TYPE }, params, options);
|
5
6
|
}
|
@@ -40,11 +41,13 @@ class Authorizations extends ApiResource {
|
|
40
41
|
return resource.type && (resource.type === Authorizations.TYPE);
|
41
42
|
}
|
42
43
|
relationship(id) {
|
43
|
-
return (
|
44
|
+
return super.relationshipOneToOne(id);
|
45
|
+
}
|
46
|
+
relationshipToMany(...ids) {
|
47
|
+
return super.relationshipOneToMany(...ids);
|
44
48
|
}
|
45
49
|
type() {
|
46
50
|
return Authorizations.TYPE;
|
47
51
|
}
|
48
52
|
}
|
49
|
-
Authorizations.TYPE = 'authorizations';
|
50
53
|
export default Authorizations;
|
@@ -53,6 +53,7 @@ declare class AvalaraAccounts extends ApiResource<AvalaraAccount> {
|
|
53
53
|
tax_categories(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCategory>>;
|
54
54
|
isAvalaraAccount(resource: any): resource is AvalaraAccount;
|
55
55
|
relationship(id: string | ResourceId | null): AvalaraAccountRel;
|
56
|
+
relationshipToMany(...ids: string[]): AvalaraAccountRel[];
|
56
57
|
type(): AvalaraAccountType;
|
57
58
|
}
|
58
59
|
export default AvalaraAccounts;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class AvalaraAccounts extends ApiResource {
|
3
|
+
static TYPE = 'avalara_accounts';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: AvalaraAccounts.TYPE }, params, options);
|
5
6
|
}
|
@@ -29,11 +30,13 @@ class AvalaraAccounts extends ApiResource {
|
|
29
30
|
return resource.type && (resource.type === AvalaraAccounts.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 AvalaraAccounts.TYPE;
|
36
40
|
}
|
37
41
|
}
|
38
|
-
AvalaraAccounts.TYPE = 'avalara_accounts';
|
39
42
|
export default AvalaraAccounts;
|
@@ -42,6 +42,7 @@ declare class AxerveGateways extends ApiResource<AxerveGateway> {
|
|
42
42
|
axerve_payments(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AxervePayment>>;
|
43
43
|
isAxerveGateway(resource: any): resource is AxerveGateway;
|
44
44
|
relationship(id: string | ResourceId | null): AxerveGatewayRel;
|
45
|
+
relationshipToMany(...ids: string[]): AxerveGatewayRel[];
|
45
46
|
type(): AxerveGatewayType;
|
46
47
|
}
|
47
48
|
export default AxerveGateways;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class AxerveGateways extends ApiResource {
|
3
|
+
static TYPE = 'axerve_gateways';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: AxerveGateways.TYPE }, params, options);
|
5
6
|
}
|
@@ -25,11 +26,13 @@ class AxerveGateways extends ApiResource {
|
|
25
26
|
return resource.type && (resource.type === AxerveGateways.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 AxerveGateways.TYPE;
|
32
36
|
}
|
33
37
|
}
|
34
|
-
AxerveGateways.TYPE = 'axerve_gateways';
|
35
38
|
export default AxerveGateways;
|
@@ -51,6 +51,7 @@ declare class AxervePayments extends ApiResource<AxervePayment> {
|
|
51
51
|
_update(id: string | AxervePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AxervePayment>;
|
52
52
|
isAxervePayment(resource: any): resource is AxervePayment;
|
53
53
|
relationship(id: string | ResourceId | null): AxervePaymentRel;
|
54
|
+
relationshipToMany(...ids: string[]): AxervePaymentRel[];
|
54
55
|
type(): AxervePaymentType;
|
55
56
|
}
|
56
57
|
export default AxervePayments;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class AxervePayments extends ApiResource {
|
3
|
+
static TYPE = 'axerve_payments';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: AxervePayments.TYPE }, params, options);
|
5
6
|
}
|
@@ -28,11 +29,13 @@ class AxervePayments extends ApiResource {
|
|
28
29
|
return resource.type && (resource.type === AxervePayments.TYPE);
|
29
30
|
}
|
30
31
|
relationship(id) {
|
31
|
-
return (
|
32
|
+
return super.relationshipOneToOne(id);
|
33
|
+
}
|
34
|
+
relationshipToMany(...ids) {
|
35
|
+
return super.relationshipOneToMany(...ids);
|
32
36
|
}
|
33
37
|
type() {
|
34
38
|
return AxervePayments.TYPE;
|
35
39
|
}
|
36
40
|
}
|
37
|
-
AxervePayments.TYPE = 'axerve_payments';
|
38
41
|
export default AxervePayments;
|
@@ -33,6 +33,7 @@ declare class BillingInfoValidationRules extends ApiResource<BillingInfoValidati
|
|
33
33
|
versions(billingInfoValidationRuleId: string | BillingInfoValidationRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
34
34
|
isBillingInfoValidationRule(resource: any): resource is BillingInfoValidationRule;
|
35
35
|
relationship(id: string | ResourceId | null): BillingInfoValidationRuleRel;
|
36
|
+
relationshipToMany(...ids: string[]): BillingInfoValidationRuleRel[];
|
36
37
|
type(): BillingInfoValidationRuleType;
|
37
38
|
}
|
38
39
|
export default BillingInfoValidationRules;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class BillingInfoValidationRules extends ApiResource {
|
3
|
+
static TYPE = 'billing_info_validation_rules';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: BillingInfoValidationRules.TYPE }, params, options);
|
5
6
|
}
|
@@ -25,11 +26,13 @@ class BillingInfoValidationRules extends ApiResource {
|
|
25
26
|
return resource.type && (resource.type === BillingInfoValidationRules.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 BillingInfoValidationRules.TYPE;
|
32
36
|
}
|
33
37
|
}
|
34
|
-
BillingInfoValidationRules.TYPE = 'billing_info_validation_rules';
|
35
38
|
export default BillingInfoValidationRules;
|
@@ -30,6 +30,7 @@ declare class BingGeocoders extends ApiResource<BingGeocoder> {
|
|
30
30
|
attachments(bingGeocoderId: string | BingGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
31
31
|
isBingGeocoder(resource: any): resource is BingGeocoder;
|
32
32
|
relationship(id: string | ResourceId | null): BingGeocoderRel;
|
33
|
+
relationshipToMany(...ids: string[]): BingGeocoderRel[];
|
33
34
|
type(): BingGeocoderType;
|
34
35
|
}
|
35
36
|
export default BingGeocoders;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class BingGeocoders extends ApiResource {
|
3
|
+
static TYPE = 'bing_geocoders';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: BingGeocoders.TYPE }, params, options);
|
5
6
|
}
|
@@ -21,11 +22,13 @@ class BingGeocoders extends ApiResource {
|
|
21
22
|
return resource.type && (resource.type === BingGeocoders.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 BingGeocoders.TYPE;
|
28
32
|
}
|
29
33
|
}
|
30
|
-
BingGeocoders.TYPE = 'bing_geocoders';
|
31
34
|
export default BingGeocoders;
|
@@ -54,6 +54,7 @@ declare class BraintreeGateways extends ApiResource<BraintreeGateway> {
|
|
54
54
|
braintree_payments(braintreeGatewayId: string | BraintreeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BraintreePayment>>;
|
55
55
|
isBraintreeGateway(resource: any): resource is BraintreeGateway;
|
56
56
|
relationship(id: string | ResourceId | null): BraintreeGatewayRel;
|
57
|
+
relationshipToMany(...ids: string[]): BraintreeGatewayRel[];
|
57
58
|
type(): BraintreeGatewayType;
|
58
59
|
}
|
59
60
|
export default BraintreeGateways;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class BraintreeGateways extends ApiResource {
|
3
|
+
static TYPE = 'braintree_gateways';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: BraintreeGateways.TYPE }, params, options);
|
5
6
|
}
|
@@ -25,11 +26,13 @@ class BraintreeGateways extends ApiResource {
|
|
25
26
|
return resource.type && (resource.type === BraintreeGateways.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 BraintreeGateways.TYPE;
|
32
36
|
}
|
33
37
|
}
|
34
|
-
BraintreeGateways.TYPE = 'braintree_gateways';
|
35
38
|
export default BraintreeGateways;
|
@@ -46,6 +46,7 @@ declare class BraintreePayments extends ApiResource<BraintreePayment> {
|
|
46
46
|
versions(braintreePaymentId: string | BraintreePayment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
47
47
|
isBraintreePayment(resource: any): resource is BraintreePayment;
|
48
48
|
relationship(id: string | ResourceId | null): BraintreePaymentRel;
|
49
|
+
relationshipToMany(...ids: string[]): BraintreePaymentRel[];
|
49
50
|
type(): BraintreePaymentType;
|
50
51
|
}
|
51
52
|
export default BraintreePayments;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class BraintreePayments extends ApiResource {
|
3
|
+
static TYPE = 'braintree_payments';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: BraintreePayments.TYPE }, params, options);
|
5
6
|
}
|
@@ -25,11 +26,13 @@ class BraintreePayments extends ApiResource {
|
|
25
26
|
return resource.type && (resource.type === BraintreePayments.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 BraintreePayments.TYPE;
|
32
36
|
}
|
33
37
|
}
|
34
|
-
BraintreePayments.TYPE = 'braintree_payments';
|
35
38
|
export default BraintreePayments;
|
@@ -87,6 +87,7 @@ declare class Bundles extends ApiResource<Bundle> {
|
|
87
87
|
_compute_compare_at_amount(id: string | Bundle, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
|
88
88
|
isBundle(resource: any): resource is Bundle;
|
89
89
|
relationship(id: string | ResourceId | null): BundleRel;
|
90
|
+
relationshipToMany(...ids: string[]): BundleRel[];
|
90
91
|
type(): BundleType;
|
91
92
|
}
|
92
93
|
export default Bundles;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Bundles extends ApiResource {
|
3
|
+
static TYPE = 'bundles';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: Bundles.TYPE }, params, options);
|
5
6
|
}
|
@@ -47,11 +48,13 @@ class Bundles extends ApiResource {
|
|
47
48
|
return resource.type && (resource.type === Bundles.TYPE);
|
48
49
|
}
|
49
50
|
relationship(id) {
|
50
|
-
return (
|
51
|
+
return super.relationshipOneToOne(id);
|
52
|
+
}
|
53
|
+
relationshipToMany(...ids) {
|
54
|
+
return super.relationshipOneToMany(...ids);
|
51
55
|
}
|
52
56
|
type() {
|
53
57
|
return Bundles.TYPE;
|
54
58
|
}
|
55
59
|
}
|
56
|
-
Bundles.TYPE = 'bundles';
|
57
60
|
export default Bundles;
|
@@ -131,6 +131,7 @@ declare class BuyXPayYPromotions extends ApiResource<BuyXPayYPromotion> {
|
|
131
131
|
_enable(id: string | BuyXPayYPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BuyXPayYPromotion>;
|
132
132
|
isBuyXPayYPromotion(resource: any): resource is BuyXPayYPromotion;
|
133
133
|
relationship(id: string | ResourceId | null): BuyXPayYPromotionRel;
|
134
|
+
relationshipToMany(...ids: string[]): BuyXPayYPromotionRel[];
|
134
135
|
type(): BuyXPayYPromotionType;
|
135
136
|
}
|
136
137
|
export default BuyXPayYPromotions;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class BuyXPayYPromotions extends ApiResource {
|
3
|
+
static TYPE = 'buy_x_pay_y_promotions';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: BuyXPayYPromotions.TYPE }, params, options);
|
5
6
|
}
|
@@ -67,11 +68,13 @@ class BuyXPayYPromotions extends ApiResource {
|
|
67
68
|
return resource.type && (resource.type === BuyXPayYPromotions.TYPE);
|
68
69
|
}
|
69
70
|
relationship(id) {
|
70
|
-
return (
|
71
|
+
return super.relationshipOneToOne(id);
|
72
|
+
}
|
73
|
+
relationshipToMany(...ids) {
|
74
|
+
return super.relationshipOneToMany(...ids);
|
71
75
|
}
|
72
76
|
type() {
|
73
77
|
return BuyXPayYPromotions.TYPE;
|
74
78
|
}
|
75
79
|
}
|
76
|
-
BuyXPayYPromotions.TYPE = 'buy_x_pay_y_promotions';
|
77
80
|
export default BuyXPayYPromotions;
|
@@ -54,6 +54,7 @@ declare class Captures extends ApiResource<Capture> {
|
|
54
54
|
_refund_amount_cents(id: string | Capture, triggerValue: number, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
|
55
55
|
isCapture(resource: any): resource is Capture;
|
56
56
|
relationship(id: string | ResourceId | null): CaptureRel;
|
57
|
+
relationshipToMany(...ids: string[]): CaptureRel[];
|
57
58
|
type(): CaptureType;
|
58
59
|
}
|
59
60
|
export default Captures;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Captures extends ApiResource {
|
3
|
+
static TYPE = 'captures';
|
3
4
|
async update(resource, params, options) {
|
4
5
|
return this.resources.update({ ...resource, type: Captures.TYPE }, params, options);
|
5
6
|
}
|
@@ -37,11 +38,13 @@ class Captures extends ApiResource {
|
|
37
38
|
return resource.type && (resource.type === Captures.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 Captures.TYPE;
|
44
48
|
}
|
45
49
|
}
|
46
|
-
Captures.TYPE = 'captures';
|
47
50
|
export default Captures;
|
@@ -24,6 +24,7 @@ declare class CarrierAccounts extends ApiResource<CarrierAccount> {
|
|
24
24
|
versions(carrierAccountId: string | CarrierAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
25
25
|
isCarrierAccount(resource: any): resource is CarrierAccount;
|
26
26
|
relationship(id: string | ResourceId | null): CarrierAccountRel;
|
27
|
+
relationshipToMany(...ids: string[]): CarrierAccountRel[];
|
27
28
|
type(): CarrierAccountType;
|
28
29
|
}
|
29
30
|
export default CarrierAccounts;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class CarrierAccounts extends ApiResource {
|
3
|
+
static TYPE = 'carrier_accounts';
|
3
4
|
async market(carrierAccountId, params, options) {
|
4
5
|
const _carrierAccountId = carrierAccountId.id || carrierAccountId;
|
5
6
|
return this.resources.fetch({ type: 'markets' }, `carrier_accounts/${_carrierAccountId}/market`, params, options);
|
@@ -16,11 +17,13 @@ class CarrierAccounts extends ApiResource {
|
|
16
17
|
return resource.type && (resource.type === CarrierAccounts.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 CarrierAccounts.TYPE;
|
23
27
|
}
|
24
28
|
}
|
25
|
-
CarrierAccounts.TYPE = 'carrier_accounts';
|
26
29
|
export default CarrierAccounts;
|
@@ -43,6 +43,7 @@ declare class CheckoutComGateways extends ApiResource<CheckoutComGateway> {
|
|
43
43
|
checkout_com_payments(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CheckoutComPayment>>;
|
44
44
|
isCheckoutComGateway(resource: any): resource is CheckoutComGateway;
|
45
45
|
relationship(id: string | ResourceId | null): CheckoutComGatewayRel;
|
46
|
+
relationshipToMany(...ids: string[]): CheckoutComGatewayRel[];
|
46
47
|
type(): CheckoutComGatewayType;
|
47
48
|
}
|
48
49
|
export default CheckoutComGateways;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class CheckoutComGateways extends ApiResource {
|
3
|
+
static TYPE = 'checkout_com_gateways';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: CheckoutComGateways.TYPE }, params, options);
|
5
6
|
}
|
@@ -25,11 +26,13 @@ class CheckoutComGateways extends ApiResource {
|
|
25
26
|
return resource.type && (resource.type === CheckoutComGateways.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 CheckoutComGateways.TYPE;
|
32
36
|
}
|
33
37
|
}
|
34
|
-
CheckoutComGateways.TYPE = 'checkout_com_gateways';
|
35
38
|
export default CheckoutComGateways;
|
@@ -59,6 +59,7 @@ declare class CheckoutComPayments extends ApiResource<CheckoutComPayment> {
|
|
59
59
|
_refresh(id: string | CheckoutComPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
|
60
60
|
isCheckoutComPayment(resource: any): resource is CheckoutComPayment;
|
61
61
|
relationship(id: string | ResourceId | null): CheckoutComPaymentRel;
|
62
|
+
relationshipToMany(...ids: string[]): CheckoutComPaymentRel[];
|
62
63
|
type(): CheckoutComPaymentType;
|
63
64
|
}
|
64
65
|
export default CheckoutComPayments;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class CheckoutComPayments extends ApiResource {
|
3
|
+
static TYPE = 'checkout_com_payments';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: CheckoutComPayments.TYPE }, params, options);
|
5
6
|
}
|
@@ -31,11 +32,13 @@ class CheckoutComPayments extends ApiResource {
|
|
31
32
|
return resource.type && (resource.type === CheckoutComPayments.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 CheckoutComPayments.TYPE;
|
38
42
|
}
|
39
43
|
}
|
40
|
-
CheckoutComPayments.TYPE = 'checkout_com_payments';
|
41
44
|
export default CheckoutComPayments;
|
@@ -34,6 +34,7 @@ declare class Cleanups extends ApiResource<Cleanup> {
|
|
34
34
|
versions(cleanupId: string | Cleanup, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
35
35
|
isCleanup(resource: any): resource is Cleanup;
|
36
36
|
relationship(id: string | ResourceId | null): CleanupRel;
|
37
|
+
relationshipToMany(...ids: string[]): CleanupRel[];
|
37
38
|
type(): CleanupType;
|
38
39
|
}
|
39
40
|
export default Cleanups;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class Cleanups extends ApiResource {
|
3
|
+
static TYPE = 'cleanups';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: Cleanups.TYPE }, params, options);
|
5
6
|
}
|
@@ -18,11 +19,13 @@ class Cleanups extends ApiResource {
|
|
18
19
|
return resource.type && (resource.type === Cleanups.TYPE);
|
19
20
|
}
|
20
21
|
relationship(id) {
|
21
|
-
return (
|
22
|
+
return super.relationshipOneToOne(id);
|
23
|
+
}
|
24
|
+
relationshipToMany(...ids) {
|
25
|
+
return super.relationshipOneToMany(...ids);
|
22
26
|
}
|
23
27
|
type() {
|
24
28
|
return Cleanups.TYPE;
|
25
29
|
}
|
26
30
|
}
|
27
|
-
Cleanups.TYPE = 'cleanups';
|
28
31
|
export default Cleanups;
|
@@ -61,6 +61,7 @@ declare class CouponCodesPromotionRules extends ApiResource<CouponCodesPromotion
|
|
61
61
|
coupons(couponCodesPromotionRuleId: string | CouponCodesPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>;
|
62
62
|
isCouponCodesPromotionRule(resource: any): resource is CouponCodesPromotionRule;
|
63
63
|
relationship(id: string | ResourceId | null): CouponCodesPromotionRuleRel;
|
64
|
+
relationshipToMany(...ids: string[]): CouponCodesPromotionRuleRel[];
|
64
65
|
type(): CouponCodesPromotionRuleType;
|
65
66
|
}
|
66
67
|
export default CouponCodesPromotionRules;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class CouponCodesPromotionRules extends ApiResource {
|
3
|
+
static TYPE = 'coupon_codes_promotion_rules';
|
3
4
|
async create(resource, params, options) {
|
4
5
|
return this.resources.create({ ...resource, type: CouponCodesPromotionRules.TYPE }, params, options);
|
5
6
|
}
|
@@ -21,11 +22,13 @@ class CouponCodesPromotionRules extends ApiResource {
|
|
21
22
|
return resource.type && (resource.type === CouponCodesPromotionRules.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 CouponCodesPromotionRules.TYPE;
|
28
32
|
}
|
29
33
|
}
|
30
|
-
CouponCodesPromotionRules.TYPE = 'coupon_codes_promotion_rules';
|
31
34
|
export default CouponCodesPromotionRules;
|
@@ -42,6 +42,7 @@ declare class CouponRecipients extends ApiResource<CouponRecipient> {
|
|
42
42
|
versions(couponRecipientId: string | CouponRecipient, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
43
43
|
isCouponRecipient(resource: any): resource is CouponRecipient;
|
44
44
|
relationship(id: string | ResourceId | null): CouponRecipientRel;
|
45
|
+
relationshipToMany(...ids: string[]): CouponRecipientRel[];
|
45
46
|
type(): CouponRecipientType;
|
46
47
|
}
|
47
48
|
export default CouponRecipients;
|