Skip to content

Commit af4a1e7

Browse files
committed
[PETOSS-892] removed duplicate section in yaml file and added missing taxtype
1 parent dc186c8 commit af4a1e7

1 file changed

Lines changed: 8 additions & 320 deletions

File tree

xero_accounting.yaml

Lines changed: 8 additions & 320 deletions
Original file line numberDiff line numberDiff line change
@@ -20180,6 +20180,14 @@ components:
2018020180
example: INPUT2
2018120181
schema:
2018220182
type: string
20183+
TaxType:
20184+
required: true
20185+
in: path
20186+
name: TaxType
20187+
description: A valid TaxType code
20188+
example: INPUT2
20189+
schema:
20190+
type: string
2018320191
responses:
2018420192
400Error:
2018520193
description: A failed request due to validation error
@@ -20509,326 +20517,6 @@ components:
2050920517
- SALES
2051020518
- TERMLIAB
2051120519
- PAYG
20512-
TaxType:
20513-
required: true
20514-
in: path
20515-
name: TaxType
20516-
description: A valid TaxType code
20517-
example: INPUT2
20518-
schema:
20519-
type: string
20520-
responses:
20521-
400Error:
20522-
description: A failed request due to validation error
20523-
content:
20524-
application/json:
20525-
schema:
20526-
$ref: '#/components/schemas/Error'
20527-
HistoryRecordCreated:
20528-
description: Success - return response of type HistoryRecords array of HistoryRecord objects
20529-
content:
20530-
application/json:
20531-
schema:
20532-
$ref: '#/components/schemas/HistoryRecords'
20533-
example:
20534-
Id: d7525479-3392-44c0-bb37-ff4a0b5df5bd
20535-
Status: OK
20536-
ProviderName: Xero API Partner
20537-
DateTimeUTC: /Date(1550899400362)/
20538-
HistoryRecords:
20539-
- DateUTCString: 2019-02-23T05:23:20
20540-
DateUTC: /Date(1550899400362)/
20541-
Details: Hello World
20542-
ValidationErrors: []
20543-
HistoryRetrieved:
20544-
description: Success - return response of HistoryRecords array of 0 to N HistoryRecord
20545-
content:
20546-
application/json:
20547-
schema:
20548-
$ref: '#/components/schemas/HistoryRecords'
20549-
example:
20550-
Id: cd54cc7b-b721-4207-b11d-7d13c7902f91
20551-
Status: OK
20552-
ProviderName: Xero API Partner
20553-
DateTimeUTC: /Date(1551311321819)/
20554-
HistoryRecords:
20555-
- Changes: Attached a file
20556-
DateUTCString: 2018-11-08T15:01:21
20557-
DateUTC: /Date(1541689281470+0000)/
20558-
User: System Generated
20559-
Details: Attached the file sample2.jpg through the Xero API using Xero API Partner
20560-
- Changes: Credit Applied
20561-
DateUTCString: 2016-10-17T20:46:01
20562-
DateUTC: /Date(1476737161173+0000)/
20563-
User: System Generated
20564-
Details: Bank transfer from Business Wells Fargo to My Savings on November 12, 2016 for 20.00.
20565-
schemas:
20566-
AddressForOrganisation:
20567-
externalDocs:
20568-
url: http://developer.xero.com/documentation/api/types
20569-
properties:
20570-
AddressType:
20571-
description: define the type of address
20572-
anyOf:
20573-
- type: string
20574-
enum:
20575-
- POBOX
20576-
- STREET
20577-
- DELIVERY
20578-
- type: string
20579-
AddressLine1:
20580-
description: max length = 500
20581-
maxLength: 500
20582-
type: string
20583-
AddressLine2:
20584-
description: max length = 500
20585-
maxLength: 500
20586-
type: string
20587-
AddressLine3:
20588-
description: max length = 500
20589-
maxLength: 500
20590-
type: string
20591-
AddressLine4:
20592-
description: max length = 500
20593-
maxLength: 500
20594-
type: string
20595-
City:
20596-
description: max length = 255
20597-
maxLength: 255
20598-
type: string
20599-
Region:
20600-
description: max length = 255
20601-
maxLength: 255
20602-
type: string
20603-
PostalCode:
20604-
description: max length = 50
20605-
maxLength: 50
20606-
type: string
20607-
Country:
20608-
description: max length = 50, [A-Z], [a-z] only
20609-
maxLength: 50
20610-
type: string
20611-
AttentionTo:
20612-
description: max length = 255
20613-
maxLength: 255
20614-
type: string
20615-
type: object
20616-
Address:
20617-
externalDocs:
20618-
url: http://developer.xero.com/documentation/api/types
20619-
properties:
20620-
AddressType:
20621-
description: define the type of address
20622-
anyOf:
20623-
- type: string
20624-
enum:
20625-
- POBOX
20626-
- STREET
20627-
- type: string
20628-
AddressLine1:
20629-
description: max length = 500
20630-
maxLength: 500
20631-
type: string
20632-
AddressLine2:
20633-
description: max length = 500
20634-
maxLength: 500
20635-
type: string
20636-
AddressLine3:
20637-
description: max length = 500
20638-
maxLength: 500
20639-
type: string
20640-
AddressLine4:
20641-
description: max length = 500
20642-
maxLength: 500
20643-
type: string
20644-
City:
20645-
description: max length = 255
20646-
maxLength: 255
20647-
type: string
20648-
Region:
20649-
description: max length = 255
20650-
maxLength: 255
20651-
type: string
20652-
PostalCode:
20653-
description: max length = 50
20654-
maxLength: 50
20655-
type: string
20656-
Country:
20657-
description: max length = 50, [A-Z], [a-z] only
20658-
maxLength: 50
20659-
type: string
20660-
AttentionTo:
20661-
description: max length = 255
20662-
maxLength: 255
20663-
type: string
20664-
type: object
20665-
Phone:
20666-
externalDocs:
20667-
url: http://developer.xero.com/documentation/api/types
20668-
properties:
20669-
PhoneType:
20670-
anyOf:
20671-
- type: string
20672-
enum:
20673-
- DEFAULT
20674-
- DDI
20675-
- MOBILE
20676-
- FAX
20677-
- OFFICE
20678-
- type: string
20679-
PhoneNumber:
20680-
description: max length = 50
20681-
maxLength: 50
20682-
type: string
20683-
PhoneAreaCode:
20684-
description: max length = 10
20685-
maxLength: 10
20686-
type: string
20687-
PhoneCountryCode:
20688-
description: max length = 20
20689-
maxLength: 20
20690-
type: string
20691-
type: object
20692-
Accounts:
20693-
type: object
20694-
x-objectArrayKey: accounts
20695-
properties:
20696-
Accounts:
20697-
type: array
20698-
items:
20699-
$ref: '#/components/schemas/Account'
20700-
Account:
20701-
type: object
20702-
externalDocs:
20703-
url: http://developer.xero.com/documentation/api/accounts/
20704-
properties:
20705-
Code:
20706-
description: Customer defined alpha numeric account code e.g 200 or SALES (max length = 10)
20707-
type: string
20708-
example: 4400
20709-
Name:
20710-
description: Name of account (max length = 150)
20711-
maxLength: 150
20712-
type: string
20713-
example: Food Sales
20714-
AccountID:
20715-
description: The Xero identifier for an account – specified as a string following the endpoint name e.g. /297c2dc5-cc47-4afd-8ec8-74990b8761e9
20716-
type: string
20717-
format: uuid
20718-
example: 00000000-0000-0000-0000-000000000000
20719-
Type:
20720-
$ref: '#/components/schemas/AccountType'
20721-
type: string
20722-
BankAccountNumber:
20723-
description: For bank accounts only (Account Type BANK)
20724-
type: string
20725-
Status:
20726-
description: Accounts with a status of ACTIVE can be updated to ARCHIVED. See Account Status Codes
20727-
anyOf:
20728-
- type: string
20729-
enum:
20730-
- ACTIVE
20731-
- ARCHIVED
20732-
- DELETED
20733-
- type: string
20734-
Description:
20735-
description: Description of the Account. Valid for all types of accounts except bank accounts (max length = 4000)
20736-
type: string
20737-
BankAccountType:
20738-
description: For bank accounts only. See Bank Account types
20739-
anyOf:
20740-
- type: string
20741-
enum:
20742-
- BANK
20743-
- CREDITCARD
20744-
- PAYPAL
20745-
- NONE
20746-
- ""
20747-
- type: string
20748-
CurrencyCode:
20749-
$ref: '#/components/schemas/CurrencyCode'
20750-
type: string
20751-
TaxType:
20752-
description: The tax type from taxRates
20753-
type: string
20754-
EnablePaymentsToAccount:
20755-
description: Boolean – describes whether account can have payments applied to it
20756-
type: boolean
20757-
ShowInExpenseClaims:
20758-
description: Boolean – describes whether account code is available for use with expense claims
20759-
type: boolean
20760-
Class:
20761-
description: See Account Class Types
20762-
readOnly: true
20763-
anyOf:
20764-
- type: string
20765-
enum:
20766-
- ASSET
20767-
- EQUITY
20768-
- EXPENSE
20769-
- LIABILITY
20770-
- REVENUE
20771-
- type: string
20772-
SystemAccount:
20773-
description: If this is a system account then this element is returned. See System Account types. Note that non-system accounts may have this element set as either “” or null.
20774-
readOnly: true
20775-
anyOf:
20776-
- type: string
20777-
enum:
20778-
- DEBTORS
20779-
- CREDITORS
20780-
- BANKCURRENCYGAIN
20781-
- GST
20782-
- GSTONIMPORTS
20783-
- HISTORICAL
20784-
- REALISEDCURRENCYGAIN
20785-
- RETAINEDEARNINGS
20786-
- ROUNDING
20787-
- TRACKINGTRANSFERS
20788-
- UNPAIDEXPCLM
20789-
- UNREALISEDCURRENCYGAIN
20790-
- WAGEPAYABLES
20791-
- CISASSETS
20792-
- CISASSET
20793-
- CISLABOUR
20794-
- CISLABOUREXPENSE
20795-
- CISLABOURINCOME
20796-
- CISLIABILITY
20797-
- CISMATERIALS
20798-
- ""
20799-
- type: string
20800-
ReportingCode:
20801-
description: Shown if set
20802-
type: string
20803-
ReportingCodeName:
20804-
description: Shown if set
20805-
readOnly: true
20806-
type: string
20807-
HasAttachments:
20808-
description: boolean to indicate if an account has an attachment (read only)
20809-
readOnly: true
20810-
type: boolean
20811-
default: "false"
20812-
example: "false"
20813-
UpdatedDateUTC:
20814-
description: Last modified date UTC format
20815-
type: string
20816-
x-is-msdate-time: true
20817-
example: /Date(1573755038314)/
20818-
readOnly: true
20819-
AddToWatchlist:
20820-
description: Boolean – describes whether the account is shown in the watchlist widget on the dashboard
20821-
type: boolean
20822-
ValidationErrors:
20823-
description: Displays array of validation error messages from the API
20824-
type: array
20825-
items:
20826-
$ref: '#/components/schemas/ValidationError'
20827-
AccountTypeClosed:
20828-
description: See Account Types
20829-
anyOf:
20830-
- $ref: '#/components/schemas/TaxTypeClosed'
20831-
- type: string
2083220520
AccountType:
2083320521
description: See Account Types
2083420522
anyOf:

0 commit comments

Comments
 (0)