diff --git a/docs/v4/accounting/index.html b/docs/v4/accounting/index.html index 9667a9f0..07b5c4b1 100644 --- a/docs/v4/accounting/index.html +++ b/docs/v4/accounting/index.html @@ -7212,7 +7212,12 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Account" }, - "example" : "{ \"Code\":\"123456\", \"Name\":\"Foobar\", \"Type\":\"EXPENSE\", \"Description\":\"Hello World\" }" + "example" : { + "Code" : "123456", + "Name" : "Foobar", + "Type" : "EXPENSE", + "Description" : "Hello World" + } } }, "required" : true @@ -7831,7 +7836,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -8007,7 +8016,23 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/BankTransactions" }, - "example" : "{ bankTransactions: [{ type: BankTransaction.TypeEnum.SPEND, contact: { contactID: \"00000000-0000-0000-0000-000000000000\" }, lineItems: [{ description: \"Foobar\", quantity: 1.0, unitAmount: 20.0, accountCode: \"000\" } ], bankAccount: { code: \"000\" }}]}" + "example" : { + "bankTransactions" : [ { + "type" : "BankTransaction.TypeEnum.SPEND", + "contact" : { + "contactID" : "00000000-0000-0000-0000-000000000000" + }, + "lineItems" : [ { + "description" : "Foobar", + "quantity" : 1.0, + "unitAmount" : 20.0, + "accountCode" : "000" + } ], + "bankAccount" : { + "code" : "000" + } + } ] + } } }, "required" : true @@ -8218,7 +8243,50 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/BankTransfers" }, - "example" : "{ \"BankTransfers\": [ { \"FromBankAccount\": { \"Code\": \"090\", \"Name\": \"My Savings\", \"AccountID\": \"00000000-0000-0000-0000-000000000000\", \"Type\": \"BANK\", \"BankAccountNumber\": \"123455\", \"Status\": \"ACTIVE\", \"BankAccountType\": \"BANK\", \"CurrencyCode\": \"USD\", \"TaxType\": \"NONE\", \"EnablePaymentsToAccount\": false, \"ShowInExpenseClaims\": false, \"Class\": \"ASSET\", \"ReportingCode\": \"ASS\", \"ReportingCodeName\": \"Assets\", \"HasAttachments\": false, \"UpdatedDateUTC\": \"2016-10-17T13:45:33.993-07:00\" }, \"ToBankAccount\": { \"Code\": \"088\", \"Name\": \"Business Wells Fargo\", \"AccountID\": \"00000000-0000-0000-0000-000000000000\", \"Type\": \"BANK\", \"BankAccountNumber\": \"123455\", \"Status\": \"ACTIVE\", \"BankAccountType\": \"BANK\", \"CurrencyCode\": \"USD\", \"TaxType\": \"NONE\", \"EnablePaymentsToAccount\": false, \"ShowInExpenseClaims\": false, \"Class\": \"ASSET\", \"ReportingCode\": \"ASS\", \"ReportingCodeName\": \"Assets\", \"HasAttachments\": false, \"UpdatedDateUTC\": \"2016-06-03T08:31:14.517-07:00\" }, \"Amount\": \"50.00\", \"FromIsReconciled\": true, \"ToIsReconciled\": true, \"Reference\": \"Sub 098801\" } ] }" + "example" : { + "BankTransfers" : [ { + "FromBankAccount" : { + "Code" : "090", + "Name" : "My Savings", + "AccountID" : "00000000-0000-0000-0000-000000000000", + "Type" : "BANK", + "BankAccountNumber" : "123455", + "Status" : "ACTIVE", + "BankAccountType" : "BANK", + "CurrencyCode" : "USD", + "TaxType" : "NONE", + "EnablePaymentsToAccount" : false, + "ShowInExpenseClaims" : false, + "Class" : "ASSET", + "ReportingCode" : "ASS", + "ReportingCodeName" : "Assets", + "HasAttachments" : false, + "UpdatedDateUTC" : "2016-10-17T13:45:33.993-07:00" + }, + "ToBankAccount" : { + "Code" : "088", + "Name" : "Business Wells Fargo", + "AccountID" : "00000000-0000-0000-0000-000000000000", + "Type" : "BANK", + "BankAccountNumber" : "123455", + "Status" : "ACTIVE", + "BankAccountType" : "BANK", + "CurrencyCode" : "USD", + "TaxType" : "NONE", + "EnablePaymentsToAccount" : false, + "ShowInExpenseClaims" : false, + "Class" : "ASSET", + "ReportingCode" : "ASS", + "ReportingCodeName" : "Assets", + "HasAttachments" : false, + "UpdatedDateUTC" : "2016-06-03T08:31:14.517-07:00" + }, + "Amount" : "50.00", + "FromIsReconciled" : true, + "ToIsReconciled" : true, + "Reference" : "Sub 098801" + } ] + } } }, "required" : true @@ -8623,7 +8691,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -8802,7 +8874,28 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/BatchPayments" }, - "example" : "{ \"BatchPayments\": [ { \"Account\": { \"AccountID\": \"00000000-0000-0000-0000-000000000000\" }, \"Reference\": \"ref\", \"Date\": \"2018-08-01\", \"Payments\": [ { \"Account\": { \"Code\": \"001\" }, \"Date\": \"2019-12-31\", \"Amount\": 500, \"Invoice\": { \"InvoiceID\": \"00000000-0000-0000-0000-000000000000\", \"LineItems\": [], \"Contact\": {}, \"Type\": \"ACCPAY\" } } ] } ] }" + "example" : { + "BatchPayments" : [ { + "Account" : { + "AccountID" : "00000000-0000-0000-0000-000000000000" + }, + "Reference" : "ref", + "Date" : "2018-08-01", + "Payments" : [ { + "Account" : { + "Code" : "001" + }, + "Date" : "2019-12-31", + "Amount" : 500, + "Invoice" : { + "InvoiceID" : "00000000-0000-0000-0000-000000000000", + "LineItems" : [ ], + "Contact" : { }, + "Type" : "ACCPAY" + } + } ] + } ] + } } }, "required" : true @@ -9020,7 +9113,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -9214,7 +9311,15 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/PaymentServices" }, - "example" : "{ \"PaymentServices\": [ { \"PaymentServiceID\": \"54b3b4f6-0443-4fba-bcd1-61ec0c35ca55\", \"PaymentServiceName\": \"PayUpNow\", \"PaymentServiceUrl\": \"https://www.payupnow.com/\", \"PaymentServiceType\": \"Custom\", \"PayNowText\": \"Time To Pay\" } ] }" + "example" : { + "PaymentServices" : [ { + "PaymentServiceID" : "54b3b4f6-0443-4fba-bcd1-61ec0c35ca55", + "PaymentServiceName" : "PayUpNow", + "PaymentServiceUrl" : "https://www.payupnow.com/", + "PaymentServiceType" : "Custom", + "PayNowText" : "Time To Pay" + } ] + } } }, "required" : true @@ -9584,7 +9689,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/ContactGroups" }, - "example" : "{ \"ContactGroups\": [{ \"Name\": \"VIPs\" }]}" + "example" : { + "ContactGroups" : [ { + "Name" : "VIPs" + } ] + } } }, "required" : true @@ -9775,7 +9884,13 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Contacts" }, - "example" : "{ \"Contacts\": [ { \"ContactID\": \"a3675fc4-f8dd-4f03-ba5b-f1870566bcd7\" }, { \"ContactID\": \"4e1753b9-018a-4775-b6aa-1bc7871cfee3\" } ] }" + "example" : { + "Contacts" : [ { + "ContactID" : "a3675fc4-f8dd-4f03-ba5b-f1870566bcd7" + }, { + "ContactID" : "4e1753b9-018a-4775-b6aa-1bc7871cfee3" + } ] + } } }, "required" : true @@ -9966,7 +10081,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -10132,7 +10251,66 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Contacts" }, - "example" : "{ \"Contacts\": [ { \"ContactID\": \"3ff6d40c-af9a-40a3-89ce-3c1556a25591\", \"ContactStatus\": \"ACTIVE\", \"Name\": \"Foo9987\", \"EmailAddress\": \"sid32476@blah.com\", \"BankAccountDetails\": \"\", \"Addresses\": [ { \"AddressType\": \"STREET\", \"City\": \"\", \"Region\": \"\", \"PostalCode\": \"\", \"Country\": \"\" }, { \"AddressType\": \"POBOX\", \"City\": \"\", \"Region\": \"\", \"PostalCode\": \"\", \"Country\": \"\" } ], \"Phones\": [ { \"PhoneType\": \"DEFAULT\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"DDI\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"FAX\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"MOBILE\", \"PhoneNumber\": \"555-1212\", \"PhoneAreaCode\": \"415\", \"PhoneCountryCode\": \"\" } ], \"UpdatedDateUTC\": \"/Date(1551399321043+0000)/\", \"ContactGroups\": [], \"IsSupplier\": false, \"IsCustomer\": false, \"SalesTrackingCategories\": [], \"PurchasesTrackingCategories\": [], \"PaymentTerms\": { \"Bills\": { \"Day\": 15, \"Type\": \"OFCURRENTMONTH\" }, \"Sales\": { \"Day\": 10, \"Type\": \"DAYSAFTERBILLMONTH\" } }, \"ContactPersons\": [] } ] }" + "example" : { + "Contacts" : [ { + "ContactID" : "3ff6d40c-af9a-40a3-89ce-3c1556a25591", + "ContactStatus" : "ACTIVE", + "Name" : "Foo9987", + "EmailAddress" : "sid32476@blah.com", + "BankAccountDetails" : "", + "Addresses" : [ { + "AddressType" : "STREET", + "City" : "", + "Region" : "", + "PostalCode" : "", + "Country" : "" + }, { + "AddressType" : "POBOX", + "City" : "", + "Region" : "", + "PostalCode" : "", + "Country" : "" + } ], + "Phones" : [ { + "PhoneType" : "DEFAULT", + "PhoneNumber" : "", + "PhoneAreaCode" : "", + "PhoneCountryCode" : "" + }, { + "PhoneType" : "DDI", + "PhoneNumber" : "", + "PhoneAreaCode" : "", + "PhoneCountryCode" : "" + }, { + "PhoneType" : "FAX", + "PhoneNumber" : "", + "PhoneAreaCode" : "", + "PhoneCountryCode" : "" + }, { + "PhoneType" : "MOBILE", + "PhoneNumber" : "555-1212", + "PhoneAreaCode" : "415", + "PhoneCountryCode" : "" + } ], + "UpdatedDateUTC" : "/Date(1551399321043+0000)/", + "ContactGroups" : [ ], + "IsSupplier" : false, + "IsCustomer" : false, + "SalesTrackingCategories" : [ ], + "PurchasesTrackingCategories" : [ ], + "PaymentTerms" : { + "Bills" : { + "Day" : 15, + "Type" : "OFCURRENTMONTH" + }, + "Sales" : { + "Day" : 10, + "Type" : "DAYSAFTERBILLMONTH" + } + }, + "ContactPersons" : [ ] + } ] + } } }, "required" : true @@ -10357,7 +10535,16 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Allocations" }, - "example" : "{ \"Allocations\": [ { \"Invoice\": { \"LineItems\": [], \"InvoiceID\": \"c45720a1-ade3-4a38-a064-d15489be6841\" }, \"Amount\": 1, \"Date\": \"2019-03-05\" } ] }" + "example" : { + "Allocations" : [ { + "Invoice" : { + "LineItems" : [ ], + "InvoiceID" : "c45720a1-ade3-4a38-a064-d15489be6841" + }, + "Amount" : 1, + "Date" : "2019-03-05" + } ] + } } }, "required" : true @@ -10817,7 +11004,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -10991,7 +11182,21 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/CreditNotes" }, - "example" : "{ \"CreditNotes\":[ { \"Type\":\"ACCPAYCREDIT\", \"Contact\":{ \"ContactID\":\"430fa14a-f945-44d3-9f97-5df5e28441b8\" }, \"Date\":\"2019-01-05\", \"LineItems\":[ { \"Description\":\"Foobar\", \"Quantity\":2.0, \"UnitAmount\":20.0, \"AccountCode\":\"400\" } ] } ] }" + "example" : { + "CreditNotes" : [ { + "Type" : "ACCPAYCREDIT", + "Contact" : { + "ContactID" : "430fa14a-f945-44d3-9f97-5df5e28441b8" + }, + "Date" : "2019-01-05", + "LineItems" : [ { + "Description" : "Foobar", + "Quantity" : 2.0, + "UnitAmount" : 20.0, + "AccountCode" : "400" + } ] + } ] + } } }, "required" : true @@ -11192,7 +11397,10 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Currency" }, - "example" : "{ \"Code\": \"USD\", \"Description\": \"United States Dollar\" }" + "example" : { + "Code" : "USD", + "Description" : "United States Dollar" + } } }, "required" : true @@ -11350,7 +11558,15 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Employees" }, - "example" : "{ \"Employees\": [ { \"FirstName\": \"Nick\", \"LastName\": \"Fury\", \"ExternalLink\": { \"Url\": \"http://twitter.com/#!/search/Nick+Fury\" } } ] }" + "example" : { + "Employees" : [ { + "FirstName" : "Nick", + "LastName" : "Fury", + "ExternalLink" : { + "Url" : "http://twitter.com/#!/search/Nick+Fury" + } + } ] + } } }, "required" : true @@ -11568,7 +11784,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -11737,7 +11957,18 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/ExpenseClaims" }, - "example" : "{ \"ExpenseClaims\": [ { \"Status\": \"SUBMITTED\", \"User\": { \"UserID\": \"d1164823-0ac1-41ad-987b-b4e30fe0b273\" }, \"Receipts\": [ { \"Lineitems\": [], \"ReceiptID\": \"dc1c7f6d-0a4c-402f-acac-551d62ce5816\" } ] } ] }" + "example" : { + "ExpenseClaims" : [ { + "Status" : "SUBMITTED", + "User" : { + "UserID" : "d1164823-0ac1-41ad-987b-b4e30fe0b273" + }, + "Receipts" : [ { + "Lineitems" : [ ], + "ReceiptID" : "dc1c7f6d-0a4c-402f-acac-551d62ce5816" + } ] + } ] + } } }, "required" : true @@ -12170,7 +12401,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -12356,7 +12591,26 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Invoices" }, - "example" : "{ \"Invoices\": [ { \"Type\": \"ACCREC\", \"Contact\": { \"ContactID\": \"430fa14a-f945-44d3-9f97-5df5e28441b8\" }, \"LineItems\": [ { \"Description\": \"Acme Tires\", \"Quantity\": 2, \"UnitAmount\": 20, \"AccountCode\": \"200\", \"TaxType\": \"NONE\", \"LineAmount\": 40 } ], \"Date\": \"2019-03-11\", \"DueDate\": \"2018-12-10\", \"Reference\": \"Website Design\", \"Status\": \"AUTHORISED\" } ] }" + "example" : { + "Invoices" : [ { + "Type" : "ACCREC", + "Contact" : { + "ContactID" : "430fa14a-f945-44d3-9f97-5df5e28441b8" + }, + "LineItems" : [ { + "Description" : "Acme Tires", + "Quantity" : 2, + "UnitAmount" : 20, + "AccountCode" : "200", + "TaxType" : "NONE", + "LineAmount" : 40 + } ], + "Date" : "2019-03-11", + "DueDate" : "2018-12-10", + "Reference" : "Website Design", + "Status" : "AUTHORISED" + } ] + } } }, "required" : true @@ -12594,7 +12848,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -12759,7 +13017,17 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Items" }, - "example" : "{ \"Items\": [ { \"Code\": \"code123\", \"Name\": \"Item Name XYZ\", \"Description\": \"Foobar\", \"InventoryAssetAccountCode\": \"140\", \"PurchaseDetails\": { \"COGSAccountCode\": \"500\" } } ] }" + "example" : { + "Items" : [ { + "Code" : "code123", + "Name" : "Item Name XYZ", + "Description" : "Foobar", + "InventoryAssetAccountCode" : "140", + "PurchaseDetails" : { + "COGSAccountCode" : "500" + } + } ] + } } }, "required" : true @@ -12960,7 +13228,12 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/LinkedTransaction" }, - "example" : "{ \"LinkedTransactions\": [ { \"SourceTransactionID\": \"a848644a-f20f-4630-98c3-386bd7505631\", \"SourceLineItemID\": \"b0df260d-3cc8-4ced-9bd6-41924f624ed3\" } ] }" + "example" : { + "LinkedTransactions" : [ { + "SourceTransactionID" : "a848644a-f20f-4630-98c3-386bd7505631", + "SourceLineItemID" : "b0df260d-3cc8-4ced-9bd6-41924f624ed3" + } ] + } } }, "required" : true @@ -13365,7 +13638,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -13539,7 +13816,25 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/ManualJournals" }, - "example" : "{ \"ManualJournals\": [ { \"Narration\": \"Journal Desc\", \"JournalLines\": [ { \"LineAmount\": 100, \"AccountCode\": \"400\", \"Description\": \"Money Movement\" }, { \"LineAmount\": -100, \"AccountCode\": \"400\", \"Description\": \"Prepayment of things\", \"Tracking\": [ { \"Name\": \"North\", \"Option\": \"Region\" } ] } ], \"Date\": \"2019-03-14\" } ] }" + "example" : { + "ManualJournals" : [ { + "Narration" : "Journal Desc", + "JournalLines" : [ { + "LineAmount" : 100, + "AccountCode" : "400", + "Description" : "Money Movement" + }, { + "LineAmount" : -100, + "AccountCode" : "400", + "Description" : "Prepayment of things", + "Tracking" : [ { + "Name" : "North", + "Option" : "Region" + } ] + } ], + "Date" : "2019-03-14" + } ] + } } }, "required" : true @@ -13764,7 +14059,18 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Allocations" }, - "example" : "{ \"Allocations\": [ { \"Invoice\": { \"InvoiceID\": \"00000000-0000-0000-0000-000000000000\", \"LineItems\": [], \"Contact\": {}, \"Type\": \"ACCPAY\" }, \"Amount\": 10.00, \"Date\": \"2019-03-12\" } ] }" + "example" : { + "Allocations" : [ { + "Invoice" : { + "InvoiceID" : "00000000-0000-0000-0000-000000000000", + "LineItems" : [ ], + "Contact" : { }, + "Type" : "ACCPAY" + }, + "Amount" : 10.0, + "Date" : "2019-03-12" + } ] + } } }, "required" : true @@ -13982,7 +14288,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -14148,7 +14458,19 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Payment" }, - "example" : "{ \"Payments\": [ { \"Invoice\": { \"LineItems\": [], \"InvoiceID\": \"00000000-0000-0000-0000-000000000000\" }, \"Account\": { \"Code\": \"970\" }, \"Date\": \"2019-03-12\", \"Amount\": 1 } ] }" + "example" : { + "Payments" : [ { + "Invoice" : { + "LineItems" : [ ], + "InvoiceID" : "00000000-0000-0000-0000-000000000000" + }, + "Account" : { + "Code" : "970" + }, + "Date" : "2019-03-12", + "Amount" : 1 + } ] + } } }, "required" : true @@ -14339,7 +14661,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -14497,7 +14823,13 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/PaymentServices" }, - "example" : "{ \"PaymentServices\": [ { \"PaymentServiceName\": \"PayUpNow\", \"PaymentServiceUrl\": \"https://www.payupnow.com/\", \"PayNowText\": \"Time To Pay\" } ] }" + "example" : { + "PaymentServices" : [ { + "PaymentServiceName" : "PayUpNow", + "PaymentServiceUrl" : "https://www.payupnow.com/", + "PayNowText" : "Time To Pay" + } ] + } } }, "required" : true @@ -14664,7 +14996,19 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Payments" }, - "example" : "{ \"Payments\": [ { \"Invoice\": { \"LineItems\": [], \"InvoiceID\": \"00000000-0000-0000-0000-000000000000\" }, \"Account\": { \"Code\": \"970\" }, \"Date\": \"2019-03-12\", \"Amount\": 1 } ] }" + "example" : { + "Payments" : [ { + "Invoice" : { + "LineItems" : [ ], + "InvoiceID" : "00000000-0000-0000-0000-000000000000" + }, + "Account" : { + "Code" : "970" + }, + "Date" : "2019-03-12", + "Amount" : 1 + } ] + } } }, "required" : true @@ -14889,7 +15233,16 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Allocations" }, - "example" : "{ \"Allocations\": [ { \"Invoice\": { \"LineItems\": [], \"InvoiceID\": \"00000000-0000-0000-0000-000000000000\" }, \"Amount\": 1, \"Date\": \"2019-01-10\" } ] }" + "example" : { + "Allocations" : [ { + "Invoice" : { + "LineItems" : [ ], + "InvoiceID" : "00000000-0000-0000-0000-000000000000" + }, + "Amount" : 1, + "Date" : "2019-01-10" + } ] + } } }, "required" : true @@ -15107,7 +15460,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -15512,7 +15869,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -15684,7 +16045,20 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/PurchaseOrders" }, - "example" : "{ \"PurchaseOrders\": [ { \"Contact\": { \"ContactID\": \"00000000-0000-0000-0000-000000000000\" }, \"LineItems\": [ { \"Description\": \"Foobar\", \"Quantity\": 1, \"UnitAmount\": 20, \"AccountCode\": \"710\" } ], \"Date\": \"2019-03-13\" } ] }" + "example" : { + "PurchaseOrders" : [ { + "Contact" : { + "ContactID" : "00000000-0000-0000-0000-000000000000" + }, + "LineItems" : [ { + "Description" : "Foobar", + "Quantity" : 1, + "UnitAmount" : 20, + "AccountCode" : "710" + } ], + "Date" : "2019-03-13" + } ] + } } }, "required" : true @@ -16116,7 +16490,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -16288,7 +16666,20 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Quotes" }, - "example" : "{ \"Quotes\": [ { \"Contact\": { \"ContactID\": \"00000000-0000-0000-0000-000000000000\" }, \"LineItems\": [ { \"Description\": \"Foobar\", \"Quantity\": 1, \"UnitAmount\": 20, \"AccountCode\": \"12775\" } ], \"Date\": \"2020-02-01\" } ] }" + "example" : { + "Quotes" : [ { + "Contact" : { + "ContactID" : "00000000-0000-0000-0000-000000000000" + }, + "LineItems" : [ { + "Description" : "Foobar", + "Quantity" : 1, + "UnitAmount" : 20, + "AccountCode" : "12775" + } ], + "Date" : "2020-02-01" + } ] + } } }, "required" : true @@ -16491,7 +16882,26 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Receipts" }, - "example" : "{ \"Receipts\": [ { \"Contact\": { \"ContactID\": \"00000000-0000-0000-0000-000000000000\" }, \"Lineitems\": [ { \"Description\": \"Foobar\", \"Quantity\": 2, \"UnitAmount\": 20, \"AccountCode\": \"400\", \"TaxType\": \"NONE\", \"LineAmount\": 40 } ], \"User\": { \"UserID\": \"00000000-0000-0000-0000-000000000000\" }, \"LineAmountTypes\": \"NoTax\", \"Status\": \"DRAFT\" } ] }" + "example" : { + "Receipts" : [ { + "Contact" : { + "ContactID" : "00000000-0000-0000-0000-000000000000" + }, + "Lineitems" : [ { + "Description" : "Foobar", + "Quantity" : 2, + "UnitAmount" : 20, + "AccountCode" : "400", + "TaxType" : "NONE", + "LineAmount" : 40 + } ], + "User" : { + "UserID" : "00000000-0000-0000-0000-000000000000" + }, + "LineAmountTypes" : "NoTax", + "Status" : "DRAFT" + } ] + } } }, "required" : true @@ -16923,7 +17333,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -17328,7 +17742,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/HistoryRecords" }, - "example" : "{ \"HistoryRecords\": [ { \"Details\": \"Hello World\" } ] }" + "example" : { + "HistoryRecords" : [ { + "Details" : "Hello World" + } ] + } } }, "required" : true @@ -17479,7 +17897,42 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/RepeatingInvoices" }, - "example" : "{ \"RepeatingInvoices\": [ { \"Schedule\": { \"Period\": 1, \"Unit\": \"MONTHLY\", \"DueDate\": 10, \"DueDateType\": \"OFFOLLOWINGMONTH\", \"StartDate\": \"\\/Date(1555286400000+0000)\\/\" }, \"Type\": \"ACCREC\", \"Reference\": \"[Week]\", \"ApprovedForSending\": false, \"SendCopy\": false, \"MarkAsSent\": false, \"IncludePDF\": false, \"Contact\": { \"ContactID\": \"430fa14a-f945-44d3-9f97-5df5e28441b8\", \"Name\": \"Liam Gallagher\" }, \"Status\": \"AUTHORISED\", \"LineAmountTypes\": \"Exclusive\", \"LineItems\": [ { \"Description\": \"Guitars Fender Strat\", \"UnitAmount\": 5000.00, \"TaxType\": \"OUTPUT2\", \"TaxAmount\": 750.00, \"LineAmount\": 5000.00, \"AccountCode\": \"200\", \"Tracking\": [], \"Quantity\": 1.0000, \"LineItemID\": \"13a8353c-d2af-4d5b-920c-438449f08900\", \"DiscountEnteredAsPercent\": true } ], \"CurrencyCode\": \"NZD\" } ] }" + "example" : { + "RepeatingInvoices" : [ { + "Schedule" : { + "Period" : 1, + "Unit" : "MONTHLY", + "DueDate" : 10, + "DueDateType" : "OFFOLLOWINGMONTH", + "StartDate" : "/Date(1555286400000+0000)/" + }, + "Type" : "ACCREC", + "Reference" : "[Week]", + "ApprovedForSending" : false, + "SendCopy" : false, + "MarkAsSent" : false, + "IncludePDF" : false, + "Contact" : { + "ContactID" : "430fa14a-f945-44d3-9f97-5df5e28441b8", + "Name" : "Liam Gallagher" + }, + "Status" : "AUTHORISED", + "LineAmountTypes" : "Exclusive", + "LineItems" : [ { + "Description" : "Guitars Fender Strat", + "UnitAmount" : 5000.0, + "TaxType" : "OUTPUT2", + "TaxAmount" : 750.0, + "LineAmount" : 5000.0, + "AccountCode" : "200", + "Tracking" : [ ], + "Quantity" : 1.0, + "LineItemID" : "13a8353c-d2af-4d5b-920c-438449f08900", + "DiscountEnteredAsPercent" : true + } ], + "CurrencyCode" : "NZD" + } ] + } } }, "required" : true @@ -17670,7 +18123,15 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/TaxRates" }, - "example" : "{ \"TaxRates\": [ { \"Name\": \"CA State Tax\", \"TaxComponents\": [ { \"Name\": \"State Tax\", \"Rate\": 2.25 } ] } ] }" + "example" : { + "TaxRates" : [ { + "Name" : "CA State Tax", + "TaxComponents" : [ { + "Name" : "State Tax", + "Rate" : 2.25 + } ] + } ] + } } }, "required" : true @@ -17823,7 +18284,9 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/TrackingCategory" }, - "example" : "{ name: \"FooBar\" }" + "example" : { + "name" : "FooBar" + } } }, "required" : true @@ -18011,7 +18474,9 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/TrackingOption" }, - "example" : "{ name: \" Bar\" }" + "example" : { + "name" : " Bar" + } } }, "required" : true @@ -18291,7 +18756,10 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/BatchPaymentDelete" }, - "example" : "{ \"BatchPaymentID\": \"9bf296e9-0748-4d29-a3dc-24dde1098030\", \"Status\":\"DELETED\" }" + "example" : { + "BatchPaymentID" : "9bf296e9-0748-4d29-a3dc-24dde1098030", + "Status" : "DELETED" + } } }, "required" : true @@ -18475,7 +18943,9 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/BatchPaymentDeleteByUrlParam" }, - "example" : "{ \"Status\":\"DELETED\" }" + "example" : { + "Status" : "DELETED" + } } }, "required" : true @@ -19504,7 +19974,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/PaymentDelete" }, - "example" : "{ \"Payments\":[ { \"Status\":\"DELETED\" } ] }" + "example" : { + "Payments" : [ { + "Status" : "DELETED" + } ] + } } }, "required" : true @@ -20126,7 +20600,7 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/RequestEmpty" }, - "example" : "{}" + "example" : { } } }, "required" : true @@ -40660,7 +41134,33 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Setup" }, - "example" : "{ \"ConversionDate\": {}, \"ConversionBalances\": [], \"Accounts\": [ { \"Code\": \"200\", \"Name\": \"Sales\", \"Type\": \"SALES\", \"ReportingCode\": \"REV.TRA.GOO\" }, { \"Code\": \"400\", \"Name\": \"Advertising\", \"Type\": \"OVERHEADS\", \"ReportingCode\": \"EXP\" }, { \"Code\": \"610\", \"Name\": \"Accounts Receivable\", \"Type\": \"CURRENT\", \"SystemAccount\": \"DEBTORS\", \"ReportingCode\": \"ASS.CUR.REC.TRA\" }, { \"Code\": \"800\", \"Name\": \"Accounts Payable\", \"Type\": \"CURRLIAB\", \"SystemAccount\": \"CREDITORS\", \"ReportingCode\": \"LIA.CUR.PAY\" } ] }" + "example" : { + "ConversionDate" : { }, + "ConversionBalances" : [ ], + "Accounts" : [ { + "Code" : "200", + "Name" : "Sales", + "Type" : "SALES", + "ReportingCode" : "REV.TRA.GOO" + }, { + "Code" : "400", + "Name" : "Advertising", + "Type" : "OVERHEADS", + "ReportingCode" : "EXP" + }, { + "Code" : "610", + "Name" : "Accounts Receivable", + "Type" : "CURRENT", + "SystemAccount" : "DEBTORS", + "ReportingCode" : "ASS.CUR.REC.TRA" + }, { + "Code" : "800", + "Name" : "Accounts Payable", + "Type" : "CURRLIAB", + "SystemAccount" : "CREDITORS", + "ReportingCode" : "LIA.CUR.PAY" + } ] + } } }, "required" : true @@ -40855,7 +41355,22 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Accounts" }, - "example" : "{ \"Accounts\":[ { \"Code\":\"123456\", \"Name\":\"BarFoo\", \"AccountID\":\"99ce6032-0678-4aa0-8148-240c75fee33a\", \"Type\":\"EXPENSE\", \"Description\":\"GoodBye World\", \"TaxType\":\"INPUT\", \"EnablePaymentsToAccount\":false, \"ShowInExpenseClaims\":false, \"Class\":\"EXPENSE\", \"ReportingCode\":\"EXP\", \"ReportingCodeName\":\"Expense\", \"UpdatedDateUTC\":\"2019-02-21T16:29:47.96-08:00\" } ] }" + "example" : { + "Accounts" : [ { + "Code" : "123456", + "Name" : "BarFoo", + "AccountID" : "99ce6032-0678-4aa0-8148-240c75fee33a", + "Type" : "EXPENSE", + "Description" : "GoodBye World", + "TaxType" : "INPUT", + "EnablePaymentsToAccount" : false, + "ShowInExpenseClaims" : false, + "Class" : "EXPENSE", + "ReportingCode" : "EXP", + "ReportingCodeName" : "Expense", + "UpdatedDateUTC" : "2019-02-21T16:29:47.96-08:00" + } ] + } } }, "required" : true @@ -41279,7 +41794,77 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/BankTransactions" }, - "example" : "{ \"BankTransactions\": [ { \"Type\": \"SPEND\", \"Contact\": { \"ContactID\": \"00000000-0000-0000-0000-000000000000\", \"ContactStatus\": \"ACTIVE\", \"Name\": \"Buzz Lightyear\", \"FirstName\": \"Buzz\", \"LastName\": \"Lightyear\", \"EmailAddress\": \"buzz.Lightyear@email.com\", \"ContactPersons\": [], \"BankAccountDetails\": \"\", \"Addresses\": [ { \"AddressType\": \"STREET\", \"City\": \"\", \"Region\": \"\", \"PostalCode\": \"\", \"Country\": \"\" }, { \"AddressType\": \"POBOX\", \"AddressLine1\": \"\", \"AddressLine2\": \"\", \"AddressLine3\": \"\", \"AddressLine4\": \"\", \"City\": \"Palo Alto\", \"Region\": \"CA\", \"PostalCode\": \"94020\", \"Country\": \"United States\" } ], \"Phones\": [ { \"PhoneType\": \"DEFAULT\", \"PhoneNumber\": \"847-1294\", \"PhoneAreaCode\": \"(626)\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"DDI\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"FAX\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"MOBILE\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" } ], \"UpdatedDateUTC\": \"2017-08-21T13:49:04.227-07:00\", \"ContactGroups\": [] }, \"Lineitems\": [], \"BankAccount\": { \"Code\": \"088\", \"Name\": \"Business Wells Fargo\", \"AccountID\": \"00000000-0000-0000-0000-000000000000\" }, \"IsReconciled\": false, \"Date\": \"2019-02-25\", \"Reference\": \"You just updated\", \"CurrencyCode\": \"USD\", \"CurrencyRate\": 1, \"Status\": \"AUTHORISED\", \"LineAmountTypes\": \"Inclusive\", \"TotalTax\": 1.74, \"BankTransactionID\": \"00000000-0000-0000-0000-000000000000\", \"UpdatedDateUTC\": \"2019-02-26T12:39:27.813-08:00\" } ] }" + "example" : { + "BankTransactions" : [ { + "Type" : "SPEND", + "Contact" : { + "ContactID" : "00000000-0000-0000-0000-000000000000", + "ContactStatus" : "ACTIVE", + "Name" : "Buzz Lightyear", + "FirstName" : "Buzz", + "LastName" : "Lightyear", + "EmailAddress" : "buzz.Lightyear@email.com", + "ContactPersons" : [ ], + "BankAccountDetails" : "", + "Addresses" : [ { + "AddressType" : "STREET", + "City" : "", + "Region" : "", + "PostalCode" : "", + "Country" : "" + }, { + "AddressType" : "POBOX", + "AddressLine1" : "", + "AddressLine2" : "", + "AddressLine3" : "", + "AddressLine4" : "", + "City" : "Palo Alto", + "Region" : "CA", + "PostalCode" : "94020", + "Country" : "United States" + } ], + "Phones" : [ { + "PhoneType" : "DEFAULT", + "PhoneNumber" : "847-1294", + "PhoneAreaCode" : "(626)", + "PhoneCountryCode" : "" + }, { + "PhoneType" : "DDI", + "PhoneNumber" : "", + "PhoneAreaCode" : "", + "PhoneCountryCode" : "" + }, { + "PhoneType" : "FAX", + "PhoneNumber" : "", + "PhoneAreaCode" : "", + "PhoneCountryCode" : "" + }, { + "PhoneType" : "MOBILE", + "PhoneNumber" : "", + "PhoneAreaCode" : "", + "PhoneCountryCode" : "" + } ], + "UpdatedDateUTC" : "2017-08-21T13:49:04.227-07:00", + "ContactGroups" : [ ] + }, + "Lineitems" : [ ], + "BankAccount" : { + "Code" : "088", + "Name" : "Business Wells Fargo", + "AccountID" : "00000000-0000-0000-0000-000000000000" + }, + "IsReconciled" : false, + "Date" : "2019-02-25", + "Reference" : "You just updated", + "CurrencyCode" : "USD", + "CurrencyRate" : 1, + "Status" : "AUTHORISED", + "LineAmountTypes" : "Inclusive", + "TotalTax" : 1.74, + "BankTransactionID" : "00000000-0000-0000-0000-000000000000", + "UpdatedDateUTC" : "2019-02-26T12:39:27.813-08:00" + } ] + } } }, "required" : true @@ -41926,7 +42511,12 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Contacts" }, - "example" : "{ \"Contacts\": [{ \"ContactID\": \"00000000-0000-0000-0000-000000000000\", \"Name\": \"Thanos\" }]}" + "example" : { + "Contacts" : [ { + "ContactID" : "00000000-0000-0000-0000-000000000000", + "Name" : "Thanos" + } ] + } } }, "required" : true @@ -42331,7 +42921,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/ContactGroups" }, - "example" : "{ \"ContactGroups\":[ { \"Name\":\"Suppliers\" } ] }" + "example" : { + "ContactGroups" : [ { + "Name" : "Suppliers" + } ] + } } }, "required" : true @@ -42541,7 +43135,24 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/CreditNotes" }, - "example" : "{ \"CreditNotes\": [ { \"Type\": \"ACCPAYCREDIT\", \"Contact\": { \"ContactID\": \"430fa14a-f945-44d3-9f97-5df5e28441b8\" }, \"Date\": \"2019-01-05\", \"Status\": \"AUTHORISED\", \"Reference\": \"HelloWorld\", \"SentToContact\": true, \"LineItems\": [ { \"Description\": \"Foobar\", \"Quantity\": 2, \"UnitAmount\": 20, \"AccountCode\": \"400\" } ] } ] }" + "example" : { + "CreditNotes" : [ { + "Type" : "ACCPAYCREDIT", + "Contact" : { + "ContactID" : "430fa14a-f945-44d3-9f97-5df5e28441b8" + }, + "Date" : "2019-01-05", + "Status" : "AUTHORISED", + "Reference" : "HelloWorld", + "SentToContact" : true, + "LineItems" : [ { + "Description" : "Foobar", + "Quantity" : 2, + "UnitAmount" : 20, + "AccountCode" : "400" + } ] + } ] + } } }, "required" : true @@ -42985,7 +43596,18 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/ExpenseClaims" }, - "example" : "{ \"ExpenseClaims\": [ { \"Status\": \"SUBMITTED\", \"User\": { \"UserID\": \"d1164823-0ac1-41ad-987b-b4e30fe0b273\" }, \"Receipts\": [ { \"Lineitems\": [], \"ReceiptID\": \"dc1c7f6d-0a4c-402f-acac-551d62ce5816\" } ] } ] }" + "example" : { + "ExpenseClaims" : [ { + "Status" : "SUBMITTED", + "User" : { + "UserID" : "d1164823-0ac1-41ad-987b-b4e30fe0b273" + }, + "Receipts" : [ { + "Lineitems" : [ ], + "ReceiptID" : "dc1c7f6d-0a4c-402f-acac-551d62ce5816" + } ] + } ] + } } }, "required" : true @@ -43176,7 +43798,15 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Invoices" }, - "example" : "{ \"Invoices\": [{ Reference: \"May the force be with you\", \"InvoiceID\": \"00000000-0000-0000-0000-000000000000\", \"LineItems\": [], \"Contact\": {}, \"Type\": \"ACCPAY\" }]}" + "example" : { + "Invoices" : [ { + "Reference" : "May the force be with you", + "InvoiceID" : "00000000-0000-0000-0000-000000000000", + "LineItems" : [ ], + "Contact" : { }, + "Type" : "ACCPAY" + } ] + } } }, "required" : true @@ -43609,7 +44239,12 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Items" }, - "example" : "{ \"Items\": [ { \"Code\": \"ItemCode123\", \"Description\": \"Description 123\" } ] }" + "example" : { + "Items" : [ { + "Code" : "ItemCode123", + "Description" : "Description 123" + } ] + } } }, "required" : true @@ -43827,7 +44462,12 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/LinkedTransactions" }, - "example" : "{ \"LinkedTransactions\": [ { \"SourceTransactionID\": \"00000000-0000-0000-0000-000000000000\", \"SourceLineItemID\": \"00000000-0000-0000-0000-000000000000\" } ] }" + "example" : { + "LinkedTransactions" : [ { + "SourceTransactionID" : "00000000-0000-0000-0000-000000000000", + "SourceLineItemID" : "00000000-0000-0000-0000-000000000000" + } ] + } } }, "required" : true @@ -44034,7 +44674,13 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/ManualJournals" }, - "example" : "{ \"ManualJournals\": [ { \"Narration\": \"Hello Xero\", \"ManualJournalID\": \"00000000-0000-0000-0000-000000000000\", \"JournalLines\": [] } ] }" + "example" : { + "ManualJournals" : [ { + "Narration" : "Hello Xero", + "ManualJournalID" : "00000000-0000-0000-0000-000000000000", + "JournalLines" : [ ] + } ] + } } }, "required" : true @@ -44423,7 +45069,23 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/BankTransactions" }, - "example" : "{ \"BankTransactions\": [ { \"Type\": \"SPEND\", \"Contact\": { \"ContactID\": \"00000000-0000-0000-0000-000000000000\" }, \"Lineitems\": [ { \"Description\": \"Foobar\", \"Quantity\": 1, \"UnitAmount\": 20, \"AccountCode\": \"400\" } ], \"BankAccount\": { \"Code\": \"088\" } } ] }" + "example" : { + "BankTransactions" : [ { + "Type" : "SPEND", + "Contact" : { + "ContactID" : "00000000-0000-0000-0000-000000000000" + }, + "Lineitems" : [ { + "Description" : "Foobar", + "Quantity" : 1, + "UnitAmount" : 20, + "AccountCode" : "400" + } ], + "BankAccount" : { + "Code" : "088" + } + } ] + } } }, "required" : true @@ -44635,7 +45297,27 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Contacts" }, - "example" : "{ \"Contacts\": [ { \"Name\": \"Bruce Banner\", \"EmailAddress\": \"hulk@avengers.com\", \"Phones\": [ { \"PhoneType\": \"MOBILE\", \"PhoneNumber\": \"555-1212\", \"PhoneAreaCode\": \"415\" } ], \"PaymentTerms\": { \"Bills\": { \"Day\": 15, \"Type\": \"OFCURRENTMONTH\" }, \"Sales\": { \"Day\": 10, \"Type\": \"DAYSAFTERBILLMONTH\" } } } ] }" + "example" : { + "Contacts" : [ { + "Name" : "Bruce Banner", + "EmailAddress" : "hulk@avengers.com", + "Phones" : [ { + "PhoneType" : "MOBILE", + "PhoneNumber" : "555-1212", + "PhoneAreaCode" : "415" + } ], + "PaymentTerms" : { + "Bills" : { + "Day" : 15, + "Type" : "OFCURRENTMONTH" + }, + "Sales" : { + "Day" : 10, + "Type" : "DAYSAFTERBILLMONTH" + } + } + } ] + } } }, "required" : true @@ -44836,7 +45518,23 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/CreditNotes" }, - "example" : "{ \"CreditNotes\":[ { \"Type\":\"ACCPAYCREDIT\", \"Contact\":{ \"ContactID\":\"430fa14a-f945-44d3-9f97-5df5e28441b8\" }, \"Date\":\"2019-01-05\", \"Status\":\"AUTHORISED\", \"Reference\": \"HelloWorld\", \"LineItems\":[ { \"Description\":\"Foobar\", \"Quantity\":2.0, \"UnitAmount\":20.0, \"AccountCode\":\"400\" } ] } ] }" + "example" : { + "CreditNotes" : [ { + "Type" : "ACCPAYCREDIT", + "Contact" : { + "ContactID" : "430fa14a-f945-44d3-9f97-5df5e28441b8" + }, + "Date" : "2019-01-05", + "Status" : "AUTHORISED", + "Reference" : "HelloWorld", + "LineItems" : [ { + "Description" : "Foobar", + "Quantity" : 2.0, + "UnitAmount" : 20.0, + "AccountCode" : "400" + } ] + } ] + } } }, "required" : true @@ -45041,7 +45739,15 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Employees" }, - "example" : "{ \"Employees\": [ { \"FirstName\": \"Nick\", \"LastName\": \"Fury\", \"ExternalLink\": { \"Url\": \"http://twitter.com/#!/search/Nick+Fury\" } } ] }" + "example" : { + "Employees" : [ { + "FirstName" : "Nick", + "LastName" : "Fury", + "ExternalLink" : { + "Url" : "http://twitter.com/#!/search/Nick+Fury" + } + } ] + } } }, "required" : true @@ -45245,7 +45951,26 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Invoices" }, - "example" : "{ \"Invoices\": [ { \"Type\": \"ACCREC\", \"Contact\": { \"ContactID\": \"430fa14a-f945-44d3-9f97-5df5e28441b8\" }, \"LineItems\": [ { \"Description\": \"Acme Tires\", \"Quantity\": 2, \"UnitAmount\": 20, \"AccountCode\": \"200\", \"TaxType\": \"NONE\", \"LineAmount\": 40 } ], \"Date\": \"2019-03-11\", \"DueDate\": \"2018-12-10\", \"Reference\": \"Website Design\", \"Status\": \"AUTHORISED\" } ] }" + "example" : { + "Invoices" : [ { + "Type" : "ACCREC", + "Contact" : { + "ContactID" : "430fa14a-f945-44d3-9f97-5df5e28441b8" + }, + "LineItems" : [ { + "Description" : "Acme Tires", + "Quantity" : 2, + "UnitAmount" : 20, + "AccountCode" : "200", + "TaxType" : "NONE", + "LineAmount" : 40 + } ], + "Date" : "2019-03-11", + "DueDate" : "2018-12-10", + "Reference" : "Website Design", + "Status" : "AUTHORISED" + } ] + } } }, "required" : true @@ -45451,7 +46176,13 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Items" }, - "example" : "{ \"Items\": [ { \"Code\": \"ItemCode123\", \"Name\": \"ItemName XYZ\", \"Description\": \"Item Description ABC\" } ] }" + "example" : { + "Items" : [ { + "Code" : "ItemCode123", + "Name" : "ItemName XYZ", + "Description" : "Item Description ABC" + } ] + } } }, "required" : true @@ -45672,7 +46403,25 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/ManualJournals" }, - "example" : "{ \"ManualJournals\": [ { \"Narration\": \"Journal Desc\", \"JournalLines\": [ { \"LineAmount\": 100, \"AccountCode\": \"400\", \"Description\": \"Money Movement\" }, { \"LineAmount\": -100, \"AccountCode\": \"400\", \"Description\": \"Prepayment of things\", \"Tracking\": [ { \"Name\": \"North\", \"Option\": \"Region\" } ] } ], \"Date\": \"2019-03-14\" } ] }" + "example" : { + "ManualJournals" : [ { + "Narration" : "Journal Desc", + "JournalLines" : [ { + "LineAmount" : 100, + "AccountCode" : "400", + "Description" : "Money Movement" + }, { + "LineAmount" : -100, + "AccountCode" : "400", + "Description" : "Prepayment of things", + "Tracking" : [ { + "Name" : "North", + "Option" : "Region" + } ] + } ], + "Date" : "2019-03-14" + } ] + } } }, "required" : true @@ -45870,7 +46619,20 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/PurchaseOrders" }, - "example" : "{ \"PurchaseOrders\": [ { \"Contact\": { \"ContactID\": \"00000000-0000-0000-0000-000000000000\" }, \"LineItems\": [ { \"Description\": \"Foobar\", \"Quantity\": 1, \"UnitAmount\": 20, \"AccountCode\": \"710\" } ], \"Date\": \"2019-03-13\" } ] }" + "example" : { + "PurchaseOrders" : [ { + "Contact" : { + "ContactID" : "00000000-0000-0000-0000-000000000000" + }, + "LineItems" : [ { + "Description" : "Foobar", + "Quantity" : 1, + "UnitAmount" : 20, + "AccountCode" : "710" + } ], + "Date" : "2019-03-13" + } ] + } } }, "required" : true @@ -46068,7 +46830,20 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Quotes" }, - "example" : "{ \"Quotes\": [ { \"Contact\": { \"ContactID\": \"00000000-0000-0000-0000-000000000000\" }, \"LineItems\": [ { \"Description\": \"Foobar\", \"Quantity\": 1, \"UnitAmount\": 20, \"AccountCode\": \"12775\" } ], \"Date\": \"2020-02-01\" } ] }" + "example" : { + "Quotes" : [ { + "Contact" : { + "ContactID" : "00000000-0000-0000-0000-000000000000" + }, + "LineItems" : [ { + "Description" : "Foobar", + "Quantity" : 1, + "UnitAmount" : 20, + "AccountCode" : "12775" + } ], + "Date" : "2020-02-01" + } ] + } } }, "required" : true @@ -46246,7 +47021,42 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/RepeatingInvoices" }, - "example" : "{ \"RepeatingInvoices\": [ { \"Schedule\": { \"Period\": 1, \"Unit\": \"MONTHLY\", \"DueDate\": 10, \"DueDateType\": \"OFFOLLOWINGMONTH\", \"StartDate\": \"\\/Date(1555286400000+0000)\\/\" }, \"Type\": \"ACCREC\", \"Reference\": \"[Week]\", \"ApprovedForSending\": false, \"SendCopy\": false, \"MarkAsSent\": false, \"IncludePDF\": false, \"Contact\": { \"ContactID\": \"430fa14a-f945-44d3-9f97-5df5e28441b8\", \"Name\": \"Liam Gallagher\" }, \"Status\": \"AUTHORISED\", \"LineAmountTypes\": \"Exclusive\", \"LineItems\": [ { \"Description\": \"Guitars Fender Strat\", \"UnitAmount\": 5000.00, \"TaxType\": \"OUTPUT2\", \"TaxAmount\": 750.00, \"LineAmount\": 5000.00, \"AccountCode\": \"200\", \"Tracking\": [], \"Quantity\": 1.0000, \"LineItemID\": \"13a8353c-d2af-4d5b-920c-438449f08900\", \"DiscountEnteredAsPercent\": true } ], \"CurrencyCode\": \"NZD\" } ] }" + "example" : { + "RepeatingInvoices" : [ { + "Schedule" : { + "Period" : 1, + "Unit" : "MONTHLY", + "DueDate" : 10, + "DueDateType" : "OFFOLLOWINGMONTH", + "StartDate" : "/Date(1555286400000+0000)/" + }, + "Type" : "ACCREC", + "Reference" : "[Week]", + "ApprovedForSending" : false, + "SendCopy" : false, + "MarkAsSent" : false, + "IncludePDF" : false, + "Contact" : { + "ContactID" : "430fa14a-f945-44d3-9f97-5df5e28441b8", + "Name" : "Liam Gallagher" + }, + "Status" : "AUTHORISED", + "LineAmountTypes" : "Exclusive", + "LineItems" : [ { + "Description" : "Guitars Fender Strat", + "UnitAmount" : 5000.0, + "TaxType" : "OUTPUT2", + "TaxAmount" : 750.0, + "LineAmount" : 5000.0, + "AccountCode" : "200", + "Tracking" : [ ], + "Quantity" : 1.0, + "LineItemID" : "13a8353c-d2af-4d5b-920c-438449f08900", + "DiscountEnteredAsPercent" : true + } ], + "CurrencyCode" : "NZD" + } ] + } } }, "required" : true @@ -46463,7 +47273,13 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/PurchaseOrders" }, - "example" : "{ \"PurchaseOrders\": [ { \"AttentionTo\": \"Peter Parker\", \"LineItems\": [], \"Contact\": {} } ] }" + "example" : { + "PurchaseOrders" : [ { + "AttentionTo" : "Peter Parker", + "LineItems" : [ ], + "Contact" : { } + } ] + } } }, "required" : true @@ -46873,7 +47689,15 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Quotes" }, - "example" : "{ \"Quotes\": [ { \"Reference\": \"I am an update\", \"Contact\": { \"ContactID\": \"00000000-0000-0000-0000-000000000000\" }, \"Date\": \"2020-02-01\" } ] }" + "example" : { + "Quotes" : [ { + "Reference" : "I am an update", + "Contact" : { + "ContactID" : "00000000-0000-0000-0000-000000000000" + }, + "Date" : "2020-02-01" + } ] + } } }, "required" : true @@ -47284,7 +48108,15 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Receipts" }, - "example" : "{ \"Receipts\": [ { \"Lineitems\": [], \"User\": { \"UserID\": \"00000000-0000-0000-0000-000000000000\" }, \"Reference\": \"Foobar\" } ] }" + "example" : { + "Receipts" : [ { + "Lineitems" : [ ], + "User" : { + "UserID" : "00000000-0000-0000-0000-000000000000" + }, + "Reference" : "Foobar" + } ] + } } }, "required" : true @@ -47709,7 +48541,53 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/RepeatingInvoices" }, - "example" : "{ \"Schedule\": { \"Period\": 1, \"Unit\": \"MONTHLY\", \"DueDate\": 10, \"DueDateType\": \"OFFOLLOWINGMONTH\", \"StartDate\": \"\\/Date(1555286400000+0000)\\/\", \"EndDate\": \"\\/Date(1569801600000+0000)\\/\", \"NextScheduledDate\": \"\\/Date(1555286400000+0000)\\/\" }, \"RepeatingInvoiceID\": \"428c0d75-909f-4b04-8403-a48dc27283b0\", \"Type\": \"ACCREC\", \"Reference\": \"[Week]\", \"HasAttachments\": true, \"ApprovedForSending\": false, \"SendCopy\": false, \"MarkAsSent\": false, \"IncludePDF\": false, \"ID\": \"428c0d75-909f-4b04-8403-a48dc27283b0\", \"Contact\": { \"ContactID\": \"430fa14a-f945-44d3-9f97-5df5e28441b8\", \"Name\": \"Liam Gallagher\", \"Addresses\": [], \"Phones\": [], \"ContactGroups\": [], \"ContactPersons\": [], \"HasValidationErrors\": false }, \"Status\": \"DELETED\", \"LineAmountTypes\": \"Exclusive\", \"LineItems\": [ { \"Description\": \"Guitars Fender Strat\", \"UnitAmount\": 5000.00, \"TaxType\": \"OUTPUT2\", \"TaxAmount\": 750.00, \"LineAmount\": 5000.00, \"AccountCode\": \"200\", \"Tracking\": [], \"Quantity\": 1.0000, \"LineItemID\": \"13a8353c-d2af-4d5b-920c-438449f08900\", \"DiscountEnteredAsPercent\": true } ], \"SubTotal\": 5000.00, \"TotalTax\": 750.00, \"Total\": 5750.00, \"CurrencyCode\": \"NZD\" }" + "example" : { + "Schedule" : { + "Period" : 1, + "Unit" : "MONTHLY", + "DueDate" : 10, + "DueDateType" : "OFFOLLOWINGMONTH", + "StartDate" : "/Date(1555286400000+0000)/", + "EndDate" : "/Date(1569801600000+0000)/", + "NextScheduledDate" : "/Date(1555286400000+0000)/" + }, + "RepeatingInvoiceID" : "428c0d75-909f-4b04-8403-a48dc27283b0", + "Type" : "ACCREC", + "Reference" : "[Week]", + "HasAttachments" : true, + "ApprovedForSending" : false, + "SendCopy" : false, + "MarkAsSent" : false, + "IncludePDF" : false, + "ID" : "428c0d75-909f-4b04-8403-a48dc27283b0", + "Contact" : { + "ContactID" : "430fa14a-f945-44d3-9f97-5df5e28441b8", + "Name" : "Liam Gallagher", + "Addresses" : [ ], + "Phones" : [ ], + "ContactGroups" : [ ], + "ContactPersons" : [ ], + "HasValidationErrors" : false + }, + "Status" : "DELETED", + "LineAmountTypes" : "Exclusive", + "LineItems" : [ { + "Description" : "Guitars Fender Strat", + "UnitAmount" : 5000.0, + "TaxType" : "OUTPUT2", + "TaxAmount" : 750.0, + "LineAmount" : 5000.0, + "AccountCode" : "200", + "Tracking" : [ ], + "Quantity" : 1.0, + "LineItemID" : "13a8353c-d2af-4d5b-920c-438449f08900", + "DiscountEnteredAsPercent" : true + } ], + "SubTotal" : 5000.0, + "TotalTax" : 750.0, + "Total" : 5750.0, + "CurrencyCode" : "NZD" + } } }, "required" : true @@ -48086,7 +48964,17 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/TaxRates" }, - "example" : "{ \"TaxRates\": [ { \"Name\": \"State Tax NY\", \"TaxComponents\": [ { \"Name\": \"State Tax\", \"Rate\": 2.25 } ], \"Status\": \"DELETED\", \"ReportTaxType\": \"INPUT\" } ] }" + "example" : { + "TaxRates" : [ { + "Name" : "State Tax NY", + "TaxComponents" : [ { + "Name" : "State Tax", + "Rate" : 2.25 + } ], + "Status" : "DELETED", + "ReportTaxType" : "INPUT" + } ] + } } }, "required" : true @@ -48273,7 +49161,9 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/TrackingCategory" }, - "example" : "{ \"Name\": \"Avengers\" }" + "example" : { + "Name" : "Avengers" + } } }, "required" : true @@ -48488,7 +49378,9 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/TrackingOption" }, - "example" : "{ name: \"Vision\" }" + "example" : { + "name" : "Vision" + } } }, "required" : true diff --git a/docs/v4/appstore/index.html b/docs/v4/appstore/index.html index 3f39be5d..6408b41d 100644 --- a/docs/v4/appstore/index.html +++ b/docs/v4/appstore/index.html @@ -1640,7 +1640,10 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/CreateUsageRecord" }, - "example" : "{ \"timestamp\": \"2022-01-21T13:01:00\", \"quantity\": 10 }" + "example" : { + "timestamp" : "2022-01-21T13:01:00", + "quantity" : 10 + } } }, "required" : true @@ -1857,7 +1860,9 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/UpdateUsageRecord" }, - "example" : "{ \"quantity\": 10 }" + "example" : { + "quantity" : 10 + } } }, "required" : true diff --git a/docs/v4/assets/index.html b/docs/v4/assets/index.html index d22ba9b3..6204e671 100644 --- a/docs/v4/assets/index.html +++ b/docs/v4/assets/index.html @@ -1028,7 +1028,6 @@ }; defs["BookDepreciationDetail"] = { "title" : "", - "required" : [ "name" ], "properties" : { "currentCapitalGain" : { "type" : "number", @@ -1082,7 +1081,6 @@ }; defs["BookDepreciationSetting"] = { "title" : "", - "required" : [ "name" ], "properties" : { "depreciationMethod" : { "type" : "string", @@ -1571,7 +1569,28 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Asset" }, - "example" : "{ \"assetName\":\"Computer74863\", \"assetNumber\":\"123477544\", \"purchaseDate\":\"2020-01-01\", \"purchasePrice\":100.0, \"disposalPrice\":23.23, \"assetStatus\":\"Draft\", \"bookDepreciationSetting\":{ \"depreciationMethod\":\"StraightLine\", \"averagingMethod\":\"ActualDays\", \"depreciationRate\":0.5, \"depreciationCalculationMethod\":\"None\" }, \"bookDepreciationDetail\":{ \"currentCapitalGain\":5.32, \"currentGainLoss\":3.88, \"depreciationStartDate\":\"2020-01-02\", \"costLimit\":100.0, \"currentAccumDepreciationAmount\":2.25 }, \"AccountingBookValue\":99.5 }" + "example" : { + "assetName" : "Computer74863", + "assetNumber" : "123477544", + "purchaseDate" : "2020-01-01", + "purchasePrice" : 100.0, + "disposalPrice" : 23.23, + "assetStatus" : "Draft", + "bookDepreciationSetting" : { + "depreciationMethod" : "StraightLine", + "averagingMethod" : "ActualDays", + "depreciationRate" : 0.5, + "depreciationCalculationMethod" : "None" + }, + "bookDepreciationDetail" : { + "currentCapitalGain" : 5.32, + "currentGainLoss" : 3.88, + "depreciationStartDate" : "2020-01-02", + "costLimit" : 100.0, + "currentAccumDepreciationAmount" : 2.25 + }, + "AccountingBookValue" : 99.5 + } } }, "required" : true @@ -1734,7 +1753,18 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/AssetType" }, - "example" : "{ \"assetTypeName\":\"Machinery11004\", \"fixedAssetAccountId\":\"3d8d063a-c148-4bb8-8b3c-a5e2ad3b1e82\", \"depreciationExpenseAccountId\":\"d1602f69-f900-4616-8d34-90af393fa368\", \"accumulatedDepreciationAccountId\":\"9195cadd-8645-41e6-9f67-7bcd421defe8\", \"bookDepreciationSetting\":{ \"depreciationMethod\":\"DiminishingValue100\", \"averagingMethod\":\"ActualDays\", \"depreciationRate\":0.05, \"depreciationCalculationMethod\":\"None\" } }" + "example" : { + "assetTypeName" : "Machinery11004", + "fixedAssetAccountId" : "3d8d063a-c148-4bb8-8b3c-a5e2ad3b1e82", + "depreciationExpenseAccountId" : "d1602f69-f900-4616-8d34-90af393fa368", + "accumulatedDepreciationAccountId" : "9195cadd-8645-41e6-9f67-7bcd421defe8", + "bookDepreciationSetting" : { + "depreciationMethod" : "DiminishingValue100", + "averagingMethod" : "ActualDays", + "depreciationRate" : 0.05, + "depreciationCalculationMethod" : "None" + } + } } }, "required" : true diff --git a/docs/v4/payroll-au/index.html b/docs/v4/payroll-au/index.html index f588e5d2..62bdacfa 100644 --- a/docs/v4/payroll-au/index.html +++ b/docs/v4/payroll-au/index.html @@ -4181,7 +4181,25 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/PayItem" }, - "example" : "{ \"EarningsRates\": [ { \"Name\": \"MyRate\", \"AccountCode\": \"400\", \"TypeOfUnits\": \"4.00\", \"IsExemptFromTax\": true, \"IsExemptFromSuper\": true, \"IsReportableAsW1\": false, \"AllowanceContributesToAnnualLeaveRate\": false, \"AllowanceContributesToOvertimeRate\": false, \"EarningsType\": \"ORDINARYTIMEEARNINGS\", \"EarningsRateID\": \"1fa4e226-b711-46ba-a8a7-4344c9c5fb87\", \"RateType\": \"MULTIPLE\", \"RatePerUnit\": \"10.0\", \"Multiplier\": 1.5, \"Amount\": 5, \"EmploymentTerminationPaymentType\": \"O\" } ] }" + "example" : { + "EarningsRates" : [ { + "Name" : "MyRate", + "AccountCode" : "400", + "TypeOfUnits" : "4.00", + "IsExemptFromTax" : true, + "IsExemptFromSuper" : true, + "IsReportableAsW1" : false, + "AllowanceContributesToAnnualLeaveRate" : false, + "AllowanceContributesToOvertimeRate" : false, + "EarningsType" : "ORDINARYTIMEEARNINGS", + "EarningsRateID" : "1fa4e226-b711-46ba-a8a7-4344c9c5fb87", + "RateType" : "MULTIPLE", + "RatePerUnit" : "10.0", + "Multiplier" : 1.5, + "Amount" : 5, + "EmploymentTerminationPaymentType" : "O" + } ] + } } }, "required" : true @@ -8453,7 +8471,16 @@

Parameters

"$ref" : "#/components/schemas/PayslipLines" } }, - "example" : "{ \"Payslip\": { \"EmployeeID\": \"cdfb8371-0b21-4b8a-8903-1024df6c391e\", \"DeductionLines\": [ { \"DeductionTypeID\": \"727af5e8-b347-4ae7-85fc-9b82266d0aec\", \"CalculationType\": \"FIXEDAMOUNT\", \"NumberOfUnits\": 10 } ] } }" + "example" : { + "Payslip" : { + "EmployeeID" : "cdfb8371-0b21-4b8a-8903-1024df6c391e", + "DeductionLines" : [ { + "DeductionTypeID" : "727af5e8-b347-4ae7-85fc-9b82266d0aec", + "CalculationType" : "FIXEDAMOUNT", + "NumberOfUnits" : 10 + } ] + } + } } }, "required" : true diff --git a/docs/v4/payroll-nz/index.html b/docs/v4/payroll-nz/index.html index c5906753..a23f62bf 100644 --- a/docs/v4/payroll-nz/index.html +++ b/docs/v4/payroll-nz/index.html @@ -1046,7 +1046,7 @@ }; defs["Deduction"] = { "title" : "", - "required" : [ "calculationType", "deductionCategory", "deductionName", "liabilityAccountId" ], + "required" : [ "deductionCategory", "deductionName", "liabilityAccountId" ], "type" : "object", "properties" : { "deductionId" : { @@ -1420,7 +1420,7 @@ }; defs["Employee"] = { "title" : "", - "required" : [ "Address", "DateOfBirth", "FirstName", "LastName" ], + "required" : [ "address", "dateOfBirth", "firstName", "lastName" ], "type" : "object", "properties" : { "employeeID" : { @@ -2426,7 +2426,7 @@ }; defs["Employment"] = { "title" : "", - "required" : [ "EngagementType", "PayrollCalendarID", "StartDate" ], + "required" : [ "engagementType", "payrollCalendarID", "startDate" ], "type" : "object", "properties" : { "payrollCalendarID" : { @@ -4555,7 +4555,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Deduction" }, - "example" : "{ \"deductionName\": \"My new deduction\", \"deductionCategory\": \"NzOther\", \"liabilityAccountId\": \"568f2e9a-0870-46cc-8678-f83f132ed4e3\" }" + "example" : { + "deductionName" : "My new deduction", + "deductionCategory" : "NzOther", + "liabilityAccountId" : "568f2e9a-0870-46cc-8678-f83f132ed4e3" + } } }, "required" : true @@ -4709,7 +4713,13 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EarningsRate" }, - "example" : "{ \"name\": \"My Earnings Rate\", \"earningsType\": \"RegularEarnings\", \"rateType\": \"RatePerUnit\", \"typeOfUnits\": \"hours\", \"expenseAccountID\": \"e4eb36f6-97e3-4427-a394-dd4e1b355c2e\" }" + "example" : { + "name" : "My Earnings Rate", + "earningsType" : "RegularEarnings", + "rateType" : "RatePerUnit", + "typeOfUnits" : "hours", + "expenseAccountID" : "e4eb36f6-97e3-4427-a394-dd4e1b355c2e" + } } }, "required" : true @@ -4871,7 +4881,20 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Employee" }, - "example" : "{ \"title\": \"Mr\", \"firstName\": \"Mike\", \"lastName\": \"Johntzxzpxhmkgson\", \"dateOfBirth\": \"2000-01-01\", \"address\": { \"addressLine1\": \"101 Green St\", \"city\": \"San Francisco\", \"postCode\": \"4351\", \"countryName\": \"United Kingdom\" }, \"email\": \"83139@starkindustries.com\", \"gender\": \"M\" }" + "example" : { + "title" : "Mr", + "firstName" : "Mike", + "lastName" : "Johntzxzpxhmkgson", + "dateOfBirth" : "2000-01-01", + "address" : { + "addressLine1" : "101 Green St", + "city" : "San Francisco", + "postCode" : "4351", + "countryName" : "United Kingdom" + }, + "email" : "83139@starkindustries.com", + "gender" : "M" + } } }, "required" : true @@ -5066,7 +5089,12 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EarningsTemplate" }, - "example" : "{ \"ratePerUnit\": 20, \"numberOfUnits\": 8, \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"name\": \"My New One\" }" + "example" : { + "ratePerUnit" : 20, + "numberOfUnits" : 8, + "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5", + "name" : "My New One" + } } }, "required" : true @@ -5259,7 +5287,12 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EmployeeLeave" }, - "example" : "{ \"leaveTypeID\": \"b0b1b79e-2a25-46c2-ad08-ca25ef48d7e4\", \"description\": \"Creating a Description\", \"startDate\": \"2020-04-24\", \"endDate\": \"2020-04-26\" }" + "example" : { + "leaveTypeID" : "b0b1b79e-2a25-46c2-ad08-ca25ef48d7e4", + "description" : "Creating a Description", + "startDate" : "2020-04-24", + "endDate" : "2020-04-26" + } } }, "required" : true @@ -5456,7 +5489,16 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EmployeeLeaveSetup" }, - "example" : "{ \"holidayPayOpeningBalance\": 10, \"annualLeaveOpeningBalance\": 100, \"sickLeaveHoursToAccrueAnnually\": 20, \"sickLeaveToAccrueAnnually\": 20, \"sickLeaveOpeningBalance\": 10, \"sickLeaveScheduleOfAccrual\": \"OnAnniversaryDate\", \"sickLeaveAnniversaryDate\": \"2023-12-31\", \"annualLeaveAnniversaryDate\": \"2023-12-31\" }" + "example" : { + "holidayPayOpeningBalance" : 10, + "annualLeaveOpeningBalance" : 100, + "sickLeaveHoursToAccrueAnnually" : 20, + "sickLeaveToAccrueAnnually" : 20, + "sickLeaveOpeningBalance" : 10, + "sickLeaveScheduleOfAccrual" : "OnAnniversaryDate", + "sickLeaveAnniversaryDate" : "2023-12-31", + "annualLeaveAnniversaryDate" : "2023-12-31" + } } }, "required" : true @@ -5646,7 +5688,17 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EmployeeLeaveType" }, - "example" : "{ \"leaveTypeID\": \"35da97ae-05b9-427f-9a98-69157ba42cec\", \"scheduleOfAccrual\": \"AnnuallyAfter6Months\", \"hoursAccruedAnnually\": 10, \"unitsAccruedAnnually\": 10, \"typeOfUnitsToAccrue\": \"Hours\", \"openingBalanceTypeOfUnits\": \"Hours\" \"maximumToAccrue\": 80, \"openingBalance\": 100, \"rateAccruedHourly\": 3.5 }" + "example" : { + "leaveTypeID" : "35da97ae-05b9-427f-9a98-69157ba42cec", + "scheduleOfAccrual" : "AnnuallyAfter6Months", + "hoursAccruedAnnually" : 10, + "unitsAccruedAnnually" : 10, + "typeOfUnitsToAccrue" : "Hours", + "openingBalanceTypeOfUnits" : "Hours", + "maximumToAccrue" : 80, + "openingBalance" : 100, + "rateAccruedHourly" : 3.5 + } } }, "required" : true @@ -6035,7 +6087,18 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/PaymentMethod" }, - "example" : "" + "example" : { + "bankAccounts" : [ { + "accountName" : "Casual Worker", + "accountNumber" : "0607050201419000", + "sortCode" : null, + "particulars" : null, + "code" : null, + "dollarAmount" : null, + "reference" : "", + "calculationType" : "Balance" + } ] + } } }, "required" : true @@ -6225,7 +6288,17 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/SalaryAndWage" }, - "example" : "{ \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"numberOfUnitsPerWeek\": 2, \"ratePerUnit\": 10, \"numberOfUnitsPerDay\": 2, \"daysPerWeek\": 1, \"effectiveFrom\": \"2020-05-01\", \"annualSalary\": 100, \"status\": \"Active\", \"paymentType\": \"Salary\" }" + "example" : { + "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5", + "numberOfUnitsPerWeek" : 2, + "ratePerUnit" : 10, + "numberOfUnitsPerDay" : 2, + "daysPerWeek" : 1, + "effectiveFrom" : "2020-05-01", + "annualSalary" : 100, + "status" : "Active", + "paymentType" : "Salary" + } } }, "required" : true @@ -6419,7 +6492,18 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EmployeeWorkingPatternWithWorkingWeeksRequest" }, - "example" : "{ \"effectiveFrom\": \"2020-01-01T00:00:00\", \"workingWeeks\": [ { \"monday\": 0.0, \"tuesday\": 3.0000, \"wednesday\": 0.0, \"thursday\": 0.0, \"friday\": 0.0, \"saturday\": 0.0, \"sunday\": 0.0 } ] }" + "example" : { + "effectiveFrom" : "2020-01-01T00:00:00", + "workingWeeks" : [ { + "monday" : 0.0, + "tuesday" : 3.0, + "wednesday" : 0.0, + "thursday" : 0.0, + "friday" : 0.0, + "saturday" : 0.0, + "sunday" : 0.0 + } ] + } } }, "required" : true @@ -6610,7 +6694,12 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Employment" }, - "example" : "{ \"payrollCalendarID\": \"9aa56064-990f-4ad3-a189-d966d8f6a030\", \"startDate\": \"2020-09-02\", \"engagementType\": \"FixedTerm\", \"fixedTermEndDate\": \"2026-01-01\" }" + "example" : { + "payrollCalendarID" : "9aa56064-990f-4ad3-a189-d966d8f6a030", + "startDate" : "2020-09-02", + "engagementType" : "FixedTerm", + "fixedTermEndDate" : "2026-01-01" + } } }, "required" : true @@ -6764,7 +6853,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/LeaveType" }, - "example" : "{ \"name\": \"My wqwhhiktun Leave\", \"isPaidLeave\": false, \"showOnPayslip\": true }" + "example" : { + "name" : "My wqwhhiktun Leave", + "isPaidLeave" : false, + "showOnPayslip" : true + } } }, "required" : true @@ -7112,7 +7205,15 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/PayRun" }, - "example" : "{ \"payrollCalendarID\": \"9aa56064-990f-4ad3-a189-d966d8f6a030\", \"periodStartDate\": \"2020-09-08\", \"periodEndDate\": \"2020-09-15\", \"paymentDate\": \"2020-09-20\", \"payRunStatus\": \"Draft\", \"payRunType\": \"Scheduled\", \"calendarType\": \"Weekly\" }" + "example" : { + "payrollCalendarID" : "9aa56064-990f-4ad3-a189-d966d8f6a030", + "periodStartDate" : "2020-09-08", + "periodEndDate" : "2020-09-15", + "paymentDate" : "2020-09-20", + "payRunStatus" : "Draft", + "payRunType" : "Scheduled", + "calendarType" : "Weekly" + } } }, "required" : true @@ -7268,7 +7369,12 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/PayRunCalendar" }, - "example" : "{ \"name\": \"My Weekly Cal\", \"calendarType\": \"Weekly\", \"periodStartDate\": \"2020-05-01\", \"paymentDate\": \"2020-05-15\" }" + "example" : { + "name" : "My Weekly Cal", + "calendarType" : "Weekly", + "periodStartDate" : "2020-05-01", + "paymentDate" : "2020-05-15" + } } }, "required" : true @@ -7423,7 +7529,12 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Reimbursement" }, - "example" : "{ \"name\": \"My new Reimburse\", \"accountID\": \"fa5cdc43-643b-4ad8-b4ac-3ffe0d0f4488\", \"reimbursementCategory\": \"GSTInclusive\", \"calculationType\": \"FixedAmount\" }" + "example" : { + "name" : "My new Reimburse", + "accountID" : "fa5cdc43-643b-4ad8-b4ac-3ffe0d0f4488", + "reimbursementCategory" : "GSTInclusive", + "calculationType" : "FixedAmount" + } } }, "required" : true @@ -7580,7 +7691,14 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Benefit" }, - "example" : "{ \"name\": \"SidSaver\", \"category\": \"Other\", \"liabilityAccountId\": \"568f2e9a-0870-46cc-8678-f83f132ed4e3\", \"expenseAccountId\": \"e4eb36f6-97e3-4427-a394-dd4e1b355c2e\", \"CalculationTypeNZ\": \"FixedAmount\", \"standardAmount\": 10 }" + "example" : { + "name" : "SidSaver", + "category" : "Other", + "liabilityAccountId" : "568f2e9a-0870-46cc-8678-f83f132ed4e3", + "expenseAccountId" : "e4eb36f6-97e3-4427-a394-dd4e1b355c2e", + "CalculationTypeNZ" : "FixedAmount", + "standardAmount" : 10 + } } }, "required" : true @@ -7737,7 +7855,21 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Timesheet" }, - "example" : "{ \"payrollCalendarID\": \"9aa56064-990f-4ad3-a189-d966d8f6a030\", \"employeeID\": \"68342973-c405-4b86-b5d3-d7b877c27995\", \"startDate\": \"2020-04-13\", \"endDate\": \"2020-04-19\", \"timesheetLines\": [ { \"date\": \"2020-04-13\", \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"numberOfUnits\": 8 }, { \"date\": \"2020-04-15\", \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"numberOfUnits\": 6 } ] }" + "example" : { + "payrollCalendarID" : "9aa56064-990f-4ad3-a189-d966d8f6a030", + "employeeID" : "68342973-c405-4b86-b5d3-d7b877c27995", + "startDate" : "2020-04-13", + "endDate" : "2020-04-19", + "timesheetLines" : [ { + "date" : "2020-04-13", + "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5", + "numberOfUnits" : 8 + }, { + "date" : "2020-04-15", + "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5", + "numberOfUnits" : 6 + } ] + } } }, "required" : true @@ -7929,7 +8061,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/TimesheetLine" }, - "example" : "{ \"date\": \"2020-08-03\", \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"numberOfUnits\": 1 }" + "example" : { + "date" : "2020-08-03", + "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5", + "numberOfUnits" : 1 + } } }, "required" : true @@ -14116,7 +14252,20 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Employee" }, - "example" : "{ \"title\": \"Mr\", \"firstName\": \"Tony\", \"lastName\": \"Starkgtrzgquusrson\", \"dateOfBirth\": \"1999-01-01\", \"address\": { \"addressLine1\": \"101 Green St\", \"city\": \"San Francisco\", \"postCode\": \"4432\", \"countryName\": \"United Kingdom\" }, \"email\": \"58315@starkindustries.com\", \"gender\": \"M\" }" + "example" : { + "title" : "Mr", + "firstName" : "Tony", + "lastName" : "Starkgtrzgquusrson", + "dateOfBirth" : "1999-01-01", + "address" : { + "addressLine1" : "101 Green St", + "city" : "San Francisco", + "postCode" : "4432", + "countryName" : "United Kingdom" + }, + "email" : "58315@starkindustries.com", + "gender" : "M" + } } }, "required" : true @@ -14339,7 +14488,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EarningsTemplate" }, - "example" : "{ \"ratePerUnit\": 25, \"numberOfUnits\": 4, \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\" }" + "example" : { + "ratePerUnit" : 25, + "numberOfUnits" : 4, + "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5" + } } }, "required" : true @@ -14558,7 +14711,18 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EmployeeLeave" }, - "example" : "{ \"leaveTypeID\": \"b0b1b79e-2a25-46c2-ad08-ca25ef48d7e4\", \"description\": \"Creating a Description\", \"startDate\": \"2020-04-24\", \"endDate\": \"2020-04-26\", \"periods\": [ { \"periodStartDate\": \"2020-04-20\", \"periodEndDate\": \"2020-04-26\", \"numberOfUnits\": 1, \"periodStatus\": \"Approved\" } ] }" + "example" : { + "leaveTypeID" : "b0b1b79e-2a25-46c2-ad08-ca25ef48d7e4", + "description" : "Creating a Description", + "startDate" : "2020-04-24", + "endDate" : "2020-04-26", + "periods" : [ { + "periodStartDate" : "2020-04-20", + "periodEndDate" : "2020-04-26", + "numberOfUnits" : 1, + "periodStatus" : "Approved" + } ] + } } }, "required" : true @@ -14776,7 +14940,17 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/SalaryAndWage" }, - "example" : "{ \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"numberOfUnitsPerWeek\": 3, \"ratePerUnit\": 11, \"numberOfUnitsPerDay\": 3, \"daysPerWeek\": 1, \"effectiveFrom\": \"2020-05-15\", \"annualSalary\": 101, \"status\": \"Active\", \"paymentType\": \"Salary\" }" + "example" : { + "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5", + "numberOfUnitsPerWeek" : 3, + "ratePerUnit" : 11, + "numberOfUnitsPerDay" : 3, + "daysPerWeek" : 1, + "effectiveFrom" : "2020-05-15", + "annualSalary" : 101, + "status" : "Active", + "paymentType" : "Salary" + } } }, "required" : true @@ -14975,7 +15149,24 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EmployeeTax" }, - "example" : "" + "example" : { + "irdNumber" : "111111111", + "taxCode" : "M", + "esctRatePercentage" : 17.5, + "isEligibleForKiwiSaver" : true, + "hasSpecialStudentLoanRate" : false, + "specialStudentLoanRatePercentage" : null, + "specialTaxRatePercentage" : null, + "kiwiSaverContributions" : "MakeContributions", + "kiwiSaverOptOutDate" : null, + "kiwiSaverContributionHolidayEndDate" : null, + "kiwiSaverEmployeeContributionRatePercentage" : 3, + "kiwiSaverEmployerContributionRatePercentage" : 3, + "kiwiSaverEmployerSalarySacrificeContributionRatePercentage" : 0, + "hasStudentLoanBalance" : false, + "studentLoanBalance" : null, + "studentLoanAsAt" : null + } } }, "required" : true @@ -15166,7 +15357,9 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/PayRun" }, - "example" : "{ \"paymentDate\": \"2019-07-01\" }" + "example" : { + "paymentDate" : "2019-07-01" + } } }, "required" : true @@ -15364,7 +15557,81 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/PaySlip" }, - "example" : "{ \"earningsLines\": [ { \"earningsLineID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"displayName\": \"Ordinary Time\", \"ratePerUnit\": 25, \"numberOfUnits\": 0, \"amount\": 0, \"isLinkedToTimesheet\": false, \"isSystemGenerated\": true }, { \"earningsLineID\": \"65b83d94-f20f-45e1-85ae-387fcf460c26\", \"earningsRateID\": \"65b83d94-f20f-45e1-85ae-387fcf460c26\", \"displayName\": \"Salary\", \"ratePerUnit\": 0, \"numberOfUnits\": 8, \"amount\": 0, \"isLinkedToTimesheet\": false, \"isSystemGenerated\": false } ], \"leaveEarningsLines\": [ { \"earningsLineID\": \"0441497f-5dc7-4cd3-a90d-f2e07e21b2a6\", \"earningsRateID\": \"39b3560a-5d2f-4538-924a-4349dc86396e\", \"displayName\": \"Holiday Pay\", \"fixedAmount\": 268.8, \"amount\": 268.8, \"isLinkedToTimesheet\": false, \"isSystemGenerated\": true } ], \"deductionLines\": [ { \"deductionTypeID\": \"a3760fe4-68a4-4e38-8326-fe616af7dc74\", \"amount\": 100 } ], \"leaveAccrualLines\": [ { \"leaveTypeID\": \"0441497f-5dc7-4cd3-a90d-f2e07e21b2a6\", \"numberOfUnits\": 268.8 }, { \"leaveTypeID\": \"b0b1b79e-2a25-46c2-ad08-ca25ef48d7e4\", \"numberOfUnits\": 0 }, { \"leaveTypeID\": \"f2f994cf-1899-46f3-ad4f-5d92d78c3719\", \"numberOfUnits\": 0 }, { \"leaveTypeID\": \"34129765-11cb-4d8c-b568-84a2219beda3\", \"numberOfUnits\": 0 } ], \"superannuationLines\": [ { \"superannuationTypeID\": \"563273ea-0dae-4f82-86a4-e0db77c008ea\", \"displayName\": \"KiwiSaver\", \"amount\": 108.86, \"fixedAmount\": 3, \"percentage\": 3, \"manualAdjustment\": false } ], \"employeeTaxLines\": [ { \"taxLineID\": \"1084146b-e890-489c-aed3-06de80f63d84\", \"amount\": 1057.22, \"globalTaxTypeID\": \"11\", \"manualAdjustment\": false } ], \"employerTaxLines\": [ { \"taxLineID\": \"6f9eb8cd-0f4a-440b-939c-bdb0f6ad694c\", \"amount\": 18.9, \"globalTaxTypeID\": \"10\", \"manualAdjustment\": false } ], \"statutoryDeductionLines\": [ { \"statutoryDeductionTypeID\": \"b5efd8d1-0c93-4a14-a314-b5cba4a4e6b3\", \"amount\": 108.86 } ], \"grossEarningsHistory\": { \"daysPaid\": 3, \"unpaidWeeks\": 0 } }" + "example" : { + "earningsLines" : [ { + "earningsLineID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5", + "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5", + "displayName" : "Ordinary Time", + "ratePerUnit" : 25, + "numberOfUnits" : 0, + "amount" : 0, + "isLinkedToTimesheet" : false, + "isSystemGenerated" : true + }, { + "earningsLineID" : "65b83d94-f20f-45e1-85ae-387fcf460c26", + "earningsRateID" : "65b83d94-f20f-45e1-85ae-387fcf460c26", + "displayName" : "Salary", + "ratePerUnit" : 0, + "numberOfUnits" : 8, + "amount" : 0, + "isLinkedToTimesheet" : false, + "isSystemGenerated" : false + } ], + "leaveEarningsLines" : [ { + "earningsLineID" : "0441497f-5dc7-4cd3-a90d-f2e07e21b2a6", + "earningsRateID" : "39b3560a-5d2f-4538-924a-4349dc86396e", + "displayName" : "Holiday Pay", + "fixedAmount" : 268.8, + "amount" : 268.8, + "isLinkedToTimesheet" : false, + "isSystemGenerated" : true + } ], + "deductionLines" : [ { + "deductionTypeID" : "a3760fe4-68a4-4e38-8326-fe616af7dc74", + "amount" : 100 + } ], + "leaveAccrualLines" : [ { + "leaveTypeID" : "0441497f-5dc7-4cd3-a90d-f2e07e21b2a6", + "numberOfUnits" : 268.8 + }, { + "leaveTypeID" : "b0b1b79e-2a25-46c2-ad08-ca25ef48d7e4", + "numberOfUnits" : 0 + }, { + "leaveTypeID" : "f2f994cf-1899-46f3-ad4f-5d92d78c3719", + "numberOfUnits" : 0 + }, { + "leaveTypeID" : "34129765-11cb-4d8c-b568-84a2219beda3", + "numberOfUnits" : 0 + } ], + "superannuationLines" : [ { + "superannuationTypeID" : "563273ea-0dae-4f82-86a4-e0db77c008ea", + "displayName" : "KiwiSaver", + "amount" : 108.86, + "fixedAmount" : 3, + "percentage" : 3, + "manualAdjustment" : false + } ], + "employeeTaxLines" : [ { + "taxLineID" : "1084146b-e890-489c-aed3-06de80f63d84", + "amount" : 1057.22, + "globalTaxTypeID" : "11", + "manualAdjustment" : false + } ], + "employerTaxLines" : [ { + "taxLineID" : "6f9eb8cd-0f4a-440b-939c-bdb0f6ad694c", + "amount" : 18.9, + "globalTaxTypeID" : "10", + "manualAdjustment" : false + } ], + "statutoryDeductionLines" : [ { + "statutoryDeductionTypeID" : "b5efd8d1-0c93-4a14-a314-b5cba4a4e6b3", + "amount" : 108.86 + } ], + "grossEarningsHistory" : { + "daysPaid" : 3, + "unpaidWeeks" : 0 + } + } } }, "required" : true @@ -15584,7 +15851,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/TimesheetLine" }, - "example" : "{ \"date\": \"2020-08-04\", \"earningsRateID\": \"f9d8f5b5-9049-47f4-8541-35e200f750a5\", \"numberOfUnits\": 2 }" + "example" : { + "date" : "2020-08-04", + "earningsRateID" : "f9d8f5b5-9049-47f4-8541-35e200f750a5", + "numberOfUnits" : 2 + } } }, "required" : true diff --git a/docs/v4/payroll-uk/index.html b/docs/v4/payroll-uk/index.html index e55f2b57..525b190f 100644 --- a/docs/v4/payroll-uk/index.html +++ b/docs/v4/payroll-uk/index.html @@ -1512,7 +1512,7 @@ }; defs["Employee"] = { "title" : "", - "required" : [ "Address", "DateOfBirth", "FirstName", "Gender", "LastName", "Title" ], + "required" : [ "address", "dateOfBirth", "firstName", "gender", "lastName", "title" ], "type" : "object", "properties" : { "employeeID" : { @@ -2260,7 +2260,7 @@ }; defs["Employment"] = { "title" : "", - "required" : [ "EmployeeNumber", "NICategory", "PayrollCalendarID", "StartDate" ], + "required" : [ "employeeNumber", "niCategory", "payrollCalendarID", "startDate" ], "type" : "object", "properties" : { "payrollCalendarID" : { @@ -4036,7 +4036,15 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Benefit" }, - "example" : "{ \"name\": \"My Big Bennie\", \"category\": \"StakeholderPension\", \"liabilityAccountId\": \"e0faa299-ca0d-4b0a-9e32-0dfabdf9179a\", \"expenseAccountId\": \"4b03500d-32fd-4616-8d70-e1e56e0519c6\", \"standardAmount\": 50, \"percentage\": 25, \"calculationType\": \"PercentageOfGross\" }" + "example" : { + "name" : "My Big Bennie", + "category" : "StakeholderPension", + "liabilityAccountId" : "e0faa299-ca0d-4b0a-9e32-0dfabdf9179a", + "expenseAccountId" : "4b03500d-32fd-4616-8d70-e1e56e0519c6", + "standardAmount" : 50, + "percentage" : 25, + "calculationType" : "PercentageOfGross" + } } }, "required" : true @@ -4191,7 +4199,12 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Deduction" }, - "example" : "{ \"deductionName\": \"My new deduction\", \"deductionCategory\": \"SalarySacrifice\", \"liabilityAccountId\": \"e0faa299-ca0d-4b0a-9e32-0dfabdf9179a\", \"calculationType\": \"FixedAmount\" }" + "example" : { + "deductionName" : "My new deduction", + "deductionCategory" : "SalarySacrifice", + "liabilityAccountId" : "e0faa299-ca0d-4b0a-9e32-0dfabdf9179a", + "calculationType" : "FixedAmount" + } } }, "required" : true @@ -4346,7 +4359,13 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EarningsRate" }, - "example" : "{ \"name\": \"My Earnings Rate\", \"earningsType\": \"RegularEarnings\", \"rateType\": \"RatePerUnit\", \"typeOfUnits\": \"hours\", \"expenseAccountID\": \"4b03500d-32fd-4616-8d70-e1e56e0519c6\" }" + "example" : { + "name" : "My Earnings Rate", + "earningsType" : "RegularEarnings", + "rateType" : "RatePerUnit", + "typeOfUnits" : "hours", + "expenseAccountID" : "4b03500d-32fd-4616-8d70-e1e56e0519c6" + } } }, "required" : true @@ -4508,7 +4527,20 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Employee" }, - "example" : "{ \"title\":\"Mr\", \"firstName\":\"Mike\", \"lastName\":\"Fancy\", \"dateOfBirth\":\"1999-01-01T00:00:00\", \"gender\":\"M\", \"email\":\"mike@starkindustries.com\", \"isOffPayrollWorker\": false, \"address\": { \"addressLine1\": \"171 Midsummer\", \"city\": \"Milton Keyness\", \"postCode\": \"MK9 1EB\" } }" + "example" : { + "title" : "Mr", + "firstName" : "Mike", + "lastName" : "Fancy", + "dateOfBirth" : "1999-01-01T00:00:00", + "gender" : "M", + "email" : "mike@starkindustries.com", + "isOffPayrollWorker" : false, + "address" : { + "addressLine1" : "171 Midsummer", + "city" : "Milton Keyness", + "postCode" : "MK9 1EB" + } + } } }, "required" : true @@ -4893,7 +4925,12 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EmployeeLeave" }, - "example" : "{ \"leaveTypeID\": \"1d2778ee-86ea-45c0-bbf8-1045485f6b3f\", \"description\": \"Creating a Description\", \"startDate\": \"2020-03-24\", \"endDate\": \"2020-03-26\" }" + "example" : { + "leaveTypeID" : "1d2778ee-86ea-45c0-bbf8-1045485f6b3f", + "description" : "Creating a Description", + "startDate" : "2020-03-24", + "endDate" : "2020-03-26" + } } }, "required" : true @@ -5083,7 +5120,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EmployeeLeaveType" }, - "example" : "{ \"leaveTypeID\": \"4918f233-bd31-43f9-9633-bcc6de1178f2\", \"scheduleOfAccrual\": \"BeginningOfCalendarYear\", \"hoursAccruedAnnually\": 10 }" + "example" : { + "leaveTypeID" : "4918f233-bd31-43f9-9633-bcc6de1178f2", + "scheduleOfAccrual" : "BeginningOfCalendarYear", + "hoursAccruedAnnually" : 10 + } } }, "required" : true @@ -5274,7 +5315,14 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EmployeeOpeningBalances" }, - "example" : "{ \"statutoryAdoptionPay\": 10, \"statutoryMaternityPay\": 10, \"statutoryPaternityPay\": 10, \"statutorySharedParentalPay\": 10, \"statutorySickPay\": 10, \"priorEmployeeNumber\": 10 }" + "example" : { + "statutoryAdoptionPay" : 10, + "statutoryMaternityPay" : 10, + "statutoryPaternityPay" : 10, + "statutorySharedParentalPay" : 10, + "statutorySickPay" : 10, + "priorEmployeeNumber" : 10 + } } }, "required" : true @@ -5469,7 +5517,14 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/PaymentMethod" }, - "example" : "{ \"paymentMethod\": \"Electronically\", \"bankAccounts\": [ { \"accountName\": \"Sid BofA\", \"accountNumber\": \"24987654\", \"sortCode\": \"287654\" } ] }" + "example" : { + "paymentMethod" : "Electronically", + "bankAccounts" : [ { + "accountName" : "Sid BofA", + "accountNumber" : "24987654", + "sortCode" : "287654" + } ] + } } }, "required" : true @@ -5660,7 +5715,16 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/SalaryAndWage" }, - "example" : "{ \"earningsRateID\": \"87f5b43a-cf51-4b74-92de-94c819e82d27\", \"numberOfUnitsPerWeek\": 2, \"ratePerUnit\": 10, \"numberOfUnitsPerDay\": 2, \"effectiveFrom\": \"2020-05-01\", \"annualSalary\": 100, \"status\": \"ACTIVE\", \"paymentType\": \"Salary\" }" + "example" : { + "earningsRateID" : "87f5b43a-cf51-4b74-92de-94c819e82d27", + "numberOfUnitsPerWeek" : 2, + "ratePerUnit" : 10, + "numberOfUnitsPerDay" : 2, + "effectiveFrom" : "2020-05-01", + "annualSalary" : 100, + "status" : "ACTIVE", + "paymentType" : "Salary" + } } }, "required" : true @@ -5817,7 +5881,15 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EmployeeStatutorySickLeave" }, - "example" : "{ \"employeeID\": \"aad6b292-7b94-408b-93f6-e489867e3fb0\", \"leaveTypeID\": \"aab78802-e9d3-4bbd-bc87-df858054988f\", \"startDate\": \"2020-04-21\", \"endDate\": \"2020-04-24\", \"workPattern\": [ \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\" ], \"isPregnancyRelated\": false, \"sufficientNotice\": true }" + "example" : { + "employeeID" : "aad6b292-7b94-408b-93f6-e489867e3fb0", + "leaveTypeID" : "aab78802-e9d3-4bbd-bc87-df858054988f", + "startDate" : "2020-04-21", + "endDate" : "2020-04-24", + "workPattern" : [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" ], + "isPregnancyRelated" : false, + "sufficientNotice" : true + } } }, "required" : true @@ -6006,7 +6078,12 @@

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", + "EmployeeNumber" : "123ABC", + "NICategory" : "A" + } } }, "required" : true @@ -6160,7 +6237,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/LeaveType" }, - "example" : "{ \"name\": \"My opebvwbfxf Leave\", \"isPaidLeave\": false, \"showOnPayslip\": true }" + "example" : { + "name" : "My opebvwbfxf Leave", + "isPaidLeave" : false, + "showOnPayslip" : true + } } }, "required" : true @@ -6511,7 +6592,12 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/PayRunCalendar" }, - "example" : "{ \"name\": \"My Weekly Cal\", \"calendarType\": \"Weekly\", \"periodStartDate\": \"2020-05-01\", \"paymentDate\": \"2020-05-15\" }" + "example" : { + "name" : "My Weekly Cal", + "calendarType" : "Weekly", + "periodStartDate" : "2020-05-01", + "paymentDate" : "2020-05-15" + } } }, "required" : true @@ -6664,7 +6750,10 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Reimbursement" }, - "example" : "{ \"name\": \"My new Reimburse\", \"accountID\": \"9ee28149-32a9-4661-8eab-a28738696983\" }" + "example" : { + "name" : "My new Reimburse", + "accountID" : "9ee28149-32a9-4661-8eab-a28738696983" + } } }, "required" : true @@ -6821,7 +6910,21 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Timesheet" }, - "example" : "{ \"payrollCalendarID\": \"216d80e6-af55-47b1-b718-9457c3f5d2fe\", \"employeeID\": \"aad6b292-7b94-408b-93f6-e489867e3fb0\", \"startDate\": \"2020-04-13\", \"endDate\": \"2020-04-19\", \"timesheetLines\": [ { \"date\": \"2020-04-13\", \"earningsRateID\": \"87f5b43a-cf51-4b74-92de-94c819e82d27\", \"numberOfUnits\": 8 }, { \"date\": \"2020-04-15\", \"earningsRateID\": \"87f5b43a-cf51-4b74-92de-94c819e82d27\", \"numberOfUnits\": 6 } ] }" + "example" : { + "payrollCalendarID" : "216d80e6-af55-47b1-b718-9457c3f5d2fe", + "employeeID" : "aad6b292-7b94-408b-93f6-e489867e3fb0", + "startDate" : "2020-04-13", + "endDate" : "2020-04-19", + "timesheetLines" : [ { + "date" : "2020-04-13", + "earningsRateID" : "87f5b43a-cf51-4b74-92de-94c819e82d27", + "numberOfUnits" : 8 + }, { + "date" : "2020-04-15", + "earningsRateID" : "87f5b43a-cf51-4b74-92de-94c819e82d27", + "numberOfUnits" : 6 + } ] + } } }, "required" : true @@ -7013,7 +7116,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/TimesheetLine" }, - "example" : "{ \"date\": \"2020-04-14\", \"earningsRateID\": \"87f5b43a-cf51-4b74-92de-94c819e82d27\", \"numberOfUnits\": 1 }" + "example" : { + "date" : "2020-04-14", + "earningsRateID" : "87f5b43a-cf51-4b74-92de-94c819e82d27", + "numberOfUnits" : 1 + } } }, "required" : true @@ -13387,7 +13494,21 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/Employee" }, - "example" : "{ \"title\": \"Mr.\", \"firstName\": \"TestDataUK\", \"lastName\": \"Tester\", \"dateOfBirth\": \"1992-11-22T00:00:00\", \"gender\": \"M\", \"email\": \"tester@gmail.com\", \"phoneNumber\": \"0400123456\", \"isOffPayrollWorker\": false, \"address\": { \"addressLine1\": \"171 Midsummer\", \"city\": \"Milton Keyness\", \"postCode\": \"MK9 1EB\" } }" + "example" : { + "title" : "Mr.", + "firstName" : "TestDataUK", + "lastName" : "Tester", + "dateOfBirth" : "1992-11-22T00:00:00", + "gender" : "M", + "email" : "tester@gmail.com", + "phoneNumber" : "0400123456", + "isOffPayrollWorker" : false, + "address" : { + "addressLine1" : "171 Midsummer", + "city" : "Milton Keyness", + "postCode" : "MK9 1EB" + } + } } }, "required" : true @@ -13610,7 +13731,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EarningsTemplate" }, - "example" : "{ \"ratePerUnit\": 30, \"numberOfUnits\": 4, \"earningsRateID\": \"87f5b43a-cf51-4b74-92de-94c819e82d27\" }" + "example" : { + "ratePerUnit" : 30, + "numberOfUnits" : 4, + "earningsRateID" : "87f5b43a-cf51-4b74-92de-94c819e82d27" + } } }, "required" : true @@ -13829,7 +13954,18 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EmployeeLeave" }, - "example" : "{ \"leaveTypeID\": \"ed08dffe-788e-4b24-9630-f0fa2f4d164c\", \"description\": \"Creating a Description\", \"startDate\": \"2020-04-24\", \"endDate\": \"2020-04-26\", \"periods\": [ { \"periodStartDate\": \"2020-04-20\", \"periodEndDate\": \"2020-04-26\", \"numberOfUnits\": 1, \"periodStatus\": \"Approved\" } ] }" + "example" : { + "leaveTypeID" : "ed08dffe-788e-4b24-9630-f0fa2f4d164c", + "description" : "Creating a Description", + "startDate" : "2020-04-24", + "endDate" : "2020-04-26", + "periods" : [ { + "periodStartDate" : "2020-04-20", + "periodEndDate" : "2020-04-26", + "numberOfUnits" : 1, + "periodStatus" : "Approved" + } ] + } } }, "required" : true @@ -14020,7 +14156,14 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/EmployeeOpeningBalances" }, - "example" : "{ \"statutoryAdoptionPay\": 20, \"statutoryMaternityPay\": 20, \"statutoryPaternityPay\": 20, \"statutorySharedParentalPay\": 20, \"statutorySickPay\": 20, \"priorEmployeeNumber\": 20 }" + "example" : { + "statutoryAdoptionPay" : 20, + "statutoryMaternityPay" : 20, + "statutoryPaternityPay" : 20, + "statutorySharedParentalPay" : 20, + "statutorySickPay" : 20, + "priorEmployeeNumber" : 20 + } } }, "required" : true @@ -14239,7 +14382,15 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/SalaryAndWage" }, - "example" : "{ \"earningsRateID\": \"87f5b43a-cf51-4b74-92de-94c819e82d27\", \"numberOfUnitsPerWeek\": 3, \"ratePerUnit\": 11, \"effectiveFrom\": \"2020-05-15\", \"annualSalary\": 101, \"status\": \"ACTIVE\", \"paymentType\": \"Salary\" }" + "example" : { + "earningsRateID" : "87f5b43a-cf51-4b74-92de-94c819e82d27", + "numberOfUnitsPerWeek" : 3, + "ratePerUnit" : 11, + "effectiveFrom" : "2020-05-15", + "annualSalary" : 101, + "status" : "ACTIVE", + "paymentType" : "Salary" + } } }, "required" : true @@ -14430,7 +14581,9 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/PayRun" }, - "example" : "{ \"paymentDate\": \"2020-05-01\" }" + "example" : { + "paymentDate" : "2020-05-01" + } } }, "required" : true @@ -14650,7 +14803,11 @@

Parameters

"schema" : { "$ref" : "#/components/schemas/TimesheetLine" }, - "example" : "{ \"date\": \"2020-04-14\", \"earningsRateID\": \"87f5b43a-cf51-4b74-92de-94c819e82d27\", \"numberOfUnits\": 2 }" + "example" : { + "date" : "2020-04-14", + "earningsRateID" : "87f5b43a-cf51-4b74-92de-94c819e82d27", + "numberOfUnits" : 2 + } } }, "required" : true diff --git a/src/main/java/com/xero/models/accounting/Account.java b/src/main/java/com/xero/models/accounting/Account.java index 5e12e35e..1a29de59 100644 --- a/src/main/java/com/xero/models/accounting/Account.java +++ b/src/main/java/com/xero/models/accounting/Account.java @@ -50,7 +50,10 @@ public enum StatusEnum { ARCHIVED("ARCHIVED"), /** DELETED */ - DELETED("DELETED"); + DELETED("DELETED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -114,7 +117,10 @@ public enum BankAccountTypeEnum { NONE("NONE"), /** EMPTY */ - EMPTY(""); + EMPTY(""), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -187,7 +193,10 @@ public enum PropertyClassEnum { LIABILITY("LIABILITY"), /** REVENUE */ - REVENUE("REVENUE"); + REVENUE("REVENUE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -299,7 +308,10 @@ public enum SystemAccountEnum { CISMATERIALS("CISMATERIALS"), /** EMPTY */ - EMPTY(""); + EMPTY(""), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/AccountType.java b/src/main/java/com/xero/models/accounting/AccountType.java index ad8e6155..d5628d30 100644 --- a/src/main/java/com/xero/models/accounting/AccountType.java +++ b/src/main/java/com/xero/models/accounting/AccountType.java @@ -70,7 +70,10 @@ public enum AccountType { TERMLIAB("TERMLIAB"), /** PAYG */ - PAYG("PAYG"); + PAYG("PAYG"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/Action.java b/src/main/java/com/xero/models/accounting/Action.java index 70302bda..4d90f89d 100644 --- a/src/main/java/com/xero/models/accounting/Action.java +++ b/src/main/java/com/xero/models/accounting/Action.java @@ -30,7 +30,10 @@ public enum StatusEnum { ALLOWED("ALLOWED"), /** NOT_ALLOWED */ - NOT_ALLOWED("NOT-ALLOWED"); + NOT_ALLOWED("NOT-ALLOWED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/Address.java b/src/main/java/com/xero/models/accounting/Address.java index e5bda7a4..33e6285e 100644 --- a/src/main/java/com/xero/models/accounting/Address.java +++ b/src/main/java/com/xero/models/accounting/Address.java @@ -27,7 +27,10 @@ public enum AddressTypeEnum { POBOX("POBOX"), /** STREET */ - STREET("STREET"); + STREET("STREET"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/AddressForOrganisation.java b/src/main/java/com/xero/models/accounting/AddressForOrganisation.java index a57ffb92..65c9e7be 100644 --- a/src/main/java/com/xero/models/accounting/AddressForOrganisation.java +++ b/src/main/java/com/xero/models/accounting/AddressForOrganisation.java @@ -30,7 +30,10 @@ public enum AddressTypeEnum { STREET("STREET"), /** DELIVERY */ - DELIVERY("DELIVERY"); + DELIVERY("DELIVERY"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/BankTransaction.java b/src/main/java/com/xero/models/accounting/BankTransaction.java index 388cc27d..f52e2900 100644 --- a/src/main/java/com/xero/models/accounting/BankTransaction.java +++ b/src/main/java/com/xero/models/accounting/BankTransaction.java @@ -53,7 +53,10 @@ public enum TypeEnum { RECEIVE_TRANSFER("RECEIVE-TRANSFER"), /** SPEND_TRANSFER */ - SPEND_TRANSFER("SPEND-TRANSFER"); + SPEND_TRANSFER("SPEND-TRANSFER"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -135,7 +138,10 @@ public enum StatusEnum { DELETED("DELETED"), /** VOIDED */ - VOIDED("VOIDED"); + VOIDED("VOIDED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/BatchPayment.java b/src/main/java/com/xero/models/accounting/BatchPayment.java index 7dc6a965..a4a398af 100644 --- a/src/main/java/com/xero/models/accounting/BatchPayment.java +++ b/src/main/java/com/xero/models/accounting/BatchPayment.java @@ -68,7 +68,10 @@ public enum TypeEnum { PAYBATCH("PAYBATCH"), /** RECBATCH */ - RECBATCH("RECBATCH"); + RECBATCH("RECBATCH"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -123,7 +126,10 @@ public enum StatusEnum { AUTHORISED("AUTHORISED"), /** DELETED */ - DELETED("DELETED"); + DELETED("DELETED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/BrandingTheme.java b/src/main/java/com/xero/models/accounting/BrandingTheme.java index e3afb5f9..70c1b0d6 100644 --- a/src/main/java/com/xero/models/accounting/BrandingTheme.java +++ b/src/main/java/com/xero/models/accounting/BrandingTheme.java @@ -36,7 +36,10 @@ public class BrandingTheme { /** Always INVOICE */ public enum TypeEnum { /** INVOICE */ - INVOICE("INVOICE"); + INVOICE("INVOICE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/Budget.java b/src/main/java/com/xero/models/accounting/Budget.java index b4cfbf2c..58a3cd88 100644 --- a/src/main/java/com/xero/models/accounting/Budget.java +++ b/src/main/java/com/xero/models/accounting/Budget.java @@ -35,7 +35,10 @@ public enum TypeEnum { OVERALL("OVERALL"), /** TRACKING */ - TRACKING("TRACKING"); + TRACKING("TRACKING"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/Contact.java b/src/main/java/com/xero/models/accounting/Contact.java index 1f2d1072..3253756e 100644 --- a/src/main/java/com/xero/models/accounting/Contact.java +++ b/src/main/java/com/xero/models/accounting/Contact.java @@ -47,7 +47,10 @@ public enum ContactStatusEnum { ARCHIVED("ARCHIVED"), /** GDPRREQUEST */ - GDPRREQUEST("GDPRREQUEST"); + GDPRREQUEST("GDPRREQUEST"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -147,7 +150,10 @@ public enum SalesDefaultLineAmountTypeEnum { EXCLUSIVE("EXCLUSIVE"), /** NONE */ - NONE("NONE"); + NONE("NONE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -205,7 +211,10 @@ public enum PurchasesDefaultLineAmountTypeEnum { EXCLUSIVE("EXCLUSIVE"), /** NONE */ - NONE("NONE"); + NONE("NONE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/ContactGroup.java b/src/main/java/com/xero/models/accounting/ContactGroup.java index acead713..20c1b105 100644 --- a/src/main/java/com/xero/models/accounting/ContactGroup.java +++ b/src/main/java/com/xero/models/accounting/ContactGroup.java @@ -36,7 +36,10 @@ public enum StatusEnum { ACTIVE("ACTIVE"), /** DELETED */ - DELETED("DELETED"); + DELETED("DELETED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/CountryCode.java b/src/main/java/com/xero/models/accounting/CountryCode.java index 7d3480fd..92351326 100644 --- a/src/main/java/com/xero/models/accounting/CountryCode.java +++ b/src/main/java/com/xero/models/accounting/CountryCode.java @@ -736,7 +736,10 @@ public enum CountryCode { ZM("ZM"), /** ZW */ - ZW("ZW"); + ZW("ZW"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/CreditNote.java b/src/main/java/com/xero/models/accounting/CreditNote.java index ff4a6e36..f39b2da8 100644 --- a/src/main/java/com/xero/models/accounting/CreditNote.java +++ b/src/main/java/com/xero/models/accounting/CreditNote.java @@ -35,7 +35,10 @@ public enum TypeEnum { ACCPAYCREDIT("ACCPAYCREDIT"), /** ACCRECCREDIT */ - ACCRECCREDIT("ACCRECCREDIT"); + ACCRECCREDIT("ACCRECCREDIT"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -108,7 +111,10 @@ public enum StatusEnum { PAID("PAID"), /** VOIDED */ - VOIDED("VOIDED"); + VOIDED("VOIDED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/CurrencyCode.java b/src/main/java/com/xero/models/accounting/CurrencyCode.java index 215ad71d..043ddef4 100644 --- a/src/main/java/com/xero/models/accounting/CurrencyCode.java +++ b/src/main/java/com/xero/models/accounting/CurrencyCode.java @@ -520,7 +520,10 @@ public enum CurrencyCode { ZMK("ZMK"), /** ZWD */ - ZWD("ZWD"); + ZWD("ZWD"), + + /** EMPTY_CURRENCY */ + EMPTY_CURRENCY("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/Employee.java b/src/main/java/com/xero/models/accounting/Employee.java index a45e2510..0a8f8db3 100644 --- a/src/main/java/com/xero/models/accounting/Employee.java +++ b/src/main/java/com/xero/models/accounting/Employee.java @@ -41,7 +41,10 @@ public enum StatusEnum { GDPRREQUEST("GDPRREQUEST"), /** DELETED */ - DELETED("DELETED"); + DELETED("DELETED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/ExpenseClaim.java b/src/main/java/com/xero/models/accounting/ExpenseClaim.java index 2728219e..d5a77e59 100644 --- a/src/main/java/com/xero/models/accounting/ExpenseClaim.java +++ b/src/main/java/com/xero/models/accounting/ExpenseClaim.java @@ -45,7 +45,10 @@ public enum StatusEnum { VOIDED("VOIDED"), /** DELETED */ - DELETED("DELETED"); + DELETED("DELETED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/ExternalLink.java b/src/main/java/com/xero/models/accounting/ExternalLink.java index 54542495..0b95c6df 100644 --- a/src/main/java/com/xero/models/accounting/ExternalLink.java +++ b/src/main/java/com/xero/models/accounting/ExternalLink.java @@ -36,7 +36,10 @@ public enum LinkTypeEnum { TWITTER("Twitter"), /** WEBSITE */ - WEBSITE("Website"); + WEBSITE("Website"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/Invoice.java b/src/main/java/com/xero/models/accounting/Invoice.java index 469c5fbd..c39b496f 100644 --- a/src/main/java/com/xero/models/accounting/Invoice.java +++ b/src/main/java/com/xero/models/accounting/Invoice.java @@ -53,7 +53,10 @@ public enum TypeEnum { AROVERPAYMENT("AROVERPAYMENT"), /** ARPREPAYMENT */ - ARPREPAYMENT("ARPREPAYMENT"); + ARPREPAYMENT("ARPREPAYMENT"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -150,7 +153,10 @@ public enum StatusEnum { PAID("PAID"), /** VOIDED */ - VOIDED("VOIDED"); + VOIDED("VOIDED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/InvoiceAddress.java b/src/main/java/com/xero/models/accounting/InvoiceAddress.java index 8ab4136c..96331428 100644 --- a/src/main/java/com/xero/models/accounting/InvoiceAddress.java +++ b/src/main/java/com/xero/models/accounting/InvoiceAddress.java @@ -27,7 +27,10 @@ public enum InvoiceAddressTypeEnum { FROM("FROM"), /** TO */ - TO("TO"); + TO("TO"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/Journal.java b/src/main/java/com/xero/models/accounting/Journal.java index b55747f0..75f68d8c 100644 --- a/src/main/java/com/xero/models/accounting/Journal.java +++ b/src/main/java/com/xero/models/accounting/Journal.java @@ -122,7 +122,10 @@ public enum SourceTypeEnum { INTEGRATEDPAYROLLPTPAYMENT("INTEGRATEDPAYROLLPTPAYMENT"), /** INTEGRATEDPAYROLLCN */ - INTEGRATEDPAYROLLCN("INTEGRATEDPAYROLLCN"); + INTEGRATEDPAYROLLCN("INTEGRATEDPAYROLLCN"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/LineAmountTypes.java b/src/main/java/com/xero/models/accounting/LineAmountTypes.java index 3ad89e3b..f250edfa 100644 --- a/src/main/java/com/xero/models/accounting/LineAmountTypes.java +++ b/src/main/java/com/xero/models/accounting/LineAmountTypes.java @@ -28,7 +28,10 @@ public enum LineAmountTypes { INCLUSIVE("Inclusive"), /** NOTAX */ - NOTAX("NoTax"); + NOTAX("NoTax"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/LineItem.java b/src/main/java/com/xero/models/accounting/LineItem.java index 4072c8a2..53a04a99 100644 --- a/src/main/java/com/xero/models/accounting/LineItem.java +++ b/src/main/java/com/xero/models/accounting/LineItem.java @@ -85,7 +85,10 @@ public enum TaxabilityEnum { PART_TAXABLE("PART_TAXABLE"), /** NOT_APPLICABLE */ - NOT_APPLICABLE("NOT_APPLICABLE"); + NOT_APPLICABLE("NOT_APPLICABLE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/LinkedTransaction.java b/src/main/java/com/xero/models/accounting/LinkedTransaction.java index c2f7f083..f70de938 100644 --- a/src/main/java/com/xero/models/accounting/LinkedTransaction.java +++ b/src/main/java/com/xero/models/accounting/LinkedTransaction.java @@ -63,7 +63,10 @@ public enum StatusEnum { BILLED("BILLED"), /** VOIDED */ - VOIDED("VOIDED"); + VOIDED("VOIDED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -112,7 +115,10 @@ public static StatusEnum fromValue(String value) { /** This will always be BILLABLEEXPENSE. More types may be added in future. */ public enum TypeEnum { /** BILLABLEEXPENSE */ - BILLABLEEXPENSE("BILLABLEEXPENSE"); + BILLABLEEXPENSE("BILLABLEEXPENSE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -170,7 +176,10 @@ public enum SourceTransactionTypeCodeEnum { ACCPAY("ACCPAY"), /** SPEND */ - SPEND("SPEND"); + SPEND("SPEND"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/ManualJournal.java b/src/main/java/com/xero/models/accounting/ManualJournal.java index 8b613d74..0a4a0018 100644 --- a/src/main/java/com/xero/models/accounting/ManualJournal.java +++ b/src/main/java/com/xero/models/accounting/ManualJournal.java @@ -56,7 +56,10 @@ public enum StatusEnum { VOIDED("VOIDED"), /** ARCHIVED */ - ARCHIVED("ARCHIVED"); + ARCHIVED("ARCHIVED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/Organisation.java b/src/main/java/com/xero/models/accounting/Organisation.java index 2c933dd1..119ff269 100644 --- a/src/main/java/com/xero/models/accounting/Organisation.java +++ b/src/main/java/com/xero/models/accounting/Organisation.java @@ -74,7 +74,10 @@ public enum VersionEnum { UKONRAMP("UKONRAMP"), /** USONRAMP */ - USONRAMP("USONRAMP"); + USONRAMP("USONRAMP"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -159,7 +162,10 @@ public enum OrganisationTypeEnum { SUPERANNUATION_FUND("SUPERANNUATION_FUND"), /** TRUST */ - TRUST("TRUST"); + TRUST("TRUST"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -256,7 +262,10 @@ public enum SalesTaxBasisEnum { FLATRATEACCRUAL("FLATRATEACCRUAL"), /** ACCRUALS */ - ACCRUALS("ACCRUALS"); + ACCRUALS("ACCRUALS"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -347,7 +356,10 @@ public enum SalesTaxPeriodEnum { YEARLY("YEARLY"), /** NONE */ - NONE("NONE"); + NONE("NONE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -450,7 +462,10 @@ public enum OrganisationEntityTypeEnum { SUPERANNUATION_FUND("SUPERANNUATION_FUND"), /** TRUST */ - TRUST("TRUST"); + TRUST("TRUST"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -562,7 +577,10 @@ public enum PropertyClassEnum { GROW("GROW"), /** COMPREHENSIVE */ - COMPREHENSIVE("COMPREHENSIVE"); + COMPREHENSIVE("COMPREHENSIVE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -617,7 +635,10 @@ public enum EditionEnum { BUSINESS("BUSINESS"), /** PARTNER */ - PARTNER("PARTNER"); + PARTNER("PARTNER"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/Overpayment.java b/src/main/java/com/xero/models/accounting/Overpayment.java index a23e4a59..5526bf71 100644 --- a/src/main/java/com/xero/models/accounting/Overpayment.java +++ b/src/main/java/com/xero/models/accounting/Overpayment.java @@ -38,7 +38,10 @@ public enum TypeEnum { SPEND_OVERPAYMENT("SPEND-OVERPAYMENT"), /** AROVERPAYMENT */ - AROVERPAYMENT("AROVERPAYMENT"); + AROVERPAYMENT("AROVERPAYMENT"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -99,7 +102,10 @@ public enum StatusEnum { PAID("PAID"), /** VOIDED */ - VOIDED("VOIDED"); + VOIDED("VOIDED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/Payment.java b/src/main/java/com/xero/models/accounting/Payment.java index 190b52a5..e2cab442 100644 --- a/src/main/java/com/xero/models/accounting/Payment.java +++ b/src/main/java/com/xero/models/accounting/Payment.java @@ -80,7 +80,10 @@ public enum StatusEnum { AUTHORISED("AUTHORISED"), /** DELETED */ - DELETED("DELETED"); + DELETED("DELETED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -150,7 +153,10 @@ public enum PaymentTypeEnum { APPREPAYMENTPAYMENT("APPREPAYMENTPAYMENT"), /** APOVERPAYMENTPAYMENT */ - APOVERPAYMENTPAYMENT("APOVERPAYMENTPAYMENT"); + APOVERPAYMENTPAYMENT("APOVERPAYMENTPAYMENT"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/PaymentTermType.java b/src/main/java/com/xero/models/accounting/PaymentTermType.java index 3cb2eac9..89406c67 100644 --- a/src/main/java/com/xero/models/accounting/PaymentTermType.java +++ b/src/main/java/com/xero/models/accounting/PaymentTermType.java @@ -28,7 +28,10 @@ public enum PaymentTermType { OFCURRENTMONTH("OFCURRENTMONTH"), /** OFFOLLOWINGMONTH */ - OFFOLLOWINGMONTH("OFFOLLOWINGMONTH"); + OFFOLLOWINGMONTH("OFFOLLOWINGMONTH"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/Phone.java b/src/main/java/com/xero/models/accounting/Phone.java index 6d8c2093..989b76a2 100644 --- a/src/main/java/com/xero/models/accounting/Phone.java +++ b/src/main/java/com/xero/models/accounting/Phone.java @@ -36,7 +36,10 @@ public enum PhoneTypeEnum { FAX("FAX"), /** OFFICE */ - OFFICE("OFFICE"); + OFFICE("OFFICE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/Prepayment.java b/src/main/java/com/xero/models/accounting/Prepayment.java index f1ca88e0..9535c627 100644 --- a/src/main/java/com/xero/models/accounting/Prepayment.java +++ b/src/main/java/com/xero/models/accounting/Prepayment.java @@ -41,7 +41,10 @@ public enum TypeEnum { ARPREPAYMENT("ARPREPAYMENT"), /** APPREPAYMENT */ - APPREPAYMENT("APPREPAYMENT"); + APPREPAYMENT("APPREPAYMENT"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -102,7 +105,10 @@ public enum StatusEnum { PAID("PAID"), /** VOIDED */ - VOIDED("VOIDED"); + VOIDED("VOIDED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/PurchaseOrder.java b/src/main/java/com/xero/models/accounting/PurchaseOrder.java index 0c2e5015..fc89e6a2 100644 --- a/src/main/java/com/xero/models/accounting/PurchaseOrder.java +++ b/src/main/java/com/xero/models/accounting/PurchaseOrder.java @@ -71,7 +71,10 @@ public enum StatusEnum { BILLED("BILLED"), /** DELETED */ - DELETED("DELETED"); + DELETED("DELETED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/QuoteLineAmountTypes.java b/src/main/java/com/xero/models/accounting/QuoteLineAmountTypes.java index 13efc8e2..6c4fc73a 100644 --- a/src/main/java/com/xero/models/accounting/QuoteLineAmountTypes.java +++ b/src/main/java/com/xero/models/accounting/QuoteLineAmountTypes.java @@ -28,7 +28,10 @@ public enum QuoteLineAmountTypes { INCLUSIVE("INCLUSIVE"), /** NOTAX */ - NOTAX("NOTAX"); + NOTAX("NOTAX"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/QuoteStatusCodes.java b/src/main/java/com/xero/models/accounting/QuoteStatusCodes.java index 97a2731f..0d78ce52 100644 --- a/src/main/java/com/xero/models/accounting/QuoteStatusCodes.java +++ b/src/main/java/com/xero/models/accounting/QuoteStatusCodes.java @@ -34,7 +34,10 @@ public enum QuoteStatusCodes { INVOICED("INVOICED"), /** DELETED */ - DELETED("DELETED"); + DELETED("DELETED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/Receipt.java b/src/main/java/com/xero/models/accounting/Receipt.java index 8275cbd4..479f1489 100644 --- a/src/main/java/com/xero/models/accounting/Receipt.java +++ b/src/main/java/com/xero/models/accounting/Receipt.java @@ -74,7 +74,10 @@ public enum StatusEnum { DECLINED("DECLINED"), /** VOIDED */ - VOIDED("VOIDED"); + VOIDED("VOIDED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/RepeatingInvoice.java b/src/main/java/com/xero/models/accounting/RepeatingInvoice.java index 9d9994ac..efa27ba4 100644 --- a/src/main/java/com/xero/models/accounting/RepeatingInvoice.java +++ b/src/main/java/com/xero/models/accounting/RepeatingInvoice.java @@ -30,7 +30,10 @@ public enum TypeEnum { ACCPAY("ACCPAY"), /** ACCREC */ - ACCREC("ACCREC"); + ACCREC("ACCREC"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -106,7 +109,10 @@ public enum StatusEnum { AUTHORISED("AUTHORISED"), /** DELETED */ - DELETED("DELETED"); + DELETED("DELETED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/Report.java b/src/main/java/com/xero/models/accounting/Report.java index 09623b7c..491d7eb6 100644 --- a/src/main/java/com/xero/models/accounting/Report.java +++ b/src/main/java/com/xero/models/accounting/Report.java @@ -31,7 +31,10 @@ public class Report { /** See Prepayment Types */ public enum ReportTypeEnum { /** AGEDPAYABLESBYCONTACT */ - AGEDPAYABLESBYCONTACT("AgedPayablesByContact"); + AGEDPAYABLESBYCONTACT("AgedPayablesByContact"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/RowType.java b/src/main/java/com/xero/models/accounting/RowType.java index 5c48346c..20dab37d 100644 --- a/src/main/java/com/xero/models/accounting/RowType.java +++ b/src/main/java/com/xero/models/accounting/RowType.java @@ -28,7 +28,10 @@ public enum RowType { ROW("Row"), /** SUMMARYROW */ - SUMMARYROW("SummaryRow"); + SUMMARYROW("SummaryRow"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/Schedule.java b/src/main/java/com/xero/models/accounting/Schedule.java index 880405eb..a04c847c 100644 --- a/src/main/java/com/xero/models/accounting/Schedule.java +++ b/src/main/java/com/xero/models/accounting/Schedule.java @@ -34,7 +34,10 @@ public enum UnitEnum { WEEKLY("WEEKLY"), /** MONTHLY */ - MONTHLY("MONTHLY"); + MONTHLY("MONTHLY"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -101,7 +104,10 @@ public enum DueDateTypeEnum { OFCURRENTMONTH("OFCURRENTMONTH"), /** OFFOLLOWINGMONTH */ - OFFOLLOWINGMONTH("OFFOLLOWINGMONTH"); + OFFOLLOWINGMONTH("OFFOLLOWINGMONTH"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/TaxBreakdownComponent.java b/src/main/java/com/xero/models/accounting/TaxBreakdownComponent.java index afb2834a..416fd5d8 100644 --- a/src/main/java/com/xero/models/accounting/TaxBreakdownComponent.java +++ b/src/main/java/com/xero/models/accounting/TaxBreakdownComponent.java @@ -41,7 +41,10 @@ public enum TypeEnum { USCITY("SYSGST/USCITY"), /** USSPECIAL */ - USSPECIAL("SYSGST/USSPECIAL"); + USSPECIAL("SYSGST/USSPECIAL"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/TaxRate.java b/src/main/java/com/xero/models/accounting/TaxRate.java index fb2b3b6f..33e1ab18 100644 --- a/src/main/java/com/xero/models/accounting/TaxRate.java +++ b/src/main/java/com/xero/models/accounting/TaxRate.java @@ -44,7 +44,10 @@ public enum StatusEnum { ARCHIVED("ARCHIVED"), /** PENDING */ - PENDING("PENDING"); + PENDING("PENDING"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -387,7 +390,10 @@ public enum ReportTaxTypeEnum { USSALESTAX("USSALESTAX"), /** BLINPUT3 */ - BLINPUT3("BLINPUT3"); + BLINPUT3("BLINPUT3"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/TaxType.java b/src/main/java/com/xero/models/accounting/TaxType.java index a11ef1a1..840e8be7 100644 --- a/src/main/java/com/xero/models/accounting/TaxType.java +++ b/src/main/java/com/xero/models/accounting/TaxType.java @@ -385,7 +385,10 @@ public enum TaxType { BLINPUT3Y23("BLINPUT3Y23"), /** BLINPUT3Y24 */ - BLINPUT3Y24("BLINPUT3Y24"); + BLINPUT3Y24("BLINPUT3Y24"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/TenNinetyNineContact.java b/src/main/java/com/xero/models/accounting/TenNinetyNineContact.java index 07d0a77e..e4e33d16 100644 --- a/src/main/java/com/xero/models/accounting/TenNinetyNineContact.java +++ b/src/main/java/com/xero/models/accounting/TenNinetyNineContact.java @@ -115,7 +115,10 @@ public enum FederalTaxClassificationEnum { S_CORP("S_CORP"), /** OTHER */ - OTHER("OTHER"); + OTHER("OTHER"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/TimeZone.java b/src/main/java/com/xero/models/accounting/TimeZone.java index 2c40ffa3..ce81c5f6 100644 --- a/src/main/java/com/xero/models/accounting/TimeZone.java +++ b/src/main/java/com/xero/models/accounting/TimeZone.java @@ -439,7 +439,10 @@ public enum TimeZone { YAKUTSKSTANDARDTIME("YAKUTSKSTANDARDTIME"), /** YUKONSTANDARDTIME */ - YUKONSTANDARDTIME("YUKONSTANDARDTIME"); + YUKONSTANDARDTIME("YUKONSTANDARDTIME"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/TrackingCategory.java b/src/main/java/com/xero/models/accounting/TrackingCategory.java index 528c0812..e8c1be3b 100644 --- a/src/main/java/com/xero/models/accounting/TrackingCategory.java +++ b/src/main/java/com/xero/models/accounting/TrackingCategory.java @@ -45,7 +45,10 @@ public enum StatusEnum { ARCHIVED("ARCHIVED"), /** DELETED */ - DELETED("DELETED"); + DELETED("DELETED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/TrackingOption.java b/src/main/java/com/xero/models/accounting/TrackingOption.java index 6a00d5a2..2f1fa1d8 100644 --- a/src/main/java/com/xero/models/accounting/TrackingOption.java +++ b/src/main/java/com/xero/models/accounting/TrackingOption.java @@ -37,7 +37,10 @@ public enum StatusEnum { ARCHIVED("ARCHIVED"), /** DELETED */ - DELETED("DELETED"); + DELETED("DELETED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/accounting/User.java b/src/main/java/com/xero/models/accounting/User.java index 79bea118..4075f945 100644 --- a/src/main/java/com/xero/models/accounting/User.java +++ b/src/main/java/com/xero/models/accounting/User.java @@ -66,7 +66,10 @@ public enum OrganisationRoleEnum { CASHBOOKCLIENT("CASHBOOKCLIENT"), /** UNKNOWN */ - UNKNOWN("UNKNOWN"); + UNKNOWN("UNKNOWN"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/appstore/Plan.java b/src/main/java/com/xero/models/appstore/Plan.java index 80e70261..193288e7 100644 --- a/src/main/java/com/xero/models/appstore/Plan.java +++ b/src/main/java/com/xero/models/appstore/Plan.java @@ -39,7 +39,10 @@ public enum StatusEnum { CANCELED("CANCELED"), /** PENDING_ACTIVATION */ - PENDING_ACTIVATION("PENDING_ACTIVATION"); + PENDING_ACTIVATION("PENDING_ACTIVATION"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/appstore/Product.java b/src/main/java/com/xero/models/appstore/Product.java index 76f3852e..0c5f0ac8 100644 --- a/src/main/java/com/xero/models/appstore/Product.java +++ b/src/main/java/com/xero/models/appstore/Product.java @@ -44,7 +44,10 @@ public enum TypeEnum { PER_SEAT("PER_SEAT"), /** METERED */ - METERED("METERED"); + METERED("METERED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/appstore/Subscription.java b/src/main/java/com/xero/models/appstore/Subscription.java index f39acafa..9b311e0b 100644 --- a/src/main/java/com/xero/models/appstore/Subscription.java +++ b/src/main/java/com/xero/models/appstore/Subscription.java @@ -52,7 +52,10 @@ public enum StatusEnum { CANCELED("CANCELED"), /** PAST_DUE */ - PAST_DUE("PAST_DUE"); + PAST_DUE("PAST_DUE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/appstore/SubscriptionItem.java b/src/main/java/com/xero/models/appstore/SubscriptionItem.java index 6701f4cb..f01a7cd3 100644 --- a/src/main/java/com/xero/models/appstore/SubscriptionItem.java +++ b/src/main/java/com/xero/models/appstore/SubscriptionItem.java @@ -53,7 +53,10 @@ public enum StatusEnum { CANCELED("CANCELED"), /** PENDING_ACTIVATION */ - PENDING_ACTIVATION("PENDING_ACTIVATION"); + PENDING_ACTIVATION("PENDING_ACTIVATION"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/assets/AssetStatus.java b/src/main/java/com/xero/models/assets/AssetStatus.java index dc343862..2986de02 100644 --- a/src/main/java/com/xero/models/assets/AssetStatus.java +++ b/src/main/java/com/xero/models/assets/AssetStatus.java @@ -25,7 +25,10 @@ public enum AssetStatus { REGISTERED("Registered"), /** DISPOSED */ - DISPOSED("Disposed"); + DISPOSED("Disposed"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/assets/AssetStatusQueryParam.java b/src/main/java/com/xero/models/assets/AssetStatusQueryParam.java index cbf15350..355a4f2a 100644 --- a/src/main/java/com/xero/models/assets/AssetStatusQueryParam.java +++ b/src/main/java/com/xero/models/assets/AssetStatusQueryParam.java @@ -25,7 +25,10 @@ public enum AssetStatusQueryParam { REGISTERED("REGISTERED"), /** DISPOSED */ - DISPOSED("DISPOSED"); + DISPOSED("DISPOSED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/assets/BookDepreciationSetting.java b/src/main/java/com/xero/models/assets/BookDepreciationSetting.java index 22314d9c..a8c7d847 100644 --- a/src/main/java/com/xero/models/assets/BookDepreciationSetting.java +++ b/src/main/java/com/xero/models/assets/BookDepreciationSetting.java @@ -40,7 +40,10 @@ public enum DepreciationMethodEnum { DIMINISHINGVALUE200("DiminishingValue200"), /** FULLDEPRECIATION */ - FULLDEPRECIATION("FullDepreciation"); + FULLDEPRECIATION("FullDepreciation"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -92,7 +95,10 @@ public enum AveragingMethodEnum { FULLMONTH("FullMonth"), /** ACTUALDAYS */ - ACTUALDAYS("ActualDays"); + ACTUALDAYS("ActualDays"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -153,7 +159,10 @@ public enum DepreciationCalculationMethodEnum { LIFE("Life"), /** NONE */ - NONE("None"); + NONE("None"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/bankfeeds/CountryCode.java b/src/main/java/com/xero/models/bankfeeds/CountryCode.java index dc1ed877..75ee96f3 100644 --- a/src/main/java/com/xero/models/bankfeeds/CountryCode.java +++ b/src/main/java/com/xero/models/bankfeeds/CountryCode.java @@ -739,7 +739,10 @@ public enum CountryCode { ZM("ZM"), /** ZW */ - ZW("ZW"); + ZW("ZW"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/bankfeeds/CreditDebitIndicator.java b/src/main/java/com/xero/models/bankfeeds/CreditDebitIndicator.java index ffe001f3..ec60954f 100644 --- a/src/main/java/com/xero/models/bankfeeds/CreditDebitIndicator.java +++ b/src/main/java/com/xero/models/bankfeeds/CreditDebitIndicator.java @@ -25,7 +25,10 @@ public enum CreditDebitIndicator { CREDIT("CREDIT"), /** DEBIT */ - DEBIT("DEBIT"); + DEBIT("DEBIT"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/bankfeeds/CurrencyCode.java b/src/main/java/com/xero/models/bankfeeds/CurrencyCode.java index f93634b9..d6d8a1a3 100644 --- a/src/main/java/com/xero/models/bankfeeds/CurrencyCode.java +++ b/src/main/java/com/xero/models/bankfeeds/CurrencyCode.java @@ -505,7 +505,10 @@ public enum CurrencyCode { ZMK("ZMK"), /** ZWD */ - ZWD("ZWD"); + ZWD("ZWD"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/bankfeeds/Error.java b/src/main/java/com/xero/models/bankfeeds/Error.java index aaa7e1e8..584e931e 100644 --- a/src/main/java/com/xero/models/bankfeeds/Error.java +++ b/src/main/java/com/xero/models/bankfeeds/Error.java @@ -103,7 +103,10 @@ public enum TypeEnum { ACCOUNT_NOT_VALID("account-not-valid"), /** FEED_NOT_FOUND_OR_ALREADY_DELETED */ - FEED_NOT_FOUND_OR_ALREADY_DELETED("feed-not-found-or-already-deleted"); + FEED_NOT_FOUND_OR_ALREADY_DELETED("feed-not-found-or-already-deleted"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/bankfeeds/FeedConnection.java b/src/main/java/com/xero/models/bankfeeds/FeedConnection.java index d1d47b2d..9b56c75c 100644 --- a/src/main/java/com/xero/models/bankfeeds/FeedConnection.java +++ b/src/main/java/com/xero/models/bankfeeds/FeedConnection.java @@ -46,7 +46,10 @@ public enum AccountTypeEnum { BANK("BANK"), /** CREDITCARD */ - CREDITCARD("CREDITCARD"); + CREDITCARD("CREDITCARD"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -104,7 +107,10 @@ public enum StatusEnum { PENDING("PENDING"), /** REJECTED */ - REJECTED("REJECTED"); + REJECTED("REJECTED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/bankfeeds/Statement.java b/src/main/java/com/xero/models/bankfeeds/Statement.java index e4e41a59..4c951411 100644 --- a/src/main/java/com/xero/models/bankfeeds/Statement.java +++ b/src/main/java/com/xero/models/bankfeeds/Statement.java @@ -40,7 +40,10 @@ public enum StatusEnum { REJECTED("REJECTED"), /** DELIVERED */ - DELIVERED("DELIVERED"); + DELIVERED("DELIVERED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/file/ObjectGroup.java b/src/main/java/com/xero/models/file/ObjectGroup.java index 92f6b383..d1c8404f 100644 --- a/src/main/java/com/xero/models/file/ObjectGroup.java +++ b/src/main/java/com/xero/models/file/ObjectGroup.java @@ -55,7 +55,10 @@ public enum ObjectGroup { QUOTE("Quote"), /** RECEIPT */ - RECEIPT("Receipt"); + RECEIPT("Receipt"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/file/ObjectType.java b/src/main/java/com/xero/models/file/ObjectType.java index f4b08c9a..945b3a49 100644 --- a/src/main/java/com/xero/models/file/ObjectType.java +++ b/src/main/java/com/xero/models/file/ObjectType.java @@ -184,7 +184,10 @@ public enum ObjectType { NONCURRENT("NonCurrent"), /** SALESQUOTE */ - SALESQUOTE("SalesQuote"); + SALESQUOTE("SalesQuote"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/finance/ProblemType.java b/src/main/java/com/xero/models/finance/ProblemType.java index 5a166748..180c4984 100644 --- a/src/main/java/com/xero/models/finance/ProblemType.java +++ b/src/main/java/com/xero/models/finance/ProblemType.java @@ -49,7 +49,10 @@ public enum ProblemType { UNAUTHORIZED("unauthorized"), /** RATE_LIMIT_ERROR */ - RATE_LIMIT_ERROR("rate-limit-error"); + RATE_LIMIT_ERROR("rate-limit-error"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/AccountType.java b/src/main/java/com/xero/models/payrollau/AccountType.java index 63600280..ba18168e 100644 --- a/src/main/java/com/xero/models/payrollau/AccountType.java +++ b/src/main/java/com/xero/models/payrollau/AccountType.java @@ -85,7 +85,10 @@ public enum AccountType { WAGESEXPENSE("WAGESEXPENSE"), /** WAGESPAYABLELIABILITY */ - WAGESPAYABLELIABILITY("WAGESPAYABLELIABILITY"); + WAGESPAYABLELIABILITY("WAGESPAYABLELIABILITY"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/AllowanceCategory.java b/src/main/java/com/xero/models/payrollau/AllowanceCategory.java index bf999ffc..cdfd188f 100644 --- a/src/main/java/com/xero/models/payrollau/AllowanceCategory.java +++ b/src/main/java/com/xero/models/payrollau/AllowanceCategory.java @@ -37,7 +37,10 @@ public enum AllowanceCategory { GENERAL("GENERAL"), /** OTHER */ - OTHER("OTHER"); + OTHER("OTHER"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/AllowanceType.java b/src/main/java/com/xero/models/payrollau/AllowanceType.java index 47589379..f6c2cde2 100644 --- a/src/main/java/com/xero/models/payrollau/AllowanceType.java +++ b/src/main/java/com/xero/models/payrollau/AllowanceType.java @@ -43,7 +43,10 @@ public enum AllowanceType { TASKS("TASKS"), /** QUALIFICATIONS */ - QUALIFICATIONS("QUALIFICATIONS"); + QUALIFICATIONS("QUALIFICATIONS"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/CalendarType.java b/src/main/java/com/xero/models/payrollau/CalendarType.java index e0239f32..133a0fd9 100644 --- a/src/main/java/com/xero/models/payrollau/CalendarType.java +++ b/src/main/java/com/xero/models/payrollau/CalendarType.java @@ -34,7 +34,10 @@ public enum CalendarType { TWICEMONTHLY("TWICEMONTHLY"), /** QUARTERLY */ - QUARTERLY("QUARTERLY"); + QUARTERLY("QUARTERLY"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/CountryOfResidence.java b/src/main/java/com/xero/models/payrollau/CountryOfResidence.java index 03e1a30a..7abb7ddf 100644 --- a/src/main/java/com/xero/models/payrollau/CountryOfResidence.java +++ b/src/main/java/com/xero/models/payrollau/CountryOfResidence.java @@ -770,7 +770,10 @@ public enum CountryOfResidence { SX("SX"), /** SS */ - SS("SS"); + SS("SS"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/DeductionType.java b/src/main/java/com/xero/models/payrollau/DeductionType.java index d0146d54..1da536c0 100644 --- a/src/main/java/com/xero/models/payrollau/DeductionType.java +++ b/src/main/java/com/xero/models/payrollau/DeductionType.java @@ -54,7 +54,10 @@ public enum DeductionCategoryEnum { UNIONFEES("UNIONFEES"), /** WORKPLACEGIVING */ - WORKPLACEGIVING("WORKPLACEGIVING"); + WORKPLACEGIVING("WORKPLACEGIVING"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/DeductionTypeCalculationType.java b/src/main/java/com/xero/models/payrollau/DeductionTypeCalculationType.java index 51cd42de..f63afd06 100644 --- a/src/main/java/com/xero/models/payrollau/DeductionTypeCalculationType.java +++ b/src/main/java/com/xero/models/payrollau/DeductionTypeCalculationType.java @@ -25,7 +25,10 @@ public enum DeductionTypeCalculationType { PRETAX("PRETAX"), /** POSTTAX */ - POSTTAX("POSTTAX"); + POSTTAX("POSTTAX"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/EarningsRateCalculationType.java b/src/main/java/com/xero/models/payrollau/EarningsRateCalculationType.java index d4d9c5de..78cd2236 100644 --- a/src/main/java/com/xero/models/payrollau/EarningsRateCalculationType.java +++ b/src/main/java/com/xero/models/payrollau/EarningsRateCalculationType.java @@ -25,7 +25,10 @@ public enum EarningsRateCalculationType { ENTEREARNINGSRATE("ENTEREARNINGSRATE"), /** ANNUALSALARY */ - ANNUALSALARY("ANNUALSALARY"); + ANNUALSALARY("ANNUALSALARY"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/EarningsType.java b/src/main/java/com/xero/models/payrollau/EarningsType.java index ac50f8c8..237378cf 100644 --- a/src/main/java/com/xero/models/payrollau/EarningsType.java +++ b/src/main/java/com/xero/models/payrollau/EarningsType.java @@ -58,7 +58,10 @@ public enum EarningsType { PAIDPARENTALLEAVE("PAIDPARENTALLEAVE"), /** WORKERSCOMPENSATION */ - WORKERSCOMPENSATION("WORKERSCOMPENSATION"); + WORKERSCOMPENSATION("WORKERSCOMPENSATION"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/Employee.java b/src/main/java/com/xero/models/payrollau/Employee.java index 136a2367..011e9eab 100644 --- a/src/main/java/com/xero/models/payrollau/Employee.java +++ b/src/main/java/com/xero/models/payrollau/Employee.java @@ -65,7 +65,10 @@ public enum GenderEnum { F("F"), /** I */ - I("I"); + I("I"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -183,7 +186,10 @@ public enum TerminationReasonEnum { C("C"), /** T */ - T("T"); + T("T"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/EmployeeStatus.java b/src/main/java/com/xero/models/payrollau/EmployeeStatus.java index 42bcefaf..0b3ea4d0 100644 --- a/src/main/java/com/xero/models/payrollau/EmployeeStatus.java +++ b/src/main/java/com/xero/models/payrollau/EmployeeStatus.java @@ -22,7 +22,10 @@ public enum EmployeeStatus { ACTIVE("ACTIVE"), /** TERMINATED */ - TERMINATED("TERMINATED"); + TERMINATED("TERMINATED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/EmploymentBasis.java b/src/main/java/com/xero/models/payrollau/EmploymentBasis.java index a4138d01..c20f5da4 100644 --- a/src/main/java/com/xero/models/payrollau/EmploymentBasis.java +++ b/src/main/java/com/xero/models/payrollau/EmploymentBasis.java @@ -34,7 +34,10 @@ public enum EmploymentBasis { SUPERINCOMESTREAM("SUPERINCOMESTREAM"), /** NONEMPLOYEE */ - NONEMPLOYEE("NONEMPLOYEE"); + NONEMPLOYEE("NONEMPLOYEE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/EmploymentTerminationPaymentType.java b/src/main/java/com/xero/models/payrollau/EmploymentTerminationPaymentType.java index 3b2a6caa..b5bdbbc0 100644 --- a/src/main/java/com/xero/models/payrollau/EmploymentTerminationPaymentType.java +++ b/src/main/java/com/xero/models/payrollau/EmploymentTerminationPaymentType.java @@ -22,7 +22,10 @@ public enum EmploymentTerminationPaymentType { O("O"), /** R */ - R("R"); + R("R"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/EmploymentType.java b/src/main/java/com/xero/models/payrollau/EmploymentType.java index 900d2880..74cc9f3c 100644 --- a/src/main/java/com/xero/models/payrollau/EmploymentType.java +++ b/src/main/java/com/xero/models/payrollau/EmploymentType.java @@ -22,7 +22,10 @@ public enum EmploymentType { EMPLOYEE("EMPLOYEE"), /** CONTRACTOR */ - CONTRACTOR("CONTRACTOR"); + CONTRACTOR("CONTRACTOR"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/EntitlementFinalPayPayoutType.java b/src/main/java/com/xero/models/payrollau/EntitlementFinalPayPayoutType.java index eba35477..9b3c7b59 100644 --- a/src/main/java/com/xero/models/payrollau/EntitlementFinalPayPayoutType.java +++ b/src/main/java/com/xero/models/payrollau/EntitlementFinalPayPayoutType.java @@ -22,7 +22,10 @@ public enum EntitlementFinalPayPayoutType { NOTPAIDOUT("NOTPAIDOUT"), /** PAIDOUT */ - PAIDOUT("PAIDOUT"); + PAIDOUT("PAIDOUT"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/IncomeType.java b/src/main/java/com/xero/models/payrollau/IncomeType.java index 7267e509..c8c66ce3 100644 --- a/src/main/java/com/xero/models/payrollau/IncomeType.java +++ b/src/main/java/com/xero/models/payrollau/IncomeType.java @@ -31,7 +31,10 @@ public enum IncomeType { CLOSELYHELDPAYEES("CLOSELYHELDPAYEES"), /** LABOURHIRE */ - LABOURHIRE("LABOURHIRE"); + LABOURHIRE("LABOURHIRE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/LeaveCategoryCode.java b/src/main/java/com/xero/models/payrollau/LeaveCategoryCode.java index 4fc5981a..41a6fb10 100644 --- a/src/main/java/com/xero/models/payrollau/LeaveCategoryCode.java +++ b/src/main/java/com/xero/models/payrollau/LeaveCategoryCode.java @@ -52,7 +52,10 @@ public enum LeaveCategoryCode { JURYDUTYLEAVE("JURYDUTYLEAVE"), /** DEFENCERESERVELEAVE */ - DEFENCERESERVELEAVE("DEFENCERESERVELEAVE"); + DEFENCERESERVELEAVE("DEFENCERESERVELEAVE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/LeaveLineCalculationType.java b/src/main/java/com/xero/models/payrollau/LeaveLineCalculationType.java index 303413ae..d73dad76 100644 --- a/src/main/java/com/xero/models/payrollau/LeaveLineCalculationType.java +++ b/src/main/java/com/xero/models/payrollau/LeaveLineCalculationType.java @@ -28,7 +28,10 @@ public enum LeaveLineCalculationType { ENTERRATEINPAYTEMPLATE("ENTERRATEINPAYTEMPLATE"), /** BASEDONORDINARYEARNINGS */ - BASEDONORDINARYEARNINGS("BASEDONORDINARYEARNINGS"); + BASEDONORDINARYEARNINGS("BASEDONORDINARYEARNINGS"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/LeavePeriodStatus.java b/src/main/java/com/xero/models/payrollau/LeavePeriodStatus.java index a5904dfa..e114386e 100644 --- a/src/main/java/com/xero/models/payrollau/LeavePeriodStatus.java +++ b/src/main/java/com/xero/models/payrollau/LeavePeriodStatus.java @@ -28,7 +28,10 @@ public enum LeavePeriodStatus { REQUESTED("REQUESTED"), /** REJECTED */ - REJECTED("REJECTED"); + REJECTED("REJECTED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/LeaveTypeContributionType.java b/src/main/java/com/xero/models/payrollau/LeaveTypeContributionType.java index 43a67f37..2ead5e74 100644 --- a/src/main/java/com/xero/models/payrollau/LeaveTypeContributionType.java +++ b/src/main/java/com/xero/models/payrollau/LeaveTypeContributionType.java @@ -28,7 +28,10 @@ public enum LeaveTypeContributionType { EMPLOYERADDITIONAL("EMPLOYERADDITIONAL"), /** EMPLOYEE */ - EMPLOYEE("EMPLOYEE"); + EMPLOYEE("EMPLOYEE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/ManualTaxType.java b/src/main/java/com/xero/models/payrollau/ManualTaxType.java index 690a62ed..0c95c96a 100644 --- a/src/main/java/com/xero/models/payrollau/ManualTaxType.java +++ b/src/main/java/com/xero/models/payrollau/ManualTaxType.java @@ -34,7 +34,10 @@ public enum ManualTaxType { SCHEDULE5STSLMANUAL("SCHEDULE5STSLMANUAL"), /** SCHEDULE4MANUAL */ - SCHEDULE4MANUAL("SCHEDULE4MANUAL"); + SCHEDULE4MANUAL("SCHEDULE4MANUAL"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/PayOutType.java b/src/main/java/com/xero/models/payrollau/PayOutType.java index 961db41d..c2e61f12 100644 --- a/src/main/java/com/xero/models/payrollau/PayOutType.java +++ b/src/main/java/com/xero/models/payrollau/PayOutType.java @@ -22,7 +22,10 @@ public enum PayOutType { DEFAULT("DEFAULT"), /** CASHED_OUT */ - CASHED_OUT("CASHED_OUT"); + CASHED_OUT("CASHED_OUT"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/PayRunStatus.java b/src/main/java/com/xero/models/payrollau/PayRunStatus.java index e31052d9..4225f520 100644 --- a/src/main/java/com/xero/models/payrollau/PayRunStatus.java +++ b/src/main/java/com/xero/models/payrollau/PayRunStatus.java @@ -22,7 +22,10 @@ public enum PayRunStatus { DRAFT("DRAFT"), /** POSTED */ - POSTED("POSTED"); + POSTED("POSTED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/PaymentFrequencyType.java b/src/main/java/com/xero/models/payrollau/PaymentFrequencyType.java index b9c4c6c0..b2fa24b5 100644 --- a/src/main/java/com/xero/models/payrollau/PaymentFrequencyType.java +++ b/src/main/java/com/xero/models/payrollau/PaymentFrequencyType.java @@ -37,7 +37,10 @@ public enum PaymentFrequencyType { FOURWEEKLY("FOURWEEKLY"), /** YEARLY */ - YEARLY("YEARLY"); + YEARLY("YEARLY"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/RateType.java b/src/main/java/com/xero/models/payrollau/RateType.java index 8abc1a64..b7060731 100644 --- a/src/main/java/com/xero/models/payrollau/RateType.java +++ b/src/main/java/com/xero/models/payrollau/RateType.java @@ -25,7 +25,10 @@ public enum RateType { MULTIPLE("MULTIPLE"), /** RATEPERUNIT */ - RATEPERUNIT("RATEPERUNIT"); + RATEPERUNIT("RATEPERUNIT"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/ResidencyStatus.java b/src/main/java/com/xero/models/payrollau/ResidencyStatus.java index 12c988a8..91de2924 100644 --- a/src/main/java/com/xero/models/payrollau/ResidencyStatus.java +++ b/src/main/java/com/xero/models/payrollau/ResidencyStatus.java @@ -25,7 +25,10 @@ public enum ResidencyStatus { FOREIGNRESIDENT("FOREIGNRESIDENT"), /** WORKINGHOLIDAYMAKER */ - WORKINGHOLIDAYMAKER("WORKINGHOLIDAYMAKER"); + WORKINGHOLIDAYMAKER("WORKINGHOLIDAYMAKER"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/SeniorMaritalStatus.java b/src/main/java/com/xero/models/payrollau/SeniorMaritalStatus.java index 21791506..5df9a1cd 100644 --- a/src/main/java/com/xero/models/payrollau/SeniorMaritalStatus.java +++ b/src/main/java/com/xero/models/payrollau/SeniorMaritalStatus.java @@ -25,7 +25,10 @@ public enum SeniorMaritalStatus { MEMBEROFILLNESSSEPARATEDCOUPLE("MEMBEROFILLNESSSEPARATEDCOUPLE"), /** SINGLE */ - SINGLE("SINGLE"); + SINGLE("SINGLE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/State.java b/src/main/java/com/xero/models/payrollau/State.java index 279bb3a7..4a1172d2 100644 --- a/src/main/java/com/xero/models/payrollau/State.java +++ b/src/main/java/com/xero/models/payrollau/State.java @@ -40,7 +40,10 @@ public enum State { VIC("VIC"), /** WA */ - WA("WA"); + WA("WA"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/SuperFundType.java b/src/main/java/com/xero/models/payrollau/SuperFundType.java index 29ce8884..ef71e9e8 100644 --- a/src/main/java/com/xero/models/payrollau/SuperFundType.java +++ b/src/main/java/com/xero/models/payrollau/SuperFundType.java @@ -22,7 +22,10 @@ public enum SuperFundType { REGULATED("REGULATED"), /** SMSF */ - SMSF("SMSF"); + SMSF("SMSF"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/SuperannuationCalculationType.java b/src/main/java/com/xero/models/payrollau/SuperannuationCalculationType.java index 0cdb5269..606ea7e4 100644 --- a/src/main/java/com/xero/models/payrollau/SuperannuationCalculationType.java +++ b/src/main/java/com/xero/models/payrollau/SuperannuationCalculationType.java @@ -25,7 +25,10 @@ public enum SuperannuationCalculationType { PERCENTAGEOFEARNINGS("PERCENTAGEOFEARNINGS"), /** STATUTORY */ - STATUTORY("STATUTORY"); + STATUTORY("STATUTORY"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/SuperannuationContributionType.java b/src/main/java/com/xero/models/payrollau/SuperannuationContributionType.java index 0d67a7e9..2a70a53e 100644 --- a/src/main/java/com/xero/models/payrollau/SuperannuationContributionType.java +++ b/src/main/java/com/xero/models/payrollau/SuperannuationContributionType.java @@ -28,7 +28,10 @@ public enum SuperannuationContributionType { EMPLOYERADDITIONAL("EMPLOYERADDITIONAL"), /** EMPLOYEE */ - EMPLOYEE("EMPLOYEE"); + EMPLOYEE("EMPLOYEE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/TFNExemptionType.java b/src/main/java/com/xero/models/payrollau/TFNExemptionType.java index 6da9d247..9bf6de40 100644 --- a/src/main/java/com/xero/models/payrollau/TFNExemptionType.java +++ b/src/main/java/com/xero/models/payrollau/TFNExemptionType.java @@ -28,7 +28,10 @@ public enum TFNExemptionType { PENSIONER("PENSIONER"), /** UNDER18 */ - UNDER18("UNDER18"); + UNDER18("UNDER18"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/TaxScaleType.java b/src/main/java/com/xero/models/payrollau/TaxScaleType.java index b481c577..9a05a5b2 100644 --- a/src/main/java/com/xero/models/payrollau/TaxScaleType.java +++ b/src/main/java/com/xero/models/payrollau/TaxScaleType.java @@ -34,7 +34,10 @@ public enum TaxScaleType { WORKINGHOLIDAYMAKER("WORKINGHOLIDAYMAKER"), /** FOREIGN */ - FOREIGN("FOREIGN"); + FOREIGN("FOREIGN"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/TimesheetStatus.java b/src/main/java/com/xero/models/payrollau/TimesheetStatus.java index 565a9364..3ec8aa22 100644 --- a/src/main/java/com/xero/models/payrollau/TimesheetStatus.java +++ b/src/main/java/com/xero/models/payrollau/TimesheetStatus.java @@ -31,7 +31,10 @@ public enum TimesheetStatus { REJECTED("REJECTED"), /** REQUESTED */ - REQUESTED("REQUESTED"); + REQUESTED("REQUESTED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollau/WorkCondition.java b/src/main/java/com/xero/models/payrollau/WorkCondition.java index bf1c481e..1ca633c1 100644 --- a/src/main/java/com/xero/models/payrollau/WorkCondition.java +++ b/src/main/java/com/xero/models/payrollau/WorkCondition.java @@ -25,7 +25,10 @@ public enum WorkCondition { THREELESSPERFORMANCESPERWEEK("THREELESSPERFORMANCESPERWEEK"), /** NONE */ - NONE("NONE"); + NONE("NONE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/Account.java b/src/main/java/com/xero/models/payrollnz/Account.java index 6f630eed..76053049 100644 --- a/src/main/java/com/xero/models/payrollnz/Account.java +++ b/src/main/java/com/xero/models/payrollnz/Account.java @@ -37,7 +37,10 @@ public enum TypeEnum { WAGESEXPENSE("WAGESEXPENSE"), /** BANK */ - BANK("BANK"); + BANK("BANK"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/BankAccount.java b/src/main/java/com/xero/models/payrollnz/BankAccount.java index c6efbd8a..4223e451 100644 --- a/src/main/java/com/xero/models/payrollnz/BankAccount.java +++ b/src/main/java/com/xero/models/payrollnz/BankAccount.java @@ -48,7 +48,10 @@ public enum CalculationTypeEnum { FIXEDAMOUNT("FixedAmount"), /** BALANCE */ - BALANCE("Balance"); + BALANCE("Balance"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/Benefit.java b/src/main/java/com/xero/models/payrollnz/Benefit.java index 14d32812..4be01562 100644 --- a/src/main/java/com/xero/models/payrollnz/Benefit.java +++ b/src/main/java/com/xero/models/payrollnz/Benefit.java @@ -37,7 +37,10 @@ public enum CategoryEnum { COMPLYINGFUND("ComplyingFund"), /** OTHER */ - OTHER("Other"); + OTHER("Other"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -95,7 +98,10 @@ public enum CalculationTypeNZEnum { FIXEDAMOUNT("FixedAmount"), /** PERCENTAGEOFTAXABLEEARNINGS */ - PERCENTAGEOFTAXABLEEARNINGS("PercentageOfTaxableEarnings"); + PERCENTAGEOFTAXABLEEARNINGS("PercentageOfTaxableEarnings"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/CalendarType.java b/src/main/java/com/xero/models/payrollnz/CalendarType.java index 716acbb3..2f03f74b 100644 --- a/src/main/java/com/xero/models/payrollnz/CalendarType.java +++ b/src/main/java/com/xero/models/payrollnz/CalendarType.java @@ -37,7 +37,10 @@ public enum CalendarType { QUARTERLY("Quarterly"), /** TWICEMONTHLY */ - TWICEMONTHLY("TwiceMonthly"); + TWICEMONTHLY("TwiceMonthly"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/Deduction.java b/src/main/java/com/xero/models/payrollnz/Deduction.java index 50a8b0b2..df397427 100644 --- a/src/main/java/com/xero/models/payrollnz/Deduction.java +++ b/src/main/java/com/xero/models/payrollnz/Deduction.java @@ -40,7 +40,10 @@ public enum DeductionCategoryEnum { SUPERANNUATION("Superannuation"), /** NZOTHER */ - NZOTHER("NzOther"); + NZOTHER("NzOther"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/EarningsRate.java b/src/main/java/com/xero/models/payrollnz/EarningsRate.java index efbcc70b..050898a7 100644 --- a/src/main/java/com/xero/models/payrollnz/EarningsRate.java +++ b/src/main/java/com/xero/models/payrollnz/EarningsRate.java @@ -73,7 +73,10 @@ public enum EarningsTypeEnum { TIPS_NON_DIRECT_("Tips(Non-Direct)"), /** WITHHOLDINGINCOME */ - WITHHOLDINGINCOME("WithholdingIncome"); + WITHHOLDINGINCOME("WithholdingIncome"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -128,7 +131,10 @@ public enum RateTypeEnum { MULTIPLEOFORDINARYEARNINGSRATE("MultipleOfOrdinaryEarningsRate"), /** FIXEDAMOUNT */ - FIXEDAMOUNT("FixedAmount"); + FIXEDAMOUNT("FixedAmount"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/Employee.java b/src/main/java/com/xero/models/payrollnz/Employee.java index 50d4c3cc..3396a5b3 100644 --- a/src/main/java/com/xero/models/payrollnz/Employee.java +++ b/src/main/java/com/xero/models/payrollnz/Employee.java @@ -51,7 +51,10 @@ public enum GenderEnum { M("M"), /** F */ - F("F"); + F("F"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -212,7 +215,7 @@ public Employee firstName(String firstName) { * * @return firstName */ - @ApiModelProperty(example = "Karen", value = "First name of employee") + @ApiModelProperty(example = "Karen", required = true, value = "First name of employee") /** * First name of employee * @@ -247,7 +250,7 @@ public Employee lastName(String lastName) { * * @return lastName */ - @ApiModelProperty(example = "Jones", value = "Last name of employee") + @ApiModelProperty(example = "Jones", required = true, value = "Last name of employee") /** * Last name of employee * @@ -284,6 +287,7 @@ public Employee dateOfBirth(LocalDate dateOfBirth) { */ @ApiModelProperty( example = "Wed Jan 02 00:00:00 UTC 2019", + required = true, value = "Date of birth of the employee (YYYY-MM-DD)") /** * Date of birth of the employee (YYYY-MM-DD) @@ -319,7 +323,7 @@ public Employee address(Address address) { * * @return address */ - @ApiModelProperty(value = "") + @ApiModelProperty(required = true, value = "") /** * address * diff --git a/src/main/java/com/xero/models/payrollnz/EmployeeLeaveType.java b/src/main/java/com/xero/models/payrollnz/EmployeeLeaveType.java index 86d8eade..82a04d0d 100644 --- a/src/main/java/com/xero/models/payrollnz/EmployeeLeaveType.java +++ b/src/main/java/com/xero/models/payrollnz/EmployeeLeaveType.java @@ -38,7 +38,10 @@ public enum ScheduleOfAccrualEnum { PERCENTAGEOFGROSSEARNINGS("PercentageOfGrossEarnings"), /** NOACCRUALS */ - NOACCRUALS("NoAccruals"); + NOACCRUALS("NoAccruals"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/EmployeeStatutoryLeaveBalance.java b/src/main/java/com/xero/models/payrollnz/EmployeeStatutoryLeaveBalance.java index 0fb4fad7..4b588c52 100644 --- a/src/main/java/com/xero/models/payrollnz/EmployeeStatutoryLeaveBalance.java +++ b/src/main/java/com/xero/models/payrollnz/EmployeeStatutoryLeaveBalance.java @@ -36,7 +36,10 @@ public enum LeaveTypeEnum { PATERNITY("Paternity"), /** SHAREDPARENTAL */ - SHAREDPARENTAL("Sharedparental"); + SHAREDPARENTAL("Sharedparental"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -88,7 +91,10 @@ public static LeaveTypeEnum fromValue(String value) { /** The units will be \"Hours\" */ public enum UnitsEnum { /** HOURS */ - HOURS("Hours"); + HOURS("Hours"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/EmployeeStatutoryLeaveSummary.java b/src/main/java/com/xero/models/payrollnz/EmployeeStatutoryLeaveSummary.java index 2846d201..cc627c2e 100644 --- a/src/main/java/com/xero/models/payrollnz/EmployeeStatutoryLeaveSummary.java +++ b/src/main/java/com/xero/models/payrollnz/EmployeeStatutoryLeaveSummary.java @@ -44,7 +44,10 @@ public enum TypeEnum { PATERNITY("Paternity"), /** SHAREDPARENTAL */ - SHAREDPARENTAL("Sharedparental"); + SHAREDPARENTAL("Sharedparental"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -108,7 +111,10 @@ public enum StatusEnum { IN_PROGRESS("In-Progress"), /** COMPLETED */ - COMPLETED("Completed"); + COMPLETED("Completed"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/EmployeeStatutorySickLeave.java b/src/main/java/com/xero/models/payrollnz/EmployeeStatutorySickLeave.java index bec6cb6e..a0fbce3e 100644 --- a/src/main/java/com/xero/models/payrollnz/EmployeeStatutorySickLeave.java +++ b/src/main/java/com/xero/models/payrollnz/EmployeeStatutorySickLeave.java @@ -88,7 +88,10 @@ public enum EntitlementFailureReasonsEnum { EXCEEDEDMAXIMUMDURATIONOFPIW("ExceededMaximumDurationOfPiw"), /** SUFFICIENTNOTICENOTGIVEN */ - SUFFICIENTNOTICENOTGIVEN("SufficientNoticeNotGiven"); + SUFFICIENTNOTICENOTGIVEN("SufficientNoticeNotGiven"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/EmployeeTax.java b/src/main/java/com/xero/models/payrollnz/EmployeeTax.java index 4460249d..3038bc95 100644 --- a/src/main/java/com/xero/models/payrollnz/EmployeeTax.java +++ b/src/main/java/com/xero/models/payrollnz/EmployeeTax.java @@ -62,7 +62,10 @@ public enum KiwiSaverContributionsEnum { ONASAVINGSSUSPENSION("OnASavingsSuspension"), /** NOTCURRENTLYAKIWISAVERMEMBER */ - NOTCURRENTLYAKIWISAVERMEMBER("NotCurrentlyAKiwiSaverMember"); + NOTCURRENTLYAKIWISAVERMEMBER("NotCurrentlyAKiwiSaverMember"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/Employment.java b/src/main/java/com/xero/models/payrollnz/Employment.java index 073a135a..60f641ac 100644 --- a/src/main/java/com/xero/models/payrollnz/Employment.java +++ b/src/main/java/com/xero/models/payrollnz/Employment.java @@ -52,7 +52,9 @@ public Employment payrollCalendarID(UUID payrollCalendarID) { * * @return payrollCalendarID */ - @ApiModelProperty(value = "Xero unique identifier for the payroll calendar of the employee") + @ApiModelProperty( + required = true, + value = "Xero unique identifier for the payroll calendar of the employee") /** * Xero unique identifier for the payroll calendar of the employee * @@ -125,7 +127,7 @@ public Employment startDate(LocalDate startDate) { * * @return startDate */ - @ApiModelProperty(value = "Start date of the employment (YYYY-MM-DD)") + @ApiModelProperty(required = true, value = "Start date of the employment (YYYY-MM-DD)") /** * Start date of the employment (YYYY-MM-DD) * @@ -160,7 +162,10 @@ public Employment engagementType(String engagementType) { * * @return engagementType */ - @ApiModelProperty(example = "Permanent", value = "Engagement type of the employee") + @ApiModelProperty( + example = "Permanent", + required = true, + value = "Engagement type of the employee") /** * Engagement type of the employee * diff --git a/src/main/java/com/xero/models/payrollnz/LeavePeriod.java b/src/main/java/com/xero/models/payrollnz/LeavePeriod.java index b66bc982..379d4f7c 100644 --- a/src/main/java/com/xero/models/payrollnz/LeavePeriod.java +++ b/src/main/java/com/xero/models/payrollnz/LeavePeriod.java @@ -37,7 +37,10 @@ public enum PeriodStatusEnum { APPROVED("Approved"), /** COMPLETED */ - COMPLETED("Completed"); + COMPLETED("Completed"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/PayRun.java b/src/main/java/com/xero/models/payrollnz/PayRun.java index edc5a651..952f40f0 100644 --- a/src/main/java/com/xero/models/payrollnz/PayRun.java +++ b/src/main/java/com/xero/models/payrollnz/PayRun.java @@ -52,7 +52,10 @@ public enum PayRunStatusEnum { DRAFT("Draft"), /** POSTED */ - POSTED("Posted"); + POSTED("Posted"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -107,7 +110,10 @@ public enum PayRunTypeEnum { UNSCHEDULED("Unscheduled"), /** EARLIERYEARUPDATE */ - EARLIERYEARUPDATE("EarlierYearUpdate"); + EARLIERYEARUPDATE("EarlierYearUpdate"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/PaySlip.java b/src/main/java/com/xero/models/payrollnz/PaySlip.java index eef573e3..382e549a 100644 --- a/src/main/java/com/xero/models/payrollnz/PaySlip.java +++ b/src/main/java/com/xero/models/payrollnz/PaySlip.java @@ -82,7 +82,10 @@ public enum PaymentMethodEnum { ELECTRONICALLY("Electronically"), /** MANUAL */ - MANUAL("Manual"); + MANUAL("Manual"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/PaymentMethod.java b/src/main/java/com/xero/models/payrollnz/PaymentMethod.java index 9217533d..4b41b103 100644 --- a/src/main/java/com/xero/models/payrollnz/PaymentMethod.java +++ b/src/main/java/com/xero/models/payrollnz/PaymentMethod.java @@ -32,7 +32,10 @@ public enum PaymentMethodEnum { ELECTRONICALLY("Electronically"), /** MANUAL */ - MANUAL("Manual"); + MANUAL("Manual"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/Reimbursement.java b/src/main/java/com/xero/models/payrollnz/Reimbursement.java index 49187366..e122c3b2 100644 --- a/src/main/java/com/xero/models/payrollnz/Reimbursement.java +++ b/src/main/java/com/xero/models/payrollnz/Reimbursement.java @@ -43,7 +43,10 @@ public enum ReimbursementCategoryEnum { NOGST("NoGST"), /** GSTINCLUSIVE */ - GSTINCLUSIVE("GSTInclusive"); + GSTINCLUSIVE("GSTInclusive"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -98,7 +101,10 @@ public enum CalculationTypeEnum { FIXEDAMOUNT("FixedAmount"), /** RATEPERUNIT */ - RATEPERUNIT("RatePerUnit"); + RATEPERUNIT("RatePerUnit"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -153,7 +159,10 @@ public enum StandardTypeOfUnitsEnum { HOURS("Hours"), /** KM */ - KM("km"); + KM("km"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/SalaryAndWage.java b/src/main/java/com/xero/models/payrollnz/SalaryAndWage.java index 93c3b814..07c7a26f 100644 --- a/src/main/java/com/xero/models/payrollnz/SalaryAndWage.java +++ b/src/main/java/com/xero/models/payrollnz/SalaryAndWage.java @@ -56,7 +56,10 @@ public enum StatusEnum { PENDING("Pending"), /** HISTORY */ - HISTORY("History"); + HISTORY("History"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -108,7 +111,10 @@ public enum PaymentTypeEnum { SALARY("Salary"), /** HOURLY */ - HOURLY("Hourly"); + HOURLY("Hourly"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -160,7 +166,10 @@ public enum WorkPatternTypeEnum { DAYSANDHOURS("DaysAndHours"), /** REGULARWEEK */ - REGULARWEEK("RegularWeek"); + REGULARWEEK("RegularWeek"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/StatutoryDeductionCategory.java b/src/main/java/com/xero/models/payrollnz/StatutoryDeductionCategory.java index 49a0df22..b6f18aaf 100644 --- a/src/main/java/com/xero/models/payrollnz/StatutoryDeductionCategory.java +++ b/src/main/java/com/xero/models/payrollnz/StatutoryDeductionCategory.java @@ -49,7 +49,10 @@ public enum StatutoryDeductionCategory { VOLUNTARYSTUDENTLOAN("VoluntaryStudentLoan"), /** KIWISAVER */ - KIWISAVER("KiwiSaver"); + KIWISAVER("KiwiSaver"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/TaxCode.java b/src/main/java/com/xero/models/payrollnz/TaxCode.java index 39cf1539..fe83c3ba 100644 --- a/src/main/java/com/xero/models/payrollnz/TaxCode.java +++ b/src/main/java/com/xero/models/payrollnz/TaxCode.java @@ -73,7 +73,10 @@ public enum TaxCode { STC("STC"), /** STCSL */ - STCSL("STCSL"); + STCSL("STCSL"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/TaxSettings.java b/src/main/java/com/xero/models/payrollnz/TaxSettings.java index cf7d4dc3..d5ce6062 100644 --- a/src/main/java/com/xero/models/payrollnz/TaxSettings.java +++ b/src/main/java/com/xero/models/payrollnz/TaxSettings.java @@ -30,7 +30,10 @@ public enum PeriodTypeEnum { WEEKS("weeks"), /** MONTHS */ - MONTHS("months"); + MONTHS("months"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrollnz/Timesheet.java b/src/main/java/com/xero/models/payrollnz/Timesheet.java index 1313a4b2..ba3ace39 100644 --- a/src/main/java/com/xero/models/payrollnz/Timesheet.java +++ b/src/main/java/com/xero/models/payrollnz/Timesheet.java @@ -53,7 +53,10 @@ public enum StatusEnum { COMPLETED("Completed"), /** REQUESTED */ - REQUESTED("Requested"); + REQUESTED("Requested"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/Account.java b/src/main/java/com/xero/models/payrolluk/Account.java index 3e06a878..3a3de85c 100644 --- a/src/main/java/com/xero/models/payrolluk/Account.java +++ b/src/main/java/com/xero/models/payrolluk/Account.java @@ -46,7 +46,10 @@ public enum TypeEnum { WAGESPAYABLE("WAGESPAYABLE"), /** WAGESEXPENSE */ - WAGESEXPENSE("WAGESEXPENSE"); + WAGESEXPENSE("WAGESEXPENSE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/Benefit.java b/src/main/java/com/xero/models/payrolluk/Benefit.java index 2016363b..cf01c454 100644 --- a/src/main/java/com/xero/models/payrolluk/Benefit.java +++ b/src/main/java/com/xero/models/payrolluk/Benefit.java @@ -34,7 +34,10 @@ public enum CategoryEnum { STAKEHOLDERPENSION("StakeholderPension"), /** OTHER */ - OTHER("Other"); + OTHER("Other"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -98,7 +101,10 @@ public enum CalculationTypeEnum { FIXEDAMOUNT("FixedAmount"), /** PERCENTAGEOFGROSS */ - PERCENTAGEOFGROSS("PercentageOfGross"); + PERCENTAGEOFGROSS("PercentageOfGross"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/Deduction.java b/src/main/java/com/xero/models/payrolluk/Deduction.java index f0362865..ecca8cd2 100644 --- a/src/main/java/com/xero/models/payrolluk/Deduction.java +++ b/src/main/java/com/xero/models/payrolluk/Deduction.java @@ -58,7 +58,10 @@ public enum DeductionCategoryEnum { STUDENTLOANDEDUCTIONS("StudentLoanDeductions"), /** UKOTHER */ - UKOTHER("UkOther"); + UKOTHER("UkOther"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -125,7 +128,10 @@ public enum CalculationTypeEnum { FIXEDAMOUNT("FixedAmount"), /** PERCENTAGEOFGROSS */ - PERCENTAGEOFGROSS("PercentageOfGross"); + PERCENTAGEOFGROSS("PercentageOfGross"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/EarningsRate.java b/src/main/java/com/xero/models/payrolluk/EarningsRate.java index 13054b07..f80bb7f3 100644 --- a/src/main/java/com/xero/models/payrolluk/EarningsRate.java +++ b/src/main/java/com/xero/models/payrolluk/EarningsRate.java @@ -97,7 +97,10 @@ public enum EarningsTypeEnum { TIPSDIRECT("TipsDirect"), /** TERMINATIONPAY */ - TERMINATIONPAY("TerminationPay"); + TERMINATIONPAY("TerminationPay"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -152,7 +155,10 @@ public enum RateTypeEnum { MULTIPLEOFORDINARYEARNINGSRATE("MultipleOfOrdinaryEarningsRate"), /** FIXEDAMOUNT */ - FIXEDAMOUNT("FixedAmount"); + FIXEDAMOUNT("FixedAmount"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/Employee.java b/src/main/java/com/xero/models/payrolluk/Employee.java index 392b266e..ab5deafe 100644 --- a/src/main/java/com/xero/models/payrolluk/Employee.java +++ b/src/main/java/com/xero/models/payrolluk/Employee.java @@ -51,7 +51,10 @@ public enum GenderEnum { M("M"), /** F */ - F("F"); + F("F"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -174,7 +177,7 @@ public Employee title(String title) { * * @return title */ - @ApiModelProperty(example = "Mrs", value = "Title of the employee") + @ApiModelProperty(example = "Mrs", required = true, value = "Title of the employee") /** * Title of the employee * @@ -209,7 +212,7 @@ public Employee firstName(String firstName) { * * @return firstName */ - @ApiModelProperty(example = "Karen", value = "First name of employee") + @ApiModelProperty(example = "Karen", required = true, value = "First name of employee") /** * First name of employee * @@ -244,7 +247,7 @@ public Employee lastName(String lastName) { * * @return lastName */ - @ApiModelProperty(example = "Jones", value = "Last name of employee") + @ApiModelProperty(example = "Jones", required = true, value = "Last name of employee") /** * Last name of employee * @@ -281,6 +284,7 @@ public Employee dateOfBirth(LocalDate dateOfBirth) { */ @ApiModelProperty( example = "Wed Jan 02 00:00:00 UTC 2019", + required = true, value = "Date of birth of the employee (YYYY-MM-DD)") /** * Date of birth of the employee (YYYY-MM-DD) @@ -316,7 +320,7 @@ public Employee address(Address address) { * * @return address */ - @ApiModelProperty(value = "") + @ApiModelProperty(required = true, value = "") /** * address * @@ -386,7 +390,7 @@ public Employee gender(GenderEnum gender) { * * @return gender */ - @ApiModelProperty(example = "F", value = "The employee’s gender") + @ApiModelProperty(example = "F", required = true, value = "The employee’s gender") /** * The employee’s gender * diff --git a/src/main/java/com/xero/models/payrolluk/EmployeeLeaveType.java b/src/main/java/com/xero/models/payrolluk/EmployeeLeaveType.java index d2ac0883..1cb6ac97 100644 --- a/src/main/java/com/xero/models/payrolluk/EmployeeLeaveType.java +++ b/src/main/java/com/xero/models/payrolluk/EmployeeLeaveType.java @@ -38,7 +38,10 @@ public enum ScheduleOfAccrualEnum { EACHPAYPERIOD("EachPayPeriod"), /** ONHOURWORKED */ - ONHOURWORKED("OnHourWorked"); + ONHOURWORKED("OnHourWorked"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveBalance.java b/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveBalance.java index df8a60f6..41418689 100644 --- a/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveBalance.java +++ b/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveBalance.java @@ -36,7 +36,10 @@ public enum LeaveTypeEnum { PATERNITY("Paternity"), /** SHAREDPARENTAL */ - SHAREDPARENTAL("Sharedparental"); + SHAREDPARENTAL("Sharedparental"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -88,7 +91,10 @@ public static LeaveTypeEnum fromValue(String value) { /** The units will be \"Hours\" */ public enum UnitsEnum { /** HOURS */ - HOURS("Hours"); + HOURS("Hours"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveSummary.java b/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveSummary.java index d7e2920a..65a3b2c2 100644 --- a/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveSummary.java +++ b/src/main/java/com/xero/models/payrolluk/EmployeeStatutoryLeaveSummary.java @@ -44,7 +44,10 @@ public enum TypeEnum { PATERNITY("Paternity"), /** SHAREDPARENTAL */ - SHAREDPARENTAL("Sharedparental"); + SHAREDPARENTAL("Sharedparental"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -108,7 +111,10 @@ public enum StatusEnum { IN_PROGRESS("In-Progress"), /** COMPLETED */ - COMPLETED("Completed"); + COMPLETED("Completed"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/EmployeeStatutorySickLeave.java b/src/main/java/com/xero/models/payrolluk/EmployeeStatutorySickLeave.java index 0c7a3ecf..b222524c 100644 --- a/src/main/java/com/xero/models/payrolluk/EmployeeStatutorySickLeave.java +++ b/src/main/java/com/xero/models/payrolluk/EmployeeStatutorySickLeave.java @@ -88,7 +88,10 @@ public enum EntitlementFailureReasonsEnum { EXCEEDEDMAXIMUMDURATIONOFPIW("ExceededMaximumDurationOfPiw"), /** SUFFICIENTNOTICENOTGIVEN */ - SUFFICIENTNOTICENOTGIVEN("SufficientNoticeNotGiven"); + SUFFICIENTNOTICENOTGIVEN("SufficientNoticeNotGiven"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/Employment.java b/src/main/java/com/xero/models/payrolluk/Employment.java index a4861f9b..f66d1b47 100644 --- a/src/main/java/com/xero/models/payrolluk/Employment.java +++ b/src/main/java/com/xero/models/payrolluk/Employment.java @@ -71,7 +71,10 @@ public enum NiCategoryEnum { X("X"), /** Z */ - Z("Z"); + Z("Z"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -133,7 +136,9 @@ public Employment payrollCalendarID(UUID payrollCalendarID) { * * @return payrollCalendarID */ - @ApiModelProperty(value = "Xero unique identifier for the payroll calendar of the employee") + @ApiModelProperty( + required = true, + value = "Xero unique identifier for the payroll calendar of the employee") /** * Xero unique identifier for the payroll calendar of the employee * @@ -168,7 +173,7 @@ public Employment startDate(LocalDate startDate) { * * @return startDate */ - @ApiModelProperty(value = "Start date of the employment (YYYY-MM-DD)") + @ApiModelProperty(required = true, value = "Start date of the employment (YYYY-MM-DD)") /** * Start date of the employment (YYYY-MM-DD) * @@ -203,7 +208,7 @@ public Employment employeeNumber(String employeeNumber) { * * @return employeeNumber */ - @ApiModelProperty(example = "7", value = "The employment number of the employee") + @ApiModelProperty(example = "7", required = true, value = "The employment number of the employee") /** * The employment number of the employee * @@ -238,7 +243,7 @@ public Employment niCategory(NiCategoryEnum niCategory) { * * @return niCategory */ - @ApiModelProperty(example = "A", value = "The NI Category of the employee") + @ApiModelProperty(example = "A", required = true, value = "The NI Category of the employee") /** * The NI Category of the employee * diff --git a/src/main/java/com/xero/models/payrolluk/LeavePeriod.java b/src/main/java/com/xero/models/payrolluk/LeavePeriod.java index a7067c38..3a0c56cf 100644 --- a/src/main/java/com/xero/models/payrolluk/LeavePeriod.java +++ b/src/main/java/com/xero/models/payrolluk/LeavePeriod.java @@ -37,7 +37,10 @@ public enum PeriodStatusEnum { APPROVED("Approved"), /** COMPLETED */ - COMPLETED("Completed"); + COMPLETED("Completed"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/PayRun.java b/src/main/java/com/xero/models/payrolluk/PayRun.java index bd4c0310..69ddea26 100644 --- a/src/main/java/com/xero/models/payrolluk/PayRun.java +++ b/src/main/java/com/xero/models/payrolluk/PayRun.java @@ -52,7 +52,10 @@ public enum PayRunStatusEnum { DRAFT("Draft"), /** POSTED */ - POSTED("Posted"); + POSTED("Posted"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -107,7 +110,10 @@ public enum PayRunTypeEnum { UNSCHEDULED("Unscheduled"), /** EARLIERYEARUPDATE */ - EARLIERYEARUPDATE("EarlierYearUpdate"); + EARLIERYEARUPDATE("EarlierYearUpdate"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -171,7 +177,10 @@ public enum CalendarTypeEnum { ANNUAL("Annual"), /** QUARTERLY */ - QUARTERLY("Quarterly"); + QUARTERLY("Quarterly"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/PayRunCalendar.java b/src/main/java/com/xero/models/payrolluk/PayRunCalendar.java index ad183040..029394ab 100644 --- a/src/main/java/com/xero/models/payrolluk/PayRunCalendar.java +++ b/src/main/java/com/xero/models/payrolluk/PayRunCalendar.java @@ -48,7 +48,10 @@ public enum CalendarTypeEnum { ANNUAL("Annual"), /** QUARTERLY */ - QUARTERLY("Quarterly"); + QUARTERLY("Quarterly"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/PaymentMethod.java b/src/main/java/com/xero/models/payrolluk/PaymentMethod.java index 88648708..25d7ab55 100644 --- a/src/main/java/com/xero/models/payrolluk/PaymentMethod.java +++ b/src/main/java/com/xero/models/payrolluk/PaymentMethod.java @@ -32,7 +32,10 @@ public enum PaymentMethodEnum { ELECTRONICALLY("Electronically"), /** MANUAL */ - MANUAL("Manual"); + MANUAL("Manual"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/Payslip.java b/src/main/java/com/xero/models/payrolluk/Payslip.java index d148f223..3b37d34e 100644 --- a/src/main/java/com/xero/models/payrolluk/Payslip.java +++ b/src/main/java/com/xero/models/payrolluk/Payslip.java @@ -82,7 +82,10 @@ public enum PaymentMethodEnum { ELECTRONICALLY("Electronically"), /** MANUAL */ - MANUAL("Manual"); + MANUAL("Manual"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/SalaryAndWage.java b/src/main/java/com/xero/models/payrolluk/SalaryAndWage.java index 12a054e9..1f14c1aa 100644 --- a/src/main/java/com/xero/models/payrolluk/SalaryAndWage.java +++ b/src/main/java/com/xero/models/payrolluk/SalaryAndWage.java @@ -53,7 +53,10 @@ public enum StatusEnum { PENDING("Pending"), /** HISTORY */ - HISTORY("History"); + HISTORY("History"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; @@ -105,7 +108,10 @@ public enum PaymentTypeEnum { SALARY("Salary"), /** HOURLY */ - HOURLY("Hourly"); + HOURLY("Hourly"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/StatutoryDeductionCategory.java b/src/main/java/com/xero/models/payrolluk/StatutoryDeductionCategory.java index bbfe6256..6db59864 100644 --- a/src/main/java/com/xero/models/payrolluk/StatutoryDeductionCategory.java +++ b/src/main/java/com/xero/models/payrolluk/StatutoryDeductionCategory.java @@ -58,7 +58,10 @@ public enum StatutoryDeductionCategory { VOLUNTARYSTUDENTLOAN("VoluntaryStudentLoan"), /** USCHILDSUPPORT */ - USCHILDSUPPORT("USChildSupport"); + USCHILDSUPPORT("USChildSupport"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/payrolluk/Timesheet.java b/src/main/java/com/xero/models/payrolluk/Timesheet.java index 361d5863..71f2bc3f 100644 --- a/src/main/java/com/xero/models/payrolluk/Timesheet.java +++ b/src/main/java/com/xero/models/payrolluk/Timesheet.java @@ -50,7 +50,10 @@ public enum StatusEnum { APPROVED("Approved"), /** COMPLETED */ - COMPLETED("Completed"); + COMPLETED("Completed"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/project/ChargeType.java b/src/main/java/com/xero/models/project/ChargeType.java index f07612be..470582c8 100644 --- a/src/main/java/com/xero/models/project/ChargeType.java +++ b/src/main/java/com/xero/models/project/ChargeType.java @@ -29,7 +29,10 @@ public enum ChargeType { FIXED("FIXED"), /** NON_CHARGEABLE */ - NON_CHARGEABLE("NON_CHARGEABLE"); + NON_CHARGEABLE("NON_CHARGEABLE"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/project/CurrencyCode.java b/src/main/java/com/xero/models/project/CurrencyCode.java index 6de805cb..d034303e 100644 --- a/src/main/java/com/xero/models/project/CurrencyCode.java +++ b/src/main/java/com/xero/models/project/CurrencyCode.java @@ -505,7 +505,10 @@ public enum CurrencyCode { ZMK("ZMK"), /** ZWD */ - ZWD("ZWD"); + ZWD("ZWD"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/project/ProjectStatus.java b/src/main/java/com/xero/models/project/ProjectStatus.java index 0260b71c..2863121e 100644 --- a/src/main/java/com/xero/models/project/ProjectStatus.java +++ b/src/main/java/com/xero/models/project/ProjectStatus.java @@ -22,7 +22,10 @@ public enum ProjectStatus { INPROGRESS("INPROGRESS"), /** CLOSED */ - CLOSED("CLOSED"); + CLOSED("CLOSED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/project/Task.java b/src/main/java/com/xero/models/project/Task.java index b575a92a..0a49e368 100644 --- a/src/main/java/com/xero/models/project/Task.java +++ b/src/main/java/com/xero/models/project/Task.java @@ -79,7 +79,10 @@ public enum StatusEnum { INVOICED("INVOICED"), /** LOCKED */ - LOCKED("LOCKED"); + LOCKED("LOCKED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value; diff --git a/src/main/java/com/xero/models/project/TimeEntry.java b/src/main/java/com/xero/models/project/TimeEntry.java index 4e914bf6..99621682 100644 --- a/src/main/java/com/xero/models/project/TimeEntry.java +++ b/src/main/java/com/xero/models/project/TimeEntry.java @@ -61,7 +61,10 @@ public enum StatusEnum { LOCKED("LOCKED"), /** INVOICED */ - INVOICED("INVOICED"); + INVOICED("INVOICED"), + + /** UNKNOWN_DEFAULT_OPEN_API */ + UNKNOWN_DEFAULT_OPEN_API("unknown_default_open_api"); private String value;