@stackforge-eu/factur-x 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -0
- package/LICENSE +287 -0
- package/README.md +312 -0
- package/dist/index.cjs +1339 -0
- package/dist/index.d.cts +1382 -0
- package/dist/index.d.ts +1382 -0
- package/dist/index.js +1292 -0
- package/package.json +83 -0
- package/schema/README.md +39 -0
- package/schema/basic/FACTUR-X_BASIC.xsd +20 -0
- package/schema/basic/FACTUR-X_BASIC_QualifiedDataType_100.xsd +86 -0
- package/schema/basic/FACTUR-X_BASIC_ReusableAggregateBusinessInformationEntity_100.xsd +249 -0
- package/schema/basic/FACTUR-X_BASIC_UnqualifiedDataType_100.xsd +60 -0
- package/schema/basic-wl/FACTUR-X_BASIC-WL.xsd +20 -0
- package/schema/basic-wl/FACTUR-X_BASIC-WL_QualifiedDataType_100.xsd +86 -0
- package/schema/basic-wl/FACTUR-X_BASIC-WL_ReusableAggregateBusinessInformationEntity_100.xsd +196 -0
- package/schema/basic-wl/FACTUR-X_BASIC-WL_UnqualifiedDataType_100.xsd +53 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B.xsd +25 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_EDIFICAS-EU_AccountingAccountType_D11A.xsd +18 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_EDIFICAS-EU_AccountingAmountType_D11A.xsd +17 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_ISO_ISO3AlphaCurrencyCode_2012-08-31.xsd +191 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_ISO_ISOTwo-letterCountryCode_SecondEdition2006.xsd +260 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_QualifiedDataType_100.xsd +818 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_ReusableAggregateBusinessInformationEntity_100.xsd +6176 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_ActionCode_D22A.xsd +130 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_AddressType_D22A.xsd +19 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_AdjustmentReasonDescriptionCode_D22A.xsd +116 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_AllowanceChargeIdentificationCode_D22A.xsd +116 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_AllowanceChargeReasonCode_D22A.xsd +116 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_AutomaticDataCaptureMethodCode_D22A.xsd +21 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_CargoOperationalCategoryCode_D22A.xsd +36 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_CargoTypeCode_1996Rev2Final.xsd +20 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_CommodityIdentificationCode_D22A.xsd +12 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_CommunicationMeansTypeCode_D22A.xsd +58 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_ContactFunctionCode_D22A.xsd +114 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_DangerousGoodsPackingCode_D22A.xsd +15 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_DangerousGoodsRegulationCode_D22A.xsd +35 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_DateOnlyFormatCode_D21B.xsd +21 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_DeliveryTermsCode_2020.xsd +24 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_DeliveryTermsFunctionCode_D22A.xsd +19 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_DimensionTypeCode_D22A.xsd +35 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_DocumentNameCode_Accounting_D22A.xsd +35 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_DocumentNameCode_D22A.xsd +819 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_DocumentStatusCode_D22A.xsd +61 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_DutyTaxFeeTypeCode_D22A.xsd +67 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_DutyorTaxorFeeCategoryCode_D22A.xsd +33 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_EventTimeReferenceCodePaymentTermsEvent_D22A.xsd +16 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_EventTimeReferenceCode_D22A.xsd +76 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_FreightChargeQuantityUnitBasisCode_D22A.xsd +12 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_FreightChargeTariffCode_D22A.xsd +25 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_FreightCostCode_4.xsd +1722 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_GoodsTypeCode_D22A.xsd +12 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_GoodsTypeExtensionCode_D22A.xsd +12 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_LocationFunctionCode_D22A.xsd +326 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_MeasurementUnitCommonCodeLinear_4.xsd +17 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_MeasurementUnitCommonCodeVolume_4.xsd +18 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_MeasurementUnitCommonCodeWeight_4.xsd +15 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_MessageFunctionCode_D22A.xsd +84 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_PackageTypeCode_2006.xsd +416 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_PackagingMarkingCode_D22A.xsd +63 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_PartyRoleCode_ChargePaying_D22A.xsd +32 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_PartyRoleCode_D22A.xsd +635 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_PaymentGuaranteeMeansCode_D22A.xsd +23 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_PaymentMeansChannelCode_D22A.xsd +27 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_PaymentMeansCode_D22A.xsd +94 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_PaymentTermsDescriptionIdentifier_D22A.xsd +18 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_PaymentTermsTypeCode_D22A.xsd +90 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_PriceTypeCode_D22A.xsd +50 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_ReferenceTypeCode_D22A.xsd +828 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_SealConditionCode_D22A.xsd +16 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_SealingPartyRoleCode_D22A.xsd +18 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_StatusCode_D22A.xsd +527 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_StatusDescriptionCode_AccountingDebitCredit_D22A.xsd +18 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_TimeOnlyFormatCode_D21B.xsd +16 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_TimePointFormatCode_D21B.xsd +17 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_TransportEquipmentCategoryCode_D22A.xsd +107 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_TransportEquipmentFullnessCode_D22A.xsd +24 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_TransportMeansTypeCode_2007.xsd +145 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_TransportModeCode_2.xsd +21 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_TransportMovementStageCode_D22A.xsd +41 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UNECE_TransportPaymentArrangementCode_D22A.xsd +15 -0
- package/schema/cii-d22b/CrossIndustryInvoice_100pD22B_UnqualifiedDataType_100.xsd +144 -0
- package/schema/en16931/FACTUR-X_EN16931.xsd +20 -0
- package/schema/en16931/FACTUR-X_EN16931_QualifiedDataType_100.xsd +94 -0
- package/schema/en16931/FACTUR-X_EN16931_ReusableAggregateBusinessInformationEntity_100.xsd +318 -0
- package/schema/en16931/FACTUR-X_EN16931_UnqualifiedDataType_100.xsd +84 -0
- package/schema/extended/FACTUR-X_EXTENDED.xsd +20 -0
- package/schema/extended/FACTUR-X_EXTENDED_QualifiedDataType_100.xsd +142 -0
- package/schema/extended/FACTUR-X_EXTENDED_ReusableAggregateBusinessInformationEntity_100.xsd +475 -0
- package/schema/extended/FACTUR-X_EXTENDED_UnqualifiedDataType_100.xsd +101 -0
- package/schema/minimum/FACTUR-X_MINIMUM.xsd +20 -0
- package/schema/minimum/FACTUR-X_MINIMUM_QualifiedDataType_100.xsd +30 -0
- package/schema/minimum/FACTUR-X_MINIMUM_ReusableAggregateBusinessInformationEntity_100.xsd +86 -0
- package/schema/minimum/FACTUR-X_MINIMUM_UnqualifiedDataType_100.xsd +38 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xs:schema xmlns:ram="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100"
|
|
3
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
4
|
+
xmlns:qdt="urn:un:unece:uncefact:data:standard:QualifiedDataType:100"
|
|
5
|
+
xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100"
|
|
6
|
+
targetNamespace="urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100"
|
|
7
|
+
elementFormDefault="qualified">
|
|
8
|
+
<xs:import namespace="urn:un:unece:uncefact:data:standard:QualifiedDataType:100" schemaLocation="FACTUR-X_MINIMUM_QualifiedDataType_100.xsd"/>
|
|
9
|
+
<xs:import namespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100" schemaLocation="FACTUR-X_MINIMUM_UnqualifiedDataType_100.xsd"/>
|
|
10
|
+
<xs:complexType name="DocumentContextParameterType">
|
|
11
|
+
<xs:sequence>
|
|
12
|
+
<xs:element name="ID" type="udt:IDType"/>
|
|
13
|
+
</xs:sequence>
|
|
14
|
+
</xs:complexType>
|
|
15
|
+
<xs:complexType name="ExchangedDocumentContextType">
|
|
16
|
+
<xs:sequence>
|
|
17
|
+
<xs:element name="BusinessProcessSpecifiedDocumentContextParameter" type="ram:DocumentContextParameterType" minOccurs="0"/>
|
|
18
|
+
<xs:element name="GuidelineSpecifiedDocumentContextParameter" type="ram:DocumentContextParameterType"/>
|
|
19
|
+
</xs:sequence>
|
|
20
|
+
</xs:complexType>
|
|
21
|
+
<xs:complexType name="ExchangedDocumentType">
|
|
22
|
+
<xs:sequence>
|
|
23
|
+
<xs:element name="ID" type="udt:IDType"/>
|
|
24
|
+
<xs:element name="TypeCode" type="qdt:DocumentCodeType"/>
|
|
25
|
+
<xs:element name="IssueDateTime" type="udt:DateTimeType"/>
|
|
26
|
+
</xs:sequence>
|
|
27
|
+
</xs:complexType>
|
|
28
|
+
<xs:complexType name="HeaderTradeAgreementType">
|
|
29
|
+
<xs:sequence>
|
|
30
|
+
<xs:element name="BuyerReference" type="udt:TextType" minOccurs="0"/>
|
|
31
|
+
<xs:element name="SellerTradeParty" type="ram:TradePartyType"/>
|
|
32
|
+
<xs:element name="BuyerTradeParty" type="ram:TradePartyType"/>
|
|
33
|
+
<xs:element name="BuyerOrderReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0"/>
|
|
34
|
+
</xs:sequence>
|
|
35
|
+
</xs:complexType>
|
|
36
|
+
<xs:complexType name="HeaderTradeDeliveryType"/>
|
|
37
|
+
<xs:complexType name="HeaderTradeSettlementType">
|
|
38
|
+
<xs:sequence>
|
|
39
|
+
<xs:element name="InvoiceCurrencyCode" type="qdt:CurrencyCodeType"/>
|
|
40
|
+
<xs:element name="SpecifiedTradeSettlementHeaderMonetarySummation" type="ram:TradeSettlementHeaderMonetarySummationType"/>
|
|
41
|
+
</xs:sequence>
|
|
42
|
+
</xs:complexType>
|
|
43
|
+
<xs:complexType name="LegalOrganizationType">
|
|
44
|
+
<xs:sequence>
|
|
45
|
+
<xs:element name="ID" type="udt:IDType" minOccurs="0"/>
|
|
46
|
+
</xs:sequence>
|
|
47
|
+
</xs:complexType>
|
|
48
|
+
<xs:complexType name="ReferencedDocumentType">
|
|
49
|
+
<xs:sequence>
|
|
50
|
+
<xs:element name="IssuerAssignedID" type="udt:IDType"/>
|
|
51
|
+
</xs:sequence>
|
|
52
|
+
</xs:complexType>
|
|
53
|
+
<xs:complexType name="SupplyChainTradeTransactionType">
|
|
54
|
+
<xs:sequence>
|
|
55
|
+
<xs:element name="ApplicableHeaderTradeAgreement" type="ram:HeaderTradeAgreementType"/>
|
|
56
|
+
<xs:element name="ApplicableHeaderTradeDelivery" type="ram:HeaderTradeDeliveryType"/>
|
|
57
|
+
<xs:element name="ApplicableHeaderTradeSettlement" type="ram:HeaderTradeSettlementType"/>
|
|
58
|
+
</xs:sequence>
|
|
59
|
+
</xs:complexType>
|
|
60
|
+
<xs:complexType name="TaxRegistrationType">
|
|
61
|
+
<xs:sequence>
|
|
62
|
+
<xs:element name="ID" type="udt:IDType"/>
|
|
63
|
+
</xs:sequence>
|
|
64
|
+
</xs:complexType>
|
|
65
|
+
<xs:complexType name="TradeAddressType">
|
|
66
|
+
<xs:sequence>
|
|
67
|
+
<xs:element name="CountryID" type="qdt:CountryIDType"/>
|
|
68
|
+
</xs:sequence>
|
|
69
|
+
</xs:complexType>
|
|
70
|
+
<xs:complexType name="TradePartyType">
|
|
71
|
+
<xs:sequence>
|
|
72
|
+
<xs:element name="Name" type="udt:TextType"/>
|
|
73
|
+
<xs:element name="SpecifiedLegalOrganization" type="ram:LegalOrganizationType" minOccurs="0"/>
|
|
74
|
+
<xs:element name="PostalTradeAddress" type="ram:TradeAddressType" minOccurs="0"/>
|
|
75
|
+
<xs:element name="SpecifiedTaxRegistration" type="ram:TaxRegistrationType" minOccurs="0" maxOccurs="2"/>
|
|
76
|
+
</xs:sequence>
|
|
77
|
+
</xs:complexType>
|
|
78
|
+
<xs:complexType name="TradeSettlementHeaderMonetarySummationType">
|
|
79
|
+
<xs:sequence>
|
|
80
|
+
<xs:element name="TaxBasisTotalAmount" type="udt:AmountType"/>
|
|
81
|
+
<xs:element name="TaxTotalAmount" type="udt:AmountType" minOccurs="0" maxOccurs="2"/>
|
|
82
|
+
<xs:element name="GrandTotalAmount" type="udt:AmountType"/>
|
|
83
|
+
<xs:element name="DuePayableAmount" type="udt:AmountType"/>
|
|
84
|
+
</xs:sequence>
|
|
85
|
+
</xs:complexType>
|
|
86
|
+
</xs:schema>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xs:schema xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100"
|
|
3
|
+
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
4
|
+
targetNamespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:100"
|
|
5
|
+
elementFormDefault="qualified">
|
|
6
|
+
<xs:complexType name="AmountType">
|
|
7
|
+
<xs:simpleContent>
|
|
8
|
+
<xs:extension base="xs:decimal">
|
|
9
|
+
<xs:attribute name="currencyID" type="xs:token"/>
|
|
10
|
+
</xs:extension>
|
|
11
|
+
</xs:simpleContent>
|
|
12
|
+
</xs:complexType>
|
|
13
|
+
<xs:complexType name="DateTimeType">
|
|
14
|
+
<xs:choice>
|
|
15
|
+
<xs:element name="DateTimeString">
|
|
16
|
+
<xs:complexType>
|
|
17
|
+
<xs:simpleContent>
|
|
18
|
+
<xs:extension base="xs:string">
|
|
19
|
+
<xs:attribute name="format" type="xs:string" use="required"/>
|
|
20
|
+
</xs:extension>
|
|
21
|
+
</xs:simpleContent>
|
|
22
|
+
</xs:complexType>
|
|
23
|
+
</xs:element>
|
|
24
|
+
</xs:choice>
|
|
25
|
+
</xs:complexType>
|
|
26
|
+
<xs:complexType name="IDType">
|
|
27
|
+
<xs:simpleContent>
|
|
28
|
+
<xs:extension base="xs:token">
|
|
29
|
+
<xs:attribute name="schemeID" type="xs:token"/>
|
|
30
|
+
</xs:extension>
|
|
31
|
+
</xs:simpleContent>
|
|
32
|
+
</xs:complexType>
|
|
33
|
+
<xs:complexType name="TextType">
|
|
34
|
+
<xs:simpleContent>
|
|
35
|
+
<xs:extension base="xs:string"/>
|
|
36
|
+
</xs:simpleContent>
|
|
37
|
+
</xs:complexType>
|
|
38
|
+
</xs:schema>
|