| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<template id="request_header" xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common"> |
| 5 |
<common:header> |
| 6 |
<common:requestId t-out="requestId"/> |
| 7 |
<common:timestamp t-out="timestamp"/> |
| 8 |
<common:requestVersion t-translation="off">3.0</common:requestVersion> |
| 9 |
<common:headerVersion t-translation="off">1.0</common:headerVersion> |
| 10 |
</common:header> |
| 11 |
<common:user> |
| 12 |
<common:login t-out="login"/> |
| 13 |
<common:passwordHash cryptoType="SHA-512" t-out="passwordHash"/> |
| 14 |
<common:taxNumber t-out="taxNumber"/> |
| 15 |
<common:requestSignature cryptoType="SHA3-512" t-out="requestSignature"/> |
| 16 |
</common:user> |
| 17 |
<software> |
| 18 |
<softwareId t-out="softwareId"/> |
| 19 |
<softwareName t-out="softwareName"/> |
| 20 |
<softwareOperation t-out="softwareOperation"/> |
| 21 |
<softwareMainVersion t-out="softwareMainVersion"/> |
| 22 |
<softwareDevName t-out="softwareDevName"/> |
| 23 |
<softwareDevContact t-out="softwareDevContact"/> |
| 24 |
<softwareDevCountryCode t-out="softwareDevCountryCode"/> |
| 25 |
<softwareDevTaxNumber t-out="softwareDevTaxNumber"/> |
| 26 |
</software> |
| 27 |
</template> |
| 28 |
|
| 29 |
<template id="token_exchange_request"> |
| 30 |
<TokenExchangeRequest xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common" xmlns="http://schemas.nav.gov.hu/OSA/3.0/api"> |
| 31 |
<t t-call="l10n_hu_edi.request_header"/> |
| 32 |
</TokenExchangeRequest> |
| 33 |
</template> |
| 34 |
|
| 35 |
<template id="manage_invoice_request"> |
| 36 |
<ManageInvoiceRequest xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common" xmlns="http://schemas.nav.gov.hu/OSA/3.0/api"> |
| 37 |
<t t-call="l10n_hu_edi.request_header"/> |
| 38 |
<exchangeToken t-out="exchangeToken"/> |
| 39 |
<invoiceOperations> |
| 40 |
<compressedContent t-out="format_bool(compressedContent)"/> |
| 41 |
<invoiceOperation t-foreach="invoices" t-as="invoice_data"> |
| 42 |
<index t-out="invoice_data['index']"/> |
| 43 |
<invoiceOperation t-out="invoice_data['invoiceOperation']"/> |
| 44 |
<invoiceData t-out="invoice_data['invoiceData']"/> |
| 45 |
</invoiceOperation> |
| 46 |
</invoiceOperations> |
| 47 |
</ManageInvoiceRequest> |
| 48 |
</template> |
| 49 |
|
| 50 |
<template id="query_transaction_status_request"> |
| 51 |
<QueryTransactionStatusRequest xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common" xmlns="http://schemas.nav.gov.hu/OSA/3.0/api"> |
| 52 |
<t t-call="l10n_hu_edi.request_header"/> |
| 53 |
<transactionId t-out="transactionId"/> |
| 54 |
<returnOriginalRequest t-out="format_bool(returnOriginalRequest)"/> |
| 55 |
</QueryTransactionStatusRequest> |
| 56 |
</template> |
| 57 |
|
| 58 |
<template id="query_transaction_list_request"> |
| 59 |
<QueryTransactionListRequest xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common" xmlns="http://schemas.nav.gov.hu/OSA/3.0/api"> |
| 60 |
<t t-call="l10n_hu_edi.request_header"/> |
| 61 |
<page t-out="page"/> |
| 62 |
<insDate> |
| 63 |
<dateTimeFrom t-out="dateTimeFrom"/> |
| 64 |
<dateTimeTo t-out="dateTimeTo"/> |
| 65 |
</insDate> |
| 66 |
</QueryTransactionListRequest> |
| 67 |
</template> |
| 68 |
|
| 69 |
<template id="manage_annulment_request"> |
| 70 |
<ManageAnnulmentRequest xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common" xmlns="http://schemas.nav.gov.hu/OSA/3.0/api"> |
| 71 |
<t t-call="l10n_hu_edi.request_header"/> |
| 72 |
<exchangeToken t-out="exchangeToken"/> |
| 73 |
<annulmentOperations> |
| 74 |
<annulmentOperation t-foreach="annulments" t-as="annulment_data"> |
| 75 |
<index t-out="annulment_data['index']"/> |
| 76 |
<annulmentOperation t-out="annulment_data['annulmentOperation']"/> |
| 77 |
<invoiceAnnulment t-out="annulment_data['invoiceAnnulment']"/> |
| 78 |
</annulmentOperation> |
| 79 |
</annulmentOperations> |
| 80 |
</ManageAnnulmentRequest> |
| 81 |
</template> |
| 82 |
|
| 83 |
<template id="invoice_annulment"> |
| 84 |
<InvoiceAnnulment |
| 85 |
xmlns="http://schemas.nav.gov.hu/OSA/3.0/annul" |
| 86 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 87 |
xsi:schemaLocation="http://schemas.nav.gov.hu/OSA/3.0/data invoiceAnnulment.xsd" |
| 88 |
xmlns:common="http://schemas.nav.gov.hu/NTCA/1.0/common" |
| 89 |
xmlns:base="http://schemas.nav.gov.hu/OSA/3.0/base"> |
| 90 |
<annulmentReference t-out="annulmentReference"/> |
| 91 |
<annulmentTimestamp t-out="annulmentTimestamp"/> |
| 92 |
<annulmentCode t-out="annulmentCode"/> |
| 93 |
<annulmentReason t-out="annulmentReason"/> |
| 94 |
</InvoiceAnnulment> |
| 95 |
</template> |
| 96 |
|
| 97 |
</odoo> |