From 0d4b623d8ae93dd296f1446c2a746298996f6009 Mon Sep 17 00:00:00 2001 From: Neeraj Date: Tue, 17 Oct 2023 11:21:20 +0530 Subject: [PATCH 1/2] add col --- src/components/schemas/expense.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/components/schemas/expense.yaml b/src/components/schemas/expense.yaml index 13b968c0a..b9460f3c0 100644 --- a/src/components/schemas/expense.yaml +++ b/src/components/schemas/expense.yaml @@ -524,6 +524,20 @@ expense_out: maxLength: 255 description: > An unique ID, generated by Fyle, for identifying the Settlement. + report_last_paid_at: + anyOf: + - $ref: ./fields.yaml#/null_field + - $ref: './fields.yaml#/timestamptz_utc' + nullable: true + description: | + Signifies if and when report of this expense was reimbursed. + report_last_approved_at: + anyOf: + - $ref: ./fields.yaml#/null_field + - $ref: './fields.yaml#/timestamptz_utc' + nullable: true + description: | + Signifies if and when report of this expense was approved. expense_in: type: object From dbc63e8763bd969db95ebfd2644ad9dc3bb1d731 Mon Sep 17 00:00:00 2001 From: Siva Date: Tue, 17 Oct 2023 05:52:23 +0000 Subject: [PATCH 2/2] Auto generate API docs --- reference/admin.yaml | 14 ++++++++++++++ reference/approver.yaml | 14 ++++++++++++++ reference/spender.yaml | 14 ++++++++++++++ 3 files changed, 42 insertions(+) diff --git a/reference/admin.yaml b/reference/admin.yaml index 59b51c2bd..4a59c6c10 100644 --- a/reference/admin.yaml +++ b/reference/admin.yaml @@ -3718,6 +3718,20 @@ components: maxLength: 255 description: | An unique ID, generated by Fyle, for identifying the Settlement. + report_last_paid_at: + anyOf: + - $ref: '#/components/schemas/null_field' + - $ref: '#/components/schemas/timestamptz_utc' + nullable: true + description: | + Signifies if and when report of this expense was reimbursed. + report_last_approved_at: + anyOf: + - $ref: '#/components/schemas/null_field' + - $ref: '#/components/schemas/timestamptz_utc' + nullable: true + description: | + Signifies if and when report of this expense was approved. expense_assign_in: type: object required: diff --git a/reference/approver.yaml b/reference/approver.yaml index 748307be2..10f215ee1 100644 --- a/reference/approver.yaml +++ b/reference/approver.yaml @@ -1792,6 +1792,20 @@ components: maxLength: 255 description: | An unique ID, generated by Fyle, for identifying the Settlement. + report_last_paid_at: + anyOf: + - $ref: '#/components/schemas/null_field' + - $ref: '#/components/schemas/timestamptz_utc' + nullable: true + description: | + Signifies if and when report of this expense was reimbursed. + report_last_approved_at: + anyOf: + - $ref: '#/components/schemas/null_field' + - $ref: '#/components/schemas/timestamptz_utc' + nullable: true + description: | + Signifies if and when report of this expense was approved. report_action_with_expenses_ids_to_eject: type: object additionalProperties: false diff --git a/reference/spender.yaml b/reference/spender.yaml index d14c64ca1..8013cb144 100644 --- a/reference/spender.yaml +++ b/reference/spender.yaml @@ -1936,6 +1936,20 @@ components: maxLength: 255 description: | An unique ID, generated by Fyle, for identifying the Settlement. + report_last_paid_at: + anyOf: + - $ref: '#/components/schemas/null_field' + - $ref: '#/components/schemas/timestamptz_utc' + nullable: true + description: | + Signifies if and when report of this expense was reimbursed. + report_last_approved_at: + anyOf: + - $ref: '#/components/schemas/null_field' + - $ref: '#/components/schemas/timestamptz_utc' + nullable: true + description: | + Signifies if and when report of this expense was approved. source: type: string enum: