From 47bdf4437f49ff5dd682c43633e56ab930883074 Mon Sep 17 00:00:00 2001 From: ronnel-santiago_xero Date: Wed, 19 Jun 2024 13:25:14 +1000 Subject: [PATCH 1/9] [APIB-5555] Adds pagination information for GET /bankTransactions --- xero_accounting.yaml | 38 +++++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/xero_accounting.yaml b/xero_accounting.yaml index e35387104..6457c3c6c 100644 --- a/xero_accounting.yaml +++ b/xero_accounting.yaml @@ -1344,12 +1344,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/BankTransactions' + $ref: '#/components/schemas/GetBankTransactionsResponse' example: '{ "Id": "18e7e80c-5dca-4a57-974e-8b572cc5efe8", "Status": "OK", "ProviderName": "Xero API Partner", "DateTimeUTC": "/Date(1551212901659)/", + "PageInfo" : { + "Page": 1, + "PageSize": 100, + "TotalPages": 1, + "TotalRows": 3 + }, "BankTransactions": [ { "BankTransactionID": "db54aab0-ad40-4ced-bcff-0940ba20db2c", @@ -24213,6 +24219,24 @@ components: - LineItems - BankAccount type: object + GetBankTransactionsResponse: + type: object + properties: + Id: + type: string + Status: + type: string + ProviderName: + type: string + DateTimeUTC: + type: string + PageInfo: + $ref: '#/components/schemas/PageInfo' + BankTransactions: + type: array + minItems: 1 + items: + $ref: '#/components/schemas/BankTransactions' LineAmountTypes: description: Line amounts are exclusive of tax by default if you don’t specify this element. See Line Amount Types type: string @@ -27626,6 +27650,18 @@ components: items: $ref: '#/components/schemas/Attachment' type: object + PageInfo: + type: object + description: Pagination information + properties: + Page: + type: integer + PageSize: + type: integer + TotalPages: + type: integer + TotalRows: + type: integer Quotes: type: object x-isObjectArray: true From a9e8d2619ae8abb9f82f61024a1cccfdfce37cd6 Mon Sep 17 00:00:00 2001 From: ronnel-santiago_xero Date: Wed, 19 Jun 2024 13:38:47 +1000 Subject: [PATCH 2/9] [APIB-5555] Adds pagination information for GET /invoices --- xero_accounting.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/xero_accounting.yaml b/xero_accounting.yaml index 6457c3c6c..d01832e32 100644 --- a/xero_accounting.yaml +++ b/xero_accounting.yaml @@ -8245,12 +8245,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Invoices' + $ref: '#/components/schemas/GetInvoicesResponse' example: '{ "Id": "900c500b-e83c-4ce2-902a-b8ba04751748", "Status": "OK", "ProviderName": "Provider Name Example", "DateTimeUTC": "\/Date(1552326816230)\/", + "PageInfo" : { + "Page": 1, + "PageSize": 100, + "TotalPages": 1, + "TotalRows": 3 + }, "Invoices": [ { "Type": "ACCREC", @@ -26015,6 +26021,24 @@ components: items: $ref: '#/components/schemas/ValidationError' type: object + GetInvoicesResponse: + type: object + properties: + Id: + type: string + Status: + type: string + ProviderName: + type: string + DateTimeUTC: + type: string + PageInfo: + $ref: '#/components/schemas/PageInfo' + Invoices: + type: array + minItems: 1 + items: + $ref: '#/components/schemas/Invoices' OnlineInvoices: type: object x-isObjectArray: true From ced9b1f6b4a3f5113cc9987d7b5e8fdb4b2153db Mon Sep 17 00:00:00 2001 From: ronnel-santiago_xero Date: Wed, 19 Jun 2024 13:45:09 +1000 Subject: [PATCH 3/9] [APIB-5555] Adds pagination information for GET /manualJournals --- xero_accounting.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/xero_accounting.yaml b/xero_accounting.yaml index d01832e32..f7d45eee3 100644 --- a/xero_accounting.yaml +++ b/xero_accounting.yaml @@ -10993,12 +10993,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ManualJournals' + $ref: '#/components/schemas/GetManualJournalsResponse' example: '{ "Id": "8a508ec1-b578-48bf-97df-020c918fbf7d", "Status": "OK", "ProviderName": "Provider Name Example", "DateTimeUTC": "\/Date(1552357217359)\/", + "PageInfo" : { + "Page": 1, + "PageSize": 100, + "TotalPages": 1, + "TotalRows": 3 + }, "ManualJournals": [ { "Date": "\/Date(1553126400000+0000)\/", @@ -26469,6 +26475,24 @@ components: required: - Narration type: object + GetManualJournalsResponse: + type: object + properties: + Id: + type: string + Status: + type: string + ProviderName: + type: string + DateTimeUTC: + type: string + PageInfo: + $ref: '#/components/schemas/PageInfo' + ManualJournals: + type: array + minItems: 1 + items: + $ref: '#/components/schemas/ManualJournals' ManualJournalLine: externalDocs: url: 'http://developer.xero.com/documentation/api/manual-journals/' From dd1a6846609a9ca084fbe6ee548b620b996f02c6 Mon Sep 17 00:00:00 2001 From: ronnel-santiago_xero Date: Wed, 19 Jun 2024 13:49:21 +1000 Subject: [PATCH 4/9] [APIB-5555] Adds pagination information for GET /creditNotes --- xero_accounting.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/xero_accounting.yaml b/xero_accounting.yaml index f7d45eee3..c9d1348f0 100644 --- a/xero_accounting.yaml +++ b/xero_accounting.yaml @@ -5585,12 +5585,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CreditNotes' + $ref: '#/components/schemas/GetCreditNotesResponse' example: '{ "Id": "306379b0-3d75-4c77-953a-be08fa0efae8", "Status": "OK", "ProviderName": "Provider Name Example", "DateTimeUTC": "\/Date(1551812506620)\/", + "PageInfo" : { + "Page": 1, + "PageSize": 100, + "TotalPages": 1, + "TotalRows": 2 + }, "CreditNotes": [ { "CreditNoteID": "249f15fa-f2a7-4acc-8769-0984103f2225", @@ -25241,6 +25247,24 @@ components: items: $ref: '#/components/schemas/ValidationError' type: object + GetCreditNotesResponse: + type: object + properties: + Id: + type: string + Status: + type: string + ProviderName: + type: string + DateTimeUTC: + type: string + PageInfo: + $ref: '#/components/schemas/PageInfo' + CreditNotes: + type: array + minItems: 1 + items: + $ref: '#/components/schemas/CreditNotes' Allocations: type: object x-isObjectArray: true From 643ab848b25fd0821728147dae7f8217a59548c5 Mon Sep 17 00:00:00 2001 From: ronnel-santiago_xero Date: Wed, 19 Jun 2024 13:59:09 +1000 Subject: [PATCH 5/9] [APIB-5555] Adds pagination information for GET /contacts --- xero_accounting.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/xero_accounting.yaml b/xero_accounting.yaml index c9d1348f0..1b6557055 100644 --- a/xero_accounting.yaml +++ b/xero_accounting.yaml @@ -3749,12 +3749,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contacts' + $ref: '#/components/schemas/GetContactsResponse' example: '{ "Id": "04e93d48-e72f-4775-b7dd-15a041fab972", "Status": "OK", "ProviderName": "Xero API Partner", "DateTimeUTC": "\/Date(1551399323399)\/", + "PageInfo" : { + "Page": 1, + "PageSize": 100, + "TotalPages": 1, + "TotalRows": 2 + }, "Contacts": [ { "ContactID": "5cc8cf28-567e-4d43-b287-687cfcaec47c", @@ -24872,6 +24878,24 @@ components: description: Status of object type: string type: object + GetContactsResponse: + type: object + properties: + Id: + type: string + Status: + type: string + ProviderName: + type: string + DateTimeUTC: + type: string + PageInfo: + $ref: '#/components/schemas/PageInfo' + Contacts: + type: array + minItems: 1 + items: + $ref: '#/components/schemas/Contacts' Budgets: type: object x-isObjectArray: true From e57328729817b574d69734e06925d1bd81063242 Mon Sep 17 00:00:00 2001 From: ronnel-santiago_xero Date: Wed, 19 Jun 2024 14:05:17 +1000 Subject: [PATCH 6/9] [APIB-5555] Adds pagination information for GET /purchaseOrders --- xero_accounting.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/xero_accounting.yaml b/xero_accounting.yaml index 1b6557055..76ec93dff 100644 --- a/xero_accounting.yaml +++ b/xero_accounting.yaml @@ -14279,12 +14279,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PurchaseOrders' + $ref: '#/components/schemas/GetPurchaseOrdersResponse' example: '{ "Id": "66910bfc-15cc-4692-bd4c-cc8f671e653c", "Status": "OK", "ProviderName": "Provider Name Example", "DateTimeUTC": "\/Date(1552523977238)\/", + "PageInfo" : { + "Page": 1, + "PageSize": 100, + "TotalPages": 1, + "TotalRows": 2 + }, "PurchaseOrders": [ { "PurchaseOrderID": "f9627f0d-b715-4039-bb6a-96dc3eae5ec5", @@ -27746,6 +27752,24 @@ components: items: $ref: '#/components/schemas/Attachment' type: object + GetPurchaseOrdersResponse: + type: object + properties: + Id: + type: string + Status: + type: string + ProviderName: + type: string + DateTimeUTC: + type: string + PageInfo: + $ref: '#/components/schemas/PageInfo' + PurchaseOrders: + type: array + minItems: 1 + items: + $ref: '#/components/schemas/PurchaseOrders' PageInfo: type: object description: Pagination information From 44ce607abb80e41332b4ad5af4c70d5a66f4fc6e Mon Sep 17 00:00:00 2001 From: ronnel-santiago_xero Date: Wed, 19 Jun 2024 14:11:38 +1000 Subject: [PATCH 7/9] [APIB-5555] Adds pagination information for GET /payments --- xero_accounting.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/xero_accounting.yaml b/xero_accounting.yaml index 76ec93dff..7080541e5 100644 --- a/xero_accounting.yaml +++ b/xero_accounting.yaml @@ -12811,12 +12811,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Payments' + $ref: '#/components/schemas/GetPaymentsResponse' example: '{ "Id": "9f310473-e1b5-4704-a25c-eec653deb596", "Status": "OK", "ProviderName": "Provider Name Example", "DateTimeUTC": "\/Date(1552431874205)\/", + "PageInfo" : { + "Page": 1, + "PageSize": 100, + "TotalPages": 1, + "TotalRows": 2 + }, "Payments": [ { "PaymentID": "99ea7f6b-c513-4066-bc27-b7c65dcd76c2", @@ -27502,6 +27508,24 @@ components: items: $ref: '#/components/schemas/ValidationError' type: object + GetPaymentsResponse: + type: object + properties: + Id: + type: string + Status: + type: string + ProviderName: + type: string + DateTimeUTC: + type: string + PageInfo: + $ref: '#/components/schemas/PageInfo' + Payments: + type: array + minItems: 1 + items: + $ref: '#/components/schemas/Payments' Prepayments: type: object x-isObjectArray: true From d9162754824b1cb95e3b48b70f2f5d39da0a9f49 Mon Sep 17 00:00:00 2001 From: ronnel-santiago_xero Date: Fri, 21 Jun 2024 13:39:25 +1000 Subject: [PATCH 8/9] [APIB-5555] Adds pagination information for GET /overPayments --- xero_accounting.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/xero_accounting.yaml b/xero_accounting.yaml index 7080541e5..2d57bcb61 100644 --- a/xero_accounting.yaml +++ b/xero_accounting.yaml @@ -12229,12 +12229,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Overpayments' + $ref: '#/components/schemas/GetOverpaymentsResponse' example: '{ "Id": "c0ce675e-e5bc-4b2a-a20e-76a9eaedf89d", "Status": "OK", "ProviderName": "Provider Name Example", "DateTimeUTC": "\/Date(1552428951416)\/", + "PageInfo" : { + "Page": 1, + "PageSize": 100, + "TotalPages": 1, + "TotalRows": 5 + }, "Overpayments": [ { "OverpaymentID": "098b4dcb-5622-4699-87f8-9d40c4ccceb3", @@ -27369,6 +27375,24 @@ components: items: $ref: '#/components/schemas/Attachment' type: object + GetOverpaymentsResponse: + type: object + properties: + Id: + type: string + Status: + type: string + ProviderName: + type: string + DateTimeUTC: + type: string + PageInfo: + $ref: '#/components/schemas/PageInfo' + Overpayments: + type: array + minItems: 1 + items: + $ref: '#/components/schemas/Overpayments' Payments: type: object x-isObjectArray: true From 28864a757732201384d4e8eb04da50a6462f6fb9 Mon Sep 17 00:00:00 2001 From: ronnel-santiago_xero Date: Fri, 21 Jun 2024 13:42:02 +1000 Subject: [PATCH 9/9] [APIB-5555] Adds pagination information for GET /prePayments --- xero_accounting.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/xero_accounting.yaml b/xero_accounting.yaml index 2d57bcb61..bc1b1d5c9 100644 --- a/xero_accounting.yaml +++ b/xero_accounting.yaml @@ -13807,12 +13807,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prepayments' + $ref: '#/components/schemas/GetPrepaymentsResponse' example: '{ "Id": "d7a9ca0c-6159-4c26-ad2e-715440c50b7d", "Status": "OK", "ProviderName": "Provider Name Example", "DateTimeUTC": "\/Date(1552489227595)\/", + "PageInfo" : { + "Page": 1, + "PageSize": 100, + "TotalPages": 1, + "TotalRows": 1 + }, "Prepayments": [ { "PrepaymentID": "ce0cddef-cf5a-4e59-b638-f225679115a7", @@ -27661,6 +27667,24 @@ components: items: $ref: '#/components/schemas/Attachment' type: object + GetPrepaymentsResponse: + type: object + properties: + Id: + type: string + Status: + type: string + ProviderName: + type: string + DateTimeUTC: + type: string + PageInfo: + $ref: '#/components/schemas/PageInfo' + Prepayments: + type: array + minItems: 1 + items: + $ref: '#/components/schemas/Prepayments' PurchaseOrders: type: object x-isObjectArray: true