Click or drag to resize
Infosoft Logo

InfoWebXMLWebServiceCalculatePriceWithOffer2 Method

Calculates the price based on product, term, currency, discount, offer, number of copies, zip code and address object. The price value is to be found in the Price property of the InfoWebPrice object which is returned.

Namespace: Infosoft.Webservices
Assembly: Infosoft.Webservices (in Infosoft.Webservices.dll) Version: 4.00.0.0
Syntax
public InfoWebPrice CalculatePriceWithOffer2(
	string titleCode,
	string productCode,
	string termCode,
	string zipCode,
	string currencyCode,
	int numberOfCopies,
	string offerCode,
	InfoWebAddress address
)

Parameters

titleCode  String
The code for the subscription title
productCode  String
The product code
termCode  String
The term code
zipCode  String
The zip code
currencyCode  String
The currency code
numberOfCopies  Int32
Number of copies
offerCode  String
The offer code
address  InfoWebAddress
InfoWebAddress object

Return Value

InfoWebPrice
InfoWebPrice object with status code 00 if the price was calculated successfully. For other possible status codes, look under Remarks.
Remarks

Possible status codes:

    string titleCode = "VIN";
    string productCode = "V6";
    string termCode = "12";
    string zipCode = "0178";
    string currencyCode = "NOK";
    int numberOfCopies = 1;
    string offerCode = "DN50";
    
    // The customerAddress object is assumed to have been retrieved previously.
    InfoWebPrice priceObject = CalculatePriceWithOffer2(titleCode, productCode, termCode, zipCode, currencyCode, numberOfCopies, offerCode, customerAddress);
    if (priceObject.StatusCode == StatusCodes.OK)
    {
        decimal price = priceObject.Price;
    }
    else
    {
        // Show an error message based on another status code
    }
See Also