Files
SDL/VERAG_PROG_ALLGEMEIN/Schnittstellen/VERAG/ATEZ/TR_EX/declarationJsonSchema.json
2020-03-12 14:49:31 +01:00

1362 lines
29 KiB
JSON

{
$id: 'BeyannameBilgi.json',
$schema: 'http://json-schema.org/draft-07/schema#',
title:
'This JSON Schema file was generated from ./BeyannameBilgi.xsd on Fri Jan 31 2020 10:35:11 GMT+0300 (GMT+03:00). For more information please see http://www.xsd2jsonschema.org',
description:
"Schema tag attributes: xmlns:tns='http://tempuri.org/' elementFormDefault='qualified' targetNamespace='http://tempuri.org/' xmlns:xs='http://www.w3.org/2001/XMLSchema'",
type: 'object',
anyOf: [
{
required: ['DeclarationInfo'],
},
{
required: ['DeclarationInfo'],
},
{
required: ['ArrayOfParty'],
},
{
required: ['party'],
},
{
required: ['ArrayOfGuarantee'],
},
{
required: ['Guarantee'],
},
{
required: ['ArrayOfSummaryDeclaration'],
},
{
required: ['summaryDeclaration'],
},
{
required: ['ArrayOfTransportBills'],
},
{
required: ['transportBills'],
},
{
required: ['ArrayOfTransportItems'],
},
{
required: ['TransportItems'],
},
{
required: ['ArrayOfItem'],
},
{
required: ['item'],
},
{
required: ['ArrayOfComlementary'],
},
{
required: ['Comlementary'],
},
{
required: ['ArrayOfTcgbOpenClose'],
},
{
required: ['TcgbOpenClose'],
},
{
required: ['ArrayOfTradeMark'],
},
{
required: ['TradeMark'],
},
{
required: ['ArrayOfContainer'],
},
{
required: ['Container'],
},
{
required: ['ArrayOfDutyExemption'],
},
{
required: ['DutyExemption'],
},
{
required: ['ArrayOfAviationFuelType'],
},
{
required: ['AviationFuelType'],
},
{
required: ['ArrayOfPaymentMeans'],
},
{
required: ['PaymentMeans'],
},
{
required: ['ArrayOfQuestion'],
},
{
required: ['Question'],
},
{
required: ['ArrayOfDocument'],
},
{
required: ['Document'],
},
{
required: ['ArrayOfDuty'],
},
{
required: ['Duty'],
},
{
required: ['ArrayOfValue'],
},
{
required: ['Value'],
},
{
required: ['ArrayOfValueItem'],
},
{
required: ['ValueItem'],
},
],
properties: {
DeclarationInfo: {
$ref: '#/definitions/DeclarationInfo',
},
ArrayOfParty: {
$ref: '#/definitions/ArrayOfParty',
},
party: {
$ref: '#/definitions/party',
},
ArrayOfGuarantee: {
$ref: '#/definitions/ArrayOfGuarantee',
},
Guarantee: {
$ref: '#/definitions/Guarantee',
},
ArrayOfSummaryDeclaration: {
$ref: '#/definitions/ArrayOfSummaryDeclaration',
},
SummaryDeclaration: {
$ref: '#/definitions/SummaryDeclaration',
},
ArrayOfTransportBills: {
$ref: '#/definitions/ArrayOfTransportBills',
},
transportBills: {
$ref: '#/definitions/transportBills',
},
ArrayOfTransportItems: {
$ref: '#/definitions/ArrayOfTransportItems',
},
transportItems: {
$ref: '#/definitions/transportItems',
},
ArrayOfItem: {
$ref: '#/definitions/ArrayOfItem',
},
Item: {
$ref: '#/definitions/item',
},
ArrayOfComlementary: {
$ref: '#/definitions/ArrayOfComlementary',
},
Comlementary: {
$ref: '#/definitions/Comlementary',
},
ArrayOfTcgbOpenClose: {
$ref: '#/definitions/ArrayOfTcgbOpenClose',
},
TcgbOpenClose: {
$ref: '#/definitions/TcgbOpenClose',
},
ArrayOfTradeMark: {
$ref: '#/definitions/ArrayOfTradeMark',
},
TradeMark: {
$ref: '#/definitions/TradeMark',
},
ArrayOfContainer: {
$ref: '#/definitions/ArrayOfContainer',
},
Container: {
$ref: '#/definitions/Container',
},
ArrayOfDutyExemption: {
$ref: '#/definitions/ArrayOfDutyExemption',
},
DutyExemption: {
$ref: '#/definitions/DutyExemption',
},
ArrayOfAviationFuelType: {
$ref: '#/definitions/ArrayOfAviationFuelType',
},
AviationFuelType: {
$ref: '#/definitions/AviationFuelType',
},
ArrayOfPaymentMeans: {
$ref: '#/definitions/ArrayOfPaymentMeans',
},
PaymentMeans: {
$ref: '#/definitions/PaymentMeans',
},
ArrayOfQuestion: {
$ref: '#/definitions/ArrayOfQuestion',
},
Question: {
$ref: '#/definitions/Question',
},
ArrayOfDocument: {
$ref: '#/definitions/ArrayOfDocument',
},
Document: {
$ref: '#/definitions/Document',
},
ArrayOfDuty: {
$ref: '#/definitions/ArrayOfDuty',
},
Duty: {
$ref: '#/definitions/Duty',
},
ArrayOfValue: {
$ref: '#/definitions/ArrayOfValue',
},
Value: {
$ref: '#/definitions/Value',
},
ArrayOfValueItem: {
$ref: '#/definitions/ArrayOfValueItem',
},
ValueItem: {
$ref: '#/definitions/ValueItem',
},
},
definitions: {
DeclarationInfo: {
type: 'object',
properties: {
declarationNo: {
type: 'string',
},
Procedure: {
type: 'string',
},
customs: {
type: 'string',
},
simplifiedProcedure: {
type: 'string',
},
loadingList: {
type: 'integer',
minimum: -2147483648,
maximum: 2147483647,
},
totalPackageQuantity: {
type: 'integer',
minimum: -2147483648,
maximum: 2147483647,
},
tradeCountry: {
type: 'string',
},
referenceNo: {
type: 'string',
},
associationRegistrationNo: {
type: 'string',
},
associationCryptoNo: {
type: 'string',
},
countryOfExit: {
type: 'string',
},
countryOfDestination: {
type: 'string',
},
countryOfFirstDestination: {
type: 'string',
},
exitVehicleType: {
type: 'string',
},
exitVehicleIdentity: {
type: 'string',
},
exitVehicleCountry: {
type: 'string',
},
deliveryTerms: {
type: 'string',
},
deliveryPlace: {
type: 'string',
},
Container: {
type: 'string',
},
borderVehicleType: {
type: 'string',
},
borderVehicleIdentity: {
type: 'string',
},
borderVehicleCountry: {
type: 'string',
},
totalPayableAmount: {
type: 'number',
},
totalPayableAmountCurrency: {
type: 'string',
},
totalFreightAmount: {
type: 'number',
},
totalFreightAmountCurrency: {
type: 'string',
},
borderTransportMeans: {
type: 'string',
},
partyRelationshipCode: {
type: 'string',
},
totalInsurance: {
type: 'number',
},
totalInsuranceCurrency: {
type: 'string',
},
transportHandlingPlace: {
type: 'string',
},
totalForeignExpenditure: {
type: 'number',
},
totalForeignExpenditureCurrency: {
type: 'string',
},
totalDomesticExpenditure: {
type: 'number',
},
bankCode: {
type: 'string',
},
itemLocation: {
type: 'string',
},
destinationCustomsOffice: {
type: 'string',
},
warehouseCode: {
type: 'string',
},
plannedRoute: {
type: 'string',
},
compensatoryDuty: {
type: 'number',
},
exitCustomsOffice: {
type: 'string',
},
transactionNature: {
type: 'string',
},
remarks: {
type: 'string',
},
userCode: {
type: 'string',
},
referenceDate: {
type: 'string',
},
payment: {
type: 'string',
},
paymentMeans: {
type: 'string',
},
customsBrokerReference: {
type: 'string',
},
consignorTaxNo: {
type: 'string',
},
consigneeTaxNo: {
type: 'string',
},
declarantTaxNo: {
type: 'string',
},
financialResponsibleTaxNo: {
type: 'string',
},
personelResponsibleTaxNo: {
type: 'string',
},
partyInfo: {
$ref: '#/definitions/ArrayOfParty',
},
guarantee: {
$ref: '#/definitions/ArrayOfGuarantee',
},
summaryDeclarations: {
$ref: '#/definitions/ArrayOfSummaryDeclaration',
},
items: {
$ref: '#/definitions/ArrayOfItem',
},
questions: {
$ref: '#/definitions/ArrayOfQuestion',
},
documents: {
$ref: '#/definitions/ArrayOfDocument',
},
duties: {
$ref: '#/definitions/ArrayOfDuty',
},
valueDeclaration: {
$ref: '#/definitions/ArrayOfValue',
},
electronicMail1: {
type: 'string',
},
electronicMail2: {
type: 'string',
},
electronicMail3: {
type: 'string',
},
mobile1: {
type: 'string',
},
mobile2: {
type: 'string',
},
overTimeID: {
type: 'string',
},
portCode: {
type: 'string',
},
},
required: [
'loadingList',
'totalPackageQuantity',
'totalPayableAmount',
'totalFreightAmount',
'totalInsurance',
'totalForeignExpenditure',
'totalDomesticExpenditure',
'compensatoryDuty',
'partyInfo',
'guarantee',
'summaryDeclarations',
'items',
'questions',
'documents',
'duties',
'valueDeclaration',
],
},
ArrayOfParty: {
type: 'array',
items: {
$ref: '#/definitions/party',
},
},
party: {
type: 'object',
properties: {
partyType: {
type: 'string',
},
countryCode: {
type: 'string',
},
postalCode: {
type: 'string',
},
identificationType: {
type: 'string',
},
telefax: {
type: 'string',
},
no: {
type: 'string',
},
nameTitle: {
type: 'string',
},
streetName: {
type: 'string',
},
telephone: {
type: 'string',
},
cityAndCitySubdivisionName: {
type: 'string',
},
},
},
ArrayOfGuarantee: {
type: 'array',
items: {
$ref: '#/definitions/Guarantee',
},
},
Guarantee: {
type: 'object',
properties: {
guaranteeType: {
type: 'string',
},
guaranteeRate: {
type: 'number',
},
letterOfGuaranteeAmount: {
type: 'number',
},
cashGuaranteeAmount: {
type: 'number',
},
otherAmount: {
type: 'number',
},
globalGuaranteeNo: {
type: 'string',
},
explanation: {
type: 'string',
},
otherAmountReference: {
type: 'string',
},
},
required: [
'guaranteeRate',
'letterOfGuaranteeAmount',
'cashGuaranteeAmount',
'otherAmount',
],
},
ArrayOfSummaryDeclaration: {
type: 'array',
items: {
$ref: '#/definitions/SummaryDeclaration',
},
},
SummaryDeclaration: {
type: 'object',
properties: {
transportBills: {
$ref: '#/definitions/ArrayOfTransportBills',
},
summaryDeclarationNo: {
type: 'string',
},
summaryDeclarationJobScope: {
type: 'string',
},
innerWhareHouse: {
type: 'string',
},
otherRegime: {
type: 'string',
},
explanation: {
type: 'string',
},
},
required: ['transportBills'],
},
ArrayOfTransportBills: {
type: 'array',
items: {
$ref: '#/definitions/transportBills',
},
},
transportBills: {
type: 'object',
properties: {
transportIBillNo: {
type: 'string',
},
transportItems: {
$ref: '#/definitions/ArrayOfTransportItems',
},
},
required: ['transportItems'],
},
ArrayOfTransportItems: {
type: 'array',
items: {
$ref: '#/definitions/transportItems',
},
},
transportItems: {
type: 'object',
properties: {
transportItemNo: {
type: 'string',
},
wharehouseKod: {
type: 'string',
},
openAmount: {
type: 'number',
},
},
required: ['openAmount'],
},
ArrayOfItem: {
type: 'array',
items: {
$ref: '#/definitions/item',
},
},
item: {
type: 'object',
properties: {
supplementaryInfo: {
$ref: '#/definitions/ArrayOfComlementary',
},
tcgbOpenCloses: {
$ref: '#/definitions/ArrayOfTcgbOpenClose',
},
tradeMarkInfo: {
$ref: '#/definitions/ArrayOfTradeMark',
},
containers: {
$ref: '#/definitions/ArrayOfContainer',
},
dutyExemptions: {
$ref: '#/definitions/ArrayOfDutyExemption',
},
aviationFuelTypes: {
$ref: '#/definitions/ArrayOfAviationFuelType',
},
paymentMeans: {
$ref: '#/definitions/ArrayOfPaymentMeans',
},
HSCode: {
type: 'string',
},
producer: {
type: 'string',
},
itemLineNo: {
type: 'integer',
minimum: -2147483648,
maximum: 2147483647,
},
originCountry: {
type: 'string',
},
grossWeight: {
type: 'number',
},
netWeight: {
type: 'number',
},
statisticalQuantityUnit: {
type: 'string',
},
statisticalQuantity: {
type: 'number',
},
internationalTreaty: {
type: 'string',
},
detectionUnit1: {
type: 'string',
},
detectionAmount1: {
type: 'number',
},
detectionUnit2: {
type: 'string',
},
detectionAmount2: {
type: 'number',
},
exemptions1: {
type: 'string',
},
exemptions2: {
type: 'string',
},
exemptions3: {
type: 'string',
},
exemptions4: {
type: 'string',
},
exemptions5: {
type: 'string',
},
detectionUnit3: {
type: 'string',
},
detectionAmount3: {
type: 'number',
},
deliveryTerms: {
type: 'string',
},
additionalCode: {
type: 'string',
},
specification: {
type: 'string',
},
invoiceAmount: {
type: 'number',
},
invoiceAmountCurrency: {
type: 'string',
},
borderPassFee: {
type: 'number',
},
freightAmount: {
type: 'number',
},
freightAmountCurrency: {
type: 'string',
},
statisticalValue: {
type: 'number',
},
insuranceAmount: {
type: 'number',
},
insuranceAmountCurrency: {
type: 'string',
},
tariffDefinition: {
type: 'string',
},
itemDescription: {
type: 'string',
},
brandName: {
type: 'string',
},
itemNo: {
type: 'string',
},
packagingType: {
type: 'string',
},
packageQuantity: {
type: 'number',
},
itemUnitOfMeasure: {
type: 'string',
},
returnToOrigin: {
type: 'string',
},
secondaryProcess: {
type: 'string',
},
lineNumber: {
type: 'string',
},
itemQuantity: {
type: 'number',
},
vatRate: {
type: 'string',
},
usedGoods: {
type: 'string',
},
description44: {
type: 'string',
},
producerTaxNo: {
type: 'string',
},
domesticOther: {
type: 'number',
},
domesticBank: {
type: 'number',
},
domesticStorage: {
type: 'number',
},
domesticDischarge: {
type: 'number',
},
domesticPort: {
type: 'number',
},
domesticCulture: {
type: 'number',
},
domesticRUSF: {
type: 'number',
},
domesticEnvironment: {
type: 'number',
},
domesticOtherExplanation: {
type: 'string',
},
exemptionExplanation: {
type: 'string',
},
referenceDate: {
type: 'string',
},
foreignCommission: {
type: 'number',
},
foreignDemurrage: {
type: 'number',
},
foreignRoyalty: {
type: 'number',
},
foreignInterest: {
type: 'number',
},
foreignOther: {
type: 'number',
},
foreignComissionCurrency: {
type: 'string',
},
foreignDemurrageCurrency: {
type: 'string',
},
foreignRoyaltyCurrency: {
type: 'string',
},
foreignInterestCurrency: {
type: 'string',
},
foreignOtherCurrency: {
type: 'string',
},
foreignOtherExplanation: {
type: 'string',
},
itemProcessType: {
type: 'string',
},
reasonForEntryOrExit: {
type: 'string',
},
reasonForEntryOrExitExplanation: {
type: 'string',
},
stmProvinceCode: {
type: 'string',
},
itemReturnReason: {
type: 'string',
},
itemReturnReasonExplanation: {
type: 'string',
},
},
required: [
'supplementaryInfo',
'tcgbOpenCloses',
'tradeMarkInfo',
'containers',
'dutyExemptions',
'aviationFuelTypes',
'paymentMeans',
'itemLineNo',
'grossWeight',
'netWeight',
'statisticalQuantity',
'detectionUnit1',
'detectionUnit2',
'detectionUnit3',
'invoiceAmount',
'borderPassFee',
'freightAmount',
'statisticalValue',
'insuranceAmount',
'packageQuantity',
'itemQuantity',
'domesticOther',
'domesticBank',
'domesticStorage',
'domesticDischarge',
'domesticPort',
'domesticCulture',
'domesticRUSF',
'domesticEnvironment',
'domesticOtherExplanation',
'exemptionExplanation',
'referenceDate',
'foreignCommission',
'foreignDemurrage',
'foreignRoyalty',
'foreignInterest',
'foreignOther',
'foreignComissionCurrency',
'foreignDemurrageCurrency',
'foreignRoyaltyCurrency',
'foreignInterestCurrency',
'foreignOtherCurrency',
'foreignOtherExplanation',
'itemProcessType',
'reasonForEntryOrExit',
'reasonForEntryOrExitExplanation',
'stmProvinceCode',
'itemReturnReason',
'itemReturnReasonExplanation',
],
},
ArrayOfComlementary: {
type: 'array',
items: {
$ref: '#/definitions/Comlementary',
},
},
Comlementary: {
type: 'object',
properties: {
supplementaryInfo: {
type: 'string',
},
statisticalQuantityUnit: {
type: 'string',
},
},
},
ArrayOfTcgbOpenClose: {
type: 'array',
items: {
$ref: '#/definitions/TcgbOpenClose',
},
},
TcgbOpenClose: {
type: 'object',
properties: {
closedDeclarationNo: {
type: 'string',
},
closedItemNo: {
type: 'integer',
minimum: -2147483648,
maximum: 2147483647,
},
closedAmount: {
type: 'number',
},
description: {
type: 'string',
},
},
required: ['closedItemNo', 'closedAmount'],
},
ArrayOfTradeMark: {
type: 'array',
items: {
$ref: '#/definitions/TradeMark',
},
},
TradeMark: {
type: 'object',
properties: {
tradeMarkType: {
type: 'string',
},
tradeMarkRegistrationNo: {
type: 'string',
},
tradeMarkName: {
type: 'string',
},
tradeMarkValue: {
type: 'number',
},
referanceNo: {
type: 'string',
},
modelYear: {
type: 'string',
},
model: {
type: 'string',
},
engineVolume: {
type: 'string',
},
engineCylinderQuantity: {
type: 'integer',
minimum: -2147483648,
maximum: 2147483647,
},
color: {
type: 'string',
},
engineType: {
type: 'string',
},
engineNo: {
type: 'string',
},
horsePower: {
type: 'integer',
},
gear: {
type: 'string',
},
IMEINo: {
type: 'string',
},
},
required: ['tradeMarkValue'],
},
ArrayOfContainer: {
type: 'array',
items: {
$ref: '#/definitions/Container',
},
},
Container: {
type: 'object',
properties: {
containerNo: {
type: 'string',
},
countryCode: {
type: 'string',
},
},
},
ArrayOfDutyExemption: {
type: 'array',
items: {
$ref: '#/definitions/DutyExemption',
},
},
DutyExemption: {
type: 'object',
properties: {
dutyExemptionCode: {
type: 'string',
},
},
},
ArrayOfAviationFuelType: {
type: 'array',
items: {
$ref: '#/definitions/AviationFuelType',
},
},
AviationFuelType: {
type: 'object',
properties: {
taxNo: {
type: 'string',
},
invoiceDate: {
type: 'string',
},
invoiceNumber: {
type: 'string',
},
totalInvoiceAmount: {
type: 'string',
},
fuelType: {
type: 'string',
},
},
required: [
'taxNo',
'invoiceDate',
'invoiceNumber',
'totalInvoiceAmount',
'fuelType',
],
},
ArrayOfPaymentMeans: {
type: 'array',
items: {
$ref: '#/definitions/PaymentMeans',
},
},
PaymentMeans: {
type: 'object',
properties: {
paymentMeansCode: {
type: 'string',
},
paymentAmount: {
type: 'number',
},
TBFID: {
type: 'string',
},
},
},
ArrayOfQuestion: {
type: 'array',
items: {
$ref: '#/definitions/Question',
},
},
Question: {
type: 'object',
properties: {
itemNo: {
type: 'integer',
minimum: -2147483648,
maximum: 2147483647,
},
questionNo: {
type: 'string',
},
answer: {
type: 'string',
},
},
required: ['itemNo'],
},
ArrayOfDocument: {
type: 'array',
items: {
$ref: '#/definitions/Document',
},
},
Document: {
type: 'object',
properties: {
itemNo: {
type: 'integer',
minimum: -2147483648,
maximum: 2147483647,
},
code: {
type: 'string',
},
verification: {
type: 'string',
},
documentDate: {
type: 'string',
},
reference: {
type: 'string',
},
visaDate: {
type: 'string',
},
},
required: ['itemNo'],
},
ArrayOfDuty: {
type: 'array',
items: {
$ref: '#/definitions/Duty',
},
},
Duty: {
type: 'object',
properties: {
itemNo: {
type: 'integer',
minimum: -2147483648,
maximum: 2147483647,
},
code: {
type: 'string',
},
explanation: {
type: 'string',
},
dutyAmount: {
type: 'number',
},
dutyRate: {
type: 'string',
},
paymentMeans: {
type: 'string',
},
dutyAssesment: {
type: 'number',
},
},
required: ['itemNo', 'dutyAmount', 'dutyAssesment'],
},
ArrayOfValue: {
type: 'array',
items: {
$ref: '#/definitions/Value',
},
},
Value: {
type: 'object',
properties: {
deliveryTerms: {
type: 'string',
},
invoiceDateNo: {
type: 'string',
},
contractDateNo: {
type: 'string',
},
customsOfficeNo: {
type: 'string',
},
buyerSeller: {
type: 'string',
},
relation: {
type: 'string',
},
imputed: {
type: 'string',
},
buyerSellerDetails: {
type: 'string',
},
constraints: {
type: 'string',
},
deed: {
type: 'string',
},
constraintDetails: {
type: 'string',
},
royalty: {
type: 'string',
},
royaltyConditions: {
type: 'string',
},
sellerPass: {
type: 'string',
},
sellerPassConditions: {
type: 'string',
},
cityLocation: {
type: 'string',
},
recognisance: {
type: 'string',
},
ValueItems: {
$ref: '#/definitions/ArrayOfValueItem',
},
},
},
ArrayOfValueItem: {
type: 'array',
items: {
$ref: '#/definitions/ValueItem',
},
},
ValueItem: {
type: 'object',
properties: {
valueItemNumber: {
type: 'integer',
minimum: -2147483648,
maximum: 2147483647,
},
declarationItemNumber: {
type: 'integer',
minimum: -2147483648,
maximum: 2147483647,
},
indirectPayment: {
type: 'number',
},
commission: {
type: 'number',
},
brokerageCommission: {
type: 'number',
},
containerPackagePrice: {
type: 'number',
},
importAddedMaterail: {
type: 'number',
},
importProductionTools: {
type: 'number',
},
importProductionConsumptionMaterial: {
type: 'number',
},
planningTemplate: {
type: 'number',
},
royaltyLicense: {
type: 'number',
},
indirectPassing: {
type: 'number',
},
shipment: {
type: 'number',
},
insurance: {
type: 'number',
},
postEntryShipment: {
type: 'number',
},
technicalAid: {
type: 'number',
},
otherPayments: {
type: 'number',
},
otherPaymentKind: {
type: 'string',
},
taxPaymentFund: {
type: 'number',
},
},
required: [
'valueItemNumber',
'declarationItemNumber',
'indirectPayment',
'commission',
'brokerageCommission',
'containerPackagePrice',
'importAddedMaterail',
'importProductionTools',
'importProductionConsumptionMaterial',
'planningTemplate',
'royaltyLicense',
'indirectPassing',
'shipment',
'insurance',
'postEntryShipment',
'technicalAid',
'otherPayments',
'taxPaymentFund',
],
},
},
}