@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
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class BillingInfoValidationRules extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:BillingInfoValidationRules.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:BillingInfoValidationRules.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:BillingInfoValidationRules.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:BillingInfoValidationRules.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:BillingInfoValidationRules.TYPE,id:e},r)}isBillingInfoValidationRule(e){return e.type&&e.type===BillingInfoValidationRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:BillingInfoValidationRules.TYPE}:{id:e.id,type:BillingInfoValidationRules.TYPE}}type(){return BillingInfoValidationRules.TYPE}}BillingInfoValidationRules.TYPE="billing_info_validation_rules",exports.default=BillingInfoValidationRules;
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Address } from './addresses';
|
4
|
-
import { Attachment } from './attachments';
|
5
|
-
declare type BingGeocoderRel = ResourceRel & {
|
6
|
-
type: typeof BingGeocoders.TYPE;
|
7
|
-
};
|
8
|
-
interface BingGeocoder extends Resource {
|
9
|
-
name?: string;
|
10
|
-
addresses?: Address[];
|
11
|
-
attachments?: Attachment[];
|
12
|
-
}
|
13
|
-
interface BingGeocoderCreate extends ResourceCreate {
|
14
|
-
name: string;
|
15
|
-
key: string;
|
16
|
-
}
|
17
|
-
interface BingGeocoderUpdate extends ResourceUpdate {
|
18
|
-
name?: string;
|
19
|
-
key?: string;
|
20
|
-
}
|
21
|
-
declare class BingGeocoders extends ApiResource {
|
22
|
-
static readonly TYPE: 'bing_geocoders';
|
23
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BingGeocoder>>;
|
24
|
-
create(resource: BingGeocoderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
25
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
26
|
-
update(resource: BingGeocoderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
27
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
28
|
-
isBingGeocoder(resource: any): resource is BingGeocoder;
|
29
|
-
relationship(id: string | ResourceId | null): BingGeocoderRel;
|
30
|
-
type(): string;
|
31
|
-
}
|
32
|
-
export default BingGeocoders;
|
33
|
-
export { BingGeocoder, BingGeocoderCreate, BingGeocoderUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class BingGeocoders extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:BingGeocoders.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:BingGeocoders.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:BingGeocoders.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:BingGeocoders.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:BingGeocoders.TYPE,id:e},t)}isBingGeocoder(e){return e.type&&e.type===BingGeocoders.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:BingGeocoders.TYPE}:{id:e.id,type:BingGeocoders.TYPE}}type(){return BingGeocoders.TYPE}}BingGeocoders.TYPE="bing_geocoders",exports.default=BingGeocoders;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class BraintreeGateways extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:BraintreeGateways.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:BraintreeGateways.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:BraintreeGateways.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:BraintreeGateways.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:BraintreeGateways.TYPE,id:e},s)}isBraintreeGateway(e){return e.type&&e.type===BraintreeGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:BraintreeGateways.TYPE}:{id:e.id,type:BraintreeGateways.TYPE}}type(){return BraintreeGateways.TYPE}}BraintreeGateways.TYPE="braintree_gateways",exports.default=BraintreeGateways;
|
@@ -1,45 +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 BraintreePaymentRel = ResourceRel & {
|
6
|
-
type: typeof BraintreePayments.TYPE;
|
7
|
-
};
|
8
|
-
declare type OrderRel = ResourceRel & {
|
9
|
-
type: 'orders';
|
10
|
-
};
|
11
|
-
interface BraintreePayment extends Resource {
|
12
|
-
client_token?: string;
|
13
|
-
payment_method_nonce?: string;
|
14
|
-
payment_id?: string;
|
15
|
-
local?: boolean;
|
16
|
-
options?: object;
|
17
|
-
order?: Order;
|
18
|
-
payment_gateway?: PaymentGateway;
|
19
|
-
}
|
20
|
-
interface BraintreePaymentCreate extends ResourceCreate {
|
21
|
-
payment_id?: string;
|
22
|
-
local?: boolean;
|
23
|
-
options?: object;
|
24
|
-
order: OrderRel;
|
25
|
-
}
|
26
|
-
interface BraintreePaymentUpdate extends ResourceUpdate {
|
27
|
-
payment_method_nonce?: string;
|
28
|
-
payment_id?: string;
|
29
|
-
local?: boolean;
|
30
|
-
options?: object;
|
31
|
-
order?: OrderRel;
|
32
|
-
}
|
33
|
-
declare class BraintreePayments extends ApiResource {
|
34
|
-
static readonly TYPE: 'braintree_payments';
|
35
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BraintreePayment>>;
|
36
|
-
create(resource: BraintreePaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreePayment>;
|
37
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreePayment>;
|
38
|
-
update(resource: BraintreePaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreePayment>;
|
39
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
40
|
-
isBraintreePayment(resource: any): resource is BraintreePayment;
|
41
|
-
relationship(id: string | ResourceId | null): BraintreePaymentRel;
|
42
|
-
type(): string;
|
43
|
-
}
|
44
|
-
export default BraintreePayments;
|
45
|
-
export { BraintreePayment, BraintreePaymentCreate, BraintreePaymentUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class BraintreePayments extends resource_1.ApiResource{async list(e,s){return this.resources.list({type:BraintreePayments.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:BraintreePayments.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:BraintreePayments.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:BraintreePayments.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:BraintreePayments.TYPE,id:e},s)}isBraintreePayment(e){return e.type&&e.type===BraintreePayments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:BraintreePayments.TYPE}:{id:e.id,type:BraintreePayments.TYPE}}type(){return BraintreePayments.TYPE}}BraintreePayments.TYPE="braintree_payments",exports.default=BraintreePayments;
|
@@ -1,70 +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
|
-
import { SkuList } from './sku_lists';
|
5
|
-
import { Sku } from './skus';
|
6
|
-
import { Attachment } from './attachments';
|
7
|
-
declare type BundleRel = ResourceRel & {
|
8
|
-
type: typeof Bundles.TYPE;
|
9
|
-
};
|
10
|
-
declare type MarketRel = ResourceRel & {
|
11
|
-
type: 'markets';
|
12
|
-
};
|
13
|
-
declare type SkuListRel = ResourceRel & {
|
14
|
-
type: 'sku_lists';
|
15
|
-
};
|
16
|
-
interface Bundle extends Resource {
|
17
|
-
code?: string;
|
18
|
-
name?: string;
|
19
|
-
currency_code?: string;
|
20
|
-
description?: string;
|
21
|
-
image_url?: string;
|
22
|
-
price_amount_cents?: number;
|
23
|
-
price_amount_float?: number;
|
24
|
-
formatted_price_amount?: string;
|
25
|
-
compare_at_amount_cents?: number;
|
26
|
-
compare_at_amount_float?: number;
|
27
|
-
formatted_compare_at_amount?: string;
|
28
|
-
skus_count?: number;
|
29
|
-
market?: Market;
|
30
|
-
sku_list?: SkuList;
|
31
|
-
skus?: Sku[];
|
32
|
-
attachments?: Attachment[];
|
33
|
-
}
|
34
|
-
interface BundleCreate extends ResourceCreate {
|
35
|
-
code: string;
|
36
|
-
name: string;
|
37
|
-
currency_code?: string;
|
38
|
-
description?: string;
|
39
|
-
image_url?: string;
|
40
|
-
price_amount_cents: number;
|
41
|
-
compare_at_amount_cents: number;
|
42
|
-
_compute_price_amount?: boolean;
|
43
|
-
_compute_compare_at_amount?: boolean;
|
44
|
-
market?: MarketRel;
|
45
|
-
sku_list: SkuListRel;
|
46
|
-
}
|
47
|
-
interface BundleUpdate extends ResourceUpdate {
|
48
|
-
code?: string;
|
49
|
-
name?: string;
|
50
|
-
currency_code?: string;
|
51
|
-
description?: string;
|
52
|
-
image_url?: string;
|
53
|
-
price_amount_cents?: number;
|
54
|
-
compare_at_amount_cents?: number;
|
55
|
-
_compute_price_amount?: boolean;
|
56
|
-
_compute_compare_at_amount?: boolean;
|
57
|
-
}
|
58
|
-
declare class Bundles extends ApiResource {
|
59
|
-
static readonly TYPE: 'bundles';
|
60
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Bundle>>;
|
61
|
-
create(resource: BundleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
|
62
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
|
63
|
-
update(resource: BundleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
|
64
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
65
|
-
isBundle(resource: any): resource is Bundle;
|
66
|
-
relationship(id: string | ResourceId | null): BundleRel;
|
67
|
-
type(): string;
|
68
|
-
}
|
69
|
-
export default Bundles;
|
70
|
-
export { Bundle, BundleCreate, BundleUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Bundles extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Bundles.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Bundles.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Bundles.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Bundles.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Bundles.TYPE,id:e},t)}isBundle(e){return e.type&&e.type===Bundles.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Bundles.TYPE}:{id:e.id,type:Bundles.TYPE}}type(){return Bundles.TYPE}}Bundles.TYPE="bundles",exports.default=Bundles;
|
@@ -1,45 +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 { Authorization } from './authorizations';
|
5
|
-
import { Refund } from './refunds';
|
6
|
-
declare type CaptureRel = ResourceRel & {
|
7
|
-
type: typeof Captures.TYPE;
|
8
|
-
};
|
9
|
-
interface Capture 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
|
-
refund_amount_cents?: number;
|
22
|
-
refund_amount_float?: number;
|
23
|
-
formatted_refund_amount?: string;
|
24
|
-
refund_balance_cents?: number;
|
25
|
-
refund_balance_float?: number;
|
26
|
-
formatted_refund_balance?: string;
|
27
|
-
order?: Order;
|
28
|
-
reference_authorization?: Authorization;
|
29
|
-
refunds?: Refund[];
|
30
|
-
}
|
31
|
-
interface CaptureUpdate extends ResourceUpdate {
|
32
|
-
_refund?: boolean;
|
33
|
-
_refund_amount_cents?: number;
|
34
|
-
}
|
35
|
-
declare class Captures extends ApiResource {
|
36
|
-
static readonly TYPE: 'captures';
|
37
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Capture>>;
|
38
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
|
39
|
-
update(resource: CaptureUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
|
40
|
-
isCapture(resource: any): resource is Capture;
|
41
|
-
relationship(id: string | ResourceId | null): CaptureRel;
|
42
|
-
type(): string;
|
43
|
-
}
|
44
|
-
export default Captures;
|
45
|
-
export { Capture, CaptureUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Captures extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Captures.TYPE},e,t)}async retrieve(e,t,r){return this.resources.retrieve({type:Captures.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Captures.TYPE}),t,r)}isCapture(e){return e.type&&e.type===Captures.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Captures.TYPE}:{id:e.id,type:Captures.TYPE}}type(){return Captures.TYPE}}Captures.TYPE="captures",exports.default=Captures;
|
@@ -1,24 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { Market } from './markets';
|
4
|
-
import { Attachment } from './attachments';
|
5
|
-
declare type CarrierAccountRel = ResourceRel & {
|
6
|
-
type: typeof CarrierAccounts.TYPE;
|
7
|
-
};
|
8
|
-
interface CarrierAccount extends Resource {
|
9
|
-
name?: string;
|
10
|
-
easypost_type?: string;
|
11
|
-
easypost_id?: string;
|
12
|
-
market?: Market;
|
13
|
-
attachments?: Attachment[];
|
14
|
-
}
|
15
|
-
declare class CarrierAccounts extends ApiResource {
|
16
|
-
static readonly TYPE: 'carrier_accounts';
|
17
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CarrierAccount>>;
|
18
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CarrierAccount>;
|
19
|
-
isCarrierAccount(resource: any): resource is CarrierAccount;
|
20
|
-
relationship(id: string | ResourceId | null): CarrierAccountRel;
|
21
|
-
type(): string;
|
22
|
-
}
|
23
|
-
export default CarrierAccounts;
|
24
|
-
export { CarrierAccount };
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CarrierAccounts extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CarrierAccounts.TYPE},e,t)}async retrieve(e,t,r){return this.resources.retrieve({type:CarrierAccounts.TYPE,id:e},t,r)}isCarrierAccount(e){return e.type&&e.type===CarrierAccounts.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CarrierAccounts.TYPE}:{id:e.id,type:CarrierAccounts.TYPE}}type(){return CarrierAccounts.TYPE}}CarrierAccounts.TYPE="carrier_accounts",exports.default=CarrierAccounts;
|
@@ -1,43 +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 { CheckoutComPayment } from './checkout_com_payments';
|
5
|
-
declare type CheckoutComGatewayRel = ResourceRel & {
|
6
|
-
type: typeof CheckoutComGateways.TYPE;
|
7
|
-
};
|
8
|
-
declare type CheckoutComPaymentRel = ResourceRel & {
|
9
|
-
type: 'checkout_com_payments';
|
10
|
-
};
|
11
|
-
interface CheckoutComGateway extends Resource {
|
12
|
-
name?: string;
|
13
|
-
webhook_endpoint_id?: string;
|
14
|
-
webhook_endpoint_secret?: string;
|
15
|
-
webhook_endpoint_url?: string;
|
16
|
-
payment_methods?: PaymentMethod[];
|
17
|
-
checkout_com_payments?: CheckoutComPayment[];
|
18
|
-
}
|
19
|
-
interface CheckoutComGatewayCreate extends ResourceCreate {
|
20
|
-
name: string;
|
21
|
-
secret_key: string;
|
22
|
-
public_key: string;
|
23
|
-
checkout_com_payments?: CheckoutComPaymentRel[];
|
24
|
-
}
|
25
|
-
interface CheckoutComGatewayUpdate extends ResourceUpdate {
|
26
|
-
name?: string;
|
27
|
-
secret_key?: string;
|
28
|
-
public_key?: string;
|
29
|
-
checkout_com_payments?: CheckoutComPaymentRel[];
|
30
|
-
}
|
31
|
-
declare class CheckoutComGateways extends ApiResource {
|
32
|
-
static readonly TYPE: 'checkout_com_gateways';
|
33
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CheckoutComGateway>>;
|
34
|
-
create(resource: CheckoutComGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComGateway>;
|
35
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComGateway>;
|
36
|
-
update(resource: CheckoutComGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComGateway>;
|
37
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
38
|
-
isCheckoutComGateway(resource: any): resource is CheckoutComGateway;
|
39
|
-
relationship(id: string | ResourceId | null): CheckoutComGatewayRel;
|
40
|
-
type(): string;
|
41
|
-
}
|
42
|
-
export default CheckoutComGateways;
|
43
|
-
export { CheckoutComGateway, CheckoutComGatewayCreate, CheckoutComGatewayUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CheckoutComGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:CheckoutComGateways.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:CheckoutComGateways.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:CheckoutComGateways.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:CheckoutComGateways.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:CheckoutComGateways.TYPE,id:e},r)}isCheckoutComGateway(e){return e.type&&e.type===CheckoutComGateways.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CheckoutComGateways.TYPE}:{id:e.id,type:CheckoutComGateways.TYPE}}type(){return CheckoutComGateways.TYPE}}CheckoutComGateways.TYPE="checkout_com_gateways",exports.default=CheckoutComGateways;
|
@@ -1,48 +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 CheckoutComPaymentRel = ResourceRel & {
|
6
|
-
type: typeof CheckoutComPayments.TYPE;
|
7
|
-
};
|
8
|
-
declare type OrderRel = ResourceRel & {
|
9
|
-
type: 'orders';
|
10
|
-
};
|
11
|
-
interface CheckoutComPayment extends Resource {
|
12
|
-
payment_type?: string;
|
13
|
-
token?: string;
|
14
|
-
session_id?: string;
|
15
|
-
source_id?: string;
|
16
|
-
customer_token?: string;
|
17
|
-
redirect_uri?: string;
|
18
|
-
payment_response?: object;
|
19
|
-
order?: Order;
|
20
|
-
payment_gateway?: PaymentGateway;
|
21
|
-
}
|
22
|
-
interface CheckoutComPaymentCreate extends ResourceCreate {
|
23
|
-
payment_type: string;
|
24
|
-
token: string;
|
25
|
-
session_id?: string;
|
26
|
-
order: OrderRel;
|
27
|
-
}
|
28
|
-
interface CheckoutComPaymentUpdate extends ResourceUpdate {
|
29
|
-
payment_type?: string;
|
30
|
-
token?: string;
|
31
|
-
session_id?: string;
|
32
|
-
_details?: boolean;
|
33
|
-
_refresh?: boolean;
|
34
|
-
order?: OrderRel;
|
35
|
-
}
|
36
|
-
declare class CheckoutComPayments extends ApiResource {
|
37
|
-
static readonly TYPE: 'checkout_com_payments';
|
38
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CheckoutComPayment>>;
|
39
|
-
create(resource: CheckoutComPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
|
40
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
|
41
|
-
update(resource: CheckoutComPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
|
42
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
43
|
-
isCheckoutComPayment(resource: any): resource is CheckoutComPayment;
|
44
|
-
relationship(id: string | ResourceId | null): CheckoutComPaymentRel;
|
45
|
-
type(): string;
|
46
|
-
}
|
47
|
-
export default CheckoutComPayments;
|
48
|
-
export { CheckoutComPayment, CheckoutComPaymentCreate, CheckoutComPaymentUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CheckoutComPayments extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:CheckoutComPayments.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:CheckoutComPayments.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:CheckoutComPayments.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:CheckoutComPayments.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:CheckoutComPayments.TYPE,id:e},r)}isCheckoutComPayment(e){return e.type&&e.type===CheckoutComPayments.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CheckoutComPayments.TYPE}:{id:e.id,type:CheckoutComPayments.TYPE}}type(){return CheckoutComPayments.TYPE}}CheckoutComPayments.TYPE="checkout_com_payments",exports.default=CheckoutComPayments;
|
@@ -1,58 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { PercentageDiscountPromotion } from './percentage_discount_promotions';
|
4
|
-
import { FreeShippingPromotion } from './free_shipping_promotions';
|
5
|
-
import { FixedAmountPromotion } from './fixed_amount_promotions';
|
6
|
-
import { FreeGiftPromotion } from './free_gift_promotions';
|
7
|
-
import { FixedPricePromotion } from './fixed_price_promotions';
|
8
|
-
import { ExternalPromotion } from './external_promotions';
|
9
|
-
import { Coupon } from './coupons';
|
10
|
-
declare type CouponCodesPromotionRuleRel = ResourceRel & {
|
11
|
-
type: typeof CouponCodesPromotionRules.TYPE;
|
12
|
-
};
|
13
|
-
declare type PercentageDiscountPromotionRel = ResourceRel & {
|
14
|
-
type: 'percentage_discount_promotions';
|
15
|
-
};
|
16
|
-
declare type FreeShippingPromotionRel = ResourceRel & {
|
17
|
-
type: 'free_shipping_promotions';
|
18
|
-
};
|
19
|
-
declare type FixedAmountPromotionRel = ResourceRel & {
|
20
|
-
type: 'fixed_amount_promotions';
|
21
|
-
};
|
22
|
-
declare type FreeGiftPromotionRel = ResourceRel & {
|
23
|
-
type: 'free_gift_promotions';
|
24
|
-
};
|
25
|
-
declare type FixedPricePromotionRel = ResourceRel & {
|
26
|
-
type: 'fixed_price_promotions';
|
27
|
-
};
|
28
|
-
declare type ExternalPromotionRel = ResourceRel & {
|
29
|
-
type: 'external_promotions';
|
30
|
-
};
|
31
|
-
declare type CouponRel = ResourceRel & {
|
32
|
-
type: 'coupons';
|
33
|
-
};
|
34
|
-
interface CouponCodesPromotionRule extends Resource {
|
35
|
-
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion;
|
36
|
-
coupons?: Coupon[];
|
37
|
-
}
|
38
|
-
interface CouponCodesPromotionRuleCreate extends ResourceCreate {
|
39
|
-
promotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
|
40
|
-
coupons?: CouponRel[];
|
41
|
-
}
|
42
|
-
interface CouponCodesPromotionRuleUpdate extends ResourceUpdate {
|
43
|
-
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
|
44
|
-
coupons?: CouponRel[];
|
45
|
-
}
|
46
|
-
declare class CouponCodesPromotionRules extends ApiResource {
|
47
|
-
static readonly TYPE: 'coupon_codes_promotion_rules';
|
48
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CouponCodesPromotionRule>>;
|
49
|
-
create(resource: CouponCodesPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
50
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
51
|
-
update(resource: CouponCodesPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
52
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
53
|
-
isCouponCodesPromotionRule(resource: any): resource is CouponCodesPromotionRule;
|
54
|
-
relationship(id: string | ResourceId | null): CouponCodesPromotionRuleRel;
|
55
|
-
type(): string;
|
56
|
-
}
|
57
|
-
export default CouponCodesPromotionRules;
|
58
|
-
export { CouponCodesPromotionRule, CouponCodesPromotionRuleCreate, CouponCodesPromotionRuleUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CouponCodesPromotionRules extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CouponCodesPromotionRules.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:CouponCodesPromotionRules.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:CouponCodesPromotionRules.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:CouponCodesPromotionRules.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:CouponCodesPromotionRules.TYPE,id:e},t)}isCouponCodesPromotionRule(e){return e.type&&e.type===CouponCodesPromotionRules.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CouponCodesPromotionRules.TYPE}:{id:e.id,type:CouponCodesPromotionRules.TYPE}}type(){return CouponCodesPromotionRules.TYPE}}CouponCodesPromotionRules.TYPE="coupon_codes_promotion_rules",exports.default=CouponCodesPromotionRules;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CouponRecipients extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:CouponRecipients.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:CouponRecipients.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:CouponRecipients.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:CouponRecipients.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:CouponRecipients.TYPE,id:e},r)}isCouponRecipient(e){return e.type&&e.type===CouponRecipients.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CouponRecipients.TYPE}:{id:e.id,type:CouponRecipients.TYPE}}type(){return CouponRecipients.TYPE}}CouponRecipients.TYPE="coupon_recipients",exports.default=CouponRecipients;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Coupons extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Coupons.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Coupons.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Coupons.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Coupons.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Coupons.TYPE,id:e},t)}isCoupon(e){return e.type&&e.type===Coupons.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Coupons.TYPE}:{id:e.id,type:Coupons.TYPE}}type(){return Coupons.TYPE}}Coupons.TYPE="coupons",exports.default=Coupons;
|
@@ -1,39 +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 { Address } from './addresses';
|
5
|
-
declare type CustomerAddressRel = ResourceRel & {
|
6
|
-
type: typeof CustomerAddresses.TYPE;
|
7
|
-
};
|
8
|
-
declare type CustomerRel = ResourceRel & {
|
9
|
-
type: 'customers';
|
10
|
-
};
|
11
|
-
declare type AddressRel = ResourceRel & {
|
12
|
-
type: 'addresses';
|
13
|
-
};
|
14
|
-
interface CustomerAddress extends Resource {
|
15
|
-
name?: string;
|
16
|
-
customer?: Customer;
|
17
|
-
address?: Address;
|
18
|
-
}
|
19
|
-
interface CustomerAddressCreate extends ResourceCreate {
|
20
|
-
customer: CustomerRel;
|
21
|
-
address: AddressRel;
|
22
|
-
}
|
23
|
-
interface CustomerAddressUpdate extends ResourceUpdate {
|
24
|
-
customer?: CustomerRel;
|
25
|
-
address?: AddressRel;
|
26
|
-
}
|
27
|
-
declare class CustomerAddresses extends ApiResource {
|
28
|
-
static readonly TYPE: 'customer_addresses';
|
29
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerAddress>>;
|
30
|
-
create(resource: CustomerAddressCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerAddress>;
|
31
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerAddress>;
|
32
|
-
update(resource: CustomerAddressUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerAddress>;
|
33
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
34
|
-
isCustomerAddress(resource: any): resource is CustomerAddress;
|
35
|
-
relationship(id: string | ResourceId | null): CustomerAddressRel;
|
36
|
-
type(): string;
|
37
|
-
}
|
38
|
-
export default CustomerAddresses;
|
39
|
-
export { CustomerAddress, CustomerAddressCreate, CustomerAddressUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerAddresses extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerAddresses.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerAddresses.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:CustomerAddresses.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerAddresses.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:CustomerAddresses.TYPE,id:e},t)}isCustomerAddress(e){return e.type&&e.type===CustomerAddresses.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CustomerAddresses.TYPE}:{id:e.id,type:CustomerAddresses.TYPE}}type(){return CustomerAddresses.TYPE}}CustomerAddresses.TYPE="customer_addresses",exports.default=CustomerAddresses;
|
@@ -1,33 +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 { Market } from './markets';
|
5
|
-
import { Attachment } from './attachments';
|
6
|
-
declare type CustomerGroupRel = ResourceRel & {
|
7
|
-
type: typeof CustomerGroups.TYPE;
|
8
|
-
};
|
9
|
-
interface CustomerGroup extends Resource {
|
10
|
-
name?: string;
|
11
|
-
customers?: Customer[];
|
12
|
-
markets?: Market[];
|
13
|
-
attachments?: Attachment[];
|
14
|
-
}
|
15
|
-
interface CustomerGroupCreate extends ResourceCreate {
|
16
|
-
name: string;
|
17
|
-
}
|
18
|
-
interface CustomerGroupUpdate extends ResourceUpdate {
|
19
|
-
name?: string;
|
20
|
-
}
|
21
|
-
declare class CustomerGroups extends ApiResource {
|
22
|
-
static readonly TYPE: 'customer_groups';
|
23
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerGroup>>;
|
24
|
-
create(resource: CustomerGroupCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerGroup>;
|
25
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerGroup>;
|
26
|
-
update(resource: CustomerGroupUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerGroup>;
|
27
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
28
|
-
isCustomerGroup(resource: any): resource is CustomerGroup;
|
29
|
-
relationship(id: string | ResourceId | null): CustomerGroupRel;
|
30
|
-
type(): string;
|
31
|
-
}
|
32
|
-
export default CustomerGroups;
|
33
|
-
export { CustomerGroup, CustomerGroupCreate, CustomerGroupUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerGroups extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerGroups.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerGroups.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:CustomerGroups.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerGroups.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:CustomerGroups.TYPE,id:e},t)}isCustomerGroup(e){return e.type&&e.type===CustomerGroups.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CustomerGroups.TYPE}:{id:e.id,type:CustomerGroups.TYPE}}type(){return CustomerGroups.TYPE}}CustomerGroups.TYPE="customer_groups",exports.default=CustomerGroups;
|
@@ -1,32 +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
|
-
declare type CustomerPasswordResetRel = ResourceRel & {
|
5
|
-
type: typeof CustomerPasswordResets.TYPE;
|
6
|
-
};
|
7
|
-
interface CustomerPasswordReset extends Resource {
|
8
|
-
customer_email?: string;
|
9
|
-
reset_password_token?: string;
|
10
|
-
reset_password_at?: string;
|
11
|
-
customer?: Customer;
|
12
|
-
}
|
13
|
-
interface CustomerPasswordResetCreate extends ResourceCreate {
|
14
|
-
customer_email: string;
|
15
|
-
}
|
16
|
-
interface CustomerPasswordResetUpdate extends ResourceUpdate {
|
17
|
-
customer_password?: string;
|
18
|
-
_reset_password_token?: string;
|
19
|
-
}
|
20
|
-
declare class CustomerPasswordResets extends ApiResource {
|
21
|
-
static readonly TYPE: 'customer_password_resets';
|
22
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerPasswordReset>>;
|
23
|
-
create(resource: CustomerPasswordResetCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPasswordReset>;
|
24
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPasswordReset>;
|
25
|
-
update(resource: CustomerPasswordResetUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPasswordReset>;
|
26
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
27
|
-
isCustomerPasswordReset(resource: any): resource is CustomerPasswordReset;
|
28
|
-
relationship(id: string | ResourceId | null): CustomerPasswordResetRel;
|
29
|
-
type(): string;
|
30
|
-
}
|
31
|
-
export default CustomerPasswordResets;
|
32
|
-
export { CustomerPasswordReset, CustomerPasswordResetCreate, CustomerPasswordResetUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerPasswordResets extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerPasswordResets.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerPasswordResets.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:CustomerPasswordResets.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerPasswordResets.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:CustomerPasswordResets.TYPE,id:e},t)}isCustomerPasswordReset(e){return e.type&&e.type===CustomerPasswordResets.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CustomerPasswordResets.TYPE}:{id:e.id,type:CustomerPasswordResets.TYPE}}type(){return CustomerPasswordResets.TYPE}}CustomerPasswordResets.TYPE="customer_password_resets",exports.default=CustomerPasswordResets;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerPaymentSources extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerPaymentSources.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerPaymentSources.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:CustomerPaymentSources.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerPaymentSources.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:CustomerPaymentSources.TYPE,id:e},t)}isCustomerPaymentSource(e){return e.type&&e.type===CustomerPaymentSources.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CustomerPaymentSources.TYPE}:{id:e.id,type:CustomerPaymentSources.TYPE}}type(){return CustomerPaymentSources.TYPE}}CustomerPaymentSources.TYPE="customer_payment_sources",exports.default=CustomerPaymentSources;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CustomerSubscriptions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:CustomerSubscriptions.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:CustomerSubscriptions.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:CustomerSubscriptions.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:CustomerSubscriptions.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:CustomerSubscriptions.TYPE,id:e},t)}isCustomerSubscription(e){return e.type&&e.type===CustomerSubscriptions.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:CustomerSubscriptions.TYPE}:{id:e.id,type:CustomerSubscriptions.TYPE}}type(){return CustomerSubscriptions.TYPE}}CustomerSubscriptions.TYPE="customer_subscriptions",exports.default=CustomerSubscriptions;
|
@@ -1,52 +0,0 @@
|
|
1
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
-
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import { CustomerGroup } from './customer_groups';
|
4
|
-
import { CustomerAddress } from './customer_addresses';
|
5
|
-
import { CustomerPaymentSource } from './customer_payment_sources';
|
6
|
-
import { CustomerSubscription } from './customer_subscriptions';
|
7
|
-
import { Order } from './orders';
|
8
|
-
import { OrderSubscription } from './order_subscriptions';
|
9
|
-
import { Return } from './returns';
|
10
|
-
import { Attachment } from './attachments';
|
11
|
-
declare type CustomerRel = ResourceRel & {
|
12
|
-
type: typeof Customers.TYPE;
|
13
|
-
};
|
14
|
-
declare type CustomerGroupRel = ResourceRel & {
|
15
|
-
type: 'customer_groups';
|
16
|
-
};
|
17
|
-
interface Customer extends Resource {
|
18
|
-
email?: string;
|
19
|
-
status?: string;
|
20
|
-
has_password?: boolean;
|
21
|
-
customer_group?: CustomerGroup;
|
22
|
-
customer_addresses?: CustomerAddress[];
|
23
|
-
customer_payment_sources?: CustomerPaymentSource[];
|
24
|
-
customer_subscriptions?: CustomerSubscription[];
|
25
|
-
orders?: Order[];
|
26
|
-
order_subscriptions?: OrderSubscription[];
|
27
|
-
returns?: Return[];
|
28
|
-
attachments?: Attachment[];
|
29
|
-
}
|
30
|
-
interface CustomerCreate extends ResourceCreate {
|
31
|
-
email: string;
|
32
|
-
password?: string;
|
33
|
-
customer_group?: CustomerGroupRel;
|
34
|
-
}
|
35
|
-
interface CustomerUpdate extends ResourceUpdate {
|
36
|
-
email?: string;
|
37
|
-
password?: string;
|
38
|
-
customer_group?: CustomerGroupRel;
|
39
|
-
}
|
40
|
-
declare class Customers extends ApiResource {
|
41
|
-
static readonly TYPE: 'customers';
|
42
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Customer>>;
|
43
|
-
create(resource: CustomerCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
|
44
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
|
45
|
-
update(resource: CustomerUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
|
46
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
47
|
-
isCustomer(resource: any): resource is Customer;
|
48
|
-
relationship(id: string | ResourceId | null): CustomerRel;
|
49
|
-
type(): string;
|
50
|
-
}
|
51
|
-
export default Customers;
|
52
|
-
export { Customer, CustomerCreate, CustomerUpdate };
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Customers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Customers.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Customers.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Customers.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Customers.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Customers.TYPE,id:e},t)}isCustomer(e){return e.type&&e.type===Customers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:Customers.TYPE}:{id:e.id,type:Customers.TYPE}}type(){return Customers.TYPE}}Customers.TYPE="customers",exports.default=Customers;
|