@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';
|
@@ -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
|
-
import{ApiResource as i}from"../resource";class
|
1
|
+
import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}isCheckoutComPayment(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="checkout_com_payments";export default r;
|
@@ -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
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as c}from"../resource";class t extends c{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isCouponCodesPromotionRule(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="coupon_codes_promotion_rules";export default t;
|
@@ -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
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as a}from"../resource";class t extends a{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isCouponRecipient(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="coupon_recipients";export default t;
|
@@ -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 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isCoupon(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="coupons";export default t;
|
@@ -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
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as a}from"../resource";class e extends a{async list(t,r){return this.resources.list({type:e.TYPE},t,r)}async create(t,r,i){return this.resources.create(Object.assign(Object.assign({},t),{type:e.TYPE}),r,i)}async retrieve(t,r,i){return this.resources.retrieve({type:e.TYPE,id:t},r,i)}async update(t,r,i){return this.resources.update(Object.assign(Object.assign({},t),{type:e.TYPE}),r,i)}async delete(t,r){await this.resources.delete({type:e.TYPE,id:t},r)}isCustomerAddress(t){return t.type&&t.type===e.TYPE}relationship(t){return typeof t=="string"?{id:t,type:e.TYPE}:{id:t.id,type:e.TYPE}}type(){return e.TYPE}}e.TYPE="customer_addresses";export default e;
|
@@ -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
|
-
import{ApiResource as i}from"../resource";class
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isCustomerGroup(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="customer_groups";export default t;
|
@@ -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
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as n}from"../resource";class t extends n{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,i){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,i)}async retrieve(e,r,i){return this.resources.retrieve({type:t.TYPE,id:e},r,i)}async update(e,r,i){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,i)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isCustomerPasswordReset(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="customer_password_resets";export default t;
|
@@ -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 +1 @@
|
|
1
|
-
import{ApiResource as i}from"../resource";class
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isCustomerPaymentSource(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="customer_payment_sources";export default t;
|
@@ -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
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as s}from"../resource";class t extends s{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,a){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,a)}async retrieve(e,r,a){return this.resources.retrieve({type:t.TYPE,id:e},r,a)}async update(e,r,a){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,a)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isCustomerSubscription(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="customer_subscriptions";export default t;
|
@@ -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
|
-
import{ApiResource as i}from"../resource";class
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isCustomer(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="customers";export default t;
|
@@ -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
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as n}from"../resource";class e extends n{async list(t,s){return this.resources.list({type:e.TYPE},t,s)}async create(t,s,r){return this.resources.create(Object.assign(Object.assign({},t),{type:e.TYPE}),s,r)}async retrieve(t,s,r){return this.resources.retrieve({type:e.TYPE,id:t},s,r)}async update(t,s,r){return this.resources.update(Object.assign(Object.assign({},t),{type:e.TYPE}),s,r)}async delete(t,s){await this.resources.delete({type:e.TYPE,id:t},s)}isDeliveryLeadTime(t){return t.type&&t.type===e.TYPE}relationship(t){return typeof t=="string"?{id:t,type:e.TYPE}:{id:t.id,type:e.TYPE}}type(){return e.TYPE}}e.TYPE="delivery_lead_times";export default e;
|
@@ -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 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as p}from"../resource";class r extends p{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async retrieve(e,t,i){return this.resources.retrieve({type:r.TYPE,id:e},t,i)}isEventCallback(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="event_callbacks";export default r;
|
@@ -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,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,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
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as p}from"../resource";class t extends p{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isExternalPromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="external_promotions";export default t;
|
@@ -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
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isExternalTaxCalculator(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="external_tax_calculators";export default t;
|
@@ -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
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as a}from"../resource";class t extends a{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isFixedAmountPromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="fixed_amount_promotions";export default t;
|
@@ -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 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as p}from"../resource";class t extends p{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isFixedPricePromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="fixed_price_promotions";export default t;
|
@@ -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
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as a}from"../resource";class t extends a{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isFreeGiftPromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="free_gift_promotions";export default t;
|
@@ -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 +1 @@
|
|
1
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as a}from"../resource";class t extends a{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isFreeShippingPromotion(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="free_shipping_promotions";export default t;
|
@@ -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
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as p}from"../resource";class e extends p{async list(t,r){return this.resources.list({type:e.TYPE},t,r)}async retrieve(t,r,i){return this.resources.retrieve({type:e.TYPE,id:t},r,i)}isGeocoder(t){return t.type&&t.type===e.TYPE}relationship(t){return typeof t=="string"?{id:t,type:e.TYPE}:{id:t.id,type:e.TYPE}}type(){return e.TYPE}}e.TYPE="geocoders";export default e;
|
@@ -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
|
-
import{ApiResource as
|
1
|
+
import{ApiResource as y}from"../resource";class t extends y{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isGiftCardRecipient(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="gift_card_recipients";export default t;
|