|
2848 | 2848 | ]
|
2849 | 2849 | }
|
2850 | 2850 | },
|
| 2851 | + "/teams/{team_name}/invoices": { |
| 2852 | + "get": { |
| 2853 | + "description": "List all past invoices for the team.", |
| 2854 | + "operationId": "ListInvoicesByTeam", |
| 2855 | + "parameters": [ |
| 2856 | + { |
| 2857 | + "$ref": "#/components/parameters/team_name" |
| 2858 | + }, |
| 2859 | + { |
| 2860 | + "$ref": "#/components/parameters/page" |
| 2861 | + }, |
| 2862 | + { |
| 2863 | + "$ref": "#/components/parameters/per_page" |
| 2864 | + } |
| 2865 | + ], |
| 2866 | + "responses": { |
| 2867 | + "200": { |
| 2868 | + "description": "Response", |
| 2869 | + "content": { |
| 2870 | + "application/json": { |
| 2871 | + "schema": { |
| 2872 | + "required": [ |
| 2873 | + "items", |
| 2874 | + "metadata" |
| 2875 | + ], |
| 2876 | + "properties": { |
| 2877 | + "items": { |
| 2878 | + "items": { |
| 2879 | + "$ref": "#/components/schemas/Invoice" |
| 2880 | + }, |
| 2881 | + "type": "array" |
| 2882 | + }, |
| 2883 | + "metadata": { |
| 2884 | + "$ref": "#/components/schemas/ListMetadata" |
| 2885 | + } |
| 2886 | + } |
| 2887 | + } |
| 2888 | + } |
| 2889 | + } |
| 2890 | + }, |
| 2891 | + "401": { |
| 2892 | + "$ref": "#/components/responses/RequiresAuthentication" |
| 2893 | + }, |
| 2894 | + "403": { |
| 2895 | + "$ref": "#/components/responses/Forbidden" |
| 2896 | + }, |
| 2897 | + "404": { |
| 2898 | + "$ref": "#/components/responses/NotFound" |
| 2899 | + }, |
| 2900 | + "500": { |
| 2901 | + "$ref": "#/components/responses/InternalError" |
| 2902 | + } |
| 2903 | + }, |
| 2904 | + "tags": [ |
| 2905 | + "teams" |
| 2906 | + ] |
| 2907 | + } |
| 2908 | + }, |
2851 | 2909 | "/teams/{team_name}/usage": {
|
2852 | 2910 | "get": {
|
2853 | 2911 | "description": "List plugin usage for the current calendar month.",
|
|
5414 | 5472 | }
|
5415 | 5473 | }
|
5416 | 5474 | },
|
| 5475 | + "Invoice": { |
| 5476 | + "additionalProperties": false, |
| 5477 | + "title": "Invoice", |
| 5478 | + "description": "Invoice details", |
| 5479 | + "properties": { |
| 5480 | + "created_at": { |
| 5481 | + "type": "string", |
| 5482 | + "format": "date-time", |
| 5483 | + "example": "2017-07-14T16:53:42Z" |
| 5484 | + }, |
| 5485 | + "amount_due": { |
| 5486 | + "type": "integer", |
| 5487 | + "format": "int64", |
| 5488 | + "example": 1000, |
| 5489 | + "description": "Amount due in cents. This is the amount that will be charged, unless there are pending invoice items. If the invoice’s total is smaller than the minimum charge amount, for example, or if there is account credit that can be applied to the invoice, the amount_due may be 0. The charge that gets generated for the invoice will be for the amount specified in amount_due." |
| 5490 | + }, |
| 5491 | + "currency": { |
| 5492 | + "type": "string", |
| 5493 | + "example": "usd" |
| 5494 | + }, |
| 5495 | + "invoice_pdf": { |
| 5496 | + "type": "string", |
| 5497 | + "format": "uri", |
| 5498 | + "description": "The link to download the PDF for the invoice.", |
| 5499 | + "x-go-name": "InvoicePDF" |
| 5500 | + }, |
| 5501 | + "paid": { |
| 5502 | + "type": "boolean", |
| 5503 | + "example": true, |
| 5504 | + "description": "Whether or not payment was successfully collected for this invoice." |
| 5505 | + } |
| 5506 | + }, |
| 5507 | + "required": [ |
| 5508 | + "created_at", |
| 5509 | + "amount_due", |
| 5510 | + "currency", |
| 5511 | + "invoice_pdf", |
| 5512 | + "paid" |
| 5513 | + ], |
| 5514 | + "type": "object" |
| 5515 | + }, |
5417 | 5516 | "UsageCurrent": {
|
5418 | 5517 | "title": "CloudQuery Plugin Usage",
|
5419 | 5518 | "description": "The usage of a plugin within the current calendar month.",
|
|
0 commit comments