Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 1 addition & 14 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
<!--- Provide a general summary of your changes in the Title above -->

## Description
<!--- Describe your changes in detail -->

## Release Notes
<!--- Why is this change required? What problem does it solve? -->
<!--- Describe your changes in detail. -->
<!--- If it fixes an open issue, please link to the issue here. -->

## Screenshots (if appropriate):

## Types of Changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[
"@semantic-release/release-notes-generator",
{
"preset": "angular",
"preset": "conventionalcommits",
"writerOpts": {
"headerPartial": "## What's changed",
"footerPartial": "\n**Full Changelog**:https://github.com/XeroAPI/Xero-OpenAPI/compare/{{previousTag}}...{{version}}"
Expand Down
6 changes: 0 additions & 6 deletions .yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ extends: default

rules:
line-length: disable
trailing-spaces: disable
indentation: disable
colons: disable
commas: disable
new-line-at-end-of-file: disable
document-start: disable
truthy: disable
comments: disable
new-lines: disable
7 changes: 1 addition & 6 deletions scripts/update-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,10 @@
versionNumber=${1:?Version number is required as first argument}
branchName=${2:-master}

if [ "${GITHUB_ACTIONS:-}" = "true" ]; then
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
fi

git checkout "$branchName"

for file in xero*.yaml; do
yq eval --no-colors --prettyPrint ".info.version = \"$versionNumber\"" -i "$file"
yq -i ".info.version = \"$versionNumber\"" -i "$file"
echo "updated version in $file to $versionNumber"
done

Expand Down
54 changes: 27 additions & 27 deletions xero-app-store.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ paths:
operationId: getSubscription
summary: Retrieves a subscription for a given subscriptionId
parameters:
- $ref: '#/components/parameters/subscriptionId'
- $ref: "#/components/parameters/subscriptionId"
responses:
"200":
description: Success - return response of unique Subscription object
content:
application/json:
schema:
$ref: '#/components/schemas/Subscription'
$ref: "#/components/schemas/Subscription"
example:
currentPeriodEnd: 2021-07-20T03:13:48
endDate: 2021-07-20T03:13:48
Expand Down Expand Up @@ -72,7 +72,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
$ref: "#/components/schemas/ProblemDetails"
description: When a failure occurs in the endpoint
security:
- OAuth2:
Expand All @@ -84,16 +84,16 @@ paths:
operationId: postUsageRecords
summary: Send metered usage belonging to this subscription and subscription item
parameters:
- $ref: '#/components/parameters/idempotencyKey'
- $ref: '#/components/parameters/subscriptionId'
- $ref: '#/components/parameters/subscriptionItemId'
- $ref: "#/components/parameters/idempotencyKey"
- $ref: "#/components/parameters/subscriptionId"
- $ref: "#/components/parameters/subscriptionItemId"
responses:
"200":
description: Success - return response of the record submitted
content:
application/json:
schema:
$ref: '#/components/schemas/UsageRecord'
$ref: "#/components/schemas/UsageRecord"
example:
usageRecordId: 2a90f7d9-4c10-4a23-9c34-b47225167a48
subscriptionId: 391be708-878a-4741-acfb-c0bc9a165bdb
Expand All @@ -107,7 +107,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
$ref: "#/components/schemas/ProblemDetails"
description: When a failure occurs in the endpoint
security:
- OAuth2:
Expand All @@ -116,7 +116,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateUsageRecord'
$ref: "#/components/schemas/CreateUsageRecord"
example:
timestamp: 2022-01-21T13:01:00
quantity: 10
Expand All @@ -129,17 +129,17 @@ paths:
operationId: putUsageRecords
summary: Update and existing metered usage belonging to this subscription and subscription item
parameters:
- $ref: '#/components/parameters/idempotencyKey'
- $ref: '#/components/parameters/subscriptionId'
- $ref: '#/components/parameters/subscriptionItemId'
- $ref: '#/components/parameters/usageRecordId'
- $ref: "#/components/parameters/idempotencyKey"
- $ref: "#/components/parameters/subscriptionId"
- $ref: "#/components/parameters/subscriptionItemId"
- $ref: "#/components/parameters/usageRecordId"
responses:
"200":
description: Success - return response of the modified record
content:
application/json:
schema:
$ref: '#/components/schemas/UsageRecord'
$ref: "#/components/schemas/UsageRecord"
example:
usageRecordId: 2a90f7d9-4c10-4a23-9c34-b47225167a48
subscriptionId: 391be708-878a-4741-acfb-c0bc9a165bdb
Expand All @@ -153,7 +153,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
$ref: "#/components/schemas/ProblemDetails"
description: When a failure occurs in the endpoint
security:
- OAuth2:
Expand All @@ -162,7 +162,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateUsageRecord'
$ref: "#/components/schemas/UpdateUsageRecord"
example:
quantity: 10
description: Contains the quantity for the usage record to update
Expand All @@ -174,14 +174,14 @@ paths:
operationId: getUsageRecords
summary: Gets all usage records related to the subscription
parameters:
- $ref: '#/components/parameters/subscriptionId'
- $ref: "#/components/parameters/subscriptionId"
responses:
"200":
description: Success - return a list of all usage record submitted against this subscription for this subscription period
content:
application/json:
schema:
$ref: '#/components/schemas/UsageRecordsList'
$ref: "#/components/schemas/UsageRecordsList"
example:
usageRecords:
- usageRecordId: 206100d3-e18b-4c59-9372-e98e4367a73f
Expand All @@ -204,7 +204,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ProblemDetails'
$ref: "#/components/schemas/ProblemDetails"
description: When a failure occurs in the endpoint
security:
- OAuth2:
Expand All @@ -228,7 +228,7 @@ components:
description: Unique identifier for Subscription object
example: 00000000-0000-0000-0000-000000000000
x-example-java: UUID.fromString("00000000-0000-0000-0000-000000000000")
x-example-php: '&quot;00000000-0000-0000-0000-000000000000&quot;'
x-example-php: "&quot;00000000-0000-0000-0000-000000000000&quot;"
x-example-csharp: Guid.Parse("00000000-0000-0000-0000-000000000000");
schema:
type: string
Expand All @@ -241,7 +241,7 @@ components:
description: The unique identifier of the subscriptionItem
example: 00000000-0000-0000-0000-000000000000
x-example-java: UUID.fromString("00000000-0000-0000-0000-000000000000")
x-example-php: '&quot;00000000-0000-0000-0000-000000000000&quot;'
x-example-php: "&quot;00000000-0000-0000-0000-000000000000&quot;"
x-example-csharp: Guid.Parse("00000000-0000-0000-0000-000000000000");
schema:
type: string
Expand All @@ -254,7 +254,7 @@ components:
description: The unique identifier of the usage record
example: 00000000-0000-0000-0000-000000000000
x-example-java: UUID.fromString("00000000-0000-0000-0000-000000000000")
x-example-php: '&quot;00000000-0000-0000-0000-000000000000&quot;'
x-example-php: "&quot;00000000-0000-0000-0000-000000000000&quot;"
x-example-csharp: Guid.Parse("00000000-0000-0000-0000-000000000000");
schema:
type: string
Expand Down Expand Up @@ -294,7 +294,7 @@ components:
description: List of plans for the subscription.
type: array
items:
$ref: '#/components/schemas/Plan'
$ref: "#/components/schemas/Plan"
startDate:
description: Date when the subscription was first created.
format: date-time
Expand Down Expand Up @@ -343,7 +343,7 @@ components:
List of the subscription items belonging to the plan. It does not
include cancelled subscription items.
items:
$ref: '#/components/schemas/SubscriptionItem'
$ref: "#/components/schemas/SubscriptionItem"
type: array
required:
- id
Expand Down Expand Up @@ -398,10 +398,10 @@ components:
type: string
price:
description: The price of the product subscribed to.
$ref: '#/components/schemas/Price'
$ref: "#/components/schemas/Price"
product:
description: The product subscribed to.
$ref: '#/components/schemas/Product'
$ref: "#/components/schemas/Product"
quantity:
description: The quantity of the item. For a fixed product, it is 1. For a per-seat product, it is a positive integer. For metered products, it is always null.
type: integer
Expand Down Expand Up @@ -508,7 +508,7 @@ components:
usageRecords:
description: A collection of usage records
items:
$ref: '#/components/schemas/UsageRecord'
$ref: "#/components/schemas/UsageRecord"
type: array
required:
- usageRecords
Expand Down
Loading
Loading