diff --git a/docs/accounting/index.html b/docs/accounting/index.html index 17ee63ad..f24b701d 100644 --- a/docs/accounting/index.html +++ b/docs/accounting/index.html @@ -6340,7 +6340,7 @@ SDK: - VSN: 10.1.0 + VSN: 11.0.0 Methods createAccount diff --git a/docs/appstore/index.html b/docs/appstore/index.html index 8583013d..48ca6954 100644 --- a/docs/appstore/index.html +++ b/docs/appstore/index.html @@ -1242,7 +1242,7 @@ SDK: - VSN: 10.1.0 + VSN: 11.0.0 Methods getSubscription diff --git a/docs/assets/index.html b/docs/assets/index.html index cac5569f..d68020df 100644 --- a/docs/assets/index.html +++ b/docs/assets/index.html @@ -1393,7 +1393,7 @@ SDK: - VSN: 10.1.0 + VSN: 11.0.0 Methods createAsset diff --git a/docs/bankfeeds/index.html b/docs/bankfeeds/index.html index 6f3c7eaa..00533120 100644 --- a/docs/bankfeeds/index.html +++ b/docs/bankfeeds/index.html @@ -1269,7 +1269,7 @@ SDK: - VSN: 10.1.0 + VSN: 11.0.0 Methods createFeedConnections diff --git a/docs/files/index.html b/docs/files/index.html index 1d24f646..c7e67cf2 100644 --- a/docs/files/index.html +++ b/docs/files/index.html @@ -1171,7 +1171,7 @@ SDK: - VSN: 10.1.0 + VSN: 11.0.0 Methods createFileAssociation diff --git a/docs/finance/index.html b/docs/finance/index.html index 9f8c5355..6e9680d8 100644 --- a/docs/finance/index.html +++ b/docs/finance/index.html @@ -2717,7 +2717,7 @@ SDK: - VSN: 10.1.0 + VSN: 11.0.0 Methods getAccountingActivityAccountUsage diff --git a/docs/payroll-au/index.html b/docs/payroll-au/index.html index 719e4e24..23cd4d5c 100644 --- a/docs/payroll-au/index.html +++ b/docs/payroll-au/index.html @@ -3413,7 +3413,7 @@ SDK: - VSN: 10.1.0 + VSN: 11.0.0 Methods approveLeaveApplication diff --git a/docs/payroll-nz/index.html b/docs/payroll-nz/index.html index 856d1c0b..556c256a 100644 --- a/docs/payroll-nz/index.html +++ b/docs/payroll-nz/index.html @@ -4088,7 +4088,7 @@ SDK: - VSN: 10.1.0 + VSN: 11.0.0 Methods approveTimesheet diff --git a/docs/payroll-uk/index.html b/docs/payroll-uk/index.html index 5c96b83b..b3b773e6 100644 --- a/docs/payroll-uk/index.html +++ b/docs/payroll-uk/index.html @@ -1595,6 +1595,16 @@ "format" : "date-time", "x-is-datetime" : true }, + "niCategory" : { + "$ref" : "#/components/schemas/NICategoryLetter" + }, + "niCategories" : { + "type" : "array", + "description" : "The employee's NI categories", + "items" : { + "$ref" : "#/components/schemas/NICategory" + } + }, "nationalInsuranceNumber" : { "type" : "string", "description" : "National insurance number of the employee", @@ -2262,7 +2272,7 @@ }; defs["Employment"] = { "title" : "", - "required" : [ "EmployeeNumber", "NICategory", "PayrollCalendarID", "StartDate" ], + "required" : [ "EmployeeNumber", "NICategories", "PayrollCalendarID", "StartDate" ], "type" : "object", "properties" : { "payrollCalendarID" : { @@ -2282,10 +2292,14 @@ "example" : "7" }, "niCategory" : { - "type" : "string", - "description" : "The NI Category of the employee", - "example" : "A", - "enum" : [ "A", "B", "C", "F", "H", "I", "J", "L", "M", "S", "V", "X", "Z" ] + "$ref" : "#/components/schemas/NICategoryLetter" + }, + "niCategories" : { + "type" : "array", + "description" : "The employee's NI categories", + "items" : { + "$ref" : "#/components/schemas/NICategory" + } } }, "description" : "" @@ -2502,6 +2516,75 @@ } }, "description" : "" +}; + defs["NICategory"] = { + "title" : "", + "required" : [ "niCategory", "workplacePostcode" ], + "type" : "object", + "properties" : { + "startDate" : { + "type" : "string", + "description" : "The start date of the NI category (YYYY-MM-DD)", + "format" : "date", + "example" : "2024-12-02", + "x-is-date" : true + }, + "niCategory" : { + "$ref" : "#/components/schemas/NICategoryLetter" + }, + "niCategoryID" : { + "type" : "number", + "description" : "Xero unique identifier for the NI category", + "example" : 15 + }, + "dateFirstEmployedAsCivilian" : { + "type" : "string", + "description" : "The date in which the employee was first employed as a civilian (YYYY-MM-DD)", + "format" : "date", + "example" : "2024-12-02", + "x-is-date" : true + }, + "workplacePostcode" : { + "type" : "string", + "description" : "The workplace postcode", + "example" : "SW1A 1AA" + } + }, + "description" : "", + "oneOf" : [ { + "$ref" : "#/components/schemas/NICategory_oneOf" + }, { + "$ref" : "#/components/schemas/NICategory_oneOf_1" + } ] +}; + defs["NICategoryLetter"] = { + "title" : "", + "type" : "string", + "description" : "The employee's NI Category letter.", + "example" : "I", + "enum" : [ "A", "B", "C", "D", "E", "F", "H", "I", "J", "K", "L", "M", "N", "S", "V", "X", "Z" ] +}; + defs["NICategory_oneOf"] = { + "title" : "", + "required" : [ "workplacePostcode" ], + "properties" : { + "niCategory" : { + "type" : "string", + "enum" : [ "F", "I", "L", "S", "N", "E", "D", "K" ] + } + }, + "description" : "" +}; + defs["NICategory_oneOf_1"] = { + "title" : "", + "required" : [ "dateFirstEmployedAsCivilian" ], + "properties" : { + "niCategory" : { + "type" : "string", + "enum" : [ "V" ] + } + }, + "description" : "" }; defs["Pagination"] = { "title" : "", @@ -3518,7 +3601,7 @@ SDK: - VSN: 10.1.0 + VSN: 11.0.0 Methods approveTimesheet @@ -5715,6 +5798,8 @@ Usage and SDK Samples startDate: startDate }; +const niCategories: NICategories = { + try { const response = await xero.accountingApi.createEmployment(xeroTenantId, employeeID, employment, idempotencyKey); console.log(response.body || response.response.statusCode) @@ -5846,7 +5931,7 @@ Parameters "schema" : { "$ref" : "#/components/schemas/Employment" }, - "example" : "{ \"PayrollCalendarID\": \"216d80e6-af55-47b1-b718-9457c3f5d2fe\", \"StartDate\": \"2020-04-01\", \"EmployeeNumber\": \"123ABC\", \"NICategory\": \"A\" }" + "example" : "{ \"PayrollCalendarID\": \"216d80e6-af55-47b1-b718-9457c3f5d2fe\", \"StartDate\": \"2020-04-01\", \"NICategories\": [ { \"NICategory\": \"A\", \"StartDate\": \"2020-05-01\" } ], \"EmployeeNumber\": \"123ABC\" }" } }, "required" : true diff --git a/docs/projects/index.html b/docs/projects/index.html index fa6f1c29..d6c88b57 100644 --- a/docs/projects/index.html +++ b/docs/projects/index.html @@ -1463,7 +1463,7 @@ SDK: - VSN: 10.1.0 + VSN: 11.0.0 Methods createProject diff --git a/package-lock.json b/package-lock.json index 39f30429..0bdb6c5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "xero-node", - "version": "10.1.0", + "version": "11.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "xero-node", - "version": "10.1.0", + "version": "11.0.0", "license": "MIT", "dependencies": { "axios": "^1.6.5", diff --git a/package.json b/package.json index b30ffc56..c5c39cf2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "xero-node", - "version": "10.1.0", + "version": "11.0.0", "description": "Xero NodeJS OAuth 2.0 client for xero-node", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/gen/api/accountingApi.ts b/src/gen/api/accountingApi.ts index e246078d..8c230d59 100644 --- a/src/gen/api/accountingApi.ts +++ b/src/gen/api/accountingApi.ts @@ -2,7 +2,7 @@ * Xero Accounting API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * The version of the OpenAPI document: 7.1.0 + * The version of the OpenAPI document: 8.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -85,7 +85,7 @@ export enum AccountingApiApiKeys { export class AccountingApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-10.1.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-11.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/appStoreApi.ts b/src/gen/api/appStoreApi.ts index 0fd9f92c..3dbb3feb 100644 --- a/src/gen/api/appStoreApi.ts +++ b/src/gen/api/appStoreApi.ts @@ -2,7 +2,7 @@ * Xero AppStore API * These endpoints are for Xero Partners to interact with the App Store Billing platform * - * The version of the OpenAPI document: 7.1.0 + * The version of the OpenAPI document: 8.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -38,7 +38,7 @@ export enum AppStoreApiApiKeys { export class AppStoreApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-10.1.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-11.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/assetApi.ts b/src/gen/api/assetApi.ts index 8d3a8da8..d3253aa7 100644 --- a/src/gen/api/assetApi.ts +++ b/src/gen/api/assetApi.ts @@ -2,7 +2,7 @@ * Xero Assets API * The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc. * - * The version of the OpenAPI document: 7.1.0 + * The version of the OpenAPI document: 8.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -37,7 +37,7 @@ export enum AssetApiApiKeys { export class AssetApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-10.1.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-11.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/bankfeedsApi.ts b/src/gen/api/bankfeedsApi.ts index 6871c2c3..3fc55b8a 100644 --- a/src/gen/api/bankfeedsApi.ts +++ b/src/gen/api/bankfeedsApi.ts @@ -2,7 +2,7 @@ * Xero Bank Feeds API * The Bank Feeds API is a closed API that is only available to financial institutions that have an established financial services partnership with Xero. If you\'re an existing financial services partner that wants access, contact your local Partner Manager. If you\'re a financial institution who wants to provide bank feeds to your business customers, contact us to become a financial services partner. * - * The version of the OpenAPI document: 7.1.0 + * The version of the OpenAPI document: 8.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -36,7 +36,7 @@ export enum BankFeedsApiApiKeys { export class BankFeedsApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-10.1.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-11.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/filesApi.ts b/src/gen/api/filesApi.ts index 4de465b9..b060e209 100644 --- a/src/gen/api/filesApi.ts +++ b/src/gen/api/filesApi.ts @@ -2,7 +2,7 @@ * Xero Files API * These endpoints are specific to Xero Files API * - * The version of the OpenAPI document: 7.1.0 + * The version of the OpenAPI document: 8.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -36,7 +36,7 @@ export enum FilesApiApiKeys { export class FilesApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-10.1.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-11.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/financeApi.ts b/src/gen/api/financeApi.ts index 30139ce9..b7e48ea3 100644 --- a/src/gen/api/financeApi.ts +++ b/src/gen/api/financeApi.ts @@ -2,7 +2,7 @@ * Xero Finance API * The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital. * - * The version of the OpenAPI document: 7.1.0 + * The version of the OpenAPI document: 8.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -44,7 +44,7 @@ export enum FinanceApiApiKeys { export class FinanceApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-10.1.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-11.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollAUApi.ts b/src/gen/api/payrollAUApi.ts index c65c2126..373325b3 100644 --- a/src/gen/api/payrollAUApi.ts +++ b/src/gen/api/payrollAUApi.ts @@ -2,7 +2,7 @@ * Xero Payroll AU API * This is the Xero Payroll API for orgs in Australia region. * - * The version of the OpenAPI document: 7.1.0 + * The version of the OpenAPI document: 8.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,7 +53,7 @@ export enum PayrollAuApiApiKeys { export class PayrollAuApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-10.1.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-11.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollNZApi.ts b/src/gen/api/payrollNZApi.ts index 4a7d5f93..5b5996cc 100644 --- a/src/gen/api/payrollNZApi.ts +++ b/src/gen/api/payrollNZApi.ts @@ -2,7 +2,7 @@ * Xero Payroll NZ * This is the Xero Payroll API for orgs in the NZ region. * - * The version of the OpenAPI document: 7.1.0 + * The version of the OpenAPI document: 8.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -97,7 +97,7 @@ export enum PayrollNzApiApiKeys { export class PayrollNzApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-10.1.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-11.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/payrollUKApi.ts b/src/gen/api/payrollUKApi.ts index 798c821f..78043385 100644 --- a/src/gen/api/payrollUKApi.ts +++ b/src/gen/api/payrollUKApi.ts @@ -2,7 +2,7 @@ * Xero Payroll UK * This is the Xero Payroll API for orgs in the UK region. * - * The version of the OpenAPI document: 7.1.0 + * The version of the OpenAPI document: 8.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -94,7 +94,7 @@ export enum PayrollUkApiApiKeys { export class PayrollUkApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-10.1.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-11.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/api/projectApi.ts b/src/gen/api/projectApi.ts index 1df7230a..046752f7 100644 --- a/src/gen/api/projectApi.ts +++ b/src/gen/api/projectApi.ts @@ -2,7 +2,7 @@ * Xero Projects API * This is the Xero Projects API * - * The version of the OpenAPI document: 7.1.0 + * The version of the OpenAPI document: 8.0.0 * Contact: api@xero.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -44,7 +44,7 @@ export enum ProjectApiApiKeys { export class ProjectApi { protected _basePath = defaultBasePath; - protected defaultHeaders : any = {'user-agent': 'xero-node-10.1.0'}; + protected defaultHeaders : any = {'user-agent': 'xero-node-11.0.0'}; protected _useQuerystring : boolean = false; protected binaryHeaders : any = {}; diff --git a/src/gen/model/payroll-uk/employee.ts b/src/gen/model/payroll-uk/employee.ts index c405e6fe..05551438 100644 --- a/src/gen/model/payroll-uk/employee.ts +++ b/src/gen/model/payroll-uk/employee.ts @@ -1,4 +1,6 @@ import { Address } from '././address'; +import { NICategory } from '././nICategory'; +import { NICategoryLetter } from '././nICategoryLetter'; export class Employee { /** @@ -54,6 +56,11 @@ export class Employee { * UTC timestamp when the employee was created in Xero */ 'createdDateUTC'?: Date; + 'niCategory'?: NICategoryLetter; + /** + * The employee\'s NI categories + */ + 'niCategories'?: Array; /** * National insurance number of the employee */ @@ -136,6 +143,16 @@ export class Employee { "baseName": "createdDateUTC", "type": "Date" }, + { + "name": "niCategory", + "baseName": "niCategory", + "type": "NICategoryLetter" + }, + { + "name": "niCategories", + "baseName": "niCategories", + "type": "Array" + }, { "name": "nationalInsuranceNumber", "baseName": "nationalInsuranceNumber", diff --git a/src/gen/model/payroll-uk/employment.ts b/src/gen/model/payroll-uk/employment.ts index af76f3c4..db85b7fc 100644 --- a/src/gen/model/payroll-uk/employment.ts +++ b/src/gen/model/payroll-uk/employment.ts @@ -1,3 +1,5 @@ +import { NICategory } from '././nICategory'; +import { NICategoryLetter } from '././nICategoryLetter'; export class Employment { /** @@ -12,10 +14,11 @@ export class Employment { * The employment number of the employee */ 'employeeNumber'?: string; + 'niCategory'?: NICategoryLetter; /** - * The NI Category of the employee + * The employee\'s NI categories */ - 'niCategory'?: Employment.NiCategoryEnum; + 'niCategories'?: Array; static discriminator: string | undefined = undefined; @@ -38,7 +41,12 @@ export class Employment { { "name": "niCategory", "baseName": "niCategory", - "type": "Employment.NiCategoryEnum" + "type": "NICategoryLetter" + }, + { + "name": "niCategories", + "baseName": "niCategories", + "type": "Array" } ]; static getAttributeTypeMap() { @@ -46,20 +54,3 @@ export class Employment { } } -export namespace Employment { - export enum NiCategoryEnum { - A = 'A', - B = 'B', - C = 'C', - F = 'F', - H = 'H', - I = 'I', - J = 'J', - L = 'L', - M = 'M', - S = 'S', - V = 'V', - X = 'X', - Z = 'Z' - } -} diff --git a/src/gen/model/payroll-uk/models.ts b/src/gen/model/payroll-uk/models.ts index 9b62edfc..73ad438f 100644 --- a/src/gen/model/payroll-uk/models.ts +++ b/src/gen/model/payroll-uk/models.ts @@ -55,6 +55,10 @@ export * from '././leavePeriods'; export * from '././leaveType'; export * from '././leaveTypeObject'; export * from '././leaveTypes'; +export * from '././nICategory'; +export * from '././nICategoryLetter'; +export * from '././nICategoryOneOf'; +export * from '././nICategoryOneOf1'; export * from '././pagination'; export * from '././payRun'; export * from '././payRunCalendar'; @@ -146,6 +150,10 @@ import { LeavePeriods } from '././leavePeriods'; import { LeaveType } from '././leaveType'; import { LeaveTypeObject } from '././leaveTypeObject'; import { LeaveTypes } from '././leaveTypes'; +import { NICategory } from '././nICategory'; +import { NICategoryLetter } from '././nICategoryLetter'; +import { NICategoryOneOf } from '././nICategoryOneOf'; +import { NICategoryOneOf1 } from '././nICategoryOneOf1'; import { Pagination } from '././pagination'; import { PayRun } from '././payRun'; import { PayRunCalendar } from '././payRunCalendar'; @@ -207,8 +215,10 @@ let enumsMap: {[index: string]: any} = { "EmployeeStatutoryLeaveSummary.TypeEnum": EmployeeStatutoryLeaveSummary.TypeEnum, "EmployeeStatutoryLeaveSummary.StatusEnum": EmployeeStatutoryLeaveSummary.StatusEnum, "EmployeeStatutorySickLeave.EntitlementFailureReasonsEnum": EmployeeStatutorySickLeave.EntitlementFailureReasonsEnum, - "Employment.NiCategoryEnum": Employment.NiCategoryEnum, "LeavePeriod.PeriodStatusEnum": LeavePeriod.PeriodStatusEnum, + "NICategoryLetter": NICategoryLetter, + "NICategoryOneOf.NiCategoryEnum": NICategoryOneOf.NiCategoryEnum, + "NICategoryOneOf1.NiCategoryEnum": NICategoryOneOf1.NiCategoryEnum, "PayRun.PayRunStatusEnum": PayRun.PayRunStatusEnum, "PayRun.PayRunTypeEnum": PayRun.PayRunTypeEnum, "PayRun.CalendarTypeEnum": PayRun.CalendarTypeEnum, @@ -279,6 +289,9 @@ let typeMap: {[index: string]: any} = { "LeaveType": LeaveType, "LeaveTypeObject": LeaveTypeObject, "LeaveTypes": LeaveTypes, + "NICategory": NICategory, + "NICategoryOneOf": NICategoryOneOf, + "NICategoryOneOf1": NICategoryOneOf1, "Pagination": Pagination, "PayRun": PayRun, "PayRunCalendar": PayRunCalendar, diff --git a/src/gen/model/payroll-uk/nICategory.ts b/src/gen/model/payroll-uk/nICategory.ts new file mode 100644 index 00000000..f0bd13df --- /dev/null +++ b/src/gen/model/payroll-uk/nICategory.ts @@ -0,0 +1,59 @@ +import { NICategoryLetter } from '././nICategoryLetter'; +import { NICategoryOneOf } from '././nICategoryOneOf'; +import { NICategoryOneOf1 } from '././nICategoryOneOf1'; + +export class NICategory { + /** + * The start date of the NI category (YYYY-MM-DD) + */ + 'startDate'?: string; + 'niCategory': NICategoryLetter; + /** + * Xero unique identifier for the NI category + */ + 'niCategoryID'?: number; + /** + * The date in which the employee was first employed as a civilian (YYYY-MM-DD) + */ + 'dateFirstEmployedAsCivilian'?: string; + /** + * The workplace postcode + */ + 'workplacePostcode': string; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "startDate", + "baseName": "startDate", + "type": "string" + }, + { + "name": "niCategory", + "baseName": "niCategory", + "type": "NICategoryLetter" + }, + { + "name": "niCategoryID", + "baseName": "niCategoryID", + "type": "number" + }, + { + "name": "dateFirstEmployedAsCivilian", + "baseName": "dateFirstEmployedAsCivilian", + "type": "string" + }, + { + "name": "workplacePostcode", + "baseName": "workplacePostcode", + "type": "string" + } ]; + + static getAttributeTypeMap() { + return NICategory.attributeTypeMap; + } +} + +export namespace NICategory { +} diff --git a/src/gen/model/payroll-uk/nICategoryLetter.ts b/src/gen/model/payroll-uk/nICategoryLetter.ts new file mode 100644 index 00000000..306327f6 --- /dev/null +++ b/src/gen/model/payroll-uk/nICategoryLetter.ts @@ -0,0 +1,23 @@ + +/** +* The employee\'s NI Category letter. +*/ +export enum NICategoryLetter { + A = 'A', + B = 'B', + C = 'C', + F = 'F', + H = 'H', + I = 'I', + J = 'J', + L = 'L', + M = 'M', + S = 'S', + V = 'V', + X = 'X', + Z = 'Z', + D = 'D', + E = 'E', + K = 'K', + N = 'N' +} diff --git a/src/gen/model/payroll-uk/nICategoryOneOf.ts b/src/gen/model/payroll-uk/nICategoryOneOf.ts new file mode 100644 index 00000000..f30ed486 --- /dev/null +++ b/src/gen/model/payroll-uk/nICategoryOneOf.ts @@ -0,0 +1,30 @@ + +export class NICategoryOneOf { + 'niCategory'?: NICategoryOneOf.NiCategoryEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "niCategory", + "baseName": "niCategory", + "type": "NICategoryOneOf.NiCategoryEnum" + } ]; + + static getAttributeTypeMap() { + return NICategoryOneOf.attributeTypeMap; + } +} + +export namespace NICategoryOneOf { + export enum NiCategoryEnum { + F = 'F', + I = 'I', + L = 'L', + S = 'S', + N = 'N', + E = 'E', + D = 'D', + K = 'K' + } +} diff --git a/src/gen/model/payroll-uk/nICategoryOneOf1.ts b/src/gen/model/payroll-uk/nICategoryOneOf1.ts new file mode 100644 index 00000000..e0b45f38 --- /dev/null +++ b/src/gen/model/payroll-uk/nICategoryOneOf1.ts @@ -0,0 +1,23 @@ + +export class NICategoryOneOf1 { + 'niCategory'?: NICategoryOneOf1.NiCategoryEnum; + + static discriminator: string | undefined = undefined; + + static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ + { + "name": "niCategory", + "baseName": "niCategory", + "type": "NICategoryOneOf1.NiCategoryEnum" + } ]; + + static getAttributeTypeMap() { + return NICategoryOneOf1.attributeTypeMap; + } +} + +export namespace NICategoryOneOf1 { + export enum NiCategoryEnum { + V = 'V' + } +}