/// <summary>You can use the <postal-area> tag to identify any country /// in the world, including the United States. You can also specify /// regions by postal codes. /// </summary> /// <param name="countryCode">This tag contains the two-letter /// <a href="http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html">ISO 3166-1</a> /// country code for the postal area.</param> /// <param name="postalCodePattern">This tag identifies a postal code or /// a range of postal codes for the postal area. To specify a range of /// postal codes, use an asterisk as a wildcard operator in the tag's value. /// For example, you can specify that a shipping option is available for all /// postal codes beginning with "SW" by entering SW* as the /// <postal-code-pattern> value.</param> public void AddExcludedPostalArea(string countryCode, string postalCodePattern) { AutoGen.PostalArea area = new GCheckout.AutoGen.PostalArea(); area.countrycode = countryCode; if (postalCodePattern != null && postalCodePattern.Length > 0) { area.postalcodepattern = postalCodePattern; } AddNewExcludedArea(area); }
/// <summary>You can use the <postal-area> tag to identify any country /// in the world, including the United States. You can also specify /// regions by postal codes. /// </summary> /// <param name="countryCode">This tag contains the two-letter /// <a href="http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html">ISO 3166-1</a> /// country code for the postal area.</param> /// <param name="postalCodePattern">This tag identifies a postal code or /// a range of postal codes for the postal area. To specify a range of /// postal codes, use an asterisk as a wildcard operator in the tag's value. /// For example, you can specify that a shipping option is available for all /// postal codes beginning with "SW" by entering SW* as the /// <postal-code-pattern> value.</param> public void AddExcludedPostalArea(string countryCode, string postalCodePattern) { AutoGen.PostalArea area = new GCheckout.AutoGen.PostalArea(); area.countrycode = countryCode; if (postalCodePattern != null && postalCodePattern.Length > 0) area.postalcodepattern = postalCodePattern; AddNewExcludedArea(area); }