zatca 0.1.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -2
- data/bin/console +0 -0
- data/bin/setup +0 -0
- data/einvoicing-sdk/Apps/fatoora +12 -0
- data/einvoicing-sdk/Apps/fatoora.bat +16 -0
- data/einvoicing-sdk/Apps/global.json +1 -0
- data/einvoicing-sdk/Apps/jq.exe +0 -0
- data/einvoicing-sdk/Apps/zatca-einvoicing-sdk-238-R3.2.7.jar +0 -0
- data/einvoicing-sdk/Configuration/config.json +11 -0
- data/einvoicing-sdk/Configuration/defaults.json +11 -0
- data/einvoicing-sdk/Configuration/jq.exe +0 -0
- data/einvoicing-sdk/Configuration/usage.txt +16 -0
- data/einvoicing-sdk/Data/Certificates/cert.pem +1 -0
- data/einvoicing-sdk/Data/Certificates/ec-secp256k1-priv-key.pem +1 -0
- data/einvoicing-sdk/Data/Input/csr-config-example-AR-VAT-Group.properties +9 -0
- data/einvoicing-sdk/Data/Input/csr-config-example-AR.properties +9 -0
- data/einvoicing-sdk/Data/Input/csr-config-example-EN-VAT-group.properties +9 -0
- data/einvoicing-sdk/Data/Input/csr-config-example-EN.properties +9 -0
- data/einvoicing-sdk/Data/Input/csr-config-template.properties +9 -0
- data/einvoicing-sdk/Data/PIH/pih.txt +1 -0
- data/einvoicing-sdk/Data/Rules/schematrons/20210819_ZATCA_E-invoice_Validation_Rules.xsl +2844 -0
- data/einvoicing-sdk/Data/Rules/schematrons/CEN-EN16931-UBL.xsl +1973 -0
- data/einvoicing-sdk/Data/Samples/PDF-A3/Simplified Debit Note.pdf +0 -0
- data/einvoicing-sdk/Data/Samples/PDF-A3/Standard Credit Note.pdf +0 -0
- data/einvoicing-sdk/Data/Samples/PDF-A3/Standard Debit Note.pdf +0 -0
- data/einvoicing-sdk/Data/Samples/PDF-A3/Standard Invoice.pdf +0 -0
- data/einvoicing-sdk/Data/Samples/PDF-A3/Tax_Invoice_USD.pdf +0 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Credit/Simplified_Credit_Note.xml +300 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Credit/Simplified_Credit_Note_Error.xml +225 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Debit/Simplified_Debit_Note.xml +211 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Debit/Simplified_Debit_Note_Error.xml +226 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Additional_Simplified_Invoices/Out_Of_Scope_Simplified_Invoice.xml +207 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Additional_Simplified_Invoices/Simplified_Invoice_USD.xml +246 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Simplified_Invoice.xml +246 -0
- data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Simplified_Invoice_Error.xml +228 -0
- data/einvoicing-sdk/Data/Samples/Standard/Credit/Standard_Credit_Note.xml +227 -0
- data/einvoicing-sdk/Data/Samples/Standard/Credit/Standard_Credit_Note_Error.xml +224 -0
- data/einvoicing-sdk/Data/Samples/Standard/Debit/Standard_Debit_Note.xml +227 -0
- data/einvoicing-sdk/Data/Samples/Standard/Debit/Standard_Debit_Note_Error.xml +226 -0
- data/einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Exempt_Standard_Invoice.xml +227 -0
- data/einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Standard_Invoice_USD.xml +227 -0
- data/einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Zero_Rate_Standard_Invoice.xml +227 -0
- data/einvoicing-sdk/Data/Samples/Standard/Invoice/Sample Invoice[Advance Payements] - 1.xml +294 -0
- data/einvoicing-sdk/Data/Samples/Standard/Invoice/Sample Invoice[Advance Payements] - 2.xml +432 -0
- data/einvoicing-sdk/Data/Samples/Standard/Invoice/Standard_Invoice.xml +222 -0
- data/einvoicing-sdk/Data/Samples/Standard/Invoice/Standard_Invoice_Error.xml +228 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/CCTS_CCT_SchemaModule-2.1.xsd +731 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonAggregateComponents-2.1.xsd +44365 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonBasicComponents-2.1.xsd +5389 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonExtensionComponents-2.1.xsd +223 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonSignatureComponents-2.1.xsd +101 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CoreComponentParameters-2.1.xsd +63 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-ExtensionContentDataType-2.1.xsd +89 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-QualifiedDataTypes-2.1.xsd +69 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-SignatureAggregateComponents-2.1.xsd +138 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-SignatureBasicComponents-2.1.xsd +78 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-UnqualifiedDataTypes-2.1.xsd +553 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-XAdESv132-2.1.xsd +476 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-XAdESv141-2.1.xsd +25 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-xmldsig-core-schema-2.1.xsd +330 -0
- data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/maindoc/UBL-Invoice-2.1.xsd +1002 -0
- data/einvoicing-sdk/Dockerfile +26 -0
- data/einvoicing-sdk/LICENSE.txt +56 -0
- data/einvoicing-sdk/Lib/.Net/DLL/BouncyCastle.Crypto.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Core.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Text.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Util.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.XML.API.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/IKVM.Runtime.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.dll.config +43 -0
- data/einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/System.Net.Http.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/saxon-he-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/saxon-he-api-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/DLL/saxon-he-api-10.8.xml +11759 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/3f204b7a-faba-42d8-8288-8b6fe516555c.vsidx +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/f95b6f91-c110-4b7a-bb49-3fc6bde85b13.vsidx +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/read.lock +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/v17/.suo +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/App.config +14 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/BouncyCastle.Crypto.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/CSRGeneratorOpenSSL.cs +58 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Core.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Text.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Util.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.XML.API.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.Runtime.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Program.cs +194 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Properties/AssemblyInfo.cs +36 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Readme.txt +8 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.dll.config +43 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.csproj +120 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.exe +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.exe.config +20 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.sln +25 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/BouncyCastle.Crypto.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/certificate.txt +1 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/pih.txt +1 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/privateKey.txt +1 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Core.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Text.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Util.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.XML.API.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.Runtime.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.dll.config +43 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.exe +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.exe.config +20 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/System.Net.Http.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-api-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-api-10.8.xml +11759 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs +4 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/DesignTimeResolveAssemblyReferences.cache +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.AssemblyReference.cache +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.CopyComplete +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.CoreCompileInputs.cache +1 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.FileListAbsolute.txt +22 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.SuggestedBindingRedirects.cache +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.exe +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-api-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-api-10.8.xml +11759 -0
- data/einvoicing-sdk/Lib/.Net/Test/BouncyCastle.Crypto.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Core.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Text.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Util.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.XML.API.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/IKVM.Runtime.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.dll.config +43 -0
- data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.exe +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.exe.config +20 -0
- data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.pdb +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/saxon-he-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/saxon-he-api-10.8.dll +0 -0
- data/einvoicing-sdk/Lib/.Net/Test/saxon-he-api-10.8.xml +11759 -0
- data/einvoicing-sdk/README.md +15 -0
- data/einvoicing-sdk/Readme/readme.docx +0 -0
- data/einvoicing-sdk/Readme/readme.md +674 -0
- data/einvoicing-sdk/Readme/readme.pdf +0 -0
- data/einvoicing-sdk/Readme/~$readme.docx +0 -0
- data/einvoicing-sdk/docker-compose.yml +12 -0
- data/einvoicing-sdk/install.bat +74 -0
- data/einvoicing-sdk/install.sh +74 -0
- data/lib/zatca/client.rb +173 -0
- data/lib/zatca/hacks.rb +45 -0
- data/lib/zatca/hashing.rb +18 -0
- data/lib/zatca/qr_code_extractor.rb +31 -0
- data/lib/zatca/qr_code_generator.rb +9 -2
- data/lib/zatca/signing/certificate.rb +78 -0
- data/lib/zatca/signing/csr.rb +220 -0
- data/lib/zatca/signing/ecdsa.rb +59 -0
- data/lib/zatca/tag.rb +18 -8
- data/lib/zatca/tags.rb +5 -1
- data/lib/zatca/tags_schema.rb +5 -5
- data/lib/zatca/types.rb +7 -0
- data/lib/zatca/ubl/base_component.rb +142 -0
- data/lib/zatca/ubl/builder.rb +166 -0
- data/lib/zatca/ubl/common_aggregate_components/allowance_charge.rb +64 -0
- data/lib/zatca/ubl/common_aggregate_components/classified_tax_category.rb +25 -0
- data/lib/zatca/ubl/common_aggregate_components/delivery.rb +27 -0
- data/lib/zatca/ubl/common_aggregate_components/invoice_line.rb +63 -0
- data/lib/zatca/ubl/common_aggregate_components/item.rb +21 -0
- data/lib/zatca/ubl/common_aggregate_components/legal_monetary_total.rb +59 -0
- data/lib/zatca/ubl/common_aggregate_components/party.rb +28 -0
- data/lib/zatca/ubl/common_aggregate_components/party_identification.rb +25 -0
- data/lib/zatca/ubl/common_aggregate_components/party_legal_entity.rb +19 -0
- data/lib/zatca/ubl/common_aggregate_components/party_tax_scheme.rb +30 -0
- data/lib/zatca/ubl/common_aggregate_components/postal_address.rb +59 -0
- data/lib/zatca/ubl/common_aggregate_components/price.rb +20 -0
- data/lib/zatca/ubl/common_aggregate_components/tax_category.rb +56 -0
- data/lib/zatca/ubl/common_aggregate_components/tax_total.rb +58 -0
- data/lib/zatca/ubl/common_aggregate_components.rb +2 -0
- data/lib/zatca/ubl/invoice.rb +481 -0
- data/lib/zatca/ubl/invoice_subtype_builder.rb +50 -0
- data/lib/zatca/ubl/signing/cert.rb +48 -0
- data/lib/zatca/ubl/signing/invoice_signed_data_reference.rb +44 -0
- data/lib/zatca/ubl/signing/key_info.rb +25 -0
- data/lib/zatca/ubl/signing/object.rb +20 -0
- data/lib/zatca/ubl/signing/qualifying_properties.rb +27 -0
- data/lib/zatca/ubl/signing/signature.rb +50 -0
- data/lib/zatca/ubl/signing/signature_information.rb +19 -0
- data/lib/zatca/ubl/signing/signature_properties_reference.rb +26 -0
- data/lib/zatca/ubl/signing/signed_info.rb +21 -0
- data/lib/zatca/ubl/signing/signed_properties.rb +81 -0
- data/lib/zatca/ubl/signing/signed_signature_properties.rb +23 -0
- data/lib/zatca/ubl/signing/ubl_document_signatures.rb +25 -0
- data/lib/zatca/ubl/signing/ubl_extension.rb +22 -0
- data/lib/zatca/ubl/signing/ubl_extensions.rb +17 -0
- data/lib/zatca/ubl/signing.rb +2 -0
- data/lib/zatca/ubl.rb +2 -0
- data/lib/zatca/version.rb +1 -1
- data/lib/zatca.rb +27 -3
- data/zatca.gemspec +52 -0
- metadata +318 -10
- data/Gemfile.lock +0 -100
@@ -0,0 +1,553 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!--
|
3
|
+
Library: OASIS Universal Business Language (UBL) 2.1 OS
|
4
|
+
http://docs.oasis-open.org/ubl/os-UBL-2.1/
|
5
|
+
Release Date: 04 November 2013
|
6
|
+
Module: UBL-UnqualifiedDataTypes-2.1.xsd
|
7
|
+
Generated on: 2013-04-20 18:40(UTC)
|
8
|
+
Copyright (c) OASIS Open 2013. All Rights Reserved.
|
9
|
+
|
10
|
+
This schema fragment implements UBL unqualified datatypes using core
|
11
|
+
component types with all supplementary components as described in
|
12
|
+
CCTS 2.01 http://www.unece.org/cefact/ebxml/CCTS_V2-01_Final.pdf tables
|
13
|
+
8-1, 8-2 and 8-3.
|
14
|
+
|
15
|
+
Per table 8-3, the graphic, picture, sound and video types are based on
|
16
|
+
"Binary Object. Type" as they are secondary representation terms.
|
17
|
+
|
18
|
+
Per table 8-3, the value, rate and percentage types are based on
|
19
|
+
"Numeric. Type" as they are secondary representation terms.
|
20
|
+
|
21
|
+
Per table 8-3, the name type is based on "Text. Type" as it is a
|
22
|
+
secondary representation term.
|
23
|
+
|
24
|
+
Per XSD lexical constraints, the following unqualified data types
|
25
|
+
corresponding to core component types and secondary representation terms
|
26
|
+
are based on XSD types (accordingly, the supplementary component "format"
|
27
|
+
is not made available for these types):
|
28
|
+
|
29
|
+
Date Time. Type on xsd:dateTime
|
30
|
+
Date. Type on xsd:date
|
31
|
+
Time. Type on xsd:time
|
32
|
+
Indicator. Type on xsd:boolean
|
33
|
+
|
34
|
+
Per UBL 2.0 the following supplementary components are restricted to be
|
35
|
+
required rather than optional:
|
36
|
+
|
37
|
+
Amount. Currency. Identifier as (AmountType)/@currencyID
|
38
|
+
Binary Object. Mime. Code as (BinaryObjectType)/@mimeCode
|
39
|
+
Graphic. Mime. Code as (GraphicType)/@mimeCode
|
40
|
+
Picture. Mime. Code as (PictureType)/@mimeCode
|
41
|
+
Sound. Mime. Code as (SoundType)/@mimeCode
|
42
|
+
Video. Mime. Code as (VideoType)/@mimeCode
|
43
|
+
Measure. Unit. Code as (MeasureType)/@unitCode
|
44
|
+
|
45
|
+
All other unqualified data types inherit the core component types complete
|
46
|
+
with their supplementary components.
|
47
|
+
-->
|
48
|
+
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
49
|
+
targetNamespace="urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2"
|
50
|
+
xmlns:ccts-cct="urn:un:unece:uncefact:data:specification:CoreComponentTypeSchemaModule:2"
|
51
|
+
xmlns:ccts="urn:un:unece:uncefact:documentation:2"
|
52
|
+
elementFormDefault="qualified"
|
53
|
+
attributeFormDefault="unqualified"
|
54
|
+
version="2.1">
|
55
|
+
<!-- ===== Imports ===== -->
|
56
|
+
<xsd:import schemaLocation="CCTS_CCT_SchemaModule-2.1.xsd"
|
57
|
+
namespace="urn:un:unece:uncefact:data:specification:CoreComponentTypeSchemaModule:2"/>
|
58
|
+
<!-- ===== Type Definitions ===== -->
|
59
|
+
<xsd:complexType name="AmountType">
|
60
|
+
<xsd:annotation>
|
61
|
+
<xsd:documentation xml:lang="en">
|
62
|
+
<ccts:UniqueID>UBLUDT000001</ccts:UniqueID>
|
63
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
64
|
+
<ccts:DictionaryEntryName>Amount. Type</ccts:DictionaryEntryName>
|
65
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
66
|
+
<ccts:Definition>A number of monetary units specified using a given unit of currency.</ccts:Definition>
|
67
|
+
<ccts:RepresentationTermName>Amount</ccts:RepresentationTermName>
|
68
|
+
</xsd:documentation>
|
69
|
+
</xsd:annotation>
|
70
|
+
<xsd:simpleContent>
|
71
|
+
<xsd:restriction base="ccts-cct:AmountType">
|
72
|
+
<xsd:attribute name="currencyID" type="xsd:normalizedString" use="required">
|
73
|
+
<xsd:annotation>
|
74
|
+
<xsd:documentation xml:lang="en">
|
75
|
+
<ccts:UniqueID>UNDT000001-SC2</ccts:UniqueID>
|
76
|
+
<ccts:CategoryCode>SC</ccts:CategoryCode>
|
77
|
+
<ccts:DictionaryEntryName>Amount. Currency. Identifier</ccts:DictionaryEntryName>
|
78
|
+
<ccts:Definition>The currency of the amount.</ccts:Definition>
|
79
|
+
<ccts:ObjectClass>Amount Currency</ccts:ObjectClass>
|
80
|
+
<ccts:PropertyTermName>Identification</ccts:PropertyTermName>
|
81
|
+
<ccts:RepresentationTermName>Identifier</ccts:RepresentationTermName>
|
82
|
+
<ccts:PrimitiveType>string</ccts:PrimitiveType>
|
83
|
+
<ccts:UsageRule>Reference UNECE Rec 9, using 3-letter alphabetic codes.</ccts:UsageRule>
|
84
|
+
</xsd:documentation>
|
85
|
+
</xsd:annotation>
|
86
|
+
</xsd:attribute>
|
87
|
+
</xsd:restriction>
|
88
|
+
</xsd:simpleContent>
|
89
|
+
</xsd:complexType>
|
90
|
+
|
91
|
+
<xsd:complexType name="BinaryObjectType">
|
92
|
+
<xsd:annotation>
|
93
|
+
<xsd:documentation xml:lang="en">
|
94
|
+
<ccts:UniqueID>UBLUDT000002</ccts:UniqueID>
|
95
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
96
|
+
<ccts:DictionaryEntryName>Binary Object. Type</ccts:DictionaryEntryName>
|
97
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
98
|
+
<ccts:Definition>A set of finite-length sequences of binary octets.</ccts:Definition>
|
99
|
+
<ccts:RepresentationTermName>Binary Object</ccts:RepresentationTermName>
|
100
|
+
<ccts:PrimitiveType>binary</ccts:PrimitiveType>
|
101
|
+
</xsd:documentation>
|
102
|
+
</xsd:annotation>
|
103
|
+
<xsd:simpleContent>
|
104
|
+
<xsd:restriction base="ccts-cct:BinaryObjectType">
|
105
|
+
<xsd:attribute name="mimeCode" type="xsd:normalizedString" use="required">
|
106
|
+
<xsd:annotation>
|
107
|
+
<xsd:documentation xml:lang="en">
|
108
|
+
<ccts:UniqueID>UNDT000002-SC3</ccts:UniqueID>
|
109
|
+
<ccts:CategoryCode>SC</ccts:CategoryCode>
|
110
|
+
<ccts:DictionaryEntryName>Binary Object. Mime. Code</ccts:DictionaryEntryName>
|
111
|
+
<ccts:Definition>The mime type of the binary object.</ccts:Definition>
|
112
|
+
<ccts:ObjectClass>Binary Object</ccts:ObjectClass>
|
113
|
+
<ccts:PropertyTermName>Mime</ccts:PropertyTermName>
|
114
|
+
<ccts:RepresentationTermName>Code</ccts:RepresentationTermName>
|
115
|
+
<ccts:PrimitiveType>string</ccts:PrimitiveType>
|
116
|
+
</xsd:documentation>
|
117
|
+
</xsd:annotation>
|
118
|
+
</xsd:attribute>
|
119
|
+
</xsd:restriction>
|
120
|
+
</xsd:simpleContent>
|
121
|
+
</xsd:complexType>
|
122
|
+
|
123
|
+
<xsd:complexType name="GraphicType">
|
124
|
+
<xsd:annotation>
|
125
|
+
<xsd:documentation xml:lang="en">
|
126
|
+
<ccts:UniqueID>UBLUDT000003</ccts:UniqueID>
|
127
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
128
|
+
<ccts:DictionaryEntryName>Graphic. Type</ccts:DictionaryEntryName>
|
129
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
130
|
+
<ccts:Definition>A diagram, graph, mathematical curve, or similar representation.</ccts:Definition>
|
131
|
+
<ccts:RepresentationTermName>Graphic</ccts:RepresentationTermName>
|
132
|
+
<ccts:PrimitiveType>binary</ccts:PrimitiveType>
|
133
|
+
</xsd:documentation>
|
134
|
+
</xsd:annotation>
|
135
|
+
<xsd:simpleContent>
|
136
|
+
<xsd:restriction base="ccts-cct:BinaryObjectType">
|
137
|
+
<xsd:attribute name="mimeCode" type="xsd:normalizedString" use="required">
|
138
|
+
<xsd:annotation>
|
139
|
+
<xsd:documentation xml:lang="en">
|
140
|
+
<ccts:UniqueID>UNDT000003-SC3</ccts:UniqueID>
|
141
|
+
<ccts:CategoryCode>SC</ccts:CategoryCode>
|
142
|
+
<ccts:DictionaryEntryName>Graphic. Mime. Code</ccts:DictionaryEntryName>
|
143
|
+
<ccts:Definition>The mime type of the graphic object.</ccts:Definition>
|
144
|
+
<ccts:ObjectClass>Graphic</ccts:ObjectClass>
|
145
|
+
<ccts:PropertyTermName>Mime</ccts:PropertyTermName>
|
146
|
+
<ccts:RepresentationTermName>Code</ccts:RepresentationTermName>
|
147
|
+
<ccts:PrimitiveType>normalizedString</ccts:PrimitiveType>
|
148
|
+
</xsd:documentation>
|
149
|
+
</xsd:annotation>
|
150
|
+
</xsd:attribute>
|
151
|
+
</xsd:restriction>
|
152
|
+
</xsd:simpleContent>
|
153
|
+
</xsd:complexType>
|
154
|
+
|
155
|
+
<xsd:complexType name="PictureType">
|
156
|
+
<xsd:annotation>
|
157
|
+
<xsd:documentation xml:lang="en">
|
158
|
+
<ccts:UniqueID>UBLUDT000004</ccts:UniqueID>
|
159
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
160
|
+
<ccts:DictionaryEntryName>Picture. Type</ccts:DictionaryEntryName>
|
161
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
162
|
+
<ccts:Definition>A diagram, graph, mathematical curve, or similar representation.</ccts:Definition>
|
163
|
+
<ccts:RepresentationTermName>Picture</ccts:RepresentationTermName>
|
164
|
+
<ccts:PrimitiveType>binary</ccts:PrimitiveType>
|
165
|
+
</xsd:documentation>
|
166
|
+
</xsd:annotation>
|
167
|
+
<xsd:simpleContent>
|
168
|
+
<xsd:restriction base="ccts-cct:BinaryObjectType">
|
169
|
+
<xsd:attribute name="mimeCode" type="xsd:normalizedString" use="required">
|
170
|
+
<xsd:annotation>
|
171
|
+
<xsd:documentation xml:lang="en">
|
172
|
+
<ccts:UniqueID>UNDT000004-SC3</ccts:UniqueID>
|
173
|
+
<ccts:CategoryCode>SC</ccts:CategoryCode>
|
174
|
+
<ccts:DictionaryEntryName>Picture. Mime. Code</ccts:DictionaryEntryName>
|
175
|
+
<ccts:Definition>The mime type of the picture object.</ccts:Definition>
|
176
|
+
<ccts:ObjectClass>Picture</ccts:ObjectClass>
|
177
|
+
<ccts:PropertyTermName>Mime</ccts:PropertyTermName>
|
178
|
+
<ccts:RepresentationTermName>Code</ccts:RepresentationTermName>
|
179
|
+
<ccts:PrimitiveType>normalizedString</ccts:PrimitiveType>
|
180
|
+
</xsd:documentation>
|
181
|
+
</xsd:annotation>
|
182
|
+
</xsd:attribute>
|
183
|
+
</xsd:restriction>
|
184
|
+
</xsd:simpleContent>
|
185
|
+
</xsd:complexType>
|
186
|
+
|
187
|
+
<xsd:complexType name="SoundType">
|
188
|
+
<xsd:annotation>
|
189
|
+
<xsd:documentation xml:lang="en">
|
190
|
+
<ccts:UniqueID>UBLUDT000005</ccts:UniqueID>
|
191
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
192
|
+
<ccts:DictionaryEntryName>Sound. Type</ccts:DictionaryEntryName>
|
193
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
194
|
+
<ccts:Definition>An audio representation.</ccts:Definition>
|
195
|
+
<ccts:RepresentationTermName>Sound</ccts:RepresentationTermName>
|
196
|
+
<ccts:PrimitiveType>binary</ccts:PrimitiveType>
|
197
|
+
</xsd:documentation>
|
198
|
+
</xsd:annotation>
|
199
|
+
<xsd:simpleContent>
|
200
|
+
<xsd:restriction base="ccts-cct:BinaryObjectType">
|
201
|
+
<xsd:attribute name="mimeCode" type="xsd:normalizedString" use="required">
|
202
|
+
<xsd:annotation>
|
203
|
+
<xsd:documentation xml:lang="en">
|
204
|
+
<ccts:UniqueID>UNDT000005-SC3</ccts:UniqueID>
|
205
|
+
<ccts:CategoryCode>SC</ccts:CategoryCode>
|
206
|
+
<ccts:DictionaryEntryName>Sound. Mime. Code</ccts:DictionaryEntryName>
|
207
|
+
<ccts:Definition>The mime type of the sound object.</ccts:Definition>
|
208
|
+
<ccts:ObjectClass>Sound</ccts:ObjectClass>
|
209
|
+
<ccts:PropertyTermName>Mime</ccts:PropertyTermName>
|
210
|
+
<ccts:RepresentationTermName>Code</ccts:RepresentationTermName>
|
211
|
+
<ccts:PrimitiveType>normalizedString</ccts:PrimitiveType>
|
212
|
+
</xsd:documentation>
|
213
|
+
</xsd:annotation>
|
214
|
+
</xsd:attribute>
|
215
|
+
</xsd:restriction>
|
216
|
+
</xsd:simpleContent>
|
217
|
+
</xsd:complexType>
|
218
|
+
|
219
|
+
<xsd:complexType name="VideoType">
|
220
|
+
<xsd:annotation>
|
221
|
+
<xsd:documentation xml:lang="en">
|
222
|
+
<ccts:UniqueID>UBLUDT000006</ccts:UniqueID>
|
223
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
224
|
+
<ccts:DictionaryEntryName>Video. Type</ccts:DictionaryEntryName>
|
225
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
226
|
+
<ccts:Definition>A video representation.</ccts:Definition>
|
227
|
+
<ccts:RepresentationTermName>Video</ccts:RepresentationTermName>
|
228
|
+
<ccts:PrimitiveType>binary</ccts:PrimitiveType>
|
229
|
+
</xsd:documentation>
|
230
|
+
</xsd:annotation>
|
231
|
+
<xsd:simpleContent>
|
232
|
+
<xsd:restriction base="ccts-cct:BinaryObjectType">
|
233
|
+
<xsd:attribute name="mimeCode" type="xsd:normalizedString" use="required">
|
234
|
+
<xsd:annotation>
|
235
|
+
<xsd:documentation xml:lang="en">
|
236
|
+
<ccts:UniqueID>UNDT000006-SC3</ccts:UniqueID>
|
237
|
+
<ccts:CategoryCode>SC</ccts:CategoryCode>
|
238
|
+
<ccts:DictionaryEntryName>Video. Mime. Code</ccts:DictionaryEntryName>
|
239
|
+
<ccts:Definition>The mime type of the video object.</ccts:Definition>
|
240
|
+
<ccts:ObjectClass>Video</ccts:ObjectClass>
|
241
|
+
<ccts:PropertyTermName>Mime</ccts:PropertyTermName>
|
242
|
+
<ccts:RepresentationTermName>Code</ccts:RepresentationTermName>
|
243
|
+
<ccts:PrimitiveType>normalizedString</ccts:PrimitiveType>
|
244
|
+
</xsd:documentation>
|
245
|
+
</xsd:annotation>
|
246
|
+
</xsd:attribute>
|
247
|
+
</xsd:restriction>
|
248
|
+
</xsd:simpleContent>
|
249
|
+
</xsd:complexType>
|
250
|
+
|
251
|
+
<xsd:complexType name="CodeType">
|
252
|
+
<xsd:annotation>
|
253
|
+
<xsd:documentation xml:lang="en">
|
254
|
+
<ccts:UniqueID>UBLUDT000007</ccts:UniqueID>
|
255
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
256
|
+
<ccts:DictionaryEntryName>Code. Type</ccts:DictionaryEntryName>
|
257
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
258
|
+
<ccts:Definition>A character string (letters, figures, or symbols) that for brevity and/or language independence may be used to represent or replace a definitive value or text of an attribute, together with relevant supplementary information.</ccts:Definition>
|
259
|
+
<ccts:RepresentationTermName>Code</ccts:RepresentationTermName>
|
260
|
+
<ccts:PrimitiveType>string</ccts:PrimitiveType>
|
261
|
+
<ccts:UsageRule>Other supplementary components in the CCT are captured as part of the token and name for the schema module containing the code list and thus, are not declared as attributes. </ccts:UsageRule>
|
262
|
+
</xsd:documentation>
|
263
|
+
</xsd:annotation>
|
264
|
+
<xsd:simpleContent>
|
265
|
+
<xsd:extension base="ccts-cct:CodeType"/>
|
266
|
+
</xsd:simpleContent>
|
267
|
+
</xsd:complexType>
|
268
|
+
|
269
|
+
<xsd:complexType name="DateTimeType">
|
270
|
+
<xsd:annotation>
|
271
|
+
<xsd:documentation xml:lang="en">
|
272
|
+
<ccts:UniqueID>UBLUDT000008</ccts:UniqueID>
|
273
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
274
|
+
<ccts:DictionaryEntryName>Date Time. Type</ccts:DictionaryEntryName>
|
275
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
276
|
+
<ccts:Definition>A particular point in the progression of time, together with relevant supplementary information.</ccts:Definition>
|
277
|
+
<ccts:RepresentationTermName>Date Time</ccts:RepresentationTermName>
|
278
|
+
<ccts:PrimitiveType>string</ccts:PrimitiveType>
|
279
|
+
<ccts:UsageRule>Can be used for a date and/or time.</ccts:UsageRule>
|
280
|
+
</xsd:documentation>
|
281
|
+
</xsd:annotation>
|
282
|
+
<xsd:simpleContent>
|
283
|
+
<xsd:extension base="xsd:dateTime"/>
|
284
|
+
</xsd:simpleContent>
|
285
|
+
</xsd:complexType>
|
286
|
+
|
287
|
+
<xsd:complexType name="DateType">
|
288
|
+
<xsd:annotation>
|
289
|
+
<xsd:documentation xml:lang="en">
|
290
|
+
<ccts:UniqueID>UBLUDT000009</ccts:UniqueID>
|
291
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
292
|
+
<ccts:DictionaryEntryName>Date. Type</ccts:DictionaryEntryName>
|
293
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
294
|
+
<ccts:Definition>One calendar day according the Gregorian calendar.</ccts:Definition>
|
295
|
+
<ccts:RepresentationTermName>Date</ccts:RepresentationTermName>
|
296
|
+
<ccts:PrimitiveType>string</ccts:PrimitiveType>
|
297
|
+
</xsd:documentation>
|
298
|
+
</xsd:annotation>
|
299
|
+
<xsd:simpleContent>
|
300
|
+
<xsd:extension base="xsd:date"/>
|
301
|
+
</xsd:simpleContent>
|
302
|
+
</xsd:complexType>
|
303
|
+
|
304
|
+
<xsd:complexType name="TimeType">
|
305
|
+
<xsd:annotation>
|
306
|
+
<xsd:documentation xml:lang="en">
|
307
|
+
<ccts:UniqueID>UBLUDT0000010</ccts:UniqueID>
|
308
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
309
|
+
<ccts:DictionaryEntryName>Time. Type</ccts:DictionaryEntryName>
|
310
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
311
|
+
<ccts:Definition>An instance of time that occurs every day.</ccts:Definition>
|
312
|
+
<ccts:RepresentationTermName>Time</ccts:RepresentationTermName>
|
313
|
+
<ccts:PrimitiveType>string</ccts:PrimitiveType>
|
314
|
+
</xsd:documentation>
|
315
|
+
</xsd:annotation>
|
316
|
+
<xsd:simpleContent>
|
317
|
+
<xsd:extension base="xsd:time"/>
|
318
|
+
</xsd:simpleContent>
|
319
|
+
</xsd:complexType>
|
320
|
+
|
321
|
+
<xsd:complexType name="IdentifierType">
|
322
|
+
<xsd:annotation>
|
323
|
+
<xsd:documentation xml:lang="en">
|
324
|
+
<ccts:UniqueID>UBLUDT0000011</ccts:UniqueID>
|
325
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
326
|
+
<ccts:DictionaryEntryName>Identifier. Type</ccts:DictionaryEntryName>
|
327
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
328
|
+
<ccts:Definition>A character string to identify and uniquely distinguish one instance of an object in an identification scheme from all other objects in the same scheme, together with relevant supplementary information.</ccts:Definition>
|
329
|
+
<ccts:RepresentationTermName>Identifier</ccts:RepresentationTermName>
|
330
|
+
<ccts:PrimitiveType>string</ccts:PrimitiveType>
|
331
|
+
<ccts:UsageRule>Other supplementary components in the CCT are captured as part of the token and name for the schema module containing the identifier list and thus, are not declared as attributes. </ccts:UsageRule>
|
332
|
+
</xsd:documentation>
|
333
|
+
</xsd:annotation>
|
334
|
+
<xsd:simpleContent>
|
335
|
+
<xsd:extension base="ccts-cct:IdentifierType"/>
|
336
|
+
</xsd:simpleContent>
|
337
|
+
</xsd:complexType>
|
338
|
+
|
339
|
+
<xsd:complexType name="IndicatorType">
|
340
|
+
<xsd:annotation>
|
341
|
+
<xsd:documentation xml:lang="en">
|
342
|
+
<ccts:UniqueID>UBLUDT0000012</ccts:UniqueID>
|
343
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
344
|
+
<ccts:DictionaryEntryName>Indicator. Type</ccts:DictionaryEntryName>
|
345
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
346
|
+
<ccts:Definition>A list of two mutually exclusive Boolean values that express the only possible states of a property.</ccts:Definition>
|
347
|
+
<ccts:RepresentationTermName>Indicator</ccts:RepresentationTermName>
|
348
|
+
<ccts:PrimitiveType>string</ccts:PrimitiveType>
|
349
|
+
</xsd:documentation>
|
350
|
+
</xsd:annotation>
|
351
|
+
<xsd:simpleContent>
|
352
|
+
<xsd:extension base="xsd:boolean"/>
|
353
|
+
</xsd:simpleContent>
|
354
|
+
</xsd:complexType>
|
355
|
+
|
356
|
+
<xsd:complexType name="MeasureType">
|
357
|
+
<xsd:annotation>
|
358
|
+
<xsd:documentation xml:lang="en">
|
359
|
+
<ccts:UniqueID>UBLUDT0000013</ccts:UniqueID>
|
360
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
361
|
+
<ccts:DictionaryEntryName>Measure. Type</ccts:DictionaryEntryName>
|
362
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
363
|
+
<ccts:Definition>A numeric value determined by measuring an object using a specified unit of measure.</ccts:Definition>
|
364
|
+
<ccts:RepresentationTermName>Measure</ccts:RepresentationTermName>
|
365
|
+
<ccts:PropertyTermName>Type</ccts:PropertyTermName>
|
366
|
+
<ccts:PrimitiveType>decimal</ccts:PrimitiveType>
|
367
|
+
</xsd:documentation>
|
368
|
+
</xsd:annotation>
|
369
|
+
<xsd:simpleContent>
|
370
|
+
<xsd:restriction base="ccts-cct:MeasureType">
|
371
|
+
<xsd:attribute name="unitCode" type="xsd:normalizedString" use="required">
|
372
|
+
<xsd:annotation>
|
373
|
+
<xsd:documentation xml:lang="en">
|
374
|
+
<ccts:UniqueID>UNDT000013-SC2</ccts:UniqueID>
|
375
|
+
<ccts:CategoryCode>SC</ccts:CategoryCode>
|
376
|
+
<ccts:DictionaryEntryName>Measure. Unit. Code</ccts:DictionaryEntryName>
|
377
|
+
<ccts:Definition>The type of unit of measure.</ccts:Definition>
|
378
|
+
<ccts:ObjectClass>Measure Unit</ccts:ObjectClass>
|
379
|
+
<ccts:PropertyTermName>Code</ccts:PropertyTermName>
|
380
|
+
<ccts:RepresentationTermName>Code</ccts:RepresentationTermName>
|
381
|
+
<ccts:PrimitiveType>normalizedString</ccts:PrimitiveType>
|
382
|
+
<ccts:UsageRule>Reference UNECE Rec. 20 and X12 355</ccts:UsageRule>
|
383
|
+
</xsd:documentation>
|
384
|
+
</xsd:annotation>
|
385
|
+
</xsd:attribute>
|
386
|
+
</xsd:restriction>
|
387
|
+
</xsd:simpleContent>
|
388
|
+
</xsd:complexType>
|
389
|
+
|
390
|
+
<xsd:complexType name="NumericType">
|
391
|
+
<xsd:annotation>
|
392
|
+
<xsd:documentation xml:lang="en">
|
393
|
+
<ccts:UniqueID>UBLUDT0000014</ccts:UniqueID>
|
394
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
395
|
+
<ccts:DictionaryEntryName>Numeric. Type</ccts:DictionaryEntryName>
|
396
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
397
|
+
<ccts:Definition>Numeric information that is assigned or is determined by calculation, counting, or sequencing. It does not require a unit of quantity or unit of measure.</ccts:Definition>
|
398
|
+
<ccts:RepresentationTermName>Numeric</ccts:RepresentationTermName>
|
399
|
+
<ccts:PrimitiveType>string</ccts:PrimitiveType>
|
400
|
+
</xsd:documentation>
|
401
|
+
</xsd:annotation>
|
402
|
+
<xsd:simpleContent>
|
403
|
+
<xsd:extension base="ccts-cct:NumericType"/>
|
404
|
+
</xsd:simpleContent>
|
405
|
+
</xsd:complexType>
|
406
|
+
|
407
|
+
<xsd:complexType name="ValueType">
|
408
|
+
<xsd:annotation>
|
409
|
+
<xsd:documentation xml:lang="en">
|
410
|
+
<ccts:UniqueID>UBLUDT0000015</ccts:UniqueID>
|
411
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
412
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
413
|
+
<ccts:DictionaryEntryName>Value. Type</ccts:DictionaryEntryName>
|
414
|
+
<ccts:Definition>Numeric information that is assigned or is determined by calculation, counting, or sequencing. It does not require a unit of quantity or unit of measure.</ccts:Definition>
|
415
|
+
<ccts:RepresentationTermName>Value</ccts:RepresentationTermName>
|
416
|
+
<ccts:PrimitiveType>string</ccts:PrimitiveType>
|
417
|
+
</xsd:documentation>
|
418
|
+
</xsd:annotation>
|
419
|
+
<xsd:simpleContent>
|
420
|
+
<xsd:extension base="ccts-cct:NumericType"/>
|
421
|
+
</xsd:simpleContent>
|
422
|
+
</xsd:complexType>
|
423
|
+
|
424
|
+
<xsd:complexType name="PercentType">
|
425
|
+
<xsd:annotation>
|
426
|
+
<xsd:documentation xml:lang="en">
|
427
|
+
<ccts:UniqueID>UBLUDT0000016</ccts:UniqueID>
|
428
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
429
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
430
|
+
<ccts:DictionaryEntryName>Percent. Type</ccts:DictionaryEntryName>
|
431
|
+
<ccts:Definition>Numeric information that is assigned or is determined by calculation, counting, or sequencing and is expressed as a percentage. It does not require a unit of quantity or unit of measure.</ccts:Definition>
|
432
|
+
<ccts:RepresentationTermName>Percent</ccts:RepresentationTermName>
|
433
|
+
<ccts:PrimitiveType>string</ccts:PrimitiveType>
|
434
|
+
</xsd:documentation>
|
435
|
+
</xsd:annotation>
|
436
|
+
<xsd:simpleContent>
|
437
|
+
<xsd:extension base="ccts-cct:NumericType"/>
|
438
|
+
</xsd:simpleContent>
|
439
|
+
</xsd:complexType>
|
440
|
+
|
441
|
+
<xsd:complexType name="RateType">
|
442
|
+
<xsd:annotation>
|
443
|
+
<xsd:documentation xml:lang="en">
|
444
|
+
<ccts:UniqueID>UBLUDT0000017</ccts:UniqueID>
|
445
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
446
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
447
|
+
<ccts:DictionaryEntryName>Rate. Type</ccts:DictionaryEntryName>
|
448
|
+
<ccts:Definition>A numeric expression of a rate that is assigned or is determined by calculation, counting, or sequencing. It does not require a unit of quantity or unit of measure.</ccts:Definition>
|
449
|
+
<ccts:RepresentationTermName>Rate</ccts:RepresentationTermName>
|
450
|
+
<ccts:PrimitiveType>string</ccts:PrimitiveType>
|
451
|
+
</xsd:documentation>
|
452
|
+
</xsd:annotation>
|
453
|
+
<xsd:simpleContent>
|
454
|
+
<xsd:extension base="ccts-cct:NumericType"/>
|
455
|
+
</xsd:simpleContent>
|
456
|
+
</xsd:complexType>
|
457
|
+
|
458
|
+
<xsd:complexType name="QuantityType">
|
459
|
+
<xsd:annotation>
|
460
|
+
<xsd:documentation xml:lang="en">
|
461
|
+
<ccts:UniqueID>UBLUDT0000018</ccts:UniqueID>
|
462
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
463
|
+
<ccts:DictionaryEntryName>Quantity. Type</ccts:DictionaryEntryName>
|
464
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
465
|
+
<ccts:Definition>A counted number of non-monetary units, possibly including a fractional part.</ccts:Definition>
|
466
|
+
<ccts:RepresentationTermName>Quantity</ccts:RepresentationTermName>
|
467
|
+
<ccts:PrimitiveType>decimal</ccts:PrimitiveType>
|
468
|
+
</xsd:documentation>
|
469
|
+
</xsd:annotation>
|
470
|
+
<xsd:simpleContent>
|
471
|
+
<xsd:extension base="ccts-cct:QuantityType"/>
|
472
|
+
</xsd:simpleContent>
|
473
|
+
</xsd:complexType>
|
474
|
+
|
475
|
+
<xsd:complexType name="TextType">
|
476
|
+
<xsd:annotation>
|
477
|
+
<xsd:documentation xml:lang="en">
|
478
|
+
<ccts:UniqueID>UBLUDT0000019</ccts:UniqueID>
|
479
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
480
|
+
<ccts:DictionaryEntryName>Text. Type</ccts:DictionaryEntryName>
|
481
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
482
|
+
<ccts:Definition>A character string (i.e. a finite set of characters), generally in the form of words of a language.</ccts:Definition>
|
483
|
+
<ccts:RepresentationTermName>Text</ccts:RepresentationTermName>
|
484
|
+
<ccts:PrimitiveType>string</ccts:PrimitiveType>
|
485
|
+
</xsd:documentation>
|
486
|
+
</xsd:annotation>
|
487
|
+
<xsd:simpleContent>
|
488
|
+
<xsd:extension base="ccts-cct:TextType"/>
|
489
|
+
</xsd:simpleContent>
|
490
|
+
</xsd:complexType>
|
491
|
+
|
492
|
+
<xsd:complexType name="NameType">
|
493
|
+
<xsd:annotation>
|
494
|
+
<xsd:documentation xml:lang="en">
|
495
|
+
<ccts:UniqueID>UBLUDT0000020</ccts:UniqueID>
|
496
|
+
<ccts:CategoryCode>UDT</ccts:CategoryCode>
|
497
|
+
<ccts:DictionaryEntryName>Name. Type</ccts:DictionaryEntryName>
|
498
|
+
<ccts:VersionID>1.0</ccts:VersionID>
|
499
|
+
<ccts:Definition>A character string that constitutes the distinctive designation of a person, place, thing or concept.</ccts:Definition>
|
500
|
+
<ccts:RepresentationTermName>Name</ccts:RepresentationTermName>
|
501
|
+
<ccts:PrimitiveType>string</ccts:PrimitiveType>
|
502
|
+
</xsd:documentation>
|
503
|
+
</xsd:annotation>
|
504
|
+
<xsd:simpleContent>
|
505
|
+
<xsd:extension base="ccts-cct:TextType"/>
|
506
|
+
</xsd:simpleContent>
|
507
|
+
</xsd:complexType>
|
508
|
+
</xsd:schema><!-- ===== Copyright Notice ===== --><!--
|
509
|
+
OASIS takes no position regarding the validity or scope of any
|
510
|
+
intellectual property or other rights that might be claimed to pertain
|
511
|
+
to the implementation or use of the technology described in this
|
512
|
+
document or the extent to which any license under such rights
|
513
|
+
might or might not be available; neither does it represent that it has
|
514
|
+
made any effort to identify any such rights. Information on OASIS's
|
515
|
+
procedures with respect to rights in OASIS specifications can be
|
516
|
+
found at the OASIS website. Copies of claims of rights made
|
517
|
+
available for publication and any assurances of licenses to be made
|
518
|
+
available, or the result of an attempt made to obtain a general
|
519
|
+
license or permission for the use of such proprietary rights by
|
520
|
+
implementors or users of this specification, can be obtained from
|
521
|
+
the OASIS Executive Director.
|
522
|
+
|
523
|
+
OASIS invites any interested party to bring to its attention any
|
524
|
+
copyrights, patents or patent applications, or other proprietary
|
525
|
+
rights which may cover technology that may be required to
|
526
|
+
implement this specification. Please address the information to the
|
527
|
+
OASIS Executive Director.
|
528
|
+
|
529
|
+
This document and translations of it may be copied and furnished to
|
530
|
+
others, and derivative works that comment on or otherwise explain
|
531
|
+
it or assist in its implementation may be prepared, copied,
|
532
|
+
published and distributed, in whole or in part, without restriction of
|
533
|
+
any kind, provided that the above copyright notice and this
|
534
|
+
paragraph are included on all such copies and derivative works.
|
535
|
+
However, this document itself may not be modified in any way,
|
536
|
+
such as by removing the copyright notice or references to OASIS,
|
537
|
+
except as needed for the purpose of developing OASIS
|
538
|
+
specifications, in which case the procedures for copyrights defined
|
539
|
+
in the OASIS Intellectual Property Rights document must be
|
540
|
+
followed, or as required to translate it into languages other than
|
541
|
+
English.
|
542
|
+
|
543
|
+
The limited permissions granted above are perpetual and will not be
|
544
|
+
revoked by OASIS or its successors or assigns.
|
545
|
+
|
546
|
+
This document and the information contained herein is provided on
|
547
|
+
an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES,
|
548
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY
|
549
|
+
WARRANTY THAT THE USE OF THE INFORMATION HEREIN
|
550
|
+
WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
|
551
|
+
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
|
552
|
+
PARTICULAR PURPOSE.
|
553
|
+
-->
|