public ReceiptAdviceType() { this.receiptLineField = new ObservableCollection <ReceiptLineType>(); this.shipmentField = new ShipmentType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.despatchSupplierPartyField = new SupplierPartyType(); this.deliveryCustomerPartyField = new CustomerPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.despatchDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.orderReferenceField = new ObservableCollection <OrderReferenceType>(); this.lineCountNumericField = new LineCountNumericType(); this.noteField = new ObservableCollection <NoteType>(); this.receiptAdviceTypeCodeField = new ReceiptAdviceTypeCodeType(); this.documentStatusCodeField = new DocumentStatusCodeType(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public SupplierPartyType getSupplierPartyType() { PartyType HPT = new PartyType(); NameType1 HNT1 = new NameType1(); HNT1.Value = $"<![CDATA[{MS.Emp.RazonSocial}]]>"; PartyNameType HPNT = new PartyNameType(); PartyNameType[] MPNT = { HPNT }; MPNT[0].Name = HNT1; IDType HIT = new IDType(); AddressType HAT = new AddressType(); AddressType[] MAT = { HAT }; HIT.Value = MS.Emp.Ubigeo; StreetNameType HSNT = new StreetNameType(); HSNT.Value = MS.Emp.DomicilioFiscal; CountryType HCT = new CountryType(); IdentificationCodeType HICT = new IdentificationCodeType(); HICT.listID = "PE"; HCT.IdentificationCode = HICT; PartyLegalEntityType HPLET = new PartyLegalEntityType(); PartyLegalEntityType[] MPLET = { HPLET }; RegistrationNameType HRNT = new RegistrationNameType(); HRNT.Value = $"<![CDATA[{MS.Emp.RazonSocial}]]>"; MPLET[0].RegistrationName = HRNT; HAT.ID = HIT; HAT.StreetName = HSNT; HAT.Country = HCT; HPT.PartyLegalEntity = MPLET; AdditionalAccountIDType HAAIT = new AdditionalAccountIDType(); AdditionalAccountIDType[] MAAIT = { HAAIT }; MAAIT[0].Value = "6"; CustomerAssignedAccountIDType CAAIDT = new CustomerAssignedAccountIDType(); CAAIDT.Value = MS.Emp.Ruc; SupplierPartyType HSPT = new SupplierPartyType(); HSPT.Party = HPT; HSPT.AdditionalAccountID = MAAIT; HSPT.CustomerAssignedAccountID = CAAIDT; return(HSPT); }
public RemittanceAdviceType() { this.remittanceAdviceLineField = new ObservableCollection <RemittanceAdviceLineType>(); this.taxTotalField = new ObservableCollection <TaxTotalType>(); this.paymentMeansField = new PaymentMeansType(); this.payeePartyField = new PartyType(); this.accountingSupplierPartyField = new SupplierPartyType(); this.accountingCustomerPartyField = new CustomerPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.billingReferenceField = new BillingReferenceType(); this.invoicePeriodField = new ObservableCollection <PeriodType>(); this.lineCountNumericField = new LineCountNumericType(); this.invoicingPartyReferenceField = new InvoicingPartyReferenceType(); this.payerReferenceField = new PayerReferenceType(); this.paymentOrderReferenceField = new PaymentOrderReferenceType(); this.totalPaymentAmountField = new TotalPaymentAmountType(); this.totalCreditAmountField = new TotalCreditAmountType(); this.totalDebitAmountField = new TotalDebitAmountType(); this.documentCurrencyCodeField = new DocumentCurrencyCodeType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public CatalogueDeletionType() { this.contractorCustomerPartyField = new CustomerPartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.providerPartyField = new PartyType(); this.receiverPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.referencedContractField = new ObservableCollection <ContractType>(); this.deletedCatalogueReferenceField = new CatalogueReferenceType(); this.validityPeriodField = new ObservableCollection <PeriodType>(); this.descriptionField = new ObservableCollection <DescriptionType>(); this.versionIDField = new VersionIDType(); this.noteField = new ObservableCollection <NoteType>(); this.effectiveTimeField = new EffectiveTimeType(); this.effectiveDateField = new EffectiveDateType(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.nameField = new NameType1(); this.uUIDField = new UUIDType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public ForecastType() { this.forecastLineField = new ObservableCollection <ForecastLineType>(); this.sellerSupplierPartyField = new SupplierPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.receiverPartyField = new PartyType(); this.senderPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.forecastPeriodField = new PeriodType(); this.forecastPurposeCodeField = new ForecastPurposeCodeType(); this.basedOnConsensusIndicatorField = new BasedOnConsensusIndicatorType(); this.versionIDField = new VersionIDType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public QuotationType() { this.quotationLineField = new ObservableCollection <QuotationLineType>(); this.quotedMonetaryTotalField = new MonetaryTotalType(); this.taxTotalField = new ObservableCollection <TaxTotalType>(); this.destinationCountryField = new CountryType(); this.allowanceChargeField = new ObservableCollection <AllowanceChargeType>(); this.transactionConditionsField = new TransactionConditionsType(); this.paymentMeansField = new PaymentMeansType(); this.deliveryTermsField = new DeliveryTermsType(); this.deliveryField = new ObservableCollection <DeliveryType>(); this.originatorCustomerPartyField = new CustomerPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.contractField = new ObservableCollection <ContractType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.requestForQuotationDocumentReferenceField = new DocumentReferenceType(); this.validityPeriodField = new PeriodType(); this.lineCountNumericField = new LineCountNumericType(); this.pricingCurrencyCodeField = new PricingCurrencyCodeType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public CatalogueRequestType() { this.catalogueRequestLineField = new ObservableCollection <CatalogueRequestLineType>(); this.requestedClassificationSchemeField = new ObservableCollection <ClassificationSchemeType>(); this.requestedLanguageField = new LanguageType(); this.applicableTerritoryAddressField = new ObservableCollection <AddressType>(); this.documentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.tradingTermsField = new TradingTermsType(); this.referencedContractField = new ObservableCollection <ContractType>(); this.requestedCatalogueReferenceField = new CatalogueReferenceType(); this.contractorCustomerPartyField = new CustomerPartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.providerPartyField = new PartyType(); this.receiverPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.validityPeriodField = new ObservableCollection <PeriodType>(); this.lineCountNumericField = new LineCountNumericType(); this.itemUpdateRequestIndicatorField = new ItemUpdateRequestIndicatorType(); this.pricingUpdateRequestIndicatorField = new PricingUpdateRequestIndicatorType(); this.descriptionField = new ObservableCollection <DescriptionType>(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.nameField = new NameType1(); this.uUIDField = new UUIDType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public FulfilmentCancellationType() { this.originatorCustomerPartyField = new CustomerPartyType(); this.despatchSupplierPartyField = new SupplierPartyType(); this.deliveryCustomerPartyField = new CustomerPartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.contractField = new ObservableCollection <ContractType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.orderReferenceField = new ObservableCollection <OrderReferenceType>(); this.receiptDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.despatchDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.cancellationNoteField = new ObservableCollection <CancellationNoteType>(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public OrderResponseSimpleType() { this.accountingCustomerPartyField = new CustomerPartyType(); this.accountingSupplierPartyField = new SupplierPartyType(); this.originatorCustomerPartyField = new CustomerPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.orderReferenceField = new OrderReferenceType(); this.accountingCostField = new AccountingCostType(); this.accountingCostCodeField = new AccountingCostCodeType(); this.customerReferenceField = new CustomerReferenceType(); this.rejectionNoteField = new ObservableCollection <RejectionNoteType>(); this.acceptedIndicatorField = new AcceptedIndicatorType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public RequestForQuotationType() { this.requestForQuotationLineField = new ObservableCollection <RequestForQuotationLineType>(); this.contractField = new ObservableCollection <ContractType>(); this.destinationCountryField = new CountryType(); this.deliveryTermsField = new ObservableCollection <DeliveryTermsType>(); this.deliveryField = new ObservableCollection <DeliveryType>(); this.buyerCustomerPartyField = new CustomerPartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.originatorCustomerPartyField = new CustomerPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.catalogueDocumentReferenceField = new DocumentReferenceType(); this.requestedValidityPeriodField = new PeriodType(); this.lineCountNumericField = new LineCountNumericType(); this.pricingCurrencyCodeField = new PricingCurrencyCodeType(); this.noteField = new ObservableCollection <NoteType>(); this.submissionDueDateField = new SubmissionDueDateType(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public ForecastRevisionType() { this.forecastRevisionLineField = new ObservableCollection <ForecastRevisionLineType>(); this.sellerSupplierPartyField = new SupplierPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.receiverPartyField = new PartyType(); this.senderPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.originalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.forecastPeriodField = new PeriodType(); this.purposeCodeField = new PurposeCodeType(); this.revisionStatusCodeField = new RevisionStatusCodeType(); this.sequenceNumberIDField = new SequenceNumberIDType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public StatementType() { this.statementLineField = new ObservableCollection <StatementLineType>(); this.taxTotalField = new ObservableCollection <TaxTotalType>(); this.allowanceChargeField = new ObservableCollection <AllowanceChargeType>(); this.paymentTermsField = new ObservableCollection <PaymentTermsType>(); this.paymentMeansField = new ObservableCollection <PaymentMeansType>(); this.payeePartyField = new PartyType(); this.originatorCustomerPartyField = new CustomerPartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.accountingCustomerPartyField = new CustomerPartyType(); this.accountingSupplierPartyField = new SupplierPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.statementPeriodField = new PeriodType(); this.statementTypeCodeField = new StatementTypeCodeType(); this.lineCountNumericField = new LineCountNumericType(); this.totalBalanceAmountField = new TotalBalanceAmountType(); this.totalCreditAmountField = new TotalCreditAmountType(); this.totalDebitAmountField = new TotalDebitAmountType(); this.documentCurrencyCodeField = new DocumentCurrencyCodeType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public CatalogueType() { this.catalogueLineField = new ObservableCollection <CatalogueLineType>(); this.tradingTermsField = new ObservableCollection <TradingTermsType>(); this.contractorCustomerPartyField = new CustomerPartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.receiverPartyField = new PartyType(); this.providerPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.documentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.sourceCatalogueReferenceField = new CatalogueReferenceType(); this.referencedContractField = new ObservableCollection <ContractType>(); this.validityPeriodField = new ObservableCollection <PeriodType>(); this.lineCountNumericField = new LineCountNumericType(); this.previousVersionIDField = new PreviousVersionIDType(); this.versionIDField = new VersionIDType(); this.descriptionField = new ObservableCollection <DescriptionType>(); this.noteField = new ObservableCollection <NoteType>(); this.revisionTimeField = new RevisionTimeType(); this.revisionDateField = new RevisionDateType(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.nameField = new NameType1(); this.actionCodeField = new ActionCodeType(); this.uUIDField = new UUIDType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public DespatchAdviceType() { this._despatchLine = new List <DespatchLineType>(); this._shipment = new ShipmentType(); this._originatorCustomerParty = new CustomerPartyType(); this._sellerSupplierParty = new SupplierPartyType(); this._buyerCustomerParty = new CustomerPartyType(); this._deliveryCustomerParty = new CustomerPartyType(); this._despatchSupplierParty = new SupplierPartyType(); this._signature = new List <SignatureType>(); this._additionalDocumentReference = new List <DocumentReferenceType>(); this._orderReference = new List <OrderReferenceType>(); this._lineCountNumeric = new LineCountNumericType(); this._note = new List <NoteType>(); this._despatchAdviceTypeCode = new DespatchAdviceTypeCodeType(); this._issueTime = new IssueTimeType(); this._issueDate = new IssueDateType(); this._uUID = new UUIDType(); this._copyIndicator = new CopyIndicatorType(); this._id = new IDType(); this._profileID = new ProfileIDType(); this._customizationID = new CustomizationIDType(); this._uBLVersionID = new UBLVersionIDType(); this._uBLExtensions = new List <UBLExtensionType>(); }
public RetailEventType() { this.miscellaneousEventField = new MiscellaneousEventType(); this.promotionalEventField = new PromotionalEventType(); this.eventCommentField = new ObservableCollection <EventCommentType>(); this.sellerSupplierPartyField = new SupplierPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.receiverPartyField = new PartyType(); this.senderPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.originalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.periodField = new PeriodType(); this.descriptionField = new ObservableCollection <DescriptionType>(); this.buyerEventIDField = new BuyerEventIDType(); this.sellerEventIDField = new SellerEventIDType(); this.retailEventStatusCodeField = new RetailEventStatusCodeType(); this.retailEventNameField = new RetailEventNameType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public CreditNoteType() { this._creditNoteLine = new List <CreditNoteLineType>(); this._legalMonetaryTotal = new MonetaryTotalType(); this._taxTotal = new List <TaxTotalType>(); this._allowanceCharge = new List <AllowanceChargeType>(); this._paymentAlternativeExchangeRate = new ExchangeRateType(); this._paymentExchangeRate = new ExchangeRateType(); this._pricingExchangeRate = new ExchangeRateType(); this._taxExchangeRate = new ExchangeRateType(); this._paymentTerms = new List <PaymentTermsType>(); this._paymentMeans = new List <PaymentMeansType>(); this._deliveryTerms = new List <DeliveryTermsType>(); this._delivery = new List <DeliveryType>(); this._taxRepresentativeParty = new PartyType(); this._sellerSupplierParty = new SupplierPartyType(); this._buyerCustomerParty = new CustomerPartyType(); this._payeeParty = new PartyType(); this._accountingCustomerParty = new CustomerPartyType(); this._accountingSupplierParty = new SupplierPartyType(); this._signature = new List <SignatureType>(); this._originatorDocumentReference = new List <DocumentReferenceType>(); this._statementDocumentReference = new List <DocumentReferenceType>(); this._additionalDocumentReference = new List <DocumentReferenceType>(); this._contractDocumentReference = new List <DocumentReferenceType>(); this._receiptDocumentReference = new List <DocumentReferenceType>(); this._despatchDocumentReference = new List <DocumentReferenceType>(); this._billingReference = new List <BillingReferenceType>(); this._orderReference = new OrderReferenceType(); this._discrepancyResponse = new List <ResponseType>(); this._invoicePeriod = new List <PeriodType>(); this._buyerReference = new BuyerReferenceType(); this._lineCountNumeric = new LineCountNumericType(); this._accountingCost = new AccountingCostType(); this._accountingCostCode = new AccountingCostCodeType(); this._paymentAlternativeCurrencyCode = new PaymentAlternativeCurrencyCodeType(); this._paymentCurrencyCode = new PaymentCurrencyCodeType(); this._pricingCurrencyCode = new PricingCurrencyCodeType(); this._taxCurrencyCode = new TaxCurrencyCodeType(); this._documentCurrencyCode = new DocumentCurrencyCodeType(); this._note = new List <NoteType>(); this._creditNoteTypeCode = new CreditNoteTypeCodeType(); this._taxPointDate = new TaxPointDateType(); this._issueTime = new IssueTimeType(); this._issueDate = new IssueDateType(); this._uUID = new UUIDType(); this._copyIndicator = new CopyIndicatorType(); this._id = new IDType(); this._profileExecutionID = new ProfileExecutionIDType(); this._profileID = new ProfileIDType(); this._customizationID = new CustomizationIDType(); this._uBLVersionID = new UBLVersionIDType(); this._uBLExtensions = new List <UBLExtensionType>(); }
public DebitNoteType() { this.debitNoteLineField = new ObservableCollection <DebitNoteLineType>(); this.requestedMonetaryTotalField = new MonetaryTotalType(); this.taxTotalField = new ObservableCollection <TaxTotalType>(); this.paymentAlternativeExchangeRateField = new ExchangeRateType(); this.paymentExchangeRateField = new ExchangeRateType(); this.pricingExchangeRateField = new ExchangeRateType(); this.taxExchangeRateField = new ExchangeRateType(); this.paymentTermsField = new ObservableCollection <PaymentTermsType>(); this.paymentMeansField = new ObservableCollection <PaymentMeansType>(); this.deliveryTermsField = new ObservableCollection <DeliveryTermsType>(); this.deliveryField = new ObservableCollection <DeliveryType>(); this.allowanceChargeField = new ObservableCollection <AllowanceChargeType>(); this.prepaidPaymentField = new ObservableCollection <PaymentType>(); this.taxRepresentativePartyField = new PartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.payeePartyField = new PartyType(); this.accountingCustomerPartyField = new CustomerPartyType(); this.accountingSupplierPartyField = new SupplierPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.contractDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.statementDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.receiptDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.despatchDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.billingReferenceField = new ObservableCollection <BillingReferenceType>(); this.orderReferenceField = new OrderReferenceType(); this.discrepancyResponseField = new ObservableCollection <ResponseType>(); this.invoicePeriodField = new ObservableCollection <PeriodType>(); this.lineCountNumericField = new LineCountNumericType(); this.accountingCostField = new AccountingCostType(); this.accountingCostCodeField = new AccountingCostCodeType(); this.paymentAlternativeCurrencyCodeField = new PaymentAlternativeCurrencyCodeType(); this.paymentCurrencyCodeField = new PaymentCurrencyCodeType(); this.pricingCurrencyCodeField = new PricingCurrencyCodeType(); this.taxCurrencyCodeField = new TaxCurrencyCodeType(); this.documentCurrencyCodeField = new DocumentCurrencyCodeType(); this.taxPointDateField = new TaxPointDateType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public OrderType() { this.orderLineField = new ObservableCollection <OrderLineType>(); this.anticipatedMonetaryTotalField = new MonetaryTotalType(); this.taxTotalField = new ObservableCollection <TaxTotalType>(); this.destinationCountryField = new CountryType(); this.paymentExchangeRateField = new ExchangeRateType(); this.pricingExchangeRateField = new ExchangeRateType(); this.taxExchangeRateField = new ExchangeRateType(); this.allowanceChargeField = new ObservableCollection <AllowanceChargeType>(); this.transactionConditionsField = new TransactionConditionsType(); this.paymentTermsField = new ObservableCollection <PaymentTermsType>(); this.paymentMeansField = new ObservableCollection <PaymentMeansType>(); this.deliveryTermsField = new ObservableCollection <DeliveryTermsType>(); this.deliveryField = new ObservableCollection <DeliveryType>(); this.accountingCustomerPartyField = new CustomerPartyType(); this.freightForwarderPartyField = new PartyType(); this.originatorCustomerPartyField = new CustomerPartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.projectReferenceField = new ObservableCollection <ProjectReferenceType>(); this.contractField = new ObservableCollection <ContractType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.catalogueReferenceField = new CatalogueReferenceType(); this.originatorDocumentReferenceField = new DocumentReferenceType(); this.orderDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.quotationDocumentReferenceField = new DocumentReferenceType(); this.validityPeriodField = new ObservableCollection <PeriodType>(); this.lineCountNumericField = new LineCountNumericType(); this.accountingCostField = new AccountingCostType(); this.accountingCostCodeField = new AccountingCostCodeType(); this.customerReferenceField = new CustomerReferenceType(); this.taxCurrencyCodeField = new TaxCurrencyCodeType(); this.pricingCurrencyCodeField = new PricingCurrencyCodeType(); this.documentCurrencyCodeField = new DocumentCurrencyCodeType(); this.requestedInvoiceCurrencyCodeField = new RequestedInvoiceCurrencyCodeType(); this.noteField = new ObservableCollection <NoteType>(); this.orderTypeCodeField = new OrderTypeCodeType(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.salesOrderIDField = new SalesOrderIDType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public InvoiceType() { this._invoiceLine = new List <InvoiceLineType>(); this._legalMonetaryTotal = new MonetaryTotalType(); //this._withholdingTaxTotal = new List<TaxTotalType>(); //this._taxTotal = new List<TaxTotalType>(); //this._paymentAlternativeExchangeRate = new ExchangeRateType(); //this._paymentExchangeRate = new ExchangeRateType(); //this._pricingExchangeRate = new ExchangeRateType(); //this._taxExchangeRate = new ExchangeRateType(); //this._allowanceCharge = new List<AllowanceChargeType>(); //this._paymentTerms = new PaymentTermsType(); //this._paymentMeans = new List<PaymentMeansType>(); //this._delivery = new List<DeliveryType>(); //this._taxRepresentativeParty = new PartyType(); //this._sellerSupplierParty = new SupplierPartyType(); //this._buyerCustomerParty = new CustomerPartyType(); this._accountingCustomerParty = new CustomerPartyType(); this._accountingSupplierParty = new SupplierPartyType(); this._signature = new List <SignatureType>(); //this._additionalDocumentReference = new List<DocumentReferenceType>(); //this._contractDocumentReference = new List<DocumentReferenceType>(); //this._originatorDocumentReference = new List<DocumentReferenceType>(); //this._receiptDocumentReference = new List<DocumentReferenceType>(); //this._despatchDocumentReference = new List<DocumentReferenceType>(); //this._billingReference = new List<BillingReferenceType>(); //this._orderReference = new OrderReferenceType(); this._invoicePeriod = new PeriodType(); this._lineCountNumeric = new LineCountNumericType(); //this._accountingCost = new AccountingCostType(); //this._paymentAlternativeCurrencyCode = new PaymentAlternativeCurrencyCodeType(); //this._paymentCurrencyCode = new PaymentCurrencyCodeType(); //this._pricingCurrencyCode = new PricingCurrencyCodeType(); //this._taxCurrencyCode = new TaxCurrencyCodeType(); this._documentCurrencyCode = new DocumentCurrencyCodeType(); //this._note = new List<NoteType>(); this._invoiceTypeCode = new InvoiceTypeCodeType(); this._issueTime = new IssueTimeType(); this._issueDate = new IssueDateType(); this._uUID = new UUIDType(); this._copyIndicator = new CopyIndicatorType(); this._id = new IDType(); }
public ReminderType() { this.reminderLineField = new ObservableCollection <ReminderLineType>(); this.legalMonetaryTotalField = new MonetaryTotalType(); this.taxTotalField = new ObservableCollection <TaxTotalType>(); this.paymentAlternativeExchangeRateField = new ExchangeRateType(); this.paymentExchangeRateField = new ExchangeRateType(); this.pricingExchangeRateField = new ExchangeRateType(); this.taxExchangeRateField = new ExchangeRateType(); this.allowanceChargeField = new ObservableCollection <AllowanceChargeType>(); this.prepaidPaymentField = new ObservableCollection <PaymentType>(); this.paymentTermsField = new ObservableCollection <PaymentTermsType>(); this.paymentMeansField = new ObservableCollection <PaymentMeansType>(); this.taxRepresentativePartyField = new PartyType(); this.payeePartyField = new PartyType(); this.accountingCustomerPartyField = new CustomerPartyType(); this.accountingSupplierPartyField = new SupplierPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.reminderPeriodField = new ObservableCollection <PeriodType>(); this.lineCountNumericField = new LineCountNumericType(); this.accountingCostField = new AccountingCostType(); this.accountingCostCodeField = new AccountingCostCodeType(); this.paymentAlternativeCurrencyCodeField = new PaymentAlternativeCurrencyCodeType(); this.paymentCurrencyCodeField = new PaymentCurrencyCodeType(); this.pricingCurrencyCodeField = new PricingCurrencyCodeType(); this.taxCurrencyCodeField = new TaxCurrencyCodeType(); this.documentCurrencyCodeField = new DocumentCurrencyCodeType(); this.taxPointDateField = new TaxPointDateType(); this.noteField = new ObservableCollection <NoteType>(); this.reminderSequenceNumericField = new ReminderSequenceNumericType(); this.reminderTypeCodeField = new ReminderTypeCodeType(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public InstructionForReturnsType() { this.instructionForReturnsLineField = new ObservableCollection <InstructionForReturnsLineType>(); this.shipmentField = new ShipmentType(); this.manufacturerPartyField = new PartyType(); this.retailerCustomerPartyField = new CustomerPartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.documentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public StockAvailabilityReportType() { this.stockAvailabilityReportLineField = new ObservableCollection<StockAvailabilityReportLineType>(); this.inventoryReportingPartyField = new PartyType(); this.retailerCustomerPartyField = new CustomerPartyType(); this.sellerSupplierPartyField = new SupplierPartyType(); this.signatureField = new ObservableCollection<SignatureType>(); this.documentReferenceField = new ObservableCollection<DocumentReferenceType>(); this.inventoryPeriodField = new PeriodType(); this.documentCurrencyCodeField = new DocumentCurrencyCodeType(); this.noteField = new ObservableCollection<NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection<UBLExtensionType>(); }
public ExceptionNotificationType() { this.exceptionNotificationLineField = new ObservableCollection <ExceptionNotificationLineType>(); this.sellerSupplierPartyField = new SupplierPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.receiverPartyField = new PartyType(); this.senderPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.documentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.exceptionObservationPeriodField = new PeriodType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
public TradeItemLocationProfileType() { this.itemManagementProfileField = new ObservableCollection <ItemManagementProfileType>(); this.sellerSupplierPartyField = new SupplierPartyType(); this.buyerCustomerPartyField = new CustomerPartyType(); this.receiverPartyField = new PartyType(); this.senderPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.documentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.periodField = new PeriodType(); this.profileStatusCodeField = new ProfileStatusCodeType(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.uUIDField = new UUIDType(); this.copyIndicatorField = new CopyIndicatorType(); this.idField = new IDType(); this.profileExecutionIDField = new ProfileExecutionIDType(); this.profileIDField = new ProfileIDType(); this.customizationIDField = new CustomizationIDType(); this.uBLVersionIDField = new UBLVersionIDType(); this.uBLExtensionsField = new ObservableCollection <UBLExtensionType>(); }
/// <summary> /// Obtiene la Informacion del Emisor para el Documento /// </summary> /// <typeparam name="TSunat">Documento SUNAT</typeparam> /// <param name="entidad">Entidad Doc</param> /// <returns>UBL SupplierPartyType</returns> public static SupplierPartyType GetInfoEmisor <TSunat>(SunatDocumentBase <TSunat> entidad) where TSunat : new() { var account = new SupplierPartyType { CustomerAssignedAccountID = entidad.RucEmisor, AdditionalAccountID = new IdentifierType[] { ((int)entidad.TipoDocumentoIdentidadEmisor).ToString() }, Party = new PartyType { PartyName = new PartyNameType[] { entidad.NombreComercialEmisor }, PartyLegalEntity = new[] { new PartyLegalEntityType { RegistrationName = entidad.NombreRazonSocialEmisor, } }, } }; return(account); }
private SupplierPartyType SupplierPartyType(TramaDocumento Doc) { try { string[] EN = Doc.EN.Split('|'); //proveedor SupplierPartyType accountingSupplierParty = new SupplierPartyType() { Party = new PartyType { PartyLegalEntity = new PartyLegalEntityType[] { new PartyLegalEntityType { RegistrationName = new RegistrationNameType { Value = EN[10].ToString() }, } }, PartyName = new PartyNameType[] { new PartyNameType { Name = new NameType1 { Value = EN[11].ToString() } } }, PartyTaxScheme = new PartyTaxSchemeType[] { new PartyTaxSchemeType { RegistrationName = new RegistrationNameType() { Value = EN[11].ToString() }, CompanyID = new CompanyIDType() { Value = EN[17].ToString(), schemeID = EN[17].ToString(), schemeName = "SUNAT:Identificador de Documento de Identidad", schemeAgencyName = ConstantesAtributo.PESUNAT, schemeURI = ConstantesAtributo.CATALOGO06 }, RegistrationAddress = new AddressType { AddressTypeCode = new AddressTypeCodeType() { Value = "0000" } } } }, PostalAddress = new AddressType { ID = new IDType { Value = "0001" }, District = new DistrictType { Value = EN[16].ToString() }, CityName = new CityNameType { Value = EN[14].ToString() }, StreetName = new StreetNameType { Value = "" }, CitySubdivisionName = new CitySubdivisionNameType { Value = "" }, Country = new CountryType { IdentificationCode = new IdentificationCodeType { Value = "" } }, CountrySubentity = new CountrySubentityType { Value = "" }, } }, AdditionalAccountID = new AdditionalAccountIDType[] { new AdditionalAccountIDType { Value = EN[8].ToString() } }, CustomerAssignedAccountID = new CustomerAssignedAccountIDType { Value = EN[8].ToString() } }; return(accountingSupplierParty); } catch (Exception) { throw; } }
void LlenarEmisor(En_Emisor Emisor, ref DebitNoteType debitNote) { WebsiteURIType EmisorPaginaWeb = new WebsiteURIType { Value = Emisor.PaginaWeb.Trim() }; List <PartyNameType> oListaNombreComercial = new List <PartyNameType>(); PartyNameType PartyName = new PartyNameType { Name = new NameType1 { Value = Emisor.NombreComercial.Trim() } }; oListaNombreComercial.Add(PartyName); PartyIdentificationType EmisorIdentificacion = new PartyIdentificationType(); List <PartyIdentificationType> EmisorListaIdentificacion = new List <PartyIdentificationType>(); EmisorIdentificacion.ID = new IDType { Value = Emisor.NumeroDocumentoIdentidad.Trim(), schemeAgencyID = "PE:SUNAT", schemeID = Emisor.TipoDocumentoIdentidad.Trim(), schemeName = "Documento de Identidad", schemeURI = "urn:pe:gob:sunat:cpe:see:gem:catalogos:catalogo06" }; EmisorListaIdentificacion.Add(EmisorIdentificacion); //Razon social PartyLegalEntityType oRazonSocial = new PartyLegalEntityType { RegistrationName = new RegistrationNameType { Value = Emisor.RazonSocial, }, RegistrationAddress = new AddressType { ID = new IDType { Value = Emisor.CodigoUbigeo.Trim(), schemeAgencyName = "PE:INEI", schemeName = "Ubigeos" }, AddressTypeCode = new AddressTypeCodeType { Value = Emisor.CodigoDomicilioFiscal.Trim(), listAgencyName = "PE:SUNAT", listName = "Establecimientos anexos" }, CitySubdivisionName = new CitySubdivisionNameType { Value = Emisor.Urbanizacion.Trim() }, CityName = new CityNameType { Value = Emisor.Provincia.Trim() }, CountrySubentity = new CountrySubentityType { Value = Emisor.Departamento.Trim() }, District = new DistrictType { Value = Emisor.Distrito.Trim() }, AddressLine = new AddressLineType[] { new AddressLineType { Line = new LineType { Value = Emisor.Direccion.Trim() } } }, Country = new CountryType { IdentificationCode = new IdentificationCodeType { listAgencyName = "United Nations Economic Commission for Europe", listID = "ISO 3166-1", listName = "Country", Value = Emisor.CodigoPais.Trim() } } } }; ContactType oContacto = new ContactType { ElectronicMail = new ElectronicMailType() { Value = Emisor.Contacto.Correo.Trim() }, Name = new NameType1 { Value = Emisor.Contacto.Nombre.Trim() }, Telephone = new TelephoneType { Value = Emisor.Contacto.Telefono.Trim() } }; SupplierPartyType oEmisor = new SupplierPartyType { Party = new PartyType { WebsiteURI = EmisorPaginaWeb, PartyIdentification = EmisorListaIdentificacion.ToArray(), PartyName = oListaNombreComercial.ToArray(), PartyLegalEntity = new PartyLegalEntityType[] { oRazonSocial }, Contact = oContacto } }; debitNote.AccountingSupplierParty = oEmisor; }
//Emisor #region AccountingSupplierParty private SupplierPartyType SupplierPartyType() { //Datos del Emisor SupplierPartyType accountingSupplierParty = new SupplierPartyType() { Party = new PartyType { PartyIdentification = new PartyIdentificationType[] { new PartyIdentificationType { ID = new IDType { Value = "20509992461", schemeID = "6", schemeName = "Documento de Identidad", schemeAgencyName = ConstantesAtributo.PESUNAT, schemeURI = ConstantesAtributo.CATALOGO06 } } }, PartyName = new PartyNameType[] { new PartyNameType { Name = new NameType1 { Value = "Nombre comercial del emisor electronico C an..1500" } } }, PartyLegalEntity = new PartyLegalEntityType[] { new PartyLegalEntityType { RegistrationName = new RegistrationNameType { Value = "Apellidos y nombres,denominación o razón social M an..1500" }, RegistrationAddress = new AddressType { AddressLine = new AddressLineType[] { new AddressLineType { Line = new LineType { Value = "Direccion completa y detallada" } } }, CitySubdivisionName = new CitySubdivisionNameType { Value = "Urbanizacion |an..25" }, CityName = new CityNameType { Value = "Provincia|an..30" }, ID = new IDType { Value = "Codigo de ubigeo |an6", schemeAgencyName = ConstantesAtributo.PEINEI, schemeName = "Ubigeos" }, CountrySubentity = new CountrySubentityType { Value = "Departamento|an..30" }, District = new DistrictType { Value = "Distrito |an..30" }, Country = new CountryType { IdentificationCode = new IdentificationCodeType { Value = "Codigo de Pais |an2", listID = "ISO 3166-1", listAgencyName = "United Nations Economic Commission for Europe", listName = "Country" } } } } }, //PartyTaxScheme = new PartyTaxSchemeType[] //{ // new PartyTaxSchemeType // { // RegistrationName = new RegistrationNameType() // { // Value=EN[11].ToString() // }, // CompanyID = new CompanyIDType() // { // Value = EN[17].ToString(), // schemeID=EN[17].ToString(), // schemeName="SUNAT:Identificador de Documento de Identidad", // schemeAgencyName = ConstantesAtributo.PESUNAT, // schemeURI= ConstantesAtributo.CATALOGO06 // }, // RegistrationAddress = new AddressType // { // AddressTypeCode = new AddressTypeCodeType() // { // Value="0000" // } // } // } //}, //PostalAddress = new AddressType //{ // ID = new IDType { Value = "0001" }, // District = new DistrictType { Value = EN[16].ToString() }, // CityName = new CityNameType { Value = EN[14].ToString() }, // StreetName = new StreetNameType { Value = "" }, // CitySubdivisionName = new CitySubdivisionNameType { Value = "" }, // Country = new CountryType // { // IdentificationCode = new IdentificationCodeType { Value = "" } // }, // CountrySubentity = new CountrySubentityType { Value = "" }, //} }, }; return(accountingSupplierParty); }
/// <summary> /// Mühtahsil Makbuz (Credit Note) UBL'inin DespatchSupplierParty alanını oluşturma /// </summary> /// <returns>DespatchSupplierParty Alanı</returns> private SupplierPartyType GetSupplierParty(string vknTckn, string parametre) { var mmSupplierParty = new SupplierPartyType { Party = new PartyType { WebsiteURI = new WebsiteURIType { Value = "web sitesi" }, PartyIdentification = new[] { new PartyIdentificationType { ID = new IDType { schemeID = parametre, Value = vknTckn } } }, PartyName = new PartyNameType { Name = new NameType1 { Value = "Kurum Adı" } }, PostalAddress = new AddressType { ID = new IDType { Value = "123" }, StreetName = new StreetNameType { Value = "Cadde" }, BuildingName = new BuildingNameType { Value = "Bina" }, BuildingNumber = new BuildingNumberType { Value = "Bina No" }, CitySubdivisionName = new CitySubdivisionNameType { Value = "İlçe/Semt" }, CityName = new CityNameType { Value = "Sehir" }, PostalZone = new PostalZoneType { Value = "Posta Kodu" }, Country = new CountryType { Name = new NameType1 { Value = "Ülke" } } }, PhysicalLocation = new LocationType1 { ID = new IDType { Value = "Depo Şube" }, Address = new AddressType { ID = new IDType { Value = "12345" }, StreetName = new StreetNameType { Value = "Cadde" }, BuildingName = new BuildingNameType { Value = "Bina" }, BuildingNumber = new BuildingNumberType { Value = "Bina no" }, CitySubdivisionName = new CitySubdivisionNameType { Value = "İlçe/Semt" }, CityName = new CityNameType { Value = "Sehir" }, PostalZone = new PostalZoneType { Value = "Posta Kodu" }, Country = new CountryType { Name = new NameType1 { Value = "Ülke" } } } }, PartyTaxScheme = new PartyTaxSchemeType { TaxScheme = new TaxSchemeType { Name = new NameType1 { Value = "Vergi Dairesi" } } }, Contact = new ContactType { Telephone = new TelephoneType { Value = "Telefon" }, Telefax = new TelefaxType { Value = "Fax" }, ElectronicMail = new ElectronicMailType { Value = "Mail" } }, Person = new PersonType { FirstName = new FirstNameType { Value = "İsim" }, FamilyName = new FamilyNameType { Value = "Soyisim" }, } } }; return(mmSupplierParty); }
private void button1_Click(object sender, EventArgs e) { SignatureType[] signatureCac = new SignatureType[] { new SignatureType() { ID = new IDType { Value = "LlamaSign" }, SignatoryParty = new PartyType { PartyIdentification = new PartyIdentificationType[] { new PartyIdentificationType { ID = new IDType { schemeID = "20600695771", Value = "20600695771" } } }, PartyName = new PartyNameType[] { new PartyNameType { Name = new NameType1 { Value = "LLAMA.PE SA" } } } }, DigitalSignatureAttachment = new AttachmentType { ExternalReference = new ExternalReferenceType { URI = new URIType { Value = "#LlamaSign" } } } } }; SupplierPartyType accountingSupplierParty = new SupplierPartyType() { Party = new PartyType { PartyLegalEntity = new PartyLegalEntityType[] { new PartyLegalEntityType { RegistrationName = new RegistrationNameType { Value = "LLAMA.PE SA" }, } }, PartyName = new PartyNameType[] { new PartyNameType { Name = new NameType1 { Value = "LLAMA.PE SA" } } }, PostalAddress = new AddressType { ID = new IDType { Value = "0001" }, District = new DistrictType { Value = "a" }, CityName = new CityNameType { Value = "a" }, StreetName = new StreetNameType { Value = "" }, CitySubdivisionName = new CitySubdivisionNameType { Value = "" }, Country = new CountryType { IdentificationCode = new IdentificationCodeType { Value = "aaa" } }, CountrySubentity = new CountrySubentityType { Value = "" }, } }, AdditionalAccountID = new AdditionalAccountIDType[] { new AdditionalAccountIDType { Value = "20553510661" } }, CustomerAssignedAccountID = new CustomerAssignedAccountIDType { Value = "20553510661" } }; CustomerPartyType accountingCustomerParty = new CustomerPartyType() { Party = new PartyType { PartyLegalEntity = new PartyLegalEntityType[] { new PartyLegalEntityType { RegistrationName = new RegistrationNameType { Value = "TU CLIENTE SAC", } } }, PartyName = new PartyNameType[] { new PartyNameType { Name = new NameType1 { Value = "LLAMA.PE S.A." } } }, PostalAddress = new AddressType { ID = new IDType { Value = "0001" }, District = new DistrictType { Value = "a" }, CityName = new CityNameType { Value = "a" }, StreetName = new StreetNameType { Value = "" }, CitySubdivisionName = new CitySubdivisionNameType { Value = "" }, Country = new CountryType { IdentificationCode = new IdentificationCodeType { Value = "aaa" } }, CountrySubentity = new CountrySubentityType { Value = "" }, } }, AdditionalAccountID = new AdditionalAccountIDType[] { new AdditionalAccountIDType { Value = "20000000001" } }, CustomerAssignedAccountID = new CustomerAssignedAccountIDType { Value = "20000000001" } }; //AccountingCustomerParty List <TaxTotalType> taxTotal = new List <TaxTotalType>() { new TaxTotalType() { TaxAmount = new TaxAmountType { currencyID = "PEN", Value = Convert.ToDecimal(7891.2) }, TaxSubtotal = new TaxSubtotalType[] { new TaxSubtotalType { TaxAmount = new TaxAmountType { currencyID = "PEN", Value = Convert.ToDecimal(7891.2) }, TaxableAmount = new TaxableAmountType { Value = Convert.ToDecimal(43840.00) }, TaxCategory = new TaxCategoryType { ID = new IDType { Value = "S" }, TierRange = new TierRangeType { Value = "s" }, TaxExemptionReasonCode = new TaxExemptionReasonCodeType { Value = "" }, TaxScheme = new TaxSchemeType { ID = new IDType { Value = "1000" }, Name = new NameType1 { Value = "IGV" }, TaxTypeCode = new TaxTypeCodeType { Value = "VAT" } } }, Percent = new PercentType1 { Value = 18 } } }, } }; MonetaryTotalType legalMonetaryTotal = new MonetaryTotalType() { PayableAmount = new PayableAmountType { currencyID = "PEN", Value = 15485 }, AllowanceTotalAmount = new AllowanceTotalAmountType { currencyID = "PEN", Value = 15424 }, ChargeTotalAmount = new ChargeTotalAmountType { currencyID = "PEN", Value = 5555 } }; XmlDocument xmlDoc = new XmlDocument(); XmlElement xmlElement = xmlDoc.CreateElement("AdditionalInformation", "urn:sunat:names:specification:ubl:peru:schema:xsd:SunatAggregateComponents-1"); UBLExtensionType[] uBLExtensions = new UBLExtensionType[] { new UBLExtensionType { ExtensionContent = xmlElement }, new UBLExtensionType() { ExtensionContent = xmlElement }, //Extension1 = new UBLExtension { ExtensionContent = new ExtensionContent { AdditionalInformation = new AdditionalInformation { AdditionalMonetaryTotals = new List<AdditionalMonetaryTotal>(), SunatTransaction = new SunatTransaction(), AdditionalProperties = new List<AdditionalProperty>() } } }, //Extension2 = new UBLExtension { ExtensionContent = new ExtensionContent { AdditionalInformation = new AdditionalInformation { AdditionalMonetaryTotals = new List<AdditionalMonetaryTotal>(), SunatTransaction = new SunatTransaction(), AdditionalProperties = new List<AdditionalProperty>() } } }, }; Invoice invoice = new Invoice() { UBLExtensions = uBLExtensions, UBLVersionID = new UBLVersionIDType { Value = "2.1" }, ID = new IDType { Value = "F001-1" }, CustomizationID = new CustomizationIDType { Value = "2.0" }, IssueDate = new IssueDateType { Value = Convert.ToDateTime("2017-05-14 15:42:20") }, IssueTime = new IssueTimeType { Value = Convert.ToDateTime("2017-05-14 15:42:20"), }, DueDate = new DueDateType { Value = Convert.ToDateTime("2017-05-15 15:42:20"), }, InvoiceTypeCode = new InvoiceTypeCodeType { Value = "01" }, Note = new List <NoteType> { new NoteType { Value = "SETENTA Y UN MIL TRESCIENTOS CINCUENTICUATRO Y 99/100" } }.ToArray(), DocumentCurrencyCode = new DocumentCurrencyCodeType { Value = "PEN" }, LineCountNumeric = new LineCountNumericType { Value = 1 }, Signature = signatureCac, AccountingSupplierParty = accountingSupplierParty, AccountingCustomerParty = accountingCustomerParty, TaxTotal = taxTotal.ToArray(), LegalMonetaryTotal = legalMonetaryTotal, ProfileID = new ProfileIDType { Value = "0101" }, OrderReference = new OrderReferenceType { ID = new IDType { Value = "" } } }; //XmlSerializer serializer = new XmlSerializer(typeof(Invoice)); //FileStream fStream = File.Open(@"D:\XML.xml", FileMode.Create); //XmlWriter xmlWriter = new XmlTextWriter(fStream, Encoding.Unicode); //serializer.Serialize(xmlWriter, invoice); //fStream.Close(); XmlSerializer xmlSerializer = new XmlSerializer(typeof(Invoice)); using (Stream stream = new FileStream(@"D:\XML.xml", FileMode.Create)) using (XmlWriter xmlWriter = new XmlTextWriter(stream, Encoding.Unicode)) { xmlSerializer.Serialize(xmlWriter, invoice); } }