From 7580f673f06a1fb7c7250b389ad0a95743a9f7f8 Mon Sep 17 00:00:00 2001 From: Neeraj Date: Wed, 18 Oct 2023 09:42:00 +0530 Subject: [PATCH] feat: Add new cols to erov (#373) * add col * Auto generate API docs --------- Co-authored-by: Siva --- reference/admin.yaml | 14 ++++++++++++++ reference/approver.yaml | 14 ++++++++++++++ reference/spender.yaml | 14 ++++++++++++++ src/components/schemas/expense.yaml | 14 ++++++++++++++ 4 files changed, 56 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: 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