ePages 6.10 - DE_EPAGES/Payment/API/Table/PaymentMethodCustomerGroup.pm

Package DE_EPAGES::Payment::API::Table::PaymentMethodCustomerGroup

interface for table PaymentMethodCustomerGroup

@EXPORT_OK
InsertPaymentMethodCustomerGroup
DeletePaymentMethodCustomerGroup
GetAllPKeyPaymentMethodCustomerGroups
ExistsPaymentMethodCustomerGroup
GetPKeyPaymentMethodCustomerGroupsByPaymentMethodID
GetInfoPaymentMethodCustomerGroupsByPaymentMethodID
GetPKeyPaymentMethodCustomerGroupsByCustomerGroupID
GetInfoPaymentMethodCustomerGroupsByCustomerGroupID

Functions

DeletePaymentMethodCustomerGroup
ExistsPaymentMethodCustomerGroup
GetAllPKeyPaymentMethodCustomerGroups
GetInfoPaymentMethodCustomerGroupsByCustomerGroupID
GetInfoPaymentMethodCustomerGroupsByPaymentMethodID
GetPKeyPaymentMethodCustomerGroupsByCustomerGroupID
GetPKeyPaymentMethodCustomerGroupsByPaymentMethodID
InsertPaymentMethodCustomerGroup
OnDeleteCustomerGroup

DeletePaymentMethodCustomerGroup

Deletes a(n) PaymentMethodCustomerGroup.

Syntax
DeletePaymentMethodCustomerGroup($PaymentMethodID, $CustomerGroupID);
DeletePaymentMethodCustomerGroup($hPaymentMethodCustomerGroup); # if $hPaymentMethodCustomerGroup includes PaymentMethodID, CustomerGroupID
Input
$PaymentMethodID (int)
payment method id (part of primary key)
$CustomerGroupID (int)
customer group id (part of primary key)

ExistsPaymentMethodCustomerGroup

Returns true if the PaymentMethodCustomerGroup exists.

Syntax
$exists = ExistsPaymentMethodCustomerGroup($PaymentMethodID, $CustomerGroupID);
Input
$PaymentMethodID (int)
payment method id
$CustomerGroupID (int)
customer group id
Return
$exists (boolean)
1/0 the PaymentMethodCustomerGroup exists (yes/no)

GetAllPKeyPaymentMethodCustomerGroups

Returns all PaymentMethodCustomerGroup identifiers.

Syntax
$ahPaymentMethodCustomerGroupIDs = GetAllPKeyPaymentMethodCustomerGroups();
Return
$ahPaymentMethodCustomerGroupIDs (reference to array of hashes)
with following keys:
  • PaymentMethodID - payment method id - int
  • CustomerGroupID - customer group id - int

GetInfoPaymentMethodCustomerGroupsByCustomerGroupID

Returns objects of PaymentMethodCustomerGroup by alternate key CustomerGroupID.

Syntax
$ahPaymentMethodCustomerGroups = GetInfoPaymentMethodCustomerGroupsByCustomerGroupID($CustomerGroupID);
Input
$CustomerGroupID (int)
customer group id
Return
$ahPaymentMethodCustomerGroups (reference to array of hashes)
with following keys:
  • PaymentMethodID - payment method id (part of primary key)- int
  • CustomerGroupID - customer group id (part of primary key)- int

GetInfoPaymentMethodCustomerGroupsByPaymentMethodID

Returns objects of PaymentMethodCustomerGroup by primary key element PaymentMethodID.

Syntax
$ahPaymentMethodCustomerGroups = GetInfoPaymentMethodCustomerGroupsByPaymentMethodID($PaymentMethodID);
Input
$PaymentMethodID (int)
payment method id
Return
$ahPaymentMethodCustomerGroups (reference to array of hashes)
with following keys:
  • PaymentMethodID - payment method id (part of primary key)- int
  • CustomerGroupID - customer group id (part of primary key)- int

GetPKeyPaymentMethodCustomerGroupsByCustomerGroupID

Returns primary keys of PaymentMethodCustomerGroup by alternate key CustomerGroupID.

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

GetPKeyPaymentMethodCustomerGroupsByPaymentMethodID

Returns primary keys of PaymentMethodCustomerGroup by primary key element PaymentMethodID.

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

InsertPaymentMethodCustomerGroup

Creates an entry of PaymentMethodCustomerGroup.

Syntax
InsertPaymentMethodCustomerGroup($hPaymentMethodCustomerGroup);
Input
$hPaymentMethodCustomerGroup (reference to hash)
with following keys:
  • PaymentMethodID - payment method id (part of primary key)- int
  • CustomerGroupID - customer group id (part of primary key)- int

OnDeleteCustomerGroup

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

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