Skip to content

Commit e414557

Browse files
vjandreaandreakeesys
authored andcommitted
feat: Added PendingReceivedDocuments
1 parent ffc58c3 commit e414557

7 files changed

+380
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
title: PendingReceivedDocumentType
2+
type: string
3+
default: agyo
4+
enum:
5+
- agyo
6+
description: Pending received document type
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
title: GetReceivedDocumentResponse
2+
type: object
3+
properties:
4+
data:
5+
$ref: ../schemas/PendingReceivedDocument.yaml
6+
nullable: true
7+
description: ''
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
title: ListPendingReceivedDocumentsResponse
2+
allOf:
3+
- $ref: ./pagination/Pagination.yaml
4+
- $ref: ./pagination/ListPendingReceivedDocumentsResponsePage.yaml
5+
description: ''
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
title: ListPendingReceivedDocumentsResponsePage
2+
type: object
3+
properties:
4+
data:
5+
type: array
6+
items:
7+
$ref: ../../schemas/PendingReceivedDocument.yaml
8+
nullable: true
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
type: object
2+
title: PendingReceivedDocument
3+
properties:
4+
id:
5+
type: integer
6+
nullable: true
7+
description: Pending received document id
8+
date:
9+
type: string
10+
description: Pending received document date [defaults to today's date]
11+
format: date
12+
nullable: true
13+
subject:
14+
type: string
15+
description: Pending received document subject
16+
nullable: true
17+
filename:
18+
type: string
19+
description: Pending received document filename
20+
nullable: true
21+
type:
22+
$ref: ../enums/PendingReceivedDocumentType.yaml
23+
attachment_url:
24+
type: string
25+
description: |-
26+
[Temporary]
27+
[Read Only]
28+
Pending received document url of the attached file
29+
nullable: true
30+
readOnly: true
31+
amount_gross:
32+
type: number
33+
description: |-
34+
[Read Only]
35+
Pending received document total gross amount
36+
currency:
37+
$ref: ./Currency.yaml
38+
document_type:
39+
$ref: ../enums/ReceivedDocumentType.yaml
40+
supplier_name:
41+
type: string
42+
description: Pending received document supplier name
43+
nullable: true
44+
cost_center:
45+
type: string
46+
description: Pending received document cost center
47+
nullable: true
48+
category:
49+
type: string
50+
nullable: true
51+
description: Pending received document category
52+
other_attachments:
53+
type: array
54+
nullable: true
55+
description: Pending received document other attachments
56+
items:
57+
$ref: ./Attachment.yaml
58+
emssion_date:
59+
type: string
60+
description: Pending received document emission date
61+
format: date
62+
nullable: true
63+
payments_list:
64+
type: array
65+
nullable: true
66+
items:
67+
$ref: ./PendingReceivedDocumentPaymentsListItem.yaml
68+
amount_net:
69+
type: number
70+
description: Pending received document total net amount
71+
nullable: true
72+
amount_vat:
73+
type: number
74+
description: Pending received document total vat amount
75+
nullable: true
76+
import_error:
77+
type: string
78+
description: Pending received document import error
79+
nullable: true
80+
extracted_data:
81+
type: object
82+
nullable: true
83+
properties:
84+
mining:
85+
type: object
86+
properties:
87+
save_entity:
88+
type: boolean
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
title: PendingReceivedDocumentPaymentsListItem
2+
type: object
3+
properties:
4+
id:
5+
type: integer
6+
description: Pending received document payment id
7+
nullable: true
8+
amount:
9+
type: number
10+
description: Pending received document payment total amount
11+
nullable: true
12+
due_date:
13+
type: string
14+
description: Due date
15+
format: date
16+
nullable: true
17+
paid_date:
18+
type: string
19+
description: Pending received document payment paid date
20+
format: date
21+
nullable: true
22+
payment_terms:
23+
type: object
24+
nullable: true
25+
properties:
26+
days:
27+
type: integer
28+
description: >-
29+
Pending received document payment number of days by which the payment must be
30+
made
31+
nullable: true
32+
type:
33+
$ref: ../enums/PaymentTermsType.yaml
34+
status:
35+
type: string
36+
description: Pending received document payment status
37+
nullable: true
38+
payment_account:
39+
$ref: ./PaymentAccount.yaml

0 commit comments

Comments
 (0)