ePages 7.37.0 - DE_EPAGES/Order/API/BasketAddress.pm

Package DE_EPAGES::Order::API::BasketAddress

Sets billing and shipping address in the basket

Functions

new
removeAddress
setAddress

new

Constructor

Syntax
new( $Basket );
Input
$Basket (DE_EPAGES::Order::API::Object::Basket)
basket
Return
$self (DE_EPAGES::Order::API::BasketAddress)
self

removeAddress

Deletes the address of the given type from the basket.

Syntax
removeAddress( $AddressTypePrefix );
Input
$AddressTypePrefix (String)
prefix of address type (Billing or Shipping)

setAddress

Sets the address of the given address type in the basket.

Syntax
setAddress( $hAddressData, $AddressTypePrefix );
Input
$hAddressData (ref_hash)
the address data
$AddressTypePrefix (String)
prefix of address type (Billing or Shipping)