@commercelayer/sdk 2.3.13 → 2.5.0
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/cjs/api.d.ts +6 -4
- package/lib/cjs/api.js +1 -1
- package/lib/cjs/client.js +1 -1
- package/lib/cjs/commercelayer.d.ts +2 -0
- package/lib/cjs/commercelayer.js +1 -1
- package/lib/cjs/debug.d.ts +3 -0
- package/lib/cjs/debug.js +1 -0
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/jsonapi.js +1 -1
- package/lib/cjs/model.d.ts +5 -3
- package/lib/cjs/query.js +1 -1
- package/lib/cjs/resource.js +1 -1
- package/lib/cjs/resources/addresses.d.ts +2 -2
- package/lib/cjs/resources/adjustments.d.ts +2 -2
- package/lib/cjs/resources/adyen_gateways.d.ts +2 -2
- package/lib/cjs/resources/adyen_gateways.js +1 -1
- package/lib/cjs/resources/adyen_payments.d.ts +2 -3
- package/lib/cjs/resources/adyen_payments.js +1 -1
- package/lib/cjs/resources/application.d.ts +2 -2
- package/lib/cjs/resources/attachments.d.ts +2 -2
- package/lib/cjs/resources/authorizations.d.ts +2 -2
- package/lib/cjs/resources/avalara_accounts.d.ts +2 -2
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +2 -2
- package/lib/cjs/resources/bing_geocoders.d.ts +2 -2
- package/lib/cjs/resources/braintree_gateways.d.ts +2 -2
- package/lib/cjs/resources/braintree_gateways.js +1 -1
- package/lib/cjs/resources/braintree_payments.d.ts +2 -2
- package/lib/cjs/resources/braintree_payments.js +1 -1
- package/lib/cjs/resources/bundles.d.ts +7 -2
- package/lib/cjs/resources/captures.d.ts +2 -2
- package/lib/cjs/resources/carrier_accounts.d.ts +2 -2
- package/lib/cjs/resources/checkout_com_gateways.d.ts +2 -2
- package/lib/cjs/resources/checkout_com_gateways.js +1 -1
- package/lib/cjs/resources/checkout_com_payments.d.ts +2 -3
- package/lib/cjs/resources/checkout_com_payments.js +1 -1
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +2 -2
- package/lib/cjs/resources/coupon_recipients.d.ts +2 -2
- package/lib/cjs/resources/coupons.d.ts +5 -2
- package/lib/cjs/resources/customer_addresses.d.ts +2 -2
- package/lib/cjs/resources/customer_groups.d.ts +2 -2
- package/lib/cjs/resources/customer_password_resets.d.ts +2 -2
- package/lib/cjs/resources/customer_payment_sources.d.ts +9 -5
- package/lib/cjs/resources/customer_subscriptions.d.ts +2 -2
- package/lib/cjs/resources/customers.d.ts +2 -2
- package/lib/cjs/resources/delivery_lead_times.d.ts +2 -2
- package/lib/cjs/resources/delivery_lead_times.js +1 -1
- package/lib/cjs/resources/event_callbacks.d.ts +2 -2
- package/lib/cjs/resources/external_gateways.d.ts +5 -2
- package/lib/cjs/resources/external_gateways.js +1 -1
- package/lib/cjs/resources/external_payments.d.ts +4 -2
- package/lib/cjs/resources/external_payments.js +1 -1
- package/lib/cjs/resources/external_promotions.d.ts +5 -2
- package/lib/cjs/resources/external_promotions.js +1 -1
- package/lib/cjs/resources/external_tax_calculators.d.ts +2 -2
- package/lib/cjs/resources/external_tax_calculators.js +1 -1
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +5 -2
- package/lib/cjs/resources/fixed_amount_promotions.js +1 -1
- package/lib/cjs/resources/fixed_price_promotions.d.ts +5 -2
- package/lib/cjs/resources/free_gift_promotions.d.ts +5 -2
- package/lib/cjs/resources/free_gift_promotions.js +1 -1
- package/lib/cjs/resources/free_shipping_promotions.d.ts +5 -2
- package/lib/cjs/resources/geocoders.d.ts +4 -3
- package/lib/cjs/resources/geocoders.js +1 -1
- package/lib/cjs/resources/gift_card_recipients.d.ts +2 -2
- package/lib/cjs/resources/gift_card_recipients.js +1 -1
- package/lib/cjs/resources/gift_cards.d.ts +3 -3
- package/lib/cjs/resources/google_geocoders.d.ts +2 -2
- package/lib/cjs/resources/imports.d.ts +2 -2
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/cjs/resources/in_stock_subscriptions.js +1 -1
- package/lib/cjs/resources/inventory_models.d.ts +2 -2
- package/lib/cjs/resources/inventory_return_locations.d.ts +2 -2
- package/lib/cjs/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/cjs/resources/klarna_gateways.d.ts +46 -0
- package/lib/cjs/resources/klarna_gateways.js +1 -0
- package/lib/cjs/resources/klarna_payments.d.ts +43 -0
- package/lib/cjs/resources/klarna_payments.js +1 -0
- package/lib/cjs/resources/line_item_options.d.ts +2 -2
- package/lib/cjs/resources/line_item_options.js +1 -1
- package/lib/cjs/resources/line_items.d.ts +2 -2
- package/lib/cjs/resources/line_items.js +1 -1
- package/lib/cjs/resources/manual_gateways.d.ts +2 -2
- package/lib/cjs/resources/manual_gateways.js +1 -1
- package/lib/cjs/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/cjs/resources/markets.d.ts +2 -2
- package/lib/cjs/resources/merchants.d.ts +2 -2
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +2 -2
- package/lib/cjs/resources/order_amount_promotion_rules.js +1 -1
- package/lib/cjs/resources/order_copies.d.ts +2 -2
- package/lib/cjs/resources/order_subscriptions.d.ts +2 -2
- package/lib/cjs/resources/order_validation_rules.d.ts +4 -3
- package/lib/cjs/resources/order_validation_rules.js +1 -1
- package/lib/cjs/resources/orders.d.ts +9 -5
- package/lib/cjs/resources/organization.d.ts +2 -2
- package/lib/cjs/resources/organization.js +1 -1
- package/lib/cjs/resources/packages.d.ts +2 -2
- package/lib/cjs/resources/parcel_line_items.d.ts +2 -2
- package/lib/cjs/resources/parcels.d.ts +2 -2
- package/lib/cjs/resources/payment_gateways.d.ts +4 -13
- package/lib/cjs/resources/payment_gateways.js +1 -1
- package/lib/cjs/resources/payment_methods.d.ts +8 -2
- package/lib/cjs/resources/payment_methods.js +1 -1
- package/lib/cjs/resources/paypal_gateways.d.ts +2 -2
- package/lib/cjs/resources/paypal_gateways.js +1 -1
- package/lib/cjs/resources/paypal_payments.d.ts +2 -2
- package/lib/cjs/resources/paypal_payments.js +1 -1
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +5 -2
- package/lib/cjs/resources/percentage_discount_promotions.js +1 -1
- package/lib/cjs/resources/price_lists.d.ts +2 -2
- package/lib/cjs/resources/prices.d.ts +2 -2
- package/lib/cjs/resources/promotion_rules.d.ts +4 -3
- package/lib/cjs/resources/promotion_rules.js +1 -1
- package/lib/cjs/resources/promotions.d.ts +5 -3
- package/lib/cjs/resources/promotions.js +1 -1
- package/lib/cjs/resources/refunds.d.ts +2 -2
- package/lib/cjs/resources/return_line_items.d.ts +2 -2
- package/lib/cjs/resources/return_line_items.js +1 -1
- package/lib/cjs/resources/returns.d.ts +2 -2
- package/lib/cjs/resources/shipments.d.ts +2 -2
- package/lib/cjs/resources/shipping_categories.d.ts +2 -2
- package/lib/cjs/resources/shipping_methods.d.ts +5 -3
- package/lib/cjs/resources/shipping_methods.js +1 -1
- package/lib/cjs/resources/shipping_zones.d.ts +2 -2
- package/lib/cjs/resources/sku_list_items.d.ts +7 -4
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +2 -2
- package/lib/cjs/resources/sku_lists.d.ts +2 -2
- package/lib/cjs/resources/sku_lists.js +1 -1
- package/lib/cjs/resources/sku_options.d.ts +5 -2
- package/lib/cjs/resources/sku_options.js +1 -1
- package/lib/cjs/resources/skus.d.ts +2 -2
- package/lib/cjs/resources/stock_items.d.ts +2 -2
- package/lib/cjs/resources/stock_line_items.d.ts +2 -2
- package/lib/cjs/resources/stock_locations.d.ts +2 -2
- package/lib/cjs/resources/stock_transfers.d.ts +2 -2
- package/lib/cjs/resources/stripe_gateways.d.ts +2 -2
- package/lib/cjs/resources/stripe_gateways.js +1 -1
- package/lib/cjs/resources/stripe_payments.d.ts +2 -2
- package/lib/cjs/resources/stripe_payments.js +1 -1
- package/lib/cjs/resources/tax_calculators.d.ts +4 -3
- package/lib/cjs/resources/tax_calculators.js +1 -1
- package/lib/cjs/resources/tax_categories.d.ts +2 -2
- package/lib/cjs/resources/tax_rules.d.ts +2 -2
- package/lib/cjs/resources/taxjar_accounts.d.ts +2 -2
- package/lib/cjs/resources/transactions.d.ts +4 -3
- package/lib/cjs/resources/transactions.js +1 -1
- package/lib/cjs/resources/voids.d.ts +2 -2
- package/lib/cjs/resources/webhooks.d.ts +2 -2
- package/lib/cjs/resources/wire_transfers.d.ts +2 -2
- package/lib/cjs/static.js +1 -1
- package/lib/esm/api.d.ts +6 -4
- package/lib/esm/api.js +1 -1
- package/lib/esm/client.js +1 -1
- package/lib/esm/commercelayer.d.ts +2 -0
- package/lib/esm/commercelayer.js +1 -1
- package/lib/esm/common.js +1 -1
- package/lib/esm/debug.d.ts +3 -0
- package/lib/esm/debug.js +1 -0
- package/lib/esm/error.js +1 -1
- package/lib/esm/jsonapi.js +1 -1
- package/lib/esm/model.d.ts +5 -3
- package/lib/esm/query.js +1 -1
- package/lib/esm/resource.js +1 -1
- package/lib/esm/resources/addresses.d.ts +2 -2
- package/lib/esm/resources/addresses.js +1 -1
- package/lib/esm/resources/adjustments.d.ts +2 -2
- package/lib/esm/resources/adjustments.js +1 -1
- package/lib/esm/resources/adyen_gateways.d.ts +2 -2
- package/lib/esm/resources/adyen_gateways.js +1 -1
- package/lib/esm/resources/adyen_payments.d.ts +2 -3
- package/lib/esm/resources/adyen_payments.js +1 -1
- package/lib/esm/resources/application.d.ts +2 -2
- package/lib/esm/resources/application.js +1 -1
- package/lib/esm/resources/attachments.d.ts +2 -2
- package/lib/esm/resources/attachments.js +1 -1
- package/lib/esm/resources/authorizations.d.ts +2 -2
- package/lib/esm/resources/authorizations.js +1 -1
- package/lib/esm/resources/avalara_accounts.d.ts +2 -2
- package/lib/esm/resources/avalara_accounts.js +1 -1
- package/lib/esm/resources/billing_info_validation_rules.d.ts +2 -2
- package/lib/esm/resources/billing_info_validation_rules.js +1 -1
- package/lib/esm/resources/bing_geocoders.d.ts +2 -2
- package/lib/esm/resources/bing_geocoders.js +1 -1
- package/lib/esm/resources/braintree_gateways.d.ts +2 -2
- package/lib/esm/resources/braintree_gateways.js +1 -1
- package/lib/esm/resources/braintree_payments.d.ts +2 -2
- package/lib/esm/resources/braintree_payments.js +1 -1
- package/lib/esm/resources/bundles.d.ts +7 -2
- package/lib/esm/resources/bundles.js +1 -1
- package/lib/esm/resources/captures.d.ts +2 -2
- package/lib/esm/resources/captures.js +1 -1
- package/lib/esm/resources/carrier_accounts.d.ts +2 -2
- package/lib/esm/resources/carrier_accounts.js +1 -1
- package/lib/esm/resources/checkout_com_gateways.d.ts +2 -2
- package/lib/esm/resources/checkout_com_gateways.js +1 -1
- package/lib/esm/resources/checkout_com_payments.d.ts +2 -3
- package/lib/esm/resources/checkout_com_payments.js +1 -1
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +2 -2
- package/lib/esm/resources/coupon_codes_promotion_rules.js +1 -1
- package/lib/esm/resources/coupon_recipients.d.ts +2 -2
- package/lib/esm/resources/coupon_recipients.js +1 -1
- package/lib/esm/resources/coupons.d.ts +5 -2
- package/lib/esm/resources/coupons.js +1 -1
- package/lib/esm/resources/customer_addresses.d.ts +2 -2
- package/lib/esm/resources/customer_addresses.js +1 -1
- package/lib/esm/resources/customer_groups.d.ts +2 -2
- package/lib/esm/resources/customer_groups.js +1 -1
- package/lib/esm/resources/customer_password_resets.d.ts +2 -2
- package/lib/esm/resources/customer_password_resets.js +1 -1
- package/lib/esm/resources/customer_payment_sources.d.ts +9 -5
- package/lib/esm/resources/customer_payment_sources.js +1 -1
- package/lib/esm/resources/customer_subscriptions.d.ts +2 -2
- package/lib/esm/resources/customer_subscriptions.js +1 -1
- package/lib/esm/resources/customers.d.ts +2 -2
- package/lib/esm/resources/customers.js +1 -1
- package/lib/esm/resources/delivery_lead_times.d.ts +2 -2
- package/lib/esm/resources/delivery_lead_times.js +1 -1
- package/lib/esm/resources/event_callbacks.d.ts +2 -2
- package/lib/esm/resources/event_callbacks.js +1 -1
- package/lib/esm/resources/external_gateways.d.ts +5 -2
- package/lib/esm/resources/external_payments.d.ts +4 -2
- package/lib/esm/resources/external_promotions.d.ts +5 -2
- package/lib/esm/resources/external_promotions.js +1 -1
- package/lib/esm/resources/external_tax_calculators.d.ts +2 -2
- package/lib/esm/resources/external_tax_calculators.js +1 -1
- package/lib/esm/resources/fixed_amount_promotions.d.ts +5 -2
- package/lib/esm/resources/fixed_amount_promotions.js +1 -1
- package/lib/esm/resources/fixed_price_promotions.d.ts +5 -2
- package/lib/esm/resources/fixed_price_promotions.js +1 -1
- package/lib/esm/resources/free_gift_promotions.d.ts +5 -2
- package/lib/esm/resources/free_gift_promotions.js +1 -1
- package/lib/esm/resources/free_shipping_promotions.d.ts +5 -2
- package/lib/esm/resources/free_shipping_promotions.js +1 -1
- package/lib/esm/resources/geocoders.d.ts +4 -3
- package/lib/esm/resources/geocoders.js +1 -1
- package/lib/esm/resources/gift_card_recipients.d.ts +2 -2
- package/lib/esm/resources/gift_card_recipients.js +1 -1
- package/lib/esm/resources/gift_cards.d.ts +3 -3
- package/lib/esm/resources/gift_cards.js +1 -1
- package/lib/esm/resources/google_geocoders.d.ts +2 -2
- package/lib/esm/resources/google_geocoders.js +1 -1
- package/lib/esm/resources/imports.d.ts +2 -2
- package/lib/esm/resources/imports.js +1 -1
- package/lib/esm/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/esm/resources/in_stock_subscriptions.js +1 -1
- package/lib/esm/resources/inventory_models.d.ts +2 -2
- package/lib/esm/resources/inventory_models.js +1 -1
- package/lib/esm/resources/inventory_return_locations.d.ts +2 -2
- package/lib/esm/resources/inventory_return_locations.js +1 -1
- package/lib/esm/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/esm/resources/inventory_stock_locations.js +1 -1
- package/lib/esm/resources/klarna_gateways.d.ts +46 -0
- package/lib/esm/resources/klarna_gateways.js +1 -0
- package/lib/esm/resources/klarna_payments.d.ts +43 -0
- package/lib/esm/resources/klarna_payments.js +1 -0
- package/lib/esm/resources/line_item_options.d.ts +2 -2
- package/lib/esm/resources/line_item_options.js +1 -1
- package/lib/esm/resources/line_items.d.ts +2 -2
- package/lib/esm/resources/line_items.js +1 -1
- package/lib/esm/resources/manual_gateways.d.ts +2 -2
- package/lib/esm/resources/manual_gateways.js +1 -1
- package/lib/esm/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/esm/resources/manual_tax_calculators.js +1 -1
- package/lib/esm/resources/markets.d.ts +2 -2
- package/lib/esm/resources/markets.js +1 -1
- package/lib/esm/resources/merchants.d.ts +2 -2
- package/lib/esm/resources/merchants.js +1 -1
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +2 -2
- package/lib/esm/resources/order_amount_promotion_rules.js +1 -1
- package/lib/esm/resources/order_copies.d.ts +2 -2
- package/lib/esm/resources/order_copies.js +1 -1
- package/lib/esm/resources/order_subscriptions.d.ts +2 -2
- package/lib/esm/resources/order_subscriptions.js +1 -1
- package/lib/esm/resources/order_validation_rules.d.ts +4 -3
- package/lib/esm/resources/order_validation_rules.js +1 -1
- package/lib/esm/resources/orders.d.ts +9 -5
- package/lib/esm/resources/orders.js +1 -1
- package/lib/esm/resources/organization.d.ts +2 -2
- package/lib/esm/resources/organization.js +1 -1
- package/lib/esm/resources/packages.d.ts +2 -2
- package/lib/esm/resources/packages.js +1 -1
- package/lib/esm/resources/parcel_line_items.d.ts +2 -2
- package/lib/esm/resources/parcel_line_items.js +1 -1
- package/lib/esm/resources/parcels.d.ts +2 -2
- package/lib/esm/resources/parcels.js +1 -1
- package/lib/esm/resources/payment_gateways.d.ts +4 -13
- package/lib/esm/resources/payment_gateways.js +1 -1
- package/lib/esm/resources/payment_methods.d.ts +8 -2
- package/lib/esm/resources/payment_methods.js +1 -1
- package/lib/esm/resources/paypal_gateways.d.ts +2 -2
- package/lib/esm/resources/paypal_gateways.js +1 -1
- package/lib/esm/resources/paypal_payments.d.ts +2 -2
- package/lib/esm/resources/paypal_payments.js +1 -1
- package/lib/esm/resources/percentage_discount_promotions.d.ts +5 -2
- package/lib/esm/resources/percentage_discount_promotions.js +1 -1
- package/lib/esm/resources/price_lists.d.ts +2 -2
- package/lib/esm/resources/price_lists.js +1 -1
- package/lib/esm/resources/prices.d.ts +2 -2
- package/lib/esm/resources/prices.js +1 -1
- package/lib/esm/resources/promotion_rules.d.ts +4 -3
- package/lib/esm/resources/promotion_rules.js +1 -1
- package/lib/esm/resources/promotions.d.ts +5 -3
- package/lib/esm/resources/promotions.js +1 -1
- package/lib/esm/resources/refunds.d.ts +2 -2
- package/lib/esm/resources/refunds.js +1 -1
- package/lib/esm/resources/return_line_items.d.ts +2 -2
- package/lib/esm/resources/return_line_items.js +1 -1
- package/lib/esm/resources/returns.d.ts +2 -2
- package/lib/esm/resources/returns.js +1 -1
- package/lib/esm/resources/shipments.d.ts +2 -2
- package/lib/esm/resources/shipments.js +1 -1
- package/lib/esm/resources/shipping_categories.d.ts +2 -2
- package/lib/esm/resources/shipping_categories.js +1 -1
- package/lib/esm/resources/shipping_methods.d.ts +5 -3
- package/lib/esm/resources/shipping_methods.js +1 -1
- package/lib/esm/resources/shipping_zones.d.ts +2 -2
- package/lib/esm/resources/shipping_zones.js +1 -1
- package/lib/esm/resources/sku_list_items.d.ts +7 -4
- package/lib/esm/resources/sku_list_items.js +1 -1
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +2 -2
- package/lib/esm/resources/sku_list_promotion_rules.js +1 -1
- package/lib/esm/resources/sku_lists.d.ts +2 -2
- package/lib/esm/resources/sku_lists.js +1 -1
- package/lib/esm/resources/sku_options.d.ts +5 -2
- package/lib/esm/resources/sku_options.js +1 -1
- package/lib/esm/resources/skus.d.ts +2 -2
- package/lib/esm/resources/skus.js +1 -1
- package/lib/esm/resources/stock_items.d.ts +2 -2
- package/lib/esm/resources/stock_items.js +1 -1
- package/lib/esm/resources/stock_line_items.d.ts +2 -2
- package/lib/esm/resources/stock_line_items.js +1 -1
- package/lib/esm/resources/stock_locations.d.ts +2 -2
- package/lib/esm/resources/stock_locations.js +1 -1
- package/lib/esm/resources/stock_transfers.d.ts +2 -2
- package/lib/esm/resources/stock_transfers.js +1 -1
- package/lib/esm/resources/stripe_gateways.d.ts +2 -2
- package/lib/esm/resources/stripe_gateways.js +1 -1
- package/lib/esm/resources/stripe_payments.d.ts +2 -2
- package/lib/esm/resources/stripe_payments.js +1 -1
- package/lib/esm/resources/tax_calculators.d.ts +4 -3
- package/lib/esm/resources/tax_calculators.js +1 -1
- package/lib/esm/resources/tax_categories.d.ts +2 -2
- package/lib/esm/resources/tax_categories.js +1 -1
- package/lib/esm/resources/tax_rules.d.ts +2 -2
- package/lib/esm/resources/tax_rules.js +1 -1
- package/lib/esm/resources/taxjar_accounts.d.ts +2 -2
- package/lib/esm/resources/taxjar_accounts.js +1 -1
- package/lib/esm/resources/transactions.d.ts +4 -3
- package/lib/esm/resources/transactions.js +1 -1
- package/lib/esm/resources/voids.d.ts +2 -2
- package/lib/esm/resources/voids.js +1 -1
- package/lib/esm/resources/webhooks.d.ts +2 -2
- package/lib/esm/resources/webhooks.js +1 -1
- package/lib/esm/resources/wire_transfers.d.ts +2 -2
- package/lib/esm/resources/wire_transfers.js +1 -1
- package/lib/esm/static.js +1 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -20,6 +20,7 @@ declare type SkuListRel = ResourceId & {
|
|
20
20
|
interface Bundle extends Resource {
|
21
21
|
code?: string;
|
22
22
|
name?: string;
|
23
|
+
currency_code?: string;
|
23
24
|
description?: string;
|
24
25
|
image_url?: string;
|
25
26
|
price_amount_cents?: number;
|
@@ -37,10 +38,12 @@ interface Bundle extends Resource {
|
|
37
38
|
interface BundleCreate extends ResourceCreate {
|
38
39
|
code: string;
|
39
40
|
name: string;
|
41
|
+
currency_code?: string;
|
40
42
|
description?: string;
|
41
43
|
image_url?: string;
|
42
44
|
price_amount_cents: number;
|
43
45
|
compare_at_amount_cents: number;
|
46
|
+
_compute_price_amount?: boolean;
|
44
47
|
_compute_compare_at_amount?: boolean;
|
45
48
|
market?: MarketRel;
|
46
49
|
sku_list?: SkuListRel;
|
@@ -48,10 +51,12 @@ interface BundleCreate extends ResourceCreate {
|
|
48
51
|
interface BundleUpdate extends ResourceUpdate {
|
49
52
|
code?: string;
|
50
53
|
name?: string;
|
54
|
+
currency_code?: string;
|
51
55
|
description?: string;
|
52
56
|
image_url?: string;
|
53
57
|
price_amount_cents?: number;
|
54
58
|
compare_at_amount_cents?: number;
|
59
|
+
_compute_price_amount?: boolean;
|
55
60
|
_compute_compare_at_amount?: boolean;
|
56
61
|
}
|
57
62
|
declare class Bundles extends ApiResource {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CheckoutComGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:CheckoutComGateways.TYPE},e,r)}async create(e,r,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CheckoutComGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:CheckoutComGateways.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:CheckoutComGateways.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:CheckoutComGateways.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:CheckoutComGateways.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:CheckoutComGateways.TYPE,id:e},r)}isCheckoutComGateway(e){return e.type&&e.type===CheckoutComGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:CheckoutComGateways.TYPE}:{id:e.id,type:CheckoutComGateways.TYPE}}type(){return CheckoutComGateways.TYPE}}CheckoutComGateways.TYPE="checkout_com_gateways",exports.default=CheckoutComGateways;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -33,7 +33,6 @@ interface CheckoutComPaymentUpdate extends ResourceUpdate {
|
|
33
33
|
payment_type?: string;
|
34
34
|
token?: string;
|
35
35
|
session_id?: string;
|
36
|
-
_authorize?: boolean;
|
37
36
|
_details?: boolean;
|
38
37
|
_refresh?: boolean;
|
39
38
|
order?: OrderRel;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CheckoutComPayments extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:CheckoutComPayments.TYPE},e,r)}async create(e,r,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class CheckoutComPayments extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:CheckoutComPayments.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:CheckoutComPayments.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:CheckoutComPayments.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:CheckoutComPayments.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:CheckoutComPayments.TYPE,id:e},r)}isCheckoutComPayment(e){return e.type&&e.type===CheckoutComPayments.TYPE}relationship(e){return typeof e=="string"?{id:e,type:CheckoutComPayments.TYPE}:{id:e.id,type:CheckoutComPayments.TYPE}}type(){return CheckoutComPayments.TYPE}}CheckoutComPayments.TYPE="checkout_com_payments",exports.default=CheckoutComPayments;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -13,6 +13,7 @@ declare type CouponCodesPromotionRuleRel = ResourceId & {
|
|
13
13
|
};
|
14
14
|
interface Coupon extends Resource {
|
15
15
|
code?: string;
|
16
|
+
customer_single_use?: boolean;
|
16
17
|
usage_limit?: number;
|
17
18
|
usage_count?: number;
|
18
19
|
recipient_email?: string;
|
@@ -20,12 +21,14 @@ interface Coupon extends Resource {
|
|
20
21
|
}
|
21
22
|
interface CouponCreate extends ResourceCreate {
|
22
23
|
code: string;
|
24
|
+
customer_single_use?: boolean;
|
23
25
|
usage_limit: number;
|
24
26
|
recipient_email?: string;
|
25
27
|
promotion_rule?: CouponCodesPromotionRuleRel;
|
26
28
|
}
|
27
29
|
interface CouponUpdate extends ResourceUpdate {
|
28
30
|
code?: string;
|
31
|
+
customer_single_use?: boolean;
|
29
32
|
usage_limit?: number;
|
30
33
|
recipient_email?: string;
|
31
34
|
promotion_rule?: CouponCodesPromotionRuleRel;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -9,6 +9,7 @@ import { AdyenPayment } from './adyen_payments';
|
|
9
9
|
import { BraintreePayment } from './braintree_payments';
|
10
10
|
import { CheckoutComPayment } from './checkout_com_payments';
|
11
11
|
import { ExternalPayment } from './external_payments';
|
12
|
+
import { KlarnaPayment } from './klarna_payments';
|
12
13
|
import { PaypalPayment } from './paypal_payments';
|
13
14
|
import { StripePayment } from './stripe_payments';
|
14
15
|
import { WireTransfer } from './wire_transfers';
|
@@ -30,6 +31,9 @@ declare type CheckoutComPaymentRel = ResourceId & {
|
|
30
31
|
declare type ExternalPaymentRel = ResourceId & {
|
31
32
|
type: 'external_payments';
|
32
33
|
};
|
34
|
+
declare type KlarnaPaymentRel = ResourceId & {
|
35
|
+
type: 'klarna_payments';
|
36
|
+
};
|
33
37
|
declare type PaypalPaymentRel = ResourceId & {
|
34
38
|
type: 'paypal_payments';
|
35
39
|
};
|
@@ -44,15 +48,15 @@ interface CustomerPaymentSource extends Resource {
|
|
44
48
|
customer_token?: string;
|
45
49
|
payment_source_token?: string;
|
46
50
|
customer?: Customer;
|
47
|
-
payment_source?: AdyenPayment | BraintreePayment | CheckoutComPayment | ExternalPayment | PaypalPayment | StripePayment | WireTransfer;
|
51
|
+
payment_source?: AdyenPayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | StripePayment | WireTransfer;
|
48
52
|
}
|
49
53
|
interface CustomerPaymentSourceCreate extends ResourceCreate {
|
50
54
|
customer?: CustomerRel;
|
51
|
-
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
55
|
+
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
52
56
|
}
|
53
57
|
interface CustomerPaymentSourceUpdate extends ResourceUpdate {
|
54
58
|
customer?: CustomerRel;
|
55
|
-
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
59
|
+
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
56
60
|
}
|
57
61
|
declare class CustomerPaymentSources extends ApiResource {
|
58
62
|
static readonly TYPE: 'customer_payment_sources';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class DeliveryLeadTimes extends resource_1.ApiResource{async list(e
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class DeliveryLeadTimes extends resource_1.ApiResource{async list(t,e){return this.resources.list({type:DeliveryLeadTimes.TYPE},t,e)}async create(t,e,r){return this.resources.create(Object.assign(Object.assign({},t),{type:DeliveryLeadTimes.TYPE}),e,r)}async retrieve(t,e,r){return this.resources.retrieve({type:DeliveryLeadTimes.TYPE,id:t},e,r)}async update(t,e,r){return this.resources.update(Object.assign(Object.assign({},t),{type:DeliveryLeadTimes.TYPE}),e,r)}async delete(t,e){await this.resources.delete({type:DeliveryLeadTimes.TYPE,id:t},e)}isDeliveryLeadTime(t){return t.type&&t.type===DeliveryLeadTimes.TYPE}relationship(t){return typeof t=="string"?{id:t,type:DeliveryLeadTimes.TYPE}:{id:t.id,type:DeliveryLeadTimes.TYPE}}type(){return DeliveryLeadTimes.TYPE}}DeliveryLeadTimes.TYPE="delivery_lead_times",exports.default=DeliveryLeadTimes;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -16,6 +16,7 @@ interface ExternalGateway extends Resource {
|
|
16
16
|
capture_url?: string;
|
17
17
|
void_url?: string;
|
18
18
|
refund_url?: string;
|
19
|
+
token_url?: string;
|
19
20
|
payment_methods?: PaymentMethod[];
|
20
21
|
external_payments?: ExternalPayment[];
|
21
22
|
}
|
@@ -25,6 +26,7 @@ interface ExternalGatewayCreate extends ResourceCreate {
|
|
25
26
|
capture_url?: string;
|
26
27
|
void_url?: string;
|
27
28
|
refund_url?: string;
|
29
|
+
token_url?: string;
|
28
30
|
}
|
29
31
|
interface ExternalGatewayUpdate extends ResourceUpdate {
|
30
32
|
name?: string;
|
@@ -32,6 +34,7 @@ interface ExternalGatewayUpdate extends ResourceUpdate {
|
|
32
34
|
capture_url?: string;
|
33
35
|
void_url?: string;
|
34
36
|
refund_url?: string;
|
37
|
+
token_url?: string;
|
35
38
|
}
|
36
39
|
declare class ExternalGateways extends ApiResource {
|
37
40
|
static readonly TYPE: 'external_gateways';
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ExternalGateways extends resource_1.ApiResource{async list(e,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ExternalGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ExternalGateways.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalGateways.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ExternalGateways.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalGateways.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ExternalGateways.TYPE,id:e},t)}isExternalGateway(e){return e.type&&e.type===ExternalGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:ExternalGateways.TYPE}:{id:e.id,type:ExternalGateways.TYPE}}type(){return ExternalGateways.TYPE}}ExternalGateways.TYPE="external_gateways",exports.default=ExternalGateways;
|
@@ -1,11 +1,12 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
7
|
import { Order } from './orders';
|
8
8
|
import { PaymentGateway } from './payment_gateways';
|
9
|
+
import { CustomerPaymentSource } from './customer_payment_sources';
|
9
10
|
declare type ExternalPaymentRel = ResourceId & {
|
10
11
|
type: typeof ExternalPayments.TYPE;
|
11
12
|
};
|
@@ -17,6 +18,7 @@ interface ExternalPayment extends Resource {
|
|
17
18
|
options?: object;
|
18
19
|
order?: Order;
|
19
20
|
payment_gateway?: PaymentGateway;
|
21
|
+
wallet?: CustomerPaymentSource;
|
20
22
|
}
|
21
23
|
interface ExternalPaymentCreate extends ResourceCreate {
|
22
24
|
payment_source_token: string;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ExternalPayments extends resource_1.ApiResource{async list(e,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ExternalPayments extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ExternalPayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalPayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ExternalPayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalPayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ExternalPayments.TYPE,id:e},t)}isExternalPayment(e){return e.type&&e.type===ExternalPayments.TYPE}relationship(e){return typeof e=="string"?{id:e,type:ExternalPayments.TYPE}:{id:e.id,type:ExternalPayments.TYPE}}type(){return ExternalPayments.TYPE}}ExternalPayments.TYPE="external_payments",exports.default=ExternalPayments;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -30,6 +30,7 @@ declare type CouponCodesPromotionRuleRel = ResourceId & {
|
|
30
30
|
};
|
31
31
|
interface ExternalPromotion extends Resource {
|
32
32
|
name?: string;
|
33
|
+
currency_code?: string;
|
33
34
|
starts_at?: string;
|
34
35
|
expires_at?: string;
|
35
36
|
total_usage_limit?: number;
|
@@ -45,6 +46,7 @@ interface ExternalPromotion extends Resource {
|
|
45
46
|
}
|
46
47
|
interface ExternalPromotionCreate extends ResourceCreate {
|
47
48
|
name: string;
|
49
|
+
currency_code?: string;
|
48
50
|
starts_at: string;
|
49
51
|
expires_at: string;
|
50
52
|
total_usage_limit: number;
|
@@ -57,6 +59,7 @@ interface ExternalPromotionCreate extends ResourceCreate {
|
|
57
59
|
}
|
58
60
|
interface ExternalPromotionUpdate extends ResourceUpdate {
|
59
61
|
name?: string;
|
62
|
+
currency_code?: string;
|
60
63
|
starts_at?: string;
|
61
64
|
expires_at?: string;
|
62
65
|
total_usage_limit?: number;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ExternalPromotions extends resource_1.ApiResource{async list(e,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ExternalPromotions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ExternalPromotions.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalPromotions.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:ExternalPromotions.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalPromotions.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:ExternalPromotions.TYPE,id:e},t)}isExternalPromotion(e){return e.type&&e.type===ExternalPromotions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:ExternalPromotions.TYPE}:{id:e.id,type:ExternalPromotions.TYPE}}type(){return ExternalPromotions.TYPE}}ExternalPromotions.TYPE="external_promotions",exports.default=ExternalPromotions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ExternalTaxCalculators extends resource_1.ApiResource{async list(e,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ExternalTaxCalculators extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ExternalTaxCalculators.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalTaxCalculators.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:ExternalTaxCalculators.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalTaxCalculators.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:ExternalTaxCalculators.TYPE,id:e},t)}isExternalTaxCalculator(e){return e.type&&e.type===ExternalTaxCalculators.TYPE}relationship(e){return typeof e=="string"?{id:e,type:ExternalTaxCalculators.TYPE}:{id:e.id,type:ExternalTaxCalculators.TYPE}}type(){return ExternalTaxCalculators.TYPE}}ExternalTaxCalculators.TYPE="external_tax_calculators",exports.default=ExternalTaxCalculators;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -30,6 +30,7 @@ declare type CouponCodesPromotionRuleRel = ResourceId & {
|
|
30
30
|
};
|
31
31
|
interface FixedAmountPromotion extends Resource {
|
32
32
|
name?: string;
|
33
|
+
currency_code?: string;
|
33
34
|
starts_at?: string;
|
34
35
|
expires_at?: string;
|
35
36
|
total_usage_limit?: number;
|
@@ -47,6 +48,7 @@ interface FixedAmountPromotion extends Resource {
|
|
47
48
|
}
|
48
49
|
interface FixedAmountPromotionCreate extends ResourceCreate {
|
49
50
|
name: string;
|
51
|
+
currency_code?: string;
|
50
52
|
starts_at: string;
|
51
53
|
expires_at: string;
|
52
54
|
total_usage_limit: number;
|
@@ -59,6 +61,7 @@ interface FixedAmountPromotionCreate extends ResourceCreate {
|
|
59
61
|
}
|
60
62
|
interface FixedAmountPromotionUpdate extends ResourceUpdate {
|
61
63
|
name?: string;
|
64
|
+
currency_code?: string;
|
62
65
|
starts_at?: string;
|
63
66
|
expires_at?: string;
|
64
67
|
total_usage_limit?: number;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class FixedAmountPromotions extends resource_1.ApiResource{async list(e,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class FixedAmountPromotions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:FixedAmountPromotions.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:FixedAmountPromotions.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:FixedAmountPromotions.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:FixedAmountPromotions.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:FixedAmountPromotions.TYPE,id:e},t)}isFixedAmountPromotion(e){return e.type&&e.type===FixedAmountPromotions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:FixedAmountPromotions.TYPE}:{id:e.id,type:FixedAmountPromotions.TYPE}}type(){return FixedAmountPromotions.TYPE}}FixedAmountPromotions.TYPE="fixed_amount_promotions",exports.default=FixedAmountPromotions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -35,6 +35,7 @@ declare type SkuListRel = ResourceId & {
|
|
35
35
|
};
|
36
36
|
interface FixedPricePromotion extends Resource {
|
37
37
|
name?: string;
|
38
|
+
currency_code?: string;
|
38
39
|
starts_at?: string;
|
39
40
|
expires_at?: string;
|
40
41
|
total_usage_limit?: number;
|
@@ -54,6 +55,7 @@ interface FixedPricePromotion extends Resource {
|
|
54
55
|
}
|
55
56
|
interface FixedPricePromotionCreate extends ResourceCreate {
|
56
57
|
name: string;
|
58
|
+
currency_code?: string;
|
57
59
|
starts_at: string;
|
58
60
|
expires_at: string;
|
59
61
|
total_usage_limit: number;
|
@@ -67,6 +69,7 @@ interface FixedPricePromotionCreate extends ResourceCreate {
|
|
67
69
|
}
|
68
70
|
interface FixedPricePromotionUpdate extends ResourceUpdate {
|
69
71
|
name?: string;
|
72
|
+
currency_code?: string;
|
70
73
|
starts_at?: string;
|
71
74
|
expires_at?: string;
|
72
75
|
total_usage_limit?: number;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -35,6 +35,7 @@ declare type SkuListRel = ResourceId & {
|
|
35
35
|
};
|
36
36
|
interface FreeGiftPromotion extends Resource {
|
37
37
|
name?: string;
|
38
|
+
currency_code?: string;
|
38
39
|
starts_at?: string;
|
39
40
|
expires_at?: string;
|
40
41
|
total_usage_limit?: number;
|
@@ -52,6 +53,7 @@ interface FreeGiftPromotion extends Resource {
|
|
52
53
|
}
|
53
54
|
interface FreeGiftPromotionCreate extends ResourceCreate {
|
54
55
|
name: string;
|
56
|
+
currency_code?: string;
|
55
57
|
starts_at: string;
|
56
58
|
expires_at: string;
|
57
59
|
total_usage_limit: number;
|
@@ -65,6 +67,7 @@ interface FreeGiftPromotionCreate extends ResourceCreate {
|
|
65
67
|
}
|
66
68
|
interface FreeGiftPromotionUpdate extends ResourceUpdate {
|
67
69
|
name?: string;
|
70
|
+
currency_code?: string;
|
68
71
|
starts_at?: string;
|
69
72
|
expires_at?: string;
|
70
73
|
total_usage_limit?: number;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class FreeGiftPromotions extends resource_1.ApiResource{async list(e,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class FreeGiftPromotions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:FreeGiftPromotions.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:FreeGiftPromotions.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:FreeGiftPromotions.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:FreeGiftPromotions.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:FreeGiftPromotions.TYPE,id:e},t)}isFreeGiftPromotion(e){return e.type&&e.type===FreeGiftPromotions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:FreeGiftPromotions.TYPE}:{id:e.id,type:FreeGiftPromotions.TYPE}}type(){return FreeGiftPromotions.TYPE}}FreeGiftPromotions.TYPE="free_gift_promotions",exports.default=FreeGiftPromotions;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -30,6 +30,7 @@ declare type CouponCodesPromotionRuleRel = ResourceId & {
|
|
30
30
|
};
|
31
31
|
interface FreeShippingPromotion extends Resource {
|
32
32
|
name?: string;
|
33
|
+
currency_code?: string;
|
33
34
|
starts_at?: string;
|
34
35
|
expires_at?: string;
|
35
36
|
total_usage_limit?: number;
|
@@ -44,6 +45,7 @@ interface FreeShippingPromotion extends Resource {
|
|
44
45
|
}
|
45
46
|
interface FreeShippingPromotionCreate extends ResourceCreate {
|
46
47
|
name: string;
|
48
|
+
currency_code?: string;
|
47
49
|
starts_at: string;
|
48
50
|
expires_at: string;
|
49
51
|
total_usage_limit: number;
|
@@ -55,6 +57,7 @@ interface FreeShippingPromotionCreate extends ResourceCreate {
|
|
55
57
|
}
|
56
58
|
interface FreeShippingPromotionUpdate extends ResourceUpdate {
|
57
59
|
name?: string;
|
60
|
+
currency_code?: string;
|
58
61
|
starts_at?: string;
|
59
62
|
expires_at?: string;
|
60
63
|
total_usage_limit?: number;
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
|
6
|
+
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
7
|
import { Address } from './addresses';
|
8
8
|
import { Attachment } from './attachments';
|
9
9
|
declare type GeocoderRel = ResourceId & {
|
@@ -17,6 +17,7 @@ interface Geocoder extends Resource {
|
|
17
17
|
declare class Geocoders extends ApiResource {
|
18
18
|
static readonly TYPE: 'geocoders';
|
19
19
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Geocoder>>;
|
20
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Geocoder>;
|
20
21
|
isGeocoder(resource: any): resource is Geocoder;
|
21
22
|
relationship(id: string | ResourceId): GeocoderRel;
|
22
23
|
type(): string;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Geocoders extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Geocoders.TYPE},e,t)}isGeocoder(e){return e.type&&e.type===Geocoders.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Geocoders.TYPE}:{id:e.id,type:Geocoders.TYPE}}type(){return Geocoders.TYPE}}Geocoders.TYPE="geocoders",exports.default=Geocoders;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Geocoders extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Geocoders.TYPE},e,t)}async retrieve(e,t,r){return this.resources.retrieve({type:Geocoders.TYPE,id:e},t,r)}isGeocoder(e){return e.type&&e.type===Geocoders.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Geocoders.TYPE}:{id:e.id,type:Geocoders.TYPE}}type(){return Geocoders.TYPE}}Geocoders.TYPE="geocoders",exports.default=Geocoders;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
|
-
* ©
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.1
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class GiftCardRecipients extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:GiftCardRecipients.TYPE},e,r)}async create(e,r,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class GiftCardRecipients extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:GiftCardRecipients.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:GiftCardRecipients.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:GiftCardRecipients.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:GiftCardRecipients.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:GiftCardRecipients.TYPE,id:e},r)}isGiftCardRecipient(e){return e.type&&e.type===GiftCardRecipients.TYPE}relationship(e){return typeof e=="string"?{id:e,type:GiftCardRecipients.TYPE}:{id:e.id,type:GiftCardRecipients.TYPE}}type(){return GiftCardRecipients.TYPE}}GiftCardRecipients.TYPE="gift_card_recipients",exports.default=GiftCardRecipients;
|