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 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 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 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 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 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 UtilityStatementType() { this.subscriberConsumptionField = new ObservableCollection <SubscriberConsumptionType>(); this.mainOnAccountPaymentField = new ObservableCollection <OnAccountPaymentType>(); this.subscriberPartyField = new PartyType(); this.customerPartyField = new CustomerPartyType(); this.receiverPartyField = new PartyType(); this.senderPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.additionalDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.parentDocumentReferenceField = new DocumentReferenceType(); this.accountingCostField = new AccountingCostType(); this.accountingCostCodeField = new AccountingCostCodeType(); this.documentCurrencyCodeField = new DocumentCurrencyCodeType(); this.noteField = new ObservableCollection <NoteType>(); this.utilityStatementTypeCodeField = new UtilityStatementTypeCodeType(); 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 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 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 TenderType() { this.tenderedProjectField = new ObservableCollection <TenderedProjectType>(); this.originatorCustomerPartyField = new CustomerPartyType(); this.contractingPartyField = new ContractingPartyType(); this.subcontractorPartyField = new ObservableCollection <PartyType>(); this.tendererQualificationDocumentReferenceField = new DocumentReferenceType(); this.tendererPartyField = new PartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.documentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.validityPeriodField = new PeriodType(); this.noteField = new ObservableCollection <NoteType>(); this.contractNameField = new ObservableCollection <ContractNameType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.contractFolderIDField = new ContractFolderIDType(); this.tenderTypeCodeField = new TenderTypeCodeType(); 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 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 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 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 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 ContractAwardNoticeType() { this.tenderResultField = new ObservableCollection <TenderResultType>(); this.procurementProjectLotField = new ObservableCollection <ProcurementProjectLotType>(); this.procurementProjectField = new ProcurementProjectType(); this.tenderingProcessField = new TenderingProcessType(); this.tenderingTermsField = new TenderingTermsType(); this.receiverPartyField = new PartyType(); this.originatorCustomerPartyField = new CustomerPartyType(); this.contractingPartyField = new ContractingPartyType(); this.signatureField = new ObservableCollection <SignatureType>(); this.minutesDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.previousDocumentReferenceField = new ObservableCollection <DocumentReferenceType>(); this.publishAwardIndicatorField = new PublishAwardIndicatorType(); this.regulatoryDomainField = new ObservableCollection <RegulatoryDomainType>(); this.noteField = new ObservableCollection <NoteType>(); this.issueTimeField = new IssueTimeType(); this.issueDateField = new IssueDateType(); this.contractFolderIDField = new ContractFolderIDType(); 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 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 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 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>(); }
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); } }
void LlenarReceptor(En_Receptor Receptor, ref DebitNoteType debitNote) { WebsiteURIType EmisorPaginaWeb = new WebsiteURIType { Value = Receptor.PaginaWeb.Trim() }; List <PartyNameType> oListaNombreComercial = new List <PartyNameType>(); PartyNameType PartyName = new PartyNameType { Name = new NameType1 { Value = Receptor.NombreComercial.Trim() } }; oListaNombreComercial.Add(PartyName); PartyIdentificationType EmisorIdentificacion = new PartyIdentificationType(); List <PartyIdentificationType> EmisorListaIdentificacion = new List <PartyIdentificationType>(); EmisorIdentificacion.ID = new IDType { Value = Receptor.NumeroDocumentoIdentidad.Trim(), schemeAgencyID = "PE:SUNAT", schemeID = Receptor.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 = Receptor.RazonSocial, }, RegistrationAddress = new AddressType { ID = new IDType { Value = Receptor.CodigoUbigeo.Trim(), schemeAgencyName = "PE:INEI", schemeName = "Ubigeos" }, AddressTypeCode = new AddressTypeCodeType { Value = Receptor.CodigoDomicilioFiscal.Trim(), listAgencyName = "PE:SUNAT", listName = "Establecimientos anexos" }, CitySubdivisionName = new CitySubdivisionNameType { Value = Receptor.Urbanizacion.Trim() }, CityName = new CityNameType { Value = Receptor.Provincia.Trim() }, CountrySubentity = new CountrySubentityType { Value = Receptor.Departamento.Trim() }, District = new DistrictType { Value = Receptor.Distrito.Trim() }, AddressLine = new AddressLineType[] { new AddressLineType { Line = new LineType { Value = Receptor.Direccion.Trim() } } }, Country = new CountryType { IdentificationCode = new IdentificationCodeType { listAgencyName = "United Nations Economic Commission for Europe", listID = "ISO 3166-1", listName = "Country", Value = Receptor.CodigoPais.Trim() } } } }; ContactType oContacto = new ContactType { ElectronicMail = new ElectronicMailType() { Value = Receptor.Contacto.Correo.Trim() }, Name = new NameType1 { Value = Receptor.Contacto.Nombre.Trim() }, Telephone = new TelephoneType { Value = Receptor.Contacto.Telefono.Trim() } }; CustomerPartyType oReceptor = new CustomerPartyType { Party = new PartyType { WebsiteURI = EmisorPaginaWeb, PartyIdentification = EmisorListaIdentificacion.ToArray(), PartyName = oListaNombreComercial.ToArray(), PartyLegalEntity = new PartyLegalEntityType[] { oRazonSocial }, Contact = oContacto } }; debitNote.AccountingCustomerParty = oReceptor; }
private SummaryDocumentsLineType GetLineRC(RBoletasDetalle det, int i, string typerc) { detOk = false; HILT_s = new SummaryDocumentsLineType(); try { #region alter js LineIDType LIT = new LineIDType(); LIT.Value = (i + 1).ToString(); HILT_s.LineID = LIT; //tipo de documento (03, 07, 08) DocumentTypeCodeType DTCT = new DocumentTypeCodeType(); DTCT.Value = RBD[i].TPO_CPE; HILT_s.DocumentTypeCode = DTCT; #region condition code StatusType StatusTP = new StatusType(); ConditionCodeType Condition = new ConditionCodeType(); RBD[i].ConditionCode = 0; if (RBD[i].ConditionCode == 0) { if (typerc != "ANS") { Condition.Value = "1"; } else { Condition.Value = "3"; #region other //switch (RBD[i].SYSTEM_STATUS) //{ // case "XGN": // { // //Condition.Value = "1"; // break; // } // case "ANS": // { // Condition.Value = "3"; // //var res = ADE.Extras.Common.Method.Methods.Instance.DateCompare(DateTime.Now.ToString("yyyy-MM-dd"), RBD[i].FEC_EMIS.ToString("yyyy-MM-dd")); // //if (res == 1) // //{ Condition.Value = "3"; } // //else // ////{ Condition.Value = "4"; } // //{ Condition.Value = "3"; } // break; // } //} #endregion } ListDocs.Add(new Extras.Common.Method.UtilClass() { NUM_CE = RBD[i].NUM_CPE, STATUS_RC_DOC = int.Parse(Condition.Value) }); } StatusTP.ConditionCode = Condition; HILT_s.Status = new StatusType(); HILT_s.Status = StatusTP; #endregion //ID (xxxx-xxxxxxxx) IDType IdDocumentType = new IDType(); IdDocumentType.Value = RBD[i].ID; HILT_s.ID = new IDType(); HILT_s.ID = IdDocumentType; //added js AmountType1 TotAmount = new AmountType1(); TotAmount.Value = RBD[i].MTO_TOT; TotAmount.currencyID = CurrencyCodeContentType.PEN; TotAmount.currencyID = RBD[i].MONEDA.ToUpper() == "USD" ? CurrencyCodeContentType.USD : CurrencyCodeContentType.PEN; HILT_s.TotalAmount = TotAmount;//total documento CustomerPartyType CPT = new CustomerPartyType(); CPT.CustomerAssignedAccountID = new CustomerAssignedAccountIDType(); CPT.CustomerAssignedAccountID.Value = RBD[i].CustomerAssignedAccountID; AdditionalAccountIDType AAID = new AdditionalAccountIDType(); AdditionalAccountIDType[] AAIDs = new AdditionalAccountIDType[1]; AAID.Value = RBD[i].AdditionalAccountID; AAIDs[0] = AAID; CPT.AdditionalAccountID = AAIDs; HILT_s.AccountingCustomerParty = CPT; PaymentType[] billingPayment = new PaymentType[4]; PaymentType bp_item = new PaymentType(); InstructionIDType idInsType = new InstructionIDType(); PaidAmountType paidAmountType = new PaidAmountType(); #region START - IMPORTES // IMPORTES - GRAVADO var ImpGravado = Convert.ToDecimal(RBD[i].MTO_GRA, CultureInfo.CreateSpecificCulture("es-PE")); if (ImpGravado > 0) { bp_item = new PaymentType(); idInsType = new InstructionIDType(); paidAmountType = new PaidAmountType(); idInsType.Value = "01"; paidAmountType.Value = Convert.ToDecimal(RBD[i].MTO_GRA, CultureInfo.CreateSpecificCulture("es-PE")); //paidAmountType.currencyID = CurrencyCodeContentType.PEN; paidAmountType.currencyID = RBD[i].MONEDA.ToUpper() == "USD" ? CurrencyCodeContentType.USD : CurrencyCodeContentType.PEN; bp_item.PaidAmount = paidAmountType; bp_item.InstructionID = idInsType; billingPayment[0] = bp_item; } // IMPORTES - EXONERADOS var ImpExonerado = Convert.ToDecimal(RBD[i].MTO_EXO, CultureInfo.CreateSpecificCulture("es-PE")); if (ImpExonerado > 0) { bp_item = new PaymentType(); idInsType = new InstructionIDType(); paidAmountType = new PaidAmountType(); idInsType.Value = "02"; paidAmountType.Value = Convert.ToDecimal(RBD[i].MTO_EXO, CultureInfo.CreateSpecificCulture("es-PE")); //paidAmountType.currencyID = CurrencyCodeContentType.PEN; paidAmountType.currencyID = RBD[i].MONEDA.ToUpper() == "USD" ? CurrencyCodeContentType.USD : CurrencyCodeContentType.PEN; bp_item.PaidAmount = paidAmountType; bp_item.InstructionID = idInsType; billingPayment[1] = bp_item; } // IMPORTES - INAFECTO var ImpInafecto = Convert.ToDecimal(RBD[i].MTO_INA, CultureInfo.CreateSpecificCulture("es-PE")); if (ImpInafecto > 0) { bp_item = new PaymentType(); idInsType = new InstructionIDType(); paidAmountType = new PaidAmountType(); idInsType.Value = "03"; paidAmountType.Value = Convert.ToDecimal(RBD[i].MTO_INA, CultureInfo.CreateSpecificCulture("es-PE")); //paidAmountType.currencyID = CurrencyCodeContentType.PEN; paidAmountType.currencyID = RBD[i].MONEDA.ToUpper() == "USD" ? CurrencyCodeContentType.USD : CurrencyCodeContentType.PEN; bp_item.PaidAmount = paidAmountType; bp_item.InstructionID = idInsType; billingPayment[2] = bp_item; } // IMPORTES - GRATUITAS var ImpGratuitas = Convert.ToDecimal(RBD[i].MON_GRAT, CultureInfo.CreateSpecificCulture("es-PE")); if (ImpGratuitas > 0) { bp_item = new PaymentType(); idInsType = new InstructionIDType(); paidAmountType = new PaidAmountType(); idInsType.Value = "05"; paidAmountType.Value = Convert.ToDecimal(RBD[i].MON_GRAT, CultureInfo.CreateSpecificCulture("es-PE")); //paidAmountType.currencyID = CurrencyCodeContentType.PEN; paidAmountType.currencyID = RBD[i].MONEDA.ToUpper() == "USD" ? CurrencyCodeContentType.USD : CurrencyCodeContentType.PEN; bp_item.PaidAmount = paidAmountType; bp_item.InstructionID = idInsType; billingPayment[3] = bp_item; } HILT_s.BillingPayment = billingPayment; // IMPORTES - OTROS CARGOS var ImpOtroCargos = Convert.ToDecimal(RBD[i].MTO_OCA, CultureInfo.CreateSpecificCulture("es-PE")); if (ImpOtroCargos > 0) { AllowanceChargeType[] allowCharge = new AllowanceChargeType[1]; AmountType1 AT1 = new AmountType1(); ChargeIndicatorType CIT = new ChargeIndicatorType(); CIT.Value = true; allowCharge[0] = new AllowanceChargeType(); allowCharge[0].ChargeIndicator = new ChargeIndicatorType(); allowCharge[0].ChargeIndicator = CIT; AT1 = null; AT1 = new AmountType1(); AT1.Value = Convert.ToDecimal(RBD[i].MTO_OCA, CultureInfo.CreateSpecificCulture("es-PE")); //AT1.currencyID = CurrencyCodeContentType.PEN; AT1.currencyID = RBD[i].MONEDA.ToUpper() == "USD" ? CurrencyCodeContentType.USD : CurrencyCodeContentType.PEN; allowCharge[0].Amount = AT1; HILT_s.AllowanceCharge = new AllowanceChargeType[1]; HILT_s.AllowanceCharge[0] = new AllowanceChargeType(); HILT_s.AllowanceCharge[0] = allowCharge[0]; } #endregion END IMPORTES #region START IMPUESTOS TaxTotalType[] TOTs;// = new TaxTotalType[3]; TOTs = new TaxTotalType[3]; TaxTotalType TOT = new TaxTotalType(); TaxAmountType TAT = new TaxAmountType(); TaxSubtotalType TST = new TaxSubtotalType(); TaxCategoryType TCT = new TaxCategoryType(); TaxSchemeType TSchT = new TaxSchemeType(); TaxSubtotalType[] TsTi;// = new TaxSubtotalType[3]; IDType IDsch = new IDType(); NameType1 nameType = new NameType1(); TaxTypeCodeType tTCt = new TaxTypeCodeType(); //IMP IGV //var imp_igv = Convert.ToDecimal(RBD[i].IMP_IGV, CultureInfo.CreateSpecificCulture("es-PE")); //if (imp_igv > 0) //{ TOT = new TaxTotalType(); TAT = new TaxAmountType(); TST = new TaxSubtotalType(); TCT = new TaxCategoryType(); TSchT = new TaxSchemeType(); TsTi = new TaxSubtotalType[1]; //IDType IDsch = new IDType(); //NameType1 nameType = new NameType1(); //TaxTypeCodeType tTCt = new TaxTypeCodeType(); IDsch = new IDType(); nameType = new NameType1(); tTCt = new TaxTypeCodeType(); TAT.Value = Convert.ToDecimal(RBD[i].IMP_IGV, CultureInfo.CreateSpecificCulture("es-PE")); //TAT.currencyID = CurrencyCodeContentType.PEN; TAT.currencyID = RBD[i].MONEDA.ToUpper() == "USD" ? CurrencyCodeContentType.USD : CurrencyCodeContentType.PEN; IDsch.Value = "1000"; nameType.Value = "IGV"; tTCt.Value = "VAT"; TSchT.ID = IDsch; TSchT.Name = nameType; TSchT.TaxTypeCode = tTCt; TCT.TaxScheme = TSchT; TST.TaxAmount = TAT; TST.TaxCategory = TCT; TOT.TaxAmount = TAT; TsTi[0] = TST; TOT.TaxSubtotal = TsTi; TOTs[0] = TOT; //} //IMP ISC //var imp_isc = Convert.ToDecimal(RBD[i].IMP_ISC, CultureInfo.CreateSpecificCulture("es-PE")); //if (imp_isc > 0) //{ TOT = new TaxTotalType(); TAT = new TaxAmountType(); TST = new TaxSubtotalType(); TCT = new TaxCategoryType(); TSchT = new TaxSchemeType(); TsTi = new TaxSubtotalType[1]; //IDType IDsch = new IDType(); //NameType1 nameType = new NameType1(); //TaxTypeCodeType tTCt = new TaxTypeCodeType(); IDsch = new IDType(); nameType = new NameType1(); tTCt = new TaxTypeCodeType(); TAT.Value = Convert.ToDecimal(RBD[i].IMP_ISC, CultureInfo.CreateSpecificCulture("es-PE")); //TAT.currencyID = CurrencyCodeContentType.PEN; TAT.currencyID = RBD[i].MONEDA.ToUpper() == "USD" ? CurrencyCodeContentType.USD : CurrencyCodeContentType.PEN; IDsch.Value = "2000"; nameType.Value = "ISC"; tTCt.Value = "EXC"; TSchT.ID = IDsch; TSchT.Name = nameType; TSchT.TaxTypeCode = tTCt; TCT.TaxScheme = TSchT; TST.TaxAmount = TAT; TST.TaxCategory = TCT; TOT.TaxAmount = TAT; TsTi[0] = TST; TOT.TaxSubtotal = TsTi; TOTs[1] = TOT; //} //IMP OTH var imp_oth = Convert.ToDecimal(RBD[i].IMP_OTH, CultureInfo.CreateSpecificCulture("es-PE")); if (imp_oth > 0) { TOT = new TaxTotalType(); TAT = new TaxAmountType(); TST = new TaxSubtotalType(); TCT = new TaxCategoryType(); TSchT = new TaxSchemeType(); TsTi = new TaxSubtotalType[1]; //IDType IDsch = new IDType(); //NameType1 nameType = new NameType1(); //TaxTypeCodeType tTCt = new TaxTypeCodeType(); IDsch = new IDType(); nameType = new NameType1(); tTCt = new TaxTypeCodeType(); TAT.Value = Convert.ToDecimal(RBD[i].IMP_OTH, CultureInfo.CreateSpecificCulture("es-PE")); //TAT.currencyID = CurrencyCodeContentType.PEN; TAT.currencyID = RBD[i].MONEDA.ToUpper() == "USD" ? CurrencyCodeContentType.USD : CurrencyCodeContentType.PEN; IDsch.Value = "9999"; nameType.Value = "OTROS"; tTCt.Value = "OTH"; TSchT.ID = IDsch; TSchT.Name = nameType; TSchT.TaxTypeCode = tTCt; TCT.TaxScheme = TSchT; TST.TaxAmount = TAT; TST.TaxCategory = TCT; TOT.TaxAmount = TAT; TsTi[0] = TST; TOT.TaxSubtotal = TsTi; TOTs[2] = TOT; } HILT_s.TaxTotal = TOTs; #endregion END IMPUESTOS #region IF NOTE CREDI OR NOTE DEBIT if (RBD[i].TPO_CPE.Contains("07") || RBD[i].TPO_CPE.Contains("08")) { string[] array_tpodoc_afec = RBD[i].TPO_DOC_AFEC.Split(','); string[] array_nrodoc_afec = RBD[i].NRO_DOC_AFEC.Split(','); if (array_tpodoc_afec.Length == array_nrodoc_afec.Length) { BillingReferenceType[] BRs = new BillingReferenceType[array_nrodoc_afec.Length]; BillingReferenceType BR = new BillingReferenceType(); DocumentReferenceType docRef = new DocumentReferenceType(); for (int af = 0; af < array_tpodoc_afec.Length; af++) { BR = new BillingReferenceType(); docRef = new DocumentReferenceType(); IDType idref = new IDType(); idref.Value = array_nrodoc_afec[af]; DocumentTypeCodeType doctyperef = new DocumentTypeCodeType(); doctyperef.Value = array_tpodoc_afec[af]; docRef.ID = idref; docRef.DocumentTypeCode = doctyperef; BR.InvoiceDocumentReference = docRef; BRs[af] = BR; } HILT_s.BillingReference = BRs; } } #endregion //MILT[i] = HILT; #endregion detOk = true; } catch (Exception ex) { detOk = false; } return(HILT_s); }
// informacion del cliente #region AccountingSupplierParty private CustomerPartyType CustomerPartyType(TramaDocumento Doc) { try { string[] EN = Doc.EN.Split('|'); //cliente CustomerPartyType accountingCustomerParty = new CustomerPartyType() { Party = new PartyType { PartyLegalEntity = new PartyLegalEntityType[] { new PartyLegalEntityType { RegistrationName = new RegistrationNameType { Value = EN[19].ToString(), } } }, PartyName = new PartyNameType[] { new PartyNameType { Name = new NameType1 { Value = EN[19].ToString() } } }, PostalAddress = new AddressType { ID = new IDType { Value = "0001" }, District = new DistrictType { Value = "Distrito" }, CityName = new CityNameType { Value = "Ciudad" }, StreetName = new StreetNameType { Value = "Calle 1" }, CitySubdivisionName = new CitySubdivisionNameType { Value = "" }, Country = new CountryType { IdentificationCode = new IdentificationCodeType { Value = "PE" } }, CountrySubentity = new CountrySubentityType { Value = "" }, } }, AdditionalAccountID = new AdditionalAccountIDType[] { new AdditionalAccountIDType { Value = EN[18].ToString() } }, CustomerAssignedAccountID = new CustomerAssignedAccountIDType { Value = EN[18].ToString() } }; return(accountingCustomerParty); } catch (Exception) { throw; } }