From ed46ee7c9d904d91005ed1695851e2233eb14a19 Mon Sep 17 00:00:00 2001 From: gcxero Date: Thu, 25 Jun 2026 15:27:43 +1000 Subject: [PATCH 1/3] feat(accounting): add UpdatedDateUTC to CreditNotes, Invoices, Overpayments, Payments and Prepayments --- xero_accounting.yaml | 61 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/xero_accounting.yaml b/xero_accounting.yaml index 8b09bb06a..b653f7ef3 100644 --- a/xero_accounting.yaml +++ b/xero_accounting.yaml @@ -5107,6 +5107,7 @@ paths: TotalTax: 4.50 Total: 34.50 UpdatedDateUTC: /Date(1551812346157+0000)/ + UpdatedDateUTCString: 2019-03-05T18:59:06Z CurrencyCode: NZD - CreditNoteID: f8021bd2-9a6a-4c19-8477-163da0b9290f CreditNoteNumber: "" @@ -5135,6 +5136,7 @@ paths: TotalTax: 6.00 Total: 46.00 UpdatedDateUTC: /Date(1551812506153+0000)/ + UpdatedDateUTCString: 2019-03-05T19:01:46Z CurrencyCode: NZD put: security: @@ -5366,6 +5368,7 @@ paths: TotalTax: 6.00 Total: 46.00 UpdatedDateUTC: /Date(1551812702650+0000)/ + UpdatedDateUTCString: 2019-03-05T19:05:02Z CurrencyCode: NZD StatusAttributeString: OK ValidationErrors: @@ -5621,6 +5624,7 @@ paths: TotalTax: 6.00 Total: 46.00 UpdatedDateUTC: /Date(1551812702650+0000)/ + UpdatedDateUTCString: 2019-03-05T19:05:02Z CurrencyCode: NZD StatusAttributeString: OK ValidationErrors: @@ -5758,6 +5762,7 @@ paths: TotalTax: 4.50 Total: 34.50 UpdatedDateUTC: /Date(1551812346157+0000)/ + UpdatedDateUTCString: 2019-03-05T18:59:06Z CurrencyCode: NZD post: security: @@ -6006,6 +6011,7 @@ paths: TotalTax: 6.00 Total: 46.00 UpdatedDateUTC: /Date(1551812704223+0000)/ + UpdatedDateUTCString: 2019-03-05T19:05:04Z CurrencyCode: NZD "400": $ref: "#/components/responses/400Error" @@ -7301,6 +7307,7 @@ paths: TotalTax: 0.00 Total: 40.00 UpdatedDateUTC: /Date(1541176290160+0000)/ + UpdatedDateUTCString: 2018-11-02T16:31:30Z CurrencyCode: NZD - Type: ACCREC InvoiceID: 046d8a6d-1ae1-4b4d-9340-5601bdf41b87 @@ -7343,6 +7350,7 @@ paths: TotalTax: 6.00 Total: 46.00 UpdatedDateUTC: /Date(1541176592690+0000)/ + UpdatedDateUTCString: 2018-11-02T16:36:32Z CurrencyCode: NZD FullyPaidOnDate: /Date(1543449600000+0000)/ - Type: ACCREC @@ -7379,6 +7387,7 @@ paths: TotalTax: 15.00 Total: 115.00 UpdatedDateUTC: /Date(1541176648927+0000)/ + UpdatedDateUTCString: 2018-11-02T16:37:28Z CurrencyCode: NZD put: security: @@ -7706,6 +7715,7 @@ paths: TotalTax: 0.00 Total: 40.00 UpdatedDateUTC: /Date(1552327126117+0000)/ + UpdatedDateUTCString: 2019-03-11T17:58:46Z CurrencyCode: NZD StatusAttributeString: OK "400": @@ -8018,6 +8028,7 @@ paths: TotalTax: 0.00 Total: 40.00 UpdatedDateUTC: /Date(1552327126117+0000)/ + UpdatedDateUTCString: 2019-03-11T17:58:46Z CurrencyCode: NZD StatusAttributeString: OK "400": @@ -8176,6 +8187,7 @@ paths: TotalTax: 0.00 Total: 148062.76 UpdatedDateUTC: /Date(1551981568133+0000)/ + UpdatedDateUTCString: 2019-03-07T17:59:28Z CurrencyCode: NZD FullyPaidOnDate: /Date(1552953600000+0000)/ StatusAttributeString: ERROR @@ -8306,6 +8318,7 @@ paths: TotalTax: 75.00 Total: 575.00 UpdatedDateUTC: /Date(1552329728987+0000)/ + UpdatedDateUTCString: 2019-03-11T18:42:08Z CurrencyCode: NZD "400": $ref: "#/components/responses/400Error" @@ -10920,6 +10933,7 @@ paths: TotalTax: 0.00 Total: 500.00 UpdatedDateUTC: /Date(1552428535123+0000)/ + UpdatedDateUTCString: 2019-03-12T22:08:55Z CurrencyCode: NZD - OverpaymentID: 2a8bda49-8908-473b-8bcf-1f90990460eb ID: 2a8bda49-8908-473b-8bcf-1f90990460eb @@ -10946,6 +10960,7 @@ paths: TotalTax: 0.00 Total: 20.00 UpdatedDateUTC: /Date(1552428568250+0000)/ + UpdatedDateUTCString: 2019-03-12T22:09:28Z CurrencyCode: NZD - OverpaymentID: ed7f6041-c915-4667-bd1d-54c48e92161e ID: ed7f6041-c915-4667-bd1d-54c48e92161e @@ -10972,6 +10987,7 @@ paths: TotalTax: 0.00 Total: 3000.00 UpdatedDateUTC: /Date(1552428781527+0000)/ + UpdatedDateUTCString: 2019-03-12T22:13:01Z CurrencyCode: NZD - OverpaymentID: 0859adbc-ea00-40cd-a877-258cf8644975 ID: 0859adbc-ea00-40cd-a877-258cf8644975 @@ -10998,6 +11014,7 @@ paths: TotalTax: 0.00 Total: 20.00 UpdatedDateUTC: /Date(1552428842190+0000)/ + UpdatedDateUTCString: 2019-03-12T22:14:02Z CurrencyCode: NZD - OverpaymentID: 687b877f-634a-415d-92b2-74e62977de30 ID: 687b877f-634a-415d-92b2-74e62977de30 @@ -11024,6 +11041,7 @@ paths: TotalTax: 0.00 Total: 20.00 UpdatedDateUTC: /Date(1552428950730+0000)/ + UpdatedDateUTCString: 2019-03-12T22:15:50Z CurrencyCode: NZD /Overpayments/{OverpaymentID}: parameters: @@ -11140,6 +11158,7 @@ paths: TotalTax: 0.00 Total: 3000.00 UpdatedDateUTC: /Date(1552428952890+0000)/ + UpdatedDateUTCString: 2019-03-12T22:15:52Z CurrencyCode: NZD /Overpayments/{OverpaymentID}/Allocations: parameters: @@ -11450,6 +11469,7 @@ paths: PaymentType: ACCRECPAYMENT Status: AUTHORISED UpdatedDateUTC: /Date(1541176592690+0000)/ + UpdatedDateUTCString: 2018-11-02T16:36:32Z HasAccount: true IsReconciled: false Account: @@ -11486,6 +11506,7 @@ paths: PaymentType: ARCREDITPAYMENT Status: AUTHORISED UpdatedDateUTC: /Date(1551812346173+0000)/ + UpdatedDateUTCString: 2019-03-05T18:59:06Z HasAccount: true IsReconciled: false Account: @@ -11631,6 +11652,7 @@ paths: PaymentType: ACCRECPAYMENT Status: AUTHORISED UpdatedDateUTC: /Date(1552432238623+0000)/ + UpdatedDateUTCString: 2019-03-12T23:10:38Z HasAccount: true IsReconciled: false Account: @@ -11676,6 +11698,7 @@ paths: TotalTax: 30.00 Total: 230.00 UpdatedDateUTC: /Date(1552432238623+0000)/ + UpdatedDateUTCString: 2019-03-12T23:10:38Z CurrencyCode: NZD HasValidationErrors: true ValidationErrors: @@ -11815,6 +11838,7 @@ paths: PaymentType: ACCRECPAYMENT Status: AUTHORISED UpdatedDateUTC: /Date(1552432238623+0000)/ + UpdatedDateUTCString: 2019-03-12T23:10:38Z HasAccount: true IsReconciled: false Account: @@ -11860,6 +11884,7 @@ paths: TotalTax: 30.00 Total: 230.00 UpdatedDateUTC: /Date(1552432238623+0000)/ + UpdatedDateUTCString: 2019-03-12T23:10:38Z CurrencyCode: NZD HasValidationErrors: true ValidationErrors: @@ -11928,6 +11953,7 @@ paths: PaymentType: ACCRECPAYMENT Status: AUTHORISED UpdatedDateUTC: /Date(1541176592690+0000)/ + UpdatedDateUTCString: 2018-11-02T16:36:32Z HasAccount: true IsReconciled: false Account: @@ -11980,6 +12006,7 @@ paths: TotalTax: 6.00 Total: 46.00 UpdatedDateUTC: /Date(1541176592690+0000)/ + UpdatedDateUTCString: 2018-11-02T16:36:32Z CurrencyCode: NZD FullyPaidOnDate: /Date(1543449600000+0000)/ HasValidationErrors: false @@ -12028,6 +12055,7 @@ paths: PaymentType: APCREDITPAYMENT Status: DELETED UpdatedDateUTC: /Date(1583945852373+0000)/ + UpdatedDateUTCString: 2020-03-11T16:57:32Z HasAccount: true IsReconciled: false Account: @@ -12070,6 +12098,7 @@ paths: TotalTax: 2.00 Total: 22.00 UpdatedDateUTC: /Date(1583945852363+0000)/ + UpdatedDateUTCString: 2020-03-11T16:57:32Z CurrencyCode: AUD HasValidationErrors: false "400": @@ -12369,6 +12398,7 @@ paths: TotalTax: 450.00 Total: 3450.00 UpdatedDateUTC: /Date(1552489187730+0000)/ + UpdatedDateUTCString: 2019-03-13T14:59:47Z CurrencyCode: NZD /Prepayments/{PrepaymentID}: parameters: @@ -12484,6 +12514,7 @@ paths: TotalTax: 450.00 Total: 3450.00 UpdatedDateUTC: /Date(1552522424850+0000)/ + UpdatedDateUTCString: 2019-03-14T00:13:44Z CurrencyCode: NZD /Prepayments/{PrepaymentID}/Allocations: parameters: @@ -21357,6 +21388,12 @@ components: x-is-msdate-time: true example: /Date(1573755038314)/ readOnly: true + UpdatedDateUTCString: + description: Last modified date ISO-8601 UTC format + type: string + format: date-time + example: 2019-11-14T18:10:38Z + readOnly: true CurrencyCode: description: The specified currency code $ref: "#/components/schemas/CurrencyCode" @@ -22194,6 +22231,12 @@ components: x-is-msdate-time: true example: /Date(1573755038314)/ readOnly: true + UpdatedDateUTCString: + description: Last modified date ISO-8601 UTC format + type: string + format: date-time + example: 2019-11-14T18:10:38Z + readOnly: true CreditNotes: description: Details of credit notes that have been applied to an invoice readOnly: true @@ -23442,6 +23485,12 @@ components: x-is-msdate-time: true example: /Date(1573755038314)/ readOnly: true + UpdatedDateUTCString: + description: Last modified date ISO-8601 UTC format + type: string + format: date-time + example: 2019-11-14T18:10:38Z + readOnly: true CurrencyCode: $ref: "#/components/schemas/CurrencyCode" type: string @@ -23591,6 +23640,12 @@ components: x-is-msdate-time: true example: /Date(1573755038314)/ readOnly: true + UpdatedDateUTCString: + description: Last modified date ISO-8601 UTC format + type: string + format: date-time + example: 2019-11-14T18:10:38Z + readOnly: true PaymentID: description: The Xero identifier for an Payment e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 type: string @@ -23711,6 +23766,12 @@ components: x-is-msdate-time: true example: /Date(1573755038314)/ readOnly: true + UpdatedDateUTCString: + description: Last modified date ISO-8601 UTC format + type: string + format: date-time + example: 2019-11-14T18:10:38Z + readOnly: true CurrencyCode: $ref: "#/components/schemas/CurrencyCode" type: string From b125a8324a533733ac4f4dfcf34d8ce03f86cd6f Mon Sep 17 00:00:00 2001 From: gcxero Date: Fri, 26 Jun 2026 10:21:18 +1000 Subject: [PATCH 2/3] docs(accounting): update UpdatedDateUTCString descriptions for consistency --- xero_accounting.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/xero_accounting.yaml b/xero_accounting.yaml index b653f7ef3..df2cb1930 100644 --- a/xero_accounting.yaml +++ b/xero_accounting.yaml @@ -21389,7 +21389,7 @@ components: example: /Date(1573755038314)/ readOnly: true UpdatedDateUTCString: - description: Last modified date ISO-8601 UTC format + description: UTC ISO-8601 formatted timestamp of last update to the credit note type: string format: date-time example: 2019-11-14T18:10:38Z @@ -22226,13 +22226,13 @@ components: format: double x-is-money: true UpdatedDateUTC: - description: Last modified date UTC format + description: UTC timestamp of last update to the invoice type: string x-is-msdate-time: true example: /Date(1573755038314)/ readOnly: true UpdatedDateUTCString: - description: Last modified date ISO-8601 UTC format + description: UTC ISO-8601 formatted timestamp of last update to the invoice type: string format: date-time example: 2019-11-14T18:10:38Z @@ -23486,7 +23486,7 @@ components: example: /Date(1573755038314)/ readOnly: true UpdatedDateUTCString: - description: Last modified date ISO-8601 UTC format + description: UTC ISO-8601 formatted timestamp of last update to the overpayment type: string format: date-time example: 2019-11-14T18:10:38Z @@ -23641,7 +23641,7 @@ components: example: /Date(1573755038314)/ readOnly: true UpdatedDateUTCString: - description: Last modified date ISO-8601 UTC format + description: UTC ISO-8601 formatted timestamp of last update to the payment type: string format: date-time example: 2019-11-14T18:10:38Z @@ -23767,7 +23767,7 @@ components: example: /Date(1573755038314)/ readOnly: true UpdatedDateUTCString: - description: Last modified date ISO-8601 UTC format + description: UTC ISO-8601 formatted timestamp of last update to the prepayment type: string format: date-time example: 2019-11-14T18:10:38Z From 2e55b10057e11f8ed4ec189e1ec48cde36e8d0f6 Mon Sep 17 00:00:00 2001 From: gcxero Date: Fri, 26 Jun 2026 10:41:16 +1000 Subject: [PATCH 3/3] fix(accounting): make UpdatedDateUTCString a plain string --- xero_accounting.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/xero_accounting.yaml b/xero_accounting.yaml index df2cb1930..da2ab9d07 100644 --- a/xero_accounting.yaml +++ b/xero_accounting.yaml @@ -21389,9 +21389,8 @@ components: example: /Date(1573755038314)/ readOnly: true UpdatedDateUTCString: - description: UTC ISO-8601 formatted timestamp of last update to the credit note + description: UTC ISO-8601 formatted timestamp of last update to the credit note type: string - format: date-time example: 2019-11-14T18:10:38Z readOnly: true CurrencyCode: @@ -22234,7 +22233,6 @@ components: UpdatedDateUTCString: description: UTC ISO-8601 formatted timestamp of last update to the invoice type: string - format: date-time example: 2019-11-14T18:10:38Z readOnly: true CreditNotes: @@ -23488,7 +23486,6 @@ components: UpdatedDateUTCString: description: UTC ISO-8601 formatted timestamp of last update to the overpayment type: string - format: date-time example: 2019-11-14T18:10:38Z readOnly: true CurrencyCode: @@ -23643,7 +23640,6 @@ components: UpdatedDateUTCString: description: UTC ISO-8601 formatted timestamp of last update to the payment type: string - format: date-time example: 2019-11-14T18:10:38Z readOnly: true PaymentID: @@ -23769,7 +23765,6 @@ components: UpdatedDateUTCString: description: UTC ISO-8601 formatted timestamp of last update to the prepayment type: string - format: date-time example: 2019-11-14T18:10:38Z readOnly: true CurrencyCode: