@commercelayer/sdk 5.15.0 → 5.17.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/api.d.ts +6 -5
- package/lib/cjs/api.js +5 -2
- package/lib/cjs/commercelayer.d.ts +3 -2
- package/lib/cjs/commercelayer.js +2 -1
- package/lib/cjs/error.d.ts +3 -2
- package/lib/cjs/error.js +2 -1
- package/lib/cjs/model.d.ts +1 -0
- package/lib/cjs/resource.d.ts +1 -0
- package/lib/cjs/resource.js +16 -0
- package/lib/cjs/resources/addresses.d.ts +1 -0
- package/lib/cjs/resources/addresses.js +3 -0
- package/lib/cjs/resources/adjustments.d.ts +1 -0
- package/lib/cjs/resources/adjustments.js +3 -0
- package/lib/cjs/resources/adyen_gateways.d.ts +1 -0
- package/lib/cjs/resources/adyen_gateways.js +3 -0
- package/lib/cjs/resources/adyen_payments.d.ts +1 -0
- package/lib/cjs/resources/adyen_payments.js +3 -0
- package/lib/cjs/resources/application.d.ts +1 -0
- package/lib/cjs/resources/application.js +3 -0
- package/lib/cjs/resources/attachments.d.ts +1 -0
- package/lib/cjs/resources/attachments.js +3 -0
- package/lib/cjs/resources/authorizations.d.ts +1 -0
- package/lib/cjs/resources/authorizations.js +3 -0
- package/lib/cjs/resources/avalara_accounts.d.ts +1 -0
- package/lib/cjs/resources/avalara_accounts.js +3 -0
- package/lib/cjs/resources/axerve_gateways.d.ts +1 -0
- package/lib/cjs/resources/axerve_gateways.js +3 -0
- package/lib/cjs/resources/axerve_payments.d.ts +1 -0
- package/lib/cjs/resources/axerve_payments.js +3 -0
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -0
- package/lib/cjs/resources/billing_info_validation_rules.js +3 -0
- package/lib/cjs/resources/bing_geocoders.d.ts +1 -0
- package/lib/cjs/resources/bing_geocoders.js +3 -0
- package/lib/cjs/resources/braintree_gateways.d.ts +1 -0
- package/lib/cjs/resources/braintree_gateways.js +3 -0
- package/lib/cjs/resources/braintree_payments.d.ts +1 -0
- package/lib/cjs/resources/braintree_payments.js +3 -0
- package/lib/cjs/resources/bundles.d.ts +1 -0
- package/lib/cjs/resources/bundles.js +3 -0
- package/lib/cjs/resources/buy_x_pay_y_promotions.d.ts +1 -0
- package/lib/cjs/resources/buy_x_pay_y_promotions.js +3 -0
- package/lib/cjs/resources/captures.d.ts +1 -0
- package/lib/cjs/resources/captures.js +3 -0
- package/lib/cjs/resources/carrier_accounts.d.ts +1 -0
- package/lib/cjs/resources/carrier_accounts.js +3 -0
- package/lib/cjs/resources/checkout_com_gateways.d.ts +1 -0
- package/lib/cjs/resources/checkout_com_gateways.js +3 -0
- package/lib/cjs/resources/checkout_com_payments.d.ts +1 -0
- package/lib/cjs/resources/checkout_com_payments.js +3 -0
- package/lib/cjs/resources/cleanups.d.ts +1 -0
- package/lib/cjs/resources/cleanups.js +3 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -0
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +3 -0
- package/lib/cjs/resources/coupon_recipients.d.ts +1 -0
- package/lib/cjs/resources/coupon_recipients.js +3 -0
- package/lib/cjs/resources/coupons.d.ts +1 -0
- package/lib/cjs/resources/coupons.js +3 -0
- package/lib/cjs/resources/custom_promotion_rules.d.ts +1 -0
- package/lib/cjs/resources/custom_promotion_rules.js +3 -0
- package/lib/cjs/resources/customer_addresses.d.ts +1 -0
- package/lib/cjs/resources/customer_addresses.js +3 -0
- package/lib/cjs/resources/customer_groups.d.ts +1 -0
- package/lib/cjs/resources/customer_groups.js +3 -0
- package/lib/cjs/resources/customer_password_resets.d.ts +1 -0
- package/lib/cjs/resources/customer_password_resets.js +3 -0
- package/lib/cjs/resources/customer_payment_sources.d.ts +1 -0
- package/lib/cjs/resources/customer_payment_sources.js +3 -0
- package/lib/cjs/resources/customer_subscriptions.d.ts +1 -0
- package/lib/cjs/resources/customer_subscriptions.js +3 -0
- package/lib/cjs/resources/customers.d.ts +1 -0
- package/lib/cjs/resources/customers.js +3 -0
- package/lib/cjs/resources/delivery_lead_times.d.ts +1 -0
- package/lib/cjs/resources/delivery_lead_times.js +3 -0
- package/lib/cjs/resources/event_callbacks.d.ts +1 -0
- package/lib/cjs/resources/event_callbacks.js +3 -0
- package/lib/cjs/resources/events.d.ts +1 -0
- package/lib/cjs/resources/events.js +3 -0
- package/lib/cjs/resources/exports.d.ts +1 -0
- package/lib/cjs/resources/exports.js +3 -0
- package/lib/cjs/resources/external_gateways.d.ts +1 -0
- package/lib/cjs/resources/external_gateways.js +3 -0
- package/lib/cjs/resources/external_payments.d.ts +1 -0
- package/lib/cjs/resources/external_payments.js +3 -0
- package/lib/cjs/resources/external_promotions.d.ts +1 -0
- package/lib/cjs/resources/external_promotions.js +3 -0
- package/lib/cjs/resources/external_tax_calculators.d.ts +1 -0
- package/lib/cjs/resources/external_tax_calculators.js +3 -0
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -0
- package/lib/cjs/resources/fixed_amount_promotions.js +3 -0
- package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -0
- package/lib/cjs/resources/fixed_price_promotions.js +3 -0
- package/lib/cjs/resources/free_gift_promotions.d.ts +1 -0
- package/lib/cjs/resources/free_gift_promotions.js +3 -0
- package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -0
- package/lib/cjs/resources/free_shipping_promotions.js +3 -0
- package/lib/cjs/resources/geocoders.d.ts +1 -0
- package/lib/cjs/resources/geocoders.js +3 -0
- package/lib/cjs/resources/gift_card_recipients.d.ts +1 -0
- package/lib/cjs/resources/gift_card_recipients.js +3 -0
- package/lib/cjs/resources/gift_cards.d.ts +1 -0
- package/lib/cjs/resources/gift_cards.js +3 -0
- package/lib/cjs/resources/google_geocoders.d.ts +1 -0
- package/lib/cjs/resources/google_geocoders.js +3 -0
- package/lib/cjs/resources/imports.d.ts +1 -0
- package/lib/cjs/resources/imports.js +3 -0
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -0
- package/lib/cjs/resources/in_stock_subscriptions.js +3 -0
- package/lib/cjs/resources/inventory_models.d.ts +1 -0
- package/lib/cjs/resources/inventory_models.js +3 -0
- package/lib/cjs/resources/inventory_return_locations.d.ts +1 -0
- package/lib/cjs/resources/inventory_return_locations.js +3 -0
- package/lib/cjs/resources/inventory_stock_locations.d.ts +1 -0
- package/lib/cjs/resources/inventory_stock_locations.js +3 -0
- package/lib/cjs/resources/klarna_gateways.d.ts +1 -0
- package/lib/cjs/resources/klarna_gateways.js +3 -0
- package/lib/cjs/resources/klarna_payments.d.ts +1 -0
- package/lib/cjs/resources/klarna_payments.js +3 -0
- package/lib/cjs/resources/line_item_options.d.ts +1 -0
- package/lib/cjs/resources/line_item_options.js +3 -0
- package/lib/cjs/resources/line_items.d.ts +1 -0
- package/lib/cjs/resources/line_items.js +3 -0
- package/lib/cjs/resources/manual_gateways.d.ts +1 -0
- package/lib/cjs/resources/manual_gateways.js +3 -0
- package/lib/cjs/resources/manual_tax_calculators.d.ts +1 -0
- package/lib/cjs/resources/manual_tax_calculators.js +3 -0
- package/lib/cjs/resources/markets.d.ts +1 -0
- package/lib/cjs/resources/markets.js +3 -0
- package/lib/cjs/resources/merchants.d.ts +1 -0
- package/lib/cjs/resources/merchants.js +3 -0
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -0
- package/lib/cjs/resources/order_amount_promotion_rules.js +3 -0
- package/lib/cjs/resources/order_copies.d.ts +1 -0
- package/lib/cjs/resources/order_copies.js +3 -0
- package/lib/cjs/resources/order_factories.d.ts +1 -0
- package/lib/cjs/resources/order_factories.js +3 -0
- package/lib/cjs/resources/order_subscription_items.d.ts +1 -0
- package/lib/cjs/resources/order_subscription_items.js +3 -0
- package/lib/cjs/resources/order_subscriptions.d.ts +1 -0
- package/lib/cjs/resources/order_subscriptions.js +3 -0
- package/lib/cjs/resources/order_validation_rules.d.ts +1 -0
- package/lib/cjs/resources/order_validation_rules.js +3 -0
- package/lib/cjs/resources/orders.d.ts +4 -0
- package/lib/cjs/resources/orders.js +7 -0
- package/lib/cjs/resources/organization.d.ts +1 -0
- package/lib/cjs/resources/organization.js +3 -0
- package/lib/cjs/resources/packages.d.ts +1 -0
- package/lib/cjs/resources/packages.js +3 -0
- package/lib/cjs/resources/parcel_line_items.d.ts +1 -0
- package/lib/cjs/resources/parcel_line_items.js +3 -0
- package/lib/cjs/resources/parcels.d.ts +1 -0
- package/lib/cjs/resources/parcels.js +3 -0
- package/lib/cjs/resources/payment_gateways.d.ts +1 -0
- package/lib/cjs/resources/payment_gateways.js +3 -0
- package/lib/cjs/resources/payment_methods.d.ts +4 -3
- package/lib/cjs/resources/payment_methods.js +3 -0
- package/lib/cjs/resources/payment_options.d.ts +45 -0
- package/lib/cjs/resources/payment_options.js +36 -0
- package/lib/cjs/resources/paypal_gateways.d.ts +1 -0
- package/lib/cjs/resources/paypal_gateways.js +3 -0
- package/lib/cjs/resources/paypal_payments.d.ts +1 -0
- package/lib/cjs/resources/paypal_payments.js +3 -0
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -0
- package/lib/cjs/resources/percentage_discount_promotions.js +3 -0
- package/lib/cjs/resources/price_frequency_tiers.d.ts +1 -0
- package/lib/cjs/resources/price_frequency_tiers.js +3 -0
- package/lib/cjs/resources/price_lists.d.ts +1 -0
- package/lib/cjs/resources/price_lists.js +3 -0
- package/lib/cjs/resources/price_tiers.d.ts +1 -0
- package/lib/cjs/resources/price_tiers.js +3 -0
- package/lib/cjs/resources/price_volume_tiers.d.ts +1 -0
- package/lib/cjs/resources/price_volume_tiers.js +3 -0
- package/lib/cjs/resources/prices.d.ts +1 -0
- package/lib/cjs/resources/prices.js +3 -0
- package/lib/cjs/resources/promotion_rules.d.ts +1 -0
- package/lib/cjs/resources/promotion_rules.js +3 -0
- package/lib/cjs/resources/promotions.d.ts +1 -0
- package/lib/cjs/resources/promotions.js +3 -0
- package/lib/cjs/resources/recurring_order_copies.d.ts +1 -0
- package/lib/cjs/resources/recurring_order_copies.js +3 -0
- package/lib/cjs/resources/refunds.d.ts +1 -0
- package/lib/cjs/resources/refunds.js +3 -0
- package/lib/cjs/resources/reserved_stocks.d.ts +1 -0
- package/lib/cjs/resources/reserved_stocks.js +3 -0
- package/lib/cjs/resources/return_line_items.d.ts +1 -0
- package/lib/cjs/resources/return_line_items.js +3 -0
- package/lib/cjs/resources/returns.d.ts +1 -0
- package/lib/cjs/resources/returns.js +3 -0
- package/lib/cjs/resources/satispay_gateways.d.ts +1 -0
- package/lib/cjs/resources/satispay_gateways.js +3 -0
- package/lib/cjs/resources/satispay_payments.d.ts +1 -0
- package/lib/cjs/resources/satispay_payments.js +3 -0
- package/lib/cjs/resources/shipments.d.ts +1 -0
- package/lib/cjs/resources/shipments.js +3 -0
- package/lib/cjs/resources/shipping_categories.d.ts +1 -0
- package/lib/cjs/resources/shipping_categories.js +3 -0
- package/lib/cjs/resources/shipping_method_tiers.d.ts +1 -0
- package/lib/cjs/resources/shipping_method_tiers.js +3 -0
- package/lib/cjs/resources/shipping_methods.d.ts +1 -0
- package/lib/cjs/resources/shipping_methods.js +3 -0
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +1 -0
- package/lib/cjs/resources/shipping_weight_tiers.js +3 -0
- package/lib/cjs/resources/shipping_zones.d.ts +1 -0
- package/lib/cjs/resources/shipping_zones.js +3 -0
- package/lib/cjs/resources/sku_list_items.d.ts +1 -0
- package/lib/cjs/resources/sku_list_items.js +3 -0
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -0
- package/lib/cjs/resources/sku_list_promotion_rules.js +3 -0
- package/lib/cjs/resources/sku_lists.d.ts +1 -0
- package/lib/cjs/resources/sku_lists.js +3 -0
- package/lib/cjs/resources/sku_options.d.ts +1 -0
- package/lib/cjs/resources/sku_options.js +3 -0
- package/lib/cjs/resources/skus.d.ts +1 -0
- package/lib/cjs/resources/skus.js +3 -0
- package/lib/cjs/resources/stock_items.d.ts +1 -0
- package/lib/cjs/resources/stock_items.js +3 -0
- package/lib/cjs/resources/stock_line_items.d.ts +1 -0
- package/lib/cjs/resources/stock_line_items.js +3 -0
- package/lib/cjs/resources/stock_locations.d.ts +1 -0
- package/lib/cjs/resources/stock_locations.js +3 -0
- package/lib/cjs/resources/stock_reservations.d.ts +1 -0
- package/lib/cjs/resources/stock_reservations.js +3 -0
- package/lib/cjs/resources/stock_transfers.d.ts +1 -0
- package/lib/cjs/resources/stock_transfers.js +3 -0
- package/lib/cjs/resources/stripe_gateways.d.ts +1 -0
- package/lib/cjs/resources/stripe_gateways.js +3 -0
- package/lib/cjs/resources/stripe_payments.d.ts +1 -0
- package/lib/cjs/resources/stripe_payments.js +3 -0
- package/lib/cjs/resources/subscription_models.d.ts +1 -0
- package/lib/cjs/resources/subscription_models.js +3 -0
- package/lib/cjs/resources/tags.d.ts +1 -0
- package/lib/cjs/resources/tags.js +3 -0
- package/lib/cjs/resources/tax_calculators.d.ts +1 -0
- package/lib/cjs/resources/tax_calculators.js +3 -0
- package/lib/cjs/resources/tax_categories.d.ts +1 -0
- package/lib/cjs/resources/tax_categories.js +3 -0
- package/lib/cjs/resources/tax_rules.d.ts +1 -0
- package/lib/cjs/resources/tax_rules.js +3 -0
- package/lib/cjs/resources/taxjar_accounts.d.ts +1 -0
- package/lib/cjs/resources/taxjar_accounts.js +3 -0
- package/lib/cjs/resources/transactions.d.ts +1 -0
- package/lib/cjs/resources/transactions.js +3 -0
- package/lib/cjs/resources/versions.d.ts +1 -0
- package/lib/cjs/resources/versions.js +3 -0
- package/lib/cjs/resources/voids.d.ts +1 -0
- package/lib/cjs/resources/voids.js +3 -0
- package/lib/cjs/resources/webhooks.d.ts +1 -0
- package/lib/cjs/resources/webhooks.js +3 -0
- package/lib/cjs/resources/wire_transfers.d.ts +1 -0
- package/lib/cjs/resources/wire_transfers.js +3 -0
- package/lib/esm/api.d.ts +6 -5
- package/lib/esm/api.js +2 -0
- package/lib/esm/commercelayer.d.ts +3 -2
- package/lib/esm/commercelayer.js +2 -1
- package/lib/esm/error.d.ts +3 -2
- package/lib/esm/error.js +2 -1
- package/lib/esm/model.d.ts +1 -0
- package/lib/esm/resource.d.ts +1 -0
- package/lib/esm/resource.js +16 -0
- package/lib/esm/resources/addresses.d.ts +1 -0
- package/lib/esm/resources/addresses.js +3 -0
- package/lib/esm/resources/adjustments.d.ts +1 -0
- package/lib/esm/resources/adjustments.js +3 -0
- package/lib/esm/resources/adyen_gateways.d.ts +1 -0
- package/lib/esm/resources/adyen_gateways.js +3 -0
- package/lib/esm/resources/adyen_payments.d.ts +1 -0
- package/lib/esm/resources/adyen_payments.js +3 -0
- package/lib/esm/resources/application.d.ts +1 -0
- package/lib/esm/resources/application.js +3 -0
- package/lib/esm/resources/attachments.d.ts +1 -0
- package/lib/esm/resources/attachments.js +3 -0
- package/lib/esm/resources/authorizations.d.ts +1 -0
- package/lib/esm/resources/authorizations.js +3 -0
- package/lib/esm/resources/avalara_accounts.d.ts +1 -0
- package/lib/esm/resources/avalara_accounts.js +3 -0
- package/lib/esm/resources/axerve_gateways.d.ts +1 -0
- package/lib/esm/resources/axerve_gateways.js +3 -0
- package/lib/esm/resources/axerve_payments.d.ts +1 -0
- package/lib/esm/resources/axerve_payments.js +3 -0
- package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -0
- package/lib/esm/resources/billing_info_validation_rules.js +3 -0
- package/lib/esm/resources/bing_geocoders.d.ts +1 -0
- package/lib/esm/resources/bing_geocoders.js +3 -0
- package/lib/esm/resources/braintree_gateways.d.ts +1 -0
- package/lib/esm/resources/braintree_gateways.js +3 -0
- package/lib/esm/resources/braintree_payments.d.ts +1 -0
- package/lib/esm/resources/braintree_payments.js +3 -0
- package/lib/esm/resources/bundles.d.ts +1 -0
- package/lib/esm/resources/bundles.js +3 -0
- package/lib/esm/resources/buy_x_pay_y_promotions.d.ts +1 -0
- package/lib/esm/resources/buy_x_pay_y_promotions.js +3 -0
- package/lib/esm/resources/captures.d.ts +1 -0
- package/lib/esm/resources/captures.js +3 -0
- package/lib/esm/resources/carrier_accounts.d.ts +1 -0
- package/lib/esm/resources/carrier_accounts.js +3 -0
- package/lib/esm/resources/checkout_com_gateways.d.ts +1 -0
- package/lib/esm/resources/checkout_com_gateways.js +3 -0
- package/lib/esm/resources/checkout_com_payments.d.ts +1 -0
- package/lib/esm/resources/checkout_com_payments.js +3 -0
- package/lib/esm/resources/cleanups.d.ts +1 -0
- package/lib/esm/resources/cleanups.js +3 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.js +3 -0
- package/lib/esm/resources/coupon_recipients.d.ts +1 -0
- package/lib/esm/resources/coupon_recipients.js +3 -0
- package/lib/esm/resources/coupons.d.ts +1 -0
- package/lib/esm/resources/coupons.js +3 -0
- package/lib/esm/resources/custom_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/custom_promotion_rules.js +3 -0
- package/lib/esm/resources/customer_addresses.d.ts +1 -0
- package/lib/esm/resources/customer_addresses.js +3 -0
- package/lib/esm/resources/customer_groups.d.ts +1 -0
- package/lib/esm/resources/customer_groups.js +3 -0
- package/lib/esm/resources/customer_password_resets.d.ts +1 -0
- package/lib/esm/resources/customer_password_resets.js +3 -0
- package/lib/esm/resources/customer_payment_sources.d.ts +1 -0
- package/lib/esm/resources/customer_payment_sources.js +3 -0
- package/lib/esm/resources/customer_subscriptions.d.ts +1 -0
- package/lib/esm/resources/customer_subscriptions.js +3 -0
- package/lib/esm/resources/customers.d.ts +1 -0
- package/lib/esm/resources/customers.js +3 -0
- package/lib/esm/resources/delivery_lead_times.d.ts +1 -0
- package/lib/esm/resources/delivery_lead_times.js +3 -0
- package/lib/esm/resources/event_callbacks.d.ts +1 -0
- package/lib/esm/resources/event_callbacks.js +3 -0
- package/lib/esm/resources/events.d.ts +1 -0
- package/lib/esm/resources/events.js +3 -0
- package/lib/esm/resources/exports.d.ts +1 -0
- package/lib/esm/resources/exports.js +3 -0
- package/lib/esm/resources/external_gateways.d.ts +1 -0
- package/lib/esm/resources/external_gateways.js +3 -0
- package/lib/esm/resources/external_payments.d.ts +1 -0
- package/lib/esm/resources/external_payments.js +3 -0
- package/lib/esm/resources/external_promotions.d.ts +1 -0
- package/lib/esm/resources/external_promotions.js +3 -0
- package/lib/esm/resources/external_tax_calculators.d.ts +1 -0
- package/lib/esm/resources/external_tax_calculators.js +3 -0
- package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -0
- package/lib/esm/resources/fixed_amount_promotions.js +3 -0
- package/lib/esm/resources/fixed_price_promotions.d.ts +1 -0
- package/lib/esm/resources/fixed_price_promotions.js +3 -0
- package/lib/esm/resources/free_gift_promotions.d.ts +1 -0
- package/lib/esm/resources/free_gift_promotions.js +3 -0
- package/lib/esm/resources/free_shipping_promotions.d.ts +1 -0
- package/lib/esm/resources/free_shipping_promotions.js +3 -0
- package/lib/esm/resources/geocoders.d.ts +1 -0
- package/lib/esm/resources/geocoders.js +3 -0
- package/lib/esm/resources/gift_card_recipients.d.ts +1 -0
- package/lib/esm/resources/gift_card_recipients.js +3 -0
- package/lib/esm/resources/gift_cards.d.ts +1 -0
- package/lib/esm/resources/gift_cards.js +3 -0
- package/lib/esm/resources/google_geocoders.d.ts +1 -0
- package/lib/esm/resources/google_geocoders.js +3 -0
- package/lib/esm/resources/imports.d.ts +1 -0
- package/lib/esm/resources/imports.js +3 -0
- package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -0
- package/lib/esm/resources/in_stock_subscriptions.js +3 -0
- package/lib/esm/resources/inventory_models.d.ts +1 -0
- package/lib/esm/resources/inventory_models.js +3 -0
- package/lib/esm/resources/inventory_return_locations.d.ts +1 -0
- package/lib/esm/resources/inventory_return_locations.js +3 -0
- package/lib/esm/resources/inventory_stock_locations.d.ts +1 -0
- package/lib/esm/resources/inventory_stock_locations.js +3 -0
- package/lib/esm/resources/klarna_gateways.d.ts +1 -0
- package/lib/esm/resources/klarna_gateways.js +3 -0
- package/lib/esm/resources/klarna_payments.d.ts +1 -0
- package/lib/esm/resources/klarna_payments.js +3 -0
- package/lib/esm/resources/line_item_options.d.ts +1 -0
- package/lib/esm/resources/line_item_options.js +3 -0
- package/lib/esm/resources/line_items.d.ts +1 -0
- package/lib/esm/resources/line_items.js +3 -0
- package/lib/esm/resources/manual_gateways.d.ts +1 -0
- package/lib/esm/resources/manual_gateways.js +3 -0
- package/lib/esm/resources/manual_tax_calculators.d.ts +1 -0
- package/lib/esm/resources/manual_tax_calculators.js +3 -0
- package/lib/esm/resources/markets.d.ts +1 -0
- package/lib/esm/resources/markets.js +3 -0
- package/lib/esm/resources/merchants.d.ts +1 -0
- package/lib/esm/resources/merchants.js +3 -0
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/order_amount_promotion_rules.js +3 -0
- package/lib/esm/resources/order_copies.d.ts +1 -0
- package/lib/esm/resources/order_copies.js +3 -0
- package/lib/esm/resources/order_factories.d.ts +1 -0
- package/lib/esm/resources/order_factories.js +3 -0
- package/lib/esm/resources/order_subscription_items.d.ts +1 -0
- package/lib/esm/resources/order_subscription_items.js +3 -0
- package/lib/esm/resources/order_subscriptions.d.ts +1 -0
- package/lib/esm/resources/order_subscriptions.js +3 -0
- package/lib/esm/resources/order_validation_rules.d.ts +1 -0
- package/lib/esm/resources/order_validation_rules.js +3 -0
- package/lib/esm/resources/orders.d.ts +4 -0
- package/lib/esm/resources/orders.js +7 -0
- package/lib/esm/resources/organization.d.ts +1 -0
- package/lib/esm/resources/organization.js +3 -0
- package/lib/esm/resources/packages.d.ts +1 -0
- package/lib/esm/resources/packages.js +3 -0
- package/lib/esm/resources/parcel_line_items.d.ts +1 -0
- package/lib/esm/resources/parcel_line_items.js +3 -0
- package/lib/esm/resources/parcels.d.ts +1 -0
- package/lib/esm/resources/parcels.js +3 -0
- package/lib/esm/resources/payment_gateways.d.ts +1 -0
- package/lib/esm/resources/payment_gateways.js +3 -0
- package/lib/esm/resources/payment_methods.d.ts +4 -3
- package/lib/esm/resources/payment_methods.js +3 -0
- package/lib/esm/resources/payment_options.d.ts +45 -0
- package/lib/esm/resources/payment_options.js +34 -0
- package/lib/esm/resources/paypal_gateways.d.ts +1 -0
- package/lib/esm/resources/paypal_gateways.js +3 -0
- package/lib/esm/resources/paypal_payments.d.ts +1 -0
- package/lib/esm/resources/paypal_payments.js +3 -0
- package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -0
- package/lib/esm/resources/percentage_discount_promotions.js +3 -0
- package/lib/esm/resources/price_frequency_tiers.d.ts +1 -0
- package/lib/esm/resources/price_frequency_tiers.js +3 -0
- package/lib/esm/resources/price_lists.d.ts +1 -0
- package/lib/esm/resources/price_lists.js +3 -0
- package/lib/esm/resources/price_tiers.d.ts +1 -0
- package/lib/esm/resources/price_tiers.js +3 -0
- package/lib/esm/resources/price_volume_tiers.d.ts +1 -0
- package/lib/esm/resources/price_volume_tiers.js +3 -0
- package/lib/esm/resources/prices.d.ts +1 -0
- package/lib/esm/resources/prices.js +3 -0
- package/lib/esm/resources/promotion_rules.d.ts +1 -0
- package/lib/esm/resources/promotion_rules.js +3 -0
- package/lib/esm/resources/promotions.d.ts +1 -0
- package/lib/esm/resources/promotions.js +3 -0
- package/lib/esm/resources/recurring_order_copies.d.ts +1 -0
- package/lib/esm/resources/recurring_order_copies.js +3 -0
- package/lib/esm/resources/refunds.d.ts +1 -0
- package/lib/esm/resources/refunds.js +3 -0
- package/lib/esm/resources/reserved_stocks.d.ts +1 -0
- package/lib/esm/resources/reserved_stocks.js +3 -0
- package/lib/esm/resources/return_line_items.d.ts +1 -0
- package/lib/esm/resources/return_line_items.js +3 -0
- package/lib/esm/resources/returns.d.ts +1 -0
- package/lib/esm/resources/returns.js +3 -0
- package/lib/esm/resources/satispay_gateways.d.ts +1 -0
- package/lib/esm/resources/satispay_gateways.js +3 -0
- package/lib/esm/resources/satispay_payments.d.ts +1 -0
- package/lib/esm/resources/satispay_payments.js +3 -0
- package/lib/esm/resources/shipments.d.ts +1 -0
- package/lib/esm/resources/shipments.js +3 -0
- package/lib/esm/resources/shipping_categories.d.ts +1 -0
- package/lib/esm/resources/shipping_categories.js +3 -0
- package/lib/esm/resources/shipping_method_tiers.d.ts +1 -0
- package/lib/esm/resources/shipping_method_tiers.js +3 -0
- package/lib/esm/resources/shipping_methods.d.ts +1 -0
- package/lib/esm/resources/shipping_methods.js +3 -0
- package/lib/esm/resources/shipping_weight_tiers.d.ts +1 -0
- package/lib/esm/resources/shipping_weight_tiers.js +3 -0
- package/lib/esm/resources/shipping_zones.d.ts +1 -0
- package/lib/esm/resources/shipping_zones.js +3 -0
- package/lib/esm/resources/sku_list_items.d.ts +1 -0
- package/lib/esm/resources/sku_list_items.js +3 -0
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -0
- package/lib/esm/resources/sku_list_promotion_rules.js +3 -0
- package/lib/esm/resources/sku_lists.d.ts +1 -0
- package/lib/esm/resources/sku_lists.js +3 -0
- package/lib/esm/resources/sku_options.d.ts +1 -0
- package/lib/esm/resources/sku_options.js +3 -0
- package/lib/esm/resources/skus.d.ts +1 -0
- package/lib/esm/resources/skus.js +3 -0
- package/lib/esm/resources/stock_items.d.ts +1 -0
- package/lib/esm/resources/stock_items.js +3 -0
- package/lib/esm/resources/stock_line_items.d.ts +1 -0
- package/lib/esm/resources/stock_line_items.js +3 -0
- package/lib/esm/resources/stock_locations.d.ts +1 -0
- package/lib/esm/resources/stock_locations.js +3 -0
- package/lib/esm/resources/stock_reservations.d.ts +1 -0
- package/lib/esm/resources/stock_reservations.js +3 -0
- package/lib/esm/resources/stock_transfers.d.ts +1 -0
- package/lib/esm/resources/stock_transfers.js +3 -0
- package/lib/esm/resources/stripe_gateways.d.ts +1 -0
- package/lib/esm/resources/stripe_gateways.js +3 -0
- package/lib/esm/resources/stripe_payments.d.ts +1 -0
- package/lib/esm/resources/stripe_payments.js +3 -0
- package/lib/esm/resources/subscription_models.d.ts +1 -0
- package/lib/esm/resources/subscription_models.js +3 -0
- package/lib/esm/resources/tags.d.ts +1 -0
- package/lib/esm/resources/tags.js +3 -0
- package/lib/esm/resources/tax_calculators.d.ts +1 -0
- package/lib/esm/resources/tax_calculators.js +3 -0
- package/lib/esm/resources/tax_categories.d.ts +1 -0
- package/lib/esm/resources/tax_categories.js +3 -0
- package/lib/esm/resources/tax_rules.d.ts +1 -0
- package/lib/esm/resources/tax_rules.js +3 -0
- package/lib/esm/resources/taxjar_accounts.d.ts +1 -0
- package/lib/esm/resources/taxjar_accounts.js +3 -0
- package/lib/esm/resources/transactions.d.ts +1 -0
- package/lib/esm/resources/transactions.js +3 -0
- package/lib/esm/resources/versions.d.ts +1 -0
- package/lib/esm/resources/versions.js +3 -0
- package/lib/esm/resources/voids.d.ts +1 -0
- package/lib/esm/resources/voids.js +3 -0
- package/lib/esm/resources/webhooks.d.ts +1 -0
- package/lib/esm/resources/webhooks.js +3 -0
- package/lib/esm/resources/wire_transfers.d.ts +1 -0
- package/lib/esm/resources/wire_transfers.js +3 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
@@ -36,6 +36,7 @@ declare class Exports extends ApiResource<Export> {
|
|
36
36
|
isExport(resource: any): resource is Export;
|
37
37
|
relationship(id: string | ResourceId | null): ExportRel;
|
38
38
|
type(): ExportType;
|
39
|
+
parse(payload: any): Export | Export[];
|
39
40
|
}
|
40
41
|
export default Exports;
|
41
42
|
export type { Export, ExportCreate, ExportType };
|
@@ -48,6 +48,7 @@ declare class ExternalGateways extends ApiResource<ExternalGateway> {
|
|
48
48
|
isExternalGateway(resource: any): resource is ExternalGateway;
|
49
49
|
relationship(id: string | ResourceId | null): ExternalGatewayRel;
|
50
50
|
type(): ExternalGatewayType;
|
51
|
+
parse(payload: any): ExternalGateway | ExternalGateway[];
|
51
52
|
}
|
52
53
|
export default ExternalGateways;
|
53
54
|
export type { ExternalGateway, ExternalGatewayCreate, ExternalGatewayUpdate, ExternalGatewayType };
|
@@ -43,6 +43,7 @@ declare class ExternalPayments extends ApiResource<ExternalPayment> {
|
|
43
43
|
isExternalPayment(resource: any): resource is ExternalPayment;
|
44
44
|
relationship(id: string | ResourceId | null): ExternalPaymentRel;
|
45
45
|
type(): ExternalPaymentType;
|
46
|
+
parse(payload: any): ExternalPayment | ExternalPayment[];
|
46
47
|
}
|
47
48
|
export default ExternalPayments;
|
48
49
|
export type { ExternalPayment, ExternalPaymentCreate, ExternalPaymentUpdate, ExternalPaymentType };
|
@@ -127,6 +127,7 @@ declare class ExternalPromotions extends ApiResource<ExternalPromotion> {
|
|
127
127
|
isExternalPromotion(resource: any): resource is ExternalPromotion;
|
128
128
|
relationship(id: string | ResourceId | null): ExternalPromotionRel;
|
129
129
|
type(): ExternalPromotionType;
|
130
|
+
parse(payload: any): ExternalPromotion | ExternalPromotion[];
|
130
131
|
}
|
131
132
|
export default ExternalPromotions;
|
132
133
|
export type { ExternalPromotion, ExternalPromotionCreate, ExternalPromotionUpdate, ExternalPromotionType };
|
@@ -36,6 +36,7 @@ declare class ExternalTaxCalculators extends ApiResource<ExternalTaxCalculator>
|
|
36
36
|
isExternalTaxCalculator(resource: any): resource is ExternalTaxCalculator;
|
37
37
|
relationship(id: string | ResourceId | null): ExternalTaxCalculatorRel;
|
38
38
|
type(): ExternalTaxCalculatorType;
|
39
|
+
parse(payload: any): ExternalTaxCalculator | ExternalTaxCalculator[];
|
39
40
|
}
|
40
41
|
export default ExternalTaxCalculators;
|
41
42
|
export type { ExternalTaxCalculator, ExternalTaxCalculatorCreate, ExternalTaxCalculatorUpdate, ExternalTaxCalculatorType };
|
@@ -30,6 +30,9 @@ class ExternalTaxCalculators extends ApiResource {
|
|
30
30
|
type() {
|
31
31
|
return ExternalTaxCalculators.TYPE;
|
32
32
|
}
|
33
|
+
parse(payload) {
|
34
|
+
return super.parse(payload);
|
35
|
+
}
|
33
36
|
}
|
34
37
|
ExternalTaxCalculators.TYPE = 'external_tax_calculators';
|
35
38
|
export default ExternalTaxCalculators;
|
@@ -128,6 +128,7 @@ declare class FixedAmountPromotions extends ApiResource<FixedAmountPromotion> {
|
|
128
128
|
isFixedAmountPromotion(resource: any): resource is FixedAmountPromotion;
|
129
129
|
relationship(id: string | ResourceId | null): FixedAmountPromotionRel;
|
130
130
|
type(): FixedAmountPromotionType;
|
131
|
+
parse(payload: any): FixedAmountPromotion | FixedAmountPromotion[];
|
131
132
|
}
|
132
133
|
export default FixedAmountPromotions;
|
133
134
|
export type { FixedAmountPromotion, FixedAmountPromotionCreate, FixedAmountPromotionUpdate, FixedAmountPromotionType };
|
@@ -68,6 +68,9 @@ class FixedAmountPromotions extends ApiResource {
|
|
68
68
|
type() {
|
69
69
|
return FixedAmountPromotions.TYPE;
|
70
70
|
}
|
71
|
+
parse(payload) {
|
72
|
+
return super.parse(payload);
|
73
|
+
}
|
71
74
|
}
|
72
75
|
FixedAmountPromotions.TYPE = 'fixed_amount_promotions';
|
73
76
|
export default FixedAmountPromotions;
|
@@ -128,6 +128,7 @@ declare class FixedPricePromotions extends ApiResource<FixedPricePromotion> {
|
|
128
128
|
isFixedPricePromotion(resource: any): resource is FixedPricePromotion;
|
129
129
|
relationship(id: string | ResourceId | null): FixedPricePromotionRel;
|
130
130
|
type(): FixedPricePromotionType;
|
131
|
+
parse(payload: any): FixedPricePromotion | FixedPricePromotion[];
|
131
132
|
}
|
132
133
|
export default FixedPricePromotions;
|
133
134
|
export type { FixedPricePromotion, FixedPricePromotionCreate, FixedPricePromotionUpdate, FixedPricePromotionType };
|
@@ -68,6 +68,9 @@ class FixedPricePromotions extends ApiResource {
|
|
68
68
|
type() {
|
69
69
|
return FixedPricePromotions.TYPE;
|
70
70
|
}
|
71
|
+
parse(payload) {
|
72
|
+
return super.parse(payload);
|
73
|
+
}
|
71
74
|
}
|
72
75
|
FixedPricePromotions.TYPE = 'fixed_price_promotions';
|
73
76
|
export default FixedPricePromotions;
|
@@ -126,6 +126,7 @@ declare class FreeGiftPromotions extends ApiResource<FreeGiftPromotion> {
|
|
126
126
|
isFreeGiftPromotion(resource: any): resource is FreeGiftPromotion;
|
127
127
|
relationship(id: string | ResourceId | null): FreeGiftPromotionRel;
|
128
128
|
type(): FreeGiftPromotionType;
|
129
|
+
parse(payload: any): FreeGiftPromotion | FreeGiftPromotion[];
|
129
130
|
}
|
130
131
|
export default FreeGiftPromotions;
|
131
132
|
export type { FreeGiftPromotion, FreeGiftPromotionCreate, FreeGiftPromotionUpdate, FreeGiftPromotionType };
|
@@ -115,6 +115,7 @@ declare class FreeShippingPromotions extends ApiResource<FreeShippingPromotion>
|
|
115
115
|
isFreeShippingPromotion(resource: any): resource is FreeShippingPromotion;
|
116
116
|
relationship(id: string | ResourceId | null): FreeShippingPromotionRel;
|
117
117
|
type(): FreeShippingPromotionType;
|
118
|
+
parse(payload: any): FreeShippingPromotion | FreeShippingPromotion[];
|
118
119
|
}
|
119
120
|
export default FreeShippingPromotions;
|
120
121
|
export type { FreeShippingPromotion, FreeShippingPromotionCreate, FreeShippingPromotionUpdate, FreeShippingPromotionType };
|
@@ -64,6 +64,9 @@ class FreeShippingPromotions extends ApiResource {
|
|
64
64
|
type() {
|
65
65
|
return FreeShippingPromotions.TYPE;
|
66
66
|
}
|
67
|
+
parse(payload) {
|
68
|
+
return super.parse(payload);
|
69
|
+
}
|
67
70
|
}
|
68
71
|
FreeShippingPromotions.TYPE = 'free_shipping_promotions';
|
69
72
|
export default FreeShippingPromotions;
|
@@ -20,6 +20,7 @@ declare class Geocoders extends ApiResource<Geocoder> {
|
|
20
20
|
isGeocoder(resource: any): resource is Geocoder;
|
21
21
|
relationship(id: string | ResourceId | null): GeocoderRel;
|
22
22
|
type(): GeocoderType;
|
23
|
+
parse(payload: any): Geocoder | Geocoder[];
|
23
24
|
}
|
24
25
|
export default Geocoders;
|
25
26
|
export type { Geocoder, GeocoderType };
|
@@ -43,6 +43,7 @@ declare class GiftCardRecipients extends ApiResource<GiftCardRecipient> {
|
|
43
43
|
isGiftCardRecipient(resource: any): resource is GiftCardRecipient;
|
44
44
|
relationship(id: string | ResourceId | null): GiftCardRecipientRel;
|
45
45
|
type(): GiftCardRecipientType;
|
46
|
+
parse(payload: any): GiftCardRecipient | GiftCardRecipient[];
|
46
47
|
}
|
47
48
|
export default GiftCardRecipients;
|
48
49
|
export type { GiftCardRecipient, GiftCardRecipientCreate, GiftCardRecipientUpdate, GiftCardRecipientType };
|
@@ -96,6 +96,7 @@ declare class GiftCards extends ApiResource<GiftCard> {
|
|
96
96
|
isGiftCard(resource: any): resource is GiftCard;
|
97
97
|
relationship(id: string | ResourceId | null): GiftCardRel;
|
98
98
|
type(): GiftCardType;
|
99
|
+
parse(payload: any): GiftCard | GiftCard[];
|
99
100
|
}
|
100
101
|
export default GiftCards;
|
101
102
|
export type { GiftCard, GiftCardCreate, GiftCardUpdate, GiftCardType };
|
@@ -31,6 +31,7 @@ declare class GoogleGeocoders extends ApiResource<GoogleGeocoder> {
|
|
31
31
|
isGoogleGeocoder(resource: any): resource is GoogleGeocoder;
|
32
32
|
relationship(id: string | ResourceId | null): GoogleGeocoderRel;
|
33
33
|
type(): GoogleGeocoderType;
|
34
|
+
parse(payload: any): GoogleGeocoder | GoogleGeocoder[];
|
34
35
|
}
|
35
36
|
export default GoogleGeocoders;
|
36
37
|
export type { GoogleGeocoder, GoogleGeocoderCreate, GoogleGeocoderUpdate, GoogleGeocoderType };
|
@@ -41,6 +41,7 @@ declare class Imports extends ApiResource<Import> {
|
|
41
41
|
isImport(resource: any): resource is Import;
|
42
42
|
relationship(id: string | ResourceId | null): ImportRel;
|
43
43
|
type(): ImportType;
|
44
|
+
parse(payload: any): Import | Import[];
|
44
45
|
}
|
45
46
|
export default Imports;
|
46
47
|
export type { Import, ImportCreate, ImportType };
|
@@ -63,6 +63,7 @@ declare class InStockSubscriptions extends ApiResource<InStockSubscription> {
|
|
63
63
|
isInStockSubscription(resource: any): resource is InStockSubscription;
|
64
64
|
relationship(id: string | ResourceId | null): InStockSubscriptionRel;
|
65
65
|
type(): InStockSubscriptionType;
|
66
|
+
parse(payload: any): InStockSubscription | InStockSubscription[];
|
66
67
|
}
|
67
68
|
export default InStockSubscriptions;
|
68
69
|
export type { InStockSubscription, InStockSubscriptionCreate, InStockSubscriptionUpdate, InStockSubscriptionType };
|
@@ -44,6 +44,9 @@ class InStockSubscriptions extends ApiResource {
|
|
44
44
|
type() {
|
45
45
|
return InStockSubscriptions.TYPE;
|
46
46
|
}
|
47
|
+
parse(payload) {
|
48
|
+
return super.parse(payload);
|
49
|
+
}
|
47
50
|
}
|
48
51
|
InStockSubscriptions.TYPE = 'in_stock_subscriptions';
|
49
52
|
export default InStockSubscriptions;
|
@@ -44,6 +44,7 @@ declare class InventoryModels extends ApiResource<InventoryModel> {
|
|
44
44
|
isInventoryModel(resource: any): resource is InventoryModel;
|
45
45
|
relationship(id: string | ResourceId | null): InventoryModelRel;
|
46
46
|
type(): InventoryModelType;
|
47
|
+
parse(payload: any): InventoryModel | InventoryModel[];
|
47
48
|
}
|
48
49
|
export default InventoryModels;
|
49
50
|
export type { InventoryModel, InventoryModelCreate, InventoryModelUpdate, InventoryModelType };
|
@@ -42,6 +42,7 @@ declare class InventoryReturnLocations extends ApiResource<InventoryReturnLocati
|
|
42
42
|
isInventoryReturnLocation(resource: any): resource is InventoryReturnLocation;
|
43
43
|
relationship(id: string | ResourceId | null): InventoryReturnLocationRel;
|
44
44
|
type(): InventoryReturnLocationType;
|
45
|
+
parse(payload: any): InventoryReturnLocation | InventoryReturnLocation[];
|
45
46
|
}
|
46
47
|
export default InventoryReturnLocations;
|
47
48
|
export type { InventoryReturnLocation, InventoryReturnLocationCreate, InventoryReturnLocationUpdate, InventoryReturnLocationType };
|
@@ -30,6 +30,9 @@ class InventoryReturnLocations extends ApiResource {
|
|
30
30
|
type() {
|
31
31
|
return InventoryReturnLocations.TYPE;
|
32
32
|
}
|
33
|
+
parse(payload) {
|
34
|
+
return super.parse(payload);
|
35
|
+
}
|
33
36
|
}
|
34
37
|
InventoryReturnLocations.TYPE = 'inventory_return_locations';
|
35
38
|
export default InventoryReturnLocations;
|
@@ -45,6 +45,7 @@ declare class InventoryStockLocations extends ApiResource<InventoryStockLocation
|
|
45
45
|
isInventoryStockLocation(resource: any): resource is InventoryStockLocation;
|
46
46
|
relationship(id: string | ResourceId | null): InventoryStockLocationRel;
|
47
47
|
type(): InventoryStockLocationType;
|
48
|
+
parse(payload: any): InventoryStockLocation | InventoryStockLocation[];
|
48
49
|
}
|
49
50
|
export default InventoryStockLocations;
|
50
51
|
export type { InventoryStockLocation, InventoryStockLocationCreate, InventoryStockLocationUpdate, InventoryStockLocationType };
|
@@ -30,6 +30,9 @@ class InventoryStockLocations extends ApiResource {
|
|
30
30
|
type() {
|
31
31
|
return InventoryStockLocations.TYPE;
|
32
32
|
}
|
33
|
+
parse(payload) {
|
34
|
+
return super.parse(payload);
|
35
|
+
}
|
33
36
|
}
|
34
37
|
InventoryStockLocations.TYPE = 'inventory_stock_locations';
|
35
38
|
export default InventoryStockLocations;
|
@@ -43,6 +43,7 @@ declare class KlarnaGateways extends ApiResource<KlarnaGateway> {
|
|
43
43
|
isKlarnaGateway(resource: any): resource is KlarnaGateway;
|
44
44
|
relationship(id: string | ResourceId | null): KlarnaGatewayRel;
|
45
45
|
type(): KlarnaGatewayType;
|
46
|
+
parse(payload: any): KlarnaGateway | KlarnaGateway[];
|
46
47
|
}
|
47
48
|
export default KlarnaGateways;
|
48
49
|
export type { KlarnaGateway, KlarnaGatewayCreate, KlarnaGatewayUpdate, KlarnaGatewayType };
|
@@ -46,6 +46,7 @@ declare class KlarnaPayments extends ApiResource<KlarnaPayment> {
|
|
46
46
|
isKlarnaPayment(resource: any): resource is KlarnaPayment;
|
47
47
|
relationship(id: string | ResourceId | null): KlarnaPaymentRel;
|
48
48
|
type(): KlarnaPaymentType;
|
49
|
+
parse(payload: any): KlarnaPayment | KlarnaPayment[];
|
49
50
|
}
|
50
51
|
export default KlarnaPayments;
|
51
52
|
export type { KlarnaPayment, KlarnaPaymentCreate, KlarnaPaymentUpdate, KlarnaPaymentType };
|
@@ -64,6 +64,7 @@ declare class LineItemOptions extends ApiResource<LineItemOption> {
|
|
64
64
|
isLineItemOption(resource: any): resource is LineItemOption;
|
65
65
|
relationship(id: string | ResourceId | null): LineItemOptionRel;
|
66
66
|
type(): LineItemOptionType;
|
67
|
+
parse(payload: any): LineItemOption | LineItemOption[];
|
67
68
|
}
|
68
69
|
export default LineItemOptions;
|
69
70
|
export type { LineItemOption, LineItemOptionCreate, LineItemOptionUpdate, LineItemOptionType };
|
@@ -148,6 +148,7 @@ declare class LineItems extends ApiResource<LineItem> {
|
|
148
148
|
isLineItem(resource: any): resource is LineItem;
|
149
149
|
relationship(id: string | ResourceId | null): LineItemRel;
|
150
150
|
type(): LineItemType;
|
151
|
+
parse(payload: any): LineItem | LineItem[];
|
151
152
|
}
|
152
153
|
export default LineItems;
|
153
154
|
export type { LineItem, LineItemCreate, LineItemUpdate, LineItemType };
|
@@ -29,6 +29,7 @@ declare class ManualGateways extends ApiResource<ManualGateway> {
|
|
29
29
|
isManualGateway(resource: any): resource is ManualGateway;
|
30
30
|
relationship(id: string | ResourceId | null): ManualGatewayRel;
|
31
31
|
type(): ManualGatewayType;
|
32
|
+
parse(payload: any): ManualGateway | ManualGateway[];
|
32
33
|
}
|
33
34
|
export default ManualGateways;
|
34
35
|
export type { ManualGateway, ManualGatewayCreate, ManualGatewayUpdate, ManualGatewayType };
|
@@ -40,6 +40,7 @@ declare class ManualTaxCalculators extends ApiResource<ManualTaxCalculator> {
|
|
40
40
|
isManualTaxCalculator(resource: any): resource is ManualTaxCalculator;
|
41
41
|
relationship(id: string | ResourceId | null): ManualTaxCalculatorRel;
|
42
42
|
type(): ManualTaxCalculatorType;
|
43
|
+
parse(payload: any): ManualTaxCalculator | ManualTaxCalculator[];
|
43
44
|
}
|
44
45
|
export default ManualTaxCalculators;
|
45
46
|
export type { ManualTaxCalculator, ManualTaxCalculatorCreate, ManualTaxCalculatorUpdate, ManualTaxCalculatorType };
|
@@ -34,6 +34,9 @@ class ManualTaxCalculators extends ApiResource {
|
|
34
34
|
type() {
|
35
35
|
return ManualTaxCalculators.TYPE;
|
36
36
|
}
|
37
|
+
parse(payload) {
|
38
|
+
return super.parse(payload);
|
39
|
+
}
|
37
40
|
}
|
38
41
|
ManualTaxCalculators.TYPE = 'manual_tax_calculators';
|
39
42
|
export default ManualTaxCalculators;
|
@@ -97,6 +97,7 @@ declare class Markets extends ApiResource<Market> {
|
|
97
97
|
isMarket(resource: any): resource is Market;
|
98
98
|
relationship(id: string | ResourceId | null): MarketRel;
|
99
99
|
type(): MarketType;
|
100
|
+
parse(payload: any): Market | Market[];
|
100
101
|
}
|
101
102
|
export default Markets;
|
102
103
|
export type { Market, MarketCreate, MarketUpdate, MarketType };
|
@@ -37,6 +37,7 @@ declare class Merchants extends ApiResource<Merchant> {
|
|
37
37
|
isMerchant(resource: any): resource is Merchant;
|
38
38
|
relationship(id: string | ResourceId | null): MerchantRel;
|
39
39
|
type(): MerchantType;
|
40
|
+
parse(payload: any): Merchant | Merchant[];
|
40
41
|
}
|
41
42
|
export default Merchants;
|
42
43
|
export type { Merchant, MerchantCreate, MerchantUpdate, MerchantType };
|
@@ -62,6 +62,7 @@ declare class OrderAmountPromotionRules extends ApiResource<OrderAmountPromotion
|
|
62
62
|
isOrderAmountPromotionRule(resource: any): resource is OrderAmountPromotionRule;
|
63
63
|
relationship(id: string | ResourceId | null): OrderAmountPromotionRuleRel;
|
64
64
|
type(): OrderAmountPromotionRuleType;
|
65
|
+
parse(payload: any): OrderAmountPromotionRule | OrderAmountPromotionRule[];
|
65
66
|
}
|
66
67
|
export default OrderAmountPromotionRules;
|
67
68
|
export type { OrderAmountPromotionRule, OrderAmountPromotionRuleCreate, OrderAmountPromotionRuleUpdate, OrderAmountPromotionRuleType };
|
@@ -22,6 +22,9 @@ class OrderAmountPromotionRules extends ApiResource {
|
|
22
22
|
type() {
|
23
23
|
return OrderAmountPromotionRules.TYPE;
|
24
24
|
}
|
25
|
+
parse(payload) {
|
26
|
+
return super.parse(payload);
|
27
|
+
}
|
25
28
|
}
|
26
29
|
OrderAmountPromotionRules.TYPE = 'order_amount_promotion_rules';
|
27
30
|
export default OrderAmountPromotionRules;
|
@@ -46,6 +46,7 @@ declare class OrderCopies extends ApiResource<OrderCopy> {
|
|
46
46
|
isOrderCopy(resource: any): resource is OrderCopy;
|
47
47
|
relationship(id: string | ResourceId | null): OrderCopyRel;
|
48
48
|
type(): OrderCopyType;
|
49
|
+
parse(payload: any): OrderCopy | OrderCopy[];
|
49
50
|
}
|
50
51
|
export default OrderCopies;
|
51
52
|
export type { OrderCopy, OrderCopyCreate, OrderCopyUpdate, OrderCopyType };
|
@@ -29,6 +29,7 @@ declare class OrderFactories extends ApiResource<OrderFactory> {
|
|
29
29
|
isOrderFactory(resource: any): resource is OrderFactory;
|
30
30
|
relationship(id: string | ResourceId | null): OrderFactoryRel;
|
31
31
|
type(): OrderFactoryType;
|
32
|
+
parse(payload: any): OrderFactory | OrderFactory[];
|
32
33
|
}
|
33
34
|
export default OrderFactories;
|
34
35
|
export type { OrderFactory, OrderFactoryType };
|
@@ -63,6 +63,7 @@ declare class OrderSubscriptionItems extends ApiResource<OrderSubscriptionItem>
|
|
63
63
|
isOrderSubscriptionItem(resource: any): resource is OrderSubscriptionItem;
|
64
64
|
relationship(id: string | ResourceId | null): OrderSubscriptionItemRel;
|
65
65
|
type(): OrderSubscriptionItemType;
|
66
|
+
parse(payload: any): OrderSubscriptionItem | OrderSubscriptionItem[];
|
66
67
|
}
|
67
68
|
export default OrderSubscriptionItems;
|
68
69
|
export type { OrderSubscriptionItem, OrderSubscriptionItemCreate, OrderSubscriptionItemUpdate, OrderSubscriptionItemType };
|
@@ -26,6 +26,9 @@ class OrderSubscriptionItems extends ApiResource {
|
|
26
26
|
type() {
|
27
27
|
return OrderSubscriptionItems.TYPE;
|
28
28
|
}
|
29
|
+
parse(payload) {
|
30
|
+
return super.parse(payload);
|
31
|
+
}
|
29
32
|
}
|
30
33
|
OrderSubscriptionItems.TYPE = 'order_subscription_items';
|
31
34
|
export default OrderSubscriptionItems;
|
@@ -94,6 +94,7 @@ declare class OrderSubscriptions extends ApiResource<OrderSubscription> {
|
|
94
94
|
isOrderSubscription(resource: any): resource is OrderSubscription;
|
95
95
|
relationship(id: string | ResourceId | null): OrderSubscriptionRel;
|
96
96
|
type(): OrderSubscriptionType;
|
97
|
+
parse(payload: any): OrderSubscription | OrderSubscription[];
|
97
98
|
}
|
98
99
|
export default OrderSubscriptions;
|
99
100
|
export type { OrderSubscription, OrderSubscriptionCreate, OrderSubscriptionUpdate, OrderSubscriptionType };
|