ePages 6.17.17 - DE_EPAGES/Payment/API/Table/PaymentMethodPriceLimit.pm

Package DE_EPAGES::Payment::API::Table::PaymentMethodPriceLimit

interface for table PaymentMethodPriceLimit

@EXPORT_OK
InsertPaymentMethodPriceLimit
UpdatePaymentMethodPriceLimit
DeletePaymentMethodPriceLimit
GetAllPKeyPaymentMethodPriceLimits
GetAllInfoPaymentMethodPriceLimits
GetInfoPaymentMethodPriceLimit
ExistsPaymentMethodPriceLimit
GetPKeyPaymentMethodPriceLimitsByPaymentMethodID
GetInfoPaymentMethodPriceLimitsByPaymentMethodID
GetPKeyPaymentMethodPriceLimitsByCurrencyID
GetInfoPaymentMethodPriceLimitsByCurrencyID

Functions

DeletePaymentMethodPriceLimit
ExistsPaymentMethodPriceLimit
GetAllInfoPaymentMethodPriceLimits
GetAllPKeyPaymentMethodPriceLimits
GetInfoPaymentMethodPriceLimit
GetInfoPaymentMethodPriceLimitsByCurrencyID
GetInfoPaymentMethodPriceLimitsByPaymentMethodID
GetPKeyPaymentMethodPriceLimitsByCurrencyID
GetPKeyPaymentMethodPriceLimitsByPaymentMethodID
InsertPaymentMethodPriceLimit
OnDeleteCurrency
UpdatePaymentMethodPriceLimit

DeletePaymentMethodPriceLimit

Deletes a(n) PaymentMethodPriceLimit.

Syntax
DeletePaymentMethodPriceLimit($PaymentMethodID, $CurrencyID);
DeletePaymentMethodPriceLimit($hPaymentMethodPriceLimit);
Input
$PaymentMethodID (int)
payment method id (part of primary key)
$CurrencyID (char(3))
alpha currency code (ISO 4217) (part of primary key)

ExistsPaymentMethodPriceLimit

Returns true if the PaymentMethodPriceLimit exists.

Syntax
$exists = ExistsPaymentMethodPriceLimit($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 PaymentMethodPriceLimit exists (yes/no)

GetAllInfoPaymentMethodPriceLimits

Returns all objects of PaymentMethodPriceLimit.

Syntax
$ahPaymentMethodPriceLimits = GetAllInfoPaymentMethodPriceLimits();
Return
$ahPaymentMethodPriceLimits (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)
  • MinPriceValue - min price amount (optional)- money
  • MaxPriceValue - max price amount (optional)- money

GetAllPKeyPaymentMethodPriceLimits

Returns all PaymentMethodPriceLimit identifiers.

Syntax
$ahPaymentMethodPriceLimitIDs = GetAllPKeyPaymentMethodPriceLimits();
Return
$ahPaymentMethodPriceLimitIDs (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)

GetInfoPaymentMethodPriceLimit

Returns the PaymentMethodPriceLimit by identifier.

Syntax
$hPaymentMethodPriceLimit = GetInfoPaymentMethodPriceLimit($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
$hPaymentMethodPriceLimit (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)
  • MinPriceValue - min price amount (optional)- money
  • MaxPriceValue - max price amount (optional)- money

GetInfoPaymentMethodPriceLimitsByCurrencyID

Returns objects of PaymentMethodPriceLimit by alternate key CurrencyID.

Syntax
$ahPaymentMethodPriceLimits = GetInfoPaymentMethodPriceLimitsByCurrencyID($CurrencyID);
Input
$CurrencyID (char(3))
alpha currency code (ISO 4217)
Return
$ahPaymentMethodPriceLimits (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)
  • MinPriceValue - min price amount (optional)- money
  • MaxPriceValue - max price amount (optional)- money

GetInfoPaymentMethodPriceLimitsByPaymentMethodID

Returns objects of PaymentMethodPriceLimit by primary key element PaymentMethodID.

Syntax
$ahPaymentMethodPriceLimits = GetInfoPaymentMethodPriceLimitsByPaymentMethodID($PaymentMethodID);
Input
$PaymentMethodID (int)
payment method id
Return
$ahPaymentMethodPriceLimits (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)
  • MinPriceValue - min price amount (optional)- money
  • MaxPriceValue - max price amount (optional)- money

GetPKeyPaymentMethodPriceLimitsByCurrencyID

Returns primary keys of PaymentMethodPriceLimit by alternate key CurrencyID.

Syntax
$ahKeys = GetPKeyPaymentMethodPriceLimitsByCurrencyID($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)

GetPKeyPaymentMethodPriceLimitsByPaymentMethodID

Returns primary keys of PaymentMethodPriceLimit by primary key element PaymentMethodID.

Syntax
$ahKeys = GetPKeyPaymentMethodPriceLimitsByPaymentMethodID($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)

InsertPaymentMethodPriceLimit

Creates an entry of PaymentMethodPriceLimit.

Syntax
InsertPaymentMethodPriceLimit($hPaymentMethodPriceLimit);
Input
$hPaymentMethodPriceLimit (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)
  • MinPriceValue - min price amount (optional)- money
  • MaxPriceValue - max price amount (optional)- money

OnDeleteCurrency

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

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

UpdatePaymentMethodPriceLimit

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

Syntax
UpdatePaymentMethodPriceLimit($PaymentMethodID, $CurrencyID, $hPaymentMethodPriceLimit);
UpdatePaymentMethodPriceLimit($hPaymentMethodPriceLimit);
Input
$PaymentMethodID (int)
payment method id (part of primary key)
$CurrencyID (char(3))
alpha currency code (ISO 4217) (part of primary key)
$hPaymentMethodPriceLimit (reference to hash)
with following keys:
  • MinPriceValue - min price amount (optional)- money
  • MaxPriceValue - max price amount (optional)- money