├── src
├── Ubl
│ ├── Resolver
│ │ ├── PathResolverInterface.php
│ │ ├── VersionResolverInterface.php
│ │ ├── UblVersionResolver.php
│ │ └── UblPathResolver.php
│ ├── UblValidatorInterface.php
│ ├── SchemaValidatorInterface.php
│ ├── XmlError.php
│ ├── SchemaValidator.php
│ └── UblValidator.php
└── xsd
│ ├── 2.1
│ ├── common
│ │ ├── UBL-XAdESv141-2.1.xsd
│ │ ├── UBL-CoreComponentParameters-2.1.xsd
│ │ ├── UBL-QualifiedDataTypes-2.1.xsd
│ │ ├── UBL-SignatureBasicComponents-2.1.xsd
│ │ ├── UBL-ExtensionContentDataType-2.1.xsd
│ │ ├── UBL-CommonSignatureComponents-2.1.xsd
│ │ ├── UBL-SignatureAggregateComponents-2.1.xsd
│ │ ├── UBL-CommonExtensionComponents-2.1.xsd
│ │ ├── UBL-xmldsig-core-schema-2.1.xsd
│ │ └── UBL-XAdESv132-2.1.xsd
│ └── maindoc
│ │ └── UBL-ApplicationResponse-2.1.xsd
│ └── 2.0
│ ├── common
│ ├── UBL-CoreComponentParameters-2.0.xsd
│ ├── UBL-ExtensionContentDatatype-2.0.xsd
│ ├── xmldsig-core-schema.xsd
│ └── UBL-CommonExtensionComponents-2.0.xsd
│ └── maindoc
│ ├── UBL-Perception-2.0.xsd
│ ├── UBL-Retention-2.0.xsd
│ ├── UBL-SummaryDocuments-2.0.xsd
│ ├── UBL-VoidedDocuments-2.0.xsd
│ ├── UBL-ApplicationResponse-2.0.xsd
│ └── UBL-DespatchAdvice-2.0.xsd
├── infection.json.dist
├── composer.json
└── .github
└── workflows
└── main.yml
/src/Ubl/Resolver/PathResolverInterface.php:
--------------------------------------------------------------------------------
1 | code}, Line: {$this->line}, Column: {$this->column}, Message: {$this->message}";
44 | }
45 | }
--------------------------------------------------------------------------------
/infection.json.dist:
--------------------------------------------------------------------------------
1 | {
2 | "source": {
3 | "directories": [
4 | "src"
5 | ],
6 | "excludes": [
7 | "app"
8 | ]
9 | },
10 | "timeout": 10,
11 | "logs": {
12 | "text": "infection.log",
13 | "summary": "summary.log",
14 | "json": "infection-log.json",
15 | "perMutator": "per-mutator.md",
16 | "badge": {
17 | "branch": "master"
18 | }
19 | },
20 | "mutators": {
21 | "@default": true,
22 | "@function_signature": false,
23 | "TrueValue": {
24 | "ignore": [
25 | "NameSpace\\*\\Class::method"
26 | ]
27 | }
28 | },
29 | "testFramework":"phpunit",
30 | "bootstrap":"./vendor/autoload.php",
31 | "initialTestsPhpOptions": "",
32 | "testFrameworkOptions": "-vvv"
33 | }
34 |
--------------------------------------------------------------------------------
/composer.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "greenter/ubl-validator",
3 | "description": "OASIS Universal Business Language Schema Validator UBL v2.0, UBL v2.1",
4 | "keywords": ["ubl", "validator", "greenter", "invoice"],
5 | "license": "MIT",
6 | "authors": [
7 | {
8 | "name": "Giancarlos Salas",
9 | "email": "giansalex@gmail.com"
10 | }
11 | ],
12 | "homepage": "https://github.com/thegreenter/ubl-validator",
13 | "type": "library",
14 | "require": {
15 | "php": ">=5.5.9",
16 | "ext-dom": "*",
17 | "ext-libxml": "*"
18 | },
19 | "autoload": {
20 | "psr-4": {
21 | "Greenter\\": "src/"
22 | }
23 | },
24 | "autoload-dev": {
25 | "psr-4": {
26 | "Tests\\Greenter\\": "tests/"
27 | }
28 | },
29 | "require-dev": {
30 | "phpunit/phpunit": "^5"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/.github/workflows/main.yml:
--------------------------------------------------------------------------------
1 | name: CI
2 |
3 | on: [push, pull_request]
4 |
5 | jobs:
6 | test:
7 | name: PHP ${{ matrix.php-versions }} Tests
8 | runs-on: ubuntu-latest
9 | strategy:
10 | max-parallel: 2
11 | matrix:
12 | php-versions: ['5.6', '7.3']
13 | steps:
14 | - uses: actions/checkout@v2
15 | with:
16 | fetch-depth: 1
17 | - name: Setup PHP
18 | uses: shivammathur/setup-php@v2
19 | with:
20 | php-version: ${{ matrix.php-versions }}
21 | extension-csv: dom
22 | ini-values: xdebug.mode=coverage
23 | - run: composer install
24 | - name: PHPUnit Tests
25 | run: vendor/bin/phpunit
26 | - name: Run Infection
27 | run: |
28 | wget https://github.com/infection/infection/releases/download/0.17.0/infection.phar
29 | chmod +x infection.phar
30 | ./infection.phar --min-msi=85 --threads=4
31 | env:
32 | INFECTION_BADGE_API_KEY: ${{ secrets.STRYKERAPIKEY }}
33 | if: matrix.php-versions == '7.3'
34 | # - name: Upload coverage results to Coveralls
35 | # env:
36 | # COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLSTOKEN }}
37 | # run: |
38 | # composer require twinh/php-coveralls
39 | # php vendor/bin/php-coveralls --coverage_clover=build/logs/clover.xml -v
40 | # if: matrix.php-versions == '7.3' && ${{ github.ref }} == 'refs/heads/master'
41 |
--------------------------------------------------------------------------------
/src/xsd/2.1/common/UBL-XAdESv141-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/src/Ubl/Resolver/UblVersionResolver.php:
--------------------------------------------------------------------------------
1 | documentElement)) {
36 | return '';
37 | }
38 |
39 | $xpath = $this->getXpath($document);
40 | $this->setNs($document);
41 | $xpath->registerNamespace('cbc', self::CBC_NS);
42 |
43 | return $this->getSingleValue($xpath, 'cbc:UBLVersionID');
44 | }
45 |
46 | private function setNs(DOMDocument $doc)
47 | {
48 | $docName = $doc->documentElement->localName;
49 |
50 | $this->rootNs = '/'. self::ROOT_PREFIX . ':' . $docName;
51 | }
52 |
53 | private function getXpath(DOMDocument $doc)
54 | {
55 | $xpath = new DOMXPath($doc);
56 | $xpath->registerNamespace(self::ROOT_PREFIX, $doc->documentElement->namespaceURI);
57 |
58 | return $xpath;
59 | }
60 |
61 | private function getSingleValue(DOMXPath $xpath, $query)
62 | {
63 | $nodes = $xpath->query($this->rootNs . '/' . $query);
64 | if ($nodes->length > 0) {
65 | return $nodes->item(0)->nodeValue;
66 | }
67 |
68 | return '';
69 | }
70 | }
71 |
--------------------------------------------------------------------------------
/src/Ubl/Resolver/UblPathResolver.php:
--------------------------------------------------------------------------------
1 | baseDirectory = __DIR__.'/../../xsd';
46 | }
47 |
48 | /**
49 | * Get Path XSD.
50 | *
51 | * @param DOMDocument $document
52 | * @return string|null
53 | */
54 | function getPath(DOMDocument $document)
55 | {
56 | $name = $document->documentElement->localName;
57 | if (empty($this->version)) {
58 | $this->loadVersion($document);
59 | }
60 | $path = $this->getFullPath($name);
61 |
62 | return $path;
63 | }
64 |
65 | private function getFullPath($name)
66 | {
67 | $filename = sprintf(self::FILE_FORMAT, $name, $this->version);
68 | $path = join(DIRECTORY_SEPARATOR, [$this->baseDirectory, $this->version, 'maindoc', $filename]);
69 |
70 | return $path;
71 | }
72 |
73 | private function loadVersion(DOMDocument $document)
74 | {
75 | if (!$this->versionResolver) $this->versionResolver = new UblVersionResolver();
76 |
77 | $this->version = $this->versionResolver->getVersion($document);
78 | }
79 | }
--------------------------------------------------------------------------------
/src/Ubl/SchemaValidator.php:
--------------------------------------------------------------------------------
1 | errors);
33 | }
34 |
35 | /**
36 | * @param DOMDocument $document
37 | * @param string $xsdPath XSD full path
38 | *
39 | * @return bool
40 | */
41 | public function validate(DOMDocument $document, $xsdPath)
42 | {
43 | $state = libxml_use_internal_errors(true);
44 | $result = $document->schemaValidate($xsdPath);
45 | $this->errors = $this->extractErrors();
46 | libxml_use_internal_errors($state);
47 |
48 | return $result;
49 | }
50 |
51 | /**
52 | * Get errors list.
53 | *
54 | * @return Generator
55 | */
56 | public function extractErrors()
57 | {
58 | $xmlErrors = libxml_get_errors();
59 | $errors = $this->mapToErrors($xmlErrors);
60 |
61 | libxml_clear_errors();
62 |
63 | return $errors;
64 | }
65 |
66 | /**
67 | * @param LibXMLError[] $xmlErrors
68 | * @return Generator
69 | */
70 | private function mapToErrors($xmlErrors)
71 | {
72 | foreach ($xmlErrors as $error) {
73 | $item = new XmlError();
74 | $item->level = $error->level;
75 | $item->code = $error->code;
76 | $item->column = $error->column;
77 | $item->message = $error->message;
78 | $item->line = $error->line;
79 | yield $item;
80 | }
81 | }
82 | }
83 |
--------------------------------------------------------------------------------
/src/Ubl/UblValidator.php:
--------------------------------------------------------------------------------
1 | error;
41 | }
42 |
43 | /**
44 | * @param DOMDocument|string $value Xml content or DomDocument
45 | *
46 | * @return bool
47 | */
48 | public function isValid($value)
49 | {
50 | $this->checkDependencies();
51 | $doc = $this->getDocument($value);
52 | if (empty($doc->documentElement)) {
53 | $this->error = 'Invalid XML Document';
54 | return false;
55 | }
56 |
57 | $path = $this->pathResolver->getPath($doc);
58 | if (empty($path) || !file_exists($path)) {
59 | $this->error = "XSD Path: :'$path' not found";
60 | return false;
61 | }
62 |
63 | $valid = $this->schemaValidator->validate($doc, $path);
64 | $this->error = $valid ? '' : $this->getErrorMessage($this->schemaValidator->getErrors());
65 |
66 | return $valid;
67 | }
68 |
69 | private function getDocument($value)
70 | {
71 | if ($value instanceof DOMDocument) {
72 | return $value;
73 | }
74 |
75 | $doc = new DOMDocument();
76 | @$doc->loadXML($value);
77 |
78 | return $doc;
79 | }
80 |
81 | /**
82 | * @param XmlError[] $errors
83 | * @return string
84 | */
85 | private function getErrorMessage($errors)
86 | {
87 | $lines = [];
88 | foreach ($errors as $error) {
89 | $lines[] = (string) $error;
90 | }
91 |
92 | return join(PHP_EOL, $lines);
93 | }
94 |
95 | private function checkDependencies()
96 | {
97 | if (!$this->pathResolver) {
98 | $this->pathResolver = new UblPathResolver();
99 | $this->pathResolver->baseDirectory = __DIR__.'/../xsd';
100 | }
101 | if (!$this->schemaValidator) $this->schemaValidator = new SchemaValidator();
102 | }
103 | }
--------------------------------------------------------------------------------
/src/xsd/2.0/common/UBL-CoreComponentParameters-2.0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
14 |
15 |
16 |
17 |
65 |
--------------------------------------------------------------------------------
/src/xsd/2.1/common/UBL-CoreComponentParameters-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
10 |
16 |
17 |
18 |
64 |
--------------------------------------------------------------------------------
/src/xsd/2.0/common/UBL-ExtensionContentDatatype-2.0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | The definition of the extension content.
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
74 |
--------------------------------------------------------------------------------
/src/xsd/2.1/common/UBL-QualifiedDataTypes-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
10 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
70 |
--------------------------------------------------------------------------------
/src/xsd/2.1/common/UBL-SignatureBasicComponents-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
10 |
18 |
19 |
21 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/src/xsd/2.1/common/UBL-ExtensionContentDataType-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
10 |
17 |
18 |
19 |
22 |
23 |
24 |
25 |
26 |
28 |
29 |
30 | Any element in any namespace other than the UBL extension
31 | namespace is allowed to be the apex element of an extension.
32 | Only those elements found in the UBL schemas and in the
33 | trees of schemas imported in this module are validated.
34 | Any element for which there is no schema declaration in any
35 | of the trees of schemas passes validation and is not
36 | treated as a schema constraint violation.
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/src/xsd/2.1/common/UBL-CommonSignatureComponents-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
10 |
18 |
19 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | ABIE
30 | UBL Document Signatures. Details
31 | This class collects all signature information for a document.
32 | UBL Document Signatures
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 | ASBIE
42 | UBL Document Signatures. Signature Information
43 | Each of these is scaffolding for a single digital signature.
44 | 1..n
45 | UBL Document Signatures
46 | Signature Information
47 | Signature Information
48 | Signature Information
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/src/xsd/2.0/maindoc/UBL-Perception-2.0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | Percepcion
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
95 |
--------------------------------------------------------------------------------
/src/xsd/2.0/maindoc/UBL-Retention-2.0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 | Retencion
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
96 |
--------------------------------------------------------------------------------
/src/xsd/2.1/common/UBL-SignatureAggregateComponents-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
10 |
21 |
22 |
24 |
26 |
27 |
28 |
30 |
31 |
32 |
34 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 | ABIE
46 | Signature Information. Details
47 | This class captures a single signature and optionally associates to a signature in the document with the corresponding identifier.
48 | Signature Information
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 | BBIE
58 | Signature Information. Identifier
59 | This specifies the identifier of the signature distinguishing it from other signatures.
60 | 0..1
61 | Signature Information
62 | Identifier
63 | Identifier
64 | Identifier. Type
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | BBIE
74 | Signature Information. Referenced Signature Identifier. Identifier
75 | This associates this signature with the identifier of a signature business object in the document.
76 | 0..1
77 | Signature Information
78 | Referenced Signature Identifier
79 | Identifier
80 | Identifier. Type
81 |
82 |
83 |
84 |
85 |
86 |
87 | This is a single digital signature as defined by the W3C specification.
88 |
89 |
90 |
91 |
92 |
93 |
--------------------------------------------------------------------------------
/src/xsd/2.1/common/UBL-CommonExtensionComponents-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
10 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | A container for all extensions present in the document.
27 |
28 |
29 |
30 |
31 |
32 |
33 | A container for all extensions present in the document.
34 |
35 |
36 |
37 |
38 |
39 |
40 | A single extension for private use.
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 | A single extension for private use.
50 |
51 |
52 |
53 |
54 |
55 |
56 | A single extension for private use.
57 |
58 |
59 |
60 |
61 |
62 |
63 | An identifier for the Extension assigned by the creator of the extension.
64 |
65 |
66 |
67 |
68 |
69 |
70 | A name for the Extension assigned by the creator of the extension.
71 |
72 |
73 |
74 |
75 |
76 |
77 | An agency that maintains one or more Extensions.
78 |
79 |
80 |
81 |
82 |
83 |
84 | The name of the agency that maintains the Extension.
85 |
86 |
87 |
88 |
89 |
90 |
91 | The version of the Extension.
92 |
93 |
94 |
95 |
96 |
97 |
98 | A URI for the Agency that maintains the Extension.
99 |
100 |
101 |
102 |
103 |
104 |
105 | A URI for the Extension.
106 |
107 |
108 |
109 |
110 |
111 |
112 | A code for reason the Extension is being included.
113 |
114 |
115 |
116 |
117 |
118 |
119 | A description of the reason for the Extension.
120 |
121 |
122 |
123 |
124 |
125 |
126 | The definition of the extension content.
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
--------------------------------------------------------------------------------
/src/xsd/2.0/maindoc/UBL-SummaryDocuments-2.0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | This element MUST be conveyed as the root element in any instance document based on this Schema expression
21 |
22 |
23 |
24 |
25 |
26 |
27 | ABIE
28 | Consolidated Invoice. Details
29 | The document used to request payment.
30 | ConsolidatedInvoice
31 |
32 |
33 |
34 |
35 |
36 |
37 | A container for all extensions present in the document.
38 |
39 |
40 |
41 |
42 |
43 |
44 | BBIE
45 | Invoice. UBL Version Identifier. Identifier
46 | The earliest version of the UBL 2 schema for this document type that defines all of the elements that might be encountered in the current instance.
47 | 0..1
48 | Invoice
49 | UBL Version Identifier
50 | Identifier
51 | Identifier. Type
52 | 2.0.5
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | BBIE
62 | Invoice. Customization Identifier. Identifier
63 | Identifies a user-defined customization of UBL for a specific use.
64 | 0..1
65 | Invoice
66 | Customization Identifier
67 | Identifier
68 | Identifier. Type
69 | NES
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 | BBIE
79 | Consolidated Invoice Identifier
80 | An identifier for the Invoice assigned by the Creditor.
81 | 1
82 | Consolidated Invoice
83 | Identifier
84 | Identifier
85 | Identifier. Type
86 | Invoice Number
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 | BBIE
97 | Consolidated Invoice Issue Date. Date
98 | The date assigned by the Creditor on which the Invoice was issued.
99 | 1
100 | Consolidated Invoice
101 | Issue Date
102 | Date
103 | Date. Type
104 | Invoice Date
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 | BBIE
114 | Invoice. Note. Text
115 | Free-form text applying to the Invoice. This element may contain notes or any other similar information that is not contained explicitly in another structure.
116 | 0..n
117 | Consolidated Invoice
118 | Note
119 | Text
120 | Text. Type
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 | ASBIE
130 | Consolidated Invoice Signature
131 | An association to Signature.
132 | 0..n
133 | Consolidated Invoice
134 | Signature
135 | Signature
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 | ASBIE
145 | Consolidated Invoice Accounting_ Supplier Party. Supplier Party
146 | An association to the Accounting Supplier Party.
147 | 1
148 | Consolidated Invoice
149 | Accounting
150 | Supplier Party
151 | Supplier Party
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 | ASBIE
161 | Consolidated Invoice Invoice Line
162 | An association to one or more Invoice Lines.
163 | 1..n
164 | Consolidated Invoice
165 | Consolidated Invoice Line
166 | Consolidated Invoice Line
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
--------------------------------------------------------------------------------
/src/xsd/2.0/maindoc/UBL-VoidedDocuments-2.0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
3 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | This element MUST be conveyed as the root element in any instance document based on this Schema expression
21 |
22 |
23 |
24 |
25 |
26 |
27 | ABIE
28 | Consolidated Invoice. Details
29 | The document used to request payment.
30 | ConsolidatedInvoice
31 |
32 |
33 |
34 |
35 |
36 |
37 | A container for all extensions present in the document.
38 |
39 |
40 |
41 |
42 |
43 |
44 | BBIE
45 | Invoice. UBL Version Identifier. Identifier
46 | The earliest version of the UBL 2 schema for this document type that defines all of the elements that might be encountered in the current instance.
47 | 0..1
48 | Invoice
49 | UBL Version Identifier
50 | Identifier
51 | Identifier. Type
52 | 2.0.5
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 | BBIE
62 | Invoice. Customization Identifier. Identifier
63 | Identifies a user-defined customization of UBL for a specific use.
64 | 0..1
65 | Invoice
66 | Customization Identifier
67 | Identifier
68 | Identifier. Type
69 | NES
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 | BBIE
79 | Consolidated Invoice Identifier
80 | An identifier for the Invoice assigned by the Creditor.
81 | 1
82 | Consolidated Invoice
83 | Identifier
84 | Identifier
85 | Identifier. Type
86 | Invoice Number
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 | BBIE
97 | Consolidated Invoice Issue Date. Date
98 | The date assigned by the Creditor on which the Invoice was issued.
99 | 1
100 | Consolidated Invoice
101 | Issue Date
102 | Date
103 | Date. Type
104 | Invoice Date
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 | BBIE
114 | Invoice. Note. Text
115 | Free-form text applying to the Invoice. This element may contain notes or any other similar information that is not contained explicitly in another structure.
116 | 0..n
117 | Consolidated Invoice
118 | Note
119 | Text
120 | Text. Type
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 | ASBIE
130 | Consolidated Invoice Signature
131 | An association to Signature.
132 | 0..n
133 | Consolidated Invoice
134 | Signature
135 | Signature
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 | ASBIE
145 | Consolidated Invoice Accounting_ Supplier Party. Supplier Party
146 | An association to the Accounting Supplier Party.
147 | 1
148 | Consolidated Invoice
149 | Accounting
150 | Supplier Party
151 | Supplier Party
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 | ASBIE
161 | Consolidated Invoice Accounting_ Supplier Party. Supplier Party
162 | An association to the Accounting Supplier Party.
163 | 1
164 | Consolidated Invoice
165 | Accounting
166 | Supplier Party
167 | Supplier Party
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
--------------------------------------------------------------------------------
/src/xsd/2.0/common/xmldsig-core-schema.xsd:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
--------------------------------------------------------------------------------
/src/xsd/2.0/common/UBL-CommonExtensionComponents-2.0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
6 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | A container for all extensions present in the document.
22 |
23 |
24 |
25 |
26 |
27 |
28 | A container for all extensions present in the document.
29 |
30 |
31 |
32 |
33 |
34 |
35 | A single extension for private use.
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 | A single extension for private use.
45 |
46 |
47 |
48 |
49 |
50 |
51 | A single extension for private use.
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | BBIE
60 | Extension. Identifier
61 |
62 | An identifier for the Extension assigned by the creator of the extension.
63 | 0..1
64 | Extension
65 | Identifier
66 | Identifier
67 | Identifier. Type
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 | BBIE
77 | Extension. Name
78 |
79 | A name for the Extension assigned by the creator of the extension.
80 | 0..1
81 | Extension
82 | Name
83 | Name
84 | Name. Type
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 | An agency that maintains one or more Extensions.
93 |
94 |
95 |
96 |
97 |
98 |
99 | The name of the agency that maintains the Extension.
100 |
101 |
102 |
103 |
104 |
105 |
106 | The version of the Extension.
107 |
108 |
109 |
110 |
111 |
112 |
113 | A URI for the Agency that maintains the Extension.
114 |
115 |
116 |
117 |
118 |
119 |
120 | A URI for the Extension.
121 |
122 |
123 |
124 |
125 |
126 |
127 | A code for reason the Extension is being included.
128 |
129 |
130 |
131 |
132 |
133 |
134 | A description of the reason for the Extension.
135 |
136 |
137 |
138 |
139 |
140 |
141 | The definition of the extension content.
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
--------------------------------------------------------------------------------
/src/xsd/2.1/common/UBL-xmldsig-core-schema-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
15 |
19 |
20 |
21 |
22 | ]>
23 |
24 |
39 |
40 |
41 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
228 |
229 |
230 |
231 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
--------------------------------------------------------------------------------
/src/xsd/2.0/maindoc/UBL-ApplicationResponse-2.0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 | This element MUST be conveyed as the root element in any instance document based on this Schema expression
19 |
20 |
21 |
22 |
23 |
24 |
25 | ABIE
26 | Application Response. Details
27 | A document to indicate the application's response to a transaction. This may be a business response and/or a technical response, sent automatically by an application or initiated by a user.
28 | Application Response
29 |
30 |
31 |
32 |
33 |
34 |
35 | A container for all extensions present in the document.
36 |
37 |
38 |
39 |
40 |
41 |
42 | BBIE
43 | Application Response. UBL Version Identifier. Identifier
44 | The earliest version of the UBL 2 schema for this document type that defines all of the elements that might be encountered in the current instance.
45 | 0..1
46 | Application Response
47 | UBL Version Identifier
48 | Identifier
49 | Identifier. Type
50 | 2.0.5
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | BBIE
60 | Application Response. Customization Identifier. Identifier
61 | Identifies a user-defined customization of UBL for a specific use.
62 | 0..1
63 | Application Response
64 | Customization Identifier
65 | Identifier
66 | Identifier. Type
67 | NES
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 | BBIE
77 | Application Response. Profile Identifier. Identifier
78 | Identifies a user-defined profile of the customization of UBL being used.
79 | 0..1
80 | Application Response
81 | Profile Identifier
82 | Identifier
83 | Identifier. Type
84 | BasicProcurementProcess
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 | BBIE
94 | Application Response. Identifier
95 | An identifier for the Application Response assigned by the sender.
96 | 1
97 | Application Response
98 | Identifier
99 | Identifier
100 | Identifier. Type
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | BBIE
110 | Application Response. UUID. Identifier
111 | A universally unique identifier for an instance of this ABIE.
112 | 0..1
113 | Application Response
114 | UUID
115 | Identifier
116 | Identifier. Type
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 | BBIE
126 | Application Response. Issue Date. Date
127 | The date assigned by the sender's application on which the Application Response was created.
128 | 1
129 | Application Response
130 | Issue Date
131 | Date
132 | Date. Type
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 | BBIE
142 | Application Response. Issue Time. Time
143 | The time assigned by the sender's application at which the Application Response was created.
144 | 0..1
145 | Application Response
146 | Issue Time
147 | Time
148 | Time. Type
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 | BBIE
158 | Application Response. Response Date. Date
159 | The date at which the information in the response was created.
160 | 0..1
161 | Application Response
162 | Response Date
163 | Date
164 | Date. Type
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 | BBIE
174 | Application Response. Response Time. Time
175 | The time at which the information in the response was created.
176 | 0..1
177 | Application Response
178 | Response Time
179 | Time
180 | Time. Type
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 | BBIE
190 | Application Response. Note. Text
191 | Free-form text applying to the Application Response. This element may contain notes or any other similar information that is not contained explicitly in another structure.
192 | 0..n
193 | Application Response
194 | Note
195 | Text
196 | Text. Type
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 | BBIE
206 | Application Response. Version Identifier. Identifier
207 | Identifies the current version of this document.
208 | 0..1
209 | Application Response
210 | Version Identifier
211 | Identifier
212 | Identifier. Type
213 | "1.1"
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 | ASBIE
223 | Application Response. Signature
224 | An association to Signature.
225 | 0..n
226 | Application Response
227 | Signature
228 | Signature
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 | ASBIE
238 | Application Response. Sender_ Party. Party
239 | An association to the Party sending this document.
240 | 1
241 | Application Response
242 | Sender
243 | Party
244 | Party
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 | ASBIE
254 | Application Response. Receiver_ Party. Party
255 | An association to the Party receiving this document.
256 | 1
257 | Application Response
258 | Receiver
259 | Party
260 | Party
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 | ASBIE
270 | Application Response. Document Response
271 | A response to one or more documents.
272 | 1..n
273 | Application Response
274 | Document Response
275 | Document Response
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
335 |
--------------------------------------------------------------------------------
/src/xsd/2.1/maindoc/UBL-ApplicationResponse-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
10 |
20 |
21 |
23 |
25 |
27 |
28 |
29 |
30 | This element MUST be conveyed as the root element in any instance document based on this Schema expression
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | ABIE
40 | Application Response. Details
41 | A document to indicate the application's response to a transaction. This may be a business response initiated by a user or a technical response sent automatically by an application.
42 | Application Response
43 |
44 |
45 |
46 |
47 |
48 |
49 | A container for all extensions present in the document.
50 |
51 |
52 |
53 |
54 |
55 |
56 | BBIE
57 | Application Response. UBL Version Identifier. Identifier
58 | Identifies the earliest version of the UBL 2 schema for this document type that defines all of the elements that might be encountered in the current instance.
59 | 0..1
60 | Application Response
61 | UBL Version Identifier
62 | Identifier
63 | Identifier. Type
64 | 2.0.5
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 | BBIE
74 | Application Response. Customization Identifier. Identifier
75 | Identifies a user-defined customization of UBL for a specific use.
76 | 0..1
77 | Application Response
78 | Customization Identifier
79 | Identifier
80 | Identifier. Type
81 | NES
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 | BBIE
91 | Application Response. Profile Identifier. Identifier
92 | Identifies a user-defined profile of the customization of UBL being used.
93 | 0..1
94 | Application Response
95 | Profile Identifier
96 | Identifier
97 | Identifier. Type
98 | BasicProcurementProcess
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 | BBIE
108 | Application Response. Profile Execution Identifier. Identifier
109 | Identifies an instance of executing a profile, to associate all transactions in a collaboration.
110 | 0..1
111 | Application Response
112 | Profile Execution Identifier
113 | Identifier
114 | Identifier. Type
115 | BPP-1001
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 | BBIE
125 | Application Response. Identifier
126 | An identifier for this document, assigned by the sender.
127 | 1
128 | Application Response
129 | Identifier
130 | Identifier
131 | Identifier. Type
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 | BBIE
141 | Application Response. UUID. Identifier
142 | A universally unique identifier for an instance of this document.
143 | 0..1
144 | Application Response
145 | UUID
146 | Identifier
147 | Identifier. Type
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 | BBIE
157 | Application Response. Issue Date. Date
158 | The date, assigned by the sender, on which this document was issued.
159 | 1
160 | Application Response
161 | Issue Date
162 | Date
163 | Date. Type
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 | BBIE
173 | Application Response. Issue Time. Time
174 | The time, assigned by the sender, at which this document was issued.
175 | 0..1
176 | Application Response
177 | Issue Time
178 | Time
179 | Time. Type
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 | BBIE
189 | Application Response. Response Date. Date
190 | The date on which the information in the response was created.
191 | 0..1
192 | Application Response
193 | Response Date
194 | Date
195 | Date. Type
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 | BBIE
205 | Application Response. Response Time. Time
206 | The time at which the information in the response was created.
207 | 0..1
208 | Application Response
209 | Response Time
210 | Time
211 | Time. Type
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 | BBIE
221 | Application Response. Note. Text
222 | Free-form text pertinent to this document, conveying information that is not contained explicitly in other structures.
223 | 0..n
224 | Application Response
225 | Note
226 | Text
227 | Text. Type
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 | BBIE
237 | Application Response. Version. Identifier
238 | Identifies the current version of this document.
239 | 0..1
240 | Application Response
241 | Version
242 | Identifier
243 | Identifier. Type
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 | ASBIE
253 | Application Response. Signature
254 | A signature applied to this document.
255 | 0..n
256 | Application Response
257 | Signature
258 | Signature
259 | Signature
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 | ASBIE
269 | Application Response. Sender_ Party. Party
270 | The party sending this document.
271 | 1
272 | Application Response
273 | Sender
274 | Party
275 | Party
276 | Party
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 | ASBIE
286 | Application Response. Receiver_ Party. Party
287 | The party receiving this document.
288 | 1
289 | Application Response
290 | Receiver
291 | Party
292 | Party
293 | Party
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 | ASBIE
303 | Application Response. Document Response
304 | A response to a document.
305 | 0..n
306 | Application Response
307 | Document Response
308 | Document Response
309 | Document Response
310 |
311 |
312 |
313 |
314 |
315 |
316 |
317 |
--------------------------------------------------------------------------------
/src/xsd/2.1/common/UBL-XAdESv132-2.1.xsd:
--------------------------------------------------------------------------------
1 |
2 |
12 |
13 |
14 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 |
219 |
220 |
221 |
222 |
223 |
224 |
225 |
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
238 |
239 |
240 |
241 |
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
256 |
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 |
266 |
267 |
268 |
269 |
270 |
271 |
272 |
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 |
282 |
283 |
284 |
285 |
286 |
287 |
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 |
297 |
298 |
299 |
300 |
301 |
302 |
303 |
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 |
313 |
314 |
315 |
316 |
317 |
318 |
319 |
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 |
329 |
330 |
331 |
332 |
333 |
334 |
335 |
336 |
337 |
338 |
339 |
340 |
341 |
342 |
343 |
344 |
345 |
346 |
347 |
348 |
349 |
350 |
351 |
352 |
353 |
354 |
355 |
356 |
357 |
358 |
359 |
360 |
361 |
362 |
363 |
364 |
365 |
366 |
367 |
368 |
369 |
370 |
371 |
372 |
373 |
374 |
375 |
376 |
377 |
378 |
379 |
380 |
381 |
382 |
383 |
384 |
385 |
386 |
387 |
388 |
389 |
390 |
391 |
392 |
393 |
394 |
395 |
396 |
397 |
398 |
399 |
400 |
401 |
402 |
403 |
404 |
405 |
406 |
407 |
408 |
409 |
410 |
411 |
412 |
413 |
414 |
415 |
416 |
417 |
418 |
419 |
420 |
421 |
422 |
423 |
424 |
425 |
426 |
427 |
428 |
429 |
430 |
431 |
432 |
433 |
434 |
435 |
436 |
437 |
438 |
439 |
440 |
441 |
442 |
443 |
444 |
445 |
446 |
447 |
448 |
449 |
450 |
451 |
452 |
453 |
454 |
455 |
456 |
457 |
458 |
459 |
460 |
461 |
462 |
463 |
464 |
465 |
466 |
467 |
468 |
469 |
470 |
471 |
472 |
473 |
474 |
475 |
476 |
477 |
--------------------------------------------------------------------------------
/src/xsd/2.0/maindoc/UBL-DespatchAdvice-2.0.xsd:
--------------------------------------------------------------------------------
1 |
2 |
7 |
8 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 | This element MUST be conveyed as the root element in any instance document based on this Schema expression
30 |
31 |
32 |
33 |
34 |
35 |
36 | ABIE
37 | Despatch Advice. Details
38 | The document used to describe the despatch or delivery of goods and services.
39 | Despatch Advice
40 | Ship Note, Dispatch Advice, Consignment Note
41 |
42 |
43 |
44 |
45 |
46 |
47 | A container for all extensions present in the document.
48 |
49 |
50 |
51 |
52 |
53 |
54 | BBIE
55 | Despatch Advice. UBL Version Identifier. Identifier
56 | The earliest version of the UBL 2 schema for this document type that defines all of the elements that might be encountered in the current instance.
57 | 0..1
58 | Despatch Advice
59 | UBL Version Identifier
60 | Identifier
61 | Identifier. Type
62 | 2.0.5
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 | BBIE
72 | Despatch Advice. Customization Identifier. Identifier
73 | Identifies a user-defined customization of UBL for a specific use.
74 | 0..1
75 | Despatch Advice
76 | Customization Identifier
77 | Identifier
78 | Identifier. Type
79 | NES
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 | BBIE
89 | Despatch Advice. Profile Identifier. Identifier
90 | Identifies a user-defined profile of the customization of UBL being used.
91 | 0..1
92 | Despatch Advice
93 | Profile Identifier
94 | Identifier
95 | Identifier. Type
96 | BasicProcurementProcess
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 | BBIE
106 | Despatch Advice. Identifier
107 | An identifier for the Despatch Advice assigned by Despatch (Party).
108 | 1
109 | Despatch Advice
110 | Identifier
111 | Identifier
112 | Identifier. Type
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 | BBIE
122 | Despatch Advice. Copy_ Indicator. Indicator
123 | Indicates whether the Despatch Advice is a copy (true) or not (false).
124 | 0..1
125 | Despatch Advice
126 | Copy
127 | Indicator
128 | Indicator
129 | Indicator. Type
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 | BBIE
139 | Despatch Advice. UUID. Identifier
140 | A universally unique identifier for an instance of this ABIE.
141 | 0..1
142 | Despatch Advice
143 | UUID
144 | Identifier
145 | Identifier. Type
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 | BBIE
155 | Despatch Advice. Issue Date. Date
156 | The date assigned by Despatch (Party) on which the Despatch Advice was issued.
157 | 1
158 | Despatch Advice
159 | Issue Date
160 | Date
161 | Date. Type
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 | BBIE
171 | Despatch Advice. Issue Time. Time
172 | The time assigned by Despatch (Party) at which the Despatch Advice was issued.
173 | 0..1
174 | Despatch Advice
175 | Issue Time
176 | Time
177 | Time. Type
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 | BBIE
187 | Despatch Advice. Document Status. Code
188 | Identifies the status of the Despatch Advice with respect to its original state. This may be used if the document precedes the event and is subsequently found to be incorrect and in need of cancelling or revising.
189 | 0..1
190 | Despatch Advice
191 | Document Status
192 | Code
193 | Document Status_ Code. Type
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
202 | BBIE
203 | Despatch Advice. Despatch Advice Type Code. Code
204 | Identifies the type of the Despatch Advice.
205 | 0..1
206 | Despatch Advice
207 | Despatch Advice Type Code
208 | Code
209 | Code. Type
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 | BBIE
219 | Despatch Advice. Note. Text
220 | Free-form text applying to the Despatch Advice. This element may contain notes or any other similar information that is not contained explicitly in another structure.
221 | 0..n
222 | Despatch Advice
223 | Note
224 | Text
225 | Text. Type
226 |
227 |
228 |
229 |
230 |
231 |
232 |
233 |
234 | BBIE
235 | Despatch Advice. Line Count. Numeric
236 | The number of lines in the document.
237 | 0..1
238 | Despatch Advice
239 | Line Count
240 | Numeric
241 | Numeric. Type
242 |
243 |
244 |
245 |
246 |
247 |
248 |
249 |
250 | ASBIE
251 | Despatch Advice. Order Reference
252 | An association to Order Reference.
253 | 0..n
254 | Despatch Advice
255 | Order Reference
256 | Order Reference
257 |
258 |
259 |
260 |
261 |
262 |
263 |
264 |
265 | ASBIE
266 | Despatch Advice. Additional_ Document Reference. Document Reference
267 | An associative reference to Additional Document.
268 | 0..n
269 | Despatch Advice
270 | Additional
271 | Document Reference
272 | Document Reference
273 |
274 |
275 |
276 |
277 |
278 |
279 |
280 |
281 | ASBIE
282 | Despatch Advice. Signature
283 | An association to Signature.
284 | 0..n
285 | Despatch Advice
286 | Signature
287 | Signature
288 |
289 |
290 |
291 |
292 |
293 |
294 |
295 |
296 | ASBIE
297 | Despatch Advice. Despatch_ Supplier Party. Supplier Party
298 | An association to the Despatch Party.
299 | 1
300 | Despatch Advice
301 | Despatch
302 | Supplier Party
303 | Supplier Party
304 |
305 |
306 |
307 |
308 |
309 |
310 |
311 |
312 | ASBIE
313 | Despatch Advice. Delivery_ Customer Party. Customer Party
314 | An association to the Delivery Party.
315 | 1
316 | Despatch Advice
317 | Delivery
318 | Customer Party
319 | Customer Party
320 |
321 |
322 |
323 |
324 |
325 |
326 |
327 |
328 | ASBIE
329 | Despatch Advice. Buyer_ Customer Party. Customer Party
330 | An association to the Buyer.
331 | 0..1
332 | Despatch Advice
333 | Buyer
334 | Customer Party
335 | Customer Party
336 |
337 |
338 |
339 |
340 |
341 |
342 |
343 |
344 | ASBIE
345 | Despatch Advice. Seller_ Supplier Party. Supplier Party
346 | An association to the Seller.
347 | 0..1
348 | Despatch Advice
349 | Seller
350 | Supplier Party
351 | Supplier Party
352 |
353 |
354 |
355 |
356 |
357 |
358 |
359 |
360 | ASBIE
361 | Despatch Advice. Originator_ Customer Party. Customer Party
362 | An association to the Originator (Party).
363 | 0..1
364 | Despatch Advice
365 | Originator
366 | Customer Party
367 | Customer Party
368 |
369 |
370 |
371 |
372 |
373 |
374 |
375 |
376 | ASBIE
377 | Despatch Advice. Shipment
378 | An association to a Shipment detail.
379 | 0..1
380 | Despatch Advice
381 | Shipment
382 | Shipment
383 |
384 |
385 |
386 |
387 |
388 |
389 |
390 |
391 | ASBIE
392 | Despatch Advice. Despatch Line
393 | An association to one or more Despatch Advice Lines.
394 | 1..n
395 | Despatch Advice
396 | Despatch Line
397 | Despatch Line
398 |
399 |
400 |
401 |
402 |
403 |
404 |
405 |
406 |
407 |
408 |
409 |
457 |
--------------------------------------------------------------------------------