/// <summary> /// Initializes a new instance of the <see cref="CustomsItem" /> class. /// </summary> /// <param name="brand">brand.</param> /// <param name="condition">condition.</param> /// <param name="description">description (required).</param> /// <param name="eccn">eccn.</param> /// <param name="hazmats">hazmats.</param> /// <param name="hSTariffCode">hSTariffCode.</param> /// <param name="hSTariffCodeCountry">hSTariffCodeCountry.</param> /// <param name="identifiers">identifiers.</param> /// <param name="imageURL">imageURL.</param> /// <param name="itemDimension">itemDimension.</param> /// <param name="itemId">itemId (required).</param> /// <param name="manufacturer">manufacturer.</param> /// <param name="netCostMethod">netCostMethod.</param> /// <param name="originCountryCode">originCountryCode (required).</param> /// <param name="originStateProvince">originStateProvince.</param> /// <param name="preferenceCriterion">preferenceCriterion.</param> /// <param name="producerAddress">producerAddress.</param> /// <param name="producerDetermination">producerDetermination.</param> /// <param name="producerId">producerId.</param> /// <param name="quantity">quantity (required).</param> /// <param name="quantityUOM">quantityUOM.</param> /// <param name="unitPrice">unitPrice (required).</param> /// <param name="unitWeight">unitWeight (required).</param> /// <param name="url">url.</param> public CustomsItem(string brand = default(string), string condition = default(string), string description = default(string), string eccn = default(string), List <string> hazmats = default(List <string>), string hSTariffCode = default(string), string hSTariffCodeCountry = default(string), List <CrossBorderQuotesRequestIdentifiers> identifiers = default(List <CrossBorderQuotesRequestIdentifiers>), List <string> imageURL = default(List <string>), CrossBorderQuotesRequestItemDimension itemDimension = default(CrossBorderQuotesRequestItemDimension), string itemId = default(string), string manufacturer = default(string), NetCostMethodEnum?netCostMethod = default(NetCostMethodEnum?), string originCountryCode = default(string), string originStateProvince = default(string), PreferenceCriterionEnum?preferenceCriterion = default(PreferenceCriterionEnum?), Address producerAddress = default(Address), ProducerDeterminationEnum?producerDetermination = default(ProducerDeterminationEnum?), string producerId = default(string), int quantity = default(int), string quantityUOM = default(string), decimal unitPrice = default(decimal), ParcelWeight unitWeight = default(ParcelWeight), string url = default(string)) { // to ensure "description" is required (not null) if (description == null) { throw new InvalidDataException("description is a required property for CustomsItem and cannot be null"); } else { this.Description = description; } // to ensure "itemId" is required (not null) if (itemId == null) { throw new InvalidDataException("itemId is a required property for CustomsItem and cannot be null"); } else { this.ItemId = itemId; } // to ensure "originCountryCode" is required (not null) if (originCountryCode == null) { throw new InvalidDataException("originCountryCode is a required property for CustomsItem and cannot be null"); } else { this.OriginCountryCode = originCountryCode; } // to ensure "quantity" is required (not null) if (quantity == null) { throw new InvalidDataException("quantity is a required property for CustomsItem and cannot be null"); } else { this.Quantity = quantity; } // to ensure "unitPrice" is required (not null) if (unitPrice == null) { throw new InvalidDataException("unitPrice is a required property for CustomsItem and cannot be null"); } else { this.UnitPrice = unitPrice; } // to ensure "unitWeight" is required (not null) if (unitWeight == null) { throw new InvalidDataException("unitWeight is a required property for CustomsItem and cannot be null"); } else { this.UnitWeight = unitWeight; } this.Brand = brand; this.Condition = condition; this.Eccn = eccn; this.Hazmats = hazmats; this.HSTariffCode = hSTariffCode; this.HSTariffCodeCountry = hSTariffCodeCountry; this.Identifiers = identifiers; this.ImageURL = imageURL; this.ItemDimension = itemDimension; this.ItemId = itemId; this.Manufacturer = manufacturer; this.NetCostMethod = netCostMethod; this.OriginStateProvince = originStateProvince; this.PreferenceCriterion = preferenceCriterion; this.ProducerAddress = producerAddress; this.ProducerDetermination = producerDetermination; this.ProducerId = producerId; this.QuantityUOM = quantityUOM; this.Url = url; }
/// <summary> /// Initializes a new instance of the <see cref="CrossBorderQuotesRequestBasketItems" /> class. /// </summary> /// <param name="itemId">itemId.</param> /// <param name="categories">categories.</param> /// <param name="description">description.</param> /// <param name="longDescription">longDescription.</param> /// <param name="unitWeight">unitWeight.</param> /// <param name="itemDimension">itemDimension.</param> /// <param name="url">url.</param> /// <param name="quantity">quantity.</param> /// <param name="unitPrice">unitPrice.</param> /// <param name="originCountryCode">originCountryCode.</param> /// <param name="parentIdentifier">parentIdentifier.</param> /// <param name="childIdentifier">childIdentifier.</param> /// <param name="kit">kit.</param> /// <param name="kitIdentifier">kitIdentifier.</param> /// <param name="kitQuantity">kitQuantity.</param> /// <param name="manufacturer">manufacturer.</param> /// <param name="brand">brand.</param> /// <param name="eccn">eccn.</param> /// <param name="enabled">enabled.</param> /// <param name="pricing">pricing.</param> /// <param name="hSTariffCode">hSTariffCode.</param> /// <param name="hSTariffCodeCountry">hSTariffCodeCountry.</param> /// <param name="identifiers">identifiers.</param> /// <param name="imageUrls">imageUrls.</param> /// <param name="shipsAlone">shipsAlone.</param> /// <param name="attributes">attributes.</param> /// <param name="hazmats">hazmats.</param> public CrossBorderQuotesRequestBasketItems(string itemId = default(string), List <CrossBorderQuotesRequestCategories> categories = default(List <CrossBorderQuotesRequestCategories>), string description = default(string), string longDescription = default(string), CrossBorderQuotesRequestUnitWeight unitWeight = default(CrossBorderQuotesRequestUnitWeight), CrossBorderQuotesRequestItemDimension itemDimension = default(CrossBorderQuotesRequestItemDimension), string url = default(string), int quantity = default(int), decimal unitPrice = default(decimal), string originCountryCode = default(string), string parentIdentifier = default(string), string childIdentifier = default(string), string kit = default(string), string kitIdentifier = default(string), string kitQuantity = default(string), string manufacturer = default(string), string brand = default(string), string eccn = default(string), bool enabled = default(bool), CrossBorderQuotesRequestPricing pricing = default(CrossBorderQuotesRequestPricing), string hSTariffCode = default(string), string hSTariffCodeCountry = default(string), List <CrossBorderQuotesRequestIdentifiers> identifiers = default(List <CrossBorderQuotesRequestIdentifiers>), List <string> imageUrls = default(List <string>), bool shipsAlone = default(bool), List <CrossBorderQuotesRequestAttributes> attributes = default(List <CrossBorderQuotesRequestAttributes>), List <string> hazmats = default(List <string>)) { this.ItemId = itemId; this.Categories = categories; this.Description = description; this.LongDescription = longDescription; this.UnitWeight = unitWeight; this.ItemDimension = itemDimension; this.Url = url; this.Quantity = quantity; this.UnitPrice = unitPrice; this.OriginCountryCode = originCountryCode; this.ParentIdentifier = parentIdentifier; this.ChildIdentifier = childIdentifier; this.Kit = kit; this.KitIdentifier = kitIdentifier; this.KitQuantity = kitQuantity; this.Manufacturer = manufacturer; this.Brand = brand; this.Eccn = eccn; this.Enabled = enabled; this.Pricing = pricing; this.HSTariffCode = hSTariffCode; this.HSTariffCodeCountry = hSTariffCodeCountry; this.Identifiers = identifiers; this.ImageUrls = imageUrls; this.ShipsAlone = shipsAlone; this.Attributes = attributes; this.Hazmats = hazmats; }