-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalid-test.xml
executable file
·60 lines (60 loc) · 13.1 KB
/
valid-test.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
<Invoice xsi:schemaLocation="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2 UBL-Invoice-2.1.xsd" xmlns:ext="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2" xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2" xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" xmlns:ns8="urn:oasis:names:specification:ubl:schema:xsd:ApplicationResponse-2" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2" xmlns:ns9="urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2" xmlns:ns11="urn:oasis:names:specification:ubl:schema:xsd:ReceiptAdvice-2" xmlns:ns10="urn:oasis:names:specification:ubl:schema:xsd:DespatchAdvice-2" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><ext:UBLExtensions><ext:UBLExtension><ext:ExtensionContent><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="Signature_BIR2018000000946">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments" />
<ds:SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" />
<ds:Reference Id="Reference-Id-f2e8d6a0-f790-48d7-a294-05da43365ca6" URI="#Signed-Properties-Id-51dc852f-3e04-4d1f-bfd4-851527f8d234" Type="http://uri.etsi.org/01903#SignedProperties">
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
<ds:DigestValue>TUEJI5q2SEOpjgRDzZlNqUjyCQpDlbFkdxHWnsPlkR0=</ds:DigestValue>
</ds:Reference>
<ds:Reference Id="Reference-Id-102500b2-6662-4e4f-b496-010a379a7333" URI="">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
<ds:DigestValue>bAsL0fEIfhGFLyA2UmLxVkE2QPmF74huqTFDxZbdKLM=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue Id="Signature-Value-Id-452762bd-efd5-4dd2-b1e4-1e57e0227925">GeYS7SM3tO7IWYGb/HnaChNaWuUO9B+R/tzHCRGacf8b7PBYqgLzi3WbQ8DAREFFXuaQDmBnX+DWh4ENL9iDdG5TYADOVyTHlmPzUPbYNnq4An5tHDs2IE9aKb4HsZyChCassjSWVZFtHi8WR6R8B2IfACgjivq/+FAE9yFd7v7gsyRC9CCB8AV0JppGd+YzMb+eIMkDZYFqJiNelWV6GoJ5wh0GoqvvEqTmVEr2b7+EoW+w8Xy81YMvWRNATGteO7xKkxIuFRZxd+k5K8sKcjRm4JtbFhbD+oJJaOMh3hO9iYCQ9rrtkoWdXkMZvS/aCN29/zyfVNpifc810nmJgQ==</ds:SignatureValue>
<ds:KeyInfo>
<ds:KeyValue>
<ds:RSAKeyValue>
<ds:Modulus>wMDhiDjvWG3N5n+j1cPpH+dtOyhcGUfI7pBrj39pdpCNd/WbBq/j3mzg36rg02ceF/G60buRvoXszVyKpqs9wrgSi1DefcZW57xjtMJjvNYt3CgB26lNOpQICZccCjKF/6q2GN9RpnnrJ7aAjmB6cLVpIfNK+MFH0aGKE1NHabh5NWNS/1NV1kxiFylf93GHYa/J9wDVjlF31rIf/8UnEJDxbHf/uf61JVzXHgUTFvoeT19dJQKzd/eEtBXiu8jHKnLEeqynVpbyDYFLroS2AVGi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B5H6i/TpyVUPwAGmqL92ohcGVZthTxaX5upIrSt17IkZi6/zqj7j0ZpknmQoU0U1nz62f+CUXvOud5Tc5UDvvwonWryYMK26Tx0hRL944/7/MdDiuG8VfxZvZ7cslIqRYpIUhttQvzWFqUTms25HCpQXE=</ds:X509Certificate>
<ds:X509SubjectName>CN=Test Bir Kullanıcı,SERIALNUMBER=11111111111,C=TR</ds:X509SubjectName>
</ds:X509Data>
</ds:KeyInfo>
<ds:Object Id="Object-Id-42b96f66-2d8a-45da-95cf-7ed29bf07b17"><xades:QualifyingProperties xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" Target="#Signature_BIR2018000000946">
<xades:SignedProperties Id="Signed-Properties-Id-51dc852f-3e04-4d1f-bfd4-851527f8d234">
<xades:SignedSignatureProperties>
<xades:SigningTime>2018-09-03T23:19:27.3312201+03:00</xades:SigningTime>
<xades:SigningCertificate>
<xades:Cert>
<xades:CertDigest>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
<ds:DigestValue>2QEFaU65XpJX0XE7vVdsxUm+fzF1FCeqPOQswpJ4y/E=</ds:DigestValue>
</xades:CertDigest>
<xades:IssuerSerial>
<ds:X509IssuerName>CN=Kamu Elektronik Sertifika Hizmet Sağlayıcısı - TEST,OU=BİLGEM,O=Türkiye Bilimsel ve Teknolojik Araştırma Kurumu - TÜBİTAK,L=Gebze - Kocaeli,C=TR</ds:X509IssuerName>
<ds:X509SerialNumber>71126857417485</ds:X509SerialNumber>
</xades:IssuerSerial>
</xades:Cert>
</xades:SigningCertificate>
<xades:SignerRole>
<xades:ClaimedRoles>
<xades:ClaimedRole>Tedarikçi</xades:ClaimedRole>
</xades:ClaimedRoles>
</xades:SignerRole>
</xades:SignedSignatureProperties>
<xades:SignedDataObjectProperties>
<xades:DataObjectFormat ObjectReference="#Reference-Id-102500b2-6662-4e4f-b496-010a379a7333">
<xades:MimeType>text/xml</xades:MimeType>
</xades:DataObjectFormat>
</xades:SignedDataObjectProperties>
</xades:SignedProperties>
</xades:QualifyingProperties>
</ds:Object>
</ds:Signature></ext:ExtensionContent></ext:UBLExtension></ext:UBLExtensions><cbc:UBLVersionID>2.1</cbc:UBLVersionID><cbc:CustomizationID>TR1.2</cbc:CustomizationID><cbc:ProfileID>TEMELFATURA</cbc:ProfileID><cbc:ID>BIR2018000000946</cbc:ID><cbc:CopyIndicator>false</cbc:CopyIndicator><cbc:UUID>3B0F2BDB-0D2E-4FB3-B525-0A0BDC332883</cbc:UUID><cbc:IssueDate>2018-08-29</cbc:IssueDate><cbc:IssueTime>00:30:00.000</cbc:IssueTime><cbc:InvoiceTypeCode>TEVKIFAT</cbc:InvoiceTypeCode><cbc:Note>Sicil No: 123456 İşletme Merkezi: Adana</cbc:Note><cbc:DocumentCurrencyCode>TRY</cbc:DocumentCurrencyCode><cbc:LineCountNumeric>1</cbc:LineCountNumeric><cac:OrderReference><cbc:ID>2</cbc:ID><cbc:IssueDate>2018-08-29</cbc:IssueDate></cac:OrderReference><cac:Signature><cbc:ID schemeID="VKN_TCKN">3333333300</cbc:ID><cac:SignatoryParty><cac:PartyIdentification><cbc:ID schemeID="VKN">3333333300</cbc:ID></cac:PartyIdentification><cac:PostalAddress><cbc:Room>1</cbc:Room><cbc:StreetName>A Bulvarı / B Caddesi / C Sokak</cbc:StreetName><cbc:BuildingName>Testsss ofss</cbc:BuildingName><cbc:BuildingNumber>10</cbc:BuildingNumber><cbc:CitySubdivisionName>kayanalp Mahallesi/ H Sempti/ Beyoğlu</cbc:CitySubdivisionName><cbc:CityName>Isparta</cbc:CityName><cbc:PostalZone>16000</cbc:PostalZone><cbc:Region>Merak Kasabasi / Ceceli Köyü</cbc:Region><cac:Country><cbc:Name>Türkiye</cbc:Name></cac:Country></cac:PostalAddress></cac:SignatoryParty><cac:DigitalSignatureAttachment><cac:ExternalReference><cbc:URI>#Signature_BIR2018000000946</cbc:URI></cac:ExternalReference></cac:DigitalSignatureAttachment></cac:Signature><cac:AccountingSupplierParty><cac:Party><cbc:WebsiteURI>http://www.test.com</cbc:WebsiteURI><cac:PartyIdentification><cbc:ID schemeID="MERSISNO">423155621224523</cbc:ID></cac:PartyIdentification><cac:PartyIdentification><cbc:ID schemeID="VKN">3333333300</cbc:ID></cac:PartyIdentification><cac:PartyName><cbc:Name>Test LTD 3_0</cbc:Name></cac:PartyName><cac:PostalAddress><cbc:Room>1</cbc:Room><cbc:StreetName>A Bulvarı / B Caddesi / C Sokak</cbc:StreetName><cbc:BuildingName>Testsss ofss</cbc:BuildingName><cbc:BuildingNumber>10</cbc:BuildingNumber><cbc:CitySubdivisionName>kayanalp Mahallesi/ H Sempti/ Beyoğlu</cbc:CitySubdivisionName><cbc:CityName>Isparta</cbc:CityName><cbc:PostalZone>16000</cbc:PostalZone><cbc:Region>Merak Kasabasi / Ceceli Köyü</cbc:Region><cac:Country><cbc:Name>Türkiye</cbc:Name></cac:Country></cac:PostalAddress><cac:PartyTaxScheme><cac:TaxScheme><cbc:Name>Şişli</cbc:Name></cac:TaxScheme></cac:PartyTaxScheme><cac:Contact><cbc:Telephone>+903440000000</cbc:Telephone><cbc:Telefax>+903440000000</cbc:Telefax><cbc:ElectronicMail>test@gmail.com</cbc:ElectronicMail></cac:Contact></cac:Party></cac:AccountingSupplierParty><cac:AccountingCustomerParty><cac:Party><cbc:WebsiteURI></cbc:WebsiteURI><cac:PartyIdentification><cbc:ID schemeID="TCKN">12345678901</cbc:ID></cac:PartyIdentification><cac:PostalAddress><cbc:Room>1</cbc:Room><cbc:StreetName>1</cbc:StreetName><cbc:BuildingName>1</cbc:BuildingName><cbc:BuildingNumber>1</cbc:BuildingNumber><cbc:CitySubdivisionName>1</cbc:CitySubdivisionName><cbc:CityName>Adana</cbc:CityName><cbc:PostalZone></cbc:PostalZone><cbc:Region>1</cbc:Region><cac:Country><cbc:Name>Türkiye</cbc:Name></cac:Country></cac:PostalAddress><cac:PartyTaxScheme><cac:TaxScheme><cbc:Name></cbc:Name></cac:TaxScheme></cac:PartyTaxScheme><cac:Contact><cbc:Telephone></cbc:Telephone><cbc:Telefax></cbc:Telefax><cbc:ElectronicMail></cbc:ElectronicMail></cac:Contact><cac:Person><cbc:FirstName>mk</cbc:FirstName><cbc:FamilyName>mk</cbc:FamilyName></cac:Person></cac:Party></cac:AccountingCustomerParty><cac:AllowanceCharge><cbc:ChargeIndicator>false</cbc:ChargeIndicator><cbc:Amount currencyID="TRY">0.00</cbc:Amount></cac:AllowanceCharge><cac:TaxTotal><cbc:TaxAmount currencyID="TRY">13500.00</cbc:TaxAmount><cac:TaxSubtotal><cbc:TaxableAmount currencyID="TRY">150000.00</cbc:TaxableAmount><cbc:TaxAmount currencyID="TRY">27000.00</cbc:TaxAmount><cbc:CalculationSequenceNumeric>1</cbc:CalculationSequenceNumeric><cbc:Percent>18</cbc:Percent><cac:TaxCategory><cac:TaxScheme><cbc:Name>KDV</cbc:Name><cbc:TaxTypeCode>0015</cbc:TaxTypeCode></cac:TaxScheme></cac:TaxCategory></cac:TaxSubtotal></cac:TaxTotal><cac:WithholdingTaxTotal><cbc:TaxAmount currencyID="TRY">13500.00</cbc:TaxAmount><cac:TaxSubtotal><cbc:TaxableAmount currencyID="TRY">27000.00</cbc:TaxableAmount><cbc:TaxAmount currencyID="TRY">13500.00</cbc:TaxAmount><cbc:Percent>50</cbc:Percent><cac:TaxCategory><cac:TaxScheme><cbc:Name>Hurda metalden elde edilenler dışındaki bakir, çinko ve alüminyum külçe teslimleri</cbc:Name><cbc:TaxTypeCode>618</cbc:TaxTypeCode></cac:TaxScheme></cac:TaxCategory></cac:TaxSubtotal></cac:WithholdingTaxTotal><cac:LegalMonetaryTotal><cbc:LineExtensionAmount currencyID="TRY">150000.00</cbc:LineExtensionAmount><cbc:TaxExclusiveAmount currencyID="TRY">150000.00</cbc:TaxExclusiveAmount><cbc:TaxInclusiveAmount currencyID="TRY">177000.00</cbc:TaxInclusiveAmount><cbc:AllowanceTotalAmount currencyID="TRY">0.00</cbc:AllowanceTotalAmount><cbc:PayableAmount currencyID="TRY">123000.00</cbc:PayableAmount></cac:LegalMonetaryTotal><cac:InvoiceLine><cbc:ID>1</cbc:ID><cbc:InvoicedQuantity unitCode="KGM">1000</cbc:InvoicedQuantity><cbc:LineExtensionAmount currencyID="TRY">150000</cbc:LineExtensionAmount><cac:AllowanceCharge><cbc:ChargeIndicator>false</cbc:ChargeIndicator><cbc:AllowanceChargeReason></cbc:AllowanceChargeReason><cbc:MultiplierFactorNumeric>0</cbc:MultiplierFactorNumeric><cbc:Amount currencyID="TRY">0</cbc:Amount><cbc:BaseAmount currencyID="TRY">150000</cbc:BaseAmount></cac:AllowanceCharge><cac:TaxTotal><cbc:TaxAmount currencyID="TRY">13500.00</cbc:TaxAmount><cac:TaxSubtotal><cbc:TaxableAmount currencyID="TRY">150000.00</cbc:TaxableAmount><cbc:TaxAmount currencyID="TRY">27000</cbc:TaxAmount><cbc:CalculationSequenceNumeric>2</cbc:CalculationSequenceNumeric><cbc:Percent>18</cbc:Percent><cac:TaxCategory><cac:TaxScheme><cbc:Name>KDV</cbc:Name><cbc:TaxTypeCode>0015</cbc:TaxTypeCode></cac:TaxScheme></cac:TaxCategory></cac:TaxSubtotal></cac:TaxTotal><cac:WithholdingTaxTotal><cbc:TaxAmount currencyID="TRY">13500</cbc:TaxAmount><cac:TaxSubtotal><cbc:TaxableAmount currencyID="TRY">27000</cbc:TaxableAmount><cbc:TaxAmount currencyID="TRY">13500</cbc:TaxAmount><cbc:Percent>50</cbc:Percent><cac:TaxCategory><cac:TaxScheme><cbc:Name>Hurda metalden elde edilenler dışındaki bakir, çinko ve alüminyum külçe teslimleri</cbc:Name><cbc:TaxTypeCode>618</cbc:TaxTypeCode></cac:TaxScheme></cac:TaxCategory></cac:TaxSubtotal></cac:WithholdingTaxTotal><cac:Item><cbc:Name>demir</cbc:Name></cac:Item><cac:Price><cbc:PriceAmount currencyID="TRY">150</cbc:PriceAmount></cac:Price></cac:InvoiceLine></Invoice>