ePages 6.11.0 - DE_EPAGES/Payment/API/Table/ShippingPaymentMap.pm

Package DE_EPAGES::Payment::API::Table::ShippingPaymentMap

interface for table ShippingPaymentMap

@EXPORT_OK
InsertShippingPaymentMap
DeleteShippingPaymentMap
GetAllPKeyShippingPaymentMaps
ExistsShippingPaymentMap
GetPKeyShippingPaymentMapsByShippingMethodID
GetInfoShippingPaymentMapsByShippingMethodID
GetPKeyShippingPaymentMapsByPaymentMethodID
GetInfoShippingPaymentMapsByPaymentMethodID

Functions

DeleteShippingPaymentMap
ExistsShippingPaymentMap
GetAllPKeyShippingPaymentMaps
GetInfoShippingPaymentMapsByPaymentMethodID
GetInfoShippingPaymentMapsByShippingMethodID
GetPKeyShippingPaymentMapsByPaymentMethodID
GetPKeyShippingPaymentMapsByShippingMethodID
InsertShippingPaymentMap
OnDeleteShippingMethod

DeleteShippingPaymentMap

Deletes a(n) ShippingPaymentMap.

Syntax
DeleteShippingPaymentMap($ShippingMethodID, $PaymentMethodID);
DeleteShippingPaymentMap($hShippingPaymentMap); # if $hShippingPaymentMap includes ShippingMethodID, PaymentMethodID
Input
$ShippingMethodID (int)
shipping method id (part of primary key)
$PaymentMethodID (int)
payment method id (part of primary key)

ExistsShippingPaymentMap

Returns true if the ShippingPaymentMap exists.

Syntax
$exists = ExistsShippingPaymentMap($ShippingMethodID, $PaymentMethodID);
Input
$ShippingMethodID (int)
shipping method id
$PaymentMethodID (int)
payment method id
Return
$exists (boolean)
1/0 the ShippingPaymentMap exists (yes/no)

GetAllPKeyShippingPaymentMaps

Returns all ShippingPaymentMap identifiers.

Syntax
$ahShippingPaymentMapIDs = GetAllPKeyShippingPaymentMaps();
Return
$ahShippingPaymentMapIDs (reference to array of hashes)
with following keys:
  • ShippingMethodID - shipping method id - int
  • PaymentMethodID - payment method id - int

GetInfoShippingPaymentMapsByPaymentMethodID

Returns objects of ShippingPaymentMap by alternate key PaymentMethodID.

Syntax
$ahShippingPaymentMaps = GetInfoShippingPaymentMapsByPaymentMethodID($PaymentMethodID);
Input
$PaymentMethodID (int)
payment method id
Return
$ahShippingPaymentMaps (reference to array of hashes)
with following keys:
  • ShippingMethodID - shipping method id (part of primary key)- int
  • PaymentMethodID - payment method id (part of primary key)- int

GetInfoShippingPaymentMapsByShippingMethodID

Returns objects of ShippingPaymentMap by primary key element ShippingMethodID.

Syntax
$ahShippingPaymentMaps = GetInfoShippingPaymentMapsByShippingMethodID($ShippingMethodID);
Input
$ShippingMethodID (int)
shipping method id
Return
$ahShippingPaymentMaps (reference to array of hashes)
with following keys:
  • ShippingMethodID - shipping method id (part of primary key)- int
  • PaymentMethodID - payment method id (part of primary key)- int

GetPKeyShippingPaymentMapsByPaymentMethodID

Returns primary keys of ShippingPaymentMap by alternate key PaymentMethodID.

Syntax
$ahKeys = GetPKeyShippingPaymentMapsByPaymentMethodID($PaymentMethodID);
Input
$PaymentMethodID (int)
payment method id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ShippingMethodID - shipping method id - int
  • PaymentMethodID - payment method id - int

GetPKeyShippingPaymentMapsByShippingMethodID

Returns primary keys of ShippingPaymentMap by primary key element ShippingMethodID.

Syntax
$ahKeys = GetPKeyShippingPaymentMapsByShippingMethodID($ShippingMethodID);
Input
$ShippingMethodID (int)
shipping method id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ShippingMethodID - shipping method id - int
  • PaymentMethodID - payment method id - int

InsertShippingPaymentMap

Creates an entry of ShippingPaymentMap.

Syntax
InsertShippingPaymentMap($hShippingPaymentMap);
Input
$hShippingPaymentMap (reference to hash)
with following keys:
  • ShippingMethodID - shipping method id (part of primary key)- int
  • PaymentMethodID - payment method id (part of primary key)- int

OnDeleteShippingMethod

Deletes ShippingPaymentMap of this model when a(n) ShippingMethod is deleted.

Syntax
OnDeleteShippingMethod($hParams);
Input
$hParams (ref.hash.*)
primary key of object ShippingMethod, key is
  • ShippingMethodID