@commercelayer/sdk 3.3.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/client.js +1 -1
- package/lib/cjs/jsonapi.js +1 -1
- package/lib/cjs/resource.d.ts +6 -2
- 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 +6 -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 +9 -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 +9 -9
- package/lib/cjs/resources/fixed_amount_promotions.js +1 -1
- package/lib/cjs/resources/fixed_price_promotions.d.ts +10 -10
- package/lib/cjs/resources/fixed_price_promotions.js +1 -1
- package/lib/cjs/resources/free_gift_promotions.d.ts +10 -10
- package/lib/cjs/resources/free_gift_promotions.js +1 -1
- package/lib/cjs/resources/free_shipping_promotions.d.ts +9 -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 +6 -6
- 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 +6 -6
- 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 +10 -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 +4 -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 +7 -7
- 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 +5 -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/client.js +1 -1
- package/lib/esm/error.js +1 -1
- package/lib/esm/jsonapi.js +1 -1
- package/lib/esm/resource.d.ts +6 -2
- 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 +6 -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 +9 -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 +9 -9
- package/lib/esm/resources/fixed_amount_promotions.js +1 -1
- package/lib/esm/resources/fixed_price_promotions.d.ts +10 -10
- package/lib/esm/resources/fixed_price_promotions.js +1 -1
- package/lib/esm/resources/free_gift_promotions.d.ts +10 -10
- package/lib/esm/resources/free_gift_promotions.js +1 -1
- package/lib/esm/resources/free_shipping_promotions.d.ts +9 -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 +6 -6
- 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 +6 -6
- 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 +10 -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 +4 -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 +7 -7
- 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 +5 -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 +1 -1
@@ -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 { Market } from './markets';
|
4
|
-
declare type OrderValidationRuleRel =
|
4
|
+
declare type OrderValidationRuleRel = ResourceRel & {
|
5
5
|
type: typeof OrderValidationRules.TYPE;
|
6
6
|
};
|
7
7
|
interface OrderValidationRule extends Resource {
|
@@ -12,7 +12,7 @@ declare class OrderValidationRules extends ApiResource {
|
|
12
12
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderValidationRule>>;
|
13
13
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderValidationRule>;
|
14
14
|
isOrderValidationRule(resource: any): resource is OrderValidationRule;
|
15
|
-
relationship(id: string | ResourceId): OrderValidationRuleRel;
|
15
|
+
relationship(id: string | ResourceId | null): OrderValidationRuleRel;
|
16
16
|
type(): string;
|
17
17
|
}
|
18
18
|
export default OrderValidationRules;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as s}from"../resource";class r extends s{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async retrieve(e,t,i){return this.resources.retrieve({type:r.TYPE,id:e},t,i)}isOrderValidationRule(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="order_validation_rules";export default r;
|
1
|
+
import{ApiResource as s}from"../resource";class r extends s{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async retrieve(e,t,i){return this.resources.retrieve({type:r.TYPE,id:e},t,i)}isOrderValidationRule(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="order_validation_rules";export default r;
|
@@ -1,5 +1,5 @@
|
|
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 { Market } from './markets';
|
4
4
|
import { Customer } from './customers';
|
5
5
|
import { Address } from './addresses';
|
@@ -22,43 +22,43 @@ import { Refund } from './refunds';
|
|
22
22
|
import { OrderSubscription } from './order_subscriptions';
|
23
23
|
import { OrderCopy } from './order_copies';
|
24
24
|
import { Attachment } from './attachments';
|
25
|
-
declare type OrderRel =
|
25
|
+
declare type OrderRel = ResourceRel & {
|
26
26
|
type: typeof Orders.TYPE;
|
27
27
|
};
|
28
|
-
declare type MarketRel =
|
28
|
+
declare type MarketRel = ResourceRel & {
|
29
29
|
type: 'markets';
|
30
30
|
};
|
31
|
-
declare type CustomerRel =
|
31
|
+
declare type CustomerRel = ResourceRel & {
|
32
32
|
type: 'customers';
|
33
33
|
};
|
34
|
-
declare type AddressRel =
|
34
|
+
declare type AddressRel = ResourceRel & {
|
35
35
|
type: 'addresses';
|
36
36
|
};
|
37
|
-
declare type PaymentMethodRel =
|
37
|
+
declare type PaymentMethodRel = ResourceRel & {
|
38
38
|
type: 'payment_methods';
|
39
39
|
};
|
40
|
-
declare type AdyenPaymentRel =
|
40
|
+
declare type AdyenPaymentRel = ResourceRel & {
|
41
41
|
type: 'adyen_payments';
|
42
42
|
};
|
43
|
-
declare type BraintreePaymentRel =
|
43
|
+
declare type BraintreePaymentRel = ResourceRel & {
|
44
44
|
type: 'braintree_payments';
|
45
45
|
};
|
46
|
-
declare type CheckoutComPaymentRel =
|
46
|
+
declare type CheckoutComPaymentRel = ResourceRel & {
|
47
47
|
type: 'checkout_com_payments';
|
48
48
|
};
|
49
|
-
declare type ExternalPaymentRel =
|
49
|
+
declare type ExternalPaymentRel = ResourceRel & {
|
50
50
|
type: 'external_payments';
|
51
51
|
};
|
52
|
-
declare type KlarnaPaymentRel =
|
52
|
+
declare type KlarnaPaymentRel = ResourceRel & {
|
53
53
|
type: 'klarna_payments';
|
54
54
|
};
|
55
|
-
declare type PaypalPaymentRel =
|
55
|
+
declare type PaypalPaymentRel = ResourceRel & {
|
56
56
|
type: 'paypal_payments';
|
57
57
|
};
|
58
|
-
declare type StripePaymentRel =
|
58
|
+
declare type StripePaymentRel = ResourceRel & {
|
59
59
|
type: 'stripe_payments';
|
60
60
|
};
|
61
|
-
declare type WireTransferRel =
|
61
|
+
declare type WireTransferRel = ResourceRel & {
|
62
62
|
type: 'wire_transfers';
|
63
63
|
};
|
64
64
|
interface Order extends Resource {
|
@@ -248,7 +248,7 @@ declare class Orders extends ApiResource {
|
|
248
248
|
update(resource: OrderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
249
249
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
250
250
|
isOrder(resource: any): resource is Order;
|
251
|
-
relationship(id: string | ResourceId): OrderRel;
|
251
|
+
relationship(id: string | ResourceId | null): OrderRel;
|
252
252
|
type(): string;
|
253
253
|
}
|
254
254
|
export default Orders;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isOrder(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="orders";export default r;
|
1
|
+
import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isOrder(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="orders";export default r;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { ApiResource, Resource, ResourcesConfig, ResourceId } from '../resource';
|
2
|
-
import {
|
3
|
-
declare type OrganizationRel =
|
1
|
+
import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel } from '../resource';
|
2
|
+
import { QueryParamsRetrieve } from '../query';
|
3
|
+
declare type OrganizationRel = ResourceRel & {
|
4
4
|
type: typeof Organizations.TYPE;
|
5
5
|
};
|
6
6
|
interface Organization extends Resource {
|
@@ -25,7 +25,7 @@ declare class Organizations extends ApiResource {
|
|
25
25
|
static readonly TYPE: 'organization';
|
26
26
|
retrieve(params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Organization>;
|
27
27
|
isOrganization(resource: any): resource is Organization;
|
28
|
-
relationship(id: string | ResourceId): OrganizationRel;
|
28
|
+
relationship(id: string | ResourceId | null): OrganizationRel;
|
29
29
|
type(): string;
|
30
30
|
}
|
31
31
|
export default Organizations;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class r extends i{async retrieve(e,t){return this.resources.singleton({type:r.TYPE},e,t)}isOrganization(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="organization";export default r;
|
1
|
+
import{ApiResource as i}from"../resource";class r extends i{async retrieve(e,t){return this.resources.singleton({type:r.TYPE},e,t)}isOrganization(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="organization";export default r;
|
@@ -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 { StockLocation } from './stock_locations';
|
4
4
|
import { Parcel } from './parcels';
|
5
5
|
import { Attachment } from './attachments';
|
6
|
-
declare type PackageRel =
|
6
|
+
declare type PackageRel = ResourceRel & {
|
7
7
|
type: typeof Packages.TYPE;
|
8
8
|
};
|
9
|
-
declare type StockLocationRel =
|
9
|
+
declare type StockLocationRel = ResourceRel & {
|
10
10
|
type: 'stock_locations';
|
11
11
|
};
|
12
12
|
interface Package extends Resource {
|
@@ -46,7 +46,7 @@ declare class Packages extends ApiResource {
|
|
46
46
|
update(resource: PackageUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Package>;
|
47
47
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
48
48
|
isPackage(resource: any): resource is Package;
|
49
|
-
relationship(id: string | ResourceId): PackageRel;
|
49
|
+
relationship(id: string | ResourceId | null): PackageRel;
|
50
50
|
type(): string;
|
51
51
|
}
|
52
52
|
export default Packages;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isPackage(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="packages";export default s;
|
1
|
+
import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isPackage(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="packages";export default s;
|
@@ -1,14 +1,14 @@
|
|
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 { Parcel } from './parcels';
|
4
4
|
import { StockLineItem } from './stock_line_items';
|
5
|
-
declare type ParcelLineItemRel =
|
5
|
+
declare type ParcelLineItemRel = ResourceRel & {
|
6
6
|
type: typeof ParcelLineItems.TYPE;
|
7
7
|
};
|
8
|
-
declare type ParcelRel =
|
8
|
+
declare type ParcelRel = ResourceRel & {
|
9
9
|
type: 'parcels';
|
10
10
|
};
|
11
|
-
declare type StockLineItemRel =
|
11
|
+
declare type StockLineItemRel = ResourceRel & {
|
12
12
|
type: 'stock_line_items';
|
13
13
|
};
|
14
14
|
interface ParcelLineItem extends Resource {
|
@@ -40,7 +40,7 @@ declare class ParcelLineItems extends ApiResource {
|
|
40
40
|
update(resource: ParcelLineItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ParcelLineItem>;
|
41
41
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
42
42
|
isParcelLineItem(resource: any): resource is ParcelLineItem;
|
43
|
-
relationship(id: string | ResourceId): ParcelLineItemRel;
|
43
|
+
relationship(id: string | ResourceId | null): ParcelLineItemRel;
|
44
44
|
type(): string;
|
45
45
|
}
|
46
46
|
export default ParcelLineItems;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isParcelLineItem(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="parcel_line_items";export default t;
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isParcelLineItem(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="parcel_line_items";export default t;
|
@@ -1,16 +1,16 @@
|
|
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 { Shipment } from './shipments';
|
4
4
|
import { Package } from './packages';
|
5
5
|
import { ParcelLineItem } from './parcel_line_items';
|
6
6
|
import { Attachment } from './attachments';
|
7
|
-
declare type ParcelRel =
|
7
|
+
declare type ParcelRel = ResourceRel & {
|
8
8
|
type: typeof Parcels.TYPE;
|
9
9
|
};
|
10
|
-
declare type ShipmentRel =
|
10
|
+
declare type ShipmentRel = ResourceRel & {
|
11
11
|
type: 'shipments';
|
12
12
|
};
|
13
|
-
declare type PackageRel =
|
13
|
+
declare type PackageRel = ResourceRel & {
|
14
14
|
type: 'packages';
|
15
15
|
};
|
16
16
|
interface Parcel extends Resource {
|
@@ -97,7 +97,7 @@ declare class Parcels extends ApiResource {
|
|
97
97
|
update(resource: ParcelUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Parcel>;
|
98
98
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
99
99
|
isParcel(resource: any): resource is Parcel;
|
100
|
-
relationship(id: string | ResourceId): ParcelRel;
|
100
|
+
relationship(id: string | ResourceId | null): ParcelRel;
|
101
101
|
type(): string;
|
102
102
|
}
|
103
103
|
export default Parcels;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isParcel(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="parcels";export default s;
|
1
|
+
import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isParcel(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="parcels";export default s;
|
@@ -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 { PaymentMethod } from './payment_methods';
|
4
|
-
declare type PaymentGatewayRel =
|
4
|
+
declare type PaymentGatewayRel = ResourceRel & {
|
5
5
|
type: typeof PaymentGateways.TYPE;
|
6
6
|
};
|
7
7
|
interface PaymentGateway extends Resource {
|
@@ -13,7 +13,7 @@ declare class PaymentGateways extends ApiResource {
|
|
13
13
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentGateway>>;
|
14
14
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
15
15
|
isPaymentGateway(resource: any): resource is PaymentGateway;
|
16
|
-
relationship(id: string | ResourceId): PaymentGatewayRel;
|
16
|
+
relationship(id: string | ResourceId | null): PaymentGatewayRel;
|
17
17
|
type(): string;
|
18
18
|
}
|
19
19
|
export default PaymentGateways;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}isPaymentGateway(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="payment_gateways";export default t;
|
@@ -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 { Market } from './markets';
|
4
4
|
import { PaymentGateway } from './payment_gateways';
|
5
5
|
import { Attachment } from './attachments';
|
6
|
-
declare type PaymentMethodRel =
|
6
|
+
declare type PaymentMethodRel = ResourceRel & {
|
7
7
|
type: typeof PaymentMethods.TYPE;
|
8
8
|
};
|
9
|
-
declare type MarketRel =
|
9
|
+
declare type MarketRel = ResourceRel & {
|
10
10
|
type: 'markets';
|
11
11
|
};
|
12
|
-
declare type PaymentGatewayRel =
|
12
|
+
declare type PaymentGatewayRel = ResourceRel & {
|
13
13
|
type: 'payment_gateways';
|
14
14
|
};
|
15
15
|
interface PaymentMethod extends Resource {
|
@@ -49,7 +49,7 @@ declare class PaymentMethods extends ApiResource {
|
|
49
49
|
update(resource: PaymentMethodUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentMethod>;
|
50
50
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
51
51
|
isPaymentMethod(resource: any): resource is PaymentMethod;
|
52
|
-
relationship(id: string | ResourceId): PaymentMethodRel;
|
52
|
+
relationship(id: string | ResourceId | null): PaymentMethodRel;
|
53
53
|
type(): string;
|
54
54
|
}
|
55
55
|
export default PaymentMethods;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isPaymentMethod(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="payment_methods";export default t;
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isPaymentMethod(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="payment_methods";export default t;
|
@@ -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 { PaypalPayment } from './paypal_payments';
|
5
|
-
declare type PaypalGatewayRel =
|
5
|
+
declare type PaypalGatewayRel = ResourceRel & {
|
6
6
|
type: typeof PaypalGateways.TYPE;
|
7
7
|
};
|
8
8
|
interface PaypalGateway extends Resource {
|
@@ -30,7 +30,7 @@ declare class PaypalGateways extends ApiResource {
|
|
30
30
|
update(resource: PaypalGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalGateway>;
|
31
31
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
32
32
|
isPaypalGateway(resource: any): resource is PaypalGateway;
|
33
|
-
relationship(id: string | ResourceId): PaypalGatewayRel;
|
33
|
+
relationship(id: string | ResourceId | null): PaypalGatewayRel;
|
34
34
|
type(): string;
|
35
35
|
}
|
36
36
|
export default PaypalGateways;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as a}from"../resource";class s extends a{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}isPaypalGateway(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="paypal_gateways";export default s;
|
1
|
+
import{ApiResource as a}from"../resource";class s extends a{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}isPaypalGateway(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="paypal_gateways";export default s;
|
@@ -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 PaypalPaymentRel =
|
5
|
+
declare type PaypalPaymentRel = ResourceRel & {
|
6
6
|
type: typeof PaypalPayments.TYPE;
|
7
7
|
};
|
8
|
-
declare type OrderRel =
|
8
|
+
declare type OrderRel = ResourceRel & {
|
9
9
|
type: 'orders';
|
10
10
|
};
|
11
11
|
interface PaypalPayment extends Resource {
|
@@ -38,7 +38,7 @@ declare class PaypalPayments extends ApiResource {
|
|
38
38
|
update(resource: PaypalPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaypalPayment>;
|
39
39
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
40
40
|
isPaypalPayment(resource: any): resource is PaypalPayment;
|
41
|
-
relationship(id: string | ResourceId): PaypalPaymentRel;
|
41
|
+
relationship(id: string | ResourceId | null): PaypalPaymentRel;
|
42
42
|
type(): string;
|
43
43
|
}
|
44
44
|
export default PaypalPayments;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class s extends i{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}isPaypalPayment(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="paypal_payments";export default s;
|
1
|
+
import{ApiResource as i}from"../resource";class s extends i{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}isPaypalPayment(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="paypal_payments";export default s;
|
@@ -1,5 +1,5 @@
|
|
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 { Market } from './markets';
|
4
4
|
import { PromotionRule } from './promotion_rules';
|
5
5
|
import { OrderAmountPromotionRule } from './order_amount_promotion_rules';
|
@@ -8,25 +8,25 @@ import { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
|
|
8
8
|
import { Attachment } from './attachments';
|
9
9
|
import { SkuList } from './sku_lists';
|
10
10
|
import { Sku } from './skus';
|
11
|
-
declare type PercentageDiscountPromotionRel =
|
11
|
+
declare type PercentageDiscountPromotionRel = ResourceRel & {
|
12
12
|
type: typeof PercentageDiscountPromotions.TYPE;
|
13
13
|
};
|
14
|
-
declare type MarketRel =
|
14
|
+
declare type MarketRel = ResourceRel & {
|
15
15
|
type: 'markets';
|
16
16
|
};
|
17
|
-
declare type PromotionRuleRel =
|
17
|
+
declare type PromotionRuleRel = ResourceRel & {
|
18
18
|
type: 'promotion_rules';
|
19
19
|
};
|
20
|
-
declare type OrderAmountPromotionRuleRel =
|
20
|
+
declare type OrderAmountPromotionRuleRel = ResourceRel & {
|
21
21
|
type: 'order_amount_promotion_rules';
|
22
22
|
};
|
23
|
-
declare type SkuListPromotionRuleRel =
|
23
|
+
declare type SkuListPromotionRuleRel = ResourceRel & {
|
24
24
|
type: 'sku_list_promotion_rules';
|
25
25
|
};
|
26
|
-
declare type CouponCodesPromotionRuleRel =
|
26
|
+
declare type CouponCodesPromotionRuleRel = ResourceRel & {
|
27
27
|
type: 'coupon_codes_promotion_rules';
|
28
28
|
};
|
29
|
-
declare type SkuListRel =
|
29
|
+
declare type SkuListRel = ResourceRel & {
|
30
30
|
type: 'sku_lists';
|
31
31
|
};
|
32
32
|
interface PercentageDiscountPromotion extends Resource {
|
@@ -83,7 +83,7 @@ declare class PercentageDiscountPromotions extends ApiResource {
|
|
83
83
|
update(resource: PercentageDiscountPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PercentageDiscountPromotion>;
|
84
84
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
85
85
|
isPercentageDiscountPromotion(resource: any): resource is PercentageDiscountPromotion;
|
86
|
-
relationship(id: string | ResourceId): PercentageDiscountPromotionRel;
|
86
|
+
relationship(id: string | ResourceId | null): PercentageDiscountPromotionRel;
|
87
87
|
type(): string;
|
88
88
|
}
|
89
89
|
export default PercentageDiscountPromotions;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isPercentageDiscountPromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="percentage_discount_promotions";export default t;
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isPercentageDiscountPromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="percentage_discount_promotions";export default t;
|
@@ -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 { Price } from './prices';
|
4
4
|
import { Attachment } from './attachments';
|
5
|
-
declare type PriceListRel =
|
5
|
+
declare type PriceListRel = ResourceRel & {
|
6
6
|
type: typeof PriceLists.TYPE;
|
7
7
|
};
|
8
8
|
interface PriceList extends Resource {
|
@@ -30,7 +30,7 @@ declare class PriceLists extends ApiResource {
|
|
30
30
|
update(resource: PriceListUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceList>;
|
31
31
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
32
32
|
isPriceList(resource: any): resource is PriceList;
|
33
|
-
relationship(id: string | ResourceId): PriceListRel;
|
33
|
+
relationship(id: string | ResourceId | null): PriceListRel;
|
34
34
|
type(): string;
|
35
35
|
}
|
36
36
|
export default PriceLists;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isPriceList(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="price_lists";export default s;
|
1
|
+
import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isPriceList(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="price_lists";export default s;
|
@@ -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 { PriceList } from './price_lists';
|
4
4
|
import { Sku } from './skus';
|
5
5
|
import { Attachment } from './attachments';
|
6
|
-
declare type PriceRel =
|
6
|
+
declare type PriceRel = ResourceRel & {
|
7
7
|
type: typeof Prices.TYPE;
|
8
8
|
};
|
9
|
-
declare type PriceListRel =
|
9
|
+
declare type PriceListRel = ResourceRel & {
|
10
10
|
type: 'price_lists';
|
11
11
|
};
|
12
|
-
declare type SkuRel =
|
12
|
+
declare type SkuRel = ResourceRel & {
|
13
13
|
type: 'skus';
|
14
14
|
};
|
15
15
|
interface Price extends Resource {
|
@@ -47,7 +47,7 @@ declare class Prices extends ApiResource {
|
|
47
47
|
update(resource: PriceUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Price>;
|
48
48
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
49
49
|
isPrice(resource: any): resource is Price;
|
50
|
-
relationship(id: string | ResourceId): PriceRel;
|
50
|
+
relationship(id: string | ResourceId | null): PriceRel;
|
51
51
|
type(): string;
|
52
52
|
}
|
53
53
|
export default Prices;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isPrice(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="prices";export default s;
|
1
|
+
import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isPrice(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="prices";export default s;
|
@@ -1,12 +1,12 @@
|
|
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 { PercentageDiscountPromotion } from './percentage_discount_promotions';
|
4
4
|
import { FreeShippingPromotion } from './free_shipping_promotions';
|
5
5
|
import { FixedAmountPromotion } from './fixed_amount_promotions';
|
6
6
|
import { FreeGiftPromotion } from './free_gift_promotions';
|
7
7
|
import { FixedPricePromotion } from './fixed_price_promotions';
|
8
8
|
import { ExternalPromotion } from './external_promotions';
|
9
|
-
declare type PromotionRuleRel =
|
9
|
+
declare type PromotionRuleRel = ResourceRel & {
|
10
10
|
type: typeof PromotionRules.TYPE;
|
11
11
|
};
|
12
12
|
interface PromotionRule extends Resource {
|
@@ -17,7 +17,7 @@ declare class PromotionRules extends ApiResource {
|
|
17
17
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PromotionRule>>;
|
18
18
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PromotionRule>;
|
19
19
|
isPromotionRule(resource: any): resource is PromotionRule;
|
20
|
-
relationship(id: string | ResourceId): PromotionRuleRel;
|
20
|
+
relationship(id: string | ResourceId | null): PromotionRuleRel;
|
21
21
|
type(): string;
|
22
22
|
}
|
23
23
|
export default PromotionRules;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}isPromotionRule(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="promotion_rules";export default r;
|
1
|
+
import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}isPromotionRule(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="promotion_rules";export default r;
|
@@ -1,12 +1,12 @@
|
|
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 { Market } from './markets';
|
4
4
|
import { PromotionRule } from './promotion_rules';
|
5
5
|
import { OrderAmountPromotionRule } from './order_amount_promotion_rules';
|
6
6
|
import { SkuListPromotionRule } from './sku_list_promotion_rules';
|
7
7
|
import { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
|
8
8
|
import { Attachment } from './attachments';
|
9
|
-
declare type PromotionRel =
|
9
|
+
declare type PromotionRel = ResourceRel & {
|
10
10
|
type: typeof Promotions.TYPE;
|
11
11
|
};
|
12
12
|
interface Promotion extends Resource {
|
@@ -29,7 +29,7 @@ declare class Promotions extends ApiResource {
|
|
29
29
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Promotion>>;
|
30
30
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Promotion>;
|
31
31
|
isPromotion(resource: any): resource is Promotion;
|
32
|
-
relationship(id: string | ResourceId): PromotionRel;
|
32
|
+
relationship(id: string | ResourceId | null): PromotionRel;
|
33
33
|
type(): string;
|
34
34
|
}
|
35
35
|
export default Promotions;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}isPromotion(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="promotions";export default r;
|
1
|
+
import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}isPromotion(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="promotions";export default r;
|
@@ -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 { Capture } from './captures';
|
5
|
-
declare type RefundRel =
|
5
|
+
declare type RefundRel = ResourceRel & {
|
6
6
|
type: typeof Refunds.TYPE;
|
7
7
|
};
|
8
8
|
interface Refund extends Resource {
|
@@ -25,7 +25,7 @@ declare class Refunds extends ApiResource {
|
|
25
25
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Refund>>;
|
26
26
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Refund>;
|
27
27
|
isRefund(resource: any): resource is Refund;
|
28
|
-
relationship(id: string | ResourceId): RefundRel;
|
28
|
+
relationship(id: string | ResourceId | null): RefundRel;
|
29
29
|
type(): string;
|
30
30
|
}
|
31
31
|
export default Refunds;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class r extends i{async list(e,
|
1
|
+
import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}isRefund(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="refunds";export default r;
|
@@ -1,14 +1,14 @@
|
|
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 { Return } from './returns';
|
4
4
|
import { LineItem } from './line_items';
|
5
|
-
declare type ReturnLineItemRel =
|
5
|
+
declare type ReturnLineItemRel = ResourceRel & {
|
6
6
|
type: typeof ReturnLineItems.TYPE;
|
7
7
|
};
|
8
|
-
declare type ReturnRel =
|
8
|
+
declare type ReturnRel = ResourceRel & {
|
9
9
|
type: 'returns';
|
10
10
|
};
|
11
|
-
declare type LineItemRel =
|
11
|
+
declare type LineItemRel = ResourceRel & {
|
12
12
|
type: 'line_items';
|
13
13
|
};
|
14
14
|
interface ReturnLineItem extends Resource {
|
@@ -40,7 +40,7 @@ declare class ReturnLineItems extends ApiResource {
|
|
40
40
|
update(resource: ReturnLineItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ReturnLineItem>;
|
41
41
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
42
42
|
isReturnLineItem(resource: any): resource is ReturnLineItem;
|
43
|
-
relationship(id: string | ResourceId): ReturnLineItemRel;
|
43
|
+
relationship(id: string | ResourceId | null): ReturnLineItemRel;
|
44
44
|
type(): string;
|
45
45
|
}
|
46
46
|
export default ReturnLineItems;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isReturnLineItem(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="return_line_items";export default t;
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isReturnLineItem(e){return e.type&&e.type===t.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="return_line_items";export default t;
|