@commercelayer/sdk 5.12.5 → 5.13.1
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 +11 -2
- package/lib/cjs/api.js +4 -1
- package/lib/cjs/commercelayer.d.ts +4 -3
- package/lib/cjs/commercelayer.js +6 -1
- package/lib/cjs/config.js +3 -1
- package/lib/cjs/model.d.ts +1 -0
- package/lib/cjs/resource.d.ts +1 -1
- package/lib/cjs/resource.js +6 -0
- package/lib/cjs/resources/addresses.d.ts +3 -0
- package/lib/cjs/resources/addresses.js +4 -0
- package/lib/cjs/resources/adjustments.d.ts +5 -2
- package/lib/cjs/resources/adjustments.js +4 -0
- package/lib/cjs/resources/adyen_gateways.d.ts +3 -0
- package/lib/cjs/resources/adyen_gateways.js +4 -0
- package/lib/cjs/resources/adyen_payments.d.ts +5 -2
- package/lib/cjs/resources/adyen_payments.js +4 -0
- package/lib/cjs/resources/authorizations.d.ts +3 -0
- package/lib/cjs/resources/authorizations.js +4 -0
- package/lib/cjs/resources/avalara_accounts.d.ts +3 -0
- package/lib/cjs/resources/avalara_accounts.js +4 -0
- package/lib/cjs/resources/axerve_gateways.d.ts +4 -0
- package/lib/cjs/resources/axerve_gateways.js +4 -0
- package/lib/cjs/resources/axerve_payments.d.ts +5 -2
- package/lib/cjs/resources/axerve_payments.js +4 -0
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +3 -0
- package/lib/cjs/resources/billing_info_validation_rules.js +4 -0
- package/lib/cjs/resources/braintree_gateways.d.ts +3 -0
- package/lib/cjs/resources/braintree_gateways.js +4 -0
- package/lib/cjs/resources/braintree_payments.d.ts +5 -2
- package/lib/cjs/resources/braintree_payments.js +4 -0
- package/lib/cjs/resources/bundles.d.ts +3 -0
- package/lib/cjs/resources/bundles.js +4 -0
- package/lib/cjs/resources/captures.d.ts +3 -0
- package/lib/cjs/resources/captures.js +4 -0
- package/lib/cjs/resources/carrier_accounts.d.ts +3 -0
- package/lib/cjs/resources/carrier_accounts.js +4 -0
- package/lib/cjs/resources/checkout_com_gateways.d.ts +3 -0
- package/lib/cjs/resources/checkout_com_gateways.js +4 -0
- package/lib/cjs/resources/checkout_com_payments.d.ts +5 -2
- package/lib/cjs/resources/checkout_com_payments.js +4 -0
- package/lib/cjs/resources/cleanups.d.ts +3 -0
- package/lib/cjs/resources/cleanups.js +4 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +3 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +4 -0
- package/lib/cjs/resources/coupon_recipients.d.ts +3 -0
- package/lib/cjs/resources/coupon_recipients.js +4 -0
- package/lib/cjs/resources/coupons.d.ts +3 -0
- package/lib/cjs/resources/coupons.js +4 -0
- package/lib/cjs/resources/customer_addresses.d.ts +3 -0
- package/lib/cjs/resources/customer_addresses.js +4 -0
- package/lib/cjs/resources/customer_groups.d.ts +3 -0
- package/lib/cjs/resources/customer_groups.js +4 -0
- package/lib/cjs/resources/customer_payment_sources.d.ts +8 -13
- package/lib/cjs/resources/customer_payment_sources.js +4 -0
- package/lib/cjs/resources/customer_subscriptions.d.ts +3 -0
- package/lib/cjs/resources/customer_subscriptions.js +4 -0
- package/lib/cjs/resources/delivery_lead_times.d.ts +3 -0
- package/lib/cjs/resources/delivery_lead_times.js +4 -0
- package/lib/cjs/resources/external_gateways.d.ts +3 -0
- package/lib/cjs/resources/external_gateways.js +4 -0
- package/lib/cjs/resources/external_payments.d.ts +5 -2
- package/lib/cjs/resources/external_payments.js +4 -0
- package/lib/cjs/resources/external_promotions.d.ts +3 -0
- package/lib/cjs/resources/external_promotions.js +4 -0
- package/lib/cjs/resources/external_tax_calculators.d.ts +3 -0
- package/lib/cjs/resources/external_tax_calculators.js +4 -0
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +3 -0
- package/lib/cjs/resources/fixed_amount_promotions.js +4 -0
- package/lib/cjs/resources/fixed_price_promotions.d.ts +3 -0
- package/lib/cjs/resources/fixed_price_promotions.js +4 -0
- package/lib/cjs/resources/free_gift_promotions.d.ts +3 -0
- package/lib/cjs/resources/free_gift_promotions.js +4 -0
- package/lib/cjs/resources/free_shipping_promotions.d.ts +3 -0
- package/lib/cjs/resources/free_shipping_promotions.js +4 -0
- package/lib/cjs/resources/gift_card_recipients.d.ts +3 -0
- package/lib/cjs/resources/gift_card_recipients.js +4 -0
- package/lib/cjs/resources/gift_cards.d.ts +3 -0
- package/lib/cjs/resources/gift_cards.js +4 -0
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +3 -0
- package/lib/cjs/resources/in_stock_subscriptions.js +4 -0
- package/lib/cjs/resources/inventory_models.d.ts +3 -0
- package/lib/cjs/resources/inventory_models.js +4 -0
- package/lib/cjs/resources/inventory_return_locations.d.ts +5 -2
- package/lib/cjs/resources/inventory_return_locations.js +4 -0
- package/lib/cjs/resources/inventory_stock_locations.d.ts +5 -2
- package/lib/cjs/resources/inventory_stock_locations.js +4 -0
- package/lib/cjs/resources/klarna_gateways.d.ts +3 -0
- package/lib/cjs/resources/klarna_gateways.js +4 -0
- package/lib/cjs/resources/klarna_payments.d.ts +5 -2
- package/lib/cjs/resources/klarna_payments.js +4 -0
- package/lib/cjs/resources/manual_gateways.d.ts +3 -0
- package/lib/cjs/resources/manual_gateways.js +4 -0
- package/lib/cjs/resources/manual_tax_calculators.d.ts +3 -0
- package/lib/cjs/resources/manual_tax_calculators.js +4 -0
- package/lib/cjs/resources/markets.d.ts +3 -0
- package/lib/cjs/resources/markets.js +4 -0
- package/lib/cjs/resources/merchants.d.ts +3 -0
- package/lib/cjs/resources/merchants.js +4 -0
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +5 -2
- package/lib/cjs/resources/order_amount_promotion_rules.js +4 -0
- package/lib/cjs/resources/order_subscription_items.d.ts +3 -0
- package/lib/cjs/resources/order_subscription_items.js +4 -0
- package/lib/cjs/resources/order_subscriptions.d.ts +3 -0
- package/lib/cjs/resources/order_subscriptions.js +4 -0
- package/lib/cjs/resources/order_validation_rules.d.ts +3 -0
- package/lib/cjs/resources/order_validation_rules.js +4 -0
- package/lib/cjs/resources/orders.d.ts +8 -2
- package/lib/cjs/resources/orders.js +4 -0
- package/lib/cjs/resources/packages.d.ts +3 -0
- package/lib/cjs/resources/packages.js +4 -0
- package/lib/cjs/resources/parcel_line_items.d.ts +5 -2
- package/lib/cjs/resources/parcel_line_items.js +4 -0
- package/lib/cjs/resources/parcels.d.ts +3 -0
- package/lib/cjs/resources/parcels.js +4 -0
- package/lib/cjs/resources/payment_gateways.d.ts +3 -0
- package/lib/cjs/resources/payment_gateways.js +4 -0
- package/lib/cjs/resources/payment_methods.d.ts +3 -0
- package/lib/cjs/resources/payment_methods.js +4 -0
- package/lib/cjs/resources/paypal_gateways.d.ts +3 -0
- package/lib/cjs/resources/paypal_gateways.js +4 -0
- package/lib/cjs/resources/paypal_payments.d.ts +5 -2
- package/lib/cjs/resources/paypal_payments.js +4 -0
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +3 -0
- package/lib/cjs/resources/percentage_discount_promotions.js +4 -0
- package/lib/cjs/resources/price_frequency_tiers.d.ts +3 -0
- package/lib/cjs/resources/price_frequency_tiers.js +4 -0
- package/lib/cjs/resources/price_lists.d.ts +3 -0
- package/lib/cjs/resources/price_lists.js +4 -0
- package/lib/cjs/resources/price_tiers.d.ts +3 -0
- package/lib/cjs/resources/price_tiers.js +4 -0
- package/lib/cjs/resources/price_volume_tiers.d.ts +3 -0
- package/lib/cjs/resources/price_volume_tiers.js +4 -0
- package/lib/cjs/resources/prices.d.ts +3 -0
- package/lib/cjs/resources/prices.js +4 -0
- package/lib/cjs/resources/promotion_rules.d.ts +5 -1
- package/lib/cjs/resources/promotion_rules.js +4 -0
- package/lib/cjs/resources/promotions.d.ts +3 -0
- package/lib/cjs/resources/promotions.js +4 -0
- package/lib/cjs/resources/refunds.d.ts +3 -0
- package/lib/cjs/resources/refunds.js +4 -0
- package/lib/cjs/resources/returns.d.ts +3 -0
- package/lib/cjs/resources/returns.js +4 -0
- package/lib/cjs/resources/satispay_gateways.d.ts +3 -0
- package/lib/cjs/resources/satispay_gateways.js +4 -0
- package/lib/cjs/resources/satispay_payments.d.ts +6 -2
- package/lib/cjs/resources/satispay_payments.js +4 -0
- package/lib/cjs/resources/shipments.d.ts +3 -0
- package/lib/cjs/resources/shipments.js +4 -0
- package/lib/cjs/resources/shipping_categories.d.ts +3 -0
- package/lib/cjs/resources/shipping_categories.js +4 -0
- package/lib/cjs/resources/shipping_method_tiers.d.ts +3 -0
- package/lib/cjs/resources/shipping_method_tiers.js +4 -0
- package/lib/cjs/resources/shipping_methods.d.ts +3 -0
- package/lib/cjs/resources/shipping_methods.js +4 -0
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +3 -0
- package/lib/cjs/resources/shipping_weight_tiers.js +4 -0
- package/lib/cjs/resources/shipping_zones.d.ts +3 -0
- package/lib/cjs/resources/shipping_zones.js +4 -0
- package/lib/cjs/resources/sku_list_items.d.ts +5 -2
- package/lib/cjs/resources/sku_list_items.js +4 -0
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +3 -0
- package/lib/cjs/resources/sku_list_promotion_rules.js +4 -0
- package/lib/cjs/resources/sku_lists.d.ts +3 -0
- package/lib/cjs/resources/sku_lists.js +4 -0
- package/lib/cjs/resources/sku_options.d.ts +3 -0
- package/lib/cjs/resources/sku_options.js +4 -0
- package/lib/cjs/resources/skus.d.ts +3 -0
- package/lib/cjs/resources/skus.js +4 -0
- package/lib/cjs/resources/stock_items.d.ts +3 -0
- package/lib/cjs/resources/stock_items.js +4 -0
- package/lib/cjs/resources/stock_line_items.d.ts +5 -2
- package/lib/cjs/resources/stock_line_items.js +4 -0
- package/lib/cjs/resources/stock_locations.d.ts +3 -0
- package/lib/cjs/resources/stock_locations.js +4 -0
- package/lib/cjs/resources/stock_transfers.d.ts +3 -0
- package/lib/cjs/resources/stock_transfers.js +4 -0
- package/lib/cjs/resources/stripe_gateways.d.ts +3 -0
- package/lib/cjs/resources/stripe_gateways.js +4 -0
- package/lib/cjs/resources/stripe_payments.d.ts +8 -2
- package/lib/cjs/resources/stripe_payments.js +4 -0
- package/lib/cjs/resources/tax_calculators.d.ts +3 -0
- package/lib/cjs/resources/tax_calculators.js +4 -0
- package/lib/cjs/resources/tax_categories.d.ts +3 -0
- package/lib/cjs/resources/tax_categories.js +4 -0
- package/lib/cjs/resources/tax_rules.d.ts +5 -2
- package/lib/cjs/resources/tax_rules.js +4 -0
- package/lib/cjs/resources/taxjar_accounts.d.ts +3 -0
- package/lib/cjs/resources/taxjar_accounts.js +4 -0
- package/lib/cjs/resources/transactions.d.ts +3 -0
- package/lib/cjs/resources/transactions.js +4 -0
- package/lib/cjs/resources/versions.d.ts +22 -0
- package/lib/cjs/resources/versions.js +16 -0
- package/lib/cjs/resources/voids.d.ts +3 -0
- package/lib/cjs/resources/voids.js +4 -0
- package/lib/cjs/resources/webhooks.d.ts +3 -0
- package/lib/cjs/resources/webhooks.js +4 -0
- package/lib/cjs/resources/wire_transfers.d.ts +5 -2
- package/lib/cjs/resources/wire_transfers.js +4 -0
- package/lib/cjs/util.d.ts +1 -1
- package/lib/esm/api.d.ts +11 -2
- package/lib/esm/api.js +2 -0
- package/lib/esm/commercelayer.d.ts +4 -3
- package/lib/esm/commercelayer.js +6 -1
- package/lib/esm/config.js +3 -1
- package/lib/esm/model.d.ts +1 -0
- package/lib/esm/resource.d.ts +1 -1
- package/lib/esm/resource.js +6 -0
- package/lib/esm/resources/addresses.d.ts +3 -0
- package/lib/esm/resources/addresses.js +4 -0
- package/lib/esm/resources/adjustments.d.ts +5 -2
- package/lib/esm/resources/adjustments.js +4 -0
- package/lib/esm/resources/adyen_gateways.d.ts +3 -0
- package/lib/esm/resources/adyen_gateways.js +4 -0
- package/lib/esm/resources/adyen_payments.d.ts +5 -2
- package/lib/esm/resources/adyen_payments.js +4 -0
- package/lib/esm/resources/authorizations.d.ts +3 -0
- package/lib/esm/resources/authorizations.js +4 -0
- package/lib/esm/resources/avalara_accounts.d.ts +3 -0
- package/lib/esm/resources/avalara_accounts.js +4 -0
- package/lib/esm/resources/axerve_gateways.d.ts +4 -0
- package/lib/esm/resources/axerve_gateways.js +4 -0
- package/lib/esm/resources/axerve_payments.d.ts +5 -2
- package/lib/esm/resources/axerve_payments.js +4 -0
- package/lib/esm/resources/billing_info_validation_rules.d.ts +3 -0
- package/lib/esm/resources/billing_info_validation_rules.js +4 -0
- package/lib/esm/resources/braintree_gateways.d.ts +3 -0
- package/lib/esm/resources/braintree_gateways.js +4 -0
- package/lib/esm/resources/braintree_payments.d.ts +5 -2
- package/lib/esm/resources/braintree_payments.js +4 -0
- package/lib/esm/resources/bundles.d.ts +3 -0
- package/lib/esm/resources/bundles.js +4 -0
- package/lib/esm/resources/captures.d.ts +3 -0
- package/lib/esm/resources/captures.js +4 -0
- package/lib/esm/resources/carrier_accounts.d.ts +3 -0
- package/lib/esm/resources/carrier_accounts.js +4 -0
- package/lib/esm/resources/checkout_com_gateways.d.ts +3 -0
- package/lib/esm/resources/checkout_com_gateways.js +4 -0
- package/lib/esm/resources/checkout_com_payments.d.ts +5 -2
- package/lib/esm/resources/checkout_com_payments.js +4 -0
- package/lib/esm/resources/cleanups.d.ts +3 -0
- package/lib/esm/resources/cleanups.js +4 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +3 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.js +4 -0
- package/lib/esm/resources/coupon_recipients.d.ts +3 -0
- package/lib/esm/resources/coupon_recipients.js +4 -0
- package/lib/esm/resources/coupons.d.ts +3 -0
- package/lib/esm/resources/coupons.js +4 -0
- package/lib/esm/resources/customer_addresses.d.ts +3 -0
- package/lib/esm/resources/customer_addresses.js +4 -0
- package/lib/esm/resources/customer_groups.d.ts +3 -0
- package/lib/esm/resources/customer_groups.js +4 -0
- package/lib/esm/resources/customer_payment_sources.d.ts +8 -13
- package/lib/esm/resources/customer_payment_sources.js +4 -0
- package/lib/esm/resources/customer_subscriptions.d.ts +3 -0
- package/lib/esm/resources/customer_subscriptions.js +4 -0
- package/lib/esm/resources/delivery_lead_times.d.ts +3 -0
- package/lib/esm/resources/delivery_lead_times.js +4 -0
- package/lib/esm/resources/external_gateways.d.ts +3 -0
- package/lib/esm/resources/external_gateways.js +4 -0
- package/lib/esm/resources/external_payments.d.ts +5 -2
- package/lib/esm/resources/external_payments.js +4 -0
- package/lib/esm/resources/external_promotions.d.ts +3 -0
- package/lib/esm/resources/external_promotions.js +4 -0
- package/lib/esm/resources/external_tax_calculators.d.ts +3 -0
- package/lib/esm/resources/external_tax_calculators.js +4 -0
- package/lib/esm/resources/fixed_amount_promotions.d.ts +3 -0
- package/lib/esm/resources/fixed_amount_promotions.js +4 -0
- package/lib/esm/resources/fixed_price_promotions.d.ts +3 -0
- package/lib/esm/resources/fixed_price_promotions.js +4 -0
- package/lib/esm/resources/free_gift_promotions.d.ts +3 -0
- package/lib/esm/resources/free_gift_promotions.js +4 -0
- package/lib/esm/resources/free_shipping_promotions.d.ts +3 -0
- package/lib/esm/resources/free_shipping_promotions.js +4 -0
- package/lib/esm/resources/gift_card_recipients.d.ts +3 -0
- package/lib/esm/resources/gift_card_recipients.js +4 -0
- package/lib/esm/resources/gift_cards.d.ts +3 -0
- package/lib/esm/resources/gift_cards.js +4 -0
- package/lib/esm/resources/in_stock_subscriptions.d.ts +3 -0
- package/lib/esm/resources/in_stock_subscriptions.js +4 -0
- package/lib/esm/resources/inventory_models.d.ts +3 -0
- package/lib/esm/resources/inventory_models.js +4 -0
- package/lib/esm/resources/inventory_return_locations.d.ts +5 -2
- package/lib/esm/resources/inventory_return_locations.js +4 -0
- package/lib/esm/resources/inventory_stock_locations.d.ts +5 -2
- package/lib/esm/resources/inventory_stock_locations.js +4 -0
- package/lib/esm/resources/klarna_gateways.d.ts +3 -0
- package/lib/esm/resources/klarna_gateways.js +4 -0
- package/lib/esm/resources/klarna_payments.d.ts +5 -2
- package/lib/esm/resources/klarna_payments.js +4 -0
- package/lib/esm/resources/manual_gateways.d.ts +3 -0
- package/lib/esm/resources/manual_gateways.js +4 -0
- package/lib/esm/resources/manual_tax_calculators.d.ts +3 -0
- package/lib/esm/resources/manual_tax_calculators.js +4 -0
- package/lib/esm/resources/markets.d.ts +3 -0
- package/lib/esm/resources/markets.js +4 -0
- package/lib/esm/resources/merchants.d.ts +3 -0
- package/lib/esm/resources/merchants.js +4 -0
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +5 -2
- package/lib/esm/resources/order_amount_promotion_rules.js +4 -0
- package/lib/esm/resources/order_subscription_items.d.ts +3 -0
- package/lib/esm/resources/order_subscription_items.js +4 -0
- package/lib/esm/resources/order_subscriptions.d.ts +3 -0
- package/lib/esm/resources/order_subscriptions.js +4 -0
- package/lib/esm/resources/order_validation_rules.d.ts +3 -0
- package/lib/esm/resources/order_validation_rules.js +4 -0
- package/lib/esm/resources/orders.d.ts +8 -2
- package/lib/esm/resources/orders.js +4 -0
- package/lib/esm/resources/packages.d.ts +3 -0
- package/lib/esm/resources/packages.js +4 -0
- package/lib/esm/resources/parcel_line_items.d.ts +5 -2
- package/lib/esm/resources/parcel_line_items.js +4 -0
- package/lib/esm/resources/parcels.d.ts +3 -0
- package/lib/esm/resources/parcels.js +4 -0
- package/lib/esm/resources/payment_gateways.d.ts +3 -0
- package/lib/esm/resources/payment_gateways.js +4 -0
- package/lib/esm/resources/payment_methods.d.ts +3 -0
- package/lib/esm/resources/payment_methods.js +4 -0
- package/lib/esm/resources/paypal_gateways.d.ts +3 -0
- package/lib/esm/resources/paypal_gateways.js +4 -0
- package/lib/esm/resources/paypal_payments.d.ts +5 -2
- package/lib/esm/resources/paypal_payments.js +4 -0
- package/lib/esm/resources/percentage_discount_promotions.d.ts +3 -0
- package/lib/esm/resources/percentage_discount_promotions.js +4 -0
- package/lib/esm/resources/price_frequency_tiers.d.ts +3 -0
- package/lib/esm/resources/price_frequency_tiers.js +4 -0
- package/lib/esm/resources/price_lists.d.ts +3 -0
- package/lib/esm/resources/price_lists.js +4 -0
- package/lib/esm/resources/price_tiers.d.ts +3 -0
- package/lib/esm/resources/price_tiers.js +4 -0
- package/lib/esm/resources/price_volume_tiers.d.ts +3 -0
- package/lib/esm/resources/price_volume_tiers.js +4 -0
- package/lib/esm/resources/prices.d.ts +3 -0
- package/lib/esm/resources/prices.js +4 -0
- package/lib/esm/resources/promotion_rules.d.ts +5 -1
- package/lib/esm/resources/promotion_rules.js +4 -0
- package/lib/esm/resources/promotions.d.ts +3 -0
- package/lib/esm/resources/promotions.js +4 -0
- package/lib/esm/resources/refunds.d.ts +3 -0
- package/lib/esm/resources/refunds.js +4 -0
- package/lib/esm/resources/returns.d.ts +3 -0
- package/lib/esm/resources/returns.js +4 -0
- package/lib/esm/resources/satispay_gateways.d.ts +3 -0
- package/lib/esm/resources/satispay_gateways.js +4 -0
- package/lib/esm/resources/satispay_payments.d.ts +6 -2
- package/lib/esm/resources/satispay_payments.js +4 -0
- package/lib/esm/resources/shipments.d.ts +3 -0
- package/lib/esm/resources/shipments.js +4 -0
- package/lib/esm/resources/shipping_categories.d.ts +3 -0
- package/lib/esm/resources/shipping_categories.js +4 -0
- package/lib/esm/resources/shipping_method_tiers.d.ts +3 -0
- package/lib/esm/resources/shipping_method_tiers.js +4 -0
- package/lib/esm/resources/shipping_methods.d.ts +3 -0
- package/lib/esm/resources/shipping_methods.js +4 -0
- package/lib/esm/resources/shipping_weight_tiers.d.ts +3 -0
- package/lib/esm/resources/shipping_weight_tiers.js +4 -0
- package/lib/esm/resources/shipping_zones.d.ts +3 -0
- package/lib/esm/resources/shipping_zones.js +4 -0
- package/lib/esm/resources/sku_list_items.d.ts +5 -2
- package/lib/esm/resources/sku_list_items.js +4 -0
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +3 -0
- package/lib/esm/resources/sku_list_promotion_rules.js +4 -0
- package/lib/esm/resources/sku_lists.d.ts +3 -0
- package/lib/esm/resources/sku_lists.js +4 -0
- package/lib/esm/resources/sku_options.d.ts +3 -0
- package/lib/esm/resources/sku_options.js +4 -0
- package/lib/esm/resources/skus.d.ts +3 -0
- package/lib/esm/resources/skus.js +4 -0
- package/lib/esm/resources/stock_items.d.ts +3 -0
- package/lib/esm/resources/stock_items.js +4 -0
- package/lib/esm/resources/stock_line_items.d.ts +5 -2
- package/lib/esm/resources/stock_line_items.js +4 -0
- package/lib/esm/resources/stock_locations.d.ts +3 -0
- package/lib/esm/resources/stock_locations.js +4 -0
- package/lib/esm/resources/stock_transfers.d.ts +3 -0
- package/lib/esm/resources/stock_transfers.js +4 -0
- package/lib/esm/resources/stripe_gateways.d.ts +3 -0
- package/lib/esm/resources/stripe_gateways.js +4 -0
- package/lib/esm/resources/stripe_payments.d.ts +8 -2
- package/lib/esm/resources/stripe_payments.js +4 -0
- package/lib/esm/resources/tax_calculators.d.ts +3 -0
- package/lib/esm/resources/tax_calculators.js +4 -0
- package/lib/esm/resources/tax_categories.d.ts +3 -0
- package/lib/esm/resources/tax_categories.js +4 -0
- package/lib/esm/resources/tax_rules.d.ts +5 -2
- package/lib/esm/resources/tax_rules.js +4 -0
- package/lib/esm/resources/taxjar_accounts.d.ts +3 -0
- package/lib/esm/resources/taxjar_accounts.js +4 -0
- package/lib/esm/resources/transactions.d.ts +3 -0
- package/lib/esm/resources/transactions.js +4 -0
- package/lib/esm/resources/versions.d.ts +22 -0
- package/lib/esm/resources/versions.js +14 -0
- package/lib/esm/resources/voids.d.ts +3 -0
- package/lib/esm/resources/voids.js +4 -0
- package/lib/esm/resources/webhooks.d.ts +3 -0
- package/lib/esm/resources/webhooks.js +4 -0
- package/lib/esm/resources/wire_transfers.d.ts +5 -2
- package/lib/esm/resources/wire_transfers.js +4 -0
- package/lib/esm/util.d.ts +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -11
@@ -43,6 +43,10 @@ class PercentageDiscountPromotions extends resource_1.ApiResource {
|
|
43
43
|
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
44
44
|
return this.resources.fetch({ type: 'tags' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/tags`, params, options);
|
45
45
|
}
|
46
|
+
async versions(percentageDiscountPromotionId, params, options) {
|
47
|
+
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
48
|
+
return this.resources.fetch({ type: 'versions' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/versions`, params, options);
|
49
|
+
}
|
46
50
|
async skus(percentageDiscountPromotionId, params, options) {
|
47
51
|
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
48
52
|
return this.resources.fetch({ type: 'skus' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/skus`, params, options);
|
@@ -3,6 +3,7 @@ import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesCon
|
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Price, PriceType } from './prices';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
import type { Event } from './events';
|
7
8
|
type PriceFrequencyTierType = 'price_frequency_tiers';
|
8
9
|
type PriceFrequencyTierRel = ResourceRel & {
|
@@ -20,6 +21,7 @@ interface PriceFrequencyTier extends Resource {
|
|
20
21
|
formatted_price_amount?: string | null;
|
21
22
|
price?: Price | null;
|
22
23
|
attachments?: Attachment[] | null;
|
24
|
+
versions?: Version[] | null;
|
23
25
|
events?: Event[] | null;
|
24
26
|
}
|
25
27
|
interface PriceFrequencyTierCreate extends ResourceCreate {
|
@@ -41,6 +43,7 @@ declare class PriceFrequencyTiers extends ApiResource<PriceFrequencyTier> {
|
|
41
43
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
42
44
|
price(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
|
43
45
|
attachments(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
46
|
+
versions(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
44
47
|
events(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
45
48
|
isPriceFrequencyTier(resource: any): resource is PriceFrequencyTier;
|
46
49
|
relationship(id: string | ResourceId | null): PriceFrequencyTierRel;
|
@@ -19,6 +19,10 @@ class PriceFrequencyTiers extends resource_1.ApiResource {
|
|
19
19
|
const _priceFrequencyTierId = priceFrequencyTierId.id || priceFrequencyTierId;
|
20
20
|
return this.resources.fetch({ type: 'attachments' }, `price_frequency_tiers/${_priceFrequencyTierId}/attachments`, params, options);
|
21
21
|
}
|
22
|
+
async versions(priceFrequencyTierId, params, options) {
|
23
|
+
const _priceFrequencyTierId = priceFrequencyTierId.id || priceFrequencyTierId;
|
24
|
+
return this.resources.fetch({ type: 'versions' }, `price_frequency_tiers/${_priceFrequencyTierId}/versions`, params, options);
|
25
|
+
}
|
22
26
|
async events(priceFrequencyTierId, params, options) {
|
23
27
|
const _priceFrequencyTierId = priceFrequencyTierId.id || priceFrequencyTierId;
|
24
28
|
return this.resources.fetch({ type: 'events' }, `price_frequency_tiers/${_priceFrequencyTierId}/events`, params, options);
|
@@ -3,6 +3,7 @@ import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesCon
|
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Price } from './prices';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
type PriceListType = 'price_lists';
|
7
8
|
type PriceListRel = ResourceRel & {
|
8
9
|
type: PriceListType;
|
@@ -14,6 +15,7 @@ interface PriceList extends Resource {
|
|
14
15
|
tax_included?: boolean | null;
|
15
16
|
prices?: Price[] | null;
|
16
17
|
attachments?: Attachment[] | null;
|
18
|
+
versions?: Version[] | null;
|
17
19
|
}
|
18
20
|
interface PriceListCreate extends ResourceCreate {
|
19
21
|
name: string;
|
@@ -32,6 +34,7 @@ declare class PriceLists extends ApiResource<PriceList> {
|
|
32
34
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
33
35
|
prices(priceListId: string | PriceList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Price>>;
|
34
36
|
attachments(priceListId: string | PriceList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
37
|
+
versions(priceListId: string | PriceList, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
35
38
|
isPriceList(resource: any): resource is PriceList;
|
36
39
|
relationship(id: string | ResourceId | null): PriceListRel;
|
37
40
|
type(): PriceListType;
|
@@ -19,6 +19,10 @@ class PriceLists extends resource_1.ApiResource {
|
|
19
19
|
const _priceListId = priceListId.id || priceListId;
|
20
20
|
return this.resources.fetch({ type: 'attachments' }, `price_lists/${_priceListId}/attachments`, params, options);
|
21
21
|
}
|
22
|
+
async versions(priceListId, params, options) {
|
23
|
+
const _priceListId = priceListId.id || priceListId;
|
24
|
+
return this.resources.fetch({ type: 'versions' }, `price_lists/${_priceListId}/versions`, params, options);
|
25
|
+
}
|
22
26
|
isPriceList(resource) {
|
23
27
|
return resource.type && (resource.type === PriceLists.TYPE);
|
24
28
|
}
|
@@ -3,6 +3,7 @@ import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse }
|
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Price } from './prices';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
type PriceTierType = 'price_tiers';
|
7
8
|
type PriceTierRel = ResourceRel & {
|
8
9
|
type: PriceTierType;
|
@@ -16,11 +17,13 @@ interface PriceTier extends Resource {
|
|
16
17
|
formatted_price_amount?: string | null;
|
17
18
|
price?: Price | null;
|
18
19
|
attachments?: Attachment[] | null;
|
20
|
+
versions?: Version[] | null;
|
19
21
|
}
|
20
22
|
declare class PriceTiers extends ApiResource<PriceTier> {
|
21
23
|
static readonly TYPE: PriceTierType;
|
22
24
|
price(priceTierId: string | PriceTier, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
|
23
25
|
attachments(priceTierId: string | PriceTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
26
|
+
versions(priceTierId: string | PriceTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
24
27
|
isPriceTier(resource: any): resource is PriceTier;
|
25
28
|
relationship(id: string | ResourceId | null): PriceTierRel;
|
26
29
|
type(): PriceTierType;
|
@@ -10,6 +10,10 @@ class PriceTiers extends resource_1.ApiResource {
|
|
10
10
|
const _priceTierId = priceTierId.id || priceTierId;
|
11
11
|
return this.resources.fetch({ type: 'attachments' }, `price_tiers/${_priceTierId}/attachments`, params, options);
|
12
12
|
}
|
13
|
+
async versions(priceTierId, params, options) {
|
14
|
+
const _priceTierId = priceTierId.id || priceTierId;
|
15
|
+
return this.resources.fetch({ type: 'versions' }, `price_tiers/${_priceTierId}/versions`, params, options);
|
16
|
+
}
|
13
17
|
isPriceTier(resource) {
|
14
18
|
return resource.type && (resource.type === PriceTiers.TYPE);
|
15
19
|
}
|
@@ -3,6 +3,7 @@ import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesCon
|
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Price, PriceType } from './prices';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
import type { Event } from './events';
|
7
8
|
type PriceVolumeTierType = 'price_volume_tiers';
|
8
9
|
type PriceVolumeTierRel = ResourceRel & {
|
@@ -20,6 +21,7 @@ interface PriceVolumeTier extends Resource {
|
|
20
21
|
formatted_price_amount?: string | null;
|
21
22
|
price?: Price | null;
|
22
23
|
attachments?: Attachment[] | null;
|
24
|
+
versions?: Version[] | null;
|
23
25
|
events?: Event[] | null;
|
24
26
|
}
|
25
27
|
interface PriceVolumeTierCreate extends ResourceCreate {
|
@@ -41,6 +43,7 @@ declare class PriceVolumeTiers extends ApiResource<PriceVolumeTier> {
|
|
41
43
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
42
44
|
price(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
|
43
45
|
attachments(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
46
|
+
versions(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
44
47
|
events(priceVolumeTierId: string | PriceVolumeTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
45
48
|
isPriceVolumeTier(resource: any): resource is PriceVolumeTier;
|
46
49
|
relationship(id: string | ResourceId | null): PriceVolumeTierRel;
|
@@ -19,6 +19,10 @@ class PriceVolumeTiers extends resource_1.ApiResource {
|
|
19
19
|
const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
|
20
20
|
return this.resources.fetch({ type: 'attachments' }, `price_volume_tiers/${_priceVolumeTierId}/attachments`, params, options);
|
21
21
|
}
|
22
|
+
async versions(priceVolumeTierId, params, options) {
|
23
|
+
const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
|
24
|
+
return this.resources.fetch({ type: 'versions' }, `price_volume_tiers/${_priceVolumeTierId}/versions`, params, options);
|
25
|
+
}
|
22
26
|
async events(priceVolumeTierId, params, options) {
|
23
27
|
const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
|
24
28
|
return this.resources.fetch({ type: 'events' }, `price_volume_tiers/${_priceVolumeTierId}/events`, params, options);
|
@@ -7,6 +7,7 @@ import type { PriceTier, PriceTierType } from './price_tiers';
|
|
7
7
|
import type { PriceVolumeTier } from './price_volume_tiers';
|
8
8
|
import type { PriceFrequencyTier } from './price_frequency_tiers';
|
9
9
|
import type { Attachment } from './attachments';
|
10
|
+
import type { Version } from './versions';
|
10
11
|
type PriceType = 'prices';
|
11
12
|
type PriceRel = ResourceRel & {
|
12
13
|
type: PriceType;
|
@@ -36,6 +37,7 @@ interface Price extends Resource {
|
|
36
37
|
price_volume_tiers?: PriceVolumeTier[] | null;
|
37
38
|
price_frequency_tiers?: PriceFrequencyTier[] | null;
|
38
39
|
attachments?: Attachment[] | null;
|
40
|
+
versions?: Version[] | null;
|
39
41
|
}
|
40
42
|
interface PriceCreate extends ResourceCreate {
|
41
43
|
sku_code?: string | null;
|
@@ -64,6 +66,7 @@ declare class Prices extends ApiResource<Price> {
|
|
64
66
|
price_volume_tiers(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PriceVolumeTier>>;
|
65
67
|
price_frequency_tiers(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PriceFrequencyTier>>;
|
66
68
|
attachments(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
69
|
+
versions(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
67
70
|
isPrice(resource: any): resource is Price;
|
68
71
|
relationship(id: string | ResourceId | null): PriceRel;
|
69
72
|
type(): PriceType;
|
@@ -35,6 +35,10 @@ class Prices extends resource_1.ApiResource {
|
|
35
35
|
const _priceId = priceId.id || priceId;
|
36
36
|
return this.resources.fetch({ type: 'attachments' }, `prices/${_priceId}/attachments`, params, options);
|
37
37
|
}
|
38
|
+
async versions(priceId, params, options) {
|
39
|
+
const _priceId = priceId.id || priceId;
|
40
|
+
return this.resources.fetch({ type: 'versions' }, `prices/${_priceId}/versions`, params, options);
|
41
|
+
}
|
38
42
|
isPrice(resource) {
|
39
43
|
return resource.type && (resource.type === Prices.TYPE);
|
40
44
|
}
|
@@ -1,11 +1,13 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
|
-
import type { Resource, ResourceId, ResourceRel } from '../resource';
|
2
|
+
import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
|
+
import type { QueryParamsList } from '../query';
|
3
4
|
import type { PercentageDiscountPromotion } from './percentage_discount_promotions';
|
4
5
|
import type { FreeShippingPromotion } from './free_shipping_promotions';
|
5
6
|
import type { FreeGiftPromotion } from './free_gift_promotions';
|
6
7
|
import type { FixedPricePromotion } from './fixed_price_promotions';
|
7
8
|
import type { ExternalPromotion } from './external_promotions';
|
8
9
|
import type { FixedAmountPromotion } from './fixed_amount_promotions';
|
10
|
+
import type { Version } from './versions';
|
9
11
|
type PromotionRuleType = 'promotion_rules';
|
10
12
|
type PromotionRuleRel = ResourceRel & {
|
11
13
|
type: PromotionRuleType;
|
@@ -13,9 +15,11 @@ type PromotionRuleRel = ResourceRel & {
|
|
13
15
|
interface PromotionRule extends Resource {
|
14
16
|
readonly type: PromotionRuleType;
|
15
17
|
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | null;
|
18
|
+
versions?: Version[] | null;
|
16
19
|
}
|
17
20
|
declare class PromotionRules extends ApiResource<PromotionRule> {
|
18
21
|
static readonly TYPE: PromotionRuleType;
|
22
|
+
versions(promotionRuleId: string | PromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
19
23
|
isPromotionRule(resource: any): resource is PromotionRule;
|
20
24
|
relationship(id: string | ResourceId | null): PromotionRuleRel;
|
21
25
|
type(): PromotionRuleType;
|
@@ -2,6 +2,10 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class PromotionRules extends resource_1.ApiResource {
|
5
|
+
async versions(promotionRuleId, params, options) {
|
6
|
+
const _promotionRuleId = promotionRuleId.id || promotionRuleId;
|
7
|
+
return this.resources.fetch({ type: 'versions' }, `promotion_rules/${_promotionRuleId}/versions`, params, options);
|
8
|
+
}
|
5
9
|
isPromotionRule(resource) {
|
6
10
|
return resource.type && (resource.type === PromotionRules.TYPE);
|
7
11
|
}
|
@@ -10,6 +10,7 @@ import type { SkuList } from './sku_lists';
|
|
10
10
|
import type { Attachment } from './attachments';
|
11
11
|
import type { Event } from './events';
|
12
12
|
import type { Tag } from './tags';
|
13
|
+
import type { Version } from './versions';
|
13
14
|
type PromotionType = 'promotions';
|
14
15
|
type PromotionRel = ResourceRel & {
|
15
16
|
type: PromotionType;
|
@@ -32,6 +33,7 @@ interface Promotion extends Resource {
|
|
32
33
|
attachments?: Attachment[] | null;
|
33
34
|
events?: Event[] | null;
|
34
35
|
tags?: Tag[] | null;
|
36
|
+
versions?: Version[] | null;
|
35
37
|
}
|
36
38
|
declare class Promotions extends ApiResource<Promotion> {
|
37
39
|
static readonly TYPE: PromotionType;
|
@@ -43,6 +45,7 @@ declare class Promotions extends ApiResource<Promotion> {
|
|
43
45
|
attachments(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
44
46
|
events(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
45
47
|
tags(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
48
|
+
versions(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
46
49
|
isPromotion(resource: any): resource is Promotion;
|
47
50
|
relationship(id: string | ResourceId | null): PromotionRel;
|
48
51
|
type(): PromotionType;
|
@@ -34,6 +34,10 @@ class Promotions extends resource_1.ApiResource {
|
|
34
34
|
const _promotionId = promotionId.id || promotionId;
|
35
35
|
return this.resources.fetch({ type: 'tags' }, `promotions/${_promotionId}/tags`, params, options);
|
36
36
|
}
|
37
|
+
async versions(promotionId, params, options) {
|
38
|
+
const _promotionId = promotionId.id || promotionId;
|
39
|
+
return this.resources.fetch({ type: 'versions' }, `promotions/${_promotionId}/versions`, params, options);
|
40
|
+
}
|
37
41
|
isPromotion(resource) {
|
38
42
|
return resource.type && (resource.type === Promotions.TYPE);
|
39
43
|
}
|
@@ -3,6 +3,7 @@ import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse }
|
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Order } from './orders';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
import type { Capture } from './captures';
|
7
8
|
import type { Event } from './events';
|
8
9
|
type RefundType = 'refunds';
|
@@ -24,6 +25,7 @@ interface Refund extends Resource {
|
|
24
25
|
gateway_transaction_id?: string | null;
|
25
26
|
order?: Order | null;
|
26
27
|
attachments?: Attachment[] | null;
|
28
|
+
versions?: Version[] | null;
|
27
29
|
reference_capture?: Capture | null;
|
28
30
|
events?: Event[] | null;
|
29
31
|
}
|
@@ -31,6 +33,7 @@ declare class Refunds extends ApiResource<Refund> {
|
|
31
33
|
static readonly TYPE: RefundType;
|
32
34
|
order(refundId: string | Refund, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
33
35
|
attachments(refundId: string | Refund, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
36
|
+
versions(refundId: string | Refund, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
34
37
|
reference_capture(refundId: string | Refund, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
|
35
38
|
events(refundId: string | Refund, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
36
39
|
isRefund(resource: any): resource is Refund;
|
@@ -10,6 +10,10 @@ class Refunds extends resource_1.ApiResource {
|
|
10
10
|
const _refundId = refundId.id || refundId;
|
11
11
|
return this.resources.fetch({ type: 'attachments' }, `refunds/${_refundId}/attachments`, params, options);
|
12
12
|
}
|
13
|
+
async versions(refundId, params, options) {
|
14
|
+
const _refundId = refundId.id || refundId;
|
15
|
+
return this.resources.fetch({ type: 'versions' }, `refunds/${_refundId}/versions`, params, options);
|
16
|
+
}
|
13
17
|
async reference_capture(refundId, params, options) {
|
14
18
|
const _refundId = refundId.id || refundId;
|
15
19
|
return this.resources.fetch({ type: 'captures' }, `refunds/${_refundId}/reference_capture`, params, options);
|
@@ -9,6 +9,7 @@ import type { ReturnLineItem } from './return_line_items';
|
|
9
9
|
import type { Attachment } from './attachments';
|
10
10
|
import type { Event } from './events';
|
11
11
|
import type { Tag, TagType } from './tags';
|
12
|
+
import type { Version } from './versions';
|
12
13
|
type ReturnType = 'returns';
|
13
14
|
type ReturnRel = ResourceRel & {
|
14
15
|
type: ReturnType;
|
@@ -43,6 +44,7 @@ interface Return extends Resource {
|
|
43
44
|
attachments?: Attachment[] | null;
|
44
45
|
events?: Event[] | null;
|
45
46
|
tags?: Tag[] | null;
|
47
|
+
versions?: Version[] | null;
|
46
48
|
}
|
47
49
|
interface ReturnCreate extends ResourceCreate {
|
48
50
|
order: OrderRel;
|
@@ -76,6 +78,7 @@ declare class Returns extends ApiResource<Return> {
|
|
76
78
|
attachments(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
77
79
|
events(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
78
80
|
tags(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
81
|
+
versions(returnId: string | Return, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
79
82
|
_request(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Return>;
|
80
83
|
_approve(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Return>;
|
81
84
|
_cancel(id: string | Return, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Return>;
|
@@ -47,6 +47,10 @@ class Returns extends resource_1.ApiResource {
|
|
47
47
|
const _returnId = returnId.id || returnId;
|
48
48
|
return this.resources.fetch({ type: 'tags' }, `returns/${_returnId}/tags`, params, options);
|
49
49
|
}
|
50
|
+
async versions(returnId, params, options) {
|
51
|
+
const _returnId = returnId.id || returnId;
|
52
|
+
return this.resources.fetch({ type: 'versions' }, `returns/${_returnId}/versions`, params, options);
|
53
|
+
}
|
50
54
|
async _request(id, params, options) {
|
51
55
|
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: Returns.TYPE, _request: true }, params, options);
|
52
56
|
}
|
@@ -2,6 +2,7 @@ import { ApiResource } from '../resource';
|
|
2
2
|
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { PaymentMethod } from './payment_methods';
|
5
|
+
import type { Version } from './versions';
|
5
6
|
import type { SatispayPayment, SatispayPaymentType } from './satispay_payments';
|
6
7
|
type SatispayGatewayType = 'satispay_gateways';
|
7
8
|
type SatispayGatewayRel = ResourceRel & {
|
@@ -17,6 +18,7 @@ interface SatispayGateway extends Resource {
|
|
17
18
|
key_id: string;
|
18
19
|
webhook_endpoint_url?: string | null;
|
19
20
|
payment_methods?: PaymentMethod[] | null;
|
21
|
+
versions?: Version[] | null;
|
20
22
|
satispay_payments?: SatispayPayment[] | null;
|
21
23
|
}
|
22
24
|
interface SatispayGatewayCreate extends ResourceCreate {
|
@@ -34,6 +36,7 @@ declare class SatispayGateways extends ApiResource<SatispayGateway> {
|
|
34
36
|
update(resource: SatispayGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SatispayGateway>;
|
35
37
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
36
38
|
payment_methods(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
39
|
+
versions(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
37
40
|
satispay_payments(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SatispayPayment>>;
|
38
41
|
isSatispayGateway(resource: any): resource is SatispayGateway;
|
39
42
|
relationship(id: string | ResourceId | null): SatispayGatewayRel;
|
@@ -15,6 +15,10 @@ class SatispayGateways extends resource_1.ApiResource {
|
|
15
15
|
const _satispayGatewayId = satispayGatewayId.id || satispayGatewayId;
|
16
16
|
return this.resources.fetch({ type: 'payment_methods' }, `satispay_gateways/${_satispayGatewayId}/payment_methods`, params, options);
|
17
17
|
}
|
18
|
+
async versions(satispayGatewayId, params, options) {
|
19
|
+
const _satispayGatewayId = satispayGatewayId.id || satispayGatewayId;
|
20
|
+
return this.resources.fetch({ type: 'versions' }, `satispay_gateways/${_satispayGatewayId}/versions`, params, options);
|
21
|
+
}
|
18
22
|
async satispay_payments(satispayGatewayId, params, options) {
|
19
23
|
const _satispayGatewayId = satispayGatewayId.id || satispayGatewayId;
|
20
24
|
return this.resources.fetch({ type: 'satispay_payments' }, `satispay_gateways/${_satispayGatewayId}/satispay_payments`, params, options);
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
|
-
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
|
3
|
-
import type { QueryParamsRetrieve } from '../query';
|
2
|
+
import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
|
3
|
+
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Order, OrderType } from './orders';
|
5
5
|
import type { PaymentGateway } from './payment_gateways';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
type SatispayPaymentType = 'satispay_payments';
|
7
8
|
type SatispayPaymentRel = ResourceRel & {
|
8
9
|
type: SatispayPaymentType;
|
@@ -14,6 +15,7 @@ interface SatispayPayment extends Resource {
|
|
14
15
|
readonly type: SatispayPaymentType;
|
15
16
|
payment_id?: string | null;
|
16
17
|
flow?: string | null;
|
18
|
+
status?: string | null;
|
17
19
|
redirect_url?: string | null;
|
18
20
|
payment_url?: string | null;
|
19
21
|
intent_amount_cents: number;
|
@@ -22,6 +24,7 @@ interface SatispayPayment extends Resource {
|
|
22
24
|
payment_response?: Record<string, any> | null;
|
23
25
|
order?: Order | null;
|
24
26
|
payment_gateway?: PaymentGateway | null;
|
27
|
+
versions?: Version[] | null;
|
25
28
|
}
|
26
29
|
interface SatispayPaymentCreate extends ResourceCreate {
|
27
30
|
flow?: string | null;
|
@@ -40,6 +43,7 @@ declare class SatispayPayments extends ApiResource<SatispayPayment> {
|
|
40
43
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
41
44
|
order(satispayPaymentId: string | SatispayPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
42
45
|
payment_gateway(satispayPaymentId: string | SatispayPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
46
|
+
versions(satispayPaymentId: string | SatispayPayment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
43
47
|
_refresh(id: string | SatispayPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SatispayPayment>;
|
44
48
|
isSatispayPayment(resource: any): resource is SatispayPayment;
|
45
49
|
relationship(id: string | ResourceId | null): SatispayPaymentRel;
|
@@ -19,6 +19,10 @@ class SatispayPayments extends resource_1.ApiResource {
|
|
19
19
|
const _satispayPaymentId = satispayPaymentId.id || satispayPaymentId;
|
20
20
|
return this.resources.fetch({ type: 'payment_gateways' }, `satispay_payments/${_satispayPaymentId}/payment_gateway`, params, options);
|
21
21
|
}
|
22
|
+
async versions(satispayPaymentId, params, options) {
|
23
|
+
const _satispayPaymentId = satispayPaymentId.id || satispayPaymentId;
|
24
|
+
return this.resources.fetch({ type: 'versions' }, `satispay_payments/${_satispayPaymentId}/versions`, params, options);
|
25
|
+
}
|
22
26
|
async _refresh(id, params, options) {
|
23
27
|
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: SatispayPayments.TYPE, _refresh: true }, params, options);
|
24
28
|
}
|
@@ -13,6 +13,7 @@ import type { CarrierAccount } from './carrier_accounts';
|
|
13
13
|
import type { Parcel } from './parcels';
|
14
14
|
import type { Attachment } from './attachments';
|
15
15
|
import type { Event } from './events';
|
16
|
+
import type { Version } from './versions';
|
16
17
|
type ShipmentType = 'shipments';
|
17
18
|
type ShipmentRel = ResourceRel & {
|
18
19
|
type: ShipmentType;
|
@@ -62,6 +63,7 @@ interface Shipment extends Resource {
|
|
62
63
|
parcels?: Parcel[] | null;
|
63
64
|
attachments?: Attachment[] | null;
|
64
65
|
events?: Event[] | null;
|
66
|
+
versions?: Version[] | null;
|
65
67
|
}
|
66
68
|
interface ShipmentUpdate extends ResourceUpdate {
|
67
69
|
_on_hold?: boolean | null;
|
@@ -91,6 +93,7 @@ declare class Shipments extends ApiResource<Shipment> {
|
|
91
93
|
parcels(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Parcel>>;
|
92
94
|
attachments(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
93
95
|
events(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
96
|
+
versions(shipmentId: string | Shipment, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
94
97
|
_on_hold(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Shipment>;
|
95
98
|
_picking(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Shipment>;
|
96
99
|
_packing(id: string | Shipment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Shipment>;
|
@@ -61,6 +61,10 @@ class Shipments extends resource_1.ApiResource {
|
|
61
61
|
const _shipmentId = shipmentId.id || shipmentId;
|
62
62
|
return this.resources.fetch({ type: 'events' }, `shipments/${_shipmentId}/events`, params, options);
|
63
63
|
}
|
64
|
+
async versions(shipmentId, params, options) {
|
65
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
66
|
+
return this.resources.fetch({ type: 'versions' }, `shipments/${_shipmentId}/versions`, params, options);
|
67
|
+
}
|
64
68
|
async _on_hold(id, params, options) {
|
65
69
|
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: Shipments.TYPE, _on_hold: true }, params, options);
|
66
70
|
}
|
@@ -3,6 +3,7 @@ import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesCon
|
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { Sku } from './skus';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
type ShippingCategoryType = 'shipping_categories';
|
7
8
|
type ShippingCategoryRel = ResourceRel & {
|
8
9
|
type: ShippingCategoryType;
|
@@ -12,6 +13,7 @@ interface ShippingCategory extends Resource {
|
|
12
13
|
name: string;
|
13
14
|
skus?: Sku[] | null;
|
14
15
|
attachments?: Attachment[] | null;
|
16
|
+
versions?: Version[] | null;
|
15
17
|
}
|
16
18
|
interface ShippingCategoryCreate extends ResourceCreate {
|
17
19
|
name: string;
|
@@ -26,6 +28,7 @@ declare class ShippingCategories extends ApiResource<ShippingCategory> {
|
|
26
28
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
27
29
|
skus(shippingCategoryId: string | ShippingCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
|
28
30
|
attachments(shippingCategoryId: string | ShippingCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
31
|
+
versions(shippingCategoryId: string | ShippingCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
29
32
|
isShippingCategory(resource: any): resource is ShippingCategory;
|
30
33
|
relationship(id: string | ResourceId | null): ShippingCategoryRel;
|
31
34
|
type(): ShippingCategoryType;
|
@@ -19,6 +19,10 @@ class ShippingCategories extends resource_1.ApiResource {
|
|
19
19
|
const _shippingCategoryId = shippingCategoryId.id || shippingCategoryId;
|
20
20
|
return this.resources.fetch({ type: 'attachments' }, `shipping_categories/${_shippingCategoryId}/attachments`, params, options);
|
21
21
|
}
|
22
|
+
async versions(shippingCategoryId, params, options) {
|
23
|
+
const _shippingCategoryId = shippingCategoryId.id || shippingCategoryId;
|
24
|
+
return this.resources.fetch({ type: 'versions' }, `shipping_categories/${_shippingCategoryId}/versions`, params, options);
|
25
|
+
}
|
22
26
|
isShippingCategory(resource) {
|
23
27
|
return resource.type && (resource.type === ShippingCategories.TYPE);
|
24
28
|
}
|
@@ -3,6 +3,7 @@ import type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse }
|
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { ShippingMethod } from './shipping_methods';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
type ShippingMethodTierType = 'shipping_method_tiers';
|
7
8
|
type ShippingMethodTierRel = ResourceRel & {
|
8
9
|
type: ShippingMethodTierType;
|
@@ -16,11 +17,13 @@ interface ShippingMethodTier extends Resource {
|
|
16
17
|
formatted_price_amount?: string | null;
|
17
18
|
shipping_method?: ShippingMethod | null;
|
18
19
|
attachments?: Attachment[] | null;
|
20
|
+
versions?: Version[] | null;
|
19
21
|
}
|
20
22
|
declare class ShippingMethodTiers extends ApiResource<ShippingMethodTier> {
|
21
23
|
static readonly TYPE: ShippingMethodTierType;
|
22
24
|
shipping_method(shippingMethodTierId: string | ShippingMethodTier, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingMethod>;
|
23
25
|
attachments(shippingMethodTierId: string | ShippingMethodTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
26
|
+
versions(shippingMethodTierId: string | ShippingMethodTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
24
27
|
isShippingMethodTier(resource: any): resource is ShippingMethodTier;
|
25
28
|
relationship(id: string | ResourceId | null): ShippingMethodTierRel;
|
26
29
|
type(): ShippingMethodTierType;
|
@@ -10,6 +10,10 @@ class ShippingMethodTiers extends resource_1.ApiResource {
|
|
10
10
|
const _shippingMethodTierId = shippingMethodTierId.id || shippingMethodTierId;
|
11
11
|
return this.resources.fetch({ type: 'attachments' }, `shipping_method_tiers/${_shippingMethodTierId}/attachments`, params, options);
|
12
12
|
}
|
13
|
+
async versions(shippingMethodTierId, params, options) {
|
14
|
+
const _shippingMethodTierId = shippingMethodTierId.id || shippingMethodTierId;
|
15
|
+
return this.resources.fetch({ type: 'versions' }, `shipping_method_tiers/${_shippingMethodTierId}/versions`, params, options);
|
16
|
+
}
|
13
17
|
isShippingMethodTier(resource) {
|
14
18
|
return resource.type && (resource.type === ShippingMethodTiers.TYPE);
|
15
19
|
}
|
@@ -9,6 +9,7 @@ import type { DeliveryLeadTime } from './delivery_lead_times';
|
|
9
9
|
import type { ShippingMethodTier, ShippingMethodTierType } from './shipping_method_tiers';
|
10
10
|
import type { ShippingWeightTier } from './shipping_weight_tiers';
|
11
11
|
import type { Attachment } from './attachments';
|
12
|
+
import type { Version } from './versions';
|
12
13
|
type ShippingMethodType = 'shipping_methods';
|
13
14
|
type ShippingMethodRel = ResourceRel & {
|
14
15
|
type: ShippingMethodType;
|
@@ -56,6 +57,7 @@ interface ShippingMethod extends Resource {
|
|
56
57
|
shipping_method_tiers?: ShippingMethodTier[] | null;
|
57
58
|
shipping_weight_tiers?: ShippingWeightTier[] | null;
|
58
59
|
attachments?: Attachment[] | null;
|
60
|
+
versions?: Version[] | null;
|
59
61
|
}
|
60
62
|
interface ShippingMethodCreate extends ResourceCreate {
|
61
63
|
name: string;
|
@@ -106,6 +108,7 @@ declare class ShippingMethods extends ApiResource<ShippingMethod> {
|
|
106
108
|
shipping_method_tiers(shippingMethodId: string | ShippingMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ShippingMethodTier>>;
|
107
109
|
shipping_weight_tiers(shippingMethodId: string | ShippingMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ShippingWeightTier>>;
|
108
110
|
attachments(shippingMethodId: string | ShippingMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
111
|
+
versions(shippingMethodId: string | ShippingMethod, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
109
112
|
_disable(id: string | ShippingMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingMethod>;
|
110
113
|
_enable(id: string | ShippingMethod, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingMethod>;
|
111
114
|
isShippingMethod(resource: any): resource is ShippingMethod;
|
@@ -43,6 +43,10 @@ class ShippingMethods extends resource_1.ApiResource {
|
|
43
43
|
const _shippingMethodId = shippingMethodId.id || shippingMethodId;
|
44
44
|
return this.resources.fetch({ type: 'attachments' }, `shipping_methods/${_shippingMethodId}/attachments`, params, options);
|
45
45
|
}
|
46
|
+
async versions(shippingMethodId, params, options) {
|
47
|
+
const _shippingMethodId = shippingMethodId.id || shippingMethodId;
|
48
|
+
return this.resources.fetch({ type: 'versions' }, `shipping_methods/${_shippingMethodId}/versions`, params, options);
|
49
|
+
}
|
46
50
|
async _disable(id, params, options) {
|
47
51
|
return this.resources.update({ id: (typeof id === 'string') ? id : id.id, type: ShippingMethods.TYPE, _disable: true }, params, options);
|
48
52
|
}
|
@@ -3,6 +3,7 @@ import type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesCon
|
|
3
3
|
import type { QueryParamsRetrieve, QueryParamsList } from '../query';
|
4
4
|
import type { ShippingMethod, ShippingMethodType } from './shipping_methods';
|
5
5
|
import type { Attachment } from './attachments';
|
6
|
+
import type { Version } from './versions';
|
6
7
|
type ShippingWeightTierType = 'shipping_weight_tiers';
|
7
8
|
type ShippingWeightTierRel = ResourceRel & {
|
8
9
|
type: ShippingWeightTierType;
|
@@ -19,6 +20,7 @@ interface ShippingWeightTier extends Resource {
|
|
19
20
|
formatted_price_amount?: string | null;
|
20
21
|
shipping_method?: ShippingMethod | null;
|
21
22
|
attachments?: Attachment[] | null;
|
23
|
+
versions?: Version[] | null;
|
22
24
|
}
|
23
25
|
interface ShippingWeightTierCreate extends ResourceCreate {
|
24
26
|
name: string;
|
@@ -39,6 +41,7 @@ declare class ShippingWeightTiers extends ApiResource<ShippingWeightTier> {
|
|
39
41
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
40
42
|
shipping_method(shippingWeightTierId: string | ShippingWeightTier, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingMethod>;
|
41
43
|
attachments(shippingWeightTierId: string | ShippingWeightTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
44
|
+
versions(shippingWeightTierId: string | ShippingWeightTier, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
42
45
|
isShippingWeightTier(resource: any): resource is ShippingWeightTier;
|
43
46
|
relationship(id: string | ResourceId | null): ShippingWeightTierRel;
|
44
47
|
type(): ShippingWeightTierType;
|
@@ -19,6 +19,10 @@ class ShippingWeightTiers extends resource_1.ApiResource {
|
|
19
19
|
const _shippingWeightTierId = shippingWeightTierId.id || shippingWeightTierId;
|
20
20
|
return this.resources.fetch({ type: 'attachments' }, `shipping_weight_tiers/${_shippingWeightTierId}/attachments`, params, options);
|
21
21
|
}
|
22
|
+
async versions(shippingWeightTierId, params, options) {
|
23
|
+
const _shippingWeightTierId = shippingWeightTierId.id || shippingWeightTierId;
|
24
|
+
return this.resources.fetch({ type: 'versions' }, `shipping_weight_tiers/${_shippingWeightTierId}/versions`, params, options);
|
25
|
+
}
|
22
26
|
isShippingWeightTier(resource) {
|
23
27
|
return resource.type && (resource.type === ShippingWeightTiers.TYPE);
|
24
28
|
}
|