public static ForecastRevisionType Create() { var doc = new ForecastRevisionType { UBLVersionID = "2.1", ProfileID = "bpid:urn:oasis:names:draft:bpss:ubl-2-sbs-credit-notification-draft", ID = "OFR_758494", CopyIndicator = false, UUID = "349ABBAE-DF9D-40B4-849F-94C5FF9D1AF4", IssueDate = "2002-02-10", IssueTime = "12:00:01.000", Note = new TextType[] { new TextType { Value = "sample" } }, SequenceNumberID = "1", RevisionStatusCode = "NEW", PurposeCode = "ORDER_FORECAST", ForecastPeriod = new PeriodType { StartDate = "2005-02-26", EndDate = "2005-12-26" }, SenderParty = new PartyType { PartyIdentification = new PartyIdentificationType[] { new PartyIdentificationType { ID = "6903148000007" } }, PartyName = new PartyNameType[] { new PartyNameType { Name = "Consortial" } }, PostalAddress = new AddressType { StreetName = "Busy Street", BuildingName = "Thereabouts", BuildingNumber = "56A", CityName = "Farthing", PostalZone = "AA99 1BB", CountrySubentity = "Heremouthshire", AddressLine = new AddressLineType[] { new AddressLineType { Line = "The Roundabout" } }, Country = new CountryType { IdentificationCode = "GB" } }, PartyTaxScheme = new PartyTaxSchemeType[] { new PartyTaxSchemeType { RegistrationName = "Farthing Purchasing Consortium", CompanyID = "175 269 2355", ExemptionReason = new TextType[] { new TextType { Value = "N/A" } }, TaxScheme = new TaxSchemeType { ID = "VAT", TaxTypeCode = "VAT" } } }, Contact = new ContactType { Name = "Mrs Bouquet", Telephone = "0158 1233714", Telefax = "0158 1233856", ElectronicMail = "*****@*****.**" } }, ReceiverParty = new PartyType { PartyIdentification = new PartyIdentificationType[] { new PartyIdentificationType { ID = "2203148000007" } }, PartyName = new PartyNameType[] { new PartyNameType { Name = "IYT Corporation" } }, PostalAddress = new AddressType { StreetName = "Avon Way", BuildingName = "Thereabouts", BuildingNumber = "56A", CityName = "Bridgtow", PostalZone = "ZZ99 1ZZ", CountrySubentity = "Avon", AddressLine = new AddressLineType[] { new AddressLineType { Line = "3rd Floor, Room 5" } }, Country = new CountryType { IdentificationCode = "GB" } }, PartyTaxScheme = new PartyTaxSchemeType[] { new PartyTaxSchemeType { RegistrationName = "Bridgtow District Council", CompanyID = "12356478", ExemptionReason = new TextType[] { new TextType { Value = "Local Authority" } }, TaxScheme = new TaxSchemeType { ID = "UK VAT", TaxTypeCode = "VAT" } } }, Contact = new ContactType { Name = "Mr Fred Churchill", Telephone = "0127 2653214", Telefax = "0127 2653215", ElectronicMail = "*****@*****.**" } }, BuyerCustomerParty = new CustomerPartyType { Party = new PartyType { PartyIdentification = new PartyIdentificationType[] { new PartyIdentificationType { ID = "0012345000359" } } } }, SellerSupplierParty = new SupplierPartyType { Party = new PartyType { PartyIdentification = new PartyIdentificationType[] { new PartyIdentificationType { ID = "0012345000058" } } } }, ForecastRevisionLine = new ForecastRevisionLineType[] { new ForecastRevisionLineType { SourceForecastIssueDate = "2005-02-17", SourceForecastIssueTime = "10:00:00.000", AdjustmentReasonCode = "REVISED_PROMOTION", ForecastPeriod = new PeriodType { StartDate = "2005-02-26", EndDate = "2005-12-26" }, SalesItem = new SalesItemType { Quantity = new QuantityType { unitCode = "KGM", Value = 20M }, Item = new ItemType { Description = new TextType[] { new TextType { Value = "Acme beeswax" } }, Name = "beeswax", BuyersItemIdentification = new ItemIdentificationType { ID = "6578489" }, SellersItemIdentification = new ItemIdentificationType { ID = "17589683" } } } } } }; doc.Xmlns = new System.Xml.Serialization.XmlSerializerNamespaces(new[] { new XmlQualifiedName("cac", "urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"), new XmlQualifiedName("cbc", "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"), }); return(doc); }
public static ForecastRevisionType Create() { var doc = new ForecastRevisionType { UBLVersionID = "2.1", ProfileID = "bpid:urn:oasis:names:draft:bpss:ubl-2-sbs-credit-notification-draft", ID = "OFR_758494", CopyIndicator = false, UUID = "349ABBAE-DF9D-40B4-849F-94C5FF9D1AF4", IssueDate = "2002-02-10", IssueTime = "12:00:01.000", Note = new TextType[] { new TextType { Value = "sample" } }, SequenceNumberID = "1", RevisionStatusCode = "NEW", PurposeCode = "ORDER_FORECAST", ForecastPeriod = new PeriodType { StartDate = "2005-02-26", EndDate = "2005-12-26" }, SenderParty = new PartyType { PartyIdentification = new PartyIdentificationType[] { new PartyIdentificationType { ID = "6903148000007" } }, PartyName = new PartyNameType[] { new PartyNameType { Name = "Consortial" } }, PostalAddress = new AddressType { StreetName = "Busy Street", BuildingName = "Thereabouts", BuildingNumber = "56A", CityName = "Farthing", PostalZone = "AA99 1BB", CountrySubentity = "Heremouthshire", AddressLine = new AddressLineType[] { new AddressLineType { Line = "The Roundabout" } }, Country = new CountryType { IdentificationCode = "GB" } }, PartyTaxScheme = new PartyTaxSchemeType[] { new PartyTaxSchemeType { RegistrationName = "Farthing Purchasing Consortium", CompanyID = "175 269 2355", ExemptionReason = new TextType[] { new TextType { Value = "N/A" } }, TaxScheme = new TaxSchemeType { ID = "VAT", TaxTypeCode = "VAT" } } }, Contact = new ContactType { Name = "Mrs Bouquet", Telephone = "0158 1233714", Telefax = "0158 1233856", ElectronicMail = "*****@*****.**" } }, ReceiverParty = new PartyType { PartyIdentification = new PartyIdentificationType[] { new PartyIdentificationType { ID = "2203148000007" } }, PartyName = new PartyNameType[] { new PartyNameType { Name = "IYT Corporation" } }, PostalAddress = new AddressType { StreetName = "Avon Way", BuildingName = "Thereabouts", BuildingNumber = "56A", CityName = "Bridgtow", PostalZone = "ZZ99 1ZZ", CountrySubentity = "Avon", AddressLine = new AddressLineType[] { new AddressLineType { Line = "3rd Floor, Room 5" } }, Country = new CountryType { IdentificationCode = "GB" } }, PartyTaxScheme = new PartyTaxSchemeType[] { new PartyTaxSchemeType { RegistrationName = "Bridgtow District Council", CompanyID = "12356478", ExemptionReason = new TextType[] { new TextType { Value = "Local Authority" } }, TaxScheme = new TaxSchemeType { ID = "UK VAT", TaxTypeCode = "VAT" } } }, Contact = new ContactType { Name = "Mr Fred Churchill", Telephone = "0127 2653214", Telefax = "0127 2653215", ElectronicMail = "*****@*****.**" } }, BuyerCustomerParty = new CustomerPartyType { Party = new PartyType { PartyIdentification = new PartyIdentificationType[] { new PartyIdentificationType { ID = "0012345000359" } } } }, SellerSupplierParty = new SupplierPartyType { Party = new PartyType { PartyIdentification = new PartyIdentificationType[] { new PartyIdentificationType { ID = "0012345000058" } } } }, ForecastRevisionLine = new ForecastRevisionLineType[] { new ForecastRevisionLineType { SourceForecastIssueDate = "2005-02-17", SourceForecastIssueTime = "10:00:00.000", AdjustmentReasonCode = "REVISED_PROMOTION", ForecastPeriod = new PeriodType { StartDate = "2005-02-26", EndDate = "2005-12-26" }, SalesItem = new SalesItemType { Quantity = new QuantityType { unitCode = "KGM", Value = 20M }, Item = new ItemType { Description = new TextType[] { new TextType { Value = "Acme beeswax" } }, Name = "beeswax", BuyersItemIdentification = new ItemIdentificationType { ID = "6578489" }, SellersItemIdentification = new ItemIdentificationType { ID = "17589683" } } } } } }; doc.Xmlns = new System.Xml.Serialization.XmlSerializerNamespaces(new[] { new XmlQualifiedName("cac","urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"), new XmlQualifiedName("cbc","urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"), }); return doc; }