@commercelayer/sdk 4.3.0 → 5.0.0-alpha.2
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/README.md +12 -10
- package/lib/{cjs/api.d.ts → api.d.ts} +0 -0
- package/lib/{esm/api.js → api.js} +0 -0
- package/lib/{cjs/client.d.ts → client.d.ts} +0 -0
- package/lib/client.js +1 -0
- package/lib/{cjs/commercelayer.d.ts → commercelayer.d.ts} +2 -2
- package/lib/{esm/commercelayer.js → commercelayer.js} +1 -1
- package/lib/{cjs/common.d.ts → common.d.ts} +0 -0
- package/lib/common.js +1 -0
- package/lib/{cjs/config.d.ts → config.d.ts} +0 -0
- package/lib/{esm/config.js → config.js} +0 -0
- package/lib/{cjs/debug.d.ts → debug.d.ts} +0 -0
- package/lib/{esm/debug.js → debug.js} +0 -0
- package/lib/{cjs/error.d.ts → error.d.ts} +0 -0
- package/lib/error.js +1 -0
- package/lib/{cjs/index.d.ts → index.d.ts} +0 -0
- package/lib/{esm/index.js → index.js} +0 -0
- package/lib/{cjs/interceptor.d.ts → interceptor.d.ts} +0 -0
- package/lib/{esm/interceptor.js → interceptor.js} +0 -0
- package/lib/{cjs/jsonapi.d.ts → jsonapi.d.ts} +0 -0
- package/lib/jsonapi.js +1 -0
- package/lib/{cjs/model.d.ts → model.d.ts} +0 -0
- package/lib/{esm/model.js → model.js} +0 -0
- package/lib/{cjs/query.d.ts → query.d.ts} +0 -0
- package/lib/{esm/query.js → query.js} +0 -0
- package/lib/{esm/resource.d.ts → resource.d.ts} +2 -0
- package/lib/resource.js +1 -0
- package/lib/{esm/resources → resources}/addresses.d.ts +1 -0
- package/lib/resources/addresses.js +1 -0
- package/lib/{cjs/resources → resources}/adjustments.d.ts +0 -0
- package/lib/resources/adjustments.js +1 -0
- package/lib/{esm/resources → resources}/adyen_gateways.d.ts +2 -0
- package/lib/resources/adyen_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/adyen_payments.d.ts +2 -0
- package/lib/resources/adyen_payments.js +1 -0
- package/lib/{cjs/resources → resources}/application.d.ts +0 -0
- package/lib/{esm/resources → resources}/application.js +0 -0
- package/lib/{cjs/resources → resources}/attachments.d.ts +0 -0
- package/lib/resources/attachments.js +1 -0
- package/lib/{cjs/resources → resources}/authorizations.d.ts +3 -0
- package/lib/resources/authorizations.js +1 -0
- package/lib/{esm/resources → resources}/avalara_accounts.d.ts +3 -0
- package/lib/resources/avalara_accounts.js +1 -0
- package/lib/{cjs/resources → resources}/billing_info_validation_rules.d.ts +1 -0
- package/lib/resources/billing_info_validation_rules.js +1 -0
- package/lib/{esm/resources → resources}/bing_geocoders.d.ts +2 -0
- package/lib/resources/bing_geocoders.js +1 -0
- package/lib/{cjs/resources → resources}/braintree_gateways.d.ts +2 -0
- package/lib/resources/braintree_gateways.js +1 -0
- package/lib/{esm/resources → resources}/braintree_payments.d.ts +2 -0
- package/lib/resources/braintree_payments.js +1 -0
- package/lib/{esm/resources → resources}/bundles.d.ts +4 -0
- package/lib/resources/bundles.js +1 -0
- package/lib/{esm/resources → resources}/captures.d.ts +3 -0
- package/lib/resources/captures.js +1 -0
- package/lib/{esm/resources → resources}/carrier_accounts.d.ts +2 -0
- package/lib/resources/carrier_accounts.js +1 -0
- package/lib/{esm/resources → resources}/checkout_com_gateways.d.ts +2 -0
- package/lib/resources/checkout_com_gateways.js +1 -0
- package/lib/{esm/resources → resources}/checkout_com_payments.d.ts +2 -0
- package/lib/resources/checkout_com_payments.js +1 -0
- package/lib/{esm/resources → resources}/coupon_codes_promotion_rules.d.ts +1 -0
- package/lib/resources/coupon_codes_promotion_rules.js +1 -0
- package/lib/{cjs/resources → resources}/coupon_recipients.d.ts +2 -0
- package/lib/resources/coupon_recipients.js +1 -0
- package/lib/{cjs/resources → resources}/coupons.d.ts +1 -0
- package/lib/resources/coupons.js +1 -0
- package/lib/{esm/resources → resources}/customer_addresses.d.ts +2 -0
- package/lib/resources/customer_addresses.js +1 -0
- package/lib/{esm/resources → resources}/customer_groups.d.ts +3 -0
- package/lib/resources/customer_groups.js +1 -0
- package/lib/{esm/resources → resources}/customer_password_resets.d.ts +1 -0
- package/lib/resources/customer_password_resets.js +1 -0
- package/lib/{cjs/resources → resources}/customer_payment_sources.d.ts +1 -0
- package/lib/resources/customer_payment_sources.js +1 -0
- package/lib/{cjs/resources → resources}/customer_subscriptions.d.ts +1 -0
- package/lib/resources/customer_subscriptions.js +1 -0
- package/lib/{esm/resources → resources}/customers.d.ts +8 -0
- package/lib/resources/customers.js +1 -0
- package/lib/{esm/resources → resources}/delivery_lead_times.d.ts +3 -0
- package/lib/resources/delivery_lead_times.js +1 -0
- package/lib/{cjs/resources → resources}/event_callbacks.d.ts +1 -0
- package/lib/resources/event_callbacks.js +1 -0
- package/lib/{esm/resources → resources}/external_gateways.d.ts +2 -0
- package/lib/resources/external_gateways.js +1 -0
- package/lib/{esm/resources → resources}/external_payments.d.ts +3 -0
- package/lib/resources/external_payments.js +1 -0
- package/lib/{esm/resources → resources}/external_promotions.d.ts +5 -0
- package/lib/resources/external_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/external_tax_calculators.d.ts +3 -0
- package/lib/resources/external_tax_calculators.js +1 -0
- package/lib/{esm/resources → resources}/fixed_amount_promotions.d.ts +5 -0
- package/lib/resources/fixed_amount_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/fixed_price_promotions.d.ts +7 -0
- package/lib/resources/fixed_price_promotions.js +1 -0
- package/lib/{esm/resources → resources}/free_gift_promotions.d.ts +7 -0
- package/lib/resources/free_gift_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/free_shipping_promotions.d.ts +5 -0
- package/lib/resources/free_shipping_promotions.js +1 -0
- package/lib/{esm/resources → resources}/geocoders.d.ts +2 -0
- package/lib/resources/geocoders.js +1 -0
- package/lib/{cjs/resources → resources}/gift_card_recipients.d.ts +2 -0
- package/lib/resources/gift_card_recipients.js +1 -0
- package/lib/{esm/resources → resources}/gift_cards.d.ts +3 -0
- package/lib/resources/gift_cards.js +1 -0
- package/lib/{cjs/resources → resources}/google_geocoders.d.ts +2 -0
- package/lib/resources/google_geocoders.js +1 -0
- package/lib/{cjs/resources → resources}/imports.d.ts +0 -0
- package/lib/resources/imports.js +1 -0
- package/lib/{esm/resources → resources}/in_stock_subscriptions.d.ts +3 -0
- package/lib/resources/in_stock_subscriptions.js +1 -0
- package/lib/{esm/resources → resources}/inventory_models.d.ts +3 -0
- package/lib/resources/inventory_models.js +1 -0
- package/lib/{esm/resources → resources}/inventory_return_locations.d.ts +2 -0
- package/lib/resources/inventory_return_locations.js +1 -0
- package/lib/{cjs/resources → resources}/inventory_stock_locations.d.ts +2 -0
- package/lib/resources/inventory_stock_locations.js +1 -0
- package/lib/{cjs/resources → resources}/klarna_gateways.d.ts +2 -0
- package/lib/resources/klarna_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/klarna_payments.d.ts +2 -0
- package/lib/resources/klarna_payments.js +1 -0
- package/lib/{esm/resources → resources}/line_item_options.d.ts +2 -0
- package/lib/resources/line_item_options.js +1 -0
- package/lib/{esm/resources → resources}/line_items.d.ts +4 -0
- package/lib/resources/line_items.js +1 -0
- package/lib/{cjs/resources → resources}/manual_gateways.d.ts +1 -0
- package/lib/resources/manual_gateways.js +1 -0
- package/lib/{esm/resources → resources}/manual_tax_calculators.d.ts +4 -0
- package/lib/resources/manual_tax_calculators.js +1 -0
- package/lib/{esm/resources → resources}/markets.d.ts +6 -0
- package/lib/resources/markets.js +1 -0
- package/lib/{cjs/resources → resources}/merchants.d.ts +2 -0
- package/lib/resources/merchants.js +1 -0
- package/lib/{cjs/resources → resources}/order_amount_promotion_rules.d.ts +0 -0
- package/lib/resources/order_amount_promotion_rules.js +1 -0
- package/lib/{cjs/resources → resources}/order_copies.d.ts +3 -0
- package/lib/resources/order_copies.js +1 -0
- package/lib/{esm/resources → resources}/order_subscriptions.d.ts +5 -0
- package/lib/resources/order_subscriptions.js +1 -0
- package/lib/{esm/resources → resources}/order_validation_rules.d.ts +1 -0
- package/lib/resources/order_validation_rules.js +1 -0
- package/lib/{esm/resources → resources}/orders.d.ts +16 -0
- package/lib/resources/orders.js +1 -0
- package/lib/{cjs/resources → resources}/organization.d.ts +0 -0
- package/lib/{esm/resources → resources}/organization.js +0 -0
- package/lib/{esm/resources → resources}/packages.d.ts +3 -0
- package/lib/resources/packages.js +1 -0
- package/lib/{cjs/resources → resources}/parcel_line_items.d.ts +2 -0
- package/lib/resources/parcel_line_items.js +1 -0
- package/lib/{cjs/resources → resources}/parcels.d.ts +4 -0
- package/lib/resources/parcels.js +1 -0
- package/lib/{cjs/resources → resources}/payment_gateways.d.ts +1 -0
- package/lib/resources/payment_gateways.js +1 -0
- package/lib/{esm/resources → resources}/payment_methods.d.ts +3 -0
- package/lib/resources/payment_methods.js +1 -0
- package/lib/{esm/resources → resources}/paypal_gateways.d.ts +2 -0
- package/lib/resources/paypal_gateways.js +1 -0
- package/lib/{esm/resources → resources}/paypal_payments.d.ts +2 -0
- package/lib/resources/paypal_payments.js +1 -0
- package/lib/{esm/resources → resources}/percentage_discount_promotions.d.ts +7 -0
- package/lib/resources/percentage_discount_promotions.js +1 -0
- package/lib/{cjs/resources → resources}/price_lists.d.ts +2 -0
- package/lib/resources/price_lists.js +1 -0
- package/lib/{esm/resources → resources}/prices.d.ts +3 -0
- package/lib/resources/prices.js +1 -0
- package/lib/{cjs/resources → resources}/promotion_rules.d.ts +0 -0
- package/lib/{esm/resources → resources}/promotion_rules.js +0 -0
- package/lib/{esm/resources → resources}/promotions.d.ts +5 -0
- package/lib/resources/promotions.js +1 -0
- package/lib/{cjs/resources → resources}/refunds.d.ts +2 -0
- package/lib/resources/refunds.js +1 -0
- package/lib/{cjs/resources → resources}/return_line_items.d.ts +2 -0
- package/lib/resources/return_line_items.js +1 -0
- package/lib/{esm/resources → resources}/returns.d.ts +7 -0
- package/lib/resources/returns.js +1 -0
- package/lib/{cjs/resources → resources}/shipments.d.ts +13 -0
- package/lib/resources/shipments.js +1 -0
- package/lib/{cjs/resources → resources}/shipping_categories.d.ts +2 -0
- package/lib/resources/shipping_categories.js +1 -0
- package/lib/{cjs/resources → resources}/shipping_methods.d.ts +5 -0
- package/lib/resources/shipping_methods.js +1 -0
- package/lib/{esm/resources → resources}/shipping_zones.d.ts +1 -0
- package/lib/resources/shipping_zones.js +1 -0
- package/lib/{cjs/resources → resources}/sku_list_items.d.ts +2 -0
- package/lib/resources/sku_list_items.js +1 -0
- package/lib/{esm/resources → resources}/sku_list_promotion_rules.d.ts +2 -0
- package/lib/resources/sku_list_promotion_rules.js +1 -0
- package/lib/{esm/resources → resources}/sku_lists.d.ts +3 -0
- package/lib/resources/sku_lists.js +1 -0
- package/lib/{cjs/resources → resources}/sku_options.d.ts +2 -0
- package/lib/resources/sku_options.js +1 -0
- package/lib/{cjs/resources → resources}/skus.d.ts +6 -0
- package/lib/resources/skus.js +1 -0
- package/lib/{esm/resources → resources}/stock_items.d.ts +3 -0
- package/lib/resources/stock_items.js +1 -0
- package/lib/{esm/resources → resources}/stock_line_items.d.ts +3 -0
- package/lib/resources/stock_line_items.js +1 -0
- package/lib/{esm/resources → resources}/stock_locations.d.ts +6 -0
- package/lib/resources/stock_locations.js +1 -0
- package/lib/{cjs/resources → resources}/stock_transfers.d.ts +5 -0
- package/lib/resources/stock_transfers.js +1 -0
- package/lib/{cjs/resources → resources}/stripe_gateways.d.ts +2 -0
- package/lib/resources/stripe_gateways.js +1 -0
- package/lib/{cjs/resources → resources}/stripe_payments.d.ts +2 -0
- package/lib/resources/stripe_payments.js +1 -0
- package/lib/{esm/resources → resources}/tax_calculators.d.ts +3 -0
- package/lib/resources/tax_calculators.js +1 -0
- package/lib/{esm/resources → resources}/tax_categories.d.ts +2 -0
- package/lib/resources/tax_categories.js +1 -0
- package/lib/{esm/resources → resources}/tax_rules.d.ts +1 -0
- package/lib/resources/tax_rules.js +1 -0
- package/lib/{esm/resources → resources}/taxjar_accounts.d.ts +3 -0
- package/lib/resources/taxjar_accounts.js +1 -0
- package/lib/{esm/resources → resources}/transactions.d.ts +1 -0
- package/lib/resources/transactions.js +1 -0
- package/lib/{esm/resources → resources}/voids.d.ts +2 -0
- package/lib/resources/voids.js +1 -0
- package/lib/{cjs/resources → resources}/webhooks.d.ts +1 -0
- package/lib/resources/webhooks.js +1 -0
- package/lib/{cjs/resources → resources}/wire_transfers.d.ts +1 -0
- package/lib/resources/wire_transfers.js +1 -0
- package/lib/{cjs/static.d.ts → static.d.ts} +0 -0
- package/lib/{esm/static.js → static.js} +0 -0
- package/lib/{cjs/util.d.ts → util.d.ts} +0 -0
- package/lib/{esm/util.js → util.js} +0 -0
- package/package.json +11 -12
- package/lib/cjs/api.js +0 -1
- package/lib/cjs/client.js +0 -1
- package/lib/cjs/commercelayer.js +0 -1
- package/lib/cjs/common.js +0 -1
- package/lib/cjs/config.js +0 -1
- package/lib/cjs/debug.js +0 -1
- package/lib/cjs/error.js +0 -1
- package/lib/cjs/index.js +0 -1
- package/lib/cjs/interceptor.js +0 -1
- package/lib/cjs/jsonapi.js +0 -1
- package/lib/cjs/model.js +0 -1
- package/lib/cjs/query.js +0 -1
- package/lib/cjs/resource.d.ts +0 -74
- package/lib/cjs/resource.js +0 -1
- package/lib/cjs/resources/addresses.d.ts +0 -87
- package/lib/cjs/resources/addresses.js +0 -1
- package/lib/cjs/resources/adjustments.js +0 -1
- package/lib/cjs/resources/adyen_gateways.d.ts +0 -45
- package/lib/cjs/resources/adyen_gateways.js +0 -1
- package/lib/cjs/resources/adyen_payments.js +0 -1
- package/lib/cjs/resources/application.js +0 -1
- package/lib/cjs/resources/attachments.js +0 -1
- package/lib/cjs/resources/authorizations.js +0 -1
- package/lib/cjs/resources/avalara_accounts.d.ts +0 -49
- package/lib/cjs/resources/avalara_accounts.js +0 -1
- package/lib/cjs/resources/billing_info_validation_rules.js +0 -1
- package/lib/cjs/resources/bing_geocoders.d.ts +0 -33
- package/lib/cjs/resources/bing_geocoders.js +0 -1
- package/lib/cjs/resources/braintree_gateways.js +0 -1
- package/lib/cjs/resources/braintree_payments.d.ts +0 -45
- package/lib/cjs/resources/braintree_payments.js +0 -1
- package/lib/cjs/resources/bundles.d.ts +0 -70
- package/lib/cjs/resources/bundles.js +0 -1
- package/lib/cjs/resources/captures.d.ts +0 -45
- package/lib/cjs/resources/captures.js +0 -1
- package/lib/cjs/resources/carrier_accounts.d.ts +0 -24
- package/lib/cjs/resources/carrier_accounts.js +0 -1
- package/lib/cjs/resources/checkout_com_gateways.d.ts +0 -43
- package/lib/cjs/resources/checkout_com_gateways.js +0 -1
- package/lib/cjs/resources/checkout_com_payments.d.ts +0 -48
- package/lib/cjs/resources/checkout_com_payments.js +0 -1
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +0 -58
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +0 -1
- package/lib/cjs/resources/coupon_recipients.js +0 -1
- package/lib/cjs/resources/coupons.js +0 -1
- package/lib/cjs/resources/customer_addresses.d.ts +0 -39
- package/lib/cjs/resources/customer_addresses.js +0 -1
- package/lib/cjs/resources/customer_groups.d.ts +0 -33
- package/lib/cjs/resources/customer_groups.js +0 -1
- package/lib/cjs/resources/customer_password_resets.d.ts +0 -32
- package/lib/cjs/resources/customer_password_resets.js +0 -1
- package/lib/cjs/resources/customer_payment_sources.js +0 -1
- package/lib/cjs/resources/customer_subscriptions.js +0 -1
- package/lib/cjs/resources/customers.d.ts +0 -52
- package/lib/cjs/resources/customers.js +0 -1
- package/lib/cjs/resources/delivery_lead_times.d.ts +0 -48
- package/lib/cjs/resources/delivery_lead_times.js +0 -1
- package/lib/cjs/resources/event_callbacks.js +0 -1
- package/lib/cjs/resources/external_gateways.d.ts +0 -47
- package/lib/cjs/resources/external_gateways.js +0 -1
- package/lib/cjs/resources/external_payments.d.ts +0 -40
- package/lib/cjs/resources/external_payments.js +0 -1
- package/lib/cjs/resources/external_promotions.d.ts +0 -81
- package/lib/cjs/resources/external_promotions.js +0 -1
- package/lib/cjs/resources/external_tax_calculators.js +0 -1
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +0 -83
- package/lib/cjs/resources/fixed_amount_promotions.js +0 -1
- package/lib/cjs/resources/fixed_price_promotions.js +0 -1
- package/lib/cjs/resources/free_gift_promotions.d.ts +0 -90
- package/lib/cjs/resources/free_gift_promotions.js +0 -1
- package/lib/cjs/resources/free_shipping_promotions.js +0 -1
- package/lib/cjs/resources/geocoders.d.ts +0 -22
- package/lib/cjs/resources/geocoders.js +0 -1
- package/lib/cjs/resources/gift_card_recipients.js +0 -1
- package/lib/cjs/resources/gift_cards.d.ts +0 -79
- package/lib/cjs/resources/gift_cards.js +0 -1
- package/lib/cjs/resources/google_geocoders.js +0 -1
- package/lib/cjs/resources/imports.js +0 -1
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +0 -56
- package/lib/cjs/resources/in_stock_subscriptions.js +0 -1
- package/lib/cjs/resources/inventory_models.d.ts +0 -39
- package/lib/cjs/resources/inventory_models.js +0 -1
- package/lib/cjs/resources/inventory_return_locations.d.ts +0 -41
- package/lib/cjs/resources/inventory_return_locations.js +0 -1
- package/lib/cjs/resources/inventory_stock_locations.js +0 -1
- package/lib/cjs/resources/klarna_gateways.js +0 -1
- package/lib/cjs/resources/klarna_payments.js +0 -1
- package/lib/cjs/resources/line_item_options.d.ts +0 -55
- package/lib/cjs/resources/line_item_options.js +0 -1
- package/lib/cjs/resources/line_items.d.ts +0 -121
- package/lib/cjs/resources/line_items.js +0 -1
- package/lib/cjs/resources/manual_gateways.js +0 -1
- package/lib/cjs/resources/manual_tax_calculators.d.ts +0 -45
- package/lib/cjs/resources/manual_tax_calculators.js +0 -1
- package/lib/cjs/resources/markets.d.ts +0 -75
- package/lib/cjs/resources/markets.js +0 -1
- package/lib/cjs/resources/merchants.js +0 -1
- package/lib/cjs/resources/order_amount_promotion_rules.js +0 -1
- package/lib/cjs/resources/order_copies.js +0 -1
- package/lib/cjs/resources/order_subscriptions.d.ts +0 -62
- package/lib/cjs/resources/order_subscriptions.js +0 -1
- package/lib/cjs/resources/order_validation_rules.d.ts +0 -19
- package/lib/cjs/resources/order_validation_rules.js +0 -1
- package/lib/cjs/resources/orders.d.ts +0 -255
- package/lib/cjs/resources/orders.js +0 -1
- package/lib/cjs/resources/organization.js +0 -1
- package/lib/cjs/resources/packages.d.ts +0 -53
- package/lib/cjs/resources/packages.js +0 -1
- package/lib/cjs/resources/parcel_line_items.js +0 -1
- package/lib/cjs/resources/parcels.js +0 -1
- package/lib/cjs/resources/payment_gateways.js +0 -1
- package/lib/cjs/resources/payment_methods.d.ts +0 -56
- package/lib/cjs/resources/payment_methods.js +0 -1
- package/lib/cjs/resources/paypal_gateways.d.ts +0 -37
- package/lib/cjs/resources/paypal_gateways.js +0 -1
- package/lib/cjs/resources/paypal_payments.d.ts +0 -45
- package/lib/cjs/resources/paypal_payments.js +0 -1
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +0 -90
- package/lib/cjs/resources/percentage_discount_promotions.js +0 -1
- package/lib/cjs/resources/price_lists.js +0 -1
- package/lib/cjs/resources/prices.d.ts +0 -54
- package/lib/cjs/resources/prices.js +0 -1
- package/lib/cjs/resources/promotion_rules.js +0 -1
- package/lib/cjs/resources/promotions.d.ts +0 -36
- package/lib/cjs/resources/promotions.js +0 -1
- package/lib/cjs/resources/refunds.js +0 -1
- package/lib/cjs/resources/return_line_items.js +0 -1
- package/lib/cjs/resources/returns.d.ts +0 -65
- package/lib/cjs/resources/returns.js +0 -1
- package/lib/cjs/resources/shipments.js +0 -1
- package/lib/cjs/resources/shipping_categories.js +0 -1
- package/lib/cjs/resources/shipping_methods.js +0 -1
- package/lib/cjs/resources/shipping_zones.d.ts +0 -47
- package/lib/cjs/resources/shipping_zones.js +0 -1
- package/lib/cjs/resources/sku_list_items.js +0 -1
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +0 -66
- package/lib/cjs/resources/sku_list_promotion_rules.js +0 -1
- package/lib/cjs/resources/sku_lists.d.ts +0 -46
- package/lib/cjs/resources/sku_lists.js +0 -1
- package/lib/cjs/resources/sku_options.js +0 -1
- package/lib/cjs/resources/skus.js +0 -1
- package/lib/cjs/resources/stock_items.d.ts +0 -46
- package/lib/cjs/resources/stock_items.js +0 -1
- package/lib/cjs/resources/stock_line_items.d.ts +0 -26
- package/lib/cjs/resources/stock_line_items.js +0 -1
- package/lib/cjs/resources/stock_locations.d.ts +0 -51
- package/lib/cjs/resources/stock_locations.js +0 -1
- package/lib/cjs/resources/stock_transfers.js +0 -1
- package/lib/cjs/resources/stripe_gateways.js +0 -1
- package/lib/cjs/resources/stripe_payments.js +0 -1
- package/lib/cjs/resources/tax_calculators.d.ts +0 -24
- package/lib/cjs/resources/tax_calculators.js +0 -1
- package/lib/cjs/resources/tax_categories.d.ts +0 -57
- package/lib/cjs/resources/tax_categories.js +0 -1
- package/lib/cjs/resources/tax_rules.d.ts +0 -68
- package/lib/cjs/resources/tax_rules.js +0 -1
- package/lib/cjs/resources/taxjar_accounts.d.ts +0 -40
- package/lib/cjs/resources/taxjar_accounts.js +0 -1
- package/lib/cjs/resources/transactions.d.ts +0 -30
- package/lib/cjs/resources/transactions.js +0 -1
- package/lib/cjs/resources/voids.d.ts +0 -32
- package/lib/cjs/resources/voids.js +0 -1
- package/lib/cjs/resources/webhooks.js +0 -1
- package/lib/cjs/resources/wire_transfers.js +0 -1
- package/lib/cjs/static.js +0 -1
- package/lib/cjs/util.js +0 -1
- package/lib/esm/api.d.ts +0 -103
- package/lib/esm/client.d.ts +0 -32
- package/lib/esm/client.js +0 -1
- package/lib/esm/commercelayer.d.ts +0 -122
- package/lib/esm/common.d.ts +0 -4
- package/lib/esm/common.js +0 -1
- package/lib/esm/config.d.ts +0 -11
- package/lib/esm/debug.d.ts +0 -3
- package/lib/esm/error.d.ts +0 -26
- package/lib/esm/error.js +0 -1
- package/lib/esm/index.d.ts +0 -7
- package/lib/esm/interceptor.d.ts +0 -19
- package/lib/esm/jsonapi.d.ts +0 -5
- package/lib/esm/jsonapi.js +0 -1
- package/lib/esm/model.d.ts +0 -101
- package/lib/esm/query.d.ts +0 -23
- package/lib/esm/resource.js +0 -1
- package/lib/esm/resources/addresses.js +0 -1
- package/lib/esm/resources/adjustments.d.ts +0 -35
- package/lib/esm/resources/adjustments.js +0 -1
- package/lib/esm/resources/adyen_gateways.js +0 -1
- package/lib/esm/resources/adyen_payments.d.ts +0 -42
- package/lib/esm/resources/adyen_payments.js +0 -1
- package/lib/esm/resources/application.d.ts +0 -21
- package/lib/esm/resources/attachments.d.ts +0 -156
- package/lib/esm/resources/attachments.js +0 -1
- package/lib/esm/resources/authorizations.d.ts +0 -54
- package/lib/esm/resources/authorizations.js +0 -1
- package/lib/esm/resources/avalara_accounts.js +0 -1
- package/lib/esm/resources/billing_info_validation_rules.d.ts +0 -31
- package/lib/esm/resources/billing_info_validation_rules.js +0 -1
- package/lib/esm/resources/bing_geocoders.js +0 -1
- package/lib/esm/resources/braintree_gateways.d.ts +0 -54
- package/lib/esm/resources/braintree_gateways.js +0 -1
- package/lib/esm/resources/braintree_payments.js +0 -1
- package/lib/esm/resources/bundles.js +0 -1
- package/lib/esm/resources/captures.js +0 -1
- package/lib/esm/resources/carrier_accounts.js +0 -1
- package/lib/esm/resources/checkout_com_gateways.js +0 -1
- package/lib/esm/resources/checkout_com_payments.js +0 -1
- package/lib/esm/resources/coupon_codes_promotion_rules.js +0 -1
- package/lib/esm/resources/coupon_recipients.d.ts +0 -42
- package/lib/esm/resources/coupon_recipients.js +0 -1
- package/lib/esm/resources/coupons.d.ts +0 -44
- package/lib/esm/resources/coupons.js +0 -1
- package/lib/esm/resources/customer_addresses.js +0 -1
- package/lib/esm/resources/customer_groups.js +0 -1
- package/lib/esm/resources/customer_password_resets.js +0 -1
- package/lib/esm/resources/customer_payment_sources.d.ts +0 -69
- package/lib/esm/resources/customer_payment_sources.js +0 -1
- package/lib/esm/resources/customer_subscriptions.d.ts +0 -27
- package/lib/esm/resources/customer_subscriptions.js +0 -1
- package/lib/esm/resources/customers.js +0 -1
- package/lib/esm/resources/delivery_lead_times.js +0 -1
- package/lib/esm/resources/event_callbacks.d.ts +0 -23
- package/lib/esm/resources/event_callbacks.js +0 -1
- package/lib/esm/resources/external_gateways.js +0 -1
- package/lib/esm/resources/external_payments.js +0 -1
- package/lib/esm/resources/external_promotions.js +0 -1
- package/lib/esm/resources/external_tax_calculators.d.ts +0 -41
- package/lib/esm/resources/external_tax_calculators.js +0 -1
- package/lib/esm/resources/fixed_amount_promotions.js +0 -1
- package/lib/esm/resources/fixed_price_promotions.d.ts +0 -92
- package/lib/esm/resources/fixed_price_promotions.js +0 -1
- package/lib/esm/resources/free_gift_promotions.js +0 -1
- package/lib/esm/resources/free_shipping_promotions.d.ts +0 -78
- package/lib/esm/resources/free_shipping_promotions.js +0 -1
- package/lib/esm/resources/geocoders.js +0 -1
- package/lib/esm/resources/gift_card_recipients.d.ts +0 -42
- package/lib/esm/resources/gift_card_recipients.js +0 -1
- package/lib/esm/resources/gift_cards.js +0 -1
- package/lib/esm/resources/google_geocoders.d.ts +0 -33
- package/lib/esm/resources/google_geocoders.js +0 -1
- package/lib/esm/resources/imports.d.ts +0 -40
- package/lib/esm/resources/imports.js +0 -1
- package/lib/esm/resources/in_stock_subscriptions.js +0 -1
- package/lib/esm/resources/inventory_models.js +0 -1
- package/lib/esm/resources/inventory_return_locations.js +0 -1
- package/lib/esm/resources/inventory_stock_locations.d.ts +0 -44
- package/lib/esm/resources/inventory_stock_locations.js +0 -1
- package/lib/esm/resources/klarna_gateways.d.ts +0 -42
- package/lib/esm/resources/klarna_gateways.js +0 -1
- package/lib/esm/resources/klarna_payments.d.ts +0 -39
- package/lib/esm/resources/klarna_payments.js +0 -1
- package/lib/esm/resources/line_item_options.js +0 -1
- package/lib/esm/resources/line_items.js +0 -1
- package/lib/esm/resources/manual_gateways.d.ts +0 -32
- package/lib/esm/resources/manual_gateways.js +0 -1
- package/lib/esm/resources/manual_tax_calculators.js +0 -1
- package/lib/esm/resources/markets.js +0 -1
- package/lib/esm/resources/merchants.d.ts +0 -36
- package/lib/esm/resources/merchants.js +0 -1
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +0 -56
- package/lib/esm/resources/order_amount_promotion_rules.js +0 -1
- package/lib/esm/resources/order_copies.d.ts +0 -42
- package/lib/esm/resources/order_copies.js +0 -1
- package/lib/esm/resources/order_subscriptions.js +0 -1
- package/lib/esm/resources/order_validation_rules.js +0 -1
- package/lib/esm/resources/orders.js +0 -1
- package/lib/esm/resources/organization.d.ts +0 -32
- package/lib/esm/resources/packages.js +0 -1
- package/lib/esm/resources/parcel_line_items.d.ts +0 -47
- package/lib/esm/resources/parcel_line_items.js +0 -1
- package/lib/esm/resources/parcels.d.ts +0 -104
- package/lib/esm/resources/parcels.js +0 -1
- package/lib/esm/resources/payment_gateways.d.ts +0 -20
- package/lib/esm/resources/payment_gateways.js +0 -1
- package/lib/esm/resources/payment_methods.js +0 -1
- package/lib/esm/resources/paypal_gateways.js +0 -1
- package/lib/esm/resources/paypal_payments.js +0 -1
- package/lib/esm/resources/percentage_discount_promotions.js +0 -1
- package/lib/esm/resources/price_lists.d.ts +0 -37
- package/lib/esm/resources/price_lists.js +0 -1
- package/lib/esm/resources/prices.js +0 -1
- package/lib/esm/resources/promotion_rules.d.ts +0 -24
- package/lib/esm/resources/promotions.js +0 -1
- package/lib/esm/resources/refunds.d.ts +0 -32
- package/lib/esm/resources/refunds.js +0 -1
- package/lib/esm/resources/return_line_items.d.ts +0 -47
- package/lib/esm/resources/return_line_items.js +0 -1
- package/lib/esm/resources/returns.js +0 -1
- package/lib/esm/resources/shipments.d.ts +0 -76
- package/lib/esm/resources/shipments.js +0 -1
- package/lib/esm/resources/shipping_categories.d.ts +0 -31
- package/lib/esm/resources/shipping_categories.js +0 -1
- package/lib/esm/resources/shipping_methods.d.ts +0 -69
- package/lib/esm/resources/shipping_methods.js +0 -1
- package/lib/esm/resources/shipping_zones.js +0 -1
- package/lib/esm/resources/sku_list_items.d.ts +0 -45
- package/lib/esm/resources/sku_list_items.js +0 -1
- package/lib/esm/resources/sku_list_promotion_rules.js +0 -1
- package/lib/esm/resources/sku_lists.js +0 -1
- package/lib/esm/resources/sku_options.d.ts +0 -54
- package/lib/esm/resources/sku_options.js +0 -1
- package/lib/esm/resources/skus.d.ts +0 -72
- package/lib/esm/resources/skus.js +0 -1
- package/lib/esm/resources/stock_items.js +0 -1
- package/lib/esm/resources/stock_line_items.js +0 -1
- package/lib/esm/resources/stock_locations.js +0 -1
- package/lib/esm/resources/stock_transfers.d.ts +0 -66
- package/lib/esm/resources/stock_transfers.js +0 -1
- package/lib/esm/resources/stripe_gateways.d.ts +0 -36
- package/lib/esm/resources/stripe_gateways.js +0 -1
- package/lib/esm/resources/stripe_payments.d.ts +0 -40
- package/lib/esm/resources/stripe_payments.js +0 -1
- package/lib/esm/resources/tax_calculators.js +0 -1
- package/lib/esm/resources/tax_categories.js +0 -1
- package/lib/esm/resources/tax_rules.js +0 -1
- package/lib/esm/resources/taxjar_accounts.js +0 -1
- package/lib/esm/resources/transactions.js +0 -1
- package/lib/esm/resources/voids.js +0 -1
- package/lib/esm/resources/webhooks.d.ts +0 -41
- package/lib/esm/resources/webhooks.js +0 -1
- package/lib/esm/resources/wire_transfers.d.ts +0 -31
- package/lib/esm/resources/wire_transfers.js +0 -1
- package/lib/esm/static.d.ts +0 -6
- package/lib/esm/util.d.ts +0 -3
- package/lib/tsconfig.esm.tsbuildinfo +0 -1
- package/lib/tsconfig.tsbuildinfo +0 -1
package/lib/esm/query.d.ts
DELETED
@@ -1,23 +0,0 @@
|
|
1
|
-
import { ResourceType } from "./resource";
|
2
|
-
interface QueryParamsRetrieve {
|
3
|
-
include?: string[];
|
4
|
-
fields?: string[] | {
|
5
|
-
[key: string]: string[];
|
6
|
-
};
|
7
|
-
}
|
8
|
-
interface QueryParamsList extends QueryParamsRetrieve {
|
9
|
-
sort?: string[] | {
|
10
|
-
[key: string]: 'asc' | 'desc';
|
11
|
-
};
|
12
|
-
filters?: {
|
13
|
-
[key: string]: string | number | boolean;
|
14
|
-
};
|
15
|
-
pageNumber?: number;
|
16
|
-
pageSize?: number;
|
17
|
-
}
|
18
|
-
declare type QueryParams = QueryParamsRetrieve | QueryParamsList;
|
19
|
-
export { QueryParamsRetrieve, QueryParamsList, QueryParams };
|
20
|
-
declare const generateQueryStringParams: (params: QueryParamsRetrieve | QueryParamsList | undefined, res: ResourceType) => {
|
21
|
-
[key: string]: string;
|
22
|
-
};
|
23
|
-
export { generateQueryStringParams };
|
package/lib/esm/resource.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
var w=this&&this.__classPrivateFieldSet||function(i,t,r,e,a){if(e==="m")throw new TypeError("Private method is not writable");if(e==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?i!==t||!a:!t.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return e==="a"?a.call(i,r):a?a.value=r:t.set(i,r),r},n=this&&this.__classPrivateFieldGet||function(i,t,r,e){if(r==="a"&&!e)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?i!==t||!e:!t.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?e:r==="a"?e.call(i):e?e.value:t.get(i)},o,g;import O from"./client";import{denormalize as u,normalize as h}from"./jsonapi";import{generateQueryStringParams as d}from"./query";import m from"./config";import b from"./debug";const c=b();class y extends Array{constructor(t,r){super(...r||[]);this.meta=t}first(){return this.length?this[0]:void 0}last(){return this.length?this[this.length-1]:void 0}get(t){return this.length&&t>=0?this[t]:void 0}}class j{constructor(t){o.set(this,void 0),g.set(this,{}),w(this,o,O.create(t),"f"),this.localConfig(t)}get interceptors(){return n(this,o,"f").interceptors}localConfig(t){}config(t){c("config %o",t),this.localConfig(t),n(this,o,"f").config(t)}async singleton(t,r,e){c("singleton: %o, %O, %O",t,r||{},e||{});const a=d(r,t);(e==null?void 0:e.params)&&Object.assign(a,e==null?void 0:e.params);const s=await n(this,o,"f").request("get",`${t.type}`,void 0,Object.assign(Object.assign({},e),{params:a}));return u(s)}async retrieve(t,r,e){c("retrieve: %o, %O, %O",t,r||{},e||{});const a=d(r,t);(e==null?void 0:e.params)&&Object.assign(a,e==null?void 0:e.params);const s=await n(this,o,"f").request("get",`${t.type}/${t.id}`,void 0,Object.assign(Object.assign({},e),{params:a}));return u(s)}async list(t,r,e){var a,s;c("list: %o, %O, %O",t,r||{},e||{});const l=d(r,t);(e==null?void 0:e.params)&&Object.assign(l,e==null?void 0:e.params);const p=await n(this,o,"f").request("get",`${t.type}`,void 0,Object.assign(Object.assign({},e),{params:l})),f=u(p),v={pageCount:Number((a=p.meta)===null||a===void 0?void 0:a.page_count),recordCount:Number((s=p.meta)===null||s===void 0?void 0:s.record_count),currentPage:(r==null?void 0:r.pageNumber)||m.default.pageNumber,recordsPerPage:(r==null?void 0:r.pageSize)||m.default.pageSize};return new y(v,f)}async create(t,r,e){c("create: %o, %O, %O",t,r||{},e||{});const a=d(r,t);(e==null?void 0:e.params)&&Object.assign(a,e==null?void 0:e.params);const s=h(t),l=await n(this,o,"f").request("post",t.type,s,Object.assign(Object.assign({},e),{params:a}));return u(l)}async update(t,r,e){c("update: %o, %O, %O",t,r||{},e||{});const a=d(r,t);(e==null?void 0:e.params)&&Object.assign(a,e==null?void 0:e.params);const s=h(t),l=await n(this,o,"f").request("patch",`${t.type}/${t.id}`,s,Object.assign(Object.assign({},e),{params:a}));return u(l)}async delete(t,r){c("delete: %o, %O",t,r||{}),await n(this,o,"f").request("delete",`${t.type}/${t.id}`,void 0,r)}}o=new WeakMap,g=new WeakMap;class P{constructor(t){c("new resource instance: %s",this.type()),this.resources=t}}export default j;export{P as ApiResource};
|
@@ -1 +0,0 @@
|
|
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)}isAddress(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="addresses";export default t;
|
@@ -1,35 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
declare type AdjustmentRel = ResourceRel & {
|
4
|
-
type: typeof Adjustments.TYPE;
|
5
|
-
};
|
6
|
-
interface Adjustment extends Resource {
|
7
|
-
name?: string;
|
8
|
-
currency_code?: string;
|
9
|
-
amount_cents?: number;
|
10
|
-
amount_float?: number;
|
11
|
-
formatted_amount?: string;
|
12
|
-
}
|
13
|
-
interface AdjustmentCreate extends ResourceCreate {
|
14
|
-
name: string;
|
15
|
-
currency_code: string;
|
16
|
-
amount_cents: number;
|
17
|
-
}
|
18
|
-
interface AdjustmentUpdate extends ResourceUpdate {
|
19
|
-
name?: string;
|
20
|
-
currency_code?: string;
|
21
|
-
amount_cents?: number;
|
22
|
-
}
|
23
|
-
declare class Adjustments extends ApiResource {
|
24
|
-
static readonly TYPE: 'adjustments';
|
25
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Adjustment>>;
|
26
|
-
create(resource: AdjustmentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Adjustment>;
|
27
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Adjustment>;
|
28
|
-
update(resource: AdjustmentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Adjustment>;
|
29
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
30
|
-
isAdjustment(resource: any): resource is Adjustment;
|
31
|
-
relationship(id: string | ResourceId | null): AdjustmentRel;
|
32
|
-
type(): string;
|
33
|
-
}
|
34
|
-
export default Adjustments;
|
35
|
-
export { Adjustment, AdjustmentCreate, AdjustmentUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class s extends i{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}isAdjustment(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="adjustments";export default s;
|
@@ -1 +0,0 @@
|
|
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)}isAdyenGateway(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="adyen_gateways";export default t;
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Order } from './orders';
|
4
|
-
import { PaymentGateway } from './payment_gateways';
|
5
|
-
declare type AdyenPaymentRel = ResourceRel & {
|
6
|
-
type: typeof AdyenPayments.TYPE;
|
7
|
-
};
|
8
|
-
declare type OrderRel = ResourceRel & {
|
9
|
-
type: 'orders';
|
10
|
-
};
|
11
|
-
interface AdyenPayment extends Resource {
|
12
|
-
public_key?: string;
|
13
|
-
payment_methods?: object;
|
14
|
-
payment_request_data?: object;
|
15
|
-
payment_request_details?: object;
|
16
|
-
payment_response?: object;
|
17
|
-
order?: Order;
|
18
|
-
payment_gateway?: PaymentGateway;
|
19
|
-
}
|
20
|
-
interface AdyenPaymentCreate extends ResourceCreate {
|
21
|
-
order: OrderRel;
|
22
|
-
}
|
23
|
-
interface AdyenPaymentUpdate extends ResourceUpdate {
|
24
|
-
payment_request_data?: object;
|
25
|
-
payment_request_details?: object;
|
26
|
-
payment_response?: object;
|
27
|
-
_details?: boolean;
|
28
|
-
order?: OrderRel;
|
29
|
-
}
|
30
|
-
declare class AdyenPayments extends ApiResource {
|
31
|
-
static readonly TYPE: 'adyen_payments';
|
32
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AdyenPayment>>;
|
33
|
-
create(resource: AdyenPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenPayment>;
|
34
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenPayment>;
|
35
|
-
update(resource: AdyenPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenPayment>;
|
36
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
37
|
-
isAdyenPayment(resource: any): resource is AdyenPayment;
|
38
|
-
relationship(id: string | ResourceId | null): AdyenPaymentRel;
|
39
|
-
type(): string;
|
40
|
-
}
|
41
|
-
export default AdyenPayments;
|
42
|
-
export { AdyenPayment, AdyenPaymentCreate, AdyenPaymentUpdate };
|
@@ -1 +0,0 @@
|
|
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)}isAdyenPayment(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="adyen_payments";export default t;
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel } from '../resource';
|
2
|
-
import { QueryParamsRetrieve } from '../query';
|
3
|
-
declare type ApplicationRel = ResourceRel & {
|
4
|
-
type: typeof Applications.TYPE;
|
5
|
-
};
|
6
|
-
interface Application extends Resource {
|
7
|
-
name?: string;
|
8
|
-
kind?: string;
|
9
|
-
public_access?: string;
|
10
|
-
redirect_uri?: string;
|
11
|
-
scopes?: string;
|
12
|
-
}
|
13
|
-
declare class Applications extends ApiResource {
|
14
|
-
static readonly TYPE: 'application';
|
15
|
-
retrieve(params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Application>;
|
16
|
-
isApplication(resource: any): resource is Application;
|
17
|
-
relationship(id: string | ResourceId | null): ApplicationRel;
|
18
|
-
type(): string;
|
19
|
-
}
|
20
|
-
export default Applications;
|
21
|
-
export { Application };
|
@@ -1,156 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Bundle } from './bundles';
|
4
|
-
import { CarrierAccount } from './carrier_accounts';
|
5
|
-
import { CustomerGroup } from './customer_groups';
|
6
|
-
import { Customer } from './customers';
|
7
|
-
import { DeliveryLeadTime } from './delivery_lead_times';
|
8
|
-
import { Geocoder } from './geocoders';
|
9
|
-
import { GiftCardRecipient } from './gift_card_recipients';
|
10
|
-
import { GiftCard } from './gift_cards';
|
11
|
-
import { InventoryModel } from './inventory_models';
|
12
|
-
import { Market } from './markets';
|
13
|
-
import { Merchant } from './merchants';
|
14
|
-
import { BillingInfoValidationRule } from './billing_info_validation_rules';
|
15
|
-
import { Order } from './orders';
|
16
|
-
import { Package } from './packages';
|
17
|
-
import { Parcel } from './parcels';
|
18
|
-
import { PaymentMethod } from './payment_methods';
|
19
|
-
import { PriceList } from './price_lists';
|
20
|
-
import { Price } from './prices';
|
21
|
-
import { Promotion } from './promotions';
|
22
|
-
import { Return } from './returns';
|
23
|
-
import { Shipment } from './shipments';
|
24
|
-
import { ShippingCategory } from './shipping_categories';
|
25
|
-
import { ShippingMethod } from './shipping_methods';
|
26
|
-
import { ShippingZone } from './shipping_zones';
|
27
|
-
import { SkuOption } from './sku_options';
|
28
|
-
import { Sku } from './skus';
|
29
|
-
import { StockItem } from './stock_items';
|
30
|
-
import { StockLocation } from './stock_locations';
|
31
|
-
import { TaxCalculator } from './tax_calculators';
|
32
|
-
import { TaxCategory } from './tax_categories';
|
33
|
-
declare type AttachmentRel = ResourceRel & {
|
34
|
-
type: typeof Attachments.TYPE;
|
35
|
-
};
|
36
|
-
declare type BundleRel = ResourceRel & {
|
37
|
-
type: 'bundles';
|
38
|
-
};
|
39
|
-
declare type CarrierAccountRel = ResourceRel & {
|
40
|
-
type: 'carrier_accounts';
|
41
|
-
};
|
42
|
-
declare type CustomerGroupRel = ResourceRel & {
|
43
|
-
type: 'customer_groups';
|
44
|
-
};
|
45
|
-
declare type CustomerRel = ResourceRel & {
|
46
|
-
type: 'customers';
|
47
|
-
};
|
48
|
-
declare type DeliveryLeadTimeRel = ResourceRel & {
|
49
|
-
type: 'delivery_lead_times';
|
50
|
-
};
|
51
|
-
declare type GeocoderRel = ResourceRel & {
|
52
|
-
type: 'geocoders';
|
53
|
-
};
|
54
|
-
declare type GiftCardRecipientRel = ResourceRel & {
|
55
|
-
type: 'gift_card_recipients';
|
56
|
-
};
|
57
|
-
declare type GiftCardRel = ResourceRel & {
|
58
|
-
type: 'gift_cards';
|
59
|
-
};
|
60
|
-
declare type InventoryModelRel = ResourceRel & {
|
61
|
-
type: 'inventory_models';
|
62
|
-
};
|
63
|
-
declare type MarketRel = ResourceRel & {
|
64
|
-
type: 'markets';
|
65
|
-
};
|
66
|
-
declare type MerchantRel = ResourceRel & {
|
67
|
-
type: 'merchants';
|
68
|
-
};
|
69
|
-
declare type BillingInfoValidationRuleRel = ResourceRel & {
|
70
|
-
type: 'billing_info_validation_rules';
|
71
|
-
};
|
72
|
-
declare type OrderRel = ResourceRel & {
|
73
|
-
type: 'orders';
|
74
|
-
};
|
75
|
-
declare type PackageRel = ResourceRel & {
|
76
|
-
type: 'packages';
|
77
|
-
};
|
78
|
-
declare type ParcelRel = ResourceRel & {
|
79
|
-
type: 'parcels';
|
80
|
-
};
|
81
|
-
declare type PaymentMethodRel = ResourceRel & {
|
82
|
-
type: 'payment_methods';
|
83
|
-
};
|
84
|
-
declare type PriceListRel = ResourceRel & {
|
85
|
-
type: 'price_lists';
|
86
|
-
};
|
87
|
-
declare type PriceRel = ResourceRel & {
|
88
|
-
type: 'prices';
|
89
|
-
};
|
90
|
-
declare type PromotionRel = ResourceRel & {
|
91
|
-
type: 'promotions';
|
92
|
-
};
|
93
|
-
declare type ReturnRel = ResourceRel & {
|
94
|
-
type: 'returns';
|
95
|
-
};
|
96
|
-
declare type ShipmentRel = ResourceRel & {
|
97
|
-
type: 'shipments';
|
98
|
-
};
|
99
|
-
declare type ShippingCategoryRel = ResourceRel & {
|
100
|
-
type: 'shipping_categories';
|
101
|
-
};
|
102
|
-
declare type ShippingMethodRel = ResourceRel & {
|
103
|
-
type: 'shipping_methods';
|
104
|
-
};
|
105
|
-
declare type ShippingZoneRel = ResourceRel & {
|
106
|
-
type: 'shipping_zones';
|
107
|
-
};
|
108
|
-
declare type SkuOptionRel = ResourceRel & {
|
109
|
-
type: 'sku_options';
|
110
|
-
};
|
111
|
-
declare type SkuRel = ResourceRel & {
|
112
|
-
type: 'skus';
|
113
|
-
};
|
114
|
-
declare type StockItemRel = ResourceRel & {
|
115
|
-
type: 'stock_items';
|
116
|
-
};
|
117
|
-
declare type StockLocationRel = ResourceRel & {
|
118
|
-
type: 'stock_locations';
|
119
|
-
};
|
120
|
-
declare type TaxCalculatorRel = ResourceRel & {
|
121
|
-
type: 'tax_calculators';
|
122
|
-
};
|
123
|
-
declare type TaxCategoryRel = ResourceRel & {
|
124
|
-
type: 'tax_categories';
|
125
|
-
};
|
126
|
-
interface Attachment extends Resource {
|
127
|
-
name?: string;
|
128
|
-
description?: string;
|
129
|
-
url?: string;
|
130
|
-
attachable?: Bundle | CarrierAccount | CustomerGroup | Customer | DeliveryLeadTime | Geocoder | GiftCardRecipient | GiftCard | InventoryModel | Market | Merchant | BillingInfoValidationRule | Order | Package | Parcel | PaymentMethod | PriceList | Price | Promotion | Return | Shipment | ShippingCategory | ShippingMethod | ShippingZone | SkuOption | Sku | StockItem | StockLocation | TaxCalculator | TaxCategory;
|
131
|
-
}
|
132
|
-
interface AttachmentCreate extends ResourceCreate {
|
133
|
-
name: string;
|
134
|
-
description?: string;
|
135
|
-
url?: string;
|
136
|
-
attachable: BundleRel | CarrierAccountRel | CustomerGroupRel | CustomerRel | DeliveryLeadTimeRel | GeocoderRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | MarketRel | MerchantRel | BillingInfoValidationRuleRel | OrderRel | PackageRel | ParcelRel | PaymentMethodRel | PriceListRel | PriceRel | PromotionRel | ReturnRel | ShipmentRel | ShippingCategoryRel | ShippingMethodRel | ShippingZoneRel | SkuOptionRel | SkuRel | StockItemRel | StockLocationRel | TaxCalculatorRel | TaxCategoryRel;
|
137
|
-
}
|
138
|
-
interface AttachmentUpdate extends ResourceUpdate {
|
139
|
-
name?: string;
|
140
|
-
description?: string;
|
141
|
-
url?: string;
|
142
|
-
attachable?: BundleRel | CarrierAccountRel | CustomerGroupRel | CustomerRel | DeliveryLeadTimeRel | GeocoderRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | MarketRel | MerchantRel | BillingInfoValidationRuleRel | OrderRel | PackageRel | ParcelRel | PaymentMethodRel | PriceListRel | PriceRel | PromotionRel | ReturnRel | ShipmentRel | ShippingCategoryRel | ShippingMethodRel | ShippingZoneRel | SkuOptionRel | SkuRel | StockItemRel | StockLocationRel | TaxCalculatorRel | TaxCategoryRel;
|
143
|
-
}
|
144
|
-
declare class Attachments extends ApiResource {
|
145
|
-
static readonly TYPE: 'attachments';
|
146
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
147
|
-
create(resource: AttachmentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Attachment>;
|
148
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Attachment>;
|
149
|
-
update(resource: AttachmentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Attachment>;
|
150
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
151
|
-
isAttachment(resource: any): resource is Attachment;
|
152
|
-
relationship(id: string | ResourceId | null): AttachmentRel;
|
153
|
-
type(): string;
|
154
|
-
}
|
155
|
-
export default Attachments;
|
156
|
-
export { Attachment, AttachmentCreate, AttachmentUpdate };
|
@@ -1 +0,0 @@
|
|
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)}isAttachment(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="attachments";export default t;
|
@@ -1,54 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Order } from './orders';
|
4
|
-
import { Capture } from './captures';
|
5
|
-
import { Void } from './voids';
|
6
|
-
declare type AuthorizationRel = ResourceRel & {
|
7
|
-
type: typeof Authorizations.TYPE;
|
8
|
-
};
|
9
|
-
interface Authorization extends Resource {
|
10
|
-
number?: string;
|
11
|
-
currency_code?: string;
|
12
|
-
amount_cents?: number;
|
13
|
-
amount_float?: number;
|
14
|
-
formatted_amount?: string;
|
15
|
-
succeeded?: boolean;
|
16
|
-
message?: string;
|
17
|
-
error_code?: string;
|
18
|
-
error_detail?: string;
|
19
|
-
token?: string;
|
20
|
-
gateway_transaction_id?: string;
|
21
|
-
cvv_code?: string;
|
22
|
-
cvv_message?: string;
|
23
|
-
avs_code?: string;
|
24
|
-
avs_message?: string;
|
25
|
-
fraud_review?: string;
|
26
|
-
capture_amount_cents?: number;
|
27
|
-
capture_amount_float?: number;
|
28
|
-
formatted_capture_amount?: string;
|
29
|
-
capture_balance_cents?: number;
|
30
|
-
capture_balance_float?: number;
|
31
|
-
formatted_capture_balance?: string;
|
32
|
-
void_balance_cents?: number;
|
33
|
-
void_balance_float?: number;
|
34
|
-
formatted_void_balance?: string;
|
35
|
-
order?: Order;
|
36
|
-
captures?: Capture[];
|
37
|
-
voids?: Void[];
|
38
|
-
}
|
39
|
-
interface AuthorizationUpdate extends ResourceUpdate {
|
40
|
-
_capture?: boolean;
|
41
|
-
_capture_amount_cents?: number;
|
42
|
-
_void?: boolean;
|
43
|
-
}
|
44
|
-
declare class Authorizations extends ApiResource {
|
45
|
-
static readonly TYPE: 'authorizations';
|
46
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Authorization>>;
|
47
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
48
|
-
update(resource: AuthorizationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
49
|
-
isAuthorization(resource: any): resource is Authorization;
|
50
|
-
relationship(id: string | ResourceId | null): AuthorizationRel;
|
51
|
-
type(): string;
|
52
|
-
}
|
53
|
-
export default Authorizations;
|
54
|
-
export { Authorization, AuthorizationUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as r}from"../resource";class e extends r{async list(t,s){return this.resources.list({type:e.TYPE},t,s)}async retrieve(t,s,i){return this.resources.retrieve({type:e.TYPE,id:t},s,i)}async update(t,s,i){return this.resources.update(Object.assign(Object.assign({},t),{type:e.TYPE}),s,i)}isAuthorization(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="authorizations";export default e;
|
@@ -1 +0,0 @@
|
|
1
|
-
import{ApiResource as a}from"../resource";class t extends a{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)}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,31 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Market } from './markets';
|
4
|
-
declare type BillingInfoValidationRuleRel = ResourceRel & {
|
5
|
-
type: typeof BillingInfoValidationRules.TYPE;
|
6
|
-
};
|
7
|
-
declare type MarketRel = ResourceRel & {
|
8
|
-
type: 'markets';
|
9
|
-
};
|
10
|
-
interface BillingInfoValidationRule extends Resource {
|
11
|
-
market?: Market;
|
12
|
-
}
|
13
|
-
interface BillingInfoValidationRuleCreate extends ResourceCreate {
|
14
|
-
market: MarketRel;
|
15
|
-
}
|
16
|
-
interface BillingInfoValidationRuleUpdate extends ResourceUpdate {
|
17
|
-
market?: MarketRel;
|
18
|
-
}
|
19
|
-
declare class BillingInfoValidationRules extends ApiResource {
|
20
|
-
static readonly TYPE: 'billing_info_validation_rules';
|
21
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BillingInfoValidationRule>>;
|
22
|
-
create(resource: BillingInfoValidationRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
23
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
24
|
-
update(resource: BillingInfoValidationRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
25
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
26
|
-
isBillingInfoValidationRule(resource: any): resource is BillingInfoValidationRule;
|
27
|
-
relationship(id: string | ResourceId | null): BillingInfoValidationRuleRel;
|
28
|
-
type(): string;
|
29
|
-
}
|
30
|
-
export default BillingInfoValidationRules;
|
31
|
-
export { BillingInfoValidationRule, BillingInfoValidationRuleCreate, BillingInfoValidationRuleUpdate };
|
@@ -1 +0,0 @@
|
|
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 create(e,r,i){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,i)}async retrieve(e,r,i){return this.resources.retrieve({type:t.TYPE,id:e},r,i)}async update(e,r,i){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,i)}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 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isBingGeocoder(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="bing_geocoders";export default s;
|
@@ -1,54 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { PaymentMethod } from './payment_methods';
|
4
|
-
import { BraintreePayment } from './braintree_payments';
|
5
|
-
declare type BraintreeGatewayRel = ResourceRel & {
|
6
|
-
type: typeof BraintreeGateways.TYPE;
|
7
|
-
};
|
8
|
-
declare type BraintreePaymentRel = ResourceRel & {
|
9
|
-
type: 'braintree_payments';
|
10
|
-
};
|
11
|
-
interface BraintreeGateway extends Resource {
|
12
|
-
name?: string;
|
13
|
-
descriptor_name?: string;
|
14
|
-
descriptor_phone?: string;
|
15
|
-
descriptor_url?: string;
|
16
|
-
webhook_endpoint_url?: string;
|
17
|
-
payment_methods?: PaymentMethod[];
|
18
|
-
braintree_payments?: BraintreePayment[];
|
19
|
-
}
|
20
|
-
interface BraintreeGatewayCreate extends ResourceCreate {
|
21
|
-
name: string;
|
22
|
-
merchant_account_id: string;
|
23
|
-
merchant_id: string;
|
24
|
-
public_key: string;
|
25
|
-
private_key: string;
|
26
|
-
descriptor_name?: string;
|
27
|
-
descriptor_phone?: string;
|
28
|
-
descriptor_url?: string;
|
29
|
-
braintree_payments?: BraintreePaymentRel[];
|
30
|
-
}
|
31
|
-
interface BraintreeGatewayUpdate extends ResourceUpdate {
|
32
|
-
name?: string;
|
33
|
-
merchant_account_id?: string;
|
34
|
-
merchant_id?: string;
|
35
|
-
public_key?: string;
|
36
|
-
private_key?: string;
|
37
|
-
descriptor_name?: string;
|
38
|
-
descriptor_phone?: string;
|
39
|
-
descriptor_url?: string;
|
40
|
-
braintree_payments?: BraintreePaymentRel[];
|
41
|
-
}
|
42
|
-
declare class BraintreeGateways extends ApiResource {
|
43
|
-
static readonly TYPE: 'braintree_gateways';
|
44
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BraintreeGateway>>;
|
45
|
-
create(resource: BraintreeGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreeGateway>;
|
46
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreeGateway>;
|
47
|
-
update(resource: BraintreeGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreeGateway>;
|
48
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
49
|
-
isBraintreeGateway(resource: any): resource is BraintreeGateway;
|
50
|
-
relationship(id: string | ResourceId | null): BraintreeGatewayRel;
|
51
|
-
type(): string;
|
52
|
-
}
|
53
|
-
export default BraintreeGateways;
|
54
|
-
export { BraintreeGateway, BraintreeGatewayCreate, BraintreeGatewayUpdate };
|
@@ -1 +0,0 @@
|
|
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)}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 +0,0 @@
|
|
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)}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 +0,0 @@
|
|
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 +0,0 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}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 +0,0 @@
|
|
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,i){return this.resources.retrieve({type:t.TYPE,id:e},r,i)}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 +0,0 @@
|
|
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)}isCheckoutComGateway(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="checkout_com_gateways";export default t;
|
@@ -1 +0,0 @@
|
|
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)}isCheckoutComPayment(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="checkout_com_payments";export default t;
|
@@ -1 +0,0 @@
|
|
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)}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;
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Customer } from './customers';
|
4
|
-
import { Attachment } from './attachments';
|
5
|
-
declare type CouponRecipientRel = ResourceRel & {
|
6
|
-
type: typeof CouponRecipients.TYPE;
|
7
|
-
};
|
8
|
-
declare type CustomerRel = ResourceRel & {
|
9
|
-
type: 'customers';
|
10
|
-
};
|
11
|
-
interface CouponRecipient extends Resource {
|
12
|
-
email?: string;
|
13
|
-
first_name?: string;
|
14
|
-
last_name?: string;
|
15
|
-
customer?: Customer;
|
16
|
-
attachments?: Attachment[];
|
17
|
-
}
|
18
|
-
interface CouponRecipientCreate extends ResourceCreate {
|
19
|
-
email: string;
|
20
|
-
first_name?: string;
|
21
|
-
last_name?: string;
|
22
|
-
customer?: CustomerRel;
|
23
|
-
}
|
24
|
-
interface CouponRecipientUpdate extends ResourceUpdate {
|
25
|
-
email?: string;
|
26
|
-
first_name?: string;
|
27
|
-
last_name?: string;
|
28
|
-
customer?: CustomerRel;
|
29
|
-
}
|
30
|
-
declare class CouponRecipients extends ApiResource {
|
31
|
-
static readonly TYPE: 'coupon_recipients';
|
32
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CouponRecipient>>;
|
33
|
-
create(resource: CouponRecipientCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponRecipient>;
|
34
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponRecipient>;
|
35
|
-
update(resource: CouponRecipientUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponRecipient>;
|
36
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
37
|
-
isCouponRecipient(resource: any): resource is CouponRecipient;
|
38
|
-
relationship(id: string | ResourceId | null): CouponRecipientRel;
|
39
|
-
type(): string;
|
40
|
-
}
|
41
|
-
export default CouponRecipients;
|
42
|
-
export { CouponRecipient, CouponRecipientCreate, CouponRecipientUpdate };
|
@@ -1 +0,0 @@
|
|
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)}isCouponRecipient(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_recipients";export default t;
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
|
4
|
-
declare type CouponRel = ResourceRel & {
|
5
|
-
type: typeof Coupons.TYPE;
|
6
|
-
};
|
7
|
-
declare type CouponCodesPromotionRuleRel = ResourceRel & {
|
8
|
-
type: 'coupon_codes_promotion_rules';
|
9
|
-
};
|
10
|
-
interface Coupon extends Resource {
|
11
|
-
code?: string;
|
12
|
-
customer_single_use?: boolean;
|
13
|
-
usage_limit?: number;
|
14
|
-
usage_count?: number;
|
15
|
-
recipient_email?: string;
|
16
|
-
promotion_rule?: CouponCodesPromotionRule;
|
17
|
-
}
|
18
|
-
interface CouponCreate extends ResourceCreate {
|
19
|
-
code: string;
|
20
|
-
customer_single_use?: boolean;
|
21
|
-
usage_limit: number;
|
22
|
-
recipient_email?: string;
|
23
|
-
promotion_rule: CouponCodesPromotionRuleRel;
|
24
|
-
}
|
25
|
-
interface CouponUpdate extends ResourceUpdate {
|
26
|
-
code?: string;
|
27
|
-
customer_single_use?: boolean;
|
28
|
-
usage_limit?: number;
|
29
|
-
recipient_email?: string;
|
30
|
-
promotion_rule?: CouponCodesPromotionRuleRel;
|
31
|
-
}
|
32
|
-
declare class Coupons extends ApiResource {
|
33
|
-
static readonly TYPE: 'coupons';
|
34
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>;
|
35
|
-
create(resource: CouponCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Coupon>;
|
36
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Coupon>;
|
37
|
-
update(resource: CouponUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Coupon>;
|
38
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
39
|
-
isCoupon(resource: any): resource is Coupon;
|
40
|
-
relationship(id: string | ResourceId | null): CouponRel;
|
41
|
-
type(): string;
|
42
|
-
}
|
43
|
-
export default Coupons;
|
44
|
-
export { Coupon, CouponCreate, CouponUpdate };
|
@@ -1 +0,0 @@
|
|
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)}isCoupon(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="coupons";export default t;
|
@@ -1 +0,0 @@
|
|
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)}isCustomerAddress(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="customer_addresses";export default t;
|
@@ -1 +0,0 @@
|
|
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)}isCustomerGroup(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="customer_groups";export default t;
|
@@ -1 +0,0 @@
|
|
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)}isCustomerPasswordReset(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="customer_password_resets";export default t;
|