Skip to content

Commit

Permalink
Revert "Merge pull request #628 from XeroAPI/consume-prism-server"
Browse files Browse the repository at this point in the history
This reverts commit 4f14ed7, reversing
changes made to 7b219fe.
  • Loading branch information
Vignesh Kennadi committed Sep 24, 2024
1 parent 4f14ed7 commit f8d07cb
Show file tree
Hide file tree
Showing 8 changed files with 1,179 additions and 1,256 deletions.
26 changes: 14 additions & 12 deletions xero-app-store.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/Subscription"
example: {
example: '
{
"currentPeriodEnd": "2021-07-20T03:13:48",
"endDate": "2021-07-20T03:13:48",
"id": "01b5a6f4-8936-4bfa-b703-830702312b87",
Expand Down Expand Up @@ -81,6 +82,7 @@ paths:
"startDate": "2021-07-20T03:13:48",
"status": "ACTIVE"
}
'
"404":
content:
application/json:
Expand All @@ -106,7 +108,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/UsageRecord"
example: {
example: '{
"usageRecordId": "2a90f7d9-4c10-4a23-9c34-b47225167a48",
"subscriptionId": "391be708-878a-4741-acfb-c0bc9a165bdb",
"subscriptionItemId": "b22b150f-a0db-447d-9117-d922110add64",
Expand All @@ -115,7 +117,7 @@ paths:
"quantity": 22,
"testMode": true,
"recordedAt": "2022-09-13T02:11:22"
}
}'
"404":
content:
application/json:
Expand All @@ -129,10 +131,10 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/CreateUsageRecord"
example: {
example: '{
"timestamp": "2022-01-21T13:01:00",
"quantity": 10
}
}'
description: Contains the quantity for the usage record to create
required: true
"/subscriptions/{subscriptionId}/items/{subscriptionItemId}/usage-records/{usageRecordId}":
Expand All @@ -153,7 +155,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/UsageRecord"
example: {
example: '{
"usageRecordId": "2a90f7d9-4c10-4a23-9c34-b47225167a48",
"subscriptionId": "391be708-878a-4741-acfb-c0bc9a165bdb",
"subscriptionItemId": "b22b150f-a0db-447d-9117-d922110add64",
Expand All @@ -162,7 +164,7 @@ paths:
"quantity": 22,
"testMode": true,
"recordedAt": "2022-09-13T02:11:22"
}
}'
"404":
content:
application/json:
Expand All @@ -176,9 +178,9 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/UpdateUsageRecord"
example: {
example: '{
"quantity": 10
}
}'
description: Contains the quantity for the usage record to update
required: true
"/subscriptions/{subscriptionId}/usage-records":
Expand All @@ -196,7 +198,7 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/UsageRecordsList"
example: {
example: '{
"usageRecords": [
{
"usageRecordId": "206100d3-e18b-4c59-9372-e98e4367a73f",
Expand All @@ -219,7 +221,7 @@ paths:
"recordedAt": "2022-01-01T00:00:00"
}
]
}
}'
"404":
content:
application/json:
Expand Down Expand Up @@ -557,4 +559,4 @@ components:
type: integer
required:
- quantity
type: object
type: object
18 changes: 9 additions & 9 deletions xero-finance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ paths:
endDate: '2021-03-01'
startBalance: 0
endBalance: 0
importedDateTimeUtc: '2021-03-09T05:22:14.3Z'
importedDateTimeUtc: '2021-03-09T05:22:14.3'
importSourceType: Manual
cashAccount:
unreconciledAmountPos: 1440
Expand Down Expand Up @@ -256,13 +256,13 @@ paths:
lockDates:
- hardLockDate: '2019-01-20'
softLockDate: '2019-01-20'
updatedDateUtc: '2019-01-20T10:50:03Z'
updatedDateUtc: '2019-01-20 10:50:03'
- hardLockDate: '2019-01-21'
softLockDate: '2019-01-21'
updatedDateUtc: '2019-01-21T10:59:33Z'
updatedDateUtc: '2019-01-21 10:59:33'
- hardLockDate: '2019-01-22'
softLockDate: '2019-01-22'
updatedDateUtc: '2019-01-22T10:24:12Z'
updatedDateUtc: '2019-01-22 10:24:12'
'400':
description: BadRequest
content:
Expand Down Expand Up @@ -353,8 +353,8 @@ paths:
dataMonth: 2020-01
users:
- userId: bf3108f9-7449-4b2d-a1d1-41342dc1c991
userCreatedDateUtc: '2016-04-15T04:01:42.8Z'
lastLoginDateUtc: '2020-02-12T23:59:06.42Z'
userCreatedDateUtc: '2016-04-15T04:01:42.8'
lastLoginDateUtc: '2020-02-12T23:59:06.42'
isExternalPartner: true
hasAccountantRole: true
monthPeriod: 2020-01
Expand Down Expand Up @@ -1089,14 +1089,14 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/BankStatementAccountingResponse'
example: {"bankAccountId":"1234eee9-47f0-4179-bd46-9adb4f21cc7f","bankAccountName":"ANZ BANK","bankAccountCurrencyCode":"NZD","statements":[{"statementId":"7c29eee9-47f0-4179-bd46-9adb4f21cc7f","startDate":"2021-01-01","endDate":"2021-01-02","importedDateTimeUtc":"2021-01-02T12:00:00Z","importSource":"STMTIMPORTSRC/MANUAL", "startBalance":10.0,"endBalance":200.0, "indicativeStartBalance":10.0, "indicativeEndBalance":200.0, "statementLines":[{"statementLineId":"1234eee9-47f0-4179-bd46-9adb4f21cc7f","postedDate":"2021-01-01", "payee":"ACME Thneeds ABC1234567890 SYDNEY", "reference":"Eft","notes":"payment to bank","chequeNo":"123","amount":100.0,"transactionDate":"2021-01-01","type":"Debit","isReconciled":true,"isDuplicate":false,"isDeleted":false,"payments":[{"paymentId":"47ec8431-23c2-4ef9-90e5-b440fe55d086","batchPaymentId":"ecc83387-ffaa-4023-b111-b3fd9e3e4a8e","date":"2021-01-01","amount":80.0,"bankAmount":80.0,"currencyRate":1.0,"invoice":{"invoiceId":"c01dd6ac-8835-4bf2-af8b-841db9534d7f","contact":{"contactId":"1234eee9-47f0-4179-bd46-9adb4f21cc7f","contactName":"Bob"},"total":80.0,"lineItems":[{"accountId":"f7fe1049-d1cf-4d10-9df1-67a6e363015f","reportingCode":"REV.OTH","lineAmount":80.0,"accountType":"REVENUE"}]}},{"paymentId":"54e8eee0-91a7-4a4d-bb9b-957302a2760a","batchPaymentId":"ecc83387-ffaa-4023-b111-b3fd9e3e4a8e","date":"2021-01-01","amount":15.0,"bankAmount":15.0,"currencyRate":1.0,"creditNote":{"creditNoteId":"c346d6a5-f013-4207-bc70-f2dd80a5f37f","contact":{"contactId":"1234eee9-47f0-4179-bd46-9adb4f21cc7f","contactName":"Bob"},"total":15.0,"lineItems":[{"accountId":"f7fe1049-d1cf-4d10-9df1-67a6e363015f","reportingCode":"REV.OTH","lineAmount":15.0,"accountType":"REVENUE"}]}},{"paymentId":"f94dad64-658c-491f-b901-05d38e9e8702","date":"2021-01-01","amount":5.0,"bankAmount":5.0,"currencyRate":1.0,"prepayment":{"prepaymentId":"995f81ae-0afd-4c84-bbe1-90bc7dfa4372","contact":{"contactId":"1234eee9-47f0-4179-bd46-9adb4f21cc7f","contactName":"Bob"},"total":5.0,"lineItems":[{"accountId":"f7fe1049-d1cf-4d10-9df1-67a6e363015f","reportingCode":"REV.OTH","lineAmount":5.0,"accountType":"REVENUE"}]}},{"paymentId":"6ffbe999-04c8-42d2-bf16-13947c5f1036","date":"2021-01-01","amount":5.0,"bankAmount":5.0,"currencyRate":1.0,"overpayment":{"overpaymentId":"06575718-5100-4e02-8fbf-c2731a112836","contact":{"contactId":"1234eee9-47f0-4179-bd46-9adb4f21cc7f","contactName":"Bob"},"total":5.0,"lineItems":[{"accountId":"f7fe1049-d1cf-4d10-9df1-67a6e363015f","reportingCode":"REV.OTH","lineAmount":5.0,"accountType":"REVENUE"}]}}],"bankTransactions":[{"bankTransactionId":"55edf88c-6bf6-459a-bd9b-7f250df62eb2","batchPaymentId":"2dce9b39-0427-41af-9739-9510e3b68211","contact":{"contactId":"1234eee9-47f0-4179-bd46-9adb4f21cc7f","contactName":"Bob"},"date":"2021-01-01","amount":20.0,"lineItems":[{"accountId":"f7fe1049-d1cf-4d10-9df1-67a6e363015f","reportingCode":"REV.OTH","lineAmount":20.0,"accountType":"REVENUE"}]}]}]}]}
example: '{"bankAccountId":"1234eee9-47f0-4179-bd46-9adb4f21cc7f","bankAccountName":"ANZ BANK","bankAccountCurrencyCode":"NZD","statements":[{"statementId":"7c29eee9-47f0-4179-bd46-9adb4f21cc7f","startDate":"2021-01-01","endDate":"2021-01-02","importedDateTimeUtc":"2021-01-02T12:00:00Z","importSource":"STMTIMPORTSRC/MANUAL", "startBalance":10.0,"endBalance":200.0, "indicativeStartBalance":10.0, "indicativeEndBalance":200.0, "statementLines":[{"statementLineId":"1234eee9-47f0-4179-bd46-9adb4f21cc7f","postedDate":"2021-01-01", "payee":"ACME Thneeds ABC1234567890 SYDNEY", "reference":"Eft","notes":"payment to bank","chequeNo":"123","amount":100.0,"transactionDate":"2021-01-01","type":"Debit","isReconciled":true,"isDuplicate":false,"isDeleted":false,"payments":[{"paymentId":"47ec8431-23c2-4ef9-90e5-b440fe55d086","batchPaymentId":"ecc83387-ffaa-4023-b111-b3fd9e3e4a8e","date":"2021-01-01","amount":80.0,"bankAmount":80.0,"currencyRate":1.0,"invoice":{"invoiceId":"c01dd6ac-8835-4bf2-af8b-841db9534d7f","contact":{"contactId":"1234eee9-47f0-4179-bd46-9adb4f21cc7f","contactName":"Bob"},"total":80.0,"lineItems":[{"accountId":"f7fe1049-d1cf-4d10-9df1-67a6e363015f","reportingCode":"REV.OTH","lineAmount":80.0,"accountType":"REVENUE"}]}},{"paymentId":"54e8eee0-91a7-4a4d-bb9b-957302a2760a","batchPaymentId":"ecc83387-ffaa-4023-b111-b3fd9e3e4a8e","date":"2021-01-01","amount":15.0,"bankAmount":15.0,"currencyRate":1.0,"creditNote":{"creditNoteId":"c346d6a5-f013-4207-bc70-f2dd80a5f37f","contact":{"contactId":"1234eee9-47f0-4179-bd46-9adb4f21cc7f","contactName":"Bob"},"total":15.0,"lineItems":[{"accountId":"f7fe1049-d1cf-4d10-9df1-67a6e363015f","reportingCode":"REV.OTH","lineAmount":15.0,"accountType":"REVENUE"}]}},{"paymentId":"f94dad64-658c-491f-b901-05d38e9e8702","date":"2021-01-01","amount":5.0,"bankAmount":5.0,"currencyRate":1.0,"prepayment":{"prepaymentId":"995f81ae-0afd-4c84-bbe1-90bc7dfa4372","contact":{"contactId":"1234eee9-47f0-4179-bd46-9adb4f21cc7f","contactName":"Bob"},"total":5.0,"lineItems":[{"accountId":"f7fe1049-d1cf-4d10-9df1-67a6e363015f","reportingCode":"REV.OTH","lineAmount":5.0,"accountType":"REVENUE"}]}},{"paymentId":"6ffbe999-04c8-42d2-bf16-13947c5f1036","date":"2021-01-01","amount":5.0,"bankAmount":5.0,"currencyRate":1.0,"overpayment":{"overpaymentId":"06575718-5100-4e02-8fbf-c2731a112836","contact":{"contactId":"1234eee9-47f0-4179-bd46-9adb4f21cc7f","contactName":"Bob"},"total":5.0,"lineItems":[{"accountId":"f7fe1049-d1cf-4d10-9df1-67a6e363015f","reportingCode":"REV.OTH","lineAmount":5.0,"accountType":"REVENUE"}]}}],"bankTransactions":[{"bankTransactionId":"55edf88c-6bf6-459a-bd9b-7f250df62eb2","batchPaymentId":"2dce9b39-0427-41af-9739-9510e3b68211","contact":{"contactId":"1234eee9-47f0-4179-bd46-9adb4f21cc7f","contactName":"Bob"},"date":"2021-01-01","amount":20.0,"lineItems":[{"accountId":"f7fe1049-d1cf-4d10-9df1-67a6e363015f","reportingCode":"REV.OTH","lineAmount":20.0,"accountType":"REVENUE"}]}]}]}]}'
'400':
description: BadRequest
content:
application/json:
schema:
$ref: '#/components/schemas/Problem'
example: {"type":"invalid-request","title":"InvalidRequest","status":400,"detail":"AccountId was not supplied"}
example: '{"type":"invalid-request","title":"InvalidRequest","status":400,"detail":"AccountId was not supplied"}'
components:
securitySchemes:
OAuth2:
Expand Down Expand Up @@ -2467,4 +2467,4 @@ components:
items:
$ref: '#/components/schemas/StatementLineResponse'
description: List of statement lines
additionalProperties: false
additionalProperties: false
Loading

0 comments on commit f8d07cb

Please sign in to comment.