ePages 6.11.0 - DE_EPAGES/Shipping/API/Table/ShippingMethodCustomerGroup.pm

Package DE_EPAGES::Shipping::API::Table::ShippingMethodCustomerGroup

interface for table ShippingMethodCustomerGroup

@EXPORT_OK
InsertShippingMethodCustomerGroup
DeleteShippingMethodCustomerGroup
GetAllPKeyShippingMethodCustomerGroups
ExistsShippingMethodCustomerGroup
GetPKeyShippingMethodCustomerGroupsByShippingMethodID
GetInfoShippingMethodCustomerGroupsByShippingMethodID
GetPKeyShippingMethodCustomerGroupsByCustomerGroupID
GetInfoShippingMethodCustomerGroupsByCustomerGroupID

Functions

DeleteShippingMethodCustomerGroup
ExistsShippingMethodCustomerGroup
GetAllPKeyShippingMethodCustomerGroups
GetInfoShippingMethodCustomerGroupsByCustomerGroupID
GetInfoShippingMethodCustomerGroupsByShippingMethodID
GetPKeyShippingMethodCustomerGroupsByCustomerGroupID
GetPKeyShippingMethodCustomerGroupsByShippingMethodID
InsertShippingMethodCustomerGroup
OnDeleteCustomerGroup

DeleteShippingMethodCustomerGroup

Deletes a(n) ShippingMethodCustomerGroup.

Syntax
DeleteShippingMethodCustomerGroup($ShippingMethodID, $CustomerGroupID);
DeleteShippingMethodCustomerGroup($hShippingMethodCustomerGroup);
  #if $hShippingMethodCustomerGroup includes ShippingMethodID, CustomerGroupID
Input
$ShippingMethodID (int)
shipping method id (part of primary key)
$CustomerGroupID (int)
customer group id (part of primary key)

ExistsShippingMethodCustomerGroup

Returns true if the ShippingMethodCustomerGroup exists.

Syntax
$exists = ExistsShippingMethodCustomerGroup($ShippingMethodID, $CustomerGroupID);
Input
$ShippingMethodID (int)
shipping method id
$CustomerGroupID (int)
customer group id
Return
$exists (boolean)
1/0 the ShippingMethodCustomerGroup exists (yes/no)

GetAllPKeyShippingMethodCustomerGroups

Returns all ShippingMethodCustomerGroup identifiers.

Syntax
$ahShippingMethodCustomerGroupIDs = GetAllPKeyShippingMethodCustomerGroups();
Return
$ahShippingMethodCustomerGroupIDs (reference to array of hashes)
with following keys:
  • ShippingMethodID - shipping method id - int
  • CustomerGroupID - customer group id - int

GetInfoShippingMethodCustomerGroupsByCustomerGroupID

Returns objects of ShippingMethodCustomerGroup by alternate key CustomerGroupID.

Syntax
$ahShippingMethodCustomerGroups = GetInfoShippingMethodCustomerGroupsByCustomerGroupID($CustomerGroupID);
Input
$CustomerGroupID (int)
customer group id
Return
$ahShippingMethodCustomerGroups (reference to array of hashes)
with following keys:
  • ShippingMethodID - shipping method id (part of primary key)- int
  • CustomerGroupID - customer group id (part of primary key)- int

GetInfoShippingMethodCustomerGroupsByShippingMethodID

Returns objects of ShippingMethodCustomerGroup by primary key element ShippingMethodID.

Syntax
$ahShippingMethodCustomerGroups = GetInfoShippingMethodCustomerGroupsByShippingMethodID($ShippingMethodID);
Input
$ShippingMethodID (int)
shipping method id
Return
$ahShippingMethodCustomerGroups (reference to array of hashes)
with following keys:
  • ShippingMethodID - shipping method id (part of primary key)- int
  • CustomerGroupID - customer group id (part of primary key)- int

GetPKeyShippingMethodCustomerGroupsByCustomerGroupID

Returns primary keys of ShippingMethodCustomerGroup by alternate key CustomerGroupID.

Syntax
$ahKeys = GetPKeyShippingMethodCustomerGroupsByCustomerGroupID($CustomerGroupID);
Input
$CustomerGroupID (int)
customer group id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ShippingMethodID - shipping method id - int
  • CustomerGroupID - customer group id - int

GetPKeyShippingMethodCustomerGroupsByShippingMethodID

Returns primary keys of ShippingMethodCustomerGroup by primary key element ShippingMethodID.

Syntax
$ahKeys = GetPKeyShippingMethodCustomerGroupsByShippingMethodID($ShippingMethodID);
Input
$ShippingMethodID (int)
shipping method id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ShippingMethodID - shipping method id - int
  • CustomerGroupID - customer group id - int

InsertShippingMethodCustomerGroup

Creates an entry of ShippingMethodCustomerGroup.

Syntax
InsertShippingMethodCustomerGroup($hShippingMethodCustomerGroup);
Input
$hShippingMethodCustomerGroup (reference to hash)
with following keys:
  • ShippingMethodID - shipping method id (part of primary key)- int
  • CustomerGroupID - customer group id (part of primary key)- int

OnDeleteCustomerGroup

Deletes ShippingMethodCustomerGroup of this model when a(n) CustomerGroup is deleted.

Syntax
OnDeleteCustomerGroup($hParams);
Input
$hParams (ref.hash.*)
primary key of object CustomerGroup, key is
  • CustomerGroupID