public InvoiceType HeatherAndIssueData(string invoiceNumber, InvoiceDocumentTypeType invoiceDocumentType, InvoiceClassType invoiceClassType, DateTime issueDate, CurrencyCodeType invoiceCurrencyCode, LanguageCodeType languageCodeType) { this.InvoiceHeader = new InvoiceHeaderType() { InvoiceNumber = invoiceNumber, InvoiceDocumentType = invoiceDocumentType, InvoiceClass = invoiceClassType }; this.InvoiceIssueData = new InvoiceIssueDataType() { IssueDate = issueDate, TaxCurrencyCode = invoiceCurrencyCode, LanguageName = languageCodeType, InvoiceCurrencyCode = invoiceCurrencyCode }; this.TaxesOutputs = new TaxOutputType[] { }; this.InvoiceTotals = new InvoiceTotalsType(); this.InvoiceTotals.InvoiceTotal = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalGrossAmount = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalGeneralDiscounts = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalGeneralSurcharges = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalGrossAmountBeforeTaxes = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalTaxOutputs = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalTaxesWithheld = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalOutstandingAmount = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalExecutableAmount = new DoubleTwoDecimalType(); //invoice.InvoiceIssueData.InvoicingPeriod = new PeriodDates() { StartDate = invoicingPeriodStartDate, EndDate = invoicingPeriodEndDate }; return this; }
public InvoiceType HeatherAndIssueData(string invoiceNumber, InvoiceDocumentTypeType invoiceDocumentType, InvoiceClassType invoiceClassType, DateTime issueDate, CurrencyCodeType invoiceCurrencyCode, LanguageCodeType languageCodeType) { this.InvoiceHeader = new InvoiceHeaderType() { InvoiceNumber = invoiceNumber, InvoiceDocumentType = invoiceDocumentType, InvoiceClass = invoiceClassType }; this.InvoiceIssueData = new InvoiceIssueDataType() { IssueDate = issueDate, TaxCurrencyCode = invoiceCurrencyCode, LanguageName = languageCodeType, InvoiceCurrencyCode = invoiceCurrencyCode }; this.TaxesOutputs = new TaxOutputType[] { }; this.InvoiceTotals = new InvoiceTotalsType(); this.InvoiceTotals.InvoiceTotal = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalGrossAmount = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalGeneralDiscounts = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalGeneralSurcharges = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalGrossAmountBeforeTaxes = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalTaxOutputs = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalTaxesWithheld = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalOutstandingAmount = new DoubleTwoDecimalType(); this.InvoiceTotals.TotalExecutableAmount = new DoubleTwoDecimalType(); //invoice.InvoiceIssueData.InvoicingPeriod = new PeriodDates() { StartDate = invoicingPeriodStartDate, EndDate = invoicingPeriodEndDate }; return(this); }
/// <summary> /// Sets the invoice language /// </summary> /// <param name="invoice">The invoice</param> /// <param name="language">The invoice language</param> /// <returns></returns> public InvoiceType SetLanguage(LanguageCodeType language) { this.InvoiceIssueData.LanguageName = language; return(this); }
/// <summary> /// Sets the invoice language. /// </summary> /// <param name="language">The invoice language.</param> /// <returns></returns> public InvoiceType SetLanguage(LanguageCodeType language) { this.InvoiceIssueData.LanguageName = language; return this; }
public void SetLanguageCode(LanguageCodeType type) { languageCode = Enum.GetName(typeof(LanguageCodeType), type).Replace("_", "-"); }