@commercelayer/sdk 2.3.1 → 2.3.3-beta.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/lib/{api.d.ts → cjs/api.d.ts} +101 -101
- package/lib/cjs/api.js +406 -0
- package/lib/{client.d.ts → cjs/client.d.ts} +30 -30
- package/lib/cjs/client.js +101 -0
- package/lib/{commercelayer.d.ts → cjs/commercelayer.d.ts} +118 -118
- package/lib/cjs/commercelayer.js +201 -0
- package/lib/{common.d.ts → cjs/common.d.ts} +4 -4
- package/lib/cjs/common.js +13 -0
- package/lib/{config.d.ts → cjs/config.d.ts} +7 -7
- package/lib/cjs/config.js +9 -0
- package/lib/{error.d.ts → cjs/error.d.ts} +26 -23
- package/lib/cjs/error.js +40 -0
- package/lib/{index.d.ts → cjs/index.d.ts} +6 -6
- package/lib/cjs/index.js +24 -0
- package/lib/{interceptor.d.ts → cjs/interceptor.d.ts} +19 -19
- package/lib/cjs/interceptor.js +2 -0
- package/lib/{jsonapi.d.ts → cjs/jsonapi.d.ts} +7 -7
- package/lib/cjs/jsonapi.js +63 -0
- package/lib/{model.d.ts → cjs/model.d.ts} +99 -99
- package/lib/cjs/model.js +3 -0
- package/lib/{query.d.ts → cjs/query.d.ts} +57 -57
- package/lib/cjs/query.js +172 -0
- package/lib/{resource.d.ts → cjs/resource.d.ts} +69 -69
- package/lib/cjs/resource.js +114 -0
- package/lib/{resources → cjs/resources}/addresses.d.ts +91 -91
- package/lib/cjs/resources/addresses.js +47 -0
- package/lib/{resources → cjs/resources}/adjustments.d.ts +39 -39
- package/lib/cjs/resources/adjustments.js +47 -0
- package/lib/{resources → cjs/resources}/adyen_gateways.d.ts +49 -49
- package/lib/cjs/resources/adyen_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/adyen_payments.d.ts +47 -47
- package/lib/cjs/resources/adyen_payments.js +47 -0
- package/lib/{resources → cjs/resources}/application.d.ts +25 -25
- package/lib/cjs/resources/application.js +35 -0
- package/lib/{resources → cjs/resources}/attachments.d.ts +160 -160
- package/lib/cjs/resources/attachments.js +47 -0
- package/lib/{resources → cjs/resources}/authorizations.d.ts +58 -58
- package/lib/cjs/resources/authorizations.js +41 -0
- package/lib/{resources → cjs/resources}/avalara_accounts.d.ts +53 -53
- package/lib/cjs/resources/avalara_accounts.js +47 -0
- package/lib/{resources → cjs/resources}/billing_info_validation_rules.d.ts +35 -35
- package/lib/cjs/resources/billing_info_validation_rules.js +47 -0
- package/lib/{resources → cjs/resources}/bing_geocoders.d.ts +37 -37
- package/lib/cjs/resources/bing_geocoders.js +47 -0
- package/lib/{resources → cjs/resources}/braintree_gateways.d.ts +58 -58
- package/lib/cjs/resources/braintree_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/braintree_payments.d.ts +49 -49
- package/lib/cjs/resources/braintree_payments.js +47 -0
- package/lib/{resources → cjs/resources}/bundles.d.ts +69 -69
- package/lib/cjs/resources/bundles.js +47 -0
- package/lib/{resources → cjs/resources}/captures.d.ts +49 -49
- package/lib/cjs/resources/captures.js +41 -0
- package/lib/{resources → cjs/resources}/carrier_accounts.d.ts +28 -28
- package/lib/cjs/resources/carrier_accounts.js +38 -0
- package/lib/{resources → cjs/resources}/checkout_com_gateways.d.ts +47 -47
- package/lib/cjs/resources/checkout_com_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/checkout_com_payments.d.ts +53 -53
- package/lib/cjs/resources/checkout_com_payments.js +47 -0
- package/lib/{resources → cjs/resources}/coupon_codes_promotion_rules.d.ts +62 -62
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +47 -0
- package/lib/{resources → cjs/resources}/coupon_recipients.d.ts +46 -46
- package/lib/cjs/resources/coupon_recipients.js +47 -0
- package/lib/{resources → cjs/resources}/coupons.d.ts +45 -45
- package/lib/cjs/resources/coupons.js +47 -0
- package/lib/{resources → cjs/resources}/customer_addresses.d.ts +43 -43
- package/lib/cjs/resources/customer_addresses.js +47 -0
- package/lib/{resources → cjs/resources}/customer_groups.d.ts +37 -37
- package/lib/cjs/resources/customer_groups.js +47 -0
- package/lib/{resources → cjs/resources}/customer_password_resets.d.ts +36 -36
- package/lib/cjs/resources/customer_password_resets.js +47 -0
- package/lib/{resources → cjs/resources}/customer_payment_sources.d.ts +69 -69
- package/lib/cjs/resources/customer_payment_sources.js +47 -0
- package/lib/{resources → cjs/resources}/customer_subscriptions.d.ts +31 -31
- package/lib/cjs/resources/customer_subscriptions.js +47 -0
- package/lib/{resources → cjs/resources}/customers.d.ts +56 -56
- package/lib/cjs/resources/customers.js +47 -0
- package/lib/{resources → cjs/resources}/delivery_lead_times.d.ts +52 -52
- package/lib/cjs/resources/delivery_lead_times.js +47 -0
- package/lib/{resources → cjs/resources}/event_callbacks.d.ts +27 -27
- package/lib/cjs/resources/event_callbacks.js +38 -0
- package/lib/{resources → cjs/resources}/external_gateways.d.ts +48 -48
- package/lib/cjs/resources/external_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/external_payments.d.ts +42 -42
- package/lib/cjs/resources/external_payments.js +47 -0
- package/lib/{resources → cjs/resources}/external_promotions.d.ts +82 -82
- package/lib/cjs/resources/external_promotions.js +47 -0
- package/lib/{resources → cjs/resources}/external_tax_calculators.d.ts +45 -45
- package/lib/cjs/resources/external_tax_calculators.js +47 -0
- package/lib/{resources → cjs/resources}/fixed_amount_promotions.d.ts +84 -84
- package/lib/cjs/resources/fixed_amount_promotions.js +47 -0
- package/lib/{resources → cjs/resources}/fixed_price_promotions.d.ts +93 -93
- package/lib/cjs/resources/fixed_price_promotions.js +47 -0
- package/lib/{resources → cjs/resources}/free_gift_promotions.d.ts +91 -91
- package/lib/cjs/resources/free_gift_promotions.js +47 -0
- package/lib/{resources → cjs/resources}/free_shipping_promotions.d.ts +79 -79
- package/lib/cjs/resources/free_shipping_promotions.js +47 -0
- package/lib/{resources → cjs/resources}/geocoders.d.ts +25 -25
- package/lib/cjs/resources/geocoders.js +35 -0
- package/lib/{resources → cjs/resources}/gift_card_recipients.d.ts +46 -46
- package/lib/cjs/resources/gift_card_recipients.js +47 -0
- package/lib/{resources → cjs/resources}/gift_cards.d.ts +84 -84
- package/lib/cjs/resources/gift_cards.js +47 -0
- package/lib/{resources → cjs/resources}/google_geocoders.d.ts +37 -37
- package/lib/cjs/resources/google_geocoders.js +47 -0
- package/lib/{resources → cjs/resources}/imports.d.ts +44 -44
- package/lib/cjs/resources/imports.js +44 -0
- package/lib/{resources → cjs/resources}/in_stock_subscriptions.d.ts +60 -60
- package/lib/cjs/resources/in_stock_subscriptions.js +47 -0
- package/lib/{resources → cjs/resources}/inventory_models.d.ts +43 -43
- package/lib/cjs/resources/inventory_models.js +47 -0
- package/lib/{resources → cjs/resources}/inventory_return_locations.d.ts +45 -45
- package/lib/cjs/resources/inventory_return_locations.js +47 -0
- package/lib/{resources → cjs/resources}/inventory_stock_locations.d.ts +48 -48
- package/lib/cjs/resources/inventory_stock_locations.js +47 -0
- package/lib/{resources → cjs/resources}/line_item_options.d.ts +59 -59
- package/lib/cjs/resources/line_item_options.js +47 -0
- package/lib/{resources → cjs/resources}/line_items.d.ts +125 -125
- package/lib/cjs/resources/line_items.js +47 -0
- package/lib/{resources → cjs/resources}/manual_gateways.d.ts +36 -36
- package/lib/cjs/resources/manual_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/manual_tax_calculators.d.ts +49 -49
- package/lib/cjs/resources/manual_tax_calculators.js +47 -0
- package/lib/{resources → cjs/resources}/markets.d.ts +79 -79
- package/lib/cjs/resources/markets.js +47 -0
- package/lib/{resources → cjs/resources}/merchants.d.ts +40 -40
- package/lib/cjs/resources/merchants.js +47 -0
- package/lib/{resources → cjs/resources}/order_amount_promotion_rules.d.ts +60 -60
- package/lib/cjs/resources/order_amount_promotion_rules.js +47 -0
- package/lib/{resources → cjs/resources}/order_copies.d.ts +46 -46
- package/lib/cjs/resources/order_copies.js +44 -0
- package/lib/{resources → cjs/resources}/order_subscriptions.d.ts +66 -66
- package/lib/cjs/resources/order_subscriptions.js +47 -0
- package/lib/{resources → cjs/resources}/order_validation_rules.d.ts +22 -22
- package/lib/cjs/resources/order_validation_rules.js +35 -0
- package/lib/{resources → cjs/resources}/orders.d.ts +255 -255
- package/lib/cjs/resources/orders.js +47 -0
- package/lib/{resources → cjs/resources}/organization.d.ts +34 -34
- package/lib/cjs/resources/organization.js +35 -0
- package/lib/{resources → cjs/resources}/packages.d.ts +57 -57
- package/lib/cjs/resources/packages.js +47 -0
- package/lib/{resources → cjs/resources}/parcel_line_items.d.ts +51 -51
- package/lib/cjs/resources/parcel_line_items.js +47 -0
- package/lib/{resources → cjs/resources}/parcels.d.ts +108 -108
- package/lib/cjs/resources/parcels.js +47 -0
- package/lib/{resources → cjs/resources}/payment_gateways.d.ts +33 -33
- package/lib/cjs/resources/payment_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/payment_methods.d.ts +54 -54
- package/lib/cjs/resources/payment_methods.js +47 -0
- package/lib/{resources → cjs/resources}/paypal_gateways.d.ts +41 -41
- package/lib/cjs/resources/paypal_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/paypal_payments.d.ts +49 -49
- package/lib/cjs/resources/paypal_payments.js +47 -0
- package/lib/{resources → cjs/resources}/percentage_discount_promotions.d.ts +91 -91
- package/lib/cjs/resources/percentage_discount_promotions.js +47 -0
- package/lib/{resources → cjs/resources}/price_lists.d.ts +41 -41
- package/lib/cjs/resources/price_lists.js +47 -0
- package/lib/{resources → cjs/resources}/prices.d.ts +58 -58
- package/lib/cjs/resources/prices.js +47 -0
- package/lib/{resources → cjs/resources}/promotion_rules.d.ts +27 -27
- package/lib/cjs/resources/promotion_rules.js +35 -0
- package/lib/{resources → cjs/resources}/promotions.d.ts +38 -38
- package/lib/cjs/resources/promotions.js +35 -0
- package/lib/{resources → cjs/resources}/refunds.d.ts +36 -36
- package/lib/cjs/resources/refunds.js +38 -0
- package/lib/{resources → cjs/resources}/return_line_items.d.ts +51 -51
- package/lib/cjs/resources/return_line_items.js +47 -0
- package/lib/{resources → cjs/resources}/returns.d.ts +69 -69
- package/lib/cjs/resources/returns.js +47 -0
- package/lib/{resources → cjs/resources}/shipments.d.ts +80 -80
- package/lib/cjs/resources/shipments.js +41 -0
- package/lib/{resources → cjs/resources}/shipping_categories.d.ts +35 -35
- package/lib/cjs/resources/shipping_categories.js +47 -0
- package/lib/{resources → cjs/resources}/shipping_methods.d.ts +71 -71
- package/lib/cjs/resources/shipping_methods.js +47 -0
- package/lib/{resources → cjs/resources}/shipping_zones.d.ts +51 -51
- package/lib/cjs/resources/shipping_zones.js +47 -0
- package/lib/{resources → cjs/resources}/sku_list_items.d.ts +46 -46
- package/lib/cjs/resources/sku_list_items.js +47 -0
- package/lib/{resources → cjs/resources}/sku_list_promotion_rules.d.ts +70 -70
- package/lib/cjs/resources/sku_list_promotion_rules.js +47 -0
- package/lib/{resources → cjs/resources}/sku_lists.d.ts +50 -50
- package/lib/cjs/resources/sku_lists.js +47 -0
- package/lib/{resources → cjs/resources}/sku_options.d.ts +55 -55
- package/lib/cjs/resources/sku_options.js +47 -0
- package/lib/{resources → cjs/resources}/skus.d.ts +76 -76
- package/lib/cjs/resources/skus.js +47 -0
- package/lib/{resources → cjs/resources}/stock_items.d.ts +50 -50
- package/lib/cjs/resources/stock_items.js +47 -0
- package/lib/{resources → cjs/resources}/stock_line_items.d.ts +30 -30
- package/lib/cjs/resources/stock_line_items.js +38 -0
- package/lib/{resources → cjs/resources}/stock_locations.d.ts +55 -55
- package/lib/cjs/resources/stock_locations.js +47 -0
- package/lib/{resources → cjs/resources}/stock_transfers.d.ts +70 -70
- package/lib/cjs/resources/stock_transfers.js +47 -0
- package/lib/{resources → cjs/resources}/stripe_gateways.d.ts +40 -40
- package/lib/cjs/resources/stripe_gateways.js +47 -0
- package/lib/{resources → cjs/resources}/stripe_payments.d.ts +44 -44
- package/lib/cjs/resources/stripe_payments.js +47 -0
- package/lib/{resources → cjs/resources}/tax_calculators.d.ts +27 -27
- package/lib/cjs/resources/tax_calculators.js +35 -0
- package/lib/{resources → cjs/resources}/tax_categories.d.ts +61 -61
- package/lib/cjs/resources/tax_categories.js +47 -0
- package/lib/{resources → cjs/resources}/tax_rules.d.ts +72 -72
- package/lib/cjs/resources/tax_rules.js +47 -0
- package/lib/{resources → cjs/resources}/taxjar_accounts.d.ts +44 -44
- package/lib/cjs/resources/taxjar_accounts.js +47 -0
- package/lib/{resources → cjs/resources}/transactions.d.ts +33 -33
- package/lib/cjs/resources/transactions.js +35 -0
- package/lib/{resources → cjs/resources}/voids.d.ts +36 -36
- package/lib/cjs/resources/voids.js +38 -0
- package/lib/{resources → cjs/resources}/webhooks.d.ts +45 -45
- package/lib/cjs/resources/webhooks.js +47 -0
- package/lib/{resources → cjs/resources}/wire_transfers.d.ts +35 -35
- package/lib/cjs/resources/wire_transfers.js +47 -0
- package/lib/{static.d.ts → cjs/static.d.ts} +6 -5
- package/lib/cjs/static.js +36 -0
- package/lib/{util.d.ts → cjs/util.d.ts} +3 -3
- package/lib/cjs/util.js +7 -0
- package/lib/esm/api.d.ts +101 -0
- package/lib/esm/api.js +304 -0
- package/lib/esm/client.d.ts +30 -0
- package/lib/esm/client.js +96 -0
- package/lib/esm/commercelayer.d.ts +118 -0
- package/lib/esm/commercelayer.js +177 -0
- package/lib/esm/common.d.ts +4 -0
- package/lib/esm/common.js +9 -0
- package/lib/esm/config.d.ts +7 -0
- package/lib/esm/config.js +7 -0
- package/lib/esm/error.d.ts +26 -0
- package/lib/esm/error.js +35 -0
- package/lib/esm/index.d.ts +6 -0
- package/lib/esm/index.js +6 -0
- package/lib/esm/interceptor.d.ts +19 -0
- package/lib/esm/interceptor.js +1 -0
- package/lib/esm/jsonapi.d.ts +7 -0
- package/lib/esm/jsonapi.js +59 -0
- package/lib/esm/model.d.ts +99 -0
- package/lib/esm/model.js +2 -0
- package/lib/esm/query.d.ts +57 -0
- package/lib/esm/query.js +168 -0
- package/lib/esm/resource.d.ts +69 -0
- package/lib/esm/resource.js +108 -0
- package/lib/esm/resources/addresses.d.ts +91 -0
- package/lib/esm/resources/addresses.js +45 -0
- package/lib/esm/resources/adjustments.d.ts +39 -0
- package/lib/esm/resources/adjustments.js +45 -0
- package/lib/esm/resources/adyen_gateways.d.ts +49 -0
- package/lib/esm/resources/adyen_gateways.js +45 -0
- package/lib/esm/resources/adyen_payments.d.ts +47 -0
- package/lib/esm/resources/adyen_payments.js +45 -0
- package/lib/esm/resources/application.d.ts +25 -0
- package/lib/esm/resources/application.js +33 -0
- package/lib/esm/resources/attachments.d.ts +160 -0
- package/lib/esm/resources/attachments.js +45 -0
- package/lib/esm/resources/authorizations.d.ts +58 -0
- package/lib/esm/resources/authorizations.js +39 -0
- package/lib/esm/resources/avalara_accounts.d.ts +53 -0
- package/lib/esm/resources/avalara_accounts.js +45 -0
- package/lib/esm/resources/billing_info_validation_rules.d.ts +35 -0
- package/lib/esm/resources/billing_info_validation_rules.js +45 -0
- package/lib/esm/resources/bing_geocoders.d.ts +37 -0
- package/lib/esm/resources/bing_geocoders.js +45 -0
- package/lib/esm/resources/braintree_gateways.d.ts +58 -0
- package/lib/esm/resources/braintree_gateways.js +45 -0
- package/lib/esm/resources/braintree_payments.d.ts +49 -0
- package/lib/esm/resources/braintree_payments.js +45 -0
- package/lib/esm/resources/bundles.d.ts +69 -0
- package/lib/esm/resources/bundles.js +45 -0
- package/lib/esm/resources/captures.d.ts +49 -0
- package/lib/esm/resources/captures.js +39 -0
- package/lib/esm/resources/carrier_accounts.d.ts +28 -0
- package/lib/esm/resources/carrier_accounts.js +36 -0
- package/lib/esm/resources/checkout_com_gateways.d.ts +47 -0
- package/lib/esm/resources/checkout_com_gateways.js +45 -0
- package/lib/esm/resources/checkout_com_payments.d.ts +53 -0
- package/lib/esm/resources/checkout_com_payments.js +45 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +62 -0
- package/lib/esm/resources/coupon_codes_promotion_rules.js +45 -0
- package/lib/esm/resources/coupon_recipients.d.ts +46 -0
- package/lib/esm/resources/coupon_recipients.js +45 -0
- package/lib/esm/resources/coupons.d.ts +45 -0
- package/lib/esm/resources/coupons.js +45 -0
- package/lib/esm/resources/customer_addresses.d.ts +43 -0
- package/lib/esm/resources/customer_addresses.js +45 -0
- package/lib/esm/resources/customer_groups.d.ts +37 -0
- package/lib/esm/resources/customer_groups.js +45 -0
- package/lib/esm/resources/customer_password_resets.d.ts +36 -0
- package/lib/esm/resources/customer_password_resets.js +45 -0
- package/lib/esm/resources/customer_payment_sources.d.ts +69 -0
- package/lib/esm/resources/customer_payment_sources.js +45 -0
- package/lib/esm/resources/customer_subscriptions.d.ts +31 -0
- package/lib/esm/resources/customer_subscriptions.js +45 -0
- package/lib/esm/resources/customers.d.ts +56 -0
- package/lib/esm/resources/customers.js +45 -0
- package/lib/esm/resources/delivery_lead_times.d.ts +52 -0
- package/lib/esm/resources/delivery_lead_times.js +45 -0
- package/lib/esm/resources/event_callbacks.d.ts +27 -0
- package/lib/esm/resources/event_callbacks.js +36 -0
- package/lib/esm/resources/external_gateways.d.ts +48 -0
- package/lib/esm/resources/external_gateways.js +45 -0
- package/lib/esm/resources/external_payments.d.ts +42 -0
- package/lib/esm/resources/external_payments.js +45 -0
- package/lib/esm/resources/external_promotions.d.ts +82 -0
- package/lib/esm/resources/external_promotions.js +45 -0
- package/lib/esm/resources/external_tax_calculators.d.ts +45 -0
- package/lib/esm/resources/external_tax_calculators.js +45 -0
- package/lib/esm/resources/fixed_amount_promotions.d.ts +84 -0
- package/lib/esm/resources/fixed_amount_promotions.js +45 -0
- package/lib/esm/resources/fixed_price_promotions.d.ts +93 -0
- package/lib/esm/resources/fixed_price_promotions.js +45 -0
- package/lib/esm/resources/free_gift_promotions.d.ts +91 -0
- package/lib/esm/resources/free_gift_promotions.js +45 -0
- package/lib/esm/resources/free_shipping_promotions.d.ts +79 -0
- package/lib/esm/resources/free_shipping_promotions.js +45 -0
- package/lib/esm/resources/geocoders.d.ts +25 -0
- package/lib/esm/resources/geocoders.js +33 -0
- package/lib/esm/resources/gift_card_recipients.d.ts +46 -0
- package/lib/esm/resources/gift_card_recipients.js +45 -0
- package/lib/esm/resources/gift_cards.d.ts +84 -0
- package/lib/esm/resources/gift_cards.js +45 -0
- package/lib/esm/resources/google_geocoders.d.ts +37 -0
- package/lib/esm/resources/google_geocoders.js +45 -0
- package/lib/esm/resources/imports.d.ts +44 -0
- package/lib/esm/resources/imports.js +42 -0
- package/lib/esm/resources/in_stock_subscriptions.d.ts +60 -0
- package/lib/esm/resources/in_stock_subscriptions.js +45 -0
- package/lib/esm/resources/inventory_models.d.ts +43 -0
- package/lib/esm/resources/inventory_models.js +45 -0
- package/lib/esm/resources/inventory_return_locations.d.ts +45 -0
- package/lib/esm/resources/inventory_return_locations.js +45 -0
- package/lib/esm/resources/inventory_stock_locations.d.ts +48 -0
- package/lib/esm/resources/inventory_stock_locations.js +45 -0
- package/lib/esm/resources/line_item_options.d.ts +59 -0
- package/lib/esm/resources/line_item_options.js +45 -0
- package/lib/esm/resources/line_items.d.ts +125 -0
- package/lib/esm/resources/line_items.js +45 -0
- package/lib/esm/resources/manual_gateways.d.ts +36 -0
- package/lib/esm/resources/manual_gateways.js +45 -0
- package/lib/esm/resources/manual_tax_calculators.d.ts +49 -0
- package/lib/esm/resources/manual_tax_calculators.js +45 -0
- package/lib/esm/resources/markets.d.ts +79 -0
- package/lib/esm/resources/markets.js +45 -0
- package/lib/esm/resources/merchants.d.ts +40 -0
- package/lib/esm/resources/merchants.js +45 -0
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +60 -0
- package/lib/esm/resources/order_amount_promotion_rules.js +45 -0
- package/lib/esm/resources/order_copies.d.ts +46 -0
- package/lib/esm/resources/order_copies.js +42 -0
- package/lib/esm/resources/order_subscriptions.d.ts +66 -0
- package/lib/esm/resources/order_subscriptions.js +45 -0
- package/lib/esm/resources/order_validation_rules.d.ts +22 -0
- package/lib/esm/resources/order_validation_rules.js +33 -0
- package/lib/esm/resources/orders.d.ts +255 -0
- package/lib/esm/resources/orders.js +45 -0
- package/lib/esm/resources/organization.d.ts +34 -0
- package/lib/esm/resources/organization.js +33 -0
- package/lib/esm/resources/packages.d.ts +57 -0
- package/lib/esm/resources/packages.js +45 -0
- package/lib/esm/resources/parcel_line_items.d.ts +51 -0
- package/lib/esm/resources/parcel_line_items.js +45 -0
- package/lib/esm/resources/parcels.d.ts +108 -0
- package/lib/esm/resources/parcels.js +45 -0
- package/lib/esm/resources/payment_gateways.d.ts +33 -0
- package/lib/esm/resources/payment_gateways.js +45 -0
- package/lib/esm/resources/payment_methods.d.ts +54 -0
- package/lib/esm/resources/payment_methods.js +45 -0
- package/lib/esm/resources/paypal_gateways.d.ts +41 -0
- package/lib/esm/resources/paypal_gateways.js +45 -0
- package/lib/esm/resources/paypal_payments.d.ts +49 -0
- package/lib/esm/resources/paypal_payments.js +45 -0
- package/lib/esm/resources/percentage_discount_promotions.d.ts +91 -0
- package/lib/esm/resources/percentage_discount_promotions.js +45 -0
- package/lib/esm/resources/price_lists.d.ts +41 -0
- package/lib/esm/resources/price_lists.js +45 -0
- package/lib/esm/resources/prices.d.ts +58 -0
- package/lib/esm/resources/prices.js +45 -0
- package/lib/esm/resources/promotion_rules.d.ts +27 -0
- package/lib/esm/resources/promotion_rules.js +33 -0
- package/lib/esm/resources/promotions.d.ts +38 -0
- package/lib/esm/resources/promotions.js +33 -0
- package/lib/esm/resources/refunds.d.ts +36 -0
- package/lib/esm/resources/refunds.js +36 -0
- package/lib/esm/resources/return_line_items.d.ts +51 -0
- package/lib/esm/resources/return_line_items.js +45 -0
- package/lib/esm/resources/returns.d.ts +69 -0
- package/lib/esm/resources/returns.js +45 -0
- package/lib/esm/resources/shipments.d.ts +80 -0
- package/lib/esm/resources/shipments.js +39 -0
- package/lib/esm/resources/shipping_categories.d.ts +35 -0
- package/lib/esm/resources/shipping_categories.js +45 -0
- package/lib/esm/resources/shipping_methods.d.ts +71 -0
- package/lib/esm/resources/shipping_methods.js +45 -0
- package/lib/esm/resources/shipping_zones.d.ts +51 -0
- package/lib/esm/resources/shipping_zones.js +45 -0
- package/lib/esm/resources/sku_list_items.d.ts +46 -0
- package/lib/esm/resources/sku_list_items.js +45 -0
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +70 -0
- package/lib/esm/resources/sku_list_promotion_rules.js +45 -0
- package/lib/esm/resources/sku_lists.d.ts +50 -0
- package/lib/esm/resources/sku_lists.js +45 -0
- package/lib/esm/resources/sku_options.d.ts +55 -0
- package/lib/esm/resources/sku_options.js +45 -0
- package/lib/esm/resources/skus.d.ts +76 -0
- package/lib/esm/resources/skus.js +45 -0
- package/lib/esm/resources/stock_items.d.ts +50 -0
- package/lib/esm/resources/stock_items.js +45 -0
- package/lib/esm/resources/stock_line_items.d.ts +30 -0
- package/lib/esm/resources/stock_line_items.js +36 -0
- package/lib/esm/resources/stock_locations.d.ts +55 -0
- package/lib/esm/resources/stock_locations.js +45 -0
- package/lib/esm/resources/stock_transfers.d.ts +70 -0
- package/lib/esm/resources/stock_transfers.js +45 -0
- package/lib/esm/resources/stripe_gateways.d.ts +40 -0
- package/lib/esm/resources/stripe_gateways.js +45 -0
- package/lib/esm/resources/stripe_payments.d.ts +44 -0
- package/lib/esm/resources/stripe_payments.js +45 -0
- package/lib/esm/resources/tax_calculators.d.ts +27 -0
- package/lib/esm/resources/tax_calculators.js +33 -0
- package/lib/esm/resources/tax_categories.d.ts +61 -0
- package/lib/esm/resources/tax_categories.js +45 -0
- package/lib/esm/resources/tax_rules.d.ts +72 -0
- package/lib/esm/resources/tax_rules.js +45 -0
- package/lib/esm/resources/taxjar_accounts.d.ts +44 -0
- package/lib/esm/resources/taxjar_accounts.js +45 -0
- package/lib/esm/resources/transactions.d.ts +33 -0
- package/lib/esm/resources/transactions.js +33 -0
- package/lib/esm/resources/voids.d.ts +36 -0
- package/lib/esm/resources/voids.js +36 -0
- package/lib/esm/resources/webhooks.d.ts +45 -0
- package/lib/esm/resources/webhooks.js +45 -0
- package/lib/esm/resources/wire_transfers.d.ts +35 -0
- package/lib/esm/resources/wire_transfers.js +45 -0
- package/lib/esm/static.d.ts +6 -0
- package/lib/esm/static.js +14 -0
- package/lib/esm/util.d.ts +3 -0
- package/lib/esm/util.js +4 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +70 -57
- package/lib/index.js +0 -8
- package/lib/sdk.cjs.development.js +0 -17132
- package/lib/sdk.cjs.development.js.map +0 -1
- package/lib/sdk.cjs.production.min.js +0 -2
- package/lib/sdk.cjs.production.min.js.map +0 -1
- package/lib/sdk.esm.js +0 -17126
- package/lib/sdk.esm.js.map +0 -1
@@ -1,36 +1,36 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
|
-
**/
|
5
|
-
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
|
-
import { Order } from './orders';
|
8
|
-
import { Authorization } from './authorizations';
|
9
|
-
declare type VoidRel = ResourceId & {
|
10
|
-
type: typeof Voids.TYPE;
|
11
|
-
};
|
12
|
-
interface Void extends Resource {
|
13
|
-
number?: string;
|
14
|
-
currency_code?: string;
|
15
|
-
amount_cents?: number;
|
16
|
-
amount_float?: number;
|
17
|
-
formatted_amount?: string;
|
18
|
-
succeeded?: boolean;
|
19
|
-
message?: string;
|
20
|
-
error_code?: string;
|
21
|
-
error_detail?: string;
|
22
|
-
token?: string;
|
23
|
-
gateway_transaction_id?: string;
|
24
|
-
order?: Order;
|
25
|
-
reference_authorization?: Authorization;
|
26
|
-
}
|
27
|
-
declare class Voids extends ApiResource {
|
28
|
-
static readonly TYPE: 'voids';
|
29
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Void>>;
|
30
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Void>;
|
31
|
-
isVoid(resource: any): resource is Void;
|
32
|
-
relationship(id: string | ResourceId): VoidRel;
|
33
|
-
type(): string;
|
34
|
-
}
|
35
|
-
export default Voids;
|
36
|
-
export { Void };
|
1
|
+
/**
|
2
|
+
* ©2021 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
|
+
**/
|
5
|
+
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
|
+
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
|
+
import { Order } from './orders';
|
8
|
+
import { Authorization } from './authorizations';
|
9
|
+
declare type VoidRel = ResourceId & {
|
10
|
+
type: typeof Voids.TYPE;
|
11
|
+
};
|
12
|
+
interface Void extends Resource {
|
13
|
+
number?: string;
|
14
|
+
currency_code?: string;
|
15
|
+
amount_cents?: number;
|
16
|
+
amount_float?: number;
|
17
|
+
formatted_amount?: string;
|
18
|
+
succeeded?: boolean;
|
19
|
+
message?: string;
|
20
|
+
error_code?: string;
|
21
|
+
error_detail?: string;
|
22
|
+
token?: string;
|
23
|
+
gateway_transaction_id?: string;
|
24
|
+
order?: Order;
|
25
|
+
reference_authorization?: Authorization;
|
26
|
+
}
|
27
|
+
declare class Voids extends ApiResource {
|
28
|
+
static readonly TYPE: 'voids';
|
29
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Void>>;
|
30
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Void>;
|
31
|
+
isVoid(resource: any): resource is Void;
|
32
|
+
relationship(id: string | ResourceId): VoidRel;
|
33
|
+
type(): string;
|
34
|
+
}
|
35
|
+
export default Voids;
|
36
|
+
export { Void };
|
@@ -0,0 +1,38 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* ©2021 Commerce Layer Inc.
|
4
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
5
|
+
**/
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
7
|
+
const resource_1 = require("../resource");
|
8
|
+
class Voids extends resource_1.ApiResource {
|
9
|
+
// static readonly PATH = 'voids'
|
10
|
+
async list(params, options) {
|
11
|
+
return this.resources.list({ type: Voids.TYPE }, params, options);
|
12
|
+
}
|
13
|
+
async retrieve(id, params, options) {
|
14
|
+
return this.resources.retrieve({ type: Voids.TYPE, id }, params, options);
|
15
|
+
}
|
16
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
17
|
+
isVoid(resource) {
|
18
|
+
return resource.type && (resource.type === Voids.TYPE);
|
19
|
+
}
|
20
|
+
/*
|
21
|
+
filter(): QueryBuilderRetrieve {
|
22
|
+
return new QueryBuilderRetrieve(Voids.TYPE)
|
23
|
+
}
|
24
|
+
*/
|
25
|
+
/*
|
26
|
+
filterList(): QueryBuilderList {
|
27
|
+
return new QueryBuilderList(Voids.TYPE)
|
28
|
+
}
|
29
|
+
*/
|
30
|
+
relationship(id) {
|
31
|
+
return (typeof id === 'string') ? { id, type: Voids.TYPE } : { id: id.id, type: Voids.TYPE };
|
32
|
+
}
|
33
|
+
type() {
|
34
|
+
return Voids.TYPE;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
Voids.TYPE = 'voids';
|
38
|
+
exports.default = Voids;
|
@@ -1,45 +1,45 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
|
-
**/
|
5
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
|
-
import { EventCallback } from './event_callbacks';
|
8
|
-
declare type WebhookRel = ResourceId & {
|
9
|
-
type: typeof Webhooks.TYPE;
|
10
|
-
};
|
11
|
-
interface Webhook extends Resource {
|
12
|
-
name?: string;
|
13
|
-
topic?: string;
|
14
|
-
callback_url?: string;
|
15
|
-
include_resources?: string[];
|
16
|
-
circuit_state?: string;
|
17
|
-
circuit_failure_count?: number;
|
18
|
-
last_event_callbacks?: EventCallback[];
|
19
|
-
}
|
20
|
-
interface WebhookCreate extends ResourceCreate {
|
21
|
-
name?: string;
|
22
|
-
topic: string;
|
23
|
-
callback_url: string;
|
24
|
-
include_resources?: string[];
|
25
|
-
}
|
26
|
-
interface WebhookUpdate extends ResourceUpdate {
|
27
|
-
name?: string;
|
28
|
-
topic?: string;
|
29
|
-
callback_url?: string;
|
30
|
-
include_resources?: string[];
|
31
|
-
_reset_circuit?: boolean;
|
32
|
-
}
|
33
|
-
declare class Webhooks extends ApiResource {
|
34
|
-
static readonly TYPE: 'webhooks';
|
35
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Webhook>>;
|
36
|
-
create(resource: WebhookCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Webhook>;
|
37
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Webhook>;
|
38
|
-
update(resource: WebhookUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Webhook>;
|
39
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
40
|
-
isWebhook(resource: any): resource is Webhook;
|
41
|
-
relationship(id: string | ResourceId): WebhookRel;
|
42
|
-
type(): string;
|
43
|
-
}
|
44
|
-
export default Webhooks;
|
45
|
-
export { Webhook, WebhookCreate, WebhookUpdate };
|
1
|
+
/**
|
2
|
+
* ©2021 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
|
+
**/
|
5
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
|
+
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
|
+
import { EventCallback } from './event_callbacks';
|
8
|
+
declare type WebhookRel = ResourceId & {
|
9
|
+
type: typeof Webhooks.TYPE;
|
10
|
+
};
|
11
|
+
interface Webhook extends Resource {
|
12
|
+
name?: string;
|
13
|
+
topic?: string;
|
14
|
+
callback_url?: string;
|
15
|
+
include_resources?: string[];
|
16
|
+
circuit_state?: string;
|
17
|
+
circuit_failure_count?: number;
|
18
|
+
last_event_callbacks?: EventCallback[];
|
19
|
+
}
|
20
|
+
interface WebhookCreate extends ResourceCreate {
|
21
|
+
name?: string;
|
22
|
+
topic: string;
|
23
|
+
callback_url: string;
|
24
|
+
include_resources?: string[];
|
25
|
+
}
|
26
|
+
interface WebhookUpdate extends ResourceUpdate {
|
27
|
+
name?: string;
|
28
|
+
topic?: string;
|
29
|
+
callback_url?: string;
|
30
|
+
include_resources?: string[];
|
31
|
+
_reset_circuit?: boolean;
|
32
|
+
}
|
33
|
+
declare class Webhooks extends ApiResource {
|
34
|
+
static readonly TYPE: 'webhooks';
|
35
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Webhook>>;
|
36
|
+
create(resource: WebhookCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Webhook>;
|
37
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Webhook>;
|
38
|
+
update(resource: WebhookUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Webhook>;
|
39
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
40
|
+
isWebhook(resource: any): resource is Webhook;
|
41
|
+
relationship(id: string | ResourceId): WebhookRel;
|
42
|
+
type(): string;
|
43
|
+
}
|
44
|
+
export default Webhooks;
|
45
|
+
export { Webhook, WebhookCreate, WebhookUpdate };
|
@@ -0,0 +1,47 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* ©2021 Commerce Layer Inc.
|
4
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
5
|
+
**/
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
7
|
+
const resource_1 = require("../resource");
|
8
|
+
class Webhooks extends resource_1.ApiResource {
|
9
|
+
// static readonly PATH = 'webhooks'
|
10
|
+
async list(params, options) {
|
11
|
+
return this.resources.list({ type: Webhooks.TYPE }, params, options);
|
12
|
+
}
|
13
|
+
async create(resource, params, options) {
|
14
|
+
return this.resources.create(Object.assign(Object.assign({}, resource), { type: Webhooks.TYPE }), params, options);
|
15
|
+
}
|
16
|
+
async retrieve(id, params, options) {
|
17
|
+
return this.resources.retrieve({ type: Webhooks.TYPE, id }, params, options);
|
18
|
+
}
|
19
|
+
async update(resource, params, options) {
|
20
|
+
return this.resources.update(Object.assign(Object.assign({}, resource), { type: Webhooks.TYPE }), params, options);
|
21
|
+
}
|
22
|
+
async delete(id, options) {
|
23
|
+
await this.resources.delete({ type: Webhooks.TYPE, id }, options);
|
24
|
+
}
|
25
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
26
|
+
isWebhook(resource) {
|
27
|
+
return resource.type && (resource.type === Webhooks.TYPE);
|
28
|
+
}
|
29
|
+
/*
|
30
|
+
filter(): QueryBuilderRetrieve {
|
31
|
+
return new QueryBuilderRetrieve(Webhooks.TYPE)
|
32
|
+
}
|
33
|
+
*/
|
34
|
+
/*
|
35
|
+
filterList(): QueryBuilderList {
|
36
|
+
return new QueryBuilderList(Webhooks.TYPE)
|
37
|
+
}
|
38
|
+
*/
|
39
|
+
relationship(id) {
|
40
|
+
return (typeof id === 'string') ? { id, type: Webhooks.TYPE } : { id: id.id, type: Webhooks.TYPE };
|
41
|
+
}
|
42
|
+
type() {
|
43
|
+
return Webhooks.TYPE;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
Webhooks.TYPE = 'webhooks';
|
47
|
+
exports.default = Webhooks;
|
@@ -1,35 +1,35 @@
|
|
1
|
-
/**
|
2
|
-
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
|
-
**/
|
5
|
-
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
|
-
import { Order } from './orders';
|
8
|
-
declare type WireTransferRel = ResourceId & {
|
9
|
-
type: typeof WireTransfers.TYPE;
|
10
|
-
};
|
11
|
-
declare type OrderRel = ResourceId & {
|
12
|
-
type: 'orders';
|
13
|
-
};
|
14
|
-
interface WireTransfer extends Resource {
|
15
|
-
order?: Order;
|
16
|
-
}
|
17
|
-
interface WireTransferCreate extends ResourceCreate {
|
18
|
-
order?: OrderRel;
|
19
|
-
}
|
20
|
-
interface WireTransferUpdate extends ResourceUpdate {
|
21
|
-
order?: OrderRel;
|
22
|
-
}
|
23
|
-
declare class WireTransfers extends ApiResource {
|
24
|
-
static readonly TYPE: 'wire_transfers';
|
25
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<WireTransfer>>;
|
26
|
-
create(resource: WireTransferCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<WireTransfer>;
|
27
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<WireTransfer>;
|
28
|
-
update(resource: WireTransferUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<WireTransfer>;
|
29
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
30
|
-
isWireTransfer(resource: any): resource is WireTransfer;
|
31
|
-
relationship(id: string | ResourceId): WireTransferRel;
|
32
|
-
type(): string;
|
33
|
-
}
|
34
|
-
export default WireTransfers;
|
35
|
-
export { WireTransfer, WireTransferCreate, WireTransferUpdate };
|
1
|
+
/**
|
2
|
+
* ©2021 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
|
+
**/
|
5
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
|
+
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
|
+
import { Order } from './orders';
|
8
|
+
declare type WireTransferRel = ResourceId & {
|
9
|
+
type: typeof WireTransfers.TYPE;
|
10
|
+
};
|
11
|
+
declare type OrderRel = ResourceId & {
|
12
|
+
type: 'orders';
|
13
|
+
};
|
14
|
+
interface WireTransfer extends Resource {
|
15
|
+
order?: Order;
|
16
|
+
}
|
17
|
+
interface WireTransferCreate extends ResourceCreate {
|
18
|
+
order?: OrderRel;
|
19
|
+
}
|
20
|
+
interface WireTransferUpdate extends ResourceUpdate {
|
21
|
+
order?: OrderRel;
|
22
|
+
}
|
23
|
+
declare class WireTransfers extends ApiResource {
|
24
|
+
static readonly TYPE: 'wire_transfers';
|
25
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<WireTransfer>>;
|
26
|
+
create(resource: WireTransferCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<WireTransfer>;
|
27
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<WireTransfer>;
|
28
|
+
update(resource: WireTransferUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<WireTransfer>;
|
29
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
30
|
+
isWireTransfer(resource: any): resource is WireTransfer;
|
31
|
+
relationship(id: string | ResourceId): WireTransferRel;
|
32
|
+
type(): string;
|
33
|
+
}
|
34
|
+
export default WireTransfers;
|
35
|
+
export { WireTransfer, WireTransferCreate, WireTransferUpdate };
|
@@ -0,0 +1,47 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* ©2021 Commerce Layer Inc.
|
4
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
5
|
+
**/
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
7
|
+
const resource_1 = require("../resource");
|
8
|
+
class WireTransfers extends resource_1.ApiResource {
|
9
|
+
// static readonly PATH = 'wire_transfers'
|
10
|
+
async list(params, options) {
|
11
|
+
return this.resources.list({ type: WireTransfers.TYPE }, params, options);
|
12
|
+
}
|
13
|
+
async create(resource, params, options) {
|
14
|
+
return this.resources.create(Object.assign(Object.assign({}, resource), { type: WireTransfers.TYPE }), params, options);
|
15
|
+
}
|
16
|
+
async retrieve(id, params, options) {
|
17
|
+
return this.resources.retrieve({ type: WireTransfers.TYPE, id }, params, options);
|
18
|
+
}
|
19
|
+
async update(resource, params, options) {
|
20
|
+
return this.resources.update(Object.assign(Object.assign({}, resource), { type: WireTransfers.TYPE }), params, options);
|
21
|
+
}
|
22
|
+
async delete(id, options) {
|
23
|
+
await this.resources.delete({ type: WireTransfers.TYPE, id }, options);
|
24
|
+
}
|
25
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
26
|
+
isWireTransfer(resource) {
|
27
|
+
return resource.type && (resource.type === WireTransfers.TYPE);
|
28
|
+
}
|
29
|
+
/*
|
30
|
+
filter(): QueryBuilderRetrieve {
|
31
|
+
return new QueryBuilderRetrieve(WireTransfers.TYPE)
|
32
|
+
}
|
33
|
+
*/
|
34
|
+
/*
|
35
|
+
filterList(): QueryBuilderList {
|
36
|
+
return new QueryBuilderList(WireTransfers.TYPE)
|
37
|
+
}
|
38
|
+
*/
|
39
|
+
relationship(id) {
|
40
|
+
return (typeof id === 'string') ? { id, type: WireTransfers.TYPE } : { id: id.id, type: WireTransfers.TYPE };
|
41
|
+
}
|
42
|
+
type() {
|
43
|
+
return WireTransfers.TYPE;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
WireTransfers.TYPE = 'wire_transfers';
|
47
|
+
exports.default = WireTransfers;
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import ApiError from './error';
|
2
|
-
export declare const CommerceLayerStatic: {
|
3
|
-
resources: () => readonly string[];
|
4
|
-
|
5
|
-
|
1
|
+
import { SdkError, ApiError } from './error';
|
2
|
+
export declare const CommerceLayerStatic: {
|
3
|
+
resources: () => readonly string[];
|
4
|
+
isSdkError: (error: unknown) => error is SdkError;
|
5
|
+
isApiError: (error: unknown) => error is ApiError;
|
6
|
+
};
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
+
}) : (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
o[k2] = m[k];
|
8
|
+
}));
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
11
|
+
}) : function(o, v) {
|
12
|
+
o["default"] = v;
|
13
|
+
});
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
15
|
+
if (mod && mod.__esModule) return mod;
|
16
|
+
var result = {};
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
18
|
+
__setModuleDefault(result, mod);
|
19
|
+
return result;
|
20
|
+
};
|
21
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
22
|
+
exports.CommerceLayerStatic = void 0;
|
23
|
+
const api = __importStar(require("./api"));
|
24
|
+
const error_1 = require("./error");
|
25
|
+
/* Static functions */
|
26
|
+
exports.CommerceLayerStatic = {
|
27
|
+
resources: () => {
|
28
|
+
return api.resourceList;
|
29
|
+
},
|
30
|
+
isSdkError: (error) => {
|
31
|
+
return error_1.SdkError.isSdkError(error);
|
32
|
+
},
|
33
|
+
isApiError: (error) => {
|
34
|
+
return error_1.ApiError.isApiError(error);
|
35
|
+
},
|
36
|
+
};
|
@@ -1,3 +1,3 @@
|
|
1
|
-
/// <reference types="node" />
|
2
|
-
declare const sleep: (ms: number) => Promise<NodeJS.Timeout>;
|
3
|
-
export { sleep };
|
1
|
+
/// <reference types="node" />
|
2
|
+
declare const sleep: (ms: number) => Promise<NodeJS.Timeout>;
|
3
|
+
export { sleep };
|
package/lib/cjs/util.js
ADDED
package/lib/esm/api.d.ts
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
/**
|
2
|
+
* ©2021 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
|
+
**/
|
5
|
+
export { default as Addresses } from './resources/addresses';
|
6
|
+
export { default as Adjustments } from './resources/adjustments';
|
7
|
+
export { default as AdyenGateways } from './resources/adyen_gateways';
|
8
|
+
export { default as AdyenPayments } from './resources/adyen_payments';
|
9
|
+
export { default as Applications } from './resources/application';
|
10
|
+
export { default as Attachments } from './resources/attachments';
|
11
|
+
export { default as Authorizations } from './resources/authorizations';
|
12
|
+
export { default as AvalaraAccounts } from './resources/avalara_accounts';
|
13
|
+
export { default as BillingInfoValidationRules } from './resources/billing_info_validation_rules';
|
14
|
+
export { default as BingGeocoders } from './resources/bing_geocoders';
|
15
|
+
export { default as BraintreeGateways } from './resources/braintree_gateways';
|
16
|
+
export { default as BraintreePayments } from './resources/braintree_payments';
|
17
|
+
export { default as Bundles } from './resources/bundles';
|
18
|
+
export { default as Captures } from './resources/captures';
|
19
|
+
export { default as CarrierAccounts } from './resources/carrier_accounts';
|
20
|
+
export { default as CheckoutComGateways } from './resources/checkout_com_gateways';
|
21
|
+
export { default as CheckoutComPayments } from './resources/checkout_com_payments';
|
22
|
+
export { default as CouponCodesPromotionRules } from './resources/coupon_codes_promotion_rules';
|
23
|
+
export { default as CouponRecipients } from './resources/coupon_recipients';
|
24
|
+
export { default as Coupons } from './resources/coupons';
|
25
|
+
export { default as CustomerAddresses } from './resources/customer_addresses';
|
26
|
+
export { default as CustomerGroups } from './resources/customer_groups';
|
27
|
+
export { default as CustomerPasswordResets } from './resources/customer_password_resets';
|
28
|
+
export { default as CustomerPaymentSources } from './resources/customer_payment_sources';
|
29
|
+
export { default as CustomerSubscriptions } from './resources/customer_subscriptions';
|
30
|
+
export { default as Customers } from './resources/customers';
|
31
|
+
export { default as DeliveryLeadTimes } from './resources/delivery_lead_times';
|
32
|
+
export { default as EventCallbacks } from './resources/event_callbacks';
|
33
|
+
export { default as ExternalGateways } from './resources/external_gateways';
|
34
|
+
export { default as ExternalPayments } from './resources/external_payments';
|
35
|
+
export { default as ExternalPromotions } from './resources/external_promotions';
|
36
|
+
export { default as ExternalTaxCalculators } from './resources/external_tax_calculators';
|
37
|
+
export { default as FixedAmountPromotions } from './resources/fixed_amount_promotions';
|
38
|
+
export { default as FixedPricePromotions } from './resources/fixed_price_promotions';
|
39
|
+
export { default as FreeGiftPromotions } from './resources/free_gift_promotions';
|
40
|
+
export { default as FreeShippingPromotions } from './resources/free_shipping_promotions';
|
41
|
+
export { default as Geocoders } from './resources/geocoders';
|
42
|
+
export { default as GiftCardRecipients } from './resources/gift_card_recipients';
|
43
|
+
export { default as GiftCards } from './resources/gift_cards';
|
44
|
+
export { default as GoogleGeocoders } from './resources/google_geocoders';
|
45
|
+
export { default as Imports } from './resources/imports';
|
46
|
+
export { default as InStockSubscriptions } from './resources/in_stock_subscriptions';
|
47
|
+
export { default as InventoryModels } from './resources/inventory_models';
|
48
|
+
export { default as InventoryReturnLocations } from './resources/inventory_return_locations';
|
49
|
+
export { default as InventoryStockLocations } from './resources/inventory_stock_locations';
|
50
|
+
export { default as LineItemOptions } from './resources/line_item_options';
|
51
|
+
export { default as LineItems } from './resources/line_items';
|
52
|
+
export { default as ManualGateways } from './resources/manual_gateways';
|
53
|
+
export { default as ManualTaxCalculators } from './resources/manual_tax_calculators';
|
54
|
+
export { default as Markets } from './resources/markets';
|
55
|
+
export { default as Merchants } from './resources/merchants';
|
56
|
+
export { default as OrderAmountPromotionRules } from './resources/order_amount_promotion_rules';
|
57
|
+
export { default as OrderCopies } from './resources/order_copies';
|
58
|
+
export { default as OrderSubscriptions } from './resources/order_subscriptions';
|
59
|
+
export { default as OrderValidationRules } from './resources/order_validation_rules';
|
60
|
+
export { default as Orders } from './resources/orders';
|
61
|
+
export { default as Organizations } from './resources/organization';
|
62
|
+
export { default as Packages } from './resources/packages';
|
63
|
+
export { default as ParcelLineItems } from './resources/parcel_line_items';
|
64
|
+
export { default as Parcels } from './resources/parcels';
|
65
|
+
export { default as PaymentGateways } from './resources/payment_gateways';
|
66
|
+
export { default as PaymentMethods } from './resources/payment_methods';
|
67
|
+
export { default as PaypalGateways } from './resources/paypal_gateways';
|
68
|
+
export { default as PaypalPayments } from './resources/paypal_payments';
|
69
|
+
export { default as PercentageDiscountPromotions } from './resources/percentage_discount_promotions';
|
70
|
+
export { default as PriceLists } from './resources/price_lists';
|
71
|
+
export { default as Prices } from './resources/prices';
|
72
|
+
export { default as PromotionRules } from './resources/promotion_rules';
|
73
|
+
export { default as Promotions } from './resources/promotions';
|
74
|
+
export { default as Refunds } from './resources/refunds';
|
75
|
+
export { default as ReturnLineItems } from './resources/return_line_items';
|
76
|
+
export { default as Returns } from './resources/returns';
|
77
|
+
export { default as Shipments } from './resources/shipments';
|
78
|
+
export { default as ShippingCategories } from './resources/shipping_categories';
|
79
|
+
export { default as ShippingMethods } from './resources/shipping_methods';
|
80
|
+
export { default as ShippingZones } from './resources/shipping_zones';
|
81
|
+
export { default as SkuListItems } from './resources/sku_list_items';
|
82
|
+
export { default as SkuListPromotionRules } from './resources/sku_list_promotion_rules';
|
83
|
+
export { default as SkuLists } from './resources/sku_lists';
|
84
|
+
export { default as SkuOptions } from './resources/sku_options';
|
85
|
+
export { default as Skus } from './resources/skus';
|
86
|
+
export { default as StockItems } from './resources/stock_items';
|
87
|
+
export { default as StockLineItems } from './resources/stock_line_items';
|
88
|
+
export { default as StockLocations } from './resources/stock_locations';
|
89
|
+
export { default as StockTransfers } from './resources/stock_transfers';
|
90
|
+
export { default as StripeGateways } from './resources/stripe_gateways';
|
91
|
+
export { default as StripePayments } from './resources/stripe_payments';
|
92
|
+
export { default as TaxCalculators } from './resources/tax_calculators';
|
93
|
+
export { default as TaxCategories } from './resources/tax_categories';
|
94
|
+
export { default as TaxRules } from './resources/tax_rules';
|
95
|
+
export { default as TaxjarAccounts } from './resources/taxjar_accounts';
|
96
|
+
export { default as Transactions } from './resources/transactions';
|
97
|
+
export { default as Voids } from './resources/voids';
|
98
|
+
export { default as Webhooks } from './resources/webhooks';
|
99
|
+
export { default as WireTransfers } from './resources/wire_transfers';
|
100
|
+
export declare type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'return_line_items' | 'returns' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
|
101
|
+
export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "line_item_options", "line_items", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_lists", "prices", "promotion_rules", "promotions", "refunds", "return_line_items", "returns", "shipments", "shipping_categories", "shipping_methods", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_transfers", "stripe_gateways", "stripe_payments", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "voids", "webhooks", "wire_transfers"];
|