@commercelayer/sdk 3.3.0 → 3.7.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/api.d.ts +1 -0
- package/lib/api.js +1 -0
- package/lib/cjs/api.d.ts +1 -1
- package/lib/cjs/client.js +1 -1
- package/lib/cjs/commercelayer.js +1 -1
- package/lib/cjs/common.js +1 -1
- package/lib/cjs/debug.d.ts +1 -3
- package/lib/cjs/debug.js +1 -1
- package/lib/cjs/error.d.ts +1 -26
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/interceptor.d.ts +1 -19
- package/lib/cjs/jsonapi.js +1 -1
- package/lib/cjs/model.d.ts +1 -1
- package/lib/cjs/query.js +1 -1
- package/lib/cjs/resource.d.ts +6 -2
- package/lib/cjs/resource.js +1 -1
- 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 +6 -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 +13 -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 +9 -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 +17 -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 -6
- package/lib/cjs/resources/paypal_gateways.js +1 -1
- package/lib/cjs/resources/paypal_payments.d.ts +9 -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 +6 -6
- 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 +9 -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/cjs/static.js +1 -1
- package/lib/cjs/util.d.ts +1 -2
- package/lib/client.d.ts +2 -0
- package/lib/client.js +1 -0
- package/lib/commercelayer.d.ts +1 -0
- package/lib/commercelayer.js +1 -0
- package/lib/common.d.ts +1 -0
- package/lib/common.js +1 -0
- package/lib/config.d.ts +1 -0
- package/lib/config.js +1 -0
- package/lib/debug.d.ts +1 -0
- package/lib/debug.js +1 -0
- package/lib/error.d.ts +1 -0
- package/lib/error.js +1 -0
- package/lib/esm/api.d.ts +1 -1
- package/lib/esm/client.js +1 -1
- package/lib/esm/commercelayer.js +1 -1
- package/lib/esm/common.js +1 -1
- package/lib/esm/debug.d.ts +1 -3
- package/lib/esm/debug.js +1 -1
- package/lib/esm/error.d.ts +1 -26
- package/lib/esm/error.js +1 -1
- package/lib/esm/interceptor.d.ts +1 -19
- package/lib/esm/jsonapi.js +1 -1
- package/lib/esm/model.d.ts +1 -1
- package/lib/esm/query.js +1 -1
- package/lib/esm/resource.d.ts +6 -2
- package/lib/esm/resource.js +1 -1
- 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 +6 -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 +13 -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 +9 -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 +17 -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 -6
- package/lib/esm/resources/paypal_gateways.js +1 -1
- package/lib/esm/resources/paypal_payments.d.ts +9 -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 +6 -6
- 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 +9 -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/esm/static.js +1 -1
- package/lib/esm/util.d.ts +1 -2
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/interceptor.d.ts +1 -0
- package/lib/interceptor.js +1 -0
- package/lib/jsonapi.d.ts +1 -0
- package/lib/jsonapi.js +1 -0
- package/lib/model.d.ts +1 -0
- package/lib/model.js +1 -0
- package/lib/query.d.ts +1 -0
- package/lib/query.js +1 -0
- package/lib/resource.d.ts +1 -0
- package/lib/resource.js +1 -0
- package/lib/resources/addresses.d.ts +1 -0
- package/lib/resources/addresses.js +1 -0
- package/lib/resources/adjustments.d.ts +1 -0
- package/lib/resources/adjustments.js +1 -0
- package/lib/resources/adyen_gateways.d.ts +1 -0
- package/lib/resources/adyen_gateways.js +1 -0
- package/lib/resources/adyen_payments.d.ts +1 -0
- package/lib/resources/adyen_payments.js +1 -0
- package/lib/resources/application.d.ts +1 -0
- package/lib/resources/application.js +1 -0
- package/lib/resources/attachments.d.ts +1 -0
- package/lib/resources/attachments.js +1 -0
- package/lib/resources/authorizations.d.ts +1 -0
- package/lib/resources/authorizations.js +1 -0
- package/lib/resources/avalara_accounts.d.ts +1 -0
- package/lib/resources/avalara_accounts.js +1 -0
- package/lib/resources/billing_info_validation_rules.d.ts +1 -0
- package/lib/resources/billing_info_validation_rules.js +1 -0
- package/lib/resources/bing_geocoders.d.ts +1 -0
- package/lib/resources/bing_geocoders.js +1 -0
- package/lib/resources/braintree_gateways.d.ts +1 -0
- package/lib/resources/braintree_gateways.js +1 -0
- package/lib/resources/braintree_payments.d.ts +1 -0
- package/lib/resources/braintree_payments.js +1 -0
- package/lib/resources/bundles.d.ts +1 -0
- package/lib/resources/bundles.js +1 -0
- package/lib/resources/captures.d.ts +1 -0
- package/lib/resources/captures.js +1 -0
- package/lib/resources/carrier_accounts.d.ts +1 -0
- package/lib/resources/carrier_accounts.js +1 -0
- package/lib/resources/checkout_com_gateways.d.ts +1 -0
- package/lib/resources/checkout_com_gateways.js +1 -0
- package/lib/resources/checkout_com_payments.d.ts +1 -0
- package/lib/resources/checkout_com_payments.js +1 -0
- package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -0
- package/lib/resources/coupon_codes_promotion_rules.js +1 -0
- package/lib/resources/coupon_recipients.d.ts +1 -0
- package/lib/resources/coupon_recipients.js +1 -0
- package/lib/resources/coupons.d.ts +1 -0
- package/lib/resources/coupons.js +1 -0
- package/lib/resources/customer_addresses.d.ts +1 -0
- package/lib/resources/customer_addresses.js +1 -0
- package/lib/resources/customer_groups.d.ts +1 -0
- package/lib/resources/customer_groups.js +1 -0
- package/lib/resources/customer_password_resets.d.ts +1 -0
- package/lib/resources/customer_password_resets.js +1 -0
- package/lib/resources/customer_payment_sources.d.ts +1 -0
- package/lib/resources/customer_payment_sources.js +1 -0
- package/lib/resources/customer_subscriptions.d.ts +1 -0
- package/lib/resources/customer_subscriptions.js +1 -0
- package/lib/resources/customers.d.ts +1 -0
- package/lib/resources/customers.js +1 -0
- package/lib/resources/delivery_lead_times.d.ts +1 -0
- package/lib/resources/delivery_lead_times.js +1 -0
- package/lib/resources/event_callbacks.d.ts +1 -0
- package/lib/resources/event_callbacks.js +1 -0
- package/lib/resources/external_gateways.d.ts +1 -0
- package/lib/resources/external_gateways.js +1 -0
- package/lib/resources/external_payments.d.ts +1 -0
- package/lib/resources/external_payments.js +1 -0
- package/lib/resources/external_promotions.d.ts +1 -0
- package/lib/resources/external_promotions.js +1 -0
- package/lib/resources/external_tax_calculators.d.ts +1 -0
- package/lib/resources/external_tax_calculators.js +1 -0
- package/lib/resources/fixed_amount_promotions.d.ts +1 -0
- package/lib/resources/fixed_amount_promotions.js +1 -0
- package/lib/resources/fixed_price_promotions.d.ts +1 -0
- package/lib/resources/fixed_price_promotions.js +1 -0
- package/lib/resources/free_gift_promotions.d.ts +1 -0
- package/lib/resources/free_gift_promotions.js +1 -0
- package/lib/resources/free_shipping_promotions.d.ts +1 -0
- package/lib/resources/free_shipping_promotions.js +1 -0
- package/lib/resources/geocoders.d.ts +1 -0
- package/lib/resources/geocoders.js +1 -0
- package/lib/resources/gift_card_recipients.d.ts +1 -0
- package/lib/resources/gift_card_recipients.js +1 -0
- package/lib/resources/gift_cards.d.ts +1 -0
- package/lib/resources/gift_cards.js +1 -0
- package/lib/resources/google_geocoders.d.ts +1 -0
- package/lib/resources/google_geocoders.js +1 -0
- package/lib/resources/imports.d.ts +1 -0
- package/lib/resources/imports.js +1 -0
- package/lib/resources/in_stock_subscriptions.d.ts +1 -0
- package/lib/resources/in_stock_subscriptions.js +1 -0
- package/lib/resources/inventory_models.d.ts +1 -0
- package/lib/resources/inventory_models.js +1 -0
- package/lib/resources/inventory_return_locations.d.ts +1 -0
- package/lib/resources/inventory_return_locations.js +1 -0
- package/lib/resources/inventory_stock_locations.d.ts +1 -0
- package/lib/resources/inventory_stock_locations.js +1 -0
- package/lib/resources/klarna_gateways.d.ts +1 -0
- package/lib/resources/klarna_gateways.js +1 -0
- package/lib/resources/klarna_payments.d.ts +1 -0
- package/lib/resources/klarna_payments.js +1 -0
- package/lib/resources/line_item_options.d.ts +1 -0
- package/lib/resources/line_item_options.js +1 -0
- package/lib/resources/line_items.d.ts +1 -0
- package/lib/resources/line_items.js +1 -0
- package/lib/resources/manual_gateways.d.ts +1 -0
- package/lib/resources/manual_gateways.js +1 -0
- package/lib/resources/manual_tax_calculators.d.ts +1 -0
- package/lib/resources/manual_tax_calculators.js +1 -0
- package/lib/resources/markets.d.ts +1 -0
- package/lib/resources/markets.js +1 -0
- package/lib/resources/merchants.d.ts +1 -0
- package/lib/resources/merchants.js +1 -0
- package/lib/resources/order_amount_promotion_rules.d.ts +1 -0
- package/lib/resources/order_amount_promotion_rules.js +1 -0
- package/lib/resources/order_copies.d.ts +1 -0
- package/lib/resources/order_copies.js +1 -0
- package/lib/resources/order_subscriptions.d.ts +1 -0
- package/lib/resources/order_subscriptions.js +1 -0
- package/lib/resources/order_validation_rules.d.ts +1 -0
- package/lib/resources/order_validation_rules.js +1 -0
- package/lib/resources/orders.d.ts +1 -0
- package/lib/resources/orders.js +1 -0
- package/lib/resources/organization.d.ts +1 -0
- package/lib/resources/organization.js +1 -0
- package/lib/resources/packages.d.ts +1 -0
- package/lib/resources/packages.js +1 -0
- package/lib/resources/parcel_line_items.d.ts +1 -0
- package/lib/resources/parcel_line_items.js +1 -0
- package/lib/resources/parcels.d.ts +1 -0
- package/lib/resources/parcels.js +1 -0
- package/lib/resources/payment_gateways.d.ts +1 -0
- package/lib/resources/payment_gateways.js +1 -0
- package/lib/resources/payment_methods.d.ts +1 -0
- package/lib/resources/payment_methods.js +1 -0
- package/lib/resources/paypal_gateways.d.ts +1 -0
- package/lib/resources/paypal_gateways.js +1 -0
- package/lib/resources/paypal_payments.d.ts +1 -0
- package/lib/resources/paypal_payments.js +1 -0
- package/lib/resources/percentage_discount_promotions.d.ts +1 -0
- package/lib/resources/percentage_discount_promotions.js +1 -0
- package/lib/resources/price_lists.d.ts +1 -0
- package/lib/resources/price_lists.js +1 -0
- package/lib/resources/prices.d.ts +1 -0
- package/lib/resources/prices.js +1 -0
- package/lib/resources/promotion_rules.d.ts +1 -0
- package/lib/resources/promotion_rules.js +1 -0
- package/lib/resources/promotions.d.ts +1 -0
- package/lib/resources/promotions.js +1 -0
- package/lib/resources/refunds.d.ts +1 -0
- package/lib/resources/refunds.js +1 -0
- package/lib/resources/return_line_items.d.ts +1 -0
- package/lib/resources/return_line_items.js +1 -0
- package/lib/resources/returns.d.ts +1 -0
- package/lib/resources/returns.js +1 -0
- package/lib/resources/shipments.d.ts +1 -0
- package/lib/resources/shipments.js +1 -0
- package/lib/resources/shipping_categories.d.ts +1 -0
- package/lib/resources/shipping_categories.js +1 -0
- package/lib/resources/shipping_methods.d.ts +1 -0
- package/lib/resources/shipping_methods.js +1 -0
- package/lib/resources/shipping_zones.d.ts +1 -0
- package/lib/resources/shipping_zones.js +1 -0
- package/lib/resources/sku_list_items.d.ts +1 -0
- package/lib/resources/sku_list_items.js +1 -0
- package/lib/resources/sku_list_promotion_rules.d.ts +1 -0
- package/lib/resources/sku_list_promotion_rules.js +1 -0
- package/lib/resources/sku_lists.d.ts +1 -0
- package/lib/resources/sku_lists.js +1 -0
- package/lib/resources/sku_options.d.ts +1 -0
- package/lib/resources/sku_options.js +1 -0
- package/lib/resources/skus.d.ts +1 -0
- package/lib/resources/skus.js +1 -0
- package/lib/resources/stock_items.d.ts +1 -0
- package/lib/resources/stock_items.js +1 -0
- package/lib/resources/stock_line_items.d.ts +1 -0
- package/lib/resources/stock_line_items.js +1 -0
- package/lib/resources/stock_locations.d.ts +1 -0
- package/lib/resources/stock_locations.js +1 -0
- package/lib/resources/stock_transfers.d.ts +1 -0
- package/lib/resources/stock_transfers.js +1 -0
- package/lib/resources/stripe_gateways.d.ts +1 -0
- package/lib/resources/stripe_gateways.js +1 -0
- package/lib/resources/stripe_payments.d.ts +1 -0
- package/lib/resources/stripe_payments.js +1 -0
- package/lib/resources/tax_calculators.d.ts +1 -0
- package/lib/resources/tax_calculators.js +1 -0
- package/lib/resources/tax_categories.d.ts +1 -0
- package/lib/resources/tax_categories.js +1 -0
- package/lib/resources/tax_rules.d.ts +1 -0
- package/lib/resources/tax_rules.js +1 -0
- package/lib/resources/taxjar_accounts.d.ts +1 -0
- package/lib/resources/taxjar_accounts.js +1 -0
- package/lib/resources/transactions.d.ts +1 -0
- package/lib/resources/transactions.js +1 -0
- package/lib/resources/voids.d.ts +1 -0
- package/lib/resources/voids.js +1 -0
- package/lib/resources/webhooks.d.ts +1 -0
- package/lib/resources/webhooks.js +1 -0
- package/lib/resources/wire_transfers.d.ts +1 -0
- package/lib/resources/wire_transfers.js +1 -0
- package/lib/static.d.ts +1 -0
- package/lib/static.js +1 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/util.d.ts +2 -0
- package/lib/util.js +1 -0
- package/package.json +1 -1
@@ -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 { Bundle } from './bundles';
|
4
4
|
import { CarrierAccount } from './carrier_accounts';
|
5
5
|
import { CustomerGroup } from './customer_groups';
|
@@ -30,97 +30,97 @@ import { StockItem } from './stock_items';
|
|
30
30
|
import { StockLocation } from './stock_locations';
|
31
31
|
import { TaxCalculator } from './tax_calculators';
|
32
32
|
import { TaxCategory } from './tax_categories';
|
33
|
-
declare type AttachmentRel =
|
33
|
+
declare type AttachmentRel = ResourceRel & {
|
34
34
|
type: typeof Attachments.TYPE;
|
35
35
|
};
|
36
|
-
declare type BundleRel =
|
36
|
+
declare type BundleRel = ResourceRel & {
|
37
37
|
type: 'bundles';
|
38
38
|
};
|
39
|
-
declare type CarrierAccountRel =
|
39
|
+
declare type CarrierAccountRel = ResourceRel & {
|
40
40
|
type: 'carrier_accounts';
|
41
41
|
};
|
42
|
-
declare type CustomerGroupRel =
|
42
|
+
declare type CustomerGroupRel = ResourceRel & {
|
43
43
|
type: 'customer_groups';
|
44
44
|
};
|
45
|
-
declare type CustomerRel =
|
45
|
+
declare type CustomerRel = ResourceRel & {
|
46
46
|
type: 'customers';
|
47
47
|
};
|
48
|
-
declare type DeliveryLeadTimeRel =
|
48
|
+
declare type DeliveryLeadTimeRel = ResourceRel & {
|
49
49
|
type: 'delivery_lead_times';
|
50
50
|
};
|
51
|
-
declare type GeocoderRel =
|
51
|
+
declare type GeocoderRel = ResourceRel & {
|
52
52
|
type: 'geocoders';
|
53
53
|
};
|
54
|
-
declare type GiftCardRecipientRel =
|
54
|
+
declare type GiftCardRecipientRel = ResourceRel & {
|
55
55
|
type: 'gift_card_recipients';
|
56
56
|
};
|
57
|
-
declare type GiftCardRel =
|
57
|
+
declare type GiftCardRel = ResourceRel & {
|
58
58
|
type: 'gift_cards';
|
59
59
|
};
|
60
|
-
declare type InventoryModelRel =
|
60
|
+
declare type InventoryModelRel = ResourceRel & {
|
61
61
|
type: 'inventory_models';
|
62
62
|
};
|
63
|
-
declare type MarketRel =
|
63
|
+
declare type MarketRel = ResourceRel & {
|
64
64
|
type: 'markets';
|
65
65
|
};
|
66
|
-
declare type MerchantRel =
|
66
|
+
declare type MerchantRel = ResourceRel & {
|
67
67
|
type: 'merchants';
|
68
68
|
};
|
69
|
-
declare type BillingInfoValidationRuleRel =
|
69
|
+
declare type BillingInfoValidationRuleRel = ResourceRel & {
|
70
70
|
type: 'billing_info_validation_rules';
|
71
71
|
};
|
72
|
-
declare type OrderRel =
|
72
|
+
declare type OrderRel = ResourceRel & {
|
73
73
|
type: 'orders';
|
74
74
|
};
|
75
|
-
declare type PackageRel =
|
75
|
+
declare type PackageRel = ResourceRel & {
|
76
76
|
type: 'packages';
|
77
77
|
};
|
78
|
-
declare type ParcelRel =
|
78
|
+
declare type ParcelRel = ResourceRel & {
|
79
79
|
type: 'parcels';
|
80
80
|
};
|
81
|
-
declare type PaymentMethodRel =
|
81
|
+
declare type PaymentMethodRel = ResourceRel & {
|
82
82
|
type: 'payment_methods';
|
83
83
|
};
|
84
|
-
declare type PriceListRel =
|
84
|
+
declare type PriceListRel = ResourceRel & {
|
85
85
|
type: 'price_lists';
|
86
86
|
};
|
87
|
-
declare type PriceRel =
|
87
|
+
declare type PriceRel = ResourceRel & {
|
88
88
|
type: 'prices';
|
89
89
|
};
|
90
|
-
declare type PromotionRel =
|
90
|
+
declare type PromotionRel = ResourceRel & {
|
91
91
|
type: 'promotions';
|
92
92
|
};
|
93
|
-
declare type ReturnRel =
|
93
|
+
declare type ReturnRel = ResourceRel & {
|
94
94
|
type: 'returns';
|
95
95
|
};
|
96
|
-
declare type ShipmentRel =
|
96
|
+
declare type ShipmentRel = ResourceRel & {
|
97
97
|
type: 'shipments';
|
98
98
|
};
|
99
|
-
declare type ShippingCategoryRel =
|
99
|
+
declare type ShippingCategoryRel = ResourceRel & {
|
100
100
|
type: 'shipping_categories';
|
101
101
|
};
|
102
|
-
declare type ShippingMethodRel =
|
102
|
+
declare type ShippingMethodRel = ResourceRel & {
|
103
103
|
type: 'shipping_methods';
|
104
104
|
};
|
105
|
-
declare type ShippingZoneRel =
|
105
|
+
declare type ShippingZoneRel = ResourceRel & {
|
106
106
|
type: 'shipping_zones';
|
107
107
|
};
|
108
|
-
declare type SkuOptionRel =
|
108
|
+
declare type SkuOptionRel = ResourceRel & {
|
109
109
|
type: 'sku_options';
|
110
110
|
};
|
111
|
-
declare type SkuRel =
|
111
|
+
declare type SkuRel = ResourceRel & {
|
112
112
|
type: 'skus';
|
113
113
|
};
|
114
|
-
declare type StockItemRel =
|
114
|
+
declare type StockItemRel = ResourceRel & {
|
115
115
|
type: 'stock_items';
|
116
116
|
};
|
117
|
-
declare type StockLocationRel =
|
117
|
+
declare type StockLocationRel = ResourceRel & {
|
118
118
|
type: 'stock_locations';
|
119
119
|
};
|
120
|
-
declare type TaxCalculatorRel =
|
120
|
+
declare type TaxCalculatorRel = ResourceRel & {
|
121
121
|
type: 'tax_calculators';
|
122
122
|
};
|
123
|
-
declare type TaxCategoryRel =
|
123
|
+
declare type TaxCategoryRel = ResourceRel & {
|
124
124
|
type: 'tax_categories';
|
125
125
|
};
|
126
126
|
interface Attachment extends Resource {
|
@@ -149,7 +149,7 @@ declare class Attachments extends ApiResource {
|
|
149
149
|
update(resource: AttachmentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Attachment>;
|
150
150
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
151
151
|
isAttachment(resource: any): resource is Attachment;
|
152
|
-
relationship(id: string | ResourceId): AttachmentRel;
|
152
|
+
relationship(id: string | ResourceId | null): AttachmentRel;
|
153
153
|
type(): string;
|
154
154
|
}
|
155
155
|
export default Attachments;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class
|
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)}isAttachment(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="attachments";export default r;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourceUpdate, 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
5
|
import { Void } from './voids';
|
6
|
-
declare type AuthorizationRel =
|
6
|
+
declare type AuthorizationRel = ResourceRel & {
|
7
7
|
type: typeof Authorizations.TYPE;
|
8
8
|
};
|
9
9
|
interface Authorization extends Resource {
|
@@ -47,7 +47,7 @@ declare class Authorizations extends ApiResource {
|
|
47
47
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
48
48
|
update(resource: AuthorizationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
49
49
|
isAuthorization(resource: any): resource is Authorization;
|
50
|
-
relationship(id: string | ResourceId): AuthorizationRel;
|
50
|
+
relationship(id: string | ResourceId | null): AuthorizationRel;
|
51
51
|
type(): string;
|
52
52
|
}
|
53
53
|
export default Authorizations;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as p}from"../resource";class t extends p{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}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)}isAuthorization(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="authorizations";export default t;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { TaxCategory } from './tax_categories';
|
4
4
|
import { Market } from './markets';
|
5
5
|
import { Attachment } from './attachments';
|
6
|
-
declare type AvalaraAccountRel =
|
6
|
+
declare type AvalaraAccountRel = ResourceRel & {
|
7
7
|
type: typeof AvalaraAccounts.TYPE;
|
8
8
|
};
|
9
|
-
declare type TaxCategoryRel =
|
9
|
+
declare type TaxCategoryRel = ResourceRel & {
|
10
10
|
type: 'tax_categories';
|
11
11
|
};
|
12
12
|
interface AvalaraAccount extends Resource {
|
@@ -42,7 +42,7 @@ declare class AvalaraAccounts extends ApiResource {
|
|
42
42
|
update(resource: AvalaraAccountUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AvalaraAccount>;
|
43
43
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
44
44
|
isAvalaraAccount(resource: any): resource is AvalaraAccount;
|
45
|
-
relationship(id: string | ResourceId): AvalaraAccountRel;
|
45
|
+
relationship(id: string | ResourceId | null): AvalaraAccountRel;
|
46
46
|
type(): string;
|
47
47
|
}
|
48
48
|
export default AvalaraAccounts;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
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)}isAvalaraAccount(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="avalara_accounts";export default t;
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { Market } from './markets';
|
4
|
-
declare type BillingInfoValidationRuleRel =
|
4
|
+
declare type BillingInfoValidationRuleRel = ResourceRel & {
|
5
5
|
type: typeof BillingInfoValidationRules.TYPE;
|
6
6
|
};
|
7
|
-
declare type MarketRel =
|
7
|
+
declare type MarketRel = ResourceRel & {
|
8
8
|
type: 'markets';
|
9
9
|
};
|
10
10
|
interface BillingInfoValidationRule extends Resource {
|
@@ -24,7 +24,7 @@ declare class BillingInfoValidationRules extends ApiResource {
|
|
24
24
|
update(resource: BillingInfoValidationRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
25
25
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
26
26
|
isBillingInfoValidationRule(resource: any): resource is BillingInfoValidationRule;
|
27
|
-
relationship(id: string | ResourceId): BillingInfoValidationRuleRel;
|
27
|
+
relationship(id: string | ResourceId | null): BillingInfoValidationRuleRel;
|
28
28
|
type(): string;
|
29
29
|
}
|
30
30
|
export default BillingInfoValidationRules;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as c}from"../resource";class t extends c{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)}isBillingInfoValidationRule(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="billing_info_validation_rules";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 { Address } from './addresses';
|
4
4
|
import { Attachment } from './attachments';
|
5
|
-
declare type BingGeocoderRel =
|
5
|
+
declare type BingGeocoderRel = ResourceRel & {
|
6
6
|
type: typeof BingGeocoders.TYPE;
|
7
7
|
};
|
8
8
|
interface BingGeocoder extends Resource {
|
@@ -26,7 +26,7 @@ declare class BingGeocoders extends ApiResource {
|
|
26
26
|
update(resource: BingGeocoderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
27
27
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
28
28
|
isBingGeocoder(resource: any): resource is BingGeocoder;
|
29
|
-
relationship(id: string | ResourceId): BingGeocoderRel;
|
29
|
+
relationship(id: string | ResourceId | null): BingGeocoderRel;
|
30
30
|
type(): string;
|
31
31
|
}
|
32
32
|
export default BingGeocoders;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as a}from"../resource";class e extends a{async list(t,s){return this.resources.list({type:e.TYPE},t,s)}async create(t,s,r){return this.resources.create(Object.assign(Object.assign({},t),{type:e.TYPE}),s,r)}async retrieve(t,s,r){return this.resources.retrieve({type:e.TYPE,id:t},s,r)}async update(t,s,r){return this.resources.update(Object.assign(Object.assign({},t),{type:e.TYPE}),s,r)}async delete(t,s){await this.resources.delete({type:e.TYPE,id:t},s)}isBingGeocoder(t){return t.type&&t.type===e.TYPE}relationship(t){return t===null||typeof t=="string"?{id:t,type:e.TYPE}:{id:t.id,type:e.TYPE}}type(){return e.TYPE}}e.TYPE="bing_geocoders";export default e;
|
@@ -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 { PaymentMethod } from './payment_methods';
|
4
4
|
import { BraintreePayment } from './braintree_payments';
|
5
|
-
declare type BraintreeGatewayRel =
|
5
|
+
declare type BraintreeGatewayRel = ResourceRel & {
|
6
6
|
type: typeof BraintreeGateways.TYPE;
|
7
7
|
};
|
8
|
-
declare type BraintreePaymentRel =
|
8
|
+
declare type BraintreePaymentRel = ResourceRel & {
|
9
9
|
type: 'braintree_payments';
|
10
10
|
};
|
11
11
|
interface BraintreeGateway extends Resource {
|
@@ -47,7 +47,7 @@ declare class BraintreeGateways extends ApiResource {
|
|
47
47
|
update(resource: BraintreeGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreeGateway>;
|
48
48
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
49
49
|
isBraintreeGateway(resource: any): resource is BraintreeGateway;
|
50
|
-
relationship(id: string | ResourceId): BraintreeGatewayRel;
|
50
|
+
relationship(id: string | ResourceId | null): BraintreeGatewayRel;
|
51
51
|
type(): string;
|
52
52
|
}
|
53
53
|
export default BraintreeGateways;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as c}from"../resource";class t extends c{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)}isBraintreeGateway(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="braintree_gateways";export default t;
|
@@ -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 BraintreePaymentRel =
|
5
|
+
declare type BraintreePaymentRel = ResourceRel & {
|
6
6
|
type: typeof BraintreePayments.TYPE;
|
7
7
|
};
|
8
|
-
declare type OrderRel =
|
8
|
+
declare type OrderRel = ResourceRel & {
|
9
9
|
type: 'orders';
|
10
10
|
};
|
11
11
|
interface BraintreePayment extends Resource {
|
@@ -38,7 +38,7 @@ declare class BraintreePayments extends ApiResource {
|
|
38
38
|
update(resource: BraintreePaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreePayment>;
|
39
39
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
40
40
|
isBraintreePayment(resource: any): resource is BraintreePayment;
|
41
|
-
relationship(id: string | ResourceId): BraintreePaymentRel;
|
41
|
+
relationship(id: string | ResourceId | null): BraintreePaymentRel;
|
42
42
|
type(): string;
|
43
43
|
}
|
44
44
|
export default BraintreePayments;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as p}from"../resource";class t extends p{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)}isBraintreePayment(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="braintree_payments";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 { Market } from './markets';
|
4
4
|
import { SkuList } from './sku_lists';
|
5
5
|
import { Sku } from './skus';
|
6
6
|
import { Attachment } from './attachments';
|
7
|
-
declare type BundleRel =
|
7
|
+
declare type BundleRel = ResourceRel & {
|
8
8
|
type: typeof Bundles.TYPE;
|
9
9
|
};
|
10
|
-
declare type MarketRel =
|
10
|
+
declare type MarketRel = ResourceRel & {
|
11
11
|
type: 'markets';
|
12
12
|
};
|
13
|
-
declare type SkuListRel =
|
13
|
+
declare type SkuListRel = ResourceRel & {
|
14
14
|
type: 'sku_lists';
|
15
15
|
};
|
16
16
|
interface Bundle extends Resource {
|
@@ -63,7 +63,7 @@ declare class Bundles extends ApiResource {
|
|
63
63
|
update(resource: BundleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
|
64
64
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
65
65
|
isBundle(resource: any): resource is Bundle;
|
66
|
-
relationship(id: string | ResourceId): BundleRel;
|
66
|
+
relationship(id: string | ResourceId | null): BundleRel;
|
67
67
|
type(): string;
|
68
68
|
}
|
69
69
|
export default Bundles;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class
|
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)}isBundle(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="bundles";export default t;
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
2
|
-
import {
|
1
|
+
import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { Order } from './orders';
|
4
4
|
import { Authorization } from './authorizations';
|
5
5
|
import { Refund } from './refunds';
|
6
|
-
declare type CaptureRel =
|
6
|
+
declare type CaptureRel = ResourceRel & {
|
7
7
|
type: typeof Captures.TYPE;
|
8
8
|
};
|
9
9
|
interface Capture extends Resource {
|
@@ -38,7 +38,7 @@ declare class Captures extends ApiResource {
|
|
38
38
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
|
39
39
|
update(resource: CaptureUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
|
40
40
|
isCapture(resource: any): resource is Capture;
|
41
|
-
relationship(id: string | ResourceId): CaptureRel;
|
41
|
+
relationship(id: string | ResourceId | null): CaptureRel;
|
42
42
|
type(): string;
|
43
43
|
}
|
44
44
|
export default Captures;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as n}from"../resource";class t extends n{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}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)}isCapture(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="captures";export default t;
|
@@ -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 { Market } from './markets';
|
4
4
|
import { Attachment } from './attachments';
|
5
|
-
declare type CarrierAccountRel =
|
5
|
+
declare type CarrierAccountRel = ResourceRel & {
|
6
6
|
type: typeof CarrierAccounts.TYPE;
|
7
7
|
};
|
8
8
|
interface CarrierAccount extends Resource {
|
@@ -17,7 +17,7 @@ declare class CarrierAccounts extends ApiResource {
|
|
17
17
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CarrierAccount>>;
|
18
18
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CarrierAccount>;
|
19
19
|
isCarrierAccount(resource: any): resource is CarrierAccount;
|
20
|
-
relationship(id: string | ResourceId): CarrierAccountRel;
|
20
|
+
relationship(id: string | ResourceId | null): CarrierAccountRel;
|
21
21
|
type(): string;
|
22
22
|
}
|
23
23
|
export default CarrierAccounts;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as s}from"../resource";class t extends s{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async retrieve(e,r,p){return this.resources.retrieve({type:t.TYPE,id:e},r,p)}isCarrierAccount(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="carrier_accounts";export default t;
|
@@ -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 { PaymentMethod } from './payment_methods';
|
4
4
|
import { CheckoutComPayment } from './checkout_com_payments';
|
5
|
-
declare type CheckoutComGatewayRel =
|
5
|
+
declare type CheckoutComGatewayRel = ResourceRel & {
|
6
6
|
type: typeof CheckoutComGateways.TYPE;
|
7
7
|
};
|
8
|
-
declare type CheckoutComPaymentRel =
|
8
|
+
declare type CheckoutComPaymentRel = ResourceRel & {
|
9
9
|
type: 'checkout_com_payments';
|
10
10
|
};
|
11
11
|
interface CheckoutComGateway extends Resource {
|
@@ -36,7 +36,7 @@ declare class CheckoutComGateways extends ApiResource {
|
|
36
36
|
update(resource: CheckoutComGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComGateway>;
|
37
37
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
38
38
|
isCheckoutComGateway(resource: any): resource is CheckoutComGateway;
|
39
|
-
relationship(id: string | ResourceId): CheckoutComGatewayRel;
|
39
|
+
relationship(id: string | ResourceId | null): CheckoutComGatewayRel;
|
40
40
|
type(): string;
|
41
41
|
}
|
42
42
|
export default CheckoutComGateways;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as n}from"../resource";class r extends n{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}isCheckoutComGateway(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="checkout_com_gateways";export default r;
|
@@ -1,21 +1,25 @@
|
|
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 CheckoutComPaymentRel =
|
5
|
+
declare type CheckoutComPaymentRel = ResourceRel & {
|
6
6
|
type: typeof CheckoutComPayments.TYPE;
|
7
7
|
};
|
8
|
-
declare type OrderRel =
|
8
|
+
declare type OrderRel = ResourceRel & {
|
9
9
|
type: 'orders';
|
10
10
|
};
|
11
11
|
interface CheckoutComPayment extends Resource {
|
12
|
+
public_key?: string;
|
12
13
|
payment_type?: string;
|
13
14
|
token?: string;
|
14
15
|
session_id?: string;
|
16
|
+
success_url?: string;
|
17
|
+
failure_url?: string;
|
15
18
|
source_id?: string;
|
16
19
|
customer_token?: string;
|
17
20
|
redirect_uri?: string;
|
18
21
|
payment_response?: object;
|
22
|
+
mismatched_amounts?: boolean;
|
19
23
|
order?: Order;
|
20
24
|
payment_gateway?: PaymentGateway;
|
21
25
|
}
|
@@ -23,12 +27,16 @@ interface CheckoutComPaymentCreate extends ResourceCreate {
|
|
23
27
|
payment_type: string;
|
24
28
|
token: string;
|
25
29
|
session_id?: string;
|
30
|
+
success_url?: string;
|
31
|
+
failure_url?: string;
|
26
32
|
order: OrderRel;
|
27
33
|
}
|
28
34
|
interface CheckoutComPaymentUpdate extends ResourceUpdate {
|
29
35
|
payment_type?: string;
|
30
36
|
token?: string;
|
31
37
|
session_id?: string;
|
38
|
+
success_url?: string;
|
39
|
+
failure_url?: string;
|
32
40
|
_details?: boolean;
|
33
41
|
_refresh?: boolean;
|
34
42
|
order?: OrderRel;
|
@@ -41,7 +49,7 @@ declare class CheckoutComPayments extends ApiResource {
|
|
41
49
|
update(resource: CheckoutComPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
|
42
50
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
43
51
|
isCheckoutComPayment(resource: any): resource is CheckoutComPayment;
|
44
|
-
relationship(id: string | ResourceId): CheckoutComPaymentRel;
|
52
|
+
relationship(id: string | ResourceId | null): CheckoutComPaymentRel;
|
45
53
|
type(): string;
|
46
54
|
}
|
47
55
|
export default CheckoutComPayments;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class
|
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 create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}isCheckoutComPayment(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="checkout_com_payments";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 { PercentageDiscountPromotion } from './percentage_discount_promotions';
|
4
4
|
import { FreeShippingPromotion } from './free_shipping_promotions';
|
5
5
|
import { FixedAmountPromotion } from './fixed_amount_promotions';
|
@@ -7,28 +7,28 @@ import { FreeGiftPromotion } from './free_gift_promotions';
|
|
7
7
|
import { FixedPricePromotion } from './fixed_price_promotions';
|
8
8
|
import { ExternalPromotion } from './external_promotions';
|
9
9
|
import { Coupon } from './coupons';
|
10
|
-
declare type CouponCodesPromotionRuleRel =
|
10
|
+
declare type CouponCodesPromotionRuleRel = ResourceRel & {
|
11
11
|
type: typeof CouponCodesPromotionRules.TYPE;
|
12
12
|
};
|
13
|
-
declare type PercentageDiscountPromotionRel =
|
13
|
+
declare type PercentageDiscountPromotionRel = ResourceRel & {
|
14
14
|
type: 'percentage_discount_promotions';
|
15
15
|
};
|
16
|
-
declare type FreeShippingPromotionRel =
|
16
|
+
declare type FreeShippingPromotionRel = ResourceRel & {
|
17
17
|
type: 'free_shipping_promotions';
|
18
18
|
};
|
19
|
-
declare type FixedAmountPromotionRel =
|
19
|
+
declare type FixedAmountPromotionRel = ResourceRel & {
|
20
20
|
type: 'fixed_amount_promotions';
|
21
21
|
};
|
22
|
-
declare type FreeGiftPromotionRel =
|
22
|
+
declare type FreeGiftPromotionRel = ResourceRel & {
|
23
23
|
type: 'free_gift_promotions';
|
24
24
|
};
|
25
|
-
declare type FixedPricePromotionRel =
|
25
|
+
declare type FixedPricePromotionRel = ResourceRel & {
|
26
26
|
type: 'fixed_price_promotions';
|
27
27
|
};
|
28
|
-
declare type ExternalPromotionRel =
|
28
|
+
declare type ExternalPromotionRel = ResourceRel & {
|
29
29
|
type: 'external_promotions';
|
30
30
|
};
|
31
|
-
declare type CouponRel =
|
31
|
+
declare type CouponRel = ResourceRel & {
|
32
32
|
type: 'coupons';
|
33
33
|
};
|
34
34
|
interface CouponCodesPromotionRule extends Resource {
|
@@ -51,7 +51,7 @@ declare class CouponCodesPromotionRules extends ApiResource {
|
|
51
51
|
update(resource: CouponCodesPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
52
52
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
53
53
|
isCouponCodesPromotionRule(resource: any): resource is CouponCodesPromotionRule;
|
54
|
-
relationship(id: string | ResourceId): CouponCodesPromotionRuleRel;
|
54
|
+
relationship(id: string | ResourceId | null): CouponCodesPromotionRuleRel;
|
55
55
|
type(): string;
|
56
56
|
}
|
57
57
|
export default CouponCodesPromotionRules;
|
@@ -1 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as c}from"../resource";class t extends c{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)}isCouponCodesPromotionRule(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="coupon_codes_promotion_rules";export default t;
|