@azure/arm-billing 2.2.0 → 4.0.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/CHANGELOG.md +11 -0
- package/{LICENSE.txt → LICENSE} +2 -2
- package/README.md +75 -73
- package/dist/index.js +10450 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/billingManagementClient.d.ts +37 -0
- package/dist-esm/src/billingManagementClient.d.ts.map +1 -0
- package/dist-esm/src/billingManagementClient.js +70 -0
- package/dist-esm/src/billingManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +3244 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +272 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +86 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +3514 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +45 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +374 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/address.d.ts +20 -0
- package/dist-esm/src/operations/address.d.ts.map +1 -0
- package/dist-esm/src/operations/address.js +50 -0
- package/dist-esm/src/operations/address.js.map +1 -0
- package/dist-esm/src/operations/agreements.d.ts +42 -0
- package/dist-esm/src/operations/agreements.d.ts.map +1 -0
- package/dist-esm/src/operations/agreements.js +156 -0
- package/dist-esm/src/operations/agreements.js.map +1 -0
- package/dist-esm/src/operations/availableBalances.d.ts +22 -0
- package/dist-esm/src/operations/availableBalances.d.ts.map +1 -0
- package/dist-esm/src/operations/availableBalances.js +54 -0
- package/dist-esm/src/operations/availableBalances.js.map +1 -0
- package/dist-esm/src/operations/billingAccounts.d.ts +79 -0
- package/dist-esm/src/operations/billingAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/billingAccounts.js +330 -0
- package/dist-esm/src/operations/billingAccounts.js.map +1 -0
- package/dist-esm/src/operations/billingPeriods.d.ts +44 -0
- package/dist-esm/src/operations/billingPeriods.d.ts.map +1 -0
- package/dist-esm/src/operations/billingPeriods.js +168 -0
- package/dist-esm/src/operations/billingPeriods.js.map +1 -0
- package/dist-esm/src/operations/billingPermissions.d.ts +110 -0
- package/dist-esm/src/operations/billingPermissions.d.ts.map +1 -0
- package/dist-esm/src/operations/billingPermissions.js +468 -0
- package/dist-esm/src/operations/billingPermissions.js.map +1 -0
- package/dist-esm/src/operations/billingProfiles.d.ts +64 -0
- package/dist-esm/src/operations/billingProfiles.d.ts.map +1 -0
- package/dist-esm/src/operations/billingProfiles.js +245 -0
- package/dist-esm/src/operations/billingProfiles.js.map +1 -0
- package/dist-esm/src/operations/billingPropertyOperations.d.ts +26 -0
- package/dist-esm/src/operations/billingPropertyOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/billingPropertyOperations.js +74 -0
- package/dist-esm/src/operations/billingPropertyOperations.js.map +1 -0
- package/dist-esm/src/operations/billingRoleAssignments.d.ts +146 -0
- package/dist-esm/src/operations/billingRoleAssignments.d.ts.map +1 -0
- package/dist-esm/src/operations/billingRoleAssignments.js +578 -0
- package/dist-esm/src/operations/billingRoleAssignments.js.map +1 -0
- package/dist-esm/src/operations/billingRoleDefinitions.d.ts +119 -0
- package/dist-esm/src/operations/billingRoleDefinitions.d.ts.map +1 -0
- package/dist-esm/src/operations/billingRoleDefinitions.js +471 -0
- package/dist-esm/src/operations/billingRoleDefinitions.js.map +1 -0
- package/dist-esm/src/operations/billingSubscriptions.d.ts +160 -0
- package/dist-esm/src/operations/billingSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operations/billingSubscriptions.js +655 -0
- package/dist-esm/src/operations/billingSubscriptions.js.map +1 -0
- package/dist-esm/src/operations/customers.d.ts +71 -0
- package/dist-esm/src/operations/customers.d.ts.map +1 -0
- package/dist-esm/src/operations/customers.js +287 -0
- package/dist-esm/src/operations/customers.js.map +1 -0
- package/dist-esm/src/operations/enrollmentAccounts.d.ts +38 -0
- package/dist-esm/src/operations/enrollmentAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/enrollmentAccounts.js +144 -0
- package/dist-esm/src/operations/enrollmentAccounts.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +22 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +29 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/instructions.d.ts +57 -0
- package/dist-esm/src/operations/instructions.d.ts.map +1 -0
- package/dist-esm/src/operations/instructions.js +208 -0
- package/dist-esm/src/operations/instructions.js.map +1 -0
- package/dist-esm/src/operations/invoiceSections.d.ts +70 -0
- package/dist-esm/src/operations/invoiceSections.d.ts.map +1 -0
- package/dist-esm/src/operations/invoiceSections.js +264 -0
- package/dist-esm/src/operations/invoiceSections.js.map +1 -0
- package/dist-esm/src/operations/invoices.d.ts +202 -0
- package/dist-esm/src/operations/invoices.d.ts.map +1 -0
- package/dist-esm/src/operations/invoices.js +817 -0
- package/dist-esm/src/operations/invoices.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/policies.d.ts +47 -0
- package/dist-esm/src/operations/policies.d.ts.map +1 -0
- package/dist-esm/src/operations/policies.js +149 -0
- package/dist-esm/src/operations/policies.js.map +1 -0
- package/dist-esm/src/operations/products.d.ts +160 -0
- package/dist-esm/src/operations/products.d.ts.map +1 -0
- package/dist-esm/src/operations/products.js +615 -0
- package/dist-esm/src/operations/products.js.map +1 -0
- package/dist-esm/src/operations/reservations.d.ts +63 -0
- package/dist-esm/src/operations/reservations.d.ts.map +1 -0
- package/dist-esm/src/operations/reservations.js +265 -0
- package/dist-esm/src/operations/reservations.js.map +1 -0
- package/dist-esm/src/operations/transactions.d.ts +40 -0
- package/dist-esm/src/operations/transactions.d.ts.map +1 -0
- package/dist-esm/src/operations/transactions.js +137 -0
- package/dist-esm/src/operations/transactions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/address.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/address.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/address.js +9 -0
- package/dist-esm/src/operationsInterfaces/address.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/agreements.d.ts +19 -0
- package/dist-esm/src/operationsInterfaces/agreements.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/agreements.js +9 -0
- package/dist-esm/src/operationsInterfaces/agreements.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/availableBalances.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/availableBalances.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/availableBalances.js +9 -0
- package/dist-esm/src/operationsInterfaces/availableBalances.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingAccounts.d.ts +41 -0
- package/dist-esm/src/operationsInterfaces/billingAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingPeriods.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/billingPeriods.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingPeriods.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingPeriods.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingPermissions.d.ts +34 -0
- package/dist-esm/src/operationsInterfaces/billingPermissions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingPermissions.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingPermissions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingProfiles.d.ts +40 -0
- package/dist-esm/src/operationsInterfaces/billingProfiles.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingProfiles.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingProfiles.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingPropertyOperations.d.ts +18 -0
- package/dist-esm/src/operationsInterfaces/billingPropertyOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingPropertyOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingPropertyOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingRoleAssignments.d.ts +84 -0
- package/dist-esm/src/operationsInterfaces/billingRoleAssignments.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingRoleAssignments.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingRoleAssignments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingRoleDefinitions.d.ts +57 -0
- package/dist-esm/src/operationsInterfaces/billingRoleDefinitions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingRoleDefinitions.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingRoleDefinitions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingSubscriptions.d.ts +80 -0
- package/dist-esm/src/operationsInterfaces/billingSubscriptions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/billingSubscriptions.js +9 -0
- package/dist-esm/src/operationsInterfaces/billingSubscriptions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/customers.d.ts +29 -0
- package/dist-esm/src/operationsInterfaces/customers.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/customers.js +9 -0
- package/dist-esm/src/operationsInterfaces/customers.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/enrollmentAccounts.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/enrollmentAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/enrollmentAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/enrollmentAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +29 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/instructions.d.ts +32 -0
- package/dist-esm/src/operationsInterfaces/instructions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/instructions.js +9 -0
- package/dist-esm/src/operationsInterfaces/instructions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/invoiceSections.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/invoiceSections.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/invoiceSections.js +9 -0
- package/dist-esm/src/operationsInterfaces/invoiceSections.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/invoices.d.ts +124 -0
- package/dist-esm/src/operationsInterfaces/invoices.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/invoices.js +9 -0
- package/dist-esm/src/operationsInterfaces/invoices.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policies.d.ts +39 -0
- package/dist-esm/src/operationsInterfaces/policies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policies.js +9 -0
- package/dist-esm/src/operationsInterfaces/policies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/products.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/products.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/products.js +9 -0
- package/dist-esm/src/operationsInterfaces/products.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/reservations.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/reservations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/reservations.js +9 -0
- package/dist-esm/src/operationsInterfaces/reservations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/transactions.d.ts +14 -0
- package/dist-esm/src/operationsInterfaces/transactions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/transactions.js +9 -0
- package/dist-esm/src/operationsInterfaces/transactions.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +70 -34
- package/review/arm-billing.api.md +2361 -0
- package/rollup.config.js +184 -27
- package/src/billingManagementClient.ts +157 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +3657 -0
- package/src/models/mappers.ts +3839 -0
- package/src/models/parameters.ts +435 -0
- package/src/operations/address.ts +68 -0
- package/src/operations/agreements.ts +203 -0
- package/src/operations/availableBalances.ts +73 -0
- package/src/operations/billingAccounts.ts +433 -0
- package/src/operations/billingPeriods.ts +196 -0
- package/src/operations/billingPermissions.ts +643 -0
- package/src/operations/billingProfiles.ts +334 -0
- package/src/operations/billingPropertyOperations.ts +100 -0
- package/src/operations/billingRoleAssignments.ts +782 -0
- package/src/operations/billingRoleDefinitions.ts +639 -0
- package/src/operations/billingSubscriptions.ts +902 -0
- package/src/operations/customers.ts +377 -0
- package/src/operations/enrollmentAccounts.ts +170 -0
- package/src/operations/index.ts +29 -0
- package/src/operations/instructions.ts +285 -0
- package/src/operations/invoiceSections.ts +373 -0
- package/src/operations/invoices.ts +1176 -0
- package/src/operations/operations.ts +137 -0
- package/src/operations/policies.ts +205 -0
- package/src/operations/products.ts +838 -0
- package/src/operations/reservations.ts +344 -0
- package/src/operations/transactions.ts +189 -0
- package/src/operationsInterfaces/address.ts +27 -0
- package/src/operationsInterfaces/agreements.ts +40 -0
- package/src/operationsInterfaces/availableBalances.ts +29 -0
- package/src/operationsInterfaces/billingAccounts.ts +81 -0
- package/src/operationsInterfaces/billingPeriods.ts +40 -0
- package/src/operationsInterfaces/billingPermissions.ts +65 -0
- package/src/operationsInterfaces/billingProfiles.ts +78 -0
- package/src/operationsInterfaces/billingPropertyOperations.ts +37 -0
- package/src/operationsInterfaces/billingRoleAssignments.ts +152 -0
- package/src/operationsInterfaces/billingRoleDefinitions.ts +104 -0
- package/src/operationsInterfaces/billingSubscriptions.ts +144 -0
- package/src/operationsInterfaces/customers.ts +55 -0
- package/src/operationsInterfaces/enrollmentAccounts.ts +36 -0
- package/src/operationsInterfaces/index.ts +29 -0
- package/src/operationsInterfaces/instructions.ts +63 -0
- package/src/operationsInterfaces/invoiceSections.ts +86 -0
- package/src/operationsInterfaces/invoices.ts +233 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/policies.ts +76 -0
- package/src/operationsInterfaces/products.ts +137 -0
- package/src/operationsInterfaces/reservations.ts +41 -0
- package/src/operationsInterfaces/transactions.ts +30 -0
- package/tsconfig.json +4 -4
- package/types/arm-billing.d.ts +4451 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-billing.js +0 -1188
- package/dist/arm-billing.js.map +0 -1
- package/dist/arm-billing.min.js +0 -1
- package/dist/arm-billing.min.js.map +0 -1
- package/esm/billingManagementClient.d.ts +0 -21
- package/esm/billingManagementClient.d.ts.map +0 -1
- package/esm/billingManagementClient.js +0 -36
- package/esm/billingManagementClient.js.map +0 -1
- package/esm/billingManagementClientContext.d.ts +0 -16
- package/esm/billingManagementClientContext.d.ts.map +0 -1
- package/esm/billingManagementClientContext.js +0 -56
- package/esm/billingManagementClientContext.js.map +0 -1
- package/esm/models/billingPeriodsMappers.d.ts +0 -2
- package/esm/models/billingPeriodsMappers.d.ts.map +0 -1
- package/esm/models/billingPeriodsMappers.js +0 -11
- package/esm/models/billingPeriodsMappers.js.map +0 -1
- package/esm/models/enrollmentAccountsMappers.d.ts +0 -2
- package/esm/models/enrollmentAccountsMappers.d.ts.map +0 -1
- package/esm/models/enrollmentAccountsMappers.js +0 -11
- package/esm/models/enrollmentAccountsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -573
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/invoicesMappers.d.ts +0 -2
- package/esm/models/invoicesMappers.d.ts.map +0 -1
- package/esm/models/invoicesMappers.js +0 -11
- package/esm/models/invoicesMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -17
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -364
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -11
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -13
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -133
- package/esm/models/parameters.js.map +0 -1
- package/esm/operations/billingPeriods.d.ts +0 -70
- package/esm/operations/billingPeriods.d.ts.map +0 -1
- package/esm/operations/billingPeriods.js +0 -112
- package/esm/operations/billingPeriods.js.map +0 -1
- package/esm/operations/enrollmentAccounts.d.ts +0 -64
- package/esm/operations/enrollmentAccounts.d.ts.map +0 -1
- package/esm/operations/enrollmentAccounts.js +0 -105
- package/esm/operations/enrollmentAccounts.js.map +0 -1
- package/esm/operations/index.d.ts +0 -5
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -14
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/invoices.d.ts +0 -93
- package/esm/operations/invoices.d.ts.map +0 -1
- package/esm/operations/invoices.js +0 -140
- package/esm/operations/invoices.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -77
- package/esm/operations/operations.js.map +0 -1
- package/lib/billingManagementClient.ts +0 -48
- package/lib/billingManagementClientContext.ts +0 -62
- package/lib/models/billingPeriodsMappers.ts +0 -22
- package/lib/models/enrollmentAccountsMappers.ts +0 -22
- package/lib/models/index.ts +0 -613
- package/lib/models/invoicesMappers.ts +0 -22
- package/lib/models/mappers.ts +0 -392
- package/lib/models/operationsMappers.ts +0 -18
- package/lib/models/parameters.ts +0 -135
- package/lib/operations/billingPeriods.ts +0 -187
- package/lib/operations/enrollmentAccounts.ts +0 -174
- package/lib/operations/index.ts +0 -14
- package/lib/operations/invoices.ts +0 -243
- package/lib/operations/operations.ts +0 -123
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
BillingSubscription,
|
|
13
|
+
BillingSubscriptionsListByCustomerOptionalParams,
|
|
14
|
+
BillingSubscriptionsListByBillingAccountOptionalParams,
|
|
15
|
+
BillingSubscriptionsListByBillingProfileOptionalParams,
|
|
16
|
+
BillingSubscriptionsListByInvoiceSectionOptionalParams,
|
|
17
|
+
BillingSubscriptionsGetOptionalParams,
|
|
18
|
+
BillingSubscriptionsGetResponse,
|
|
19
|
+
BillingSubscriptionsUpdateOptionalParams,
|
|
20
|
+
BillingSubscriptionsUpdateResponse,
|
|
21
|
+
TransferBillingSubscriptionRequestProperties,
|
|
22
|
+
BillingSubscriptionsMoveOptionalParams,
|
|
23
|
+
BillingSubscriptionsMoveResponse,
|
|
24
|
+
BillingSubscriptionsValidateMoveOptionalParams,
|
|
25
|
+
BillingSubscriptionsValidateMoveResponse
|
|
26
|
+
} from "../models";
|
|
27
|
+
|
|
28
|
+
/// <reference lib="esnext.asynciterable" />
|
|
29
|
+
/** Interface representing a BillingSubscriptions. */
|
|
30
|
+
export interface BillingSubscriptions {
|
|
31
|
+
/**
|
|
32
|
+
* Lists the subscriptions for a customer. The operation is supported only for billing accounts with
|
|
33
|
+
* agreement type Microsoft Partner Agreement.
|
|
34
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
35
|
+
* @param customerName The ID that uniquely identifies a customer.
|
|
36
|
+
* @param options The options parameters.
|
|
37
|
+
*/
|
|
38
|
+
listByCustomer(
|
|
39
|
+
billingAccountName: string,
|
|
40
|
+
customerName: string,
|
|
41
|
+
options?: BillingSubscriptionsListByCustomerOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<BillingSubscription>;
|
|
43
|
+
/**
|
|
44
|
+
* Lists the subscriptions for a billing account. The operation is supported for billing accounts with
|
|
45
|
+
* agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
|
|
46
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
47
|
+
* @param options The options parameters.
|
|
48
|
+
*/
|
|
49
|
+
listByBillingAccount(
|
|
50
|
+
billingAccountName: string,
|
|
51
|
+
options?: BillingSubscriptionsListByBillingAccountOptionalParams
|
|
52
|
+
): PagedAsyncIterableIterator<BillingSubscription>;
|
|
53
|
+
/**
|
|
54
|
+
* Lists the subscriptions that are billed to a billing profile. The operation is supported for billing
|
|
55
|
+
* accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
|
|
56
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
57
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
58
|
+
* @param options The options parameters.
|
|
59
|
+
*/
|
|
60
|
+
listByBillingProfile(
|
|
61
|
+
billingAccountName: string,
|
|
62
|
+
billingProfileName: string,
|
|
63
|
+
options?: BillingSubscriptionsListByBillingProfileOptionalParams
|
|
64
|
+
): PagedAsyncIterableIterator<BillingSubscription>;
|
|
65
|
+
/**
|
|
66
|
+
* Lists the subscriptions that are billed to an invoice section. The operation is supported only for
|
|
67
|
+
* billing accounts with agreement type Microsoft Customer Agreement.
|
|
68
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
69
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
70
|
+
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
|
|
71
|
+
* @param options The options parameters.
|
|
72
|
+
*/
|
|
73
|
+
listByInvoiceSection(
|
|
74
|
+
billingAccountName: string,
|
|
75
|
+
billingProfileName: string,
|
|
76
|
+
invoiceSectionName: string,
|
|
77
|
+
options?: BillingSubscriptionsListByInvoiceSectionOptionalParams
|
|
78
|
+
): PagedAsyncIterableIterator<BillingSubscription>;
|
|
79
|
+
/**
|
|
80
|
+
* Gets a subscription by its ID. The operation is supported for billing accounts with agreement type
|
|
81
|
+
* Microsoft Customer Agreement and Microsoft Partner Agreement.
|
|
82
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
83
|
+
* @param options The options parameters.
|
|
84
|
+
*/
|
|
85
|
+
get(
|
|
86
|
+
billingAccountName: string,
|
|
87
|
+
options?: BillingSubscriptionsGetOptionalParams
|
|
88
|
+
): Promise<BillingSubscriptionsGetResponse>;
|
|
89
|
+
/**
|
|
90
|
+
* Updates the properties of a billing subscription. Currently, cost center can be updated. The
|
|
91
|
+
* operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
|
|
92
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
93
|
+
* @param parameters Request parameters that are provided to the update billing subscription operation.
|
|
94
|
+
* @param options The options parameters.
|
|
95
|
+
*/
|
|
96
|
+
update(
|
|
97
|
+
billingAccountName: string,
|
|
98
|
+
parameters: BillingSubscription,
|
|
99
|
+
options?: BillingSubscriptionsUpdateOptionalParams
|
|
100
|
+
): Promise<BillingSubscriptionsUpdateResponse>;
|
|
101
|
+
/**
|
|
102
|
+
* Moves a subscription's charges to a new invoice section. The new invoice section must belong to the
|
|
103
|
+
* same billing profile as the existing invoice section. This operation is supported for billing
|
|
104
|
+
* accounts with agreement type Microsoft Customer Agreement.
|
|
105
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
106
|
+
* @param parameters Request parameters that are provided to the move subscription operation.
|
|
107
|
+
* @param options The options parameters.
|
|
108
|
+
*/
|
|
109
|
+
beginMove(
|
|
110
|
+
billingAccountName: string,
|
|
111
|
+
parameters: TransferBillingSubscriptionRequestProperties,
|
|
112
|
+
options?: BillingSubscriptionsMoveOptionalParams
|
|
113
|
+
): Promise<
|
|
114
|
+
PollerLike<
|
|
115
|
+
PollOperationState<BillingSubscriptionsMoveResponse>,
|
|
116
|
+
BillingSubscriptionsMoveResponse
|
|
117
|
+
>
|
|
118
|
+
>;
|
|
119
|
+
/**
|
|
120
|
+
* Moves a subscription's charges to a new invoice section. The new invoice section must belong to the
|
|
121
|
+
* same billing profile as the existing invoice section. This operation is supported for billing
|
|
122
|
+
* accounts with agreement type Microsoft Customer Agreement.
|
|
123
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
124
|
+
* @param parameters Request parameters that are provided to the move subscription operation.
|
|
125
|
+
* @param options The options parameters.
|
|
126
|
+
*/
|
|
127
|
+
beginMoveAndWait(
|
|
128
|
+
billingAccountName: string,
|
|
129
|
+
parameters: TransferBillingSubscriptionRequestProperties,
|
|
130
|
+
options?: BillingSubscriptionsMoveOptionalParams
|
|
131
|
+
): Promise<BillingSubscriptionsMoveResponse>;
|
|
132
|
+
/**
|
|
133
|
+
* Validates if a subscription's charges can be moved to a new invoice section. This operation is
|
|
134
|
+
* supported for billing accounts with agreement type Microsoft Customer Agreement.
|
|
135
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
136
|
+
* @param parameters Request parameters that are provided to the validate move eligibility operation.
|
|
137
|
+
* @param options The options parameters.
|
|
138
|
+
*/
|
|
139
|
+
validateMove(
|
|
140
|
+
billingAccountName: string,
|
|
141
|
+
parameters: TransferBillingSubscriptionRequestProperties,
|
|
142
|
+
options?: BillingSubscriptionsValidateMoveOptionalParams
|
|
143
|
+
): Promise<BillingSubscriptionsValidateMoveResponse>;
|
|
144
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
Customer,
|
|
12
|
+
CustomersListByBillingProfileOptionalParams,
|
|
13
|
+
CustomersListByBillingAccountOptionalParams,
|
|
14
|
+
CustomersGetOptionalParams,
|
|
15
|
+
CustomersGetResponse
|
|
16
|
+
} from "../models";
|
|
17
|
+
|
|
18
|
+
/// <reference lib="esnext.asynciterable" />
|
|
19
|
+
/** Interface representing a Customers. */
|
|
20
|
+
export interface Customers {
|
|
21
|
+
/**
|
|
22
|
+
* Lists the customers that are billed to a billing profile. The operation is supported only for
|
|
23
|
+
* billing accounts with agreement type Microsoft Partner Agreement.
|
|
24
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
25
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listByBillingProfile(
|
|
29
|
+
billingAccountName: string,
|
|
30
|
+
billingProfileName: string,
|
|
31
|
+
options?: CustomersListByBillingProfileOptionalParams
|
|
32
|
+
): PagedAsyncIterableIterator<Customer>;
|
|
33
|
+
/**
|
|
34
|
+
* Lists the customers that are billed to a billing account. The operation is supported only for
|
|
35
|
+
* billing accounts with agreement type Microsoft Partner Agreement.
|
|
36
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
listByBillingAccount(
|
|
40
|
+
billingAccountName: string,
|
|
41
|
+
options?: CustomersListByBillingAccountOptionalParams
|
|
42
|
+
): PagedAsyncIterableIterator<Customer>;
|
|
43
|
+
/**
|
|
44
|
+
* Gets a customer by its ID. The operation is supported only for billing accounts with agreement type
|
|
45
|
+
* Microsoft Partner Agreement.
|
|
46
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
47
|
+
* @param customerName The ID that uniquely identifies a customer.
|
|
48
|
+
* @param options The options parameters.
|
|
49
|
+
*/
|
|
50
|
+
get(
|
|
51
|
+
billingAccountName: string,
|
|
52
|
+
customerName: string,
|
|
53
|
+
options?: CustomersGetOptionalParams
|
|
54
|
+
): Promise<CustomersGetResponse>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
EnrollmentAccountSummary,
|
|
12
|
+
EnrollmentAccountsListOptionalParams,
|
|
13
|
+
EnrollmentAccountsGetOptionalParams,
|
|
14
|
+
EnrollmentAccountsGetResponse
|
|
15
|
+
} from "../models";
|
|
16
|
+
|
|
17
|
+
/// <reference lib="esnext.asynciterable" />
|
|
18
|
+
/** Interface representing a EnrollmentAccounts. */
|
|
19
|
+
export interface EnrollmentAccounts {
|
|
20
|
+
/**
|
|
21
|
+
* Lists the enrollment accounts the caller has access to.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
list(
|
|
25
|
+
options?: EnrollmentAccountsListOptionalParams
|
|
26
|
+
): PagedAsyncIterableIterator<EnrollmentAccountSummary>;
|
|
27
|
+
/**
|
|
28
|
+
* Gets a enrollment account by name.
|
|
29
|
+
* @param name Enrollment Account name.
|
|
30
|
+
* @param options The options parameters.
|
|
31
|
+
*/
|
|
32
|
+
get(
|
|
33
|
+
name: string,
|
|
34
|
+
options?: EnrollmentAccountsGetOptionalParams
|
|
35
|
+
): Promise<EnrollmentAccountsGetResponse>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export * from "./billingAccounts";
|
|
10
|
+
export * from "./address";
|
|
11
|
+
export * from "./availableBalances";
|
|
12
|
+
export * from "./instructions";
|
|
13
|
+
export * from "./billingProfiles";
|
|
14
|
+
export * from "./customers";
|
|
15
|
+
export * from "./invoiceSections";
|
|
16
|
+
export * from "./billingPermissions";
|
|
17
|
+
export * from "./billingSubscriptions";
|
|
18
|
+
export * from "./products";
|
|
19
|
+
export * from "./invoices";
|
|
20
|
+
export * from "./transactions";
|
|
21
|
+
export * from "./policies";
|
|
22
|
+
export * from "./billingPropertyOperations";
|
|
23
|
+
export * from "./operations";
|
|
24
|
+
export * from "./billingRoleDefinitions";
|
|
25
|
+
export * from "./billingRoleAssignments";
|
|
26
|
+
export * from "./agreements";
|
|
27
|
+
export * from "./reservations";
|
|
28
|
+
export * from "./enrollmentAccounts";
|
|
29
|
+
export * from "./billingPeriods";
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import {
|
|
11
|
+
Instruction,
|
|
12
|
+
InstructionsListByBillingProfileOptionalParams,
|
|
13
|
+
InstructionsGetOptionalParams,
|
|
14
|
+
InstructionsGetResponse,
|
|
15
|
+
InstructionsPutOptionalParams,
|
|
16
|
+
InstructionsPutResponse
|
|
17
|
+
} from "../models";
|
|
18
|
+
|
|
19
|
+
/// <reference lib="esnext.asynciterable" />
|
|
20
|
+
/** Interface representing a Instructions. */
|
|
21
|
+
export interface Instructions {
|
|
22
|
+
/**
|
|
23
|
+
* Lists the instructions by billing profile id.
|
|
24
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
25
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listByBillingProfile(
|
|
29
|
+
billingAccountName: string,
|
|
30
|
+
billingProfileName: string,
|
|
31
|
+
options?: InstructionsListByBillingProfileOptionalParams
|
|
32
|
+
): PagedAsyncIterableIterator<Instruction>;
|
|
33
|
+
/**
|
|
34
|
+
* Get the instruction by name. These are custom billing instructions and are only applicable for
|
|
35
|
+
* certain customers.
|
|
36
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
37
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
38
|
+
* @param instructionName Instruction Name.
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
get(
|
|
42
|
+
billingAccountName: string,
|
|
43
|
+
billingProfileName: string,
|
|
44
|
+
instructionName: string,
|
|
45
|
+
options?: InstructionsGetOptionalParams
|
|
46
|
+
): Promise<InstructionsGetResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Creates or updates an instruction. These are custom billing instructions and are only applicable for
|
|
49
|
+
* certain customers.
|
|
50
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
51
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
52
|
+
* @param instructionName Instruction Name.
|
|
53
|
+
* @param parameters The new instruction.
|
|
54
|
+
* @param options The options parameters.
|
|
55
|
+
*/
|
|
56
|
+
put(
|
|
57
|
+
billingAccountName: string,
|
|
58
|
+
billingProfileName: string,
|
|
59
|
+
instructionName: string,
|
|
60
|
+
parameters: Instruction,
|
|
61
|
+
options?: InstructionsPutOptionalParams
|
|
62
|
+
): Promise<InstructionsPutResponse>;
|
|
63
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
InvoiceSection,
|
|
13
|
+
InvoiceSectionsListByBillingProfileOptionalParams,
|
|
14
|
+
InvoiceSectionsGetOptionalParams,
|
|
15
|
+
InvoiceSectionsGetResponse,
|
|
16
|
+
InvoiceSectionsCreateOrUpdateOptionalParams,
|
|
17
|
+
InvoiceSectionsCreateOrUpdateResponse
|
|
18
|
+
} from "../models";
|
|
19
|
+
|
|
20
|
+
/// <reference lib="esnext.asynciterable" />
|
|
21
|
+
/** Interface representing a InvoiceSections. */
|
|
22
|
+
export interface InvoiceSections {
|
|
23
|
+
/**
|
|
24
|
+
* Lists the invoice sections that a user has access to. The operation is supported only for billing
|
|
25
|
+
* accounts with agreement type Microsoft Customer Agreement.
|
|
26
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
27
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listByBillingProfile(
|
|
31
|
+
billingAccountName: string,
|
|
32
|
+
billingProfileName: string,
|
|
33
|
+
options?: InvoiceSectionsListByBillingProfileOptionalParams
|
|
34
|
+
): PagedAsyncIterableIterator<InvoiceSection>;
|
|
35
|
+
/**
|
|
36
|
+
* Gets an invoice section by its ID. The operation is supported only for billing accounts with
|
|
37
|
+
* agreement type Microsoft Customer Agreement.
|
|
38
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
39
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
40
|
+
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
|
|
41
|
+
* @param options The options parameters.
|
|
42
|
+
*/
|
|
43
|
+
get(
|
|
44
|
+
billingAccountName: string,
|
|
45
|
+
billingProfileName: string,
|
|
46
|
+
invoiceSectionName: string,
|
|
47
|
+
options?: InvoiceSectionsGetOptionalParams
|
|
48
|
+
): Promise<InvoiceSectionsGetResponse>;
|
|
49
|
+
/**
|
|
50
|
+
* Creates or updates an invoice section. The operation is supported only for billing accounts with
|
|
51
|
+
* agreement type Microsoft Customer Agreement.
|
|
52
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
53
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
54
|
+
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
|
|
55
|
+
* @param parameters The new or updated invoice section.
|
|
56
|
+
* @param options The options parameters.
|
|
57
|
+
*/
|
|
58
|
+
beginCreateOrUpdate(
|
|
59
|
+
billingAccountName: string,
|
|
60
|
+
billingProfileName: string,
|
|
61
|
+
invoiceSectionName: string,
|
|
62
|
+
parameters: InvoiceSection,
|
|
63
|
+
options?: InvoiceSectionsCreateOrUpdateOptionalParams
|
|
64
|
+
): Promise<
|
|
65
|
+
PollerLike<
|
|
66
|
+
PollOperationState<InvoiceSectionsCreateOrUpdateResponse>,
|
|
67
|
+
InvoiceSectionsCreateOrUpdateResponse
|
|
68
|
+
>
|
|
69
|
+
>;
|
|
70
|
+
/**
|
|
71
|
+
* Creates or updates an invoice section. The operation is supported only for billing accounts with
|
|
72
|
+
* agreement type Microsoft Customer Agreement.
|
|
73
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
74
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
75
|
+
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
|
|
76
|
+
* @param parameters The new or updated invoice section.
|
|
77
|
+
* @param options The options parameters.
|
|
78
|
+
*/
|
|
79
|
+
beginCreateOrUpdateAndWait(
|
|
80
|
+
billingAccountName: string,
|
|
81
|
+
billingProfileName: string,
|
|
82
|
+
invoiceSectionName: string,
|
|
83
|
+
parameters: InvoiceSection,
|
|
84
|
+
options?: InvoiceSectionsCreateOrUpdateOptionalParams
|
|
85
|
+
): Promise<InvoiceSectionsCreateOrUpdateResponse>;
|
|
86
|
+
}
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
11
|
+
import {
|
|
12
|
+
Invoice,
|
|
13
|
+
InvoicesListByBillingAccountOptionalParams,
|
|
14
|
+
InvoicesListByBillingProfileOptionalParams,
|
|
15
|
+
InvoicesListByBillingSubscriptionOptionalParams,
|
|
16
|
+
InvoicesGetOptionalParams,
|
|
17
|
+
InvoicesGetResponse,
|
|
18
|
+
InvoicesGetByIdOptionalParams,
|
|
19
|
+
InvoicesGetByIdResponse,
|
|
20
|
+
InvoicesDownloadInvoiceOptionalParams,
|
|
21
|
+
InvoicesDownloadInvoiceResponse,
|
|
22
|
+
InvoicesDownloadMultipleBillingProfileInvoicesOptionalParams,
|
|
23
|
+
InvoicesDownloadMultipleBillingProfileInvoicesResponse,
|
|
24
|
+
InvoicesGetBySubscriptionAndInvoiceIdOptionalParams,
|
|
25
|
+
InvoicesGetBySubscriptionAndInvoiceIdResponse,
|
|
26
|
+
InvoicesDownloadBillingSubscriptionInvoiceOptionalParams,
|
|
27
|
+
InvoicesDownloadBillingSubscriptionInvoiceResponse,
|
|
28
|
+
InvoicesDownloadMultipleBillingSubscriptionInvoicesOptionalParams,
|
|
29
|
+
InvoicesDownloadMultipleBillingSubscriptionInvoicesResponse
|
|
30
|
+
} from "../models";
|
|
31
|
+
|
|
32
|
+
/// <reference lib="esnext.asynciterable" />
|
|
33
|
+
/** Interface representing a Invoices. */
|
|
34
|
+
export interface Invoices {
|
|
35
|
+
/**
|
|
36
|
+
* Lists the invoices for a billing account for a given start date and end date. The operation is
|
|
37
|
+
* supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer
|
|
38
|
+
* Agreement.
|
|
39
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
40
|
+
* @param periodStartDate The start date to fetch the invoices. The date should be specified in
|
|
41
|
+
* MM-DD-YYYY format.
|
|
42
|
+
* @param periodEndDate The end date to fetch the invoices. The date should be specified in MM-DD-YYYY
|
|
43
|
+
* format.
|
|
44
|
+
* @param options The options parameters.
|
|
45
|
+
*/
|
|
46
|
+
listByBillingAccount(
|
|
47
|
+
billingAccountName: string,
|
|
48
|
+
periodStartDate: string,
|
|
49
|
+
periodEndDate: string,
|
|
50
|
+
options?: InvoicesListByBillingAccountOptionalParams
|
|
51
|
+
): PagedAsyncIterableIterator<Invoice>;
|
|
52
|
+
/**
|
|
53
|
+
* Lists the invoices for a billing profile for a given start date and end date. The operation is
|
|
54
|
+
* supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer
|
|
55
|
+
* Agreement.
|
|
56
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
57
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
58
|
+
* @param periodStartDate The start date to fetch the invoices. The date should be specified in
|
|
59
|
+
* MM-DD-YYYY format.
|
|
60
|
+
* @param periodEndDate The end date to fetch the invoices. The date should be specified in MM-DD-YYYY
|
|
61
|
+
* format.
|
|
62
|
+
* @param options The options parameters.
|
|
63
|
+
*/
|
|
64
|
+
listByBillingProfile(
|
|
65
|
+
billingAccountName: string,
|
|
66
|
+
billingProfileName: string,
|
|
67
|
+
periodStartDate: string,
|
|
68
|
+
periodEndDate: string,
|
|
69
|
+
options?: InvoicesListByBillingProfileOptionalParams
|
|
70
|
+
): PagedAsyncIterableIterator<Invoice>;
|
|
71
|
+
/**
|
|
72
|
+
* Lists the invoices for a subscription.
|
|
73
|
+
* @param periodStartDate Invoice period start date.
|
|
74
|
+
* @param periodEndDate Invoice period end date.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
listByBillingSubscription(
|
|
78
|
+
periodStartDate: string,
|
|
79
|
+
periodEndDate: string,
|
|
80
|
+
options?: InvoicesListByBillingSubscriptionOptionalParams
|
|
81
|
+
): PagedAsyncIterableIterator<Invoice>;
|
|
82
|
+
/**
|
|
83
|
+
* Gets an invoice by billing account name and ID. The operation is supported for billing accounts with
|
|
84
|
+
* agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
|
|
85
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
86
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
87
|
+
* @param options The options parameters.
|
|
88
|
+
*/
|
|
89
|
+
get(
|
|
90
|
+
billingAccountName: string,
|
|
91
|
+
invoiceName: string,
|
|
92
|
+
options?: InvoicesGetOptionalParams
|
|
93
|
+
): Promise<InvoicesGetResponse>;
|
|
94
|
+
/**
|
|
95
|
+
* Gets an invoice by ID. The operation is supported for billing accounts with agreement type Microsoft
|
|
96
|
+
* Partner Agreement or Microsoft Customer Agreement.
|
|
97
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
98
|
+
* @param options The options parameters.
|
|
99
|
+
*/
|
|
100
|
+
getById(
|
|
101
|
+
invoiceName: string,
|
|
102
|
+
options?: InvoicesGetByIdOptionalParams
|
|
103
|
+
): Promise<InvoicesGetByIdResponse>;
|
|
104
|
+
/**
|
|
105
|
+
* Gets a URL to download an invoice. The operation is supported for billing accounts with agreement
|
|
106
|
+
* type Microsoft Partner Agreement or Microsoft Customer Agreement.
|
|
107
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
108
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
109
|
+
* @param downloadToken Download token with document source and document ID.
|
|
110
|
+
* @param options The options parameters.
|
|
111
|
+
*/
|
|
112
|
+
beginDownloadInvoice(
|
|
113
|
+
billingAccountName: string,
|
|
114
|
+
invoiceName: string,
|
|
115
|
+
downloadToken: string,
|
|
116
|
+
options?: InvoicesDownloadInvoiceOptionalParams
|
|
117
|
+
): Promise<
|
|
118
|
+
PollerLike<
|
|
119
|
+
PollOperationState<InvoicesDownloadInvoiceResponse>,
|
|
120
|
+
InvoicesDownloadInvoiceResponse
|
|
121
|
+
>
|
|
122
|
+
>;
|
|
123
|
+
/**
|
|
124
|
+
* Gets a URL to download an invoice. The operation is supported for billing accounts with agreement
|
|
125
|
+
* type Microsoft Partner Agreement or Microsoft Customer Agreement.
|
|
126
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
127
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
128
|
+
* @param downloadToken Download token with document source and document ID.
|
|
129
|
+
* @param options The options parameters.
|
|
130
|
+
*/
|
|
131
|
+
beginDownloadInvoiceAndWait(
|
|
132
|
+
billingAccountName: string,
|
|
133
|
+
invoiceName: string,
|
|
134
|
+
downloadToken: string,
|
|
135
|
+
options?: InvoicesDownloadInvoiceOptionalParams
|
|
136
|
+
): Promise<InvoicesDownloadInvoiceResponse>;
|
|
137
|
+
/**
|
|
138
|
+
* Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip
|
|
139
|
+
* file. The operation is supported for billing accounts with agreement type Microsoft Partner
|
|
140
|
+
* Agreement or Microsoft Customer Agreement.
|
|
141
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
142
|
+
* @param downloadUrls An array of download urls for individual documents
|
|
143
|
+
* @param options The options parameters.
|
|
144
|
+
*/
|
|
145
|
+
beginDownloadMultipleBillingProfileInvoices(
|
|
146
|
+
billingAccountName: string,
|
|
147
|
+
downloadUrls: string[],
|
|
148
|
+
options?: InvoicesDownloadMultipleBillingProfileInvoicesOptionalParams
|
|
149
|
+
): Promise<
|
|
150
|
+
PollerLike<
|
|
151
|
+
PollOperationState<
|
|
152
|
+
InvoicesDownloadMultipleBillingProfileInvoicesResponse
|
|
153
|
+
>,
|
|
154
|
+
InvoicesDownloadMultipleBillingProfileInvoicesResponse
|
|
155
|
+
>
|
|
156
|
+
>;
|
|
157
|
+
/**
|
|
158
|
+
* Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip
|
|
159
|
+
* file. The operation is supported for billing accounts with agreement type Microsoft Partner
|
|
160
|
+
* Agreement or Microsoft Customer Agreement.
|
|
161
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
162
|
+
* @param downloadUrls An array of download urls for individual documents
|
|
163
|
+
* @param options The options parameters.
|
|
164
|
+
*/
|
|
165
|
+
beginDownloadMultipleBillingProfileInvoicesAndWait(
|
|
166
|
+
billingAccountName: string,
|
|
167
|
+
downloadUrls: string[],
|
|
168
|
+
options?: InvoicesDownloadMultipleBillingProfileInvoicesOptionalParams
|
|
169
|
+
): Promise<InvoicesDownloadMultipleBillingProfileInvoicesResponse>;
|
|
170
|
+
/**
|
|
171
|
+
* Gets an invoice by subscription ID and invoice ID.
|
|
172
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
173
|
+
* @param options The options parameters.
|
|
174
|
+
*/
|
|
175
|
+
getBySubscriptionAndInvoiceId(
|
|
176
|
+
invoiceName: string,
|
|
177
|
+
options?: InvoicesGetBySubscriptionAndInvoiceIdOptionalParams
|
|
178
|
+
): Promise<InvoicesGetBySubscriptionAndInvoiceIdResponse>;
|
|
179
|
+
/**
|
|
180
|
+
* Gets a URL to download an invoice.
|
|
181
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
182
|
+
* @param downloadToken Download token with document source and document ID.
|
|
183
|
+
* @param options The options parameters.
|
|
184
|
+
*/
|
|
185
|
+
beginDownloadBillingSubscriptionInvoice(
|
|
186
|
+
invoiceName: string,
|
|
187
|
+
downloadToken: string,
|
|
188
|
+
options?: InvoicesDownloadBillingSubscriptionInvoiceOptionalParams
|
|
189
|
+
): Promise<
|
|
190
|
+
PollerLike<
|
|
191
|
+
PollOperationState<InvoicesDownloadBillingSubscriptionInvoiceResponse>,
|
|
192
|
+
InvoicesDownloadBillingSubscriptionInvoiceResponse
|
|
193
|
+
>
|
|
194
|
+
>;
|
|
195
|
+
/**
|
|
196
|
+
* Gets a URL to download an invoice.
|
|
197
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
198
|
+
* @param downloadToken Download token with document source and document ID.
|
|
199
|
+
* @param options The options parameters.
|
|
200
|
+
*/
|
|
201
|
+
beginDownloadBillingSubscriptionInvoiceAndWait(
|
|
202
|
+
invoiceName: string,
|
|
203
|
+
downloadToken: string,
|
|
204
|
+
options?: InvoicesDownloadBillingSubscriptionInvoiceOptionalParams
|
|
205
|
+
): Promise<InvoicesDownloadBillingSubscriptionInvoiceResponse>;
|
|
206
|
+
/**
|
|
207
|
+
* Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip
|
|
208
|
+
* file.
|
|
209
|
+
* @param downloadUrls An array of download urls for individual documents
|
|
210
|
+
* @param options The options parameters.
|
|
211
|
+
*/
|
|
212
|
+
beginDownloadMultipleBillingSubscriptionInvoices(
|
|
213
|
+
downloadUrls: string[],
|
|
214
|
+
options?: InvoicesDownloadMultipleBillingSubscriptionInvoicesOptionalParams
|
|
215
|
+
): Promise<
|
|
216
|
+
PollerLike<
|
|
217
|
+
PollOperationState<
|
|
218
|
+
InvoicesDownloadMultipleBillingSubscriptionInvoicesResponse
|
|
219
|
+
>,
|
|
220
|
+
InvoicesDownloadMultipleBillingSubscriptionInvoicesResponse
|
|
221
|
+
>
|
|
222
|
+
>;
|
|
223
|
+
/**
|
|
224
|
+
* Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip
|
|
225
|
+
* file.
|
|
226
|
+
* @param downloadUrls An array of download urls for individual documents
|
|
227
|
+
* @param options The options parameters.
|
|
228
|
+
*/
|
|
229
|
+
beginDownloadMultipleBillingSubscriptionInvoicesAndWait(
|
|
230
|
+
downloadUrls: string[],
|
|
231
|
+
options?: InvoicesDownloadMultipleBillingSubscriptionInvoicesOptionalParams
|
|
232
|
+
): Promise<InvoicesDownloadMultipleBillingSubscriptionInvoicesResponse>;
|
|
233
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Operation, OperationsListOptionalParams } from "../models";
|
|
11
|
+
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Interface representing a Operations. */
|
|
14
|
+
export interface Operations {
|
|
15
|
+
/**
|
|
16
|
+
* Lists the available billing REST API operations.
|
|
17
|
+
* @param options The options parameters.
|
|
18
|
+
*/
|
|
19
|
+
list(
|
|
20
|
+
options?: OperationsListOptionalParams
|
|
21
|
+
): PagedAsyncIterableIterator<Operation>;
|
|
22
|
+
}
|