The DeliveryAddress and Items are properties of the Delivery class passed into the GetPrice Method. So you would do something like the following:
public decimal GetPrice(Delivery delivery, string currencyCode)
{
decimal price;
//check if we have selected a shipping option
if (delivery.ShippingOption != null)
{
// Check if we are using the Standard service
if (delivery.ShippingOption.ShippingOptionCarrierServiceName == "Standard")
{
// Get shipping address country
var country =
CountryInfoProvider.GetCountryInfo(delivery.DeliveryAddress.AddressCountryID);
// lookup the shipping based on country here
price = GetUPSPriceByCountry(country.CountryThreeLetterCode);
}
}
return price;
}