ubl 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +15 -1
  3. data/lib/ubl/builder.rb +32 -5
  4. data/lib/ubl/constants.rb +6 -0
  5. data/lib/ubl/validate.rb +78 -0
  6. data/lib/ubl/version.rb +1 -1
  7. data/lib/ubl.rb +32 -17
  8. data/xsd/common/CCTS_CCT_SchemaModule-2.1.xsd +731 -0
  9. data/xsd/common/UBL-CommonAggregateComponents-2.1.xsd +39799 -0
  10. data/xsd/common/UBL-CommonBasicComponents-2.1.xsd +5389 -0
  11. data/xsd/common/UBL-CommonExtensionComponents-2.1.xsd +223 -0
  12. data/xsd/common/UBL-CommonSignatureComponents-2.1.xsd +101 -0
  13. data/xsd/common/UBL-CoreComponentParameters-2.1.xsd +63 -0
  14. data/xsd/common/UBL-ExtensionContentDataType-2.1.xsd +89 -0
  15. data/xsd/common/UBL-QualifiedDataTypes-2.1.xsd +69 -0
  16. data/xsd/common/UBL-SignatureAggregateComponents-2.1.xsd +138 -0
  17. data/xsd/common/UBL-SignatureBasicComponents-2.1.xsd +78 -0
  18. data/xsd/common/UBL-UnqualifiedDataTypes-2.1.xsd +553 -0
  19. data/xsd/common/UBL-XAdESv132-2.1.xsd +476 -0
  20. data/xsd/common/UBL-XAdESv141-2.1.xsd +25 -0
  21. data/xsd/common/UBL-xmldsig-core-schema-2.1.xsd +330 -0
  22. data/xsd/maindoc/UBL-ApplicationResponse-2.1.xsd +362 -0
  23. data/xsd/maindoc/UBL-AttachedDocument-2.1.xsd +416 -0
  24. data/xsd/maindoc/UBL-AwardedNotification-2.1.xsd +418 -0
  25. data/xsd/maindoc/UBL-BillOfLading-2.1.xsd +540 -0
  26. data/xsd/maindoc/UBL-CallForTenders-2.1.xsd +513 -0
  27. data/xsd/maindoc/UBL-Catalogue-2.1.xsd +565 -0
  28. data/xsd/maindoc/UBL-CatalogueDeletion-2.1.xsd +465 -0
  29. data/xsd/maindoc/UBL-CatalogueItemSpecificationUpdate-2.1.xsd +533 -0
  30. data/xsd/maindoc/UBL-CataloguePricingUpdate-2.1.xsd +532 -0
  31. data/xsd/maindoc/UBL-CatalogueRequest-2.1.xsd +571 -0
  32. data/xsd/maindoc/UBL-CertificateOfOrigin-2.1.xsd +417 -0
  33. data/xsd/maindoc/UBL-ContractAwardNotice-2.1.xsd +493 -0
  34. data/xsd/maindoc/UBL-ContractNotice-2.1.xsd +459 -0
  35. data/xsd/maindoc/UBL-CreditNote-2.1.xsd +951 -0
  36. data/xsd/maindoc/UBL-DebitNote-2.1.xsd +916 -0
  37. data/xsd/maindoc/UBL-DespatchAdvice-2.1.xsd +482 -0
  38. data/xsd/maindoc/UBL-DocumentStatus-2.1.xsd +350 -0
  39. data/xsd/maindoc/UBL-DocumentStatusRequest-2.1.xsd +348 -0
  40. data/xsd/maindoc/UBL-ExceptionCriteria-2.1.xsd +417 -0
  41. data/xsd/maindoc/UBL-ExceptionNotification-2.1.xsd +403 -0
  42. data/xsd/maindoc/UBL-Forecast-2.1.xsd +454 -0
  43. data/xsd/maindoc/UBL-ForecastRevision-2.1.xsd +453 -0
  44. data/xsd/maindoc/UBL-ForwardingInstructions-2.1.xsd +517 -0
  45. data/xsd/maindoc/UBL-FreightInvoice-2.1.xsd +867 -0
  46. data/xsd/maindoc/UBL-FulfilmentCancellation-2.1.xsd +471 -0
  47. data/xsd/maindoc/UBL-GoodsItemItinerary-2.1.xsd +431 -0
  48. data/xsd/maindoc/UBL-GuaranteeCertificate-2.1.xsd +481 -0
  49. data/xsd/maindoc/UBL-InstructionForReturns-2.1.xsd +383 -0
  50. data/xsd/maindoc/UBL-InventoryReport-2.1.xsd +401 -0
  51. data/xsd/maindoc/UBL-Invoice-2.1.xsd +1002 -0
  52. data/xsd/maindoc/UBL-ItemInformationRequest-2.1.xsd +402 -0
  53. data/xsd/maindoc/UBL-Order-2.1.xsd +891 -0
  54. data/xsd/maindoc/UBL-OrderCancellation-2.1.xsd +416 -0
  55. data/xsd/maindoc/UBL-OrderChange-2.1.xsd +869 -0
  56. data/xsd/maindoc/UBL-OrderResponse-2.1.xsd +956 -0
  57. data/xsd/maindoc/UBL-OrderResponseSimple-2.1.xsd +486 -0
  58. data/xsd/maindoc/UBL-PackingList-2.1.xsd +432 -0
  59. data/xsd/maindoc/UBL-PriorInformationNotice-2.1.xsd +441 -0
  60. data/xsd/maindoc/UBL-ProductActivity-2.1.xsd +387 -0
  61. data/xsd/maindoc/UBL-Quotation-2.1.xsd +583 -0
  62. data/xsd/maindoc/UBL-ReceiptAdvice-2.1.xsd +485 -0
  63. data/xsd/maindoc/UBL-Reminder-2.1.xsd +759 -0
  64. data/xsd/maindoc/UBL-RemittanceAdvice-2.1.xsd +567 -0
  65. data/xsd/maindoc/UBL-RequestForQuotation-2.1.xsd +519 -0
  66. data/xsd/maindoc/UBL-RetailEvent-2.1.xsd +515 -0
  67. data/xsd/maindoc/UBL-SelfBilledCreditNote-2.1.xsd +918 -0
  68. data/xsd/maindoc/UBL-SelfBilledInvoice-2.1.xsd +933 -0
  69. data/xsd/maindoc/UBL-Statement-2.1.xsd +600 -0
  70. data/xsd/maindoc/UBL-StockAvailabilityReport-2.1.xsd +403 -0
  71. data/xsd/maindoc/UBL-Tender-2.1.xsd +464 -0
  72. data/xsd/maindoc/UBL-TenderReceipt-2.1.xsd +398 -0
  73. data/xsd/maindoc/UBL-TendererQualification-2.1.xsd +401 -0
  74. data/xsd/maindoc/UBL-TendererQualificationResponse-2.1.xsd +399 -0
  75. data/xsd/maindoc/UBL-TradeItemLocationProfile-2.1.xsd +415 -0
  76. data/xsd/maindoc/UBL-TransportExecutionPlan-2.1.xsd +769 -0
  77. data/xsd/maindoc/UBL-TransportExecutionPlanRequest-2.1.xsd +696 -0
  78. data/xsd/maindoc/UBL-TransportProgressStatus-2.1.xsd +396 -0
  79. data/xsd/maindoc/UBL-TransportProgressStatusRequest-2.1.xsd +345 -0
  80. data/xsd/maindoc/UBL-TransportServiceDescription-2.1.xsd +430 -0
  81. data/xsd/maindoc/UBL-TransportServiceDescriptionRequest-2.1.xsd +363 -0
  82. data/xsd/maindoc/UBL-TransportationStatus-2.1.xsd +566 -0
  83. data/xsd/maindoc/UBL-TransportationStatusRequest-2.1.xsd +484 -0
  84. data/xsd/maindoc/UBL-UnawardedNotification-2.1.xsd +415 -0
  85. data/xsd/maindoc/UBL-UtilityStatement-2.1.xsd +490 -0
  86. data/xsd/maindoc/UBL-Waybill-2.1.xsd +501 -0
  87. metadata +99 -4
@@ -0,0 +1,138 @@
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: xsd/common/UBL-SignatureAggregateComponents-2.1.xsd
7
+ Generated on: 2013-10-31 17:18z
8
+ Copyright (c) OASIS Open 2013. All Rights Reserved.
9
+ -->
10
+ <xsd:schema xmlns="urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2"
11
+ xmlns:sac="urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2"
12
+ xmlns:sbc="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2"
13
+ xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
14
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
15
+ xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
16
+ xmlns:ccts="urn:un:unece:uncefact:documentation:2"
17
+ targetNamespace="urn:oasis:names:specification:ubl:schema:xsd:SignatureAggregateComponents-2"
18
+ elementFormDefault="qualified"
19
+ attributeFormDefault="unqualified"
20
+ version="2.1">
21
+ <!-- ===== Imports ===== -->
22
+ <xsd:import namespace="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2"
23
+ schemaLocation="UBL-SignatureBasicComponents-2.1.xsd"/>
24
+ <xsd:import namespace="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
25
+ schemaLocation="UBL-CommonBasicComponents-2.1.xsd"/>
26
+
27
+ <!-- ===== Incorporate W3C signature specification-->
28
+ <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#"
29
+ schemaLocation="UBL-xmldsig-core-schema-2.1.xsd"/>
30
+
31
+ <!-- ===== Incorporate ETSI signature specifications-->
32
+ <xsd:import namespace="http://uri.etsi.org/01903/v1.3.2#"
33
+ schemaLocation="UBL-XAdESv132-2.1.xsd"/>
34
+ <xsd:import namespace="http://uri.etsi.org/01903/v1.4.1#"
35
+ schemaLocation="UBL-XAdESv141-2.1.xsd"/>
36
+
37
+ <!-- ===== Element Declarations ===== -->
38
+ <xsd:element name="SignatureInformation" type="SignatureInformationType"/>
39
+ <!-- ===== Type Definitions ===== -->
40
+ <!-- ===== Aggregate Business Information Entity Type Definitions ===== -->
41
+ <xsd:complexType name="SignatureInformationType">
42
+ <xsd:annotation>
43
+ <xsd:documentation>
44
+ <ccts:Component>
45
+ <ccts:ComponentType>ABIE</ccts:ComponentType>
46
+ <ccts:DictionaryEntryName>Signature Information. Details</ccts:DictionaryEntryName>
47
+ <ccts:Definition>This class captures a single signature and optionally associates to a signature in the document with the corresponding identifier.</ccts:Definition>
48
+ <ccts:ObjectClass>Signature Information</ccts:ObjectClass>
49
+ </ccts:Component>
50
+ </xsd:documentation>
51
+ </xsd:annotation>
52
+ <xsd:sequence>
53
+ <xsd:element ref="cbc:ID" minOccurs="0" maxOccurs="1">
54
+ <xsd:annotation>
55
+ <xsd:documentation>
56
+ <ccts:Component>
57
+ <ccts:ComponentType>BBIE</ccts:ComponentType>
58
+ <ccts:DictionaryEntryName>Signature Information. Identifier</ccts:DictionaryEntryName>
59
+ <ccts:Definition>This specifies the identifier of the signature distinguishing it from other signatures.</ccts:Definition>
60
+ <ccts:Cardinality>0..1</ccts:Cardinality>
61
+ <ccts:ObjectClass>Signature Information</ccts:ObjectClass>
62
+ <ccts:PropertyTerm>Identifier</ccts:PropertyTerm>
63
+ <ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm>
64
+ <ccts:DataType>Identifier. Type</ccts:DataType>
65
+ </ccts:Component>
66
+ </xsd:documentation>
67
+ </xsd:annotation>
68
+ </xsd:element>
69
+ <xsd:element ref="sbc:ReferencedSignatureID" minOccurs="0" maxOccurs="1">
70
+ <xsd:annotation>
71
+ <xsd:documentation>
72
+ <ccts:Component>
73
+ <ccts:ComponentType>BBIE</ccts:ComponentType>
74
+ <ccts:DictionaryEntryName>Signature Information. Referenced Signature Identifier. Identifier</ccts:DictionaryEntryName>
75
+ <ccts:Definition>This associates this signature with the identifier of a signature business object in the document.</ccts:Definition>
76
+ <ccts:Cardinality>0..1</ccts:Cardinality>
77
+ <ccts:ObjectClass>Signature Information</ccts:ObjectClass>
78
+ <ccts:PropertyTerm>Referenced Signature Identifier</ccts:PropertyTerm>
79
+ <ccts:RepresentationTerm>Identifier</ccts:RepresentationTerm>
80
+ <ccts:DataType>Identifier. Type</ccts:DataType>
81
+ </ccts:Component>
82
+ </xsd:documentation>
83
+ </xsd:annotation>
84
+ </xsd:element>
85
+ <xsd:element ref="ds:Signature" minOccurs="0" maxOccurs="1">
86
+ <xsd:annotation>
87
+ <xsd:documentation>This is a single digital signature as defined by the W3C specification.</xsd:documentation>
88
+ </xsd:annotation>
89
+ </xsd:element>
90
+ </xsd:sequence>
91
+ </xsd:complexType>
92
+ </xsd:schema>
93
+ <!-- ===== Copyright Notice ===== --><!--
94
+ OASIS takes no position regarding the validity or scope of any
95
+ intellectual property or other rights that might be claimed to pertain
96
+ to the implementation or use of the technology described in this
97
+ document or the extent to which any license under such rights
98
+ might or might not be available; neither does it represent that it has
99
+ made any effort to identify any such rights. Information on OASIS's
100
+ procedures with respect to rights in OASIS specifications can be
101
+ found at the OASIS website. Copies of claims of rights made
102
+ available for publication and any assurances of licenses to be made
103
+ available, or the result of an attempt made to obtain a general
104
+ license or permission for the use of such proprietary rights by
105
+ implementors or users of this specification, can be obtained from
106
+ the OASIS Executive Director.
107
+
108
+ OASIS invites any interested party to bring to its attention any
109
+ copyrights, patents or patent applications, or other proprietary
110
+ rights which may cover technology that may be required to
111
+ implement this specification. Please address the information to the
112
+ OASIS Executive Director.
113
+
114
+ This document and translations of it may be copied and furnished to
115
+ others, and derivative works that comment on or otherwise explain
116
+ it or assist in its implementation may be prepared, copied,
117
+ published and distributed, in whole or in part, without restriction of
118
+ any kind, provided that the above copyright notice and this
119
+ paragraph are included on all such copies and derivative works.
120
+ However, this document itself may not be modified in any way,
121
+ such as by removing the copyright notice or references to OASIS,
122
+ except as needed for the purpose of developing OASIS
123
+ specifications, in which case the procedures for copyrights defined
124
+ in the OASIS Intellectual Property Rights document must be
125
+ followed, or as required to translate it into languages other than
126
+ English.
127
+
128
+ The limited permissions granted above are perpetual and will not be
129
+ revoked by OASIS or its successors or assigns.
130
+
131
+ This document and the information contained herein is provided on
132
+ an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES,
133
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY
134
+ WARRANTY THAT THE USE OF THE INFORMATION HEREIN
135
+ WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
136
+ WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
137
+ PARTICULAR PURPOSE.
138
+ -->
@@ -0,0 +1,78 @@
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: xsd/common/UBL-SignatureBasicComponents-2.1.xsd
7
+ Generated on: 2013-10-31 17:18z
8
+ Copyright (c) OASIS Open 2013. All Rights Reserved.
9
+ -->
10
+ <xsd:schema xmlns="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2"
11
+ xmlns:qdt="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDataTypes-2"
12
+ xmlns:udt="urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2"
13
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
14
+ targetNamespace="urn:oasis:names:specification:ubl:schema:xsd:SignatureBasicComponents-2"
15
+ elementFormDefault="qualified"
16
+ attributeFormDefault="unqualified"
17
+ version="2.1">
18
+ <!-- ===== Imports ===== -->
19
+ <xsd:import namespace="urn:oasis:names:specification:ubl:schema:xsd:QualifiedDataTypes-2"
20
+ schemaLocation="UBL-QualifiedDataTypes-2.1.xsd"/>
21
+ <xsd:import namespace="urn:oasis:names:specification:ubl:schema:xsd:UnqualifiedDataTypes-2"
22
+ schemaLocation="UBL-UnqualifiedDataTypes-2.1.xsd"/>
23
+ <!-- ===== Element Declarations ===== -->
24
+ <xsd:element name="ReferencedSignatureID" type="ReferencedSignatureIDType"/>
25
+ <!-- ===== Type Definitions ===== -->
26
+ <!-- ===== Basic Business Information Entity Type Definitions ===== -->
27
+ <xsd:complexType name="ReferencedSignatureIDType">
28
+ <xsd:simpleContent>
29
+ <xsd:extension base="udt:IdentifierType"/>
30
+ </xsd:simpleContent>
31
+ </xsd:complexType>
32
+ </xsd:schema>
33
+ <!-- ===== Copyright Notice ===== --><!--
34
+ OASIS takes no position regarding the validity or scope of any
35
+ intellectual property or other rights that might be claimed to pertain
36
+ to the implementation or use of the technology described in this
37
+ document or the extent to which any license under such rights
38
+ might or might not be available; neither does it represent that it has
39
+ made any effort to identify any such rights. Information on OASIS's
40
+ procedures with respect to rights in OASIS specifications can be
41
+ found at the OASIS website. Copies of claims of rights made
42
+ available for publication and any assurances of licenses to be made
43
+ available, or the result of an attempt made to obtain a general
44
+ license or permission for the use of such proprietary rights by
45
+ implementors or users of this specification, can be obtained from
46
+ the OASIS Executive Director.
47
+
48
+ OASIS invites any interested party to bring to its attention any
49
+ copyrights, patents or patent applications, or other proprietary
50
+ rights which may cover technology that may be required to
51
+ implement this specification. Please address the information to the
52
+ OASIS Executive Director.
53
+
54
+ This document and translations of it may be copied and furnished to
55
+ others, and derivative works that comment on or otherwise explain
56
+ it or assist in its implementation may be prepared, copied,
57
+ published and distributed, in whole or in part, without restriction of
58
+ any kind, provided that the above copyright notice and this
59
+ paragraph are included on all such copies and derivative works.
60
+ However, this document itself may not be modified in any way,
61
+ such as by removing the copyright notice or references to OASIS,
62
+ except as needed for the purpose of developing OASIS
63
+ specifications, in which case the procedures for copyrights defined
64
+ in the OASIS Intellectual Property Rights document must be
65
+ followed, or as required to translate it into languages other than
66
+ English.
67
+
68
+ The limited permissions granted above are perpetual and will not be
69
+ revoked by OASIS or its successors or assigns.
70
+
71
+ This document and the information contained herein is provided on
72
+ an "AS IS" basis and OASIS DISCLAIMS ALL WARRANTIES,
73
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY
74
+ WARRANTY THAT THE USE OF THE INFORMATION HEREIN
75
+ WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
76
+ WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
77
+ PARTICULAR PURPOSE.
78
+ -->