Skip to content

Commit ebda764

Browse files
author
Will Molloy
committed
feat: add CreatedDateUtc and AssociationDateUtc to Association schema
Add CreatedDateUtc and AssociationDateUtc properties to the Association schema, add missing Size and new AssociationDateUtc to the sort enum, and add default sort by CreatedDateUtc for associations.
1 parent 49d3f0b commit ebda764

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

xero_files.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,10 @@ paths:
415415
type: string
416416
enum:
417417
- Name
418-
- CreatedDateUTC
418+
- Size
419+
- CreatedDateUtc
420+
- AssociationDateUtc
421+
default: CreatedDateUtc
419422
example: Associations/{ObjectId}?sort=CreatedDateUtc
420423
- in: query
421424
name: direction
@@ -435,7 +438,7 @@ paths:
435438
type: array
436439
items:
437440
$ref: "#/components/schemas/Association"
438-
example: '[ { "SendWithObject":false, "Name":"testfile.pdf", "Size":12357, "FileId":"6beccb4a-0d7d-4518-93f3-e0cd1dccb254", "ObjectId":"1270bf7c-5d18-473a-9231-1e36c4bd33ed", "ObjectType":"Business", "ObjectGroup":"Contact" } ]'
441+
example: '[ { "SendWithObject":false, "Name":"testfile.pdf", "Size":12357, "CreatedDateUtc":"2020-12-10T01:22:00.0000000", "AssociationDateUtc":"2020-12-10T01:22:00.0000000", "FileId":"6beccb4a-0d7d-4518-93f3-e0cd1dccb254", "ObjectId":"1270bf7c-5d18-473a-9231-1e36c4bd33ed", "ObjectType":"Business", "ObjectGroup":"Contact" } ]'
439442
/Associations/Count:
440443
parameters:
441444
- $ref: "#/components/parameters/requiredHeader"
@@ -828,6 +831,16 @@ components:
828831
description: The size of the associated file in bytes. Note- The Size element is only returned when using /Associations/{ObjectId} endpoint.
829832
type: integer
830833
example: 12357
834+
CreatedDateUtc:
835+
description: The date the file was created (UTC). Note- The CreatedDateUtc element is only returned when using /Associations/{ObjectId} endpoint.
836+
type: string
837+
format: date-time
838+
example: "2020-12-10T01:22:00.0000000"
839+
AssociationDateUtc:
840+
description: The date the file was associated with the object (UTC). Note- The AssociationDateUtc element is only returned when using /Associations/{ObjectId} endpoint.
841+
type: string
842+
format: date-time
843+
example: "2020-12-10T01:22:00.0000000"
831844
FileId:
832845
description: The unique identifier of the file
833846
type: string

0 commit comments

Comments
 (0)