Skip to content

Commit

Permalink
Merge pull request #286 from XeroAPI/sid-development
Browse files Browse the repository at this point in the history
Fix up getQuoteByNumber path and add new AU Payroll enums
  • Loading branch information
SidneyAllen authored Sep 24, 2020
2 parents e31590b + 54d7cdb commit 05419ab
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 24 deletions.
2 changes: 1 addition & 1 deletion xero-identity.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: "2.3.0"
version: "2.3.1"
title: Xero oAuth 2 identity service
description: This specifing endpoints related to managing authentication tokens and identity for Xero API
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
Expand Down
5 changes: 4 additions & 1 deletion xero-payroll-au.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: '2.3.0'
version: '2.3.1'
title: 'Xero Payroll AU'
description: 'This is the Xero Payroll API for orgs in Australia region.'
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
Expand Down Expand Up @@ -3849,6 +3849,7 @@ components:
- EMPLOYMENTTERMINATIONPAYMENT
- LUMPSUMA
- LUMPSUMB
- BONUSESANDCOMMISSIONS
EmploymentTerminationPaymentType:
type: string
enum:
Expand Down Expand Up @@ -3940,6 +3941,8 @@ components:
- PAYGMANUAL
- ETPOMANUAL
- ETPRMANUAL
- SCHEDULE5MANUAL
- SCHEDULE5STSLMANUAL
SuperFundType:
type: string
enum:
Expand Down
2 changes: 1 addition & 1 deletion xero-payroll-nz.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: '2.3.0'
version: '2.3.1'
title: 'Xero Payroll NZ'
description: 'This is the Xero Payroll API for orgs in the NZ region.'
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
Expand Down
2 changes: 1 addition & 1 deletion xero-payroll-uk.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: '2.3.0'
version: '2.3.1'
title: 'Xero Payroll UK'
description: 'This is the Xero Payroll API for orgs in the UK region.'
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
Expand Down
2 changes: 1 addition & 1 deletion xero-projects.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: "2.3.0"
version: "2.3.1"
title: Xero Projects API
description: This is the Xero Projects API
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
Expand Down
36 changes: 20 additions & 16 deletions xero_accounting.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
openapi: 3.0.0
info:
title: Accounting API
version: "2.3.0"
version: "2.3.1"
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
contact:
name: "Xero Platform Team"
Expand Down Expand Up @@ -11691,29 +11691,28 @@ paths:
schema:
$ref: '#/components/schemas/Quotes'
example: '{ quotes: [{ contact: { contactID: "00000000-0000-0000-000-000000000000" }, lineItems: [{ description: "Foobar", quantity: 1.0, unitAmount: 20.0, accountCode: "12775" }], date: "2020-02-01" }]}'
'/Quotes/{QuoteID}':
'/Quotes/{QuoteNumber}':
parameters:
- $ref: '#/components/parameters/requiredHeader'
x-related-model: Quote
get:
security:
- OAuth2: [accounting.transactions.read]
- OAuth2: ['accounting.transactions.read']
tags:
- Accounting
operationId: getQuote
summary: Allows you to retrieve a specified quote
operationId: getQuoteByNumber
summary: Allows you to retrieve a specified quote by the quote number
parameters:
- required: true
in: path
name: QuoteID
description: Unique identifier for an Quote
example: "00000000-0000-0000-000-000000000000"
name: QuoteNumber
description: Unique identifier for a Quote
example: "QU01234"
schema:
type: string
format: uuid
responses:
'200':
description: Success - return response of type Quotes array with specified Quote
description: Success - return response of type Quote array for specified Quote
content:
application/json:
schema:
Expand Down Expand Up @@ -11777,24 +11776,29 @@ paths:
}
]
}'
'/Quotes/{QuoteID}':
parameters:
- $ref: '#/components/parameters/requiredHeader'
x-related-model: Quote
get:
security:
- OAuth2: ['accounting.transactions.read']
- OAuth2: [accounting.transactions.read]
tags:
- Accounting
operationId: getQuoteByNumber
operationId: getQuote
summary: Allows you to retrieve a specified quote
parameters:
- required: true
in: path
name: QuoteNumber
description: Unique identifier for a Quote
example: "QU01234"
name: QuoteID
description: Unique identifier for an Quote
example: "00000000-0000-0000-000-000000000000"
schema:
type: string
format: uuid
responses:
'200':
description: Success - return response of type Quote array for specified Quote
description: Success - return response of type Quotes array with specified Quote
content:
application/json:
schema:
Expand Down
2 changes: 1 addition & 1 deletion xero_assets.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: "2.3.0"
version: "2.3.1"
title: Xero Assets API
description: This is the Xero Assets API
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
Expand Down
2 changes: 1 addition & 1 deletion xero_bankfeeds.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.0
info:
version: "2.3.0"
version: "2.3.1"
title: Bank Feeds API
description: This specifing endpoints Xero Bank feeds API
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
Expand Down
2 changes: 1 addition & 1 deletion xero_files.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ servers:
url: https://api.xero.com/files.xro/1.0/
info:
title: Xero Files API
version: "1.0.0"
version: "2.3.1"
termsOfService: "https://developer.xero.com/xero-developer-platform-terms-conditions/"
contact:
name: "Xero Platform Team"
Expand Down

0 comments on commit 05419ab

Please sign in to comment.