@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
@@ -0,0 +1,47 @@
|
|
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
|
+
import { PaymentGateway } from './payment_gateways';
|
9
|
+
declare type AdyenPaymentRel = ResourceId & {
|
10
|
+
type: typeof AdyenPayments.TYPE;
|
11
|
+
};
|
12
|
+
declare type OrderRel = ResourceId & {
|
13
|
+
type: 'orders';
|
14
|
+
};
|
15
|
+
interface AdyenPayment extends Resource {
|
16
|
+
public_key?: string;
|
17
|
+
payment_methods?: object;
|
18
|
+
payment_request_data?: object;
|
19
|
+
payment_request_details?: object;
|
20
|
+
payment_response?: object;
|
21
|
+
order?: Order;
|
22
|
+
payment_gateway?: PaymentGateway;
|
23
|
+
}
|
24
|
+
interface AdyenPaymentCreate extends ResourceCreate {
|
25
|
+
order?: OrderRel;
|
26
|
+
}
|
27
|
+
interface AdyenPaymentUpdate extends ResourceUpdate {
|
28
|
+
payment_request_data?: object;
|
29
|
+
payment_request_details?: object;
|
30
|
+
payment_response?: object;
|
31
|
+
_authorize?: boolean;
|
32
|
+
_details?: boolean;
|
33
|
+
order?: OrderRel;
|
34
|
+
}
|
35
|
+
declare class AdyenPayments extends ApiResource {
|
36
|
+
static readonly TYPE: 'adyen_payments';
|
37
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AdyenPayment>>;
|
38
|
+
create(resource: AdyenPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenPayment>;
|
39
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenPayment>;
|
40
|
+
update(resource: AdyenPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenPayment>;
|
41
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
42
|
+
isAdyenPayment(resource: any): resource is AdyenPayment;
|
43
|
+
relationship(id: string | ResourceId): AdyenPaymentRel;
|
44
|
+
type(): string;
|
45
|
+
}
|
46
|
+
export default AdyenPayments;
|
47
|
+
export { AdyenPayment, AdyenPaymentCreate, AdyenPaymentUpdate };
|
@@ -0,0 +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 } from '../resource';
|
6
|
+
class AdyenPayments extends ApiResource {
|
7
|
+
// static readonly PATH = 'adyen_payments'
|
8
|
+
async list(params, options) {
|
9
|
+
return this.resources.list({ type: AdyenPayments.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async create(resource, params, options) {
|
12
|
+
return this.resources.create(Object.assign(Object.assign({}, resource), { type: AdyenPayments.TYPE }), params, options);
|
13
|
+
}
|
14
|
+
async retrieve(id, params, options) {
|
15
|
+
return this.resources.retrieve({ type: AdyenPayments.TYPE, id }, params, options);
|
16
|
+
}
|
17
|
+
async update(resource, params, options) {
|
18
|
+
return this.resources.update(Object.assign(Object.assign({}, resource), { type: AdyenPayments.TYPE }), params, options);
|
19
|
+
}
|
20
|
+
async delete(id, options) {
|
21
|
+
await this.resources.delete({ type: AdyenPayments.TYPE, id }, options);
|
22
|
+
}
|
23
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
24
|
+
isAdyenPayment(resource) {
|
25
|
+
return resource.type && (resource.type === AdyenPayments.TYPE);
|
26
|
+
}
|
27
|
+
/*
|
28
|
+
filter(): QueryBuilderRetrieve {
|
29
|
+
return new QueryBuilderRetrieve(AdyenPayments.TYPE)
|
30
|
+
}
|
31
|
+
*/
|
32
|
+
/*
|
33
|
+
filterList(): QueryBuilderList {
|
34
|
+
return new QueryBuilderList(AdyenPayments.TYPE)
|
35
|
+
}
|
36
|
+
*/
|
37
|
+
relationship(id) {
|
38
|
+
return (typeof id === 'string') ? { id, type: AdyenPayments.TYPE } : { id: id.id, type: AdyenPayments.TYPE };
|
39
|
+
}
|
40
|
+
type() {
|
41
|
+
return AdyenPayments.TYPE;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
AdyenPayments.TYPE = 'adyen_payments';
|
45
|
+
export default AdyenPayments;
|
@@ -0,0 +1,25 @@
|
|
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 } from '../resource';
|
6
|
+
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsRetrieve } from '../query';
|
7
|
+
declare type ApplicationRel = ResourceId & {
|
8
|
+
type: typeof Applications.TYPE;
|
9
|
+
};
|
10
|
+
interface Application extends Resource {
|
11
|
+
name?: string;
|
12
|
+
kind?: string;
|
13
|
+
public_access?: string;
|
14
|
+
redirect_uri?: string;
|
15
|
+
scopes?: string;
|
16
|
+
}
|
17
|
+
declare class Applications extends ApiResource {
|
18
|
+
static readonly TYPE: 'application';
|
19
|
+
retrieve(params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Application>;
|
20
|
+
isApplication(resource: any): resource is Application;
|
21
|
+
relationship(id: string | ResourceId): ApplicationRel;
|
22
|
+
type(): string;
|
23
|
+
}
|
24
|
+
export default Applications;
|
25
|
+
export { Application };
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/**
|
2
|
+
* ©2021 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
|
+
**/
|
5
|
+
import { ApiResource } from '../resource';
|
6
|
+
class Applications extends ApiResource {
|
7
|
+
// static readonly PATH = 'application'
|
8
|
+
async retrieve(params, options) {
|
9
|
+
return this.resources.singleton({ type: Applications.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
12
|
+
isApplication(resource) {
|
13
|
+
return resource.type && (resource.type === Applications.TYPE);
|
14
|
+
}
|
15
|
+
/*
|
16
|
+
filter(): QueryBuilderRetrieve {
|
17
|
+
return new QueryBuilderRetrieve(Applications.TYPE)
|
18
|
+
}
|
19
|
+
*/
|
20
|
+
/*
|
21
|
+
filterList(): QueryBuilderList {
|
22
|
+
return new QueryBuilderList(Applications.TYPE)
|
23
|
+
}
|
24
|
+
*/
|
25
|
+
relationship(id) {
|
26
|
+
return (typeof id === 'string') ? { id, type: Applications.TYPE } : { id: id.id, type: Applications.TYPE };
|
27
|
+
}
|
28
|
+
type() {
|
29
|
+
return Applications.TYPE;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
Applications.TYPE = 'application';
|
33
|
+
export default Applications;
|
@@ -0,0 +1,160 @@
|
|
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 { Bundle } from './bundles';
|
8
|
+
import { CarrierAccount } from './carrier_accounts';
|
9
|
+
import { CustomerGroup } from './customer_groups';
|
10
|
+
import { Customer } from './customers';
|
11
|
+
import { DeliveryLeadTime } from './delivery_lead_times';
|
12
|
+
import { Geocoder } from './geocoders';
|
13
|
+
import { GiftCardRecipient } from './gift_card_recipients';
|
14
|
+
import { GiftCard } from './gift_cards';
|
15
|
+
import { InventoryModel } from './inventory_models';
|
16
|
+
import { Market } from './markets';
|
17
|
+
import { Merchant } from './merchants';
|
18
|
+
import { BillingInfoValidationRule } from './billing_info_validation_rules';
|
19
|
+
import { Order } from './orders';
|
20
|
+
import { Package } from './packages';
|
21
|
+
import { Parcel } from './parcels';
|
22
|
+
import { PaymentMethod } from './payment_methods';
|
23
|
+
import { PriceList } from './price_lists';
|
24
|
+
import { Price } from './prices';
|
25
|
+
import { Promotion } from './promotions';
|
26
|
+
import { Return } from './returns';
|
27
|
+
import { Shipment } from './shipments';
|
28
|
+
import { ShippingCategory } from './shipping_categories';
|
29
|
+
import { ShippingMethod } from './shipping_methods';
|
30
|
+
import { ShippingZone } from './shipping_zones';
|
31
|
+
import { SkuOption } from './sku_options';
|
32
|
+
import { Sku } from './skus';
|
33
|
+
import { StockItem } from './stock_items';
|
34
|
+
import { StockLocation } from './stock_locations';
|
35
|
+
import { TaxCalculator } from './tax_calculators';
|
36
|
+
import { TaxCategory } from './tax_categories';
|
37
|
+
declare type AttachmentRel = ResourceId & {
|
38
|
+
type: typeof Attachments.TYPE;
|
39
|
+
};
|
40
|
+
declare type BundleRel = ResourceId & {
|
41
|
+
type: 'bundles';
|
42
|
+
};
|
43
|
+
declare type CarrierAccountRel = ResourceId & {
|
44
|
+
type: 'carrier_accounts';
|
45
|
+
};
|
46
|
+
declare type CustomerGroupRel = ResourceId & {
|
47
|
+
type: 'customer_groups';
|
48
|
+
};
|
49
|
+
declare type CustomerRel = ResourceId & {
|
50
|
+
type: 'customers';
|
51
|
+
};
|
52
|
+
declare type DeliveryLeadTimeRel = ResourceId & {
|
53
|
+
type: 'delivery_lead_times';
|
54
|
+
};
|
55
|
+
declare type GeocoderRel = ResourceId & {
|
56
|
+
type: 'geocoders';
|
57
|
+
};
|
58
|
+
declare type GiftCardRecipientRel = ResourceId & {
|
59
|
+
type: 'gift_card_recipients';
|
60
|
+
};
|
61
|
+
declare type GiftCardRel = ResourceId & {
|
62
|
+
type: 'gift_cards';
|
63
|
+
};
|
64
|
+
declare type InventoryModelRel = ResourceId & {
|
65
|
+
type: 'inventory_models';
|
66
|
+
};
|
67
|
+
declare type MarketRel = ResourceId & {
|
68
|
+
type: 'markets';
|
69
|
+
};
|
70
|
+
declare type MerchantRel = ResourceId & {
|
71
|
+
type: 'merchants';
|
72
|
+
};
|
73
|
+
declare type BillingInfoValidationRuleRel = ResourceId & {
|
74
|
+
type: 'billing_info_validation_rules';
|
75
|
+
};
|
76
|
+
declare type OrderRel = ResourceId & {
|
77
|
+
type: 'orders';
|
78
|
+
};
|
79
|
+
declare type PackageRel = ResourceId & {
|
80
|
+
type: 'packages';
|
81
|
+
};
|
82
|
+
declare type ParcelRel = ResourceId & {
|
83
|
+
type: 'parcels';
|
84
|
+
};
|
85
|
+
declare type PaymentMethodRel = ResourceId & {
|
86
|
+
type: 'payment_methods';
|
87
|
+
};
|
88
|
+
declare type PriceListRel = ResourceId & {
|
89
|
+
type: 'price_lists';
|
90
|
+
};
|
91
|
+
declare type PriceRel = ResourceId & {
|
92
|
+
type: 'prices';
|
93
|
+
};
|
94
|
+
declare type PromotionRel = ResourceId & {
|
95
|
+
type: 'promotions';
|
96
|
+
};
|
97
|
+
declare type ReturnRel = ResourceId & {
|
98
|
+
type: 'returns';
|
99
|
+
};
|
100
|
+
declare type ShipmentRel = ResourceId & {
|
101
|
+
type: 'shipments';
|
102
|
+
};
|
103
|
+
declare type ShippingCategoryRel = ResourceId & {
|
104
|
+
type: 'shipping_categories';
|
105
|
+
};
|
106
|
+
declare type ShippingMethodRel = ResourceId & {
|
107
|
+
type: 'shipping_methods';
|
108
|
+
};
|
109
|
+
declare type ShippingZoneRel = ResourceId & {
|
110
|
+
type: 'shipping_zones';
|
111
|
+
};
|
112
|
+
declare type SkuOptionRel = ResourceId & {
|
113
|
+
type: 'sku_options';
|
114
|
+
};
|
115
|
+
declare type SkuRel = ResourceId & {
|
116
|
+
type: 'skus';
|
117
|
+
};
|
118
|
+
declare type StockItemRel = ResourceId & {
|
119
|
+
type: 'stock_items';
|
120
|
+
};
|
121
|
+
declare type StockLocationRel = ResourceId & {
|
122
|
+
type: 'stock_locations';
|
123
|
+
};
|
124
|
+
declare type TaxCalculatorRel = ResourceId & {
|
125
|
+
type: 'tax_calculators';
|
126
|
+
};
|
127
|
+
declare type TaxCategoryRel = ResourceId & {
|
128
|
+
type: 'tax_categories';
|
129
|
+
};
|
130
|
+
interface Attachment extends Resource {
|
131
|
+
name?: string;
|
132
|
+
description?: string;
|
133
|
+
url?: string;
|
134
|
+
attachable?: Bundle | CarrierAccount | CustomerGroup | Customer | DeliveryLeadTime | Geocoder | GiftCardRecipient | GiftCard | InventoryModel | Market | Merchant | BillingInfoValidationRule | Order | Package | Parcel | PaymentMethod | PriceList | Price | Promotion | Return | Shipment | ShippingCategory | ShippingMethod | ShippingZone | SkuOption | Sku | StockItem | StockLocation | TaxCalculator | TaxCategory;
|
135
|
+
}
|
136
|
+
interface AttachmentCreate extends ResourceCreate {
|
137
|
+
name: string;
|
138
|
+
description?: string;
|
139
|
+
url?: string;
|
140
|
+
attachable?: BundleRel | CarrierAccountRel | CustomerGroupRel | CustomerRel | DeliveryLeadTimeRel | GeocoderRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | MarketRel | MerchantRel | BillingInfoValidationRuleRel | OrderRel | PackageRel | ParcelRel | PaymentMethodRel | PriceListRel | PriceRel | PromotionRel | ReturnRel | ShipmentRel | ShippingCategoryRel | ShippingMethodRel | ShippingZoneRel | SkuOptionRel | SkuRel | StockItemRel | StockLocationRel | TaxCalculatorRel | TaxCategoryRel;
|
141
|
+
}
|
142
|
+
interface AttachmentUpdate extends ResourceUpdate {
|
143
|
+
name?: string;
|
144
|
+
description?: string;
|
145
|
+
url?: string;
|
146
|
+
attachable?: BundleRel | CarrierAccountRel | CustomerGroupRel | CustomerRel | DeliveryLeadTimeRel | GeocoderRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | MarketRel | MerchantRel | BillingInfoValidationRuleRel | OrderRel | PackageRel | ParcelRel | PaymentMethodRel | PriceListRel | PriceRel | PromotionRel | ReturnRel | ShipmentRel | ShippingCategoryRel | ShippingMethodRel | ShippingZoneRel | SkuOptionRel | SkuRel | StockItemRel | StockLocationRel | TaxCalculatorRel | TaxCategoryRel;
|
147
|
+
}
|
148
|
+
declare class Attachments extends ApiResource {
|
149
|
+
static readonly TYPE: 'attachments';
|
150
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
151
|
+
create(resource: AttachmentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Attachment>;
|
152
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Attachment>;
|
153
|
+
update(resource: AttachmentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Attachment>;
|
154
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
155
|
+
isAttachment(resource: any): resource is Attachment;
|
156
|
+
relationship(id: string | ResourceId): AttachmentRel;
|
157
|
+
type(): string;
|
158
|
+
}
|
159
|
+
export default Attachments;
|
160
|
+
export { Attachment, AttachmentCreate, AttachmentUpdate };
|
@@ -0,0 +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 } from '../resource';
|
6
|
+
class Attachments extends ApiResource {
|
7
|
+
// static readonly PATH = 'attachments'
|
8
|
+
async list(params, options) {
|
9
|
+
return this.resources.list({ type: Attachments.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async create(resource, params, options) {
|
12
|
+
return this.resources.create(Object.assign(Object.assign({}, resource), { type: Attachments.TYPE }), params, options);
|
13
|
+
}
|
14
|
+
async retrieve(id, params, options) {
|
15
|
+
return this.resources.retrieve({ type: Attachments.TYPE, id }, params, options);
|
16
|
+
}
|
17
|
+
async update(resource, params, options) {
|
18
|
+
return this.resources.update(Object.assign(Object.assign({}, resource), { type: Attachments.TYPE }), params, options);
|
19
|
+
}
|
20
|
+
async delete(id, options) {
|
21
|
+
await this.resources.delete({ type: Attachments.TYPE, id }, options);
|
22
|
+
}
|
23
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
24
|
+
isAttachment(resource) {
|
25
|
+
return resource.type && (resource.type === Attachments.TYPE);
|
26
|
+
}
|
27
|
+
/*
|
28
|
+
filter(): QueryBuilderRetrieve {
|
29
|
+
return new QueryBuilderRetrieve(Attachments.TYPE)
|
30
|
+
}
|
31
|
+
*/
|
32
|
+
/*
|
33
|
+
filterList(): QueryBuilderList {
|
34
|
+
return new QueryBuilderList(Attachments.TYPE)
|
35
|
+
}
|
36
|
+
*/
|
37
|
+
relationship(id) {
|
38
|
+
return (typeof id === 'string') ? { id, type: Attachments.TYPE } : { id: id.id, type: Attachments.TYPE };
|
39
|
+
}
|
40
|
+
type() {
|
41
|
+
return Attachments.TYPE;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
Attachments.TYPE = 'attachments';
|
45
|
+
export default Attachments;
|
@@ -0,0 +1,58 @@
|
|
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, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
|
+
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
|
+
import { Order } from './orders';
|
8
|
+
import { Capture } from './captures';
|
9
|
+
import { Void } from './voids';
|
10
|
+
declare type AuthorizationRel = ResourceId & {
|
11
|
+
type: typeof Authorizations.TYPE;
|
12
|
+
};
|
13
|
+
interface Authorization extends Resource {
|
14
|
+
number?: string;
|
15
|
+
currency_code?: string;
|
16
|
+
amount_cents?: number;
|
17
|
+
amount_float?: number;
|
18
|
+
formatted_amount?: string;
|
19
|
+
succeeded?: boolean;
|
20
|
+
message?: string;
|
21
|
+
error_code?: string;
|
22
|
+
error_detail?: string;
|
23
|
+
token?: string;
|
24
|
+
gateway_transaction_id?: string;
|
25
|
+
cvv_code?: string;
|
26
|
+
cvv_message?: string;
|
27
|
+
avs_code?: string;
|
28
|
+
avs_message?: string;
|
29
|
+
fraud_review?: string;
|
30
|
+
capture_amount_cents?: number;
|
31
|
+
capture_amount_float?: number;
|
32
|
+
formatted_capture_amount?: string;
|
33
|
+
capture_balance_cents?: number;
|
34
|
+
capture_balance_float?: number;
|
35
|
+
formatted_capture_balance?: string;
|
36
|
+
void_balance_cents?: number;
|
37
|
+
void_balance_float?: number;
|
38
|
+
formatted_void_balance?: string;
|
39
|
+
order?: Order;
|
40
|
+
captures?: Capture[];
|
41
|
+
voids?: Void[];
|
42
|
+
}
|
43
|
+
interface AuthorizationUpdate extends ResourceUpdate {
|
44
|
+
_capture?: boolean;
|
45
|
+
_capture_amount_cents?: number;
|
46
|
+
_void?: boolean;
|
47
|
+
}
|
48
|
+
declare class Authorizations extends ApiResource {
|
49
|
+
static readonly TYPE: 'authorizations';
|
50
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Authorization>>;
|
51
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
52
|
+
update(resource: AuthorizationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
53
|
+
isAuthorization(resource: any): resource is Authorization;
|
54
|
+
relationship(id: string | ResourceId): AuthorizationRel;
|
55
|
+
type(): string;
|
56
|
+
}
|
57
|
+
export default Authorizations;
|
58
|
+
export { Authorization, AuthorizationUpdate };
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/**
|
2
|
+
* ©2021 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
|
+
**/
|
5
|
+
import { ApiResource } from '../resource';
|
6
|
+
class Authorizations extends ApiResource {
|
7
|
+
// static readonly PATH = 'authorizations'
|
8
|
+
async list(params, options) {
|
9
|
+
return this.resources.list({ type: Authorizations.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async retrieve(id, params, options) {
|
12
|
+
return this.resources.retrieve({ type: Authorizations.TYPE, id }, params, options);
|
13
|
+
}
|
14
|
+
async update(resource, params, options) {
|
15
|
+
return this.resources.update(Object.assign(Object.assign({}, resource), { type: Authorizations.TYPE }), params, options);
|
16
|
+
}
|
17
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
18
|
+
isAuthorization(resource) {
|
19
|
+
return resource.type && (resource.type === Authorizations.TYPE);
|
20
|
+
}
|
21
|
+
/*
|
22
|
+
filter(): QueryBuilderRetrieve {
|
23
|
+
return new QueryBuilderRetrieve(Authorizations.TYPE)
|
24
|
+
}
|
25
|
+
*/
|
26
|
+
/*
|
27
|
+
filterList(): QueryBuilderList {
|
28
|
+
return new QueryBuilderList(Authorizations.TYPE)
|
29
|
+
}
|
30
|
+
*/
|
31
|
+
relationship(id) {
|
32
|
+
return (typeof id === 'string') ? { id, type: Authorizations.TYPE } : { id: id.id, type: Authorizations.TYPE };
|
33
|
+
}
|
34
|
+
type() {
|
35
|
+
return Authorizations.TYPE;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
Authorizations.TYPE = 'authorizations';
|
39
|
+
export default Authorizations;
|
@@ -0,0 +1,53 @@
|
|
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 { TaxCategory } from './tax_categories';
|
8
|
+
import { Market } from './markets';
|
9
|
+
import { Attachment } from './attachments';
|
10
|
+
declare type AvalaraAccountRel = ResourceId & {
|
11
|
+
type: typeof AvalaraAccounts.TYPE;
|
12
|
+
};
|
13
|
+
declare type TaxCategoryRel = ResourceId & {
|
14
|
+
type: 'tax_categories';
|
15
|
+
};
|
16
|
+
interface AvalaraAccount extends Resource {
|
17
|
+
name?: string;
|
18
|
+
username?: string;
|
19
|
+
company_code?: string;
|
20
|
+
ddp?: string;
|
21
|
+
tax_categories?: TaxCategory[];
|
22
|
+
markets?: Market[];
|
23
|
+
attachments?: Attachment[];
|
24
|
+
}
|
25
|
+
interface AvalaraAccountCreate extends ResourceCreate {
|
26
|
+
name: string;
|
27
|
+
username: string;
|
28
|
+
password: string;
|
29
|
+
company_code: string;
|
30
|
+
ddp?: string;
|
31
|
+
tax_categories?: TaxCategoryRel[];
|
32
|
+
}
|
33
|
+
interface AvalaraAccountUpdate extends ResourceUpdate {
|
34
|
+
name?: string;
|
35
|
+
username?: string;
|
36
|
+
password?: string;
|
37
|
+
company_code?: string;
|
38
|
+
ddp?: string;
|
39
|
+
tax_categories?: TaxCategoryRel[];
|
40
|
+
}
|
41
|
+
declare class AvalaraAccounts extends ApiResource {
|
42
|
+
static readonly TYPE: 'avalara_accounts';
|
43
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AvalaraAccount>>;
|
44
|
+
create(resource: AvalaraAccountCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AvalaraAccount>;
|
45
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AvalaraAccount>;
|
46
|
+
update(resource: AvalaraAccountUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AvalaraAccount>;
|
47
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
48
|
+
isAvalaraAccount(resource: any): resource is AvalaraAccount;
|
49
|
+
relationship(id: string | ResourceId): AvalaraAccountRel;
|
50
|
+
type(): string;
|
51
|
+
}
|
52
|
+
export default AvalaraAccounts;
|
53
|
+
export { AvalaraAccount, AvalaraAccountCreate, AvalaraAccountUpdate };
|
@@ -0,0 +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 } from '../resource';
|
6
|
+
class AvalaraAccounts extends ApiResource {
|
7
|
+
// static readonly PATH = 'avalara_accounts'
|
8
|
+
async list(params, options) {
|
9
|
+
return this.resources.list({ type: AvalaraAccounts.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async create(resource, params, options) {
|
12
|
+
return this.resources.create(Object.assign(Object.assign({}, resource), { type: AvalaraAccounts.TYPE }), params, options);
|
13
|
+
}
|
14
|
+
async retrieve(id, params, options) {
|
15
|
+
return this.resources.retrieve({ type: AvalaraAccounts.TYPE, id }, params, options);
|
16
|
+
}
|
17
|
+
async update(resource, params, options) {
|
18
|
+
return this.resources.update(Object.assign(Object.assign({}, resource), { type: AvalaraAccounts.TYPE }), params, options);
|
19
|
+
}
|
20
|
+
async delete(id, options) {
|
21
|
+
await this.resources.delete({ type: AvalaraAccounts.TYPE, id }, options);
|
22
|
+
}
|
23
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
24
|
+
isAvalaraAccount(resource) {
|
25
|
+
return resource.type && (resource.type === AvalaraAccounts.TYPE);
|
26
|
+
}
|
27
|
+
/*
|
28
|
+
filter(): QueryBuilderRetrieve {
|
29
|
+
return new QueryBuilderRetrieve(AvalaraAccounts.TYPE)
|
30
|
+
}
|
31
|
+
*/
|
32
|
+
/*
|
33
|
+
filterList(): QueryBuilderList {
|
34
|
+
return new QueryBuilderList(AvalaraAccounts.TYPE)
|
35
|
+
}
|
36
|
+
*/
|
37
|
+
relationship(id) {
|
38
|
+
return (typeof id === 'string') ? { id, type: AvalaraAccounts.TYPE } : { id: id.id, type: AvalaraAccounts.TYPE };
|
39
|
+
}
|
40
|
+
type() {
|
41
|
+
return AvalaraAccounts.TYPE;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
AvalaraAccounts.TYPE = 'avalara_accounts';
|
45
|
+
export default AvalaraAccounts;
|
@@ -0,0 +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 { Market } from './markets';
|
8
|
+
declare type BillingInfoValidationRuleRel = ResourceId & {
|
9
|
+
type: typeof BillingInfoValidationRules.TYPE;
|
10
|
+
};
|
11
|
+
declare type MarketRel = ResourceId & {
|
12
|
+
type: 'markets';
|
13
|
+
};
|
14
|
+
interface BillingInfoValidationRule extends Resource {
|
15
|
+
market?: Market;
|
16
|
+
}
|
17
|
+
interface BillingInfoValidationRuleCreate extends ResourceCreate {
|
18
|
+
market?: MarketRel;
|
19
|
+
}
|
20
|
+
interface BillingInfoValidationRuleUpdate extends ResourceUpdate {
|
21
|
+
market?: MarketRel;
|
22
|
+
}
|
23
|
+
declare class BillingInfoValidationRules extends ApiResource {
|
24
|
+
static readonly TYPE: 'billing_info_validation_rules';
|
25
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BillingInfoValidationRule>>;
|
26
|
+
create(resource: BillingInfoValidationRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
27
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
28
|
+
update(resource: BillingInfoValidationRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
29
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
30
|
+
isBillingInfoValidationRule(resource: any): resource is BillingInfoValidationRule;
|
31
|
+
relationship(id: string | ResourceId): BillingInfoValidationRuleRel;
|
32
|
+
type(): string;
|
33
|
+
}
|
34
|
+
export default BillingInfoValidationRules;
|
35
|
+
export { BillingInfoValidationRule, BillingInfoValidationRuleCreate, BillingInfoValidationRuleUpdate };
|
@@ -0,0 +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 } from '../resource';
|
6
|
+
class BillingInfoValidationRules extends ApiResource {
|
7
|
+
// static readonly PATH = 'billing_info_validation_rules'
|
8
|
+
async list(params, options) {
|
9
|
+
return this.resources.list({ type: BillingInfoValidationRules.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async create(resource, params, options) {
|
12
|
+
return this.resources.create(Object.assign(Object.assign({}, resource), { type: BillingInfoValidationRules.TYPE }), params, options);
|
13
|
+
}
|
14
|
+
async retrieve(id, params, options) {
|
15
|
+
return this.resources.retrieve({ type: BillingInfoValidationRules.TYPE, id }, params, options);
|
16
|
+
}
|
17
|
+
async update(resource, params, options) {
|
18
|
+
return this.resources.update(Object.assign(Object.assign({}, resource), { type: BillingInfoValidationRules.TYPE }), params, options);
|
19
|
+
}
|
20
|
+
async delete(id, options) {
|
21
|
+
await this.resources.delete({ type: BillingInfoValidationRules.TYPE, id }, options);
|
22
|
+
}
|
23
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
24
|
+
isBillingInfoValidationRule(resource) {
|
25
|
+
return resource.type && (resource.type === BillingInfoValidationRules.TYPE);
|
26
|
+
}
|
27
|
+
/*
|
28
|
+
filter(): QueryBuilderRetrieve {
|
29
|
+
return new QueryBuilderRetrieve(BillingInfoValidationRules.TYPE)
|
30
|
+
}
|
31
|
+
*/
|
32
|
+
/*
|
33
|
+
filterList(): QueryBuilderList {
|
34
|
+
return new QueryBuilderList(BillingInfoValidationRules.TYPE)
|
35
|
+
}
|
36
|
+
*/
|
37
|
+
relationship(id) {
|
38
|
+
return (typeof id === 'string') ? { id, type: BillingInfoValidationRules.TYPE } : { id: id.id, type: BillingInfoValidationRules.TYPE };
|
39
|
+
}
|
40
|
+
type() {
|
41
|
+
return BillingInfoValidationRules.TYPE;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
BillingInfoValidationRules.TYPE = 'billing_info_validation_rules';
|
45
|
+
export default BillingInfoValidationRules;
|
@@ -0,0 +1,37 @@
|
|
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 { Address } from './addresses';
|
8
|
+
import { Attachment } from './attachments';
|
9
|
+
declare type BingGeocoderRel = ResourceId & {
|
10
|
+
type: typeof BingGeocoders.TYPE;
|
11
|
+
};
|
12
|
+
interface BingGeocoder extends Resource {
|
13
|
+
name?: string;
|
14
|
+
addresses?: Address[];
|
15
|
+
attachments?: Attachment[];
|
16
|
+
}
|
17
|
+
interface BingGeocoderCreate extends ResourceCreate {
|
18
|
+
name: string;
|
19
|
+
key: string;
|
20
|
+
}
|
21
|
+
interface BingGeocoderUpdate extends ResourceUpdate {
|
22
|
+
name?: string;
|
23
|
+
key?: string;
|
24
|
+
}
|
25
|
+
declare class BingGeocoders extends ApiResource {
|
26
|
+
static readonly TYPE: 'bing_geocoders';
|
27
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BingGeocoder>>;
|
28
|
+
create(resource: BingGeocoderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
29
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
30
|
+
update(resource: BingGeocoderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
31
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
32
|
+
isBingGeocoder(resource: any): resource is BingGeocoder;
|
33
|
+
relationship(id: string | ResourceId): BingGeocoderRel;
|
34
|
+
type(): string;
|
35
|
+
}
|
36
|
+
export default BingGeocoders;
|
37
|
+
export { BingGeocoder, BingGeocoderCreate, BingGeocoderUpdate };
|