@emilgroup/billing-v2-sdk-node 0.0.0-stage → 1.0.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +93 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +83 -2
- package/api/bill-runs-api.ts +472 -0
- package/api/bills-api.ts +149 -0
- package/api/invoices-api.ts +1534 -0
- package/api/jobs-api.ts +760 -0
- package/api/policy-billings-api.ts +595 -0
- package/api.ts +39 -0
- package/base.ts +396 -0
- package/common.ts +200 -0
- package/configuration.ts +118 -0
- package/dist/api/bill-runs-api.d.ts +266 -0
- package/dist/api/bill-runs-api.js +470 -0
- package/dist/api/bills-api.d.ts +87 -0
- package/dist/api/bills-api.js +211 -0
- package/dist/api/invoices-api.d.ts +847 -0
- package/dist/api/invoices-api.js +1357 -0
- package/dist/api/jobs-api.d.ts +426 -0
- package/dist/api/jobs-api.js +712 -0
- package/dist/api/policy-billings-api.d.ts +332 -0
- package/dist/api/policy-billings-api.js +565 -0
- package/dist/api.d.ts +16 -0
- package/dist/api.js +34 -0
- package/dist/base.d.ts +97 -0
- package/dist/base.js +493 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +278 -0
- package/dist/configuration.d.ts +96 -0
- package/dist/configuration.js +52 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/any.d.ts +25 -0
- package/dist/models/any.js +15 -0
- package/dist/models/bill-item.d.ts +132 -0
- package/dist/models/bill-item.js +15 -0
- package/dist/models/bill-run.d.ts +145 -0
- package/dist/models/bill-run.js +15 -0
- package/dist/models/bill.d.ts +194 -0
- package/dist/models/bill.js +15 -0
- package/dist/models/cancel-job-response.d.ts +25 -0
- package/dist/models/cancel-job-response.js +15 -0
- package/dist/models/create-correction-invoices-request.d.ts +72 -0
- package/dist/models/create-correction-invoices-request.js +15 -0
- package/dist/models/create-correction-invoices-response.d.ts +31 -0
- package/dist/models/create-correction-invoices-response.js +15 -0
- package/dist/models/create-detail-export-job-request.d.ts +56 -0
- package/dist/models/create-detail-export-job-request.js +15 -0
- package/dist/models/create-detail-export-job-response.d.ts +25 -0
- package/dist/models/create-detail-export-job-response.js +15 -0
- package/dist/models/create-estimated-invoice-for-interval-request.d.ts +42 -0
- package/dist/models/create-estimated-invoice-for-interval-request.js +15 -0
- package/dist/models/create-estimated-invoice-for-interval-response.d.ts +25 -0
- package/dist/models/create-estimated-invoice-for-interval-response.js +15 -0
- package/dist/models/create-estimated-invoice-request.d.ts +36 -0
- package/dist/models/create-estimated-invoice-request.js +15 -0
- package/dist/models/create-estimated-invoice-response.d.ts +25 -0
- package/dist/models/create-estimated-invoice-response.js +15 -0
- package/dist/models/create-export-job-request.d.ts +68 -0
- package/dist/models/create-export-job-request.js +15 -0
- package/dist/models/create-export-job-response.d.ts +25 -0
- package/dist/models/create-export-job-response.js +15 -0
- package/dist/models/create-initial-invoice-request.d.ts +72 -0
- package/dist/models/create-initial-invoice-request.js +15 -0
- package/dist/models/create-initial-invoice-response.d.ts +25 -0
- package/dist/models/create-initial-invoice-response.js +15 -0
- package/dist/models/create-invoice-request.d.ts +67 -0
- package/dist/models/create-invoice-request.js +15 -0
- package/dist/models/create-invoice-response.d.ts +25 -0
- package/dist/models/create-invoice-response.js +15 -0
- package/dist/models/create-invoice-status-body.d.ts +24 -0
- package/dist/models/create-invoice-status-body.js +15 -0
- package/dist/models/create-invoice-status-response.d.ts +25 -0
- package/dist/models/create-invoice-status-response.js +15 -0
- package/dist/models/create-item-request.d.ts +36 -0
- package/dist/models/create-item-request.js +15 -0
- package/dist/models/create-policy-billing-request.d.ts +42 -0
- package/dist/models/create-policy-billing-request.js +15 -0
- package/dist/models/create-policy-billing-response.d.ts +25 -0
- package/dist/models/create-policy-billing-response.js +15 -0
- package/dist/models/create-recurring-invoice-request.d.ts +72 -0
- package/dist/models/create-recurring-invoice-request.js +15 -0
- package/dist/models/create-recurring-invoice-response.d.ts +31 -0
- package/dist/models/create-recurring-invoice-response.js +15 -0
- package/dist/models/create-termination-invoice-request.d.ts +60 -0
- package/dist/models/create-termination-invoice-request.js +15 -0
- package/dist/models/create-termination-invoice-response.d.ts +25 -0
- package/dist/models/create-termination-invoice-response.js +15 -0
- package/dist/models/create-withdraw-invoice-request.d.ts +48 -0
- package/dist/models/create-withdraw-invoice-request.js +15 -0
- package/dist/models/create-withdraw-invoice-response.d.ts +25 -0
- package/dist/models/create-withdraw-invoice-response.js +15 -0
- package/dist/models/estimate-history-entry.d.ts +36 -0
- package/dist/models/estimate-history-entry.js +15 -0
- package/dist/models/export-column.d.ts +36 -0
- package/dist/models/export-column.js +15 -0
- package/dist/models/filter-field.d.ts +110 -0
- package/dist/models/filter-field.js +15 -0
- package/dist/models/filter-value.d.ts +37 -0
- package/dist/models/filter-value.js +15 -0
- package/dist/models/get-bill-response.d.ts +25 -0
- package/dist/models/get-bill-response.js +15 -0
- package/dist/models/get-bill-run-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-bill-run-filter-catalog-response.js +15 -0
- package/dist/models/get-bill-run-response.d.ts +25 -0
- package/dist/models/get-bill-run-response.js +15 -0
- package/dist/models/get-invoice-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-invoice-filter-catalog-response.js +15 -0
- package/dist/models/get-invoice-response.d.ts +25 -0
- package/dist/models/get-invoice-response.js +15 -0
- package/dist/models/get-job-download-response.d.ts +25 -0
- package/dist/models/get-job-download-response.js +15 -0
- package/dist/models/get-job-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-job-filter-catalog-response.js +15 -0
- package/dist/models/get-job-response.d.ts +25 -0
- package/dist/models/get-job-response.js +15 -0
- package/dist/models/get-policies-billing-date-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-policies-billing-date-filter-catalog-response.js +15 -0
- package/dist/models/get-policies-billing-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-policies-billing-filter-catalog-response.js +15 -0
- package/dist/models/get-policy-billing-response.d.ts +25 -0
- package/dist/models/get-policy-billing-response.js +15 -0
- package/dist/models/highlight.d.ts +30 -0
- package/dist/models/highlight.js +15 -0
- package/dist/models/index.d.ts +75 -0
- package/dist/models/index.js +91 -0
- package/dist/models/invoice-item.d.ts +204 -0
- package/dist/models/invoice-item.js +15 -0
- package/dist/models/invoice-payment.d.ts +108 -0
- package/dist/models/invoice-payment.js +15 -0
- package/dist/models/invoice-payments.d.ts +25 -0
- package/dist/models/invoice-payments.js +15 -0
- package/dist/models/invoice-status.d.ts +54 -0
- package/dist/models/invoice-status.js +15 -0
- package/dist/models/invoice.d.ts +275 -0
- package/dist/models/invoice.js +15 -0
- package/dist/models/job-download.d.ts +36 -0
- package/dist/models/job-download.js +15 -0
- package/dist/models/job-error.d.ts +30 -0
- package/dist/models/job-error.js +15 -0
- package/dist/models/job-progress.d.ts +36 -0
- package/dist/models/job-progress.js +15 -0
- package/dist/models/job.d.ts +134 -0
- package/dist/models/job.js +15 -0
- package/dist/models/list-bill-runs-response.d.ts +37 -0
- package/dist/models/list-bill-runs-response.js +15 -0
- package/dist/models/list-invoices-response.d.ts +37 -0
- package/dist/models/list-invoices-response.js +15 -0
- package/dist/models/list-jobs-response.d.ts +37 -0
- package/dist/models/list-jobs-response.js +15 -0
- package/dist/models/list-policies-billing-dates-response.d.ts +37 -0
- package/dist/models/list-policies-billing-dates-response.js +15 -0
- package/dist/models/list-policies-billings-response.d.ts +37 -0
- package/dist/models/list-policies-billings-response.js +15 -0
- package/dist/models/list-request.d.ts +60 -0
- package/dist/models/list-request.js +15 -0
- package/dist/models/localized-text.d.ts +30 -0
- package/dist/models/localized-text.js +15 -0
- package/dist/models/match.d.ts +69 -0
- package/dist/models/match.js +15 -0
- package/dist/models/payment-term.d.ts +42 -0
- package/dist/models/payment-term.js +15 -0
- package/dist/models/policy-billing.d.ts +139 -0
- package/dist/models/policy-billing.js +15 -0
- package/dist/models/request-bill-run-request.d.ts +30 -0
- package/dist/models/request-bill-run-request.js +15 -0
- package/dist/models/request-bill-run-response.d.ts +25 -0
- package/dist/models/request-bill-run-response.js +15 -0
- package/dist/models/resolved-billing-config.d.ts +130 -0
- package/dist/models/resolved-billing-config.js +15 -0
- package/dist/models/revert-invoice-request.d.ts +24 -0
- package/dist/models/revert-invoice-request.js +15 -0
- package/dist/models/revert-invoice-response.d.ts +25 -0
- package/dist/models/revert-invoice-response.js +15 -0
- package/dist/models/slice.d.ts +30 -0
- package/dist/models/slice.js +15 -0
- package/dist/models/status.d.ts +37 -0
- package/dist/models/status.js +15 -0
- package/dist/models/tax.d.ts +30 -0
- package/dist/models/tax.js +15 -0
- package/dist/models/update-policy-billing-body.d.ts +24 -0
- package/dist/models/update-policy-billing-body.js +15 -0
- package/dist/models/update-policy-billing-response.d.ts +25 -0
- package/dist/models/update-policy-billing-response.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/any.ts +32 -0
- package/models/bill-item.ts +138 -0
- package/models/bill-run.ts +151 -0
- package/models/bill.ts +200 -0
- package/models/cancel-job-response.ts +31 -0
- package/models/create-correction-invoices-request.ts +78 -0
- package/models/create-correction-invoices-response.ts +37 -0
- package/models/create-detail-export-job-request.ts +60 -0
- package/models/create-detail-export-job-response.ts +31 -0
- package/models/create-estimated-invoice-for-interval-request.ts +48 -0
- package/models/create-estimated-invoice-for-interval-response.ts +31 -0
- package/models/create-estimated-invoice-request.ts +42 -0
- package/models/create-estimated-invoice-response.ts +31 -0
- package/models/create-export-job-request.ts +74 -0
- package/models/create-export-job-response.ts +31 -0
- package/models/create-initial-invoice-request.ts +78 -0
- package/models/create-initial-invoice-response.ts +31 -0
- package/models/create-invoice-request.ts +73 -0
- package/models/create-invoice-response.ts +31 -0
- package/models/create-invoice-status-body.ts +30 -0
- package/models/create-invoice-status-response.ts +31 -0
- package/models/create-item-request.ts +42 -0
- package/models/create-policy-billing-request.ts +48 -0
- package/models/create-policy-billing-response.ts +31 -0
- package/models/create-recurring-invoice-request.ts +78 -0
- package/models/create-recurring-invoice-response.ts +37 -0
- package/models/create-termination-invoice-request.ts +66 -0
- package/models/create-termination-invoice-response.ts +31 -0
- package/models/create-withdraw-invoice-request.ts +54 -0
- package/models/create-withdraw-invoice-response.ts +31 -0
- package/models/estimate-history-entry.ts +42 -0
- package/models/export-column.ts +42 -0
- package/models/filter-field.ts +116 -0
- package/models/filter-value.ts +43 -0
- package/models/get-bill-response.ts +31 -0
- package/models/get-bill-run-filter-catalog-response.ts +37 -0
- package/models/get-bill-run-response.ts +31 -0
- package/models/get-invoice-filter-catalog-response.ts +37 -0
- package/models/get-invoice-response.ts +31 -0
- package/models/get-job-download-response.ts +31 -0
- package/models/get-job-filter-catalog-response.ts +37 -0
- package/models/get-job-response.ts +31 -0
- package/models/get-policies-billing-date-filter-catalog-response.ts +37 -0
- package/models/get-policies-billing-filter-catalog-response.ts +37 -0
- package/models/get-policy-billing-response.ts +31 -0
- package/models/highlight.ts +36 -0
- package/models/index.ts +75 -0
- package/models/invoice-item.ts +210 -0
- package/models/invoice-payment.ts +114 -0
- package/models/invoice-payments.ts +31 -0
- package/models/invoice-status.ts +60 -0
- package/models/invoice.ts +281 -0
- package/models/job-download.ts +42 -0
- package/models/job-error.ts +36 -0
- package/models/job-progress.ts +42 -0
- package/models/job.ts +140 -0
- package/models/list-bill-runs-response.ts +43 -0
- package/models/list-invoices-response.ts +43 -0
- package/models/list-jobs-response.ts +43 -0
- package/models/list-policies-billing-dates-response.ts +43 -0
- package/models/list-policies-billings-response.ts +43 -0
- package/models/list-request.ts +66 -0
- package/models/localized-text.ts +36 -0
- package/models/match.ts +75 -0
- package/models/payment-term.ts +48 -0
- package/models/policy-billing.ts +145 -0
- package/models/request-bill-run-request.ts +36 -0
- package/models/request-bill-run-response.ts +31 -0
- package/models/resolved-billing-config.ts +134 -0
- package/models/revert-invoice-request.ts +30 -0
- package/models/revert-invoice-response.ts +31 -0
- package/models/slice.ts +36 -0
- package/models/status.ts +43 -0
- package/models/tax.ts +36 -0
- package/models/update-policy-billing-body.ts +30 -0
- package/models/update-policy-billing-response.ts +31 -0
- package/package.json +27 -4
- package/tsconfig.json +23 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
.gitignore
|
|
2
|
+
.npmignore
|
|
3
|
+
.openapi-generator-ignore
|
|
4
|
+
README.md
|
|
5
|
+
api.ts
|
|
6
|
+
api/bill-runs-api.ts
|
|
7
|
+
api/bills-api.ts
|
|
8
|
+
api/invoices-api.ts
|
|
9
|
+
api/jobs-api.ts
|
|
10
|
+
api/policy-billings-api.ts
|
|
11
|
+
base.ts
|
|
12
|
+
common.ts
|
|
13
|
+
configuration.ts
|
|
14
|
+
git_push.sh
|
|
15
|
+
index.ts
|
|
16
|
+
models/any.ts
|
|
17
|
+
models/bill-item.ts
|
|
18
|
+
models/bill-run.ts
|
|
19
|
+
models/bill.ts
|
|
20
|
+
models/cancel-job-response.ts
|
|
21
|
+
models/create-correction-invoices-request.ts
|
|
22
|
+
models/create-correction-invoices-response.ts
|
|
23
|
+
models/create-detail-export-job-request.ts
|
|
24
|
+
models/create-detail-export-job-response.ts
|
|
25
|
+
models/create-estimated-invoice-for-interval-request.ts
|
|
26
|
+
models/create-estimated-invoice-for-interval-response.ts
|
|
27
|
+
models/create-estimated-invoice-request.ts
|
|
28
|
+
models/create-estimated-invoice-response.ts
|
|
29
|
+
models/create-export-job-request.ts
|
|
30
|
+
models/create-export-job-response.ts
|
|
31
|
+
models/create-initial-invoice-request.ts
|
|
32
|
+
models/create-initial-invoice-response.ts
|
|
33
|
+
models/create-invoice-request.ts
|
|
34
|
+
models/create-invoice-response.ts
|
|
35
|
+
models/create-invoice-status-body.ts
|
|
36
|
+
models/create-invoice-status-response.ts
|
|
37
|
+
models/create-item-request.ts
|
|
38
|
+
models/create-policy-billing-request.ts
|
|
39
|
+
models/create-policy-billing-response.ts
|
|
40
|
+
models/create-recurring-invoice-request.ts
|
|
41
|
+
models/create-recurring-invoice-response.ts
|
|
42
|
+
models/create-termination-invoice-request.ts
|
|
43
|
+
models/create-termination-invoice-response.ts
|
|
44
|
+
models/create-withdraw-invoice-request.ts
|
|
45
|
+
models/create-withdraw-invoice-response.ts
|
|
46
|
+
models/estimate-history-entry.ts
|
|
47
|
+
models/export-column.ts
|
|
48
|
+
models/filter-field.ts
|
|
49
|
+
models/filter-value.ts
|
|
50
|
+
models/get-bill-response.ts
|
|
51
|
+
models/get-bill-run-filter-catalog-response.ts
|
|
52
|
+
models/get-bill-run-response.ts
|
|
53
|
+
models/get-invoice-filter-catalog-response.ts
|
|
54
|
+
models/get-invoice-response.ts
|
|
55
|
+
models/get-job-download-response.ts
|
|
56
|
+
models/get-job-filter-catalog-response.ts
|
|
57
|
+
models/get-job-response.ts
|
|
58
|
+
models/get-policies-billing-date-filter-catalog-response.ts
|
|
59
|
+
models/get-policies-billing-filter-catalog-response.ts
|
|
60
|
+
models/get-policy-billing-response.ts
|
|
61
|
+
models/highlight.ts
|
|
62
|
+
models/index.ts
|
|
63
|
+
models/invoice-item.ts
|
|
64
|
+
models/invoice-payment.ts
|
|
65
|
+
models/invoice-payments.ts
|
|
66
|
+
models/invoice-status.ts
|
|
67
|
+
models/invoice.ts
|
|
68
|
+
models/job-download.ts
|
|
69
|
+
models/job-error.ts
|
|
70
|
+
models/job-progress.ts
|
|
71
|
+
models/job.ts
|
|
72
|
+
models/list-bill-runs-response.ts
|
|
73
|
+
models/list-invoices-response.ts
|
|
74
|
+
models/list-jobs-response.ts
|
|
75
|
+
models/list-policies-billing-dates-response.ts
|
|
76
|
+
models/list-policies-billings-response.ts
|
|
77
|
+
models/list-request.ts
|
|
78
|
+
models/localized-text.ts
|
|
79
|
+
models/match.ts
|
|
80
|
+
models/payment-term.ts
|
|
81
|
+
models/policy-billing.ts
|
|
82
|
+
models/request-bill-run-request.ts
|
|
83
|
+
models/request-bill-run-response.ts
|
|
84
|
+
models/resolved-billing-config.ts
|
|
85
|
+
models/revert-invoice-request.ts
|
|
86
|
+
models/revert-invoice-response.ts
|
|
87
|
+
models/slice.ts
|
|
88
|
+
models/status.ts
|
|
89
|
+
models/tax.ts
|
|
90
|
+
models/update-policy-billing-body.ts
|
|
91
|
+
models/update-policy-billing-response.ts
|
|
92
|
+
package.json
|
|
93
|
+
tsconfig.json
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5.4.0
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# OpenAPI Generator Ignore
|
|
2
|
+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
3
|
+
|
|
4
|
+
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
+
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
+
|
|
7
|
+
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
9
|
+
#ApiClient.cs
|
|
10
|
+
|
|
11
|
+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
+
#foo/*/qux
|
|
13
|
+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
+
|
|
15
|
+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
+
#foo/**/qux
|
|
17
|
+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
+
|
|
19
|
+
# You can also negate patterns with an exclamation (!).
|
|
20
|
+
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
+
#docs/*.md
|
|
22
|
+
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
+
#!docs/README.md
|
package/README.md
CHANGED
|
@@ -1,3 +1,84 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Emil Billing V2 SDK for Nodejs
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This TypeScript/JavaScript client utilizes [axios](https://github.com/axios/axios). The generated Node module can be used with Nodejs based applications.
|
|
4
|
+
|
|
5
|
+
Language level
|
|
6
|
+
* ES5 - you must have a Promises/A+ library installed
|
|
7
|
+
* ES6
|
|
8
|
+
|
|
9
|
+
Module system
|
|
10
|
+
* CommonJS
|
|
11
|
+
* ES6 module system
|
|
12
|
+
|
|
13
|
+
Although this package can be used in both TypeScript and JavaScript, it is intended to be used with TypeScript. The definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html)). For more information, you can go to [Emil Api documentation](https://emil.stoplight.io/docs/emil-api/).
|
|
14
|
+
|
|
15
|
+
## Consuming
|
|
16
|
+
|
|
17
|
+
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
npm install @emilgroup/billing-v2-sdk-node@1.0.1-beta.0 --save
|
|
21
|
+
```
|
|
22
|
+
or
|
|
23
|
+
```
|
|
24
|
+
yarn add @emilgroup/billing-v2-sdk-node@1.0.1-beta.0
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
And then you can import `InvoicesApi`.
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
import { InvoicesApi } from '@emilgroup/billing-v2-sdk-node'
|
|
31
|
+
|
|
32
|
+
const invoicesApi = new InvoicesApi();
|
|
33
|
+
```
|
|
34
|
+
## Credentials
|
|
35
|
+
|
|
36
|
+
To use authentication protected endpoints, you have to first authorize. To do so, the easiest way is to provide a configuration file under `~/.emil/credentials` with the following content:
|
|
37
|
+
|
|
38
|
+
```shell
|
|
39
|
+
emil_username=XXXXX@XXXX.XXX
|
|
40
|
+
emil_password=XXXXXXXXXXXXXX
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
It is also possible to provide environment variables instead:
|
|
44
|
+
|
|
45
|
+
```shell
|
|
46
|
+
export EMIL_USERNAME=XXXXX@XXXX.XXX
|
|
47
|
+
export EMIL_PASSWORD=XXXXXXXXXXXXXX
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Base path
|
|
51
|
+
|
|
52
|
+
To select the basic path for using the API, we can use two approaches. The first is to use one of the predefined environments, and the second is to specify the domain as a string.
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
import { InvoicesApi, Environment } from '@emilgroup/billing-v2-sdk-node'
|
|
56
|
+
|
|
57
|
+
const invoicesApi = new InvoicesApi();
|
|
58
|
+
|
|
59
|
+
// Allows you to simply choose environment. It will usually be Environment.Production.
|
|
60
|
+
invoicesApi.selectEnvironment(Environment.Production);
|
|
61
|
+
|
|
62
|
+
// For advanced users, use the custom baseUrl of the website you need to connect to.
|
|
63
|
+
invoicesApi.selectBasePath('https://my-custom-domain.com');
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Example
|
|
67
|
+
|
|
68
|
+
Here is a basic functionning example:
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
async function listInvoices(): Promise<Void> {
|
|
72
|
+
try {
|
|
73
|
+
const invoicesApi = new InvoicesApi();
|
|
74
|
+
|
|
75
|
+
await invoicesApi.initialize(); // should be called only once per Api.
|
|
76
|
+
|
|
77
|
+
const { data: { items } } = await invoicesApi.listInvoices();
|
|
78
|
+
|
|
79
|
+
console.log(items);
|
|
80
|
+
} catch(error) {
|
|
81
|
+
// process error
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
```
|
|
@@ -0,0 +1,472 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Billing Service
|
|
5
|
+
* The billing service: bills, bill runs, invoices and policy billings.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { GetBillRunFilterCatalogResponse } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { GetBillRunResponse } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { ListBillRunsResponse } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { RequestBillRunRequest } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { RequestBillRunResponse } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { Status } from '../models';
|
|
35
|
+
// URLSearchParams not necessarily used
|
|
36
|
+
// @ts-ignore
|
|
37
|
+
import { URL, URLSearchParams } from 'url';
|
|
38
|
+
const FormData = require('form-data');
|
|
39
|
+
/**
|
|
40
|
+
* BillRunsApi - axios parameter creator
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
export const BillRunsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
|
+
return {
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @summary Returns one bill run.
|
|
48
|
+
* @param {string} code The run\'s code.
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
billingServiceGetBillRun: async (code: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
53
|
+
// verify required parameter 'code' is not null or undefined
|
|
54
|
+
assertParamExists('billingServiceGetBillRun', 'code', code)
|
|
55
|
+
const localVarPath = `/billingservice/v2/bill-runs/{code}`
|
|
56
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
57
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
59
|
+
let baseOptions;
|
|
60
|
+
let baseAccessToken;
|
|
61
|
+
if (configuration) {
|
|
62
|
+
baseOptions = configuration.baseOptions;
|
|
63
|
+
baseAccessToken = configuration.accessToken;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
67
|
+
const localVarHeaderParameter = {} as any;
|
|
68
|
+
const localVarQueryParameter = {} as any;
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
73
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
74
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
url: toPathString(localVarUrlObj),
|
|
78
|
+
options: localVarRequestOptions,
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @summary Returns the filter catalog of the bill run list.
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
*/
|
|
87
|
+
billingServiceGetBillRunFilterCatalog: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
88
|
+
const localVarPath = `/billingservice/v2/bill-runs:filterCatalog`;
|
|
89
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
90
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
91
|
+
let baseOptions;
|
|
92
|
+
let baseAccessToken;
|
|
93
|
+
if (configuration) {
|
|
94
|
+
baseOptions = configuration.baseOptions;
|
|
95
|
+
baseAccessToken = configuration.accessToken;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
99
|
+
const localVarHeaderParameter = {} as any;
|
|
100
|
+
const localVarQueryParameter = {} as any;
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
105
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
106
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
url: toPathString(localVarUrlObj),
|
|
110
|
+
options: localVarRequestOptions,
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @summary Lists bill runs.
|
|
116
|
+
* @param {number} [pageSize]
|
|
117
|
+
* @param {string} [pageToken]
|
|
118
|
+
* @param {string} [filter]
|
|
119
|
+
* @param {string} [search]
|
|
120
|
+
* @param {string} [order]
|
|
121
|
+
* @param {string} [expand]
|
|
122
|
+
* @param {string} [filters]
|
|
123
|
+
* @param {*} [options] Override http request option.
|
|
124
|
+
* @throws {RequiredError}
|
|
125
|
+
*/
|
|
126
|
+
billingServiceListBillRuns: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
127
|
+
const localVarPath = `/billingservice/v2/bill-runs`;
|
|
128
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
129
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
130
|
+
let baseOptions;
|
|
131
|
+
let baseAccessToken;
|
|
132
|
+
if (configuration) {
|
|
133
|
+
baseOptions = configuration.baseOptions;
|
|
134
|
+
baseAccessToken = configuration.accessToken;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
138
|
+
const localVarHeaderParameter = {} as any;
|
|
139
|
+
const localVarQueryParameter = {} as any;
|
|
140
|
+
|
|
141
|
+
if (pageSize !== undefined) {
|
|
142
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
if (pageToken !== undefined) {
|
|
146
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (filter !== undefined) {
|
|
150
|
+
localVarQueryParameter['filter'] = filter;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (search !== undefined) {
|
|
154
|
+
localVarQueryParameter['search'] = search;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (order !== undefined) {
|
|
158
|
+
localVarQueryParameter['order'] = order;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (expand !== undefined) {
|
|
162
|
+
localVarQueryParameter['expand'] = expand;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
if (filters !== undefined) {
|
|
166
|
+
localVarQueryParameter['filters'] = filters;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
172
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
173
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
174
|
+
|
|
175
|
+
return {
|
|
176
|
+
url: toPathString(localVarUrlObj),
|
|
177
|
+
options: localVarRequestOptions,
|
|
178
|
+
};
|
|
179
|
+
},
|
|
180
|
+
/**
|
|
181
|
+
* It runs `kind` for `runDate` (today when empty). The run is finished when the call returns, and the response is the finished run. `kind` is `INVOICE`, `ESTIMATE` or `RECONCILE`. Only one run of a kind can run at a time.
|
|
182
|
+
* @summary Runs a bill run now.
|
|
183
|
+
* @param {RequestBillRunRequest} body The request of `RequestBillRun`.
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
*/
|
|
187
|
+
billingServiceRequestBillRun: async (body: RequestBillRunRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
188
|
+
// verify required parameter 'body' is not null or undefined
|
|
189
|
+
assertParamExists('billingServiceRequestBillRun', 'body', body)
|
|
190
|
+
const localVarPath = `/billingservice/v2/bill-runs`;
|
|
191
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
192
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
193
|
+
let baseOptions;
|
|
194
|
+
let baseAccessToken;
|
|
195
|
+
if (configuration) {
|
|
196
|
+
baseOptions = configuration.baseOptions;
|
|
197
|
+
baseAccessToken = configuration.accessToken;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
201
|
+
const localVarHeaderParameter = {} as any;
|
|
202
|
+
const localVarQueryParameter = {} as any;
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
207
|
+
|
|
208
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
209
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
210
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
211
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
212
|
+
|
|
213
|
+
return {
|
|
214
|
+
url: toPathString(localVarUrlObj),
|
|
215
|
+
options: localVarRequestOptions,
|
|
216
|
+
};
|
|
217
|
+
},
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* BillRunsApi - functional programming interface
|
|
223
|
+
* @export
|
|
224
|
+
*/
|
|
225
|
+
export const BillRunsApiFp = function(configuration?: Configuration) {
|
|
226
|
+
const localVarAxiosParamCreator = BillRunsApiAxiosParamCreator(configuration)
|
|
227
|
+
return {
|
|
228
|
+
/**
|
|
229
|
+
*
|
|
230
|
+
* @summary Returns one bill run.
|
|
231
|
+
* @param {string} code The run\'s code.
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
*/
|
|
235
|
+
async billingServiceGetBillRun(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBillRunResponse>> {
|
|
236
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.billingServiceGetBillRun(code, options);
|
|
237
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
238
|
+
},
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @summary Returns the filter catalog of the bill run list.
|
|
242
|
+
* @param {*} [options] Override http request option.
|
|
243
|
+
* @throws {RequiredError}
|
|
244
|
+
*/
|
|
245
|
+
async billingServiceGetBillRunFilterCatalog(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBillRunFilterCatalogResponse>> {
|
|
246
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.billingServiceGetBillRunFilterCatalog(options);
|
|
247
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
248
|
+
},
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @summary Lists bill runs.
|
|
252
|
+
* @param {number} [pageSize]
|
|
253
|
+
* @param {string} [pageToken]
|
|
254
|
+
* @param {string} [filter]
|
|
255
|
+
* @param {string} [search]
|
|
256
|
+
* @param {string} [order]
|
|
257
|
+
* @param {string} [expand]
|
|
258
|
+
* @param {string} [filters]
|
|
259
|
+
* @param {*} [options] Override http request option.
|
|
260
|
+
* @throws {RequiredError}
|
|
261
|
+
*/
|
|
262
|
+
async billingServiceListBillRuns(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBillRunsResponse>> {
|
|
263
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.billingServiceListBillRuns(pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
264
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
265
|
+
},
|
|
266
|
+
/**
|
|
267
|
+
* It runs `kind` for `runDate` (today when empty). The run is finished when the call returns, and the response is the finished run. `kind` is `INVOICE`, `ESTIMATE` or `RECONCILE`. Only one run of a kind can run at a time.
|
|
268
|
+
* @summary Runs a bill run now.
|
|
269
|
+
* @param {RequestBillRunRequest} body The request of `RequestBillRun`.
|
|
270
|
+
* @param {*} [options] Override http request option.
|
|
271
|
+
* @throws {RequiredError}
|
|
272
|
+
*/
|
|
273
|
+
async billingServiceRequestBillRun(body: RequestBillRunRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestBillRunResponse>> {
|
|
274
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.billingServiceRequestBillRun(body, options);
|
|
275
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
276
|
+
},
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* BillRunsApi - factory interface
|
|
282
|
+
* @export
|
|
283
|
+
*/
|
|
284
|
+
export const BillRunsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
285
|
+
const localVarFp = BillRunsApiFp(configuration)
|
|
286
|
+
return {
|
|
287
|
+
/**
|
|
288
|
+
*
|
|
289
|
+
* @summary Returns one bill run.
|
|
290
|
+
* @param {string} code The run\'s code.
|
|
291
|
+
* @param {*} [options] Override http request option.
|
|
292
|
+
* @throws {RequiredError}
|
|
293
|
+
*/
|
|
294
|
+
billingServiceGetBillRun(code: string, options?: any): AxiosPromise<GetBillRunResponse> {
|
|
295
|
+
return localVarFp.billingServiceGetBillRun(code, options).then((request) => request(axios, basePath));
|
|
296
|
+
},
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @summary Returns the filter catalog of the bill run list.
|
|
300
|
+
* @param {*} [options] Override http request option.
|
|
301
|
+
* @throws {RequiredError}
|
|
302
|
+
*/
|
|
303
|
+
billingServiceGetBillRunFilterCatalog(options?: any): AxiosPromise<GetBillRunFilterCatalogResponse> {
|
|
304
|
+
return localVarFp.billingServiceGetBillRunFilterCatalog(options).then((request) => request(axios, basePath));
|
|
305
|
+
},
|
|
306
|
+
/**
|
|
307
|
+
*
|
|
308
|
+
* @summary Lists bill runs.
|
|
309
|
+
* @param {number} [pageSize]
|
|
310
|
+
* @param {string} [pageToken]
|
|
311
|
+
* @param {string} [filter]
|
|
312
|
+
* @param {string} [search]
|
|
313
|
+
* @param {string} [order]
|
|
314
|
+
* @param {string} [expand]
|
|
315
|
+
* @param {string} [filters]
|
|
316
|
+
* @param {*} [options] Override http request option.
|
|
317
|
+
* @throws {RequiredError}
|
|
318
|
+
*/
|
|
319
|
+
billingServiceListBillRuns(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBillRunsResponse> {
|
|
320
|
+
return localVarFp.billingServiceListBillRuns(pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
321
|
+
},
|
|
322
|
+
/**
|
|
323
|
+
* It runs `kind` for `runDate` (today when empty). The run is finished when the call returns, and the response is the finished run. `kind` is `INVOICE`, `ESTIMATE` or `RECONCILE`. Only one run of a kind can run at a time.
|
|
324
|
+
* @summary Runs a bill run now.
|
|
325
|
+
* @param {RequestBillRunRequest} body The request of `RequestBillRun`.
|
|
326
|
+
* @param {*} [options] Override http request option.
|
|
327
|
+
* @throws {RequiredError}
|
|
328
|
+
*/
|
|
329
|
+
billingServiceRequestBillRun(body: RequestBillRunRequest, options?: any): AxiosPromise<RequestBillRunResponse> {
|
|
330
|
+
return localVarFp.billingServiceRequestBillRun(body, options).then((request) => request(axios, basePath));
|
|
331
|
+
},
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Request parameters for billingServiceGetBillRun operation in BillRunsApi.
|
|
337
|
+
* @export
|
|
338
|
+
* @interface BillRunsApiBillingServiceGetBillRunRequest
|
|
339
|
+
*/
|
|
340
|
+
export interface BillRunsApiBillingServiceGetBillRunRequest {
|
|
341
|
+
/**
|
|
342
|
+
* The run\'s code.
|
|
343
|
+
* @type {string}
|
|
344
|
+
* @memberof BillRunsApiBillingServiceGetBillRun
|
|
345
|
+
*/
|
|
346
|
+
readonly code: string
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* Request parameters for billingServiceListBillRuns operation in BillRunsApi.
|
|
351
|
+
* @export
|
|
352
|
+
* @interface BillRunsApiBillingServiceListBillRunsRequest
|
|
353
|
+
*/
|
|
354
|
+
export interface BillRunsApiBillingServiceListBillRunsRequest {
|
|
355
|
+
/**
|
|
356
|
+
*
|
|
357
|
+
* @type {number}
|
|
358
|
+
* @memberof BillRunsApiBillingServiceListBillRuns
|
|
359
|
+
*/
|
|
360
|
+
readonly pageSize?: number
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
*
|
|
364
|
+
* @type {string}
|
|
365
|
+
* @memberof BillRunsApiBillingServiceListBillRuns
|
|
366
|
+
*/
|
|
367
|
+
readonly pageToken?: string
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
*
|
|
371
|
+
* @type {string}
|
|
372
|
+
* @memberof BillRunsApiBillingServiceListBillRuns
|
|
373
|
+
*/
|
|
374
|
+
readonly filter?: string
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
*
|
|
378
|
+
* @type {string}
|
|
379
|
+
* @memberof BillRunsApiBillingServiceListBillRuns
|
|
380
|
+
*/
|
|
381
|
+
readonly search?: string
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
*
|
|
385
|
+
* @type {string}
|
|
386
|
+
* @memberof BillRunsApiBillingServiceListBillRuns
|
|
387
|
+
*/
|
|
388
|
+
readonly order?: string
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @type {string}
|
|
393
|
+
* @memberof BillRunsApiBillingServiceListBillRuns
|
|
394
|
+
*/
|
|
395
|
+
readonly expand?: string
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @type {string}
|
|
400
|
+
* @memberof BillRunsApiBillingServiceListBillRuns
|
|
401
|
+
*/
|
|
402
|
+
readonly filters?: string
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Request parameters for billingServiceRequestBillRun operation in BillRunsApi.
|
|
407
|
+
* @export
|
|
408
|
+
* @interface BillRunsApiBillingServiceRequestBillRunRequest
|
|
409
|
+
*/
|
|
410
|
+
export interface BillRunsApiBillingServiceRequestBillRunRequest {
|
|
411
|
+
/**
|
|
412
|
+
* The request of `RequestBillRun`.
|
|
413
|
+
* @type {RequestBillRunRequest}
|
|
414
|
+
* @memberof BillRunsApiBillingServiceRequestBillRun
|
|
415
|
+
*/
|
|
416
|
+
readonly body: RequestBillRunRequest
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* BillRunsApi - object-oriented interface
|
|
421
|
+
* @export
|
|
422
|
+
* @class BillRunsApi
|
|
423
|
+
* @extends {BaseAPI}
|
|
424
|
+
*/
|
|
425
|
+
export class BillRunsApi extends BaseAPI {
|
|
426
|
+
/**
|
|
427
|
+
*
|
|
428
|
+
* @summary Returns one bill run.
|
|
429
|
+
* @param {BillRunsApiBillingServiceGetBillRunRequest} requestParameters Request parameters.
|
|
430
|
+
* @param {*} [options] Override http request option.
|
|
431
|
+
* @throws {RequiredError}
|
|
432
|
+
* @memberof BillRunsApi
|
|
433
|
+
*/
|
|
434
|
+
public billingServiceGetBillRun(requestParameters: BillRunsApiBillingServiceGetBillRunRequest, options?: AxiosRequestConfig) {
|
|
435
|
+
return BillRunsApiFp(this.configuration).billingServiceGetBillRun(requestParameters.code, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
*
|
|
440
|
+
* @summary Returns the filter catalog of the bill run list.
|
|
441
|
+
* @param {*} [options] Override http request option.
|
|
442
|
+
* @throws {RequiredError}
|
|
443
|
+
* @memberof BillRunsApi
|
|
444
|
+
*/
|
|
445
|
+
public billingServiceGetBillRunFilterCatalog(options?: AxiosRequestConfig) {
|
|
446
|
+
return BillRunsApiFp(this.configuration).billingServiceGetBillRunFilterCatalog(this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
*
|
|
451
|
+
* @summary Lists bill runs.
|
|
452
|
+
* @param {BillRunsApiBillingServiceListBillRunsRequest} requestParameters Request parameters.
|
|
453
|
+
* @param {*} [options] Override http request option.
|
|
454
|
+
* @throws {RequiredError}
|
|
455
|
+
* @memberof BillRunsApi
|
|
456
|
+
*/
|
|
457
|
+
public billingServiceListBillRuns(requestParameters: BillRunsApiBillingServiceListBillRunsRequest = {}, options?: AxiosRequestConfig) {
|
|
458
|
+
return BillRunsApiFp(this.configuration).billingServiceListBillRuns(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* It runs `kind` for `runDate` (today when empty). The run is finished when the call returns, and the response is the finished run. `kind` is `INVOICE`, `ESTIMATE` or `RECONCILE`. Only one run of a kind can run at a time.
|
|
463
|
+
* @summary Runs a bill run now.
|
|
464
|
+
* @param {BillRunsApiBillingServiceRequestBillRunRequest} requestParameters Request parameters.
|
|
465
|
+
* @param {*} [options] Override http request option.
|
|
466
|
+
* @throws {RequiredError}
|
|
467
|
+
* @memberof BillRunsApi
|
|
468
|
+
*/
|
|
469
|
+
public billingServiceRequestBillRun(requestParameters: BillRunsApiBillingServiceRequestBillRunRequest, options?: AxiosRequestConfig) {
|
|
470
|
+
return BillRunsApiFp(this.configuration).billingServiceRequestBillRun(requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
471
|
+
}
|
|
472
|
+
}
|