-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FYLE-2hwr6bb #151
FYLE-2hwr6bb #151
Changes from 1 commit
572bced
345f0ef
0c2f0f3
c19944b
c445213
8a53a5d
8942169
bdc65d4
9f6ef6f
55c31b8
851125f
142d6bd
a47ded4
b075958
74b2543
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
post: | ||
tags: | ||
- Statements | ||
summary: Upload a statement | ||
description: | | ||
Upload a statement to Fyle for reconciliation. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. upload a corporate card statement(csv or excel) |
||
operationId: statements_post | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. try to understand what and where this is used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it, this is a unique string used to identify an operation. |
||
requestBody: | ||
required: true | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
data: | ||
$ref: '../../components/schemas/statements.yaml#/statements_in' | ||
required: | ||
- data | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
type: object | ||
properties: | ||
data: | ||
$ref: '../../components/schemas/statements.yaml#/statements_out' | ||
'400': | ||
description: Bad request | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../components/schemas/400.yaml' | ||
'401': | ||
description: Unauthorized request | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../components/schemas/401.yaml' | ||
'403': | ||
description: Forbidden | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../components/schemas/403.yaml' | ||
'404': | ||
description: Not Found | ||
content: | ||
application/json: | ||
schema: | ||
$ref: '../../components/schemas/404.yaml' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
statements_in: | ||
type: object | ||
properties: | ||
file_id: | ||
allOf: | ||
- $ref: './fields.yaml#/id_string' | ||
example: fidftadfdsdf | ||
required: | ||
- file_id | ||
|
||
statements_out: | ||
type: object | ||
additionalProperties: False | ||
properties: | ||
id: | ||
allOf: | ||
- $ref: './fields.yaml#/id_string' | ||
example: stmtwownwrng | ||
org_id: | ||
$ref: './fields.yaml#/org_id' | ||
created_at: | ||
$ref: './fields.yaml#/created_at' | ||
updated_at: | ||
$ref: './fields.yaml#/updated_at' | ||
file_name: | ||
type: string | ||
description: | | ||
Specifies the name of file uploaded by the user. | ||
example: amex.csv | ||
file_size: | ||
type: string | ||
description: | | ||
Specifies the size of file uploaded by the user. | ||
example: 21KB | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will have to mention what is the default size, is it bytes (or) MB (or) KB. Also, it is a number so it cannot be 21KB, it just has to be 21. Is this expected or do we need to take this as text @Kulsekar4 ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Number is only expected here sir, will remove the KB |
||
no_of_debit: | ||
type: integer | ||
description: | | ||
Number of debit transactions in the document uploaded by the user. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay sir |
||
example: 3 | ||
no_of_credit: | ||
type: integer | ||
description: | | ||
Number of credit transactions in the document uploaded by the user. | ||
example: 3 | ||
no_of_transactions: | ||
type: integer | ||
description: | | ||
Number of transactions in the document uploaded by the user. | ||
example: 3 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. example: 6 Because above examples of credit and debit are 3 each |
||
statement_columns: | ||
type: array | ||
items: | ||
type: string | ||
description: > | ||
This specifies headers of the statement uploaded by the user. | ||
example: | ||
- account_number | ||
- amount | ||
statement_mapping_id: | ||
type: string | ||
description: | | ||
Refers to the mapping used in statement. | ||
example: stmpdfddfd | ||
start_date: | ||
$ref: './fields.yaml#/timestamptz_utc' | ||
description: | | ||
Start date of the statement period | ||
end_date: | ||
$ref: './fields.yaml#/timestamptz_utc' | ||
description: | | ||
End date of the statement period | ||
has_statement_duplicate: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rename to is_statement_duplicate There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. has_duplicate_statements |
||
type: boolean | ||
description: | | ||
Determines whether the statement is duplicate or not. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Determines whether the statement is completely duplicate or not. |
||
duplicate_statement_ids: | ||
type: array | ||
items: | ||
$ref: './fields.yaml#/id_string' | ||
example: | ||
- stmtge49ielgel | ||
modernwarfareuplink marked this conversation as resolved.
Show resolved
Hide resolved
|
||
has_statement_line_items_duplicate: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. rename to has_duplicate_statement_line_items |
||
type: boolean | ||
description: | | ||
Determines whether the transaction inside the statement is duplicate or not. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. instead of |
||
duplicate_statement_line_items: | ||
type: array | ||
items: | ||
type: object | ||
properties: | ||
ids: | ||
type: array | ||
items: | ||
$ref: './fields.yaml#/id_string' | ||
example: | ||
- stlige49ielgel | ||
description: | ||
Ids of the current statement line items which are duplicates | ||
duplicate_line_item_statement_id: | ||
type: string | ||
description: | | ||
Id of the existing duplicate statement | ||
example: | ||
- stmpge49ielgel | ||
|
||
|
||
required: | ||
modernwarfareuplink marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- id | ||
- org_id | ||
- created_at | ||
- updated_at | ||
- file_name | ||
- file_size | ||
- no_of_debit | ||
- no_of_credit | ||
- no_of_transactions | ||
- statement_mapping_id | ||
- statement_columns | ||
- start_date | ||
- end_date | ||
- has_statement_duplicate | ||
- duplicate_statement_ids | ||
- has_statement_line_items_duplicate | ||
- duplicate_statement_line_items |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary :
Have added not null constraint for -> also have added in doc and script @modernwarfareuplink sir
file_name
file_size
no_of_debit
no_of_credit
no_of_transactions