ePages 7.21.0 - DE_EPAGES/Payment/API/Table/PaymentMethodDiscount.pm

Package DE_EPAGES::Payment::API::Table::PaymentMethodDiscount

interface for table PaymentMethodDiscount

@EXPORT_OK
InsertPaymentMethodDiscount
UpdatePaymentMethodDiscount
DeletePaymentMethodDiscount
GetAllPKeyPaymentMethodDiscounts
GetAllInfoPaymentMethodDiscounts
GetInfoPaymentMethodDiscount
ExistsPaymentMethodDiscount
GetPKeyPaymentMethodDiscountsByPaymentMethodID
GetInfoPaymentMethodDiscountsByPaymentMethodID
GetPKeyPaymentMethodDiscountsByCurrencyID
GetInfoPaymentMethodDiscountsByCurrencyID

Functions

DeletePaymentMethodDiscount
ExistsPaymentMethodDiscount
GetAllInfoPaymentMethodDiscounts
GetAllPKeyPaymentMethodDiscounts
GetInfoPaymentMethodDiscount
GetInfoPaymentMethodDiscountsByCurrencyID
GetInfoPaymentMethodDiscountsByPaymentMethodID
GetPKeyPaymentMethodDiscountsByCurrencyID
GetPKeyPaymentMethodDiscountsByPaymentMethodID
InsertPaymentMethodDiscount
OnDeleteCurrency
UpdatePaymentMethodDiscount

DeletePaymentMethodDiscount

Deletes a(n) PaymentMethodDiscount.

Syntax
DeletePaymentMethodDiscount($PaymentMethodID, $CurrencyID);
DeletePaymentMethodDiscount($hPaymentMethodDiscount); # if $hPaymentMethodDiscount includes PaymentMethodID, CurrencyID
Input
$PaymentMethodID (int)
payment method id (part of primary key)
$CurrencyID (char(3))
alpha currency code (ISO 4217) (part of primary key)

ExistsPaymentMethodDiscount

Returns true if the PaymentMethodDiscount exists.

Syntax
$exists = ExistsPaymentMethodDiscount($PaymentMethodID, $CurrencyID);
Input
$PaymentMethodID (int)
payment method id (part of primary key)
$CurrencyID (char(3))
alpha currency code (ISO 4217) (part of primary key)
Return
$exists (boolean)
1/0 the PaymentMethodDiscount exists (yes/no)

GetAllInfoPaymentMethodDiscounts

Returns all objects of PaymentMethodDiscount.

Syntax
$ahPaymentMethodDiscounts = GetAllInfoPaymentMethodDiscounts();
Return
$ahPaymentMethodDiscounts (reference to array of hashes)
with following keys:
  • PaymentMethodID - payment method id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)
  • PriceValue - payment method discount price amount (optional)- money

GetAllPKeyPaymentMethodDiscounts

Returns all PaymentMethodDiscount identifiers.

Syntax
$ahPaymentMethodDiscountIDs = GetAllPKeyPaymentMethodDiscounts();
Return
$ahPaymentMethodDiscountIDs (reference to array of hashes)
with following keys:
  • PaymentMethodID - payment method id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)

GetInfoPaymentMethodDiscount

Returns the PaymentMethodDiscount by identifier.

Syntax
$hPaymentMethodDiscount = GetInfoPaymentMethodDiscount($PaymentMethodID, $CurrencyID);
Input
$PaymentMethodID (int)
payment method id (part of primary key)
$CurrencyID (char(3))
alpha currency code (ISO 4217) (part of primary key)
Return
$hPaymentMethodDiscount (reference to hash)
with following keys:
  • PaymentMethodID - payment method id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)
  • PriceValue - payment method discount price amount (optional)- money

GetInfoPaymentMethodDiscountsByCurrencyID

Returns objects of PaymentMethodDiscount by alternate key CurrencyID.

Syntax
$ahPaymentMethodDiscounts = GetInfoPaymentMethodDiscountsByCurrencyID($CurrencyID);
Input
$CurrencyID (char(3))
alpha currency code (ISO 4217)
Return
$ahPaymentMethodDiscounts (reference to array of hashes)
with following keys:
  • PaymentMethodID - payment method id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)
  • PriceValue - payment method discount price amount (optional)- money

GetInfoPaymentMethodDiscountsByPaymentMethodID

Returns objects of PaymentMethodDiscount by primary key element PaymentMethodID.

Syntax
$ahPaymentMethodDiscounts = GetInfoPaymentMethodDiscountsByPaymentMethodID($PaymentMethodID);
Input
$PaymentMethodID (int)
payment method id
Return
$ahPaymentMethodDiscounts (reference to array of hashes)
with following keys:
  • PaymentMethodID - payment method id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)
  • PriceValue - payment method discount price amount (optional)- money

GetPKeyPaymentMethodDiscountsByCurrencyID

Returns primary keys of PaymentMethodDiscount by alternate key CurrencyID.

Syntax
$ahKeys = GetPKeyPaymentMethodDiscountsByCurrencyID($CurrencyID);
Input
$CurrencyID (char(3))
alpha currency code (ISO 4217)
Return
$ahKeys (reference to array of hashes)
with following keys:
  • PaymentMethodID - payment method id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)

GetPKeyPaymentMethodDiscountsByPaymentMethodID

Returns primary keys of PaymentMethodDiscount by primary key element PaymentMethodID.

Syntax
$ahKeys = GetPKeyPaymentMethodDiscountsByPaymentMethodID($PaymentMethodID);
Input
$PaymentMethodID (int)
payment method id
Return
$ahKeys (reference to array of hashes)
with following keys:
  • PaymentMethodID - payment method id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)

InsertPaymentMethodDiscount

Creates an entry of PaymentMethodDiscount.

Syntax
InsertPaymentMethodDiscount($hPaymentMethodDiscount);
Input
$hPaymentMethodDiscount (reference to hash)
with following keys:
  • PaymentMethodID - payment method id (part of primary key)- int
  • CurrencyID - alpha currency code (ISO 4217) (part of primary key)- char(3)
  • PriceValue - payment method discount price amount (optional)- money

OnDeleteCurrency

Deletes PaymentMethodDiscount of this model when a(n) Currency is deleted.

Syntax
OnDeleteCurrency($hParams);
Input
$hParams (ref.hash.*)
primary key of object Currency, key is
  • CurrencyID

UpdatePaymentMethodDiscount

Updates a(n) PaymentMethodDiscount if any element was changed.

Syntax
UpdatePaymentMethodDiscount($PaymentMethodID, $CurrencyID, $hPaymentMethodDiscount);
UpdatePaymentMethodDiscount($hPaymentMethodDiscount); # if $hPaymentMethodDiscount includes PaymentMethodID, CurrencyID
Input
$PaymentMethodID (int)
payment method id (part of primary key)
$CurrencyID (char(3))
alpha currency code (ISO 4217) (part of primary key)
$hPaymentMethodDiscount (reference to hash)
with following keys:
  • PriceValue - payment method discount price amount (optional)- money