ePages 6.17.48 - DE_EPAGES/ExternalShipping/API/Table/ShippingMethodOptionPrice.pm

Package DE_EPAGES::ExternalShipping::API::Table::ShippingMethodOptionPrice

interface for table ShippingMethodOptionPrice

@EXPORT_OK
InsertShippingMethodOptionPrice
UpdateShippingMethodOptionPrice
DeleteShippingMethodOptionPrice
GetAllPKeyShippingMethodOptionPrices
GetAllInfoShippingMethodOptionPrices
GetInfoShippingMethodOptionPrice
ExistsShippingMethodOptionPrice
GetPKeyShippingMethodOptionPricesByShippingMethodID
GetInfoShippingMethodOptionPricesByShippingMethodID
GetPKeyShippingMethodOptionPricesByShippingFulFillmentOptionID
GetInfoShippingMethodOptionPricesByShippingFulFillmentOptionID
GetPKeyShippingMethodOptionPricesByCurrencyID
GetInfoShippingMethodOptionPricesByCurrencyID

Functions

DeleteShippingMethodOptionPrice
ExistsShippingMethodOptionPrice
GetAllInfoShippingMethodOptionPrices
GetAllPKeyShippingMethodOptionPrices
GetInfoShippingMethodOptionPrice
GetInfoShippingMethodOptionPricesByCurrencyID
GetInfoShippingMethodOptionPricesByShippingFulFillmentOptionID
GetInfoShippingMethodOptionPricesByShippingMethodID
GetPKeyShippingMethodOptionPricesByCurrencyID
GetPKeyShippingMethodOptionPricesByShippingFulFillmentOptionID
GetPKeyShippingMethodOptionPricesByShippingMethodID
InsertShippingMethodOptionPrice
OnDeleteCurrency
OnDeleteShippingMethod
UpdateShippingMethodOptionPrice

DeleteShippingMethodOptionPrice

Deletes a(n) ShippingMethodOptionPrice.

Syntax
DeleteShippingMethodOptionPrice($ShippingMethodID, $ShippingFulFillmentOptionID, $CurrencyID);
DeleteShippingMethodOptionPrice($hShippingMethodOptionPrice); # if $hShippingMethodOptionPrice includes ShippingMethodID, ShippingFulFillmentOptionID, CurrencyID
Input
$ShippingMethodID (int)
(part of primary key)
$ShippingFulFillmentOptionID (int)
(part of primary key)
$CurrencyID (char(3))
(part of primary key)

ExistsShippingMethodOptionPrice

Returns true if the ShippingMethodOptionPrice exists.

Syntax
$exists = ExistsShippingMethodOptionPrice($ShippingMethodID, $ShippingFulFillmentOptionID, $CurrencyID);
Input
$ShippingMethodID (int)
(part of primary key)
$ShippingFulFillmentOptionID (int)
(part of primary key)
$CurrencyID (char(3))
(part of primary key)
Return
$exists (boolean)
1/0 the ShippingMethodOptionPrice exists (yes/no)

GetAllInfoShippingMethodOptionPrices

Returns all objects of ShippingMethodOptionPrice.

Syntax
$ahShippingMethodOptionPrices = GetAllInfoShippingMethodOptionPrices();
Return
$ahShippingMethodOptionPrices (reference to array of hashes)
with following keys:
  • ShippingMethodID - (part of primary key)- int
  • ShippingFulFillmentOptionID - (part of primary key)- int
  • CurrencyID - (part of primary key)- char(3)
  • BaseValue - (optional)- money

GetAllPKeyShippingMethodOptionPrices

Returns all ShippingMethodOptionPrice identifiers.

Syntax
$ahShippingMethodOptionPriceIDs = GetAllPKeyShippingMethodOptionPrices();
Return
$ahShippingMethodOptionPriceIDs (reference to array of hashes)
with following keys:
  • ShippingMethodID - (part of primary key)- int
  • ShippingFulFillmentOptionID - (part of primary key)- int
  • CurrencyID - (part of primary key)- char(3)

GetInfoShippingMethodOptionPrice

Returns the ShippingMethodOptionPrice by identifier.

Syntax
$hShippingMethodOptionPrice = GetInfoShippingMethodOptionPrice($ShippingMethodID, $ShippingFulFillmentOptionID, $CurrencyID);
Input
$ShippingMethodID (int)
(part of primary key)
$ShippingFulFillmentOptionID (int)
(part of primary key)
$CurrencyID (char(3))
(part of primary key)
Return
$hShippingMethodOptionPrice (reference to hash)
with following keys:
  • ShippingMethodID - (part of primary key)- int
  • ShippingFulFillmentOptionID - (part of primary key)- int
  • CurrencyID - (part of primary key)- char(3)
  • BaseValue - (optional)- money

GetInfoShippingMethodOptionPricesByCurrencyID

Returns objects of ShippingMethodOptionPrice by alternate key CurrencyID.

Syntax
$ahShippingMethodOptionPrices = GetInfoShippingMethodOptionPricesByCurrencyID($CurrencyID);
Input
$CurrencyID (char(3))
Return
$ahShippingMethodOptionPrices (reference to array of hashes)
with following keys:
  • ShippingMethodID - (part of primary key)- int
  • ShippingFulFillmentOptionID - (part of primary key)- int
  • CurrencyID - (part of primary key)- char(3)
  • BaseValue - (optional)- money

GetInfoShippingMethodOptionPricesByShippingFulFillmentOptionID

Returns objects of ShippingMethodOptionPrice by alternate keys ShippingFulFillmentOptionID and CurrencyID.

Syntax
$ahShippingMethodOptionPrices = GetInfoShippingMethodOptionPricesByShippingFulFillmentOptionID($ShippingFulFillmentOptionID, $CurrencyID);
Input
$ShippingFulFillmentOptionID (int)
$CurrencyID (char(3))
(optional)
Return
$ahShippingMethodOptionPrices (reference to array of hashes)
with following keys:
  • ShippingMethodID - (part of primary key)- int
  • ShippingFulFillmentOptionID - (part of primary key)- int
  • CurrencyID - (part of primary key)- char(3)
  • BaseValue - (optional)- money

GetInfoShippingMethodOptionPricesByShippingMethodID

Returns objects of ShippingMethodOptionPrice by primary key element ShippingMethodID, ShippingFulFillmentOptionID.

Syntax
$ahShippingMethodOptionPrices = GetInfoShippingMethodOptionPricesByShippingMethodID($ShippingMethodID, $ShippingFulFillmentOptionID);
Input
$ShippingMethodID (int)
$ShippingFulFillmentOptionID (int)
(optional)
Return
$ahShippingMethodOptionPrices (reference to array of hashes)
with following keys:
  • ShippingMethodID - (part of primary key)- int
  • ShippingFulFillmentOptionID - (part of primary key)- int
  • CurrencyID - (part of primary key)- char(3)
  • BaseValue - (optional)- money

GetPKeyShippingMethodOptionPricesByCurrencyID

Returns primary keys of ShippingMethodOptionPrice by alternate key CurrencyID.

Syntax
$ahKeys = GetPKeyShippingMethodOptionPricesByCurrencyID($CurrencyID);
Input
$CurrencyID (char(3))
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ShippingMethodID - (part of primary key)- int
  • ShippingFulFillmentOptionID - (part of primary key)- int
  • CurrencyID - (part of primary key)- char(3)

GetPKeyShippingMethodOptionPricesByShippingFulFillmentOptionID

Returns primary keys of ShippingMethodOptionPrice by alternate keys ShippingFulFillmentOptionID and CurrencyID.

Syntax
$ahKeys = GetPKeyShippingMethodOptionPricesByShippingFulFillmentOptionID($ShippingFulFillmentOptionID, $CurrencyID);
Input
$ShippingFulFillmentOptionID (int)
$CurrencyID (char(3))
(optional)
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ShippingMethodID - (part of primary key)- int
  • ShippingFulFillmentOptionID - (part of primary key)- int
  • CurrencyID - (part of primary key)- char(3)

GetPKeyShippingMethodOptionPricesByShippingMethodID

Returns primary keys of ShippingMethodOptionPrice by primary key element ShippingMethodID, ShippingFulFillmentOptionID.

Syntax
$ahKeys = GetPKeyShippingMethodOptionPricesByShippingMethodID($ShippingMethodID, $ShippingFulFillmentOptionID);
Input
$ShippingMethodID (int)
$ShippingFulFillmentOptionID (int)
(optional)
Return
$ahKeys (reference to array of hashes)
with following keys:
  • ShippingMethodID - (part of primary key)- int
  • ShippingFulFillmentOptionID - (part of primary key)- int
  • CurrencyID - (part of primary key)- char(3)

InsertShippingMethodOptionPrice

Creates an entry of ShippingMethodOptionPrice.

Syntax
InsertShippingMethodOptionPrice($hShippingMethodOptionPrice);
Input
$hShippingMethodOptionPrice (reference to hash)
with following keys:
  • ShippingMethodID - (part of primary key)- int
  • ShippingFulFillmentOptionID - (part of primary key)- int
  • CurrencyID - (part of primary key)- char(3)
  • BaseValue - (optional)- money

OnDeleteCurrency

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

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

OnDeleteShippingMethod

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

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

UpdateShippingMethodOptionPrice

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

Syntax
UpdateShippingMethodOptionPrice($ShippingMethodID, $ShippingFulFillmentOptionID, $CurrencyID, $hShippingMethodOptionPrice);
UpdateShippingMethodOptionPrice($hShippingMethodOptionPrice); # if $hShippingMethodOptionPrice includes ShippingMethodID, ShippingFulFillmentOptionID, CurrencyID
Input
$ShippingMethodID (int)
(part of primary key)
$ShippingFulFillmentOptionID (int)
(part of primary key)
$CurrencyID (char(3))
(part of primary key)
$hShippingMethodOptionPrice (reference to hash)
with following keys:
  • BaseValue - (optional)- money