@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,255 +1,255 @@
|
|
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
|
-
import { Customer } from './customers';
|
9
|
-
import { Address } from './addresses';
|
10
|
-
import { PaymentMethod } from './payment_methods';
|
11
|
-
import { CustomerPaymentSource } from './customer_payment_sources';
|
12
|
-
import { AdyenPayment } from './adyen_payments';
|
13
|
-
import { BraintreePayment } from './braintree_payments';
|
14
|
-
import { CheckoutComPayment } from './checkout_com_payments';
|
15
|
-
import { ExternalPayment } from './external_payments';
|
16
|
-
import { PaypalPayment } from './paypal_payments';
|
17
|
-
import { StripePayment } from './stripe_payments';
|
18
|
-
import { WireTransfer } from './wire_transfers';
|
19
|
-
import { LineItem } from './line_items';
|
20
|
-
import { Shipment } from './shipments';
|
21
|
-
import { Authorization } from './authorizations';
|
22
|
-
import { Void } from './voids';
|
23
|
-
import { Capture } from './captures';
|
24
|
-
import { Refund } from './refunds';
|
25
|
-
import { OrderSubscription } from './order_subscriptions';
|
26
|
-
import { OrderCopy } from './order_copies';
|
27
|
-
import { Attachment } from './attachments';
|
28
|
-
declare type OrderRel = ResourceId & {
|
29
|
-
type: typeof Orders.TYPE;
|
30
|
-
};
|
31
|
-
declare type MarketRel = ResourceId & {
|
32
|
-
type: 'markets';
|
33
|
-
};
|
34
|
-
declare type CustomerRel = ResourceId & {
|
35
|
-
type: 'customers';
|
36
|
-
};
|
37
|
-
declare type AddressRel = ResourceId & {
|
38
|
-
type: 'addresses';
|
39
|
-
};
|
40
|
-
declare type PaymentMethodRel = ResourceId & {
|
41
|
-
type: 'payment_methods';
|
42
|
-
};
|
43
|
-
declare type AdyenPaymentRel = ResourceId & {
|
44
|
-
type: 'adyen_payments';
|
45
|
-
};
|
46
|
-
declare type BraintreePaymentRel = ResourceId & {
|
47
|
-
type: 'braintree_payments';
|
48
|
-
};
|
49
|
-
declare type CheckoutComPaymentRel = ResourceId & {
|
50
|
-
type: 'checkout_com_payments';
|
51
|
-
};
|
52
|
-
declare type ExternalPaymentRel = ResourceId & {
|
53
|
-
type: 'external_payments';
|
54
|
-
};
|
55
|
-
declare type PaypalPaymentRel = ResourceId & {
|
56
|
-
type: 'paypal_payments';
|
57
|
-
};
|
58
|
-
declare type StripePaymentRel = ResourceId & {
|
59
|
-
type: 'stripe_payments';
|
60
|
-
};
|
61
|
-
declare type WireTransferRel = ResourceId & {
|
62
|
-
type: 'wire_transfers';
|
63
|
-
};
|
64
|
-
interface Order extends Resource {
|
65
|
-
number?: number;
|
66
|
-
autorefresh?: boolean;
|
67
|
-
status?: string;
|
68
|
-
payment_status?: string;
|
69
|
-
fulfillment_status?: string;
|
70
|
-
guest?: boolean;
|
71
|
-
editable?: boolean;
|
72
|
-
customer_email?: string;
|
73
|
-
language_code?: string;
|
74
|
-
currency_code?: string;
|
75
|
-
tax_included?: boolean;
|
76
|
-
tax_rate?: number;
|
77
|
-
freight_taxable?: boolean;
|
78
|
-
requires_billing_info?: boolean;
|
79
|
-
country_code?: string;
|
80
|
-
shipping_country_code_lock?: string;
|
81
|
-
coupon_code?: string;
|
82
|
-
gift_card_code?: string;
|
83
|
-
gift_card_or_coupon_code?: string;
|
84
|
-
subtotal_amount_cents?: number;
|
85
|
-
subtotal_amount_float?: number;
|
86
|
-
formatted_subtotal_amount?: string;
|
87
|
-
shipping_amount_cents?: number;
|
88
|
-
shipping_amount_float?: number;
|
89
|
-
formatted_shipping_amount?: string;
|
90
|
-
payment_method_amount_cents?: number;
|
91
|
-
payment_method_amount_float?: number;
|
92
|
-
formatted_payment_method_amount?: string;
|
93
|
-
discount_amount_cents?: number;
|
94
|
-
discount_amount_float?: number;
|
95
|
-
formatted_discount_amount?: string;
|
96
|
-
adjustment_amount_cents?: number;
|
97
|
-
adjustment_amount_float?: number;
|
98
|
-
formatted_adjustment_amount?: string;
|
99
|
-
gift_card_amount_cents?: number;
|
100
|
-
gift_card_amount_float?: number;
|
101
|
-
formatted_gift_card_amount?: string;
|
102
|
-
total_tax_amount_cents?: number;
|
103
|
-
total_tax_amount_float?: number;
|
104
|
-
formatted_total_tax_amount?: string;
|
105
|
-
subtotal_tax_amount_cents?: number;
|
106
|
-
subtotal_tax_amount_float?: number;
|
107
|
-
formatted_subtotal_tax_amount?: string;
|
108
|
-
shipping_tax_amount_cents?: number;
|
109
|
-
shipping_tax_amount_float?: number;
|
110
|
-
formatted_shipping_tax_amount?: string;
|
111
|
-
payment_method_tax_amount_cents?: number;
|
112
|
-
payment_method_tax_amount_float?: number;
|
113
|
-
formatted_payment_method_tax_amount?: string;
|
114
|
-
adjustment_tax_amount_cents?: number;
|
115
|
-
adjustment_tax_amount_float?: number;
|
116
|
-
formatted_adjustment_tax_amount?: string;
|
117
|
-
total_amount_cents?: number;
|
118
|
-
total_amount_float?: number;
|
119
|
-
formatted_total_amount?: string;
|
120
|
-
total_taxable_amount_cents?: number;
|
121
|
-
total_taxable_amount_float?: number;
|
122
|
-
formatted_total_taxable_amount?: string;
|
123
|
-
subtotal_taxable_amount_cents?: number;
|
124
|
-
subtotal_taxable_amount_float?: number;
|
125
|
-
formatted_subtotal_taxable_amount?: string;
|
126
|
-
shipping_taxable_amount_cents?: number;
|
127
|
-
shipping_taxable_amount_float?: number;
|
128
|
-
formatted_shipping_taxable_amount?: string;
|
129
|
-
payment_method_taxable_amount_cents?: number;
|
130
|
-
payment_method_taxable_amount_float?: number;
|
131
|
-
formatted_payment_method_taxable_amount?: string;
|
132
|
-
adjustment_taxable_amount_cents?: number;
|
133
|
-
adjustment_taxable_amount_float?: number;
|
134
|
-
formatted_adjustment_taxable_amount?: string;
|
135
|
-
total_amount_with_taxes_cents?: number;
|
136
|
-
total_amount_with_taxes_float?: number;
|
137
|
-
formatted_total_amount_with_taxes?: string;
|
138
|
-
fees_amount_cents?: number;
|
139
|
-
fees_amount_float?: number;
|
140
|
-
formatted_fees_amount?: string;
|
141
|
-
duty_amount_cents?: number;
|
142
|
-
duty_amount_float?: number;
|
143
|
-
formatted_duty_amount?: string;
|
144
|
-
skus_count?: number;
|
145
|
-
line_item_options_count?: number;
|
146
|
-
shipments_count?: number;
|
147
|
-
payment_source_details?: object;
|
148
|
-
token?: string;
|
149
|
-
cart_url?: string;
|
150
|
-
return_url?: string;
|
151
|
-
terms_url?: string;
|
152
|
-
privacy_url?: string;
|
153
|
-
checkout_url?: string;
|
154
|
-
placed_at?: string;
|
155
|
-
approved_at?: string;
|
156
|
-
cancelled_at?: string;
|
157
|
-
payment_updated_at?: string;
|
158
|
-
fulfillment_updated_at?: string;
|
159
|
-
refreshed_at?: string;
|
160
|
-
archived_at?: string;
|
161
|
-
expires_at?: string;
|
162
|
-
market?: Market;
|
163
|
-
customer?: Customer;
|
164
|
-
shipping_address?: Address;
|
165
|
-
billing_address?: Address;
|
166
|
-
available_payment_methods?: PaymentMethod[];
|
167
|
-
available_customer_payment_sources?: CustomerPaymentSource[];
|
168
|
-
payment_method?: PaymentMethod;
|
169
|
-
payment_source?: AdyenPayment | BraintreePayment | CheckoutComPayment | ExternalPayment | PaypalPayment | StripePayment | WireTransfer;
|
170
|
-
line_items?: LineItem[];
|
171
|
-
shipments?: Shipment[];
|
172
|
-
transactions?: (Authorization | Void | Capture | Refund)[];
|
173
|
-
authorizations?: Authorization[];
|
174
|
-
captures?: Capture[];
|
175
|
-
voids?: Void[];
|
176
|
-
refunds?: Refund[];
|
177
|
-
order_subscriptions?: OrderSubscription[];
|
178
|
-
order_copies?: OrderCopy[];
|
179
|
-
attachments?: Attachment[];
|
180
|
-
}
|
181
|
-
interface OrderCreate extends ResourceCreate {
|
182
|
-
autorefresh?: boolean;
|
183
|
-
guest?: boolean;
|
184
|
-
customer_email?: string;
|
185
|
-
customer_password?: string;
|
186
|
-
language_code?: string;
|
187
|
-
shipping_country_code_lock?: string;
|
188
|
-
coupon_code?: string;
|
189
|
-
gift_card_code?: string;
|
190
|
-
gift_card_or_coupon_code?: string;
|
191
|
-
cart_url?: string;
|
192
|
-
return_url?: string;
|
193
|
-
terms_url?: string;
|
194
|
-
privacy_url?: string;
|
195
|
-
market?: MarketRel;
|
196
|
-
customer?: CustomerRel;
|
197
|
-
shipping_address?: AddressRel;
|
198
|
-
billing_address?: AddressRel;
|
199
|
-
payment_method?: PaymentMethodRel;
|
200
|
-
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
201
|
-
}
|
202
|
-
interface OrderUpdate extends ResourceUpdate {
|
203
|
-
autorefresh?: boolean;
|
204
|
-
guest?: boolean;
|
205
|
-
customer_email?: string;
|
206
|
-
customer_password?: string;
|
207
|
-
language_code?: string;
|
208
|
-
shipping_country_code_lock?: string;
|
209
|
-
coupon_code?: string;
|
210
|
-
gift_card_code?: string;
|
211
|
-
gift_card_or_coupon_code?: string;
|
212
|
-
cart_url?: string;
|
213
|
-
return_url?: string;
|
214
|
-
terms_url?: string;
|
215
|
-
privacy_url?: string;
|
216
|
-
_archive?: boolean;
|
217
|
-
_unarchive?: boolean;
|
218
|
-
_place?: boolean;
|
219
|
-
_cancel?: boolean;
|
220
|
-
_approve?: boolean;
|
221
|
-
_approve_and_capture?: boolean;
|
222
|
-
_authorize?: boolean;
|
223
|
-
_authorization_amount_cents?: number;
|
224
|
-
_capture?: boolean;
|
225
|
-
_refund?: boolean;
|
226
|
-
_update_taxes?: boolean;
|
227
|
-
_billing_address_clone_id?: string;
|
228
|
-
_shipping_address_clone_id?: string;
|
229
|
-
_customer_payment_source_id?: string;
|
230
|
-
_shipping_address_same_as_billing?: boolean;
|
231
|
-
_billing_address_same_as_shipping?: boolean;
|
232
|
-
_save_payment_source_to_customer_wallet?: boolean;
|
233
|
-
_save_shipping_address_to_customer_address_book?: boolean;
|
234
|
-
_save_billing_address_to_customer_address_book?: boolean;
|
235
|
-
_refresh?: boolean;
|
236
|
-
market?: MarketRel;
|
237
|
-
customer?: CustomerRel;
|
238
|
-
shipping_address?: AddressRel;
|
239
|
-
billing_address?: AddressRel;
|
240
|
-
payment_method?: PaymentMethodRel;
|
241
|
-
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
242
|
-
}
|
243
|
-
declare class Orders extends ApiResource {
|
244
|
-
static readonly TYPE: 'orders';
|
245
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Order>>;
|
246
|
-
create(resource: OrderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
247
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
248
|
-
update(resource: OrderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
249
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
250
|
-
isOrder(resource: any): resource is Order;
|
251
|
-
relationship(id: string | ResourceId): OrderRel;
|
252
|
-
type(): string;
|
253
|
-
}
|
254
|
-
export default Orders;
|
255
|
-
export { Order, OrderCreate, OrderUpdate };
|
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
|
+
import { Customer } from './customers';
|
9
|
+
import { Address } from './addresses';
|
10
|
+
import { PaymentMethod } from './payment_methods';
|
11
|
+
import { CustomerPaymentSource } from './customer_payment_sources';
|
12
|
+
import { AdyenPayment } from './adyen_payments';
|
13
|
+
import { BraintreePayment } from './braintree_payments';
|
14
|
+
import { CheckoutComPayment } from './checkout_com_payments';
|
15
|
+
import { ExternalPayment } from './external_payments';
|
16
|
+
import { PaypalPayment } from './paypal_payments';
|
17
|
+
import { StripePayment } from './stripe_payments';
|
18
|
+
import { WireTransfer } from './wire_transfers';
|
19
|
+
import { LineItem } from './line_items';
|
20
|
+
import { Shipment } from './shipments';
|
21
|
+
import { Authorization } from './authorizations';
|
22
|
+
import { Void } from './voids';
|
23
|
+
import { Capture } from './captures';
|
24
|
+
import { Refund } from './refunds';
|
25
|
+
import { OrderSubscription } from './order_subscriptions';
|
26
|
+
import { OrderCopy } from './order_copies';
|
27
|
+
import { Attachment } from './attachments';
|
28
|
+
declare type OrderRel = ResourceId & {
|
29
|
+
type: typeof Orders.TYPE;
|
30
|
+
};
|
31
|
+
declare type MarketRel = ResourceId & {
|
32
|
+
type: 'markets';
|
33
|
+
};
|
34
|
+
declare type CustomerRel = ResourceId & {
|
35
|
+
type: 'customers';
|
36
|
+
};
|
37
|
+
declare type AddressRel = ResourceId & {
|
38
|
+
type: 'addresses';
|
39
|
+
};
|
40
|
+
declare type PaymentMethodRel = ResourceId & {
|
41
|
+
type: 'payment_methods';
|
42
|
+
};
|
43
|
+
declare type AdyenPaymentRel = ResourceId & {
|
44
|
+
type: 'adyen_payments';
|
45
|
+
};
|
46
|
+
declare type BraintreePaymentRel = ResourceId & {
|
47
|
+
type: 'braintree_payments';
|
48
|
+
};
|
49
|
+
declare type CheckoutComPaymentRel = ResourceId & {
|
50
|
+
type: 'checkout_com_payments';
|
51
|
+
};
|
52
|
+
declare type ExternalPaymentRel = ResourceId & {
|
53
|
+
type: 'external_payments';
|
54
|
+
};
|
55
|
+
declare type PaypalPaymentRel = ResourceId & {
|
56
|
+
type: 'paypal_payments';
|
57
|
+
};
|
58
|
+
declare type StripePaymentRel = ResourceId & {
|
59
|
+
type: 'stripe_payments';
|
60
|
+
};
|
61
|
+
declare type WireTransferRel = ResourceId & {
|
62
|
+
type: 'wire_transfers';
|
63
|
+
};
|
64
|
+
interface Order extends Resource {
|
65
|
+
number?: number;
|
66
|
+
autorefresh?: boolean;
|
67
|
+
status?: string;
|
68
|
+
payment_status?: string;
|
69
|
+
fulfillment_status?: string;
|
70
|
+
guest?: boolean;
|
71
|
+
editable?: boolean;
|
72
|
+
customer_email?: string;
|
73
|
+
language_code?: string;
|
74
|
+
currency_code?: string;
|
75
|
+
tax_included?: boolean;
|
76
|
+
tax_rate?: number;
|
77
|
+
freight_taxable?: boolean;
|
78
|
+
requires_billing_info?: boolean;
|
79
|
+
country_code?: string;
|
80
|
+
shipping_country_code_lock?: string;
|
81
|
+
coupon_code?: string;
|
82
|
+
gift_card_code?: string;
|
83
|
+
gift_card_or_coupon_code?: string;
|
84
|
+
subtotal_amount_cents?: number;
|
85
|
+
subtotal_amount_float?: number;
|
86
|
+
formatted_subtotal_amount?: string;
|
87
|
+
shipping_amount_cents?: number;
|
88
|
+
shipping_amount_float?: number;
|
89
|
+
formatted_shipping_amount?: string;
|
90
|
+
payment_method_amount_cents?: number;
|
91
|
+
payment_method_amount_float?: number;
|
92
|
+
formatted_payment_method_amount?: string;
|
93
|
+
discount_amount_cents?: number;
|
94
|
+
discount_amount_float?: number;
|
95
|
+
formatted_discount_amount?: string;
|
96
|
+
adjustment_amount_cents?: number;
|
97
|
+
adjustment_amount_float?: number;
|
98
|
+
formatted_adjustment_amount?: string;
|
99
|
+
gift_card_amount_cents?: number;
|
100
|
+
gift_card_amount_float?: number;
|
101
|
+
formatted_gift_card_amount?: string;
|
102
|
+
total_tax_amount_cents?: number;
|
103
|
+
total_tax_amount_float?: number;
|
104
|
+
formatted_total_tax_amount?: string;
|
105
|
+
subtotal_tax_amount_cents?: number;
|
106
|
+
subtotal_tax_amount_float?: number;
|
107
|
+
formatted_subtotal_tax_amount?: string;
|
108
|
+
shipping_tax_amount_cents?: number;
|
109
|
+
shipping_tax_amount_float?: number;
|
110
|
+
formatted_shipping_tax_amount?: string;
|
111
|
+
payment_method_tax_amount_cents?: number;
|
112
|
+
payment_method_tax_amount_float?: number;
|
113
|
+
formatted_payment_method_tax_amount?: string;
|
114
|
+
adjustment_tax_amount_cents?: number;
|
115
|
+
adjustment_tax_amount_float?: number;
|
116
|
+
formatted_adjustment_tax_amount?: string;
|
117
|
+
total_amount_cents?: number;
|
118
|
+
total_amount_float?: number;
|
119
|
+
formatted_total_amount?: string;
|
120
|
+
total_taxable_amount_cents?: number;
|
121
|
+
total_taxable_amount_float?: number;
|
122
|
+
formatted_total_taxable_amount?: string;
|
123
|
+
subtotal_taxable_amount_cents?: number;
|
124
|
+
subtotal_taxable_amount_float?: number;
|
125
|
+
formatted_subtotal_taxable_amount?: string;
|
126
|
+
shipping_taxable_amount_cents?: number;
|
127
|
+
shipping_taxable_amount_float?: number;
|
128
|
+
formatted_shipping_taxable_amount?: string;
|
129
|
+
payment_method_taxable_amount_cents?: number;
|
130
|
+
payment_method_taxable_amount_float?: number;
|
131
|
+
formatted_payment_method_taxable_amount?: string;
|
132
|
+
adjustment_taxable_amount_cents?: number;
|
133
|
+
adjustment_taxable_amount_float?: number;
|
134
|
+
formatted_adjustment_taxable_amount?: string;
|
135
|
+
total_amount_with_taxes_cents?: number;
|
136
|
+
total_amount_with_taxes_float?: number;
|
137
|
+
formatted_total_amount_with_taxes?: string;
|
138
|
+
fees_amount_cents?: number;
|
139
|
+
fees_amount_float?: number;
|
140
|
+
formatted_fees_amount?: string;
|
141
|
+
duty_amount_cents?: number;
|
142
|
+
duty_amount_float?: number;
|
143
|
+
formatted_duty_amount?: string;
|
144
|
+
skus_count?: number;
|
145
|
+
line_item_options_count?: number;
|
146
|
+
shipments_count?: number;
|
147
|
+
payment_source_details?: object;
|
148
|
+
token?: string;
|
149
|
+
cart_url?: string;
|
150
|
+
return_url?: string;
|
151
|
+
terms_url?: string;
|
152
|
+
privacy_url?: string;
|
153
|
+
checkout_url?: string;
|
154
|
+
placed_at?: string;
|
155
|
+
approved_at?: string;
|
156
|
+
cancelled_at?: string;
|
157
|
+
payment_updated_at?: string;
|
158
|
+
fulfillment_updated_at?: string;
|
159
|
+
refreshed_at?: string;
|
160
|
+
archived_at?: string;
|
161
|
+
expires_at?: string;
|
162
|
+
market?: Market;
|
163
|
+
customer?: Customer;
|
164
|
+
shipping_address?: Address;
|
165
|
+
billing_address?: Address;
|
166
|
+
available_payment_methods?: PaymentMethod[];
|
167
|
+
available_customer_payment_sources?: CustomerPaymentSource[];
|
168
|
+
payment_method?: PaymentMethod;
|
169
|
+
payment_source?: AdyenPayment | BraintreePayment | CheckoutComPayment | ExternalPayment | PaypalPayment | StripePayment | WireTransfer;
|
170
|
+
line_items?: LineItem[];
|
171
|
+
shipments?: Shipment[];
|
172
|
+
transactions?: (Authorization | Void | Capture | Refund)[];
|
173
|
+
authorizations?: Authorization[];
|
174
|
+
captures?: Capture[];
|
175
|
+
voids?: Void[];
|
176
|
+
refunds?: Refund[];
|
177
|
+
order_subscriptions?: OrderSubscription[];
|
178
|
+
order_copies?: OrderCopy[];
|
179
|
+
attachments?: Attachment[];
|
180
|
+
}
|
181
|
+
interface OrderCreate extends ResourceCreate {
|
182
|
+
autorefresh?: boolean;
|
183
|
+
guest?: boolean;
|
184
|
+
customer_email?: string;
|
185
|
+
customer_password?: string;
|
186
|
+
language_code?: string;
|
187
|
+
shipping_country_code_lock?: string;
|
188
|
+
coupon_code?: string;
|
189
|
+
gift_card_code?: string;
|
190
|
+
gift_card_or_coupon_code?: string;
|
191
|
+
cart_url?: string;
|
192
|
+
return_url?: string;
|
193
|
+
terms_url?: string;
|
194
|
+
privacy_url?: string;
|
195
|
+
market?: MarketRel;
|
196
|
+
customer?: CustomerRel;
|
197
|
+
shipping_address?: AddressRel;
|
198
|
+
billing_address?: AddressRel;
|
199
|
+
payment_method?: PaymentMethodRel;
|
200
|
+
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
201
|
+
}
|
202
|
+
interface OrderUpdate extends ResourceUpdate {
|
203
|
+
autorefresh?: boolean;
|
204
|
+
guest?: boolean;
|
205
|
+
customer_email?: string;
|
206
|
+
customer_password?: string;
|
207
|
+
language_code?: string;
|
208
|
+
shipping_country_code_lock?: string;
|
209
|
+
coupon_code?: string;
|
210
|
+
gift_card_code?: string;
|
211
|
+
gift_card_or_coupon_code?: string;
|
212
|
+
cart_url?: string;
|
213
|
+
return_url?: string;
|
214
|
+
terms_url?: string;
|
215
|
+
privacy_url?: string;
|
216
|
+
_archive?: boolean;
|
217
|
+
_unarchive?: boolean;
|
218
|
+
_place?: boolean;
|
219
|
+
_cancel?: boolean;
|
220
|
+
_approve?: boolean;
|
221
|
+
_approve_and_capture?: boolean;
|
222
|
+
_authorize?: boolean;
|
223
|
+
_authorization_amount_cents?: number;
|
224
|
+
_capture?: boolean;
|
225
|
+
_refund?: boolean;
|
226
|
+
_update_taxes?: boolean;
|
227
|
+
_billing_address_clone_id?: string;
|
228
|
+
_shipping_address_clone_id?: string;
|
229
|
+
_customer_payment_source_id?: string;
|
230
|
+
_shipping_address_same_as_billing?: boolean;
|
231
|
+
_billing_address_same_as_shipping?: boolean;
|
232
|
+
_save_payment_source_to_customer_wallet?: boolean;
|
233
|
+
_save_shipping_address_to_customer_address_book?: boolean;
|
234
|
+
_save_billing_address_to_customer_address_book?: boolean;
|
235
|
+
_refresh?: boolean;
|
236
|
+
market?: MarketRel;
|
237
|
+
customer?: CustomerRel;
|
238
|
+
shipping_address?: AddressRel;
|
239
|
+
billing_address?: AddressRel;
|
240
|
+
payment_method?: PaymentMethodRel;
|
241
|
+
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
242
|
+
}
|
243
|
+
declare class Orders extends ApiResource {
|
244
|
+
static readonly TYPE: 'orders';
|
245
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Order>>;
|
246
|
+
create(resource: OrderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
247
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
248
|
+
update(resource: OrderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
249
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
250
|
+
isOrder(resource: any): resource is Order;
|
251
|
+
relationship(id: string | ResourceId): OrderRel;
|
252
|
+
type(): string;
|
253
|
+
}
|
254
|
+
export default Orders;
|
255
|
+
export { Order, OrderCreate, OrderUpdate };
|
@@ -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 Orders extends resource_1.ApiResource {
|
9
|
+
// static readonly PATH = 'orders'
|
10
|
+
async list(params, options) {
|
11
|
+
return this.resources.list({ type: Orders.TYPE }, params, options);
|
12
|
+
}
|
13
|
+
async create(resource, params, options) {
|
14
|
+
return this.resources.create(Object.assign(Object.assign({}, resource), { type: Orders.TYPE }), params, options);
|
15
|
+
}
|
16
|
+
async retrieve(id, params, options) {
|
17
|
+
return this.resources.retrieve({ type: Orders.TYPE, id }, params, options);
|
18
|
+
}
|
19
|
+
async update(resource, params, options) {
|
20
|
+
return this.resources.update(Object.assign(Object.assign({}, resource), { type: Orders.TYPE }), params, options);
|
21
|
+
}
|
22
|
+
async delete(id, options) {
|
23
|
+
await this.resources.delete({ type: Orders.TYPE, id }, options);
|
24
|
+
}
|
25
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
26
|
+
isOrder(resource) {
|
27
|
+
return resource.type && (resource.type === Orders.TYPE);
|
28
|
+
}
|
29
|
+
/*
|
30
|
+
filter(): QueryBuilderRetrieve {
|
31
|
+
return new QueryBuilderRetrieve(Orders.TYPE)
|
32
|
+
}
|
33
|
+
*/
|
34
|
+
/*
|
35
|
+
filterList(): QueryBuilderList {
|
36
|
+
return new QueryBuilderList(Orders.TYPE)
|
37
|
+
}
|
38
|
+
*/
|
39
|
+
relationship(id) {
|
40
|
+
return (typeof id === 'string') ? { id, type: Orders.TYPE } : { id: id.id, type: Orders.TYPE };
|
41
|
+
}
|
42
|
+
type() {
|
43
|
+
return Orders.TYPE;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
Orders.TYPE = 'orders';
|
47
|
+
exports.default = Orders;
|
@@ -1,34 +1,34 @@
|
|
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 OrganizationRel = ResourceId & {
|
8
|
-
type: typeof Organizations.TYPE;
|
9
|
-
};
|
10
|
-
interface Organization extends Resource {
|
11
|
-
name?: string;
|
12
|
-
slug?: string;
|
13
|
-
domain?: string;
|
14
|
-
support_phone?: string;
|
15
|
-
support_email?: string;
|
16
|
-
logo_url?: string;
|
17
|
-
favicon_url?: string;
|
18
|
-
primary_color?: string;
|
19
|
-
contrast_color?: string;
|
20
|
-
gtm_id?: string;
|
21
|
-
gtm_id_test?: string;
|
22
|
-
discount_disabled?: boolean;
|
23
|
-
account_disabled?: boolean;
|
24
|
-
acceptance_disabled?: boolean;
|
25
|
-
}
|
26
|
-
declare class Organizations extends ApiResource {
|
27
|
-
static readonly TYPE: 'organization';
|
28
|
-
retrieve(params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Organization>;
|
29
|
-
isOrganization(resource: any): resource is Organization;
|
30
|
-
relationship(id: string | ResourceId): OrganizationRel;
|
31
|
-
type(): string;
|
32
|
-
}
|
33
|
-
export default Organizations;
|
34
|
-
export { Organization };
|
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 OrganizationRel = ResourceId & {
|
8
|
+
type: typeof Organizations.TYPE;
|
9
|
+
};
|
10
|
+
interface Organization extends Resource {
|
11
|
+
name?: string;
|
12
|
+
slug?: string;
|
13
|
+
domain?: string;
|
14
|
+
support_phone?: string;
|
15
|
+
support_email?: string;
|
16
|
+
logo_url?: string;
|
17
|
+
favicon_url?: string;
|
18
|
+
primary_color?: string;
|
19
|
+
contrast_color?: string;
|
20
|
+
gtm_id?: string;
|
21
|
+
gtm_id_test?: string;
|
22
|
+
discount_disabled?: boolean;
|
23
|
+
account_disabled?: boolean;
|
24
|
+
acceptance_disabled?: boolean;
|
25
|
+
}
|
26
|
+
declare class Organizations extends ApiResource {
|
27
|
+
static readonly TYPE: 'organization';
|
28
|
+
retrieve(params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Organization>;
|
29
|
+
isOrganization(resource: any): resource is Organization;
|
30
|
+
relationship(id: string | ResourceId): OrganizationRel;
|
31
|
+
type(): string;
|
32
|
+
}
|
33
|
+
export default Organizations;
|
34
|
+
export { Organization };
|
@@ -0,0 +1,35 @@
|
|
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 Organizations extends resource_1.ApiResource {
|
9
|
+
// static readonly PATH = 'organization'
|
10
|
+
async retrieve(params, options) {
|
11
|
+
return this.resources.singleton({ type: Organizations.TYPE }, params, options);
|
12
|
+
}
|
13
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
14
|
+
isOrganization(resource) {
|
15
|
+
return resource.type && (resource.type === Organizations.TYPE);
|
16
|
+
}
|
17
|
+
/*
|
18
|
+
filter(): QueryBuilderRetrieve {
|
19
|
+
return new QueryBuilderRetrieve(Organizations.TYPE)
|
20
|
+
}
|
21
|
+
*/
|
22
|
+
/*
|
23
|
+
filterList(): QueryBuilderList {
|
24
|
+
return new QueryBuilderList(Organizations.TYPE)
|
25
|
+
}
|
26
|
+
*/
|
27
|
+
relationship(id) {
|
28
|
+
return (typeof id === 'string') ? { id, type: Organizations.TYPE } : { id: id.id, type: Organizations.TYPE };
|
29
|
+
}
|
30
|
+
type() {
|
31
|
+
return Organizations.TYPE;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
Organizations.TYPE = 'organization';
|
35
|
+
exports.default = Organizations;
|