#!/usr/bin/perl
use strict;

package API::Order::Cart;

use Package::Stash;

our $Config;
BEGIN {
	use API::Config;
	$Config = $API::Config::Config;
}
use lib ($Config->{'Website_libs'});

use ECS::Order::CartComponent;

# actual implementations of these moved to ECS::Order::CartComponent
# alias these subs to not incur additional function call overhead
# and avoid rewriting callers

sub getCartProductsSummary;
sub getIndividualProducts;
sub insertMultipleOrderIdsIntoCartComponentPicked;
sub getProductPicsNeeded;

BEGIN {
	my $apiStash = Package::Stash->new(__PACKAGE__);
	my $libStash = Package::Stash->new("ECS::Order::CartComponent");

	for (qw/
		getCartProductsSummary
		getIndividualProducts
		insertMultipleOrderIdsIntoCartComponentPicked
		getProductPicsNeeded
	/) {
		$apiStash->add_symbol( "&$_" => $libStash->get_symbol( "&$_") );
	}
}

1;
