GET | /GetDefinitionKeysAsync | An asynchronous service to retrieve keys for the identification of VAT properties. |
---|
"use strict";
/** @typedef {'UStVA'|'UStDV'|'UStSV'|'USt'|'ZM'} */
export var VatType;
(function (VatType) {
VatType["UStVA"] = "UStVA"
VatType["UStDV"] = "UStDV"
VatType["UStSV"] = "UStSV"
VatType["USt"] = "USt"
VatType["ZM"] = "ZM"
})(VatType || (VatType = {}));
export class GetDefinitionKeysBase {
/** @param {{year?:number,vatType?:VatType}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {number}
* @description The year of the assessment (Veranlagungsjahr). */
year;
/**
* @type {VatType}
* @description The type of VAT return. */
vatType;
}
export class GetDefinitionKeysAsync extends GetDefinitionKeysBase {
/** @param {{year?:number,vatType?:VatType,year?:number,vatType?:VatType}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/**
* @type {number}
* @description The year of the assessment (Veranlagungsjahr). */
year;
/**
* @type {VatType}
* @description The type of VAT return. */
vatType;
}
JavaScript GetDefinitionKeysAsync DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /GetDefinitionKeysAsync HTTP/1.1 Host: taxfiling.pwc.de Accept: text/jsv
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length [ { name: String, description: String, type: String, mandatory: String } ]