schemas
Monzo API 'attachments' related schemas.
MonzoAttachment
Bases: BaseModel
API schema for an 'attachment' object.
Note
Monzo API docs: https://docs.monzo.com/#attachments
Attributes:
| Name | Type | Description |
|---|---|---|
id |
str
|
The ID of the attachment. |
user_id |
str
|
The ID of the user who owns this attachment. |
external_id |
str
|
The ID of the transaction to associate the attachment with. |
file_url |
str
|
The URL at which the attachment is available. |
file_type |
str
|
The content type of the attachment. |
created |
datetime
|
The timestamp in UTC when the attachment was created. |
Source code in pymonzo/attachments/schemas.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | |
MonzoAttachmentResponse
Bases: BaseModel
API schema for an 'attachment upload' API response.
Note
Monzo API docs: https://docs.monzo.com/#upload-attachment
Attributes:
| Name | Type | Description |
|---|---|---|
file_url |
str
|
The URL of the file once it has been uploaded. |
upload_url |
str
|
The URL to |
Source code in pymonzo/attachments/schemas.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | |