@commercelayer/sdk 2.3.12 → 2.4.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/common.js +1 -1
- package/lib/cjs/debug.d.ts +3 -0
- package/lib/cjs/debug.js +1 -0
- package/lib/cjs/error.js +1 -1
- 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.d.ts +35 -0
- 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 +2 -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 +2 -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 +2 -2
- package/lib/cjs/resources/fixed_amount_promotions.js +1 -1
- package/lib/cjs/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/cjs/resources/free_gift_promotions.d.ts +2 -2
- package/lib/cjs/resources/free_gift_promotions.js +1 -1
- package/lib/cjs/resources/free_shipping_promotions.d.ts +2 -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 +2 -2
- 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 +5 -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 +2 -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 +4 -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 +2 -2
- 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 +2 -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.d.ts +35 -0
- 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 +2 -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_gateways.js +1 -1
- package/lib/esm/resources/external_payments.d.ts +4 -2
- package/lib/esm/resources/external_payments.js +1 -1
- package/lib/esm/resources/external_promotions.d.ts +2 -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 +2 -2
- package/lib/esm/resources/fixed_amount_promotions.js +1 -1
- package/lib/esm/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/esm/resources/fixed_price_promotions.js +1 -1
- package/lib/esm/resources/free_gift_promotions.d.ts +2 -2
- package/lib/esm/resources/free_gift_promotions.js +1 -1
- package/lib/esm/resources/free_shipping_promotions.d.ts +2 -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 +2 -2
- 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 +5 -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 +2 -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 +4 -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 +2 -2
- 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 +2 -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 +3 -7
@@ -0,0 +1,46 @@
|
|
1
|
+
/**
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
|
+
**/
|
5
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
|
+
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
|
+
import { PaymentMethod } from './payment_methods';
|
8
|
+
import { KlarnaPayment } from './klarna_payments';
|
9
|
+
declare type KlarnaGatewayRel = ResourceId & {
|
10
|
+
type: typeof KlarnaGateways.TYPE;
|
11
|
+
};
|
12
|
+
declare type KlarnaPaymentRel = ResourceId & {
|
13
|
+
type: 'klarna_payments';
|
14
|
+
};
|
15
|
+
interface KlarnaGateway extends Resource {
|
16
|
+
name?: string;
|
17
|
+
payment_methods?: PaymentMethod[];
|
18
|
+
klarna_payments?: KlarnaPayment[];
|
19
|
+
}
|
20
|
+
interface KlarnaGatewayCreate extends ResourceCreate {
|
21
|
+
name: string;
|
22
|
+
country_code: string;
|
23
|
+
api_key: string;
|
24
|
+
api_secret: string;
|
25
|
+
klarna_payments?: KlarnaPaymentRel[];
|
26
|
+
}
|
27
|
+
interface KlarnaGatewayUpdate extends ResourceUpdate {
|
28
|
+
name?: string;
|
29
|
+
country_code?: string;
|
30
|
+
api_key?: string;
|
31
|
+
api_secret?: string;
|
32
|
+
klarna_payments?: KlarnaPaymentRel[];
|
33
|
+
}
|
34
|
+
declare class KlarnaGateways extends ApiResource {
|
35
|
+
static readonly TYPE: 'klarna_gateways';
|
36
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<KlarnaGateway>>;
|
37
|
+
create(resource: KlarnaGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaGateway>;
|
38
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaGateway>;
|
39
|
+
update(resource: KlarnaGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaGateway>;
|
40
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
41
|
+
isKlarnaGateway(resource: any): resource is KlarnaGateway;
|
42
|
+
relationship(id: string | ResourceId): KlarnaGatewayRel;
|
43
|
+
type(): string;
|
44
|
+
}
|
45
|
+
export default KlarnaGateways;
|
46
|
+
export { KlarnaGateway, KlarnaGatewayCreate, KlarnaGatewayUpdate };
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class KlarnaGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:KlarnaGateways.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:KlarnaGateways.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:KlarnaGateways.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:KlarnaGateways.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:KlarnaGateways.TYPE,id:e},t)}isKlarnaGateway(e){return e.type&&e.type===KlarnaGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:KlarnaGateways.TYPE}:{id:e.id,type:KlarnaGateways.TYPE}}type(){return KlarnaGateways.TYPE}}KlarnaGateways.TYPE="klarna_gateways",exports.default=KlarnaGateways;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/**
|
2
|
+
* ©2022 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.8.0
|
4
|
+
**/
|
5
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
|
+
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
|
+
import { Order } from './orders';
|
8
|
+
import { PaymentGateway } from './payment_gateways';
|
9
|
+
declare type KlarnaPaymentRel = ResourceId & {
|
10
|
+
type: typeof KlarnaPayments.TYPE;
|
11
|
+
};
|
12
|
+
declare type OrderRel = ResourceId & {
|
13
|
+
type: 'orders';
|
14
|
+
};
|
15
|
+
interface KlarnaPayment extends Resource {
|
16
|
+
session_id?: string;
|
17
|
+
client_token?: string;
|
18
|
+
payment_methods?: object[];
|
19
|
+
auth_token?: string;
|
20
|
+
order?: Order;
|
21
|
+
payment_gateway?: PaymentGateway;
|
22
|
+
}
|
23
|
+
interface KlarnaPaymentCreate extends ResourceCreate {
|
24
|
+
order?: OrderRel;
|
25
|
+
}
|
26
|
+
interface KlarnaPaymentUpdate extends ResourceUpdate {
|
27
|
+
auth_token?: string;
|
28
|
+
_update?: boolean;
|
29
|
+
order?: OrderRel;
|
30
|
+
}
|
31
|
+
declare class KlarnaPayments extends ApiResource {
|
32
|
+
static readonly TYPE: 'klarna_payments';
|
33
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<KlarnaPayment>>;
|
34
|
+
create(resource: KlarnaPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaPayment>;
|
35
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaPayment>;
|
36
|
+
update(resource: KlarnaPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaPayment>;
|
37
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
38
|
+
isKlarnaPayment(resource: any): resource is KlarnaPayment;
|
39
|
+
relationship(id: string | ResourceId): KlarnaPaymentRel;
|
40
|
+
type(): string;
|
41
|
+
}
|
42
|
+
export default KlarnaPayments;
|
43
|
+
export { KlarnaPayment, KlarnaPaymentCreate, KlarnaPaymentUpdate };
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class KlarnaPayments extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:KlarnaPayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:KlarnaPayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:KlarnaPayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:KlarnaPayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:KlarnaPayments.TYPE,id:e},t)}isKlarnaPayment(e){return e.type&&e.type===KlarnaPayments.TYPE}relationship(e){return typeof e=="string"?{id:e,type:KlarnaPayments.TYPE}:{id:e.id,type:KlarnaPayments.TYPE}}type(){return KlarnaPayments.TYPE}}KlarnaPayments.TYPE="klarna_payments",exports.default=KlarnaPayments;
|
@@ -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.0
|
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 LineItemOptions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:LineItemOptions.TYPE},e,r)}async create(e,r,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class LineItemOptions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:LineItemOptions.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:LineItemOptions.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:LineItemOptions.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:LineItemOptions.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:LineItemOptions.TYPE,id:e},r)}isLineItemOption(e){return e.type&&e.type===LineItemOptions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:LineItemOptions.TYPE}:{id:e.id,type:LineItemOptions.TYPE}}type(){return LineItemOptions.TYPE}}LineItemOptions.TYPE="line_item_options",exports.default=LineItemOptions;
|
@@ -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.0
|
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 LineItems extends resource_1.ApiResource{async list(e,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class LineItems extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:LineItems.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:LineItems.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:LineItems.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:LineItems.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:LineItems.TYPE,id:e},t)}isLineItem(e){return e.type&&e.type===LineItems.TYPE}relationship(e){return typeof e=="string"?{id:e,type:LineItems.TYPE}:{id:e.id,type:LineItems.TYPE}}type(){return LineItems.TYPE}}LineItems.TYPE="line_items",exports.default=LineItems;
|
@@ -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.0
|
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 ManualGateways extends resource_1.ApiResource{async list(e,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ManualGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ManualGateways.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ManualGateways.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ManualGateways.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ManualGateways.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ManualGateways.TYPE,id:e},t)}isManualGateway(e){return e.type&&e.type===ManualGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:ManualGateways.TYPE}:{id:e.id,type:ManualGateways.TYPE}}type(){return ManualGateways.TYPE}}ManualGateways.TYPE="manual_gateways",exports.default=ManualGateways;
|
@@ -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.0
|
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.0
|
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.0
|
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.0
|
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 OrderAmountPromotionRules extends resource_1.ApiResource{async list(e,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderAmountPromotionRules extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:OrderAmountPromotionRules.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderAmountPromotionRules.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:OrderAmountPromotionRules.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:OrderAmountPromotionRules.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:OrderAmountPromotionRules.TYPE,id:e},t)}isOrderAmountPromotionRule(e){return e.type&&e.type===OrderAmountPromotionRules.TYPE}relationship(e){return typeof e=="string"?{id:e,type:OrderAmountPromotionRules.TYPE}:{id:e.id,type:OrderAmountPromotionRules.TYPE}}type(){return OrderAmountPromotionRules.TYPE}}OrderAmountPromotionRules.TYPE="order_amount_promotion_rules",exports.default=OrderAmountPromotionRules;
|
@@ -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.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, 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.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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.0
|
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 { Market } from './markets';
|
8
8
|
declare type OrderValidationRuleRel = ResourceId & {
|
9
9
|
type: typeof OrderValidationRules.TYPE;
|
@@ -14,6 +14,7 @@ interface OrderValidationRule extends Resource {
|
|
14
14
|
declare class OrderValidationRules extends ApiResource {
|
15
15
|
static readonly TYPE: 'order_validation_rules';
|
16
16
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderValidationRule>>;
|
17
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderValidationRule>;
|
17
18
|
isOrderValidationRule(resource: any): resource is OrderValidationRule;
|
18
19
|
relationship(id: string | ResourceId): OrderValidationRuleRel;
|
19
20
|
type(): string;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderValidationRules extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:OrderValidationRules.TYPE},e,t)}isOrderValidationRule(e){return e.type&&e.type===OrderValidationRules.TYPE}relationship(e){return typeof e=="string"?{id:e,type:OrderValidationRules.TYPE}:{id:e.id,type:OrderValidationRules.TYPE}}type(){return OrderValidationRules.TYPE}}OrderValidationRules.TYPE="order_validation_rules",exports.default=OrderValidationRules;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderValidationRules extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:OrderValidationRules.TYPE},e,t)}async retrieve(e,t,r){return this.resources.retrieve({type:OrderValidationRules.TYPE,id:e},t,r)}isOrderValidationRule(e){return e.type&&e.type===OrderValidationRules.TYPE}relationship(e){return typeof e=="string"?{id:e,type:OrderValidationRules.TYPE}:{id:e.id,type:OrderValidationRules.TYPE}}type(){return OrderValidationRules.TYPE}}OrderValidationRules.TYPE="order_validation_rules",exports.default=OrderValidationRules;
|
@@ -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.0
|
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 @@ import { AdyenPayment } from './adyen_payments';
|
|
13
13
|
import { BraintreePayment } from './braintree_payments';
|
14
14
|
import { CheckoutComPayment } from './checkout_com_payments';
|
15
15
|
import { ExternalPayment } from './external_payments';
|
16
|
+
import { KlarnaPayment } from './klarna_payments';
|
16
17
|
import { PaypalPayment } from './paypal_payments';
|
17
18
|
import { StripePayment } from './stripe_payments';
|
18
19
|
import { WireTransfer } from './wire_transfers';
|
@@ -52,6 +53,9 @@ declare type CheckoutComPaymentRel = ResourceId & {
|
|
52
53
|
declare type ExternalPaymentRel = ResourceId & {
|
53
54
|
type: 'external_payments';
|
54
55
|
};
|
56
|
+
declare type KlarnaPaymentRel = ResourceId & {
|
57
|
+
type: 'klarna_payments';
|
58
|
+
};
|
55
59
|
declare type PaypalPaymentRel = ResourceId & {
|
56
60
|
type: 'paypal_payments';
|
57
61
|
};
|
@@ -166,7 +170,7 @@ interface Order extends Resource {
|
|
166
170
|
available_payment_methods?: PaymentMethod[];
|
167
171
|
available_customer_payment_sources?: CustomerPaymentSource[];
|
168
172
|
payment_method?: PaymentMethod;
|
169
|
-
payment_source?: AdyenPayment | BraintreePayment | CheckoutComPayment | ExternalPayment | PaypalPayment | StripePayment | WireTransfer;
|
173
|
+
payment_source?: AdyenPayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | StripePayment | WireTransfer;
|
170
174
|
line_items?: LineItem[];
|
171
175
|
shipments?: Shipment[];
|
172
176
|
transactions?: (Authorization | Void | Capture | Refund)[];
|
@@ -197,7 +201,7 @@ interface OrderCreate extends ResourceCreate {
|
|
197
201
|
shipping_address?: AddressRel;
|
198
202
|
billing_address?: AddressRel;
|
199
203
|
payment_method?: PaymentMethodRel;
|
200
|
-
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
204
|
+
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
201
205
|
}
|
202
206
|
interface OrderUpdate extends ResourceUpdate {
|
203
207
|
autorefresh?: boolean;
|
@@ -238,7 +242,7 @@ interface OrderUpdate extends ResourceUpdate {
|
|
238
242
|
shipping_address?: AddressRel;
|
239
243
|
billing_address?: AddressRel;
|
240
244
|
payment_method?: PaymentMethodRel;
|
241
|
-
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
245
|
+
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
242
246
|
}
|
243
247
|
declare class Orders extends ApiResource {
|
244
248
|
static readonly TYPE: 'orders';
|
@@ -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.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsRetrieve } from '../query';
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Organizations extends resource_1.ApiResource{async retrieve(e,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Organizations extends resource_1.ApiResource{async retrieve(e,t){return this.resources.singleton({type:Organizations.TYPE},e,t)}isOrganization(e){return e.type&&e.type===Organizations.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Organizations.TYPE}:{id:e.id,type:Organizations.TYPE}}type(){return Organizations.TYPE}}Organizations.TYPE="organization",exports.default=Organizations;
|
@@ -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.0
|
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.0
|
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.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,8 +1,8 @@
|
|
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.0
|
4
4
|
**/
|
5
|
-
import { ApiResource, Resource,
|
5
|
+
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
7
|
import { PaymentMethod } from './payment_methods';
|
8
8
|
declare type PaymentGatewayRel = ResourceId & {
|
@@ -12,22 +12,13 @@ interface PaymentGateway extends Resource {
|
|
12
12
|
name?: string;
|
13
13
|
payment_methods?: PaymentMethod[];
|
14
14
|
}
|
15
|
-
interface PaymentGatewayCreate extends ResourceCreate {
|
16
|
-
name: string;
|
17
|
-
}
|
18
|
-
interface PaymentGatewayUpdate extends ResourceUpdate {
|
19
|
-
name?: string;
|
20
|
-
}
|
21
15
|
declare class PaymentGateways extends ApiResource {
|
22
16
|
static readonly TYPE: 'payment_gateways';
|
23
17
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentGateway>>;
|
24
|
-
create(resource: PaymentGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
25
18
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
26
|
-
update(resource: PaymentGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
27
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
28
19
|
isPaymentGateway(resource: any): resource is PaymentGateway;
|
29
20
|
relationship(id: string | ResourceId): PaymentGatewayRel;
|
30
21
|
type(): string;
|
31
22
|
}
|
32
23
|
export default PaymentGateways;
|
33
|
-
export { PaymentGateway
|
24
|
+
export { PaymentGateway };
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentGateways.TYPE},e,r)}async
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentGateways.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:PaymentGateways.TYPE,id:e},r,t)}isPaymentGateway(e){return e.type&&e.type===PaymentGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaymentGateways.TYPE}:{id:e.id,type:PaymentGateways.TYPE}}type(){return PaymentGateways.TYPE}}PaymentGateways.TYPE="payment_gateways",exports.default=PaymentGateways;
|
@@ -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.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -19,6 +19,7 @@ declare type PaymentGatewayRel = ResourceId & {
|
|
19
19
|
interface PaymentMethod extends Resource {
|
20
20
|
payment_source_type?: string;
|
21
21
|
name?: string;
|
22
|
+
moto?: boolean;
|
22
23
|
disabled_at?: string;
|
23
24
|
price_amount_cents?: number;
|
24
25
|
price_amount_float?: number;
|
@@ -29,12 +30,14 @@ interface PaymentMethod extends Resource {
|
|
29
30
|
}
|
30
31
|
interface PaymentMethodCreate extends ResourceCreate {
|
31
32
|
payment_source_type: string;
|
33
|
+
moto?: boolean;
|
32
34
|
price_amount_cents: number;
|
33
35
|
market?: MarketRel;
|
34
36
|
payment_gateway?: PaymentGatewayRel;
|
35
37
|
}
|
36
38
|
interface PaymentMethodUpdate extends ResourceUpdate {
|
37
39
|
payment_source_type?: string;
|
40
|
+
moto?: boolean;
|
38
41
|
price_amount_cents?: number;
|
39
42
|
market?: MarketRel;
|
40
43
|
payment_gateway?: PaymentGatewayRel;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentMethods extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentMethods.TYPE},e,r)}async create(e,r,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentMethods extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentMethods.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:PaymentMethods.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:PaymentMethods.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:PaymentMethods.TYPE,id:e},r)}isPaymentMethod(e){return e.type&&e.type===PaymentMethods.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaymentMethods.TYPE}:{id:e.id,type:PaymentMethods.TYPE}}type(){return PaymentMethods.TYPE}}PaymentMethods.TYPE="payment_methods",exports.default=PaymentMethods;
|
@@ -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.0
|
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 PaypalGateways extends resource_1.ApiResource{async list(e,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaypalGateways extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PaypalGateways.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:PaypalGateways.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalGateways.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:PaypalGateways.TYPE,id:e},t)}isPaypalGateway(e){return e.type&&e.type===PaypalGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaypalGateways.TYPE}:{id:e.id,type:PaypalGateways.TYPE}}type(){return PaypalGateways.TYPE}}PaypalGateways.TYPE="paypal_gateways",exports.default=PaypalGateways;
|
@@ -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.0
|
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 PaypalPayments extends resource_1.ApiResource{async list(e,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaypalPayments extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PaypalPayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:PaypalPayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:PaypalPayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:PaypalPayments.TYPE,id:e},t)}isPaypalPayment(e){return e.type&&e.type===PaypalPayments.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaypalPayments.TYPE}:{id:e.id,type:PaypalPayments.TYPE}}type(){return PaypalPayments.TYPE}}PaypalPayments.TYPE="paypal_payments",exports.default=PaypalPayments;
|
@@ -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.0
|
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 PercentageDiscountPromotions extends resource_1.ApiResource{async list(e,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PercentageDiscountPromotions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PercentageDiscountPromotions.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:PercentageDiscountPromotions.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:PercentageDiscountPromotions.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:PercentageDiscountPromotions.TYPE,id:e},t)}isPercentageDiscountPromotion(e){return e.type&&e.type===PercentageDiscountPromotions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PercentageDiscountPromotions.TYPE}:{id:e.id,type:PercentageDiscountPromotions.TYPE}}type(){return PercentageDiscountPromotions.TYPE}}PercentageDiscountPromotions.TYPE="percentage_discount_promotions",exports.default=PercentageDiscountPromotions;
|
@@ -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.0
|
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.0
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -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.0
|
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 { PercentageDiscountPromotion } from './percentage_discount_promotions';
|
8
8
|
import { FreeShippingPromotion } from './free_shipping_promotions';
|
9
9
|
import { FixedAmountPromotion } from './fixed_amount_promotions';
|
@@ -19,6 +19,7 @@ interface PromotionRule extends Resource {
|
|
19
19
|
declare class PromotionRules extends ApiResource {
|
20
20
|
static readonly TYPE: 'promotion_rules';
|
21
21
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PromotionRule>>;
|
22
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PromotionRule>;
|
22
23
|
isPromotionRule(resource: any): resource is PromotionRule;
|
23
24
|
relationship(id: string | ResourceId): PromotionRuleRel;
|
24
25
|
type(): string;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PromotionRules extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PromotionRules.TYPE},e,r)}isPromotionRule(e){return e.type&&e.type===PromotionRules.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PromotionRules.TYPE}:{id:e.id,type:PromotionRules.TYPE}}type(){return PromotionRules.TYPE}}PromotionRules.TYPE="promotion_rules",exports.default=PromotionRules;
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PromotionRules extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PromotionRules.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:PromotionRules.TYPE,id:e},r,t)}isPromotionRule(e){return e.type&&e.type===PromotionRules.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PromotionRules.TYPE}:{id:e.id,type:PromotionRules.TYPE}}type(){return PromotionRules.TYPE}}PromotionRules.TYPE="promotion_rules",exports.default=PromotionRules;
|
@@ -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.0
|
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 { Market } from './markets';
|
8
8
|
import { PromotionRule } from './promotion_rules';
|
9
9
|
import { OrderAmountPromotionRule } from './order_amount_promotion_rules';
|
@@ -30,6 +30,7 @@ interface Promotion extends Resource {
|
|
30
30
|
declare class Promotions extends ApiResource {
|
31
31
|
static readonly TYPE: 'promotions';
|
32
32
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Promotion>>;
|
33
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Promotion>;
|
33
34
|
isPromotion(resource: any): resource is Promotion;
|
34
35
|
relationship(id: string | ResourceId): PromotionRel;
|
35
36
|
type(): string;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Promotions extends resource_1.ApiResource{async list(e,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Promotions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Promotions.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Promotions.TYPE,id:e},r,t)}isPromotion(e){return e.type&&e.type===Promotions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Promotions.TYPE}:{id:e.id,type:Promotions.TYPE}}type(){return Promotions.TYPE}}Promotions.TYPE="promotions",exports.default=Promotions;
|
@@ -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.0
|
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.0
|
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 ReturnLineItems extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:ReturnLineItems.TYPE},e,r)}async create(e,r,
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ReturnLineItems extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:ReturnLineItems.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:ReturnLineItems.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:ReturnLineItems.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:ReturnLineItems.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:ReturnLineItems.TYPE,id:e},r)}isReturnLineItem(e){return e.type&&e.type===ReturnLineItems.TYPE}relationship(e){return typeof e=="string"?{id:e,type:ReturnLineItems.TYPE}:{id:e.id,type:ReturnLineItems.TYPE}}type(){return ReturnLineItems.TYPE}}ReturnLineItems.TYPE="return_line_items",exports.default=ReturnLineItems;
|