-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstatement_attachments.py
More file actions
39 lines (30 loc) · 1.13 KB
/
statement_attachments.py
File metadata and controls
39 lines (30 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
from mpt_api_client.http import AsyncService, Service
from mpt_api_client.http.mixins import (
AsyncCollectionMixin,
CollectionMixin,
)
from mpt_api_client.models import Model
from mpt_api_client.resources.billing.mixins import AsyncAttachmentMixin, AttachmentMixin
class StatementAttachment(Model):
"""Statement Attachment resource."""
class StatementAttachmentsServiceConfig:
"""Statement Attachments service configuration."""
_endpoint = "/public/v1/billing/statements/{statement_id}/attachments"
_model_class = StatementAttachment
_collection_key = "data"
_upload_file_key = "file"
_upload_data_key = "attachment"
class StatementAttachmentsService(
AttachmentMixin[StatementAttachment],
CollectionMixin[StatementAttachment],
Service[StatementAttachment],
StatementAttachmentsServiceConfig,
):
"""Statement Attachments service."""
class AsyncStatementAttachmentsService(
AsyncAttachmentMixin[StatementAttachment],
AsyncCollectionMixin[StatementAttachment],
AsyncService[StatementAttachment],
StatementAttachmentsServiceConfig,
):
"""Statement Attachments service."""