@@ -41,6 +41,11 @@ async def get_consumption(
41
41
organization_id : Optional [str ] = None ,
42
42
) -> GetConsumptionResponse :
43
43
"""
44
+ Get current month's consumption.
45
+ The consumption reflects the amount of money you have spent for the products you have used.
46
+ The consumption value is monetary and is not computed in real time.
47
+ :param organization_id: Filter by organization ID.
48
+ :return: :class:`GetConsumptionResponse <GetConsumptionResponse>`
44
49
45
50
Usage:
46
51
::
@@ -72,6 +77,16 @@ async def list_invoices(
72
77
order_by : ListInvoicesRequestOrderBy = ListInvoicesRequestOrderBy .INVOICE_NUMBER_DESC ,
73
78
) -> ListInvoicesResponse :
74
79
"""
80
+ List invoices.
81
+ List all your invoices, filtering by `start_date` and `invoice_type`. Each invoice has its own ID.
82
+ :param organization_id: Organization ID to filter for, only invoices from this Organization will be returned.
83
+ :param started_after: Invoice's `start_date` is greater or equal to `started_after`.
84
+ :param started_before: Invoice's `start_date` precedes `started_before`.
85
+ :param invoice_type: Invoice type. It can either be `periodic` or `purchase`.
86
+ :param page: Positive integer to choose the page to return.
87
+ :param page_size: Positive integer lower or equal to 100 to select the number of items to return.
88
+ :param order_by: How invoices are ordered in the response.
89
+ :return: :class:`ListInvoicesResponse <ListInvoicesResponse>`
75
90
76
91
Usage:
77
92
::
@@ -109,6 +124,15 @@ async def list_invoices_all(
109
124
order_by : Optional [ListInvoicesRequestOrderBy ] = None ,
110
125
) -> List [Invoice ]:
111
126
"""
127
+ List invoices.
128
+ List all your invoices, filtering by `start_date` and `invoice_type`. Each invoice has its own ID.
129
+ :param organization_id: Organization ID to filter for, only invoices from this Organization will be returned.
130
+ :param started_after: Invoice's `start_date` is greater or equal to `started_after`.
131
+ :param started_before: Invoice's `start_date` precedes `started_before`.
132
+ :param invoice_type: Invoice type. It can either be `periodic` or `purchase`.
133
+ :param page: Positive integer to choose the page to return.
134
+ :param page_size: Positive integer lower or equal to 100 to select the number of items to return.
135
+ :param order_by: How invoices are ordered in the response.
112
136
:return: :class:`List[ListInvoicesResponse] <List[ListInvoicesResponse]>`
113
137
114
138
Usage:
@@ -139,6 +163,11 @@ async def download_invoice(
139
163
file_type : DownloadInvoiceRequestFileType ,
140
164
) -> Optional [ScwFile ]:
141
165
"""
166
+ Download an invoice.
167
+ Download a specific invoice, specified by its ID.
168
+ :param invoice_id: Invoice ID.
169
+ :param file_type: Wanted file type.
170
+ :return: :class:`Optional[ScwFile] <Optional[ScwFile]>`
142
171
143
172
Usage:
144
173
::
0 commit comments