@commercelayer/sdk 4.2.0-beta.3 → 4.3.0-beta.3
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/LICENSE +1 -1
- package/lib/cjs/api.d.ts +1 -1
- package/lib/cjs/client.d.ts +4 -3
- package/lib/cjs/commercelayer.js +1 -1
- package/lib/cjs/jsonapi.js +1 -1
- package/lib/cjs/model.d.ts +1 -1
- package/lib/cjs/resource.d.ts +8 -4
- package/lib/cjs/resources/addresses.d.ts +5 -5
- package/lib/cjs/resources/addresses.js +1 -1
- package/lib/cjs/resources/adjustments.d.ts +4 -4
- package/lib/cjs/resources/adjustments.js +1 -1
- package/lib/cjs/resources/adyen_gateways.d.ts +5 -5
- package/lib/cjs/resources/adyen_gateways.js +1 -1
- package/lib/cjs/resources/adyen_payments.d.ts +5 -5
- package/lib/cjs/resources/adyen_payments.js +1 -1
- package/lib/cjs/resources/application.d.ts +4 -4
- package/lib/cjs/resources/application.js +1 -1
- package/lib/cjs/resources/attachments.d.ts +34 -34
- package/lib/cjs/resources/attachments.js +1 -1
- package/lib/cjs/resources/authorizations.d.ts +4 -4
- package/lib/cjs/resources/authorizations.js +1 -1
- package/lib/cjs/resources/avalara_accounts.d.ts +5 -5
- package/lib/cjs/resources/avalara_accounts.js +1 -1
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +5 -5
- package/lib/cjs/resources/billing_info_validation_rules.js +1 -1
- package/lib/cjs/resources/bing_geocoders.d.ts +4 -4
- package/lib/cjs/resources/bing_geocoders.js +1 -1
- package/lib/cjs/resources/braintree_gateways.d.ts +5 -5
- package/lib/cjs/resources/braintree_gateways.js +1 -1
- package/lib/cjs/resources/braintree_payments.d.ts +5 -5
- package/lib/cjs/resources/braintree_payments.js +1 -1
- package/lib/cjs/resources/bundles.d.ts +11 -6
- package/lib/cjs/resources/bundles.js +1 -1
- package/lib/cjs/resources/captures.d.ts +4 -4
- package/lib/cjs/resources/captures.js +1 -1
- package/lib/cjs/resources/carrier_accounts.d.ts +4 -4
- package/lib/cjs/resources/carrier_accounts.js +1 -1
- package/lib/cjs/resources/checkout_com_gateways.d.ts +5 -5
- package/lib/cjs/resources/checkout_com_gateways.js +1 -1
- package/lib/cjs/resources/checkout_com_payments.d.ts +5 -5
- package/lib/cjs/resources/checkout_com_payments.js +1 -1
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +11 -11
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +1 -1
- package/lib/cjs/resources/coupon_recipients.d.ts +5 -5
- package/lib/cjs/resources/coupon_recipients.js +1 -1
- package/lib/cjs/resources/coupons.d.ts +5 -5
- package/lib/cjs/resources/coupons.js +1 -1
- package/lib/cjs/resources/customer_addresses.d.ts +6 -6
- package/lib/cjs/resources/customer_addresses.js +1 -1
- package/lib/cjs/resources/customer_groups.d.ts +4 -4
- package/lib/cjs/resources/customer_groups.js +1 -1
- package/lib/cjs/resources/customer_password_resets.d.ts +4 -4
- package/lib/cjs/resources/customer_password_resets.js +1 -1
- package/lib/cjs/resources/customer_payment_sources.d.ts +13 -13
- package/lib/cjs/resources/customer_payment_sources.js +1 -1
- package/lib/cjs/resources/customer_subscriptions.d.ts +4 -4
- package/lib/cjs/resources/customer_subscriptions.js +1 -1
- package/lib/cjs/resources/customers.d.ts +5 -5
- package/lib/cjs/resources/customers.js +1 -1
- package/lib/cjs/resources/delivery_lead_times.d.ts +6 -6
- package/lib/cjs/resources/delivery_lead_times.js +1 -1
- package/lib/cjs/resources/event_callbacks.d.ts +4 -4
- package/lib/cjs/resources/event_callbacks.js +1 -1
- package/lib/cjs/resources/external_gateways.d.ts +4 -4
- package/lib/cjs/resources/external_gateways.js +1 -1
- package/lib/cjs/resources/external_payments.d.ts +5 -5
- package/lib/cjs/resources/external_payments.js +1 -1
- package/lib/cjs/resources/external_promotions.d.ts +12 -9
- package/lib/cjs/resources/external_promotions.js +1 -1
- package/lib/cjs/resources/external_tax_calculators.d.ts +5 -5
- package/lib/cjs/resources/external_tax_calculators.js +1 -1
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +12 -9
- package/lib/cjs/resources/fixed_amount_promotions.js +1 -1
- package/lib/cjs/resources/fixed_price_promotions.d.ts +13 -10
- package/lib/cjs/resources/fixed_price_promotions.js +1 -1
- package/lib/cjs/resources/free_gift_promotions.d.ts +13 -10
- package/lib/cjs/resources/free_gift_promotions.js +1 -1
- package/lib/cjs/resources/free_shipping_promotions.d.ts +12 -9
- package/lib/cjs/resources/free_shipping_promotions.js +1 -1
- package/lib/cjs/resources/geocoders.d.ts +4 -4
- package/lib/cjs/resources/geocoders.js +1 -1
- package/lib/cjs/resources/gift_card_recipients.d.ts +5 -5
- package/lib/cjs/resources/gift_card_recipients.js +1 -1
- package/lib/cjs/resources/gift_cards.d.ts +7 -7
- package/lib/cjs/resources/gift_cards.js +1 -1
- package/lib/cjs/resources/google_geocoders.d.ts +4 -4
- package/lib/cjs/resources/google_geocoders.js +1 -1
- package/lib/cjs/resources/imports.d.ts +4 -4
- package/lib/cjs/resources/imports.js +1 -1
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +7 -7
- package/lib/cjs/resources/in_stock_subscriptions.js +1 -1
- package/lib/cjs/resources/inventory_models.d.ts +4 -4
- package/lib/cjs/resources/inventory_models.js +1 -1
- package/lib/cjs/resources/inventory_return_locations.d.ts +6 -6
- package/lib/cjs/resources/inventory_return_locations.js +1 -1
- package/lib/cjs/resources/inventory_stock_locations.d.ts +6 -6
- package/lib/cjs/resources/inventory_stock_locations.js +1 -1
- package/lib/cjs/resources/klarna_gateways.d.ts +5 -5
- package/lib/cjs/resources/klarna_gateways.js +1 -1
- package/lib/cjs/resources/klarna_payments.d.ts +5 -5
- package/lib/cjs/resources/klarna_payments.js +1 -1
- package/lib/cjs/resources/line_item_options.d.ts +6 -6
- package/lib/cjs/resources/line_item_options.js +1 -1
- package/lib/cjs/resources/line_items.d.ts +15 -15
- package/lib/cjs/resources/line_items.js +1 -1
- package/lib/cjs/resources/manual_gateways.d.ts +4 -4
- package/lib/cjs/resources/manual_gateways.js +1 -1
- package/lib/cjs/resources/manual_tax_calculators.d.ts +6 -6
- package/lib/cjs/resources/manual_tax_calculators.js +1 -1
- package/lib/cjs/resources/markets.d.ts +9 -9
- package/lib/cjs/resources/markets.js +1 -1
- package/lib/cjs/resources/merchants.d.ts +5 -5
- package/lib/cjs/resources/merchants.js +1 -1
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +10 -10
- package/lib/cjs/resources/order_amount_promotion_rules.js +1 -1
- package/lib/cjs/resources/order_copies.d.ts +5 -5
- package/lib/cjs/resources/order_copies.js +1 -1
- package/lib/cjs/resources/order_subscriptions.d.ts +6 -6
- package/lib/cjs/resources/order_subscriptions.js +1 -1
- package/lib/cjs/resources/order_validation_rules.d.ts +4 -4
- package/lib/cjs/resources/order_validation_rules.js +1 -1
- package/lib/cjs/resources/orders.d.ts +16 -16
- package/lib/cjs/resources/orders.js +1 -1
- package/lib/cjs/resources/organization.d.ts +4 -4
- package/lib/cjs/resources/organization.js +1 -1
- package/lib/cjs/resources/packages.d.ts +5 -5
- package/lib/cjs/resources/packages.js +1 -1
- package/lib/cjs/resources/parcel_line_items.d.ts +6 -6
- package/lib/cjs/resources/parcel_line_items.js +1 -1
- package/lib/cjs/resources/parcels.d.ts +6 -6
- package/lib/cjs/resources/parcels.js +1 -1
- package/lib/cjs/resources/payment_gateways.d.ts +4 -4
- package/lib/cjs/resources/payment_gateways.js +1 -1
- package/lib/cjs/resources/payment_methods.d.ts +10 -7
- package/lib/cjs/resources/payment_methods.js +1 -1
- package/lib/cjs/resources/paypal_gateways.d.ts +4 -4
- package/lib/cjs/resources/paypal_gateways.js +1 -1
- package/lib/cjs/resources/paypal_payments.d.ts +5 -5
- package/lib/cjs/resources/paypal_payments.js +1 -1
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +13 -10
- package/lib/cjs/resources/percentage_discount_promotions.js +1 -1
- package/lib/cjs/resources/price_lists.d.ts +4 -4
- package/lib/cjs/resources/price_lists.js +1 -1
- package/lib/cjs/resources/prices.d.ts +6 -6
- package/lib/cjs/resources/prices.js +1 -1
- package/lib/cjs/resources/promotion_rules.d.ts +4 -4
- package/lib/cjs/resources/promotion_rules.js +1 -1
- package/lib/cjs/resources/promotions.d.ts +5 -4
- package/lib/cjs/resources/promotions.js +1 -1
- package/lib/cjs/resources/refunds.d.ts +4 -4
- package/lib/cjs/resources/refunds.js +1 -1
- package/lib/cjs/resources/return_line_items.d.ts +6 -6
- package/lib/cjs/resources/return_line_items.js +1 -1
- package/lib/cjs/resources/returns.d.ts +6 -6
- package/lib/cjs/resources/returns.js +1 -1
- package/lib/cjs/resources/shipments.d.ts +5 -5
- package/lib/cjs/resources/shipments.js +1 -1
- package/lib/cjs/resources/shipping_categories.d.ts +4 -4
- package/lib/cjs/resources/shipping_categories.js +1 -1
- package/lib/cjs/resources/shipping_methods.d.ts +11 -9
- package/lib/cjs/resources/shipping_methods.js +1 -1
- package/lib/cjs/resources/shipping_zones.d.ts +4 -4
- package/lib/cjs/resources/shipping_zones.js +1 -1
- package/lib/cjs/resources/sku_list_items.d.ts +6 -6
- package/lib/cjs/resources/sku_list_items.js +1 -1
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +11 -11
- package/lib/cjs/resources/sku_list_promotion_rules.js +1 -1
- package/lib/cjs/resources/sku_lists.d.ts +4 -4
- package/lib/cjs/resources/sku_lists.js +1 -1
- package/lib/cjs/resources/sku_options.d.ts +8 -5
- package/lib/cjs/resources/sku_options.js +1 -1
- package/lib/cjs/resources/skus.d.ts +5 -5
- package/lib/cjs/resources/skus.js +1 -1
- package/lib/cjs/resources/stock_items.d.ts +6 -6
- package/lib/cjs/resources/stock_items.js +1 -1
- package/lib/cjs/resources/stock_line_items.d.ts +4 -4
- package/lib/cjs/resources/stock_line_items.js +1 -1
- package/lib/cjs/resources/stock_locations.d.ts +5 -5
- package/lib/cjs/resources/stock_locations.js +1 -1
- package/lib/cjs/resources/stock_transfers.d.ts +8 -8
- package/lib/cjs/resources/stock_transfers.js +1 -1
- package/lib/cjs/resources/stripe_gateways.d.ts +4 -4
- package/lib/cjs/resources/stripe_gateways.js +1 -1
- package/lib/cjs/resources/stripe_payments.d.ts +5 -5
- package/lib/cjs/resources/stripe_payments.js +1 -1
- package/lib/cjs/resources/tax_calculators.d.ts +4 -4
- package/lib/cjs/resources/tax_calculators.js +1 -1
- package/lib/cjs/resources/tax_categories.d.ts +9 -9
- package/lib/cjs/resources/tax_categories.js +1 -1
- package/lib/cjs/resources/tax_rules.d.ts +5 -5
- package/lib/cjs/resources/tax_rules.js +1 -1
- package/lib/cjs/resources/taxjar_accounts.d.ts +5 -5
- package/lib/cjs/resources/taxjar_accounts.js +1 -1
- package/lib/cjs/resources/transactions.d.ts +4 -4
- package/lib/cjs/resources/transactions.js +1 -1
- package/lib/cjs/resources/voids.d.ts +4 -4
- package/lib/cjs/resources/voids.js +1 -1
- package/lib/cjs/resources/webhooks.d.ts +4 -4
- package/lib/cjs/resources/webhooks.js +1 -1
- package/lib/cjs/resources/wire_transfers.d.ts +5 -5
- package/lib/cjs/resources/wire_transfers.js +1 -1
- package/lib/esm/api.d.ts +1 -1
- package/lib/esm/client.d.ts +4 -3
- package/lib/esm/commercelayer.js +1 -1
- package/lib/esm/jsonapi.js +1 -1
- package/lib/esm/model.d.ts +1 -1
- package/lib/esm/resource.d.ts +8 -4
- package/lib/esm/resources/addresses.d.ts +5 -5
- package/lib/esm/resources/addresses.js +1 -1
- package/lib/esm/resources/adjustments.d.ts +4 -4
- package/lib/esm/resources/adjustments.js +1 -1
- package/lib/esm/resources/adyen_gateways.d.ts +5 -5
- package/lib/esm/resources/adyen_gateways.js +1 -1
- package/lib/esm/resources/adyen_payments.d.ts +5 -5
- package/lib/esm/resources/adyen_payments.js +1 -1
- package/lib/esm/resources/application.d.ts +4 -4
- package/lib/esm/resources/application.js +1 -1
- package/lib/esm/resources/attachments.d.ts +34 -34
- package/lib/esm/resources/attachments.js +1 -1
- package/lib/esm/resources/authorizations.d.ts +4 -4
- package/lib/esm/resources/authorizations.js +1 -1
- package/lib/esm/resources/avalara_accounts.d.ts +5 -5
- package/lib/esm/resources/avalara_accounts.js +1 -1
- package/lib/esm/resources/billing_info_validation_rules.d.ts +5 -5
- package/lib/esm/resources/billing_info_validation_rules.js +1 -1
- package/lib/esm/resources/bing_geocoders.d.ts +4 -4
- package/lib/esm/resources/bing_geocoders.js +1 -1
- package/lib/esm/resources/braintree_gateways.d.ts +5 -5
- package/lib/esm/resources/braintree_gateways.js +1 -1
- package/lib/esm/resources/braintree_payments.d.ts +5 -5
- package/lib/esm/resources/braintree_payments.js +1 -1
- package/lib/esm/resources/bundles.d.ts +11 -6
- package/lib/esm/resources/bundles.js +1 -1
- package/lib/esm/resources/captures.d.ts +4 -4
- package/lib/esm/resources/captures.js +1 -1
- package/lib/esm/resources/carrier_accounts.d.ts +4 -4
- package/lib/esm/resources/carrier_accounts.js +1 -1
- package/lib/esm/resources/checkout_com_gateways.d.ts +5 -5
- package/lib/esm/resources/checkout_com_gateways.js +1 -1
- package/lib/esm/resources/checkout_com_payments.d.ts +5 -5
- package/lib/esm/resources/checkout_com_payments.js +1 -1
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +11 -11
- package/lib/esm/resources/coupon_codes_promotion_rules.js +1 -1
- package/lib/esm/resources/coupon_recipients.d.ts +5 -5
- package/lib/esm/resources/coupon_recipients.js +1 -1
- package/lib/esm/resources/coupons.d.ts +5 -5
- package/lib/esm/resources/coupons.js +1 -1
- package/lib/esm/resources/customer_addresses.d.ts +6 -6
- package/lib/esm/resources/customer_addresses.js +1 -1
- package/lib/esm/resources/customer_groups.d.ts +4 -4
- package/lib/esm/resources/customer_groups.js +1 -1
- package/lib/esm/resources/customer_password_resets.d.ts +4 -4
- package/lib/esm/resources/customer_password_resets.js +1 -1
- package/lib/esm/resources/customer_payment_sources.d.ts +13 -13
- package/lib/esm/resources/customer_payment_sources.js +1 -1
- package/lib/esm/resources/customer_subscriptions.d.ts +4 -4
- package/lib/esm/resources/customer_subscriptions.js +1 -1
- package/lib/esm/resources/customers.d.ts +5 -5
- package/lib/esm/resources/customers.js +1 -1
- package/lib/esm/resources/delivery_lead_times.d.ts +6 -6
- package/lib/esm/resources/delivery_lead_times.js +1 -1
- package/lib/esm/resources/event_callbacks.d.ts +4 -4
- package/lib/esm/resources/event_callbacks.js +1 -1
- package/lib/esm/resources/external_gateways.d.ts +4 -4
- package/lib/esm/resources/external_gateways.js +1 -1
- package/lib/esm/resources/external_payments.d.ts +5 -5
- package/lib/esm/resources/external_payments.js +1 -1
- package/lib/esm/resources/external_promotions.d.ts +12 -9
- package/lib/esm/resources/external_promotions.js +1 -1
- package/lib/esm/resources/external_tax_calculators.d.ts +5 -5
- package/lib/esm/resources/external_tax_calculators.js +1 -1
- package/lib/esm/resources/fixed_amount_promotions.d.ts +12 -9
- package/lib/esm/resources/fixed_amount_promotions.js +1 -1
- package/lib/esm/resources/fixed_price_promotions.d.ts +13 -10
- package/lib/esm/resources/fixed_price_promotions.js +1 -1
- package/lib/esm/resources/free_gift_promotions.d.ts +13 -10
- package/lib/esm/resources/free_gift_promotions.js +1 -1
- package/lib/esm/resources/free_shipping_promotions.d.ts +12 -9
- package/lib/esm/resources/free_shipping_promotions.js +1 -1
- package/lib/esm/resources/geocoders.d.ts +4 -4
- package/lib/esm/resources/geocoders.js +1 -1
- package/lib/esm/resources/gift_card_recipients.d.ts +5 -5
- package/lib/esm/resources/gift_card_recipients.js +1 -1
- package/lib/esm/resources/gift_cards.d.ts +7 -7
- package/lib/esm/resources/gift_cards.js +1 -1
- package/lib/esm/resources/google_geocoders.d.ts +4 -4
- package/lib/esm/resources/google_geocoders.js +1 -1
- package/lib/esm/resources/imports.d.ts +4 -4
- package/lib/esm/resources/imports.js +1 -1
- package/lib/esm/resources/in_stock_subscriptions.d.ts +7 -7
- package/lib/esm/resources/in_stock_subscriptions.js +1 -1
- package/lib/esm/resources/inventory_models.d.ts +4 -4
- package/lib/esm/resources/inventory_models.js +1 -1
- package/lib/esm/resources/inventory_return_locations.d.ts +6 -6
- package/lib/esm/resources/inventory_return_locations.js +1 -1
- package/lib/esm/resources/inventory_stock_locations.d.ts +6 -6
- package/lib/esm/resources/inventory_stock_locations.js +1 -1
- package/lib/esm/resources/klarna_gateways.d.ts +5 -5
- package/lib/esm/resources/klarna_gateways.js +1 -1
- package/lib/esm/resources/klarna_payments.d.ts +5 -5
- package/lib/esm/resources/klarna_payments.js +1 -1
- package/lib/esm/resources/line_item_options.d.ts +6 -6
- package/lib/esm/resources/line_item_options.js +1 -1
- package/lib/esm/resources/line_items.d.ts +15 -15
- package/lib/esm/resources/line_items.js +1 -1
- package/lib/esm/resources/manual_gateways.d.ts +4 -4
- package/lib/esm/resources/manual_gateways.js +1 -1
- package/lib/esm/resources/manual_tax_calculators.d.ts +6 -6
- package/lib/esm/resources/manual_tax_calculators.js +1 -1
- package/lib/esm/resources/markets.d.ts +9 -9
- package/lib/esm/resources/markets.js +1 -1
- package/lib/esm/resources/merchants.d.ts +5 -5
- package/lib/esm/resources/merchants.js +1 -1
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +10 -10
- package/lib/esm/resources/order_amount_promotion_rules.js +1 -1
- package/lib/esm/resources/order_copies.d.ts +5 -5
- package/lib/esm/resources/order_copies.js +1 -1
- package/lib/esm/resources/order_subscriptions.d.ts +6 -6
- package/lib/esm/resources/order_subscriptions.js +1 -1
- package/lib/esm/resources/order_validation_rules.d.ts +4 -4
- package/lib/esm/resources/order_validation_rules.js +1 -1
- package/lib/esm/resources/orders.d.ts +16 -16
- package/lib/esm/resources/orders.js +1 -1
- package/lib/esm/resources/organization.d.ts +4 -4
- package/lib/esm/resources/organization.js +1 -1
- package/lib/esm/resources/packages.d.ts +5 -5
- package/lib/esm/resources/packages.js +1 -1
- package/lib/esm/resources/parcel_line_items.d.ts +6 -6
- package/lib/esm/resources/parcel_line_items.js +1 -1
- package/lib/esm/resources/parcels.d.ts +6 -6
- package/lib/esm/resources/parcels.js +1 -1
- package/lib/esm/resources/payment_gateways.d.ts +4 -4
- package/lib/esm/resources/payment_gateways.js +1 -1
- package/lib/esm/resources/payment_methods.d.ts +10 -7
- package/lib/esm/resources/payment_methods.js +1 -1
- package/lib/esm/resources/paypal_gateways.d.ts +4 -4
- package/lib/esm/resources/paypal_gateways.js +1 -1
- package/lib/esm/resources/paypal_payments.d.ts +5 -5
- package/lib/esm/resources/paypal_payments.js +1 -1
- package/lib/esm/resources/percentage_discount_promotions.d.ts +13 -10
- package/lib/esm/resources/percentage_discount_promotions.js +1 -1
- package/lib/esm/resources/price_lists.d.ts +4 -4
- package/lib/esm/resources/price_lists.js +1 -1
- package/lib/esm/resources/prices.d.ts +6 -6
- package/lib/esm/resources/prices.js +1 -1
- package/lib/esm/resources/promotion_rules.d.ts +4 -4
- package/lib/esm/resources/promotion_rules.js +1 -1
- package/lib/esm/resources/promotions.d.ts +5 -4
- package/lib/esm/resources/promotions.js +1 -1
- package/lib/esm/resources/refunds.d.ts +4 -4
- package/lib/esm/resources/refunds.js +1 -1
- package/lib/esm/resources/return_line_items.d.ts +6 -6
- package/lib/esm/resources/return_line_items.js +1 -1
- package/lib/esm/resources/returns.d.ts +6 -6
- package/lib/esm/resources/returns.js +1 -1
- package/lib/esm/resources/shipments.d.ts +5 -5
- package/lib/esm/resources/shipments.js +1 -1
- package/lib/esm/resources/shipping_categories.d.ts +4 -4
- package/lib/esm/resources/shipping_categories.js +1 -1
- package/lib/esm/resources/shipping_methods.d.ts +11 -9
- package/lib/esm/resources/shipping_methods.js +1 -1
- package/lib/esm/resources/shipping_zones.d.ts +4 -4
- package/lib/esm/resources/shipping_zones.js +1 -1
- package/lib/esm/resources/sku_list_items.d.ts +6 -6
- package/lib/esm/resources/sku_list_items.js +1 -1
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +11 -11
- package/lib/esm/resources/sku_list_promotion_rules.js +1 -1
- package/lib/esm/resources/sku_lists.d.ts +4 -4
- package/lib/esm/resources/sku_lists.js +1 -1
- package/lib/esm/resources/sku_options.d.ts +8 -5
- package/lib/esm/resources/sku_options.js +1 -1
- package/lib/esm/resources/skus.d.ts +5 -5
- package/lib/esm/resources/skus.js +1 -1
- package/lib/esm/resources/stock_items.d.ts +6 -6
- package/lib/esm/resources/stock_items.js +1 -1
- package/lib/esm/resources/stock_line_items.d.ts +4 -4
- package/lib/esm/resources/stock_line_items.js +1 -1
- package/lib/esm/resources/stock_locations.d.ts +5 -5
- package/lib/esm/resources/stock_locations.js +1 -1
- package/lib/esm/resources/stock_transfers.d.ts +8 -8
- package/lib/esm/resources/stock_transfers.js +1 -1
- package/lib/esm/resources/stripe_gateways.d.ts +4 -4
- package/lib/esm/resources/stripe_gateways.js +1 -1
- package/lib/esm/resources/stripe_payments.d.ts +5 -5
- package/lib/esm/resources/stripe_payments.js +1 -1
- package/lib/esm/resources/tax_calculators.d.ts +4 -4
- package/lib/esm/resources/tax_calculators.js +1 -1
- package/lib/esm/resources/tax_categories.d.ts +9 -9
- package/lib/esm/resources/tax_categories.js +1 -1
- package/lib/esm/resources/tax_rules.d.ts +5 -5
- package/lib/esm/resources/tax_rules.js +1 -1
- package/lib/esm/resources/taxjar_accounts.d.ts +5 -5
- package/lib/esm/resources/taxjar_accounts.js +1 -1
- package/lib/esm/resources/transactions.d.ts +4 -4
- package/lib/esm/resources/transactions.js +1 -1
- package/lib/esm/resources/voids.d.ts +4 -4
- package/lib/esm/resources/voids.js +1 -1
- package/lib/esm/resources/webhooks.d.ts +4 -4
- package/lib/esm/resources/webhooks.js +1 -1
- package/lib/esm/resources/wire_transfers.d.ts +5 -5
- package/lib/esm/resources/wire_transfers.js +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Skus extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Skus.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Skus.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Skus.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Skus.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Skus.TYPE,id:e},t)}isSku(e){return e.type&&e.type===Skus.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Skus.TYPE}:{id:e.id,type:Skus.TYPE}}type(){return Skus.TYPE}}Skus.TYPE="skus",exports.default=Skus;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Skus extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Skus.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Skus.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Skus.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Skus.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Skus.TYPE,id:e},t)}isSku(e){return e.type&&e.type===Skus.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Skus.TYPE}:{id:e.id,type:Skus.TYPE}}type(){return Skus.TYPE}}Skus.TYPE="skus",exports.default=Skus;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { StockLocation } from './stock_locations';
|
4
4
|
import { Sku } from './skus';
|
5
5
|
import { Attachment } from './attachments';
|
6
|
-
declare type StockItemRel =
|
6
|
+
declare type StockItemRel = ResourceRel & {
|
7
7
|
type: typeof StockItems.TYPE;
|
8
8
|
};
|
9
|
-
declare type StockLocationRel =
|
9
|
+
declare type StockLocationRel = ResourceRel & {
|
10
10
|
type: 'stock_locations';
|
11
11
|
};
|
12
|
-
declare type SkuRel =
|
12
|
+
declare type SkuRel = ResourceRel & {
|
13
13
|
type: 'skus';
|
14
14
|
};
|
15
15
|
interface StockItem extends Resource {
|
@@ -39,7 +39,7 @@ declare class StockItems extends ApiResource {
|
|
39
39
|
update(resource: StockItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockItem>;
|
40
40
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
41
41
|
isStockItem(resource: any): resource is StockItem;
|
42
|
-
relationship(id: string | ResourceId): StockItemRel;
|
42
|
+
relationship(id: string | ResourceId | null): StockItemRel;
|
43
43
|
type(): string;
|
44
44
|
}
|
45
45
|
export default StockItems;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockItems extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:StockItems.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StockItems.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:StockItems.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StockItems.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:StockItems.TYPE,id:e},r)}isStockItem(e){return e.type&&e.type===StockItems.TYPE}relationship(e){return typeof e=="string"?{id:e,type:StockItems.TYPE}:{id:e.id,type:StockItems.TYPE}}type(){return StockItems.TYPE}}StockItems.TYPE="stock_items",exports.default=StockItems;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockItems extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:StockItems.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StockItems.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:StockItems.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StockItems.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:StockItems.TYPE,id:e},r)}isStockItem(e){return e.type&&e.type===StockItems.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StockItems.TYPE}:{id:e.id,type:StockItems.TYPE}}type(){return StockItems.TYPE}}StockItems.TYPE="stock_items",exports.default=StockItems;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { Shipment } from './shipments';
|
4
4
|
import { LineItem } from './line_items';
|
5
5
|
import { StockItem } from './stock_items';
|
6
|
-
declare type StockLineItemRel =
|
6
|
+
declare type StockLineItemRel = ResourceRel & {
|
7
7
|
type: typeof StockLineItems.TYPE;
|
8
8
|
};
|
9
9
|
interface StockLineItem extends Resource {
|
@@ -19,7 +19,7 @@ declare class StockLineItems extends ApiResource {
|
|
19
19
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>>;
|
20
20
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLineItem>;
|
21
21
|
isStockLineItem(resource: any): resource is StockLineItem;
|
22
|
-
relationship(id: string | ResourceId): StockLineItemRel;
|
22
|
+
relationship(id: string | ResourceId | null): StockLineItemRel;
|
23
23
|
type(): string;
|
24
24
|
}
|
25
25
|
export default StockLineItems;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockLineItems extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:StockLineItems.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:StockLineItems.TYPE,id:e},r,t)}isStockLineItem(e){return e.type&&e.type===StockLineItems.TYPE}relationship(e){return typeof e=="string"?{id:e,type:StockLineItems.TYPE}:{id:e.id,type:StockLineItems.TYPE}}type(){return StockLineItems.TYPE}}StockLineItems.TYPE="stock_line_items",exports.default=StockLineItems;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockLineItems extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:StockLineItems.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:StockLineItems.TYPE,id:e},r,t)}isStockLineItem(e){return e.type&&e.type===StockLineItems.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StockLineItems.TYPE}:{id:e.id,type:StockLineItems.TYPE}}type(){return StockLineItems.TYPE}}StockLineItems.TYPE="stock_line_items",exports.default=StockLineItems;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { Address } from './addresses';
|
4
4
|
import { InventoryStockLocation } from './inventory_stock_locations';
|
5
5
|
import { InventoryReturnLocation } from './inventory_return_locations';
|
6
6
|
import { StockItem } from './stock_items';
|
7
7
|
import { StockTransfer } from './stock_transfers';
|
8
8
|
import { Attachment } from './attachments';
|
9
|
-
declare type StockLocationRel =
|
9
|
+
declare type StockLocationRel = ResourceRel & {
|
10
10
|
type: typeof StockLocations.TYPE;
|
11
11
|
};
|
12
|
-
declare type AddressRel =
|
12
|
+
declare type AddressRel = ResourceRel & {
|
13
13
|
type: 'addresses';
|
14
14
|
};
|
15
15
|
interface StockLocation extends Resource {
|
@@ -44,7 +44,7 @@ declare class StockLocations extends ApiResource {
|
|
44
44
|
update(resource: StockLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
|
45
45
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
46
46
|
isStockLocation(resource: any): resource is StockLocation;
|
47
|
-
relationship(id: string | ResourceId): StockLocationRel;
|
47
|
+
relationship(id: string | ResourceId | null): StockLocationRel;
|
48
48
|
type(): string;
|
49
49
|
}
|
50
50
|
export default StockLocations;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockLocations extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:StockLocations.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StockLocations.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:StockLocations.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StockLocations.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:StockLocations.TYPE,id:e},r)}isStockLocation(e){return e.type&&e.type===StockLocations.TYPE}relationship(e){return typeof e=="string"?{id:e,type:StockLocations.TYPE}:{id:e.id,type:StockLocations.TYPE}}type(){return StockLocations.TYPE}}StockLocations.TYPE="stock_locations",exports.default=StockLocations;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockLocations extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:StockLocations.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StockLocations.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:StockLocations.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StockLocations.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:StockLocations.TYPE,id:e},r)}isStockLocation(e){return e.type&&e.type===StockLocations.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StockLocations.TYPE}:{id:e.id,type:StockLocations.TYPE}}type(){return StockLocations.TYPE}}StockLocations.TYPE="stock_locations",exports.default=StockLocations;
|
@@ -1,22 +1,22 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { Sku } from './skus';
|
4
4
|
import { StockLocation } from './stock_locations';
|
5
5
|
import { Shipment } from './shipments';
|
6
6
|
import { LineItem } from './line_items';
|
7
|
-
declare type StockTransferRel =
|
7
|
+
declare type StockTransferRel = ResourceRel & {
|
8
8
|
type: typeof StockTransfers.TYPE;
|
9
9
|
};
|
10
|
-
declare type SkuRel =
|
10
|
+
declare type SkuRel = ResourceRel & {
|
11
11
|
type: 'skus';
|
12
12
|
};
|
13
|
-
declare type StockLocationRel =
|
13
|
+
declare type StockLocationRel = ResourceRel & {
|
14
14
|
type: 'stock_locations';
|
15
15
|
};
|
16
|
-
declare type ShipmentRel =
|
16
|
+
declare type ShipmentRel = ResourceRel & {
|
17
17
|
type: 'shipments';
|
18
18
|
};
|
19
|
-
declare type LineItemRel =
|
19
|
+
declare type LineItemRel = ResourceRel & {
|
20
20
|
type: 'line_items';
|
21
21
|
};
|
22
22
|
interface StockTransfer extends Resource {
|
@@ -59,7 +59,7 @@ declare class StockTransfers extends ApiResource {
|
|
59
59
|
update(resource: StockTransferUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockTransfer>;
|
60
60
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
61
61
|
isStockTransfer(resource: any): resource is StockTransfer;
|
62
|
-
relationship(id: string | ResourceId): StockTransferRel;
|
62
|
+
relationship(id: string | ResourceId | null): StockTransferRel;
|
63
63
|
type(): string;
|
64
64
|
}
|
65
65
|
export default StockTransfers;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockTransfers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StockTransfers.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StockTransfers.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:StockTransfers.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StockTransfers.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:StockTransfers.TYPE,id:e},t)}isStockTransfer(e){return e.type&&e.type===StockTransfers.TYPE}relationship(e){return typeof e=="string"?{id:e,type:StockTransfers.TYPE}:{id:e.id,type:StockTransfers.TYPE}}type(){return StockTransfers.TYPE}}StockTransfers.TYPE="stock_transfers",exports.default=StockTransfers;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StockTransfers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:StockTransfers.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:StockTransfers.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:StockTransfers.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:StockTransfers.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:StockTransfers.TYPE,id:e},t)}isStockTransfer(e){return e.type&&e.type===StockTransfers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StockTransfers.TYPE}:{id:e.id,type:StockTransfers.TYPE}}type(){return StockTransfers.TYPE}}StockTransfers.TYPE="stock_transfers",exports.default=StockTransfers;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { PaymentMethod } from './payment_methods';
|
4
4
|
import { StripePayment } from './stripe_payments';
|
5
|
-
declare type StripeGatewayRel =
|
5
|
+
declare type StripeGatewayRel = ResourceRel & {
|
6
6
|
type: typeof StripeGateways.TYPE;
|
7
7
|
};
|
8
8
|
interface StripeGateway extends Resource {
|
@@ -29,7 +29,7 @@ declare class StripeGateways extends ApiResource {
|
|
29
29
|
update(resource: StripeGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripeGateway>;
|
30
30
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
31
31
|
isStripeGateway(resource: any): resource is StripeGateway;
|
32
|
-
relationship(id: string | ResourceId): StripeGatewayRel;
|
32
|
+
relationship(id: string | ResourceId | null): StripeGatewayRel;
|
33
33
|
type(): string;
|
34
34
|
}
|
35
35
|
export default StripeGateways;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StripeGateways extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:StripeGateways.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:StripeGateways.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:StripeGateways.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:StripeGateways.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:StripeGateways.TYPE,id:e},s)}isStripeGateway(e){return e.type&&e.type===StripeGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:StripeGateways.TYPE}:{id:e.id,type:StripeGateways.TYPE}}type(){return StripeGateways.TYPE}}StripeGateways.TYPE="stripe_gateways",exports.default=StripeGateways;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StripeGateways extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:StripeGateways.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:StripeGateways.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:StripeGateways.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:StripeGateways.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:StripeGateways.TYPE,id:e},s)}isStripeGateway(e){return e.type&&e.type===StripeGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StripeGateways.TYPE}:{id:e.id,type:StripeGateways.TYPE}}type(){return StripeGateways.TYPE}}StripeGateways.TYPE="stripe_gateways",exports.default=StripeGateways;
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { Order } from './orders';
|
4
4
|
import { PaymentGateway } from './payment_gateways';
|
5
|
-
declare type StripePaymentRel =
|
5
|
+
declare type StripePaymentRel = ResourceRel & {
|
6
6
|
type: typeof StripePayments.TYPE;
|
7
7
|
};
|
8
|
-
declare type OrderRel =
|
8
|
+
declare type OrderRel = ResourceRel & {
|
9
9
|
type: 'orders';
|
10
10
|
};
|
11
11
|
interface StripePayment extends Resource {
|
@@ -33,7 +33,7 @@ declare class StripePayments extends ApiResource {
|
|
33
33
|
update(resource: StripePaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripePayment>;
|
34
34
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
35
35
|
isStripePayment(resource: any): resource is StripePayment;
|
36
|
-
relationship(id: string | ResourceId): StripePaymentRel;
|
36
|
+
relationship(id: string | ResourceId | null): StripePaymentRel;
|
37
37
|
type(): string;
|
38
38
|
}
|
39
39
|
export default StripePayments;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StripePayments extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:StripePayments.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:StripePayments.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:StripePayments.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:StripePayments.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:StripePayments.TYPE,id:e},s)}isStripePayment(e){return e.type&&e.type===StripePayments.TYPE}relationship(e){return typeof e=="string"?{id:e,type:StripePayments.TYPE}:{id:e.id,type:StripePayments.TYPE}}type(){return StripePayments.TYPE}}StripePayments.TYPE="stripe_payments",exports.default=StripePayments;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class StripePayments extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:StripePayments.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:StripePayments.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:StripePayments.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:StripePayments.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:StripePayments.TYPE,id:e},s)}isStripePayment(e){return e.type&&e.type===StripePayments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:StripePayments.TYPE}:{id:e.id,type:StripePayments.TYPE}}type(){return StripePayments.TYPE}}StripePayments.TYPE="stripe_payments",exports.default=StripePayments;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { TaxCategory } from './tax_categories';
|
4
4
|
import { Market } from './markets';
|
5
5
|
import { Attachment } from './attachments';
|
6
|
-
declare type TaxCalculatorRel =
|
6
|
+
declare type TaxCalculatorRel = ResourceRel & {
|
7
7
|
type: typeof TaxCalculators.TYPE;
|
8
8
|
};
|
9
9
|
interface TaxCalculator extends Resource {
|
@@ -17,7 +17,7 @@ declare class TaxCalculators extends ApiResource {
|
|
17
17
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCalculator>>;
|
18
18
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxCalculator>;
|
19
19
|
isTaxCalculator(resource: any): resource is TaxCalculator;
|
20
|
-
relationship(id: string | ResourceId): TaxCalculatorRel;
|
20
|
+
relationship(id: string | ResourceId | null): TaxCalculatorRel;
|
21
21
|
type(): string;
|
22
22
|
}
|
23
23
|
export default TaxCalculators;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxCalculators extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:TaxCalculators.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:TaxCalculators.TYPE,id:e},r,t)}isTaxCalculator(e){return e.type&&e.type===TaxCalculators.TYPE}relationship(e){return typeof e=="string"?{id:e,type:TaxCalculators.TYPE}:{id:e.id,type:TaxCalculators.TYPE}}type(){return TaxCalculators.TYPE}}TaxCalculators.TYPE="tax_calculators",exports.default=TaxCalculators;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxCalculators extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:TaxCalculators.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:TaxCalculators.TYPE,id:e},r,t)}isTaxCalculator(e){return e.type&&e.type===TaxCalculators.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxCalculators.TYPE}:{id:e.id,type:TaxCalculators.TYPE}}type(){return TaxCalculators.TYPE}}TaxCalculators.TYPE="tax_calculators",exports.default=TaxCalculators;
|
@@ -1,27 +1,27 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { Sku } from './skus';
|
4
4
|
import { AvalaraAccount } from './avalara_accounts';
|
5
5
|
import { TaxjarAccount } from './taxjar_accounts';
|
6
6
|
import { ManualTaxCalculator } from './manual_tax_calculators';
|
7
7
|
import { ExternalTaxCalculator } from './external_tax_calculators';
|
8
8
|
import { Attachment } from './attachments';
|
9
|
-
declare type TaxCategoryRel =
|
9
|
+
declare type TaxCategoryRel = ResourceRel & {
|
10
10
|
type: typeof TaxCategories.TYPE;
|
11
11
|
};
|
12
|
-
declare type SkuRel =
|
12
|
+
declare type SkuRel = ResourceRel & {
|
13
13
|
type: 'skus';
|
14
14
|
};
|
15
|
-
declare type AvalaraAccountRel =
|
15
|
+
declare type AvalaraAccountRel = ResourceRel & {
|
16
16
|
type: 'avalara_accounts';
|
17
17
|
};
|
18
|
-
declare type TaxjarAccountRel =
|
18
|
+
declare type TaxjarAccountRel = ResourceRel & {
|
19
19
|
type: 'taxjar_accounts';
|
20
20
|
};
|
21
|
-
declare type ManualTaxCalculatorRel =
|
21
|
+
declare type ManualTaxCalculatorRel = ResourceRel & {
|
22
22
|
type: 'manual_tax_calculators';
|
23
23
|
};
|
24
|
-
declare type ExternalTaxCalculatorRel =
|
24
|
+
declare type ExternalTaxCalculatorRel = ResourceRel & {
|
25
25
|
type: 'external_tax_calculators';
|
26
26
|
};
|
27
27
|
interface TaxCategory extends Resource {
|
@@ -50,7 +50,7 @@ declare class TaxCategories extends ApiResource {
|
|
50
50
|
update(resource: TaxCategoryUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxCategory>;
|
51
51
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
52
52
|
isTaxCategory(resource: any): resource is TaxCategory;
|
53
|
-
relationship(id: string | ResourceId): TaxCategoryRel;
|
53
|
+
relationship(id: string | ResourceId | null): TaxCategoryRel;
|
54
54
|
type(): string;
|
55
55
|
}
|
56
56
|
export default TaxCategories;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxCategories extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxCategories.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:TaxCategories.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:TaxCategories.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:TaxCategories.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:TaxCategories.TYPE,id:e},t)}isTaxCategory(e){return e.type&&e.type===TaxCategories.TYPE}relationship(e){return typeof e=="string"?{id:e,type:TaxCategories.TYPE}:{id:e.id,type:TaxCategories.TYPE}}type(){return TaxCategories.TYPE}}TaxCategories.TYPE="tax_categories",exports.default=TaxCategories;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxCategories extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxCategories.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:TaxCategories.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:TaxCategories.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:TaxCategories.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:TaxCategories.TYPE,id:e},t)}isTaxCategory(e){return e.type&&e.type===TaxCategories.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxCategories.TYPE}:{id:e.id,type:TaxCategories.TYPE}}type(){return TaxCategories.TYPE}}TaxCategories.TYPE="tax_categories",exports.default=TaxCategories;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { ManualTaxCalculator } from './manual_tax_calculators';
|
4
|
-
declare type TaxRuleRel =
|
4
|
+
declare type TaxRuleRel = ResourceRel & {
|
5
5
|
type: typeof TaxRules.TYPE;
|
6
6
|
};
|
7
|
-
declare type ManualTaxCalculatorRel =
|
7
|
+
declare type ManualTaxCalculatorRel = ResourceRel & {
|
8
8
|
type: 'manual_tax_calculators';
|
9
9
|
};
|
10
10
|
interface TaxRule extends Resource {
|
@@ -61,7 +61,7 @@ declare class TaxRules extends ApiResource {
|
|
61
61
|
update(resource: TaxRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxRule>;
|
62
62
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
63
63
|
isTaxRule(resource: any): resource is TaxRule;
|
64
|
-
relationship(id: string | ResourceId): TaxRuleRel;
|
64
|
+
relationship(id: string | ResourceId | null): TaxRuleRel;
|
65
65
|
type(): string;
|
66
66
|
}
|
67
67
|
export default TaxRules;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxRules extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxRules.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:TaxRules.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:TaxRules.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:TaxRules.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:TaxRules.TYPE,id:e},t)}isTaxRule(e){return e.type&&e.type===TaxRules.TYPE}relationship(e){return typeof e=="string"?{id:e,type:TaxRules.TYPE}:{id:e.id,type:TaxRules.TYPE}}type(){return TaxRules.TYPE}}TaxRules.TYPE="tax_rules",exports.default=TaxRules;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxRules extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxRules.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:TaxRules.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:TaxRules.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:TaxRules.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:TaxRules.TYPE,id:e},t)}isTaxRule(e){return e.type&&e.type===TaxRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxRules.TYPE}:{id:e.id,type:TaxRules.TYPE}}type(){return TaxRules.TYPE}}TaxRules.TYPE="tax_rules",exports.default=TaxRules;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { TaxCategory } from './tax_categories';
|
4
4
|
import { Market } from './markets';
|
5
5
|
import { Attachment } from './attachments';
|
6
|
-
declare type TaxjarAccountRel =
|
6
|
+
declare type TaxjarAccountRel = ResourceRel & {
|
7
7
|
type: typeof TaxjarAccounts.TYPE;
|
8
8
|
};
|
9
|
-
declare type TaxCategoryRel =
|
9
|
+
declare type TaxCategoryRel = ResourceRel & {
|
10
10
|
type: 'tax_categories';
|
11
11
|
};
|
12
12
|
interface TaxjarAccount extends Resource {
|
@@ -33,7 +33,7 @@ declare class TaxjarAccounts extends ApiResource {
|
|
33
33
|
update(resource: TaxjarAccountUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxjarAccount>;
|
34
34
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
35
35
|
isTaxjarAccount(resource: any): resource is TaxjarAccount;
|
36
|
-
relationship(id: string | ResourceId): TaxjarAccountRel;
|
36
|
+
relationship(id: string | ResourceId | null): TaxjarAccountRel;
|
37
37
|
type(): string;
|
38
38
|
}
|
39
39
|
export default TaxjarAccounts;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxjarAccounts extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxjarAccounts.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:TaxjarAccounts.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:TaxjarAccounts.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:TaxjarAccounts.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:TaxjarAccounts.TYPE,id:e},t)}isTaxjarAccount(e){return e.type&&e.type===TaxjarAccounts.TYPE}relationship(e){return typeof e=="string"?{id:e,type:TaxjarAccounts.TYPE}:{id:e.id,type:TaxjarAccounts.TYPE}}type(){return TaxjarAccounts.TYPE}}TaxjarAccounts.TYPE="taxjar_accounts",exports.default=TaxjarAccounts;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxjarAccounts extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxjarAccounts.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:TaxjarAccounts.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:TaxjarAccounts.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:TaxjarAccounts.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:TaxjarAccounts.TYPE,id:e},t)}isTaxjarAccount(e){return e.type&&e.type===TaxjarAccounts.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:TaxjarAccounts.TYPE}:{id:e.id,type:TaxjarAccounts.TYPE}}type(){return TaxjarAccounts.TYPE}}TaxjarAccounts.TYPE="taxjar_accounts",exports.default=TaxjarAccounts;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { Order } from './orders';
|
4
|
-
declare type TransactionRel =
|
4
|
+
declare type TransactionRel = ResourceRel & {
|
5
5
|
type: typeof Transactions.TYPE;
|
6
6
|
};
|
7
7
|
interface Transaction extends Resource {
|
@@ -23,7 +23,7 @@ declare class Transactions extends ApiResource {
|
|
23
23
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Transaction>>;
|
24
24
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Transaction>;
|
25
25
|
isTransaction(resource: any): resource is Transaction;
|
26
|
-
relationship(id: string | ResourceId): TransactionRel;
|
26
|
+
relationship(id: string | ResourceId | null): TransactionRel;
|
27
27
|
type(): string;
|
28
28
|
}
|
29
29
|
export default Transactions;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Transactions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Transactions.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Transactions.TYPE,id:e},r,t)}isTransaction(e){return e.type&&e.type===Transactions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Transactions.TYPE}:{id:e.id,type:Transactions.TYPE}}type(){return Transactions.TYPE}}Transactions.TYPE="transactions",exports.default=Transactions;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Transactions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Transactions.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Transactions.TYPE,id:e},r,t)}isTransaction(e){return e.type&&e.type===Transactions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Transactions.TYPE}:{id:e.id,type:Transactions.TYPE}}type(){return Transactions.TYPE}}Transactions.TYPE="transactions",exports.default=Transactions;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { Order } from './orders';
|
4
4
|
import { Authorization } from './authorizations';
|
5
|
-
declare type VoidRel =
|
5
|
+
declare type VoidRel = ResourceRel & {
|
6
6
|
type: typeof Voids.TYPE;
|
7
7
|
};
|
8
8
|
interface Void extends Resource {
|
@@ -25,7 +25,7 @@ declare class Voids extends ApiResource {
|
|
25
25
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Void>>;
|
26
26
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Void>;
|
27
27
|
isVoid(resource: any): resource is Void;
|
28
|
-
relationship(id: string | ResourceId): VoidRel;
|
28
|
+
relationship(id: string | ResourceId | null): VoidRel;
|
29
29
|
type(): string;
|
30
30
|
}
|
31
31
|
export default Voids;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Voids extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Voids.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Voids.TYPE,id:e},r,t)}isVoid(e){return e.type&&e.type===Voids.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Voids.TYPE}:{id:e.id,type:Voids.TYPE}}type(){return Voids.TYPE}}Voids.TYPE="voids",exports.default=Voids;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Voids extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Voids.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Voids.TYPE,id:e},r,t)}isVoid(e){return e.type&&e.type===Voids.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Voids.TYPE}:{id:e.id,type:Voids.TYPE}}type(){return Voids.TYPE}}Voids.TYPE="voids",exports.default=Voids;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { EventCallback } from './event_callbacks';
|
4
|
-
declare type WebhookRel =
|
4
|
+
declare type WebhookRel = ResourceRel & {
|
5
5
|
type: typeof Webhooks.TYPE;
|
6
6
|
};
|
7
7
|
interface Webhook extends Resource {
|
@@ -34,7 +34,7 @@ declare class Webhooks extends ApiResource {
|
|
34
34
|
update(resource: WebhookUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Webhook>;
|
35
35
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
36
36
|
isWebhook(resource: any): resource is Webhook;
|
37
|
-
relationship(id: string | ResourceId): WebhookRel;
|
37
|
+
relationship(id: string | ResourceId | null): WebhookRel;
|
38
38
|
type(): string;
|
39
39
|
}
|
40
40
|
export default Webhooks;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Webhooks extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Webhooks.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Webhooks.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Webhooks.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Webhooks.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Webhooks.TYPE,id:e},t)}isWebhook(e){return e.type&&e.type===Webhooks.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Webhooks.TYPE}:{id:e.id,type:Webhooks.TYPE}}type(){return Webhooks.TYPE}}Webhooks.TYPE="webhooks",exports.default=Webhooks;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Webhooks extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Webhooks.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Webhooks.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Webhooks.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Webhooks.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Webhooks.TYPE,id:e},t)}isWebhook(e){return e.type&&e.type===Webhooks.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Webhooks.TYPE}:{id:e.id,type:Webhooks.TYPE}}type(){return Webhooks.TYPE}}Webhooks.TYPE="webhooks",exports.default=Webhooks;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { Order } from './orders';
|
4
|
-
declare type WireTransferRel =
|
4
|
+
declare type WireTransferRel = ResourceRel & {
|
5
5
|
type: typeof WireTransfers.TYPE;
|
6
6
|
};
|
7
|
-
declare type OrderRel =
|
7
|
+
declare type OrderRel = ResourceRel & {
|
8
8
|
type: 'orders';
|
9
9
|
};
|
10
10
|
interface WireTransfer extends Resource {
|
@@ -24,7 +24,7 @@ declare class WireTransfers extends ApiResource {
|
|
24
24
|
update(resource: WireTransferUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<WireTransfer>;
|
25
25
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
26
26
|
isWireTransfer(resource: any): resource is WireTransfer;
|
27
|
-
relationship(id: string | ResourceId): WireTransferRel;
|
27
|
+
relationship(id: string | ResourceId | null): WireTransferRel;
|
28
28
|
type(): string;
|
29
29
|
}
|
30
30
|
export default WireTransfers;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class WireTransfers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:WireTransfers.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:WireTransfers.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:WireTransfers.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:WireTransfers.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:WireTransfers.TYPE,id:e},t)}isWireTransfer(e){return e.type&&e.type===WireTransfers.TYPE}relationship(e){return typeof e=="string"?{id:e,type:WireTransfers.TYPE}:{id:e.id,type:WireTransfers.TYPE}}type(){return WireTransfers.TYPE}}WireTransfers.TYPE="wire_transfers",exports.default=WireTransfers;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class WireTransfers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:WireTransfers.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:WireTransfers.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:WireTransfers.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:WireTransfers.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:WireTransfers.TYPE,id:e},t)}isWireTransfer(e){return e.type&&e.type===WireTransfers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:WireTransfers.TYPE}:{id:e.id,type:WireTransfers.TYPE}}type(){return WireTransfers.TYPE}}WireTransfers.TYPE="wire_transfers",exports.default=WireTransfers;
|
package/lib/esm/api.d.ts
CHANGED
package/lib/esm/client.d.ts
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
/// <reference types="node" />
|
2
2
|
import { AxiosProxyConfig, Method } from 'axios';
|
3
|
-
import type { DocWithData
|
3
|
+
import type { DocWithData, ResourceObject } from 'jsonapi-typescript';
|
4
4
|
import type { InterceptorManager } from './interceptor';
|
5
5
|
import type { Agent as HttpAgent } from 'http';
|
6
6
|
import type { Agent as HttpsAgent } from 'https';
|
7
|
+
declare type ProxyConfig = AxiosProxyConfig | false;
|
7
8
|
declare type RequestConfig = {
|
8
9
|
timeout?: number;
|
9
10
|
params?: {
|
@@ -11,7 +12,7 @@ declare type RequestConfig = {
|
|
11
12
|
};
|
12
13
|
httpAgent?: HttpAgent;
|
13
14
|
httpsAgent?: HttpsAgent;
|
14
|
-
proxy?:
|
15
|
+
proxy?: ProxyConfig;
|
15
16
|
};
|
16
17
|
declare type ApiClientInitConfig = {
|
17
18
|
organization: string;
|
@@ -26,7 +27,7 @@ declare class ApiClient {
|
|
26
27
|
interceptors: InterceptorManager;
|
27
28
|
private constructor();
|
28
29
|
config(config: ApiClientConfig): void;
|
29
|
-
request(method: Method, path: string, body?:
|
30
|
+
request(method: Method, path: string, body?: ResourceObject, options?: ApiClientConfig): Promise<DocWithData>;
|
30
31
|
}
|
31
32
|
export default ApiClient;
|
32
33
|
export { ApiClientInitConfig, ApiClientConfig, RequestConfig };
|
package/lib/esm/commercelayer.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var c=this&&this.__classPrivateFieldSet||function(o,i,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?o!==i||!a:!i.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(o,n):a?a.value=n:i.set(o,n),n},s=this&&this.__classPrivateFieldGet||function(o,i,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?o!==i||!r:!i.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(o):r?r.value:i.get(o)},t,h;import*as e from"./api";import{CommerceLayerStatic as f}from"./static";import p from"./resource";import u from"./debug";const w=u(),m="2.8.
|
1
|
+
var c=this&&this.__classPrivateFieldSet||function(o,i,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?o!==i||!a:!i.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(o,n):a?a.value=n:i.set(o,n),n},s=this&&this.__classPrivateFieldGet||function(o,i,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?o!==i||!r:!i.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(o):r?r.value:i.get(o)},t,h;import*as e from"./api";import{CommerceLayerStatic as f}from"./static";import p from"./resource";import u from"./debug";const w=u(),m="2.8.1";class l{constructor(i){t.set(this,void 0),h.set(this,void 0),w("new commercelayer instance %O",i),c(this,t,new p(i),"f"),c(this,h,i.organization,"f"),this.addresses=new e.Addresses(s(this,t,"f")),this.adjustments=new e.Adjustments(s(this,t,"f")),this.adyen_gateways=new e.AdyenGateways(s(this,t,"f")),this.adyen_payments=new e.AdyenPayments(s(this,t,"f")),this.application=new e.Applications(s(this,t,"f")),this.attachments=new e.Attachments(s(this,t,"f")),this.authorizations=new e.Authorizations(s(this,t,"f")),this.avalara_accounts=new e.AvalaraAccounts(s(this,t,"f")),this.billing_info_validation_rules=new e.BillingInfoValidationRules(s(this,t,"f")),this.bing_geocoders=new e.BingGeocoders(s(this,t,"f")),this.braintree_gateways=new e.BraintreeGateways(s(this,t,"f")),this.braintree_payments=new e.BraintreePayments(s(this,t,"f")),this.bundles=new e.Bundles(s(this,t,"f")),this.captures=new e.Captures(s(this,t,"f")),this.carrier_accounts=new e.CarrierAccounts(s(this,t,"f")),this.checkout_com_gateways=new e.CheckoutComGateways(s(this,t,"f")),this.checkout_com_payments=new e.CheckoutComPayments(s(this,t,"f")),this.coupon_codes_promotion_rules=new e.CouponCodesPromotionRules(s(this,t,"f")),this.coupon_recipients=new e.CouponRecipients(s(this,t,"f")),this.coupons=new e.Coupons(s(this,t,"f")),this.customer_addresses=new e.CustomerAddresses(s(this,t,"f")),this.customer_groups=new e.CustomerGroups(s(this,t,"f")),this.customer_password_resets=new e.CustomerPasswordResets(s(this,t,"f")),this.customer_payment_sources=new e.CustomerPaymentSources(s(this,t,"f")),this.customer_subscriptions=new e.CustomerSubscriptions(s(this,t,"f")),this.customers=new e.Customers(s(this,t,"f")),this.delivery_lead_times=new e.DeliveryLeadTimes(s(this,t,"f")),this.event_callbacks=new e.EventCallbacks(s(this,t,"f")),this.external_gateways=new e.ExternalGateways(s(this,t,"f")),this.external_payments=new e.ExternalPayments(s(this,t,"f")),this.external_promotions=new e.ExternalPromotions(s(this,t,"f")),this.external_tax_calculators=new e.ExternalTaxCalculators(s(this,t,"f")),this.fixed_amount_promotions=new e.FixedAmountPromotions(s(this,t,"f")),this.fixed_price_promotions=new e.FixedPricePromotions(s(this,t,"f")),this.free_gift_promotions=new e.FreeGiftPromotions(s(this,t,"f")),this.free_shipping_promotions=new e.FreeShippingPromotions(s(this,t,"f")),this.geocoders=new e.Geocoders(s(this,t,"f")),this.gift_card_recipients=new e.GiftCardRecipients(s(this,t,"f")),this.gift_cards=new e.GiftCards(s(this,t,"f")),this.google_geocoders=new e.GoogleGeocoders(s(this,t,"f")),this.imports=new e.Imports(s(this,t,"f")),this.in_stock_subscriptions=new e.InStockSubscriptions(s(this,t,"f")),this.inventory_models=new e.InventoryModels(s(this,t,"f")),this.inventory_return_locations=new e.InventoryReturnLocations(s(this,t,"f")),this.inventory_stock_locations=new e.InventoryStockLocations(s(this,t,"f")),this.klarna_gateways=new e.KlarnaGateways(s(this,t,"f")),this.klarna_payments=new e.KlarnaPayments(s(this,t,"f")),this.line_item_options=new e.LineItemOptions(s(this,t,"f")),this.line_items=new e.LineItems(s(this,t,"f")),this.manual_gateways=new e.ManualGateways(s(this,t,"f")),this.manual_tax_calculators=new e.ManualTaxCalculators(s(this,t,"f")),this.markets=new e.Markets(s(this,t,"f")),this.merchants=new e.Merchants(s(this,t,"f")),this.order_amount_promotion_rules=new e.OrderAmountPromotionRules(s(this,t,"f")),this.order_copies=new e.OrderCopies(s(this,t,"f")),this.order_subscriptions=new e.OrderSubscriptions(s(this,t,"f")),this.order_validation_rules=new e.OrderValidationRules(s(this,t,"f")),this.orders=new e.Orders(s(this,t,"f")),this.organization=new e.Organizations(s(this,t,"f")),this.packages=new e.Packages(s(this,t,"f")),this.parcel_line_items=new e.ParcelLineItems(s(this,t,"f")),this.parcels=new e.Parcels(s(this,t,"f")),this.payment_gateways=new e.PaymentGateways(s(this,t,"f")),this.payment_methods=new e.PaymentMethods(s(this,t,"f")),this.paypal_gateways=new e.PaypalGateways(s(this,t,"f")),this.paypal_payments=new e.PaypalPayments(s(this,t,"f")),this.percentage_discount_promotions=new e.PercentageDiscountPromotions(s(this,t,"f")),this.price_lists=new e.PriceLists(s(this,t,"f")),this.prices=new e.Prices(s(this,t,"f")),this.promotion_rules=new e.PromotionRules(s(this,t,"f")),this.promotions=new e.Promotions(s(this,t,"f")),this.refunds=new e.Refunds(s(this,t,"f")),this.return_line_items=new e.ReturnLineItems(s(this,t,"f")),this.returns=new e.Returns(s(this,t,"f")),this.shipments=new e.Shipments(s(this,t,"f")),this.shipping_categories=new e.ShippingCategories(s(this,t,"f")),this.shipping_methods=new e.ShippingMethods(s(this,t,"f")),this.shipping_zones=new e.ShippingZones(s(this,t,"f")),this.sku_list_items=new e.SkuListItems(s(this,t,"f")),this.sku_list_promotion_rules=new e.SkuListPromotionRules(s(this,t,"f")),this.sku_lists=new e.SkuLists(s(this,t,"f")),this.sku_options=new e.SkuOptions(s(this,t,"f")),this.skus=new e.Skus(s(this,t,"f")),this.stock_items=new e.StockItems(s(this,t,"f")),this.stock_line_items=new e.StockLineItems(s(this,t,"f")),this.stock_locations=new e.StockLocations(s(this,t,"f")),this.stock_transfers=new e.StockTransfers(s(this,t,"f")),this.stripe_gateways=new e.StripeGateways(s(this,t,"f")),this.stripe_payments=new e.StripePayments(s(this,t,"f")),this.tax_calculators=new e.TaxCalculators(s(this,t,"f")),this.tax_categories=new e.TaxCategories(s(this,t,"f")),this.tax_rules=new e.TaxRules(s(this,t,"f")),this.taxjar_accounts=new e.TaxjarAccounts(s(this,t,"f")),this.transactions=new e.Transactions(s(this,t,"f")),this.voids=new e.Voids(s(this,t,"f")),this.webhooks=new e.Webhooks(s(this,t,"f")),this.wire_transfers=new e.WireTransfers(s(this,t,"f"))}static get openApiSchemaVersion(){return m}get currentOrganization(){return s(this,h,"f")}localConfig(i){i.organization&&c(this,h,i.organization,"f")}config(i){w("config %o",i),this.localConfig(i),s(this,t,"f").config(i)}resources(){return f.resources()}isApiError(i){return f.isApiError(i)}addRequestInterceptor(i,n){return s(this,t,"f").interceptors.request.use(i,n)}addResponseInterceptor(i,n){return s(this,t,"f").interceptors.response.use(i,n)}removeInterceptor(i,n){return s(this,t,"f").interceptors[i].eject(n)}addRawResponseReader(){const i={id:void 0,rawResponse:void 0};function n(a){return i.rawResponse=a==null?void 0:a.data,a}const r=this.addResponseInterceptor(n);return i.id=r,i}removeRawResponseReader(i){const n=typeof i=="number"?i:i.id;if(n)return this.removeInterceptor("response",n)}}t=new WeakMap,h=new WeakMap;const _=o=>new l(o);export default _;
|
package/lib/esm/jsonapi.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import{isResourceId as
|
1
|
+
import{isResourceId as l,isResourceType as c}from"./common";import u from"./debug";const a=u(),p=r=>{let i;r.links&&delete r.links;const t=r.data,n=r.included;return Array.isArray(t)?i=t.map(s=>e(s,n)):i=e(t,n),i},d=(r,i=[])=>i.find(t=>r.id===t.id&&r.type===t.type)||r,e=(r,i)=>{a("denormalize resource: %O, %o",r,i||{});const t=Object.assign({id:r.id,type:r.type},r.attributes);return r.relationships&&Object.keys(r.relationships).forEach(n=>{const s=r.relationships[n].data;s?Array.isArray(s)?t[n]=s.map(o=>e(d(o,i),i)):t[n]=e(d(s,i),i):s===null&&(t[n]=null)}),a("denormalized resource: %O",t),t},y=r=>{a("normalize resource: %O",r);const i={},t={};for(const s in r){if(["type","id"].includes(s))continue;const o=r[s];o&&c(o)&&o.id===null?t[s]={data:null}:o&&(l(o)||Array.isArray(o)&&l(o[0]))?t[s]={data:o}:i[s]=o}const n={type:r.type,attributes:i,relationships:t};return l(r)&&(n.id=r.id),a("normalized resource: %O",n),n};export{p as denormalize,y as normalize};
|
package/lib/esm/model.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2022 Commerce Layer Inc.
|
3
|
-
* OpenAPI schema, version 2.8.
|
3
|
+
* OpenAPI schema, version 2.8.1
|
4
4
|
**/
|
5
5
|
export type { Address, AddressCreate, AddressUpdate } from './resources/addresses';
|
6
6
|
export type { Adjustment, AdjustmentCreate, AdjustmentUpdate } from './resources/adjustments';
|