@azure/arm-billing 3.1.1 → 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 +69 -81
- 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/{esm → dist-esm/src}/models/mappers.js +2114 -1808
- 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/{esm → dist-esm/src}/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +4 -5
- 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 +65 -32
- package/review/arm-billing.api.md +2361 -0
- package/rollup.config.js +181 -30
- package/src/billingManagementClient.ts +144 -73
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +2567 -3859
- package/src/models/mappers.ts +2120 -1803
- package/src/models/parameters.ts +257 -103
- package/src/operations/address.ts +38 -56
- package/src/operations/agreements.ts +133 -118
- package/src/operations/availableBalances.ts +41 -56
- package/src/operations/billingAccounts.ts +314 -229
- package/src/operations/billingPeriods.ts +131 -122
- package/src/operations/billingPermissions.ts +468 -275
- package/src/operations/billingProfiles.ts +236 -165
- package/src/operations/billingPropertyOperations.ts +55 -94
- package/src/operations/billingRoleAssignments.ts +506 -453
- package/src/operations/billingRoleDefinitions.ts +436 -334
- package/src/operations/billingSubscriptions.ts +669 -487
- package/src/operations/customers.ts +263 -187
- package/src/operations/enrollmentAccounts.ts +104 -108
- package/src/operations/index.ts +4 -5
- package/src/operations/instructions.ts +182 -167
- package/src/operations/invoiceSections.ts +265 -167
- package/src/operations/invoices.ts +903 -544
- package/src/operations/operations.ts +87 -73
- package/src/operations/policies.ts +112 -188
- package/src/operations/products.ts +599 -501
- package/src/operations/reservations.ts +344 -0
- package/src/operations/transactions.ts +133 -81
- 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 +3 -3
- package/types/arm-billing.d.ts +4451 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-billing.js +0 -8674
- 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 -43
- package/esm/billingManagementClient.d.ts.map +0 -1
- package/esm/billingManagementClient.js +0 -57
- package/esm/billingManagementClient.js.map +0 -1
- package/esm/billingManagementClientContext.d.ts +0 -21
- package/esm/billingManagementClientContext.d.ts.map +0 -1
- package/esm/billingManagementClientContext.js +0 -60
- package/esm/billingManagementClientContext.js.map +0 -1
- package/esm/models/addressMappers.d.ts +0 -2
- package/esm/models/addressMappers.d.ts.map +0 -1
- package/esm/models/addressMappers.js +0 -9
- package/esm/models/addressMappers.js.map +0 -1
- package/esm/models/agreementsMappers.d.ts +0 -2
- package/esm/models/agreementsMappers.d.ts.map +0 -1
- package/esm/models/agreementsMappers.js +0 -9
- package/esm/models/agreementsMappers.js.map +0 -1
- package/esm/models/availableBalancesMappers.d.ts +0 -2
- package/esm/models/availableBalancesMappers.d.ts.map +0 -1
- package/esm/models/availableBalancesMappers.js +0 -9
- package/esm/models/availableBalancesMappers.js.map +0 -1
- package/esm/models/billingAccountsMappers.d.ts +0 -2
- package/esm/models/billingAccountsMappers.d.ts.map +0 -1
- package/esm/models/billingAccountsMappers.js +0 -9
- package/esm/models/billingAccountsMappers.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 -9
- package/esm/models/billingPeriodsMappers.js.map +0 -1
- package/esm/models/billingPermissionsMappers.d.ts +0 -2
- package/esm/models/billingPermissionsMappers.d.ts.map +0 -1
- package/esm/models/billingPermissionsMappers.js +0 -9
- package/esm/models/billingPermissionsMappers.js.map +0 -1
- package/esm/models/billingProfilesMappers.d.ts +0 -2
- package/esm/models/billingProfilesMappers.d.ts.map +0 -1
- package/esm/models/billingProfilesMappers.js +0 -9
- package/esm/models/billingProfilesMappers.js.map +0 -1
- package/esm/models/billingPropertyOperationsMappers.d.ts +0 -2
- package/esm/models/billingPropertyOperationsMappers.d.ts.map +0 -1
- package/esm/models/billingPropertyOperationsMappers.js +0 -9
- package/esm/models/billingPropertyOperationsMappers.js.map +0 -1
- package/esm/models/billingRoleAssignmentsMappers.d.ts +0 -2
- package/esm/models/billingRoleAssignmentsMappers.d.ts.map +0 -1
- package/esm/models/billingRoleAssignmentsMappers.js +0 -9
- package/esm/models/billingRoleAssignmentsMappers.js.map +0 -1
- package/esm/models/billingRoleDefinitionsMappers.d.ts +0 -2
- package/esm/models/billingRoleDefinitionsMappers.d.ts.map +0 -1
- package/esm/models/billingRoleDefinitionsMappers.js +0 -9
- package/esm/models/billingRoleDefinitionsMappers.js.map +0 -1
- package/esm/models/billingSubscriptionsMappers.d.ts +0 -2
- package/esm/models/billingSubscriptionsMappers.d.ts.map +0 -1
- package/esm/models/billingSubscriptionsMappers.js +0 -9
- package/esm/models/billingSubscriptionsMappers.js.map +0 -1
- package/esm/models/customersMappers.d.ts +0 -2
- package/esm/models/customersMappers.d.ts.map +0 -1
- package/esm/models/customersMappers.js +0 -9
- package/esm/models/customersMappers.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 -9
- package/esm/models/enrollmentAccountsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -4587
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/instructionsMappers.d.ts +0 -2
- package/esm/models/instructionsMappers.d.ts.map +0 -1
- package/esm/models/instructionsMappers.js +0 -9
- package/esm/models/instructionsMappers.js.map +0 -1
- package/esm/models/invoiceSectionsMappers.d.ts +0 -2
- package/esm/models/invoiceSectionsMappers.d.ts.map +0 -1
- package/esm/models/invoiceSectionsMappers.js +0 -9
- package/esm/models/invoiceSectionsMappers.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 -9
- package/esm/models/invoicesMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -82
- package/esm/models/mappers.d.ts.map +0 -1
- 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 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -27
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -279
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/policiesMappers.d.ts +0 -2
- package/esm/models/policiesMappers.d.ts.map +0 -1
- package/esm/models/policiesMappers.js +0 -9
- package/esm/models/policiesMappers.js.map +0 -1
- package/esm/models/productsMappers.d.ts +0 -2
- package/esm/models/productsMappers.d.ts.map +0 -1
- package/esm/models/productsMappers.js +0 -9
- package/esm/models/productsMappers.js.map +0 -1
- package/esm/models/transactionsMappers.d.ts +0 -2
- package/esm/models/transactionsMappers.d.ts.map +0 -1
- package/esm/models/transactionsMappers.js +0 -9
- package/esm/models/transactionsMappers.js.map +0 -1
- package/esm/operations/address.d.ts +0 -32
- package/esm/operations/address.d.ts.map +0 -1
- package/esm/operations/address.js +0 -57
- package/esm/operations/address.js.map +0 -1
- package/esm/operations/agreements.d.ts +0 -70
- package/esm/operations/agreements.d.ts.map +0 -1
- package/esm/operations/agreements.js +0 -113
- package/esm/operations/agreements.js.map +0 -1
- package/esm/operations/availableBalances.d.ts +0 -36
- package/esm/operations/availableBalances.d.ts.map +0 -1
- package/esm/operations/availableBalances.js +0 -57
- package/esm/operations/availableBalances.js.map +0 -1
- package/esm/operations/billingAccounts.d.ts +0 -127
- package/esm/operations/billingAccounts.d.ts.map +0 -1
- package/esm/operations/billingAccounts.js +0 -218
- package/esm/operations/billingAccounts.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/billingPermissions.d.ts +0 -169
- package/esm/operations/billingPermissions.d.ts.map +0 -1
- package/esm/operations/billingPermissions.js +0 -251
- package/esm/operations/billingPermissions.js.map +0 -1
- package/esm/operations/billingProfiles.d.ts +0 -94
- package/esm/operations/billingProfiles.d.ts.map +0 -1
- package/esm/operations/billingProfiles.js +0 -176
- package/esm/operations/billingProfiles.js.map +0 -1
- package/esm/operations/billingPropertyOperations.d.ts +0 -46
- package/esm/operations/billingPropertyOperations.d.ts.map +0 -1
- package/esm/operations/billingPropertyOperations.js +0 -91
- package/esm/operations/billingPropertyOperations.js.map +0 -1
- package/esm/operations/billingRoleAssignments.d.ts +0 -292
- package/esm/operations/billingRoleAssignments.d.ts.map +0 -1
- package/esm/operations/billingRoleAssignments.js +0 -387
- package/esm/operations/billingRoleAssignments.js.map +0 -1
- package/esm/operations/billingRoleDefinitions.d.ts +0 -211
- package/esm/operations/billingRoleDefinitions.d.ts.map +0 -1
- package/esm/operations/billingRoleDefinitions.js +0 -291
- package/esm/operations/billingRoleDefinitions.js.map +0 -1
- package/esm/operations/billingSubscriptions.d.ts +0 -267
- package/esm/operations/billingSubscriptions.d.ts.map +0 -1
- package/esm/operations/billingSubscriptions.js +0 -414
- package/esm/operations/billingSubscriptions.js.map +0 -1
- package/esm/operations/customers.d.ts +0 -114
- package/esm/operations/customers.d.ts.map +0 -1
- package/esm/operations/customers.js +0 -172
- package/esm/operations/customers.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.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/instructions.d.ts +0 -105
- package/esm/operations/instructions.d.ts.map +0 -1
- package/esm/operations/instructions.js +0 -153
- package/esm/operations/instructions.js.map +0 -1
- package/esm/operations/invoiceSections.d.ts +0 -102
- package/esm/operations/invoiceSections.d.ts.map +0 -1
- package/esm/operations/invoiceSections.js +0 -182
- package/esm/operations/invoiceSections.js.map +0 -1
- package/esm/operations/invoices.d.ts +0 -291
- package/esm/operations/invoices.d.ts.map +0 -1
- package/esm/operations/invoices.js +0 -539
- 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/esm/operations/policies.d.ts +0 -104
- package/esm/operations/policies.d.ts.map +0 -1
- package/esm/operations/policies.js +0 -162
- package/esm/operations/policies.js.map +0 -1
- package/esm/operations/products.d.ts +0 -279
- package/esm/operations/products.d.ts.map +0 -1
- package/esm/operations/products.js +0 -403
- package/esm/operations/products.js.map +0 -1
- package/esm/operations/transactions.d.ts +0 -54
- package/esm/operations/transactions.d.ts.map +0 -1
- package/esm/operations/transactions.js +0 -83
- package/esm/operations/transactions.js.map +0 -1
- package/src/billingManagementClientContext.ts +0 -66
- package/src/models/addressMappers.ts +0 -15
- package/src/models/agreementsMappers.ts +0 -50
- package/src/models/availableBalancesMappers.ts +0 -49
- package/src/models/billingAccountsMappers.ts +0 -53
- package/src/models/billingPeriodsMappers.ts +0 -50
- package/src/models/billingPermissionsMappers.ts +0 -15
- package/src/models/billingProfilesMappers.ts +0 -51
- package/src/models/billingPropertyOperationsMappers.ts +0 -49
- package/src/models/billingRoleAssignmentsMappers.ts +0 -50
- package/src/models/billingRoleDefinitionsMappers.ts +0 -50
- package/src/models/billingSubscriptionsMappers.ts +0 -54
- package/src/models/customersMappers.ts +0 -50
- package/src/models/enrollmentAccountsMappers.ts +0 -50
- package/src/models/instructionsMappers.ts +0 -50
- package/src/models/invoiceSectionsMappers.ts +0 -51
- package/src/models/invoicesMappers.ts +0 -55
- package/src/models/operationsMappers.ts +0 -16
- package/src/models/policiesMappers.ts +0 -49
- package/src/models/productsMappers.ts +0 -54
- package/src/models/transactionsMappers.ts +0 -50
|
@@ -0,0 +1,817 @@
|
|
|
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
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing Invoices operations. */
|
|
16
|
+
export class InvoicesImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class Invoices class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Lists the invoices for a billing account for a given start date and end date. The operation is
|
|
26
|
+
* supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer
|
|
27
|
+
* Agreement.
|
|
28
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
29
|
+
* @param periodStartDate The start date to fetch the invoices. The date should be specified in
|
|
30
|
+
* MM-DD-YYYY format.
|
|
31
|
+
* @param periodEndDate The end date to fetch the invoices. The date should be specified in MM-DD-YYYY
|
|
32
|
+
* format.
|
|
33
|
+
* @param options The options parameters.
|
|
34
|
+
*/
|
|
35
|
+
listByBillingAccount(billingAccountName, periodStartDate, periodEndDate, options) {
|
|
36
|
+
const iter = this.listByBillingAccountPagingAll(billingAccountName, periodStartDate, periodEndDate, options);
|
|
37
|
+
return {
|
|
38
|
+
next() {
|
|
39
|
+
return iter.next();
|
|
40
|
+
},
|
|
41
|
+
[Symbol.asyncIterator]() {
|
|
42
|
+
return this;
|
|
43
|
+
},
|
|
44
|
+
byPage: () => {
|
|
45
|
+
return this.listByBillingAccountPagingPage(billingAccountName, periodStartDate, periodEndDate, options);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
listByBillingAccountPagingPage(billingAccountName, periodStartDate, periodEndDate, options) {
|
|
50
|
+
return __asyncGenerator(this, arguments, function* listByBillingAccountPagingPage_1() {
|
|
51
|
+
let result = yield __await(this._listByBillingAccount(billingAccountName, periodStartDate, periodEndDate, options));
|
|
52
|
+
yield yield __await(result.value || []);
|
|
53
|
+
let continuationToken = result.nextLink;
|
|
54
|
+
while (continuationToken) {
|
|
55
|
+
result = yield __await(this._listByBillingAccountNext(billingAccountName, periodStartDate, periodEndDate, continuationToken, options));
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
yield yield __await(result.value || []);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
listByBillingAccountPagingAll(billingAccountName, periodStartDate, periodEndDate, options) {
|
|
62
|
+
return __asyncGenerator(this, arguments, function* listByBillingAccountPagingAll_1() {
|
|
63
|
+
var e_1, _a;
|
|
64
|
+
try {
|
|
65
|
+
for (var _b = __asyncValues(this.listByBillingAccountPagingPage(billingAccountName, periodStartDate, periodEndDate, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
66
|
+
const page = _c.value;
|
|
67
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
71
|
+
finally {
|
|
72
|
+
try {
|
|
73
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
74
|
+
}
|
|
75
|
+
finally { if (e_1) throw e_1.error; }
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Lists the invoices for a billing profile for a given start date and end date. The operation is
|
|
81
|
+
* supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer
|
|
82
|
+
* Agreement.
|
|
83
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
84
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
85
|
+
* @param periodStartDate The start date to fetch the invoices. The date should be specified in
|
|
86
|
+
* MM-DD-YYYY format.
|
|
87
|
+
* @param periodEndDate The end date to fetch the invoices. The date should be specified in MM-DD-YYYY
|
|
88
|
+
* format.
|
|
89
|
+
* @param options The options parameters.
|
|
90
|
+
*/
|
|
91
|
+
listByBillingProfile(billingAccountName, billingProfileName, periodStartDate, periodEndDate, options) {
|
|
92
|
+
const iter = this.listByBillingProfilePagingAll(billingAccountName, billingProfileName, periodStartDate, periodEndDate, options);
|
|
93
|
+
return {
|
|
94
|
+
next() {
|
|
95
|
+
return iter.next();
|
|
96
|
+
},
|
|
97
|
+
[Symbol.asyncIterator]() {
|
|
98
|
+
return this;
|
|
99
|
+
},
|
|
100
|
+
byPage: () => {
|
|
101
|
+
return this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, periodStartDate, periodEndDate, options);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
listByBillingProfilePagingPage(billingAccountName, billingProfileName, periodStartDate, periodEndDate, options) {
|
|
106
|
+
return __asyncGenerator(this, arguments, function* listByBillingProfilePagingPage_1() {
|
|
107
|
+
let result = yield __await(this._listByBillingProfile(billingAccountName, billingProfileName, periodStartDate, periodEndDate, options));
|
|
108
|
+
yield yield __await(result.value || []);
|
|
109
|
+
let continuationToken = result.nextLink;
|
|
110
|
+
while (continuationToken) {
|
|
111
|
+
result = yield __await(this._listByBillingProfileNext(billingAccountName, billingProfileName, periodStartDate, periodEndDate, continuationToken, options));
|
|
112
|
+
continuationToken = result.nextLink;
|
|
113
|
+
yield yield __await(result.value || []);
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
listByBillingProfilePagingAll(billingAccountName, billingProfileName, periodStartDate, periodEndDate, options) {
|
|
118
|
+
return __asyncGenerator(this, arguments, function* listByBillingProfilePagingAll_1() {
|
|
119
|
+
var e_2, _a;
|
|
120
|
+
try {
|
|
121
|
+
for (var _b = __asyncValues(this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, periodStartDate, periodEndDate, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
122
|
+
const page = _c.value;
|
|
123
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
127
|
+
finally {
|
|
128
|
+
try {
|
|
129
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
130
|
+
}
|
|
131
|
+
finally { if (e_2) throw e_2.error; }
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Lists the invoices for a subscription.
|
|
137
|
+
* @param periodStartDate Invoice period start date.
|
|
138
|
+
* @param periodEndDate Invoice period end date.
|
|
139
|
+
* @param options The options parameters.
|
|
140
|
+
*/
|
|
141
|
+
listByBillingSubscription(periodStartDate, periodEndDate, options) {
|
|
142
|
+
const iter = this.listByBillingSubscriptionPagingAll(periodStartDate, periodEndDate, options);
|
|
143
|
+
return {
|
|
144
|
+
next() {
|
|
145
|
+
return iter.next();
|
|
146
|
+
},
|
|
147
|
+
[Symbol.asyncIterator]() {
|
|
148
|
+
return this;
|
|
149
|
+
},
|
|
150
|
+
byPage: () => {
|
|
151
|
+
return this.listByBillingSubscriptionPagingPage(periodStartDate, periodEndDate, options);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
}
|
|
155
|
+
listByBillingSubscriptionPagingPage(periodStartDate, periodEndDate, options) {
|
|
156
|
+
return __asyncGenerator(this, arguments, function* listByBillingSubscriptionPagingPage_1() {
|
|
157
|
+
let result = yield __await(this._listByBillingSubscription(periodStartDate, periodEndDate, options));
|
|
158
|
+
yield yield __await(result.value || []);
|
|
159
|
+
let continuationToken = result.nextLink;
|
|
160
|
+
while (continuationToken) {
|
|
161
|
+
result = yield __await(this._listByBillingSubscriptionNext(periodStartDate, periodEndDate, continuationToken, options));
|
|
162
|
+
continuationToken = result.nextLink;
|
|
163
|
+
yield yield __await(result.value || []);
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
listByBillingSubscriptionPagingAll(periodStartDate, periodEndDate, options) {
|
|
168
|
+
return __asyncGenerator(this, arguments, function* listByBillingSubscriptionPagingAll_1() {
|
|
169
|
+
var e_3, _a;
|
|
170
|
+
try {
|
|
171
|
+
for (var _b = __asyncValues(this.listByBillingSubscriptionPagingPage(periodStartDate, periodEndDate, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
172
|
+
const page = _c.value;
|
|
173
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
177
|
+
finally {
|
|
178
|
+
try {
|
|
179
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
180
|
+
}
|
|
181
|
+
finally { if (e_3) throw e_3.error; }
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Lists the invoices for a billing account for a given start date and end date. The operation is
|
|
187
|
+
* supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer
|
|
188
|
+
* Agreement.
|
|
189
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
190
|
+
* @param periodStartDate The start date to fetch the invoices. The date should be specified in
|
|
191
|
+
* MM-DD-YYYY format.
|
|
192
|
+
* @param periodEndDate The end date to fetch the invoices. The date should be specified in MM-DD-YYYY
|
|
193
|
+
* format.
|
|
194
|
+
* @param options The options parameters.
|
|
195
|
+
*/
|
|
196
|
+
_listByBillingAccount(billingAccountName, periodStartDate, periodEndDate, options) {
|
|
197
|
+
return this.client.sendOperationRequest({ billingAccountName, periodStartDate, periodEndDate, options }, listByBillingAccountOperationSpec);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Lists the invoices for a billing profile for a given start date and end date. The operation is
|
|
201
|
+
* supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer
|
|
202
|
+
* Agreement.
|
|
203
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
204
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
205
|
+
* @param periodStartDate The start date to fetch the invoices. The date should be specified in
|
|
206
|
+
* MM-DD-YYYY format.
|
|
207
|
+
* @param periodEndDate The end date to fetch the invoices. The date should be specified in MM-DD-YYYY
|
|
208
|
+
* format.
|
|
209
|
+
* @param options The options parameters.
|
|
210
|
+
*/
|
|
211
|
+
_listByBillingProfile(billingAccountName, billingProfileName, periodStartDate, periodEndDate, options) {
|
|
212
|
+
return this.client.sendOperationRequest({
|
|
213
|
+
billingAccountName,
|
|
214
|
+
billingProfileName,
|
|
215
|
+
periodStartDate,
|
|
216
|
+
periodEndDate,
|
|
217
|
+
options
|
|
218
|
+
}, listByBillingProfileOperationSpec);
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Gets an invoice by billing account name and ID. The operation is supported for billing accounts with
|
|
222
|
+
* agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
|
|
223
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
224
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
225
|
+
* @param options The options parameters.
|
|
226
|
+
*/
|
|
227
|
+
get(billingAccountName, invoiceName, options) {
|
|
228
|
+
return this.client.sendOperationRequest({ billingAccountName, invoiceName, options }, getOperationSpec);
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Gets an invoice by ID. The operation is supported for billing accounts with agreement type Microsoft
|
|
232
|
+
* Partner Agreement or Microsoft Customer Agreement.
|
|
233
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
234
|
+
* @param options The options parameters.
|
|
235
|
+
*/
|
|
236
|
+
getById(invoiceName, options) {
|
|
237
|
+
return this.client.sendOperationRequest({ invoiceName, options }, getByIdOperationSpec);
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Gets a URL to download an invoice. The operation is supported for billing accounts with agreement
|
|
241
|
+
* type Microsoft Partner Agreement or Microsoft Customer Agreement.
|
|
242
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
243
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
244
|
+
* @param downloadToken Download token with document source and document ID.
|
|
245
|
+
* @param options The options parameters.
|
|
246
|
+
*/
|
|
247
|
+
beginDownloadInvoice(billingAccountName, invoiceName, downloadToken, options) {
|
|
248
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
249
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
250
|
+
return this.client.sendOperationRequest(args, spec);
|
|
251
|
+
});
|
|
252
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
253
|
+
var _a;
|
|
254
|
+
let currentRawResponse = undefined;
|
|
255
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
256
|
+
const callback = (rawResponse, flatResponse) => {
|
|
257
|
+
currentRawResponse = rawResponse;
|
|
258
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
259
|
+
};
|
|
260
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
261
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
262
|
+
return {
|
|
263
|
+
flatResponse,
|
|
264
|
+
rawResponse: {
|
|
265
|
+
statusCode: currentRawResponse.status,
|
|
266
|
+
body: currentRawResponse.parsedBody,
|
|
267
|
+
headers: currentRawResponse.headers.toJSON()
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
});
|
|
271
|
+
const lro = new LroImpl(sendOperation, { billingAccountName, invoiceName, downloadToken, options }, downloadInvoiceOperationSpec);
|
|
272
|
+
return new LroEngine(lro, {
|
|
273
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
274
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
275
|
+
lroResourceLocationConfig: "location"
|
|
276
|
+
});
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Gets a URL to download an invoice. The operation is supported for billing accounts with agreement
|
|
281
|
+
* type Microsoft Partner Agreement or Microsoft Customer Agreement.
|
|
282
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
283
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
284
|
+
* @param downloadToken Download token with document source and document ID.
|
|
285
|
+
* @param options The options parameters.
|
|
286
|
+
*/
|
|
287
|
+
beginDownloadInvoiceAndWait(billingAccountName, invoiceName, downloadToken, options) {
|
|
288
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
289
|
+
const poller = yield this.beginDownloadInvoice(billingAccountName, invoiceName, downloadToken, options);
|
|
290
|
+
return poller.pollUntilDone();
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip
|
|
295
|
+
* file. The operation is supported for billing accounts with agreement type Microsoft Partner
|
|
296
|
+
* Agreement or Microsoft Customer Agreement.
|
|
297
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
298
|
+
* @param downloadUrls An array of download urls for individual documents
|
|
299
|
+
* @param options The options parameters.
|
|
300
|
+
*/
|
|
301
|
+
beginDownloadMultipleBillingProfileInvoices(billingAccountName, downloadUrls, options) {
|
|
302
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
303
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
304
|
+
return this.client.sendOperationRequest(args, spec);
|
|
305
|
+
});
|
|
306
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
307
|
+
var _a;
|
|
308
|
+
let currentRawResponse = undefined;
|
|
309
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
310
|
+
const callback = (rawResponse, flatResponse) => {
|
|
311
|
+
currentRawResponse = rawResponse;
|
|
312
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
313
|
+
};
|
|
314
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
315
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
316
|
+
return {
|
|
317
|
+
flatResponse,
|
|
318
|
+
rawResponse: {
|
|
319
|
+
statusCode: currentRawResponse.status,
|
|
320
|
+
body: currentRawResponse.parsedBody,
|
|
321
|
+
headers: currentRawResponse.headers.toJSON()
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
});
|
|
325
|
+
const lro = new LroImpl(sendOperation, { billingAccountName, downloadUrls, options }, downloadMultipleBillingProfileInvoicesOperationSpec);
|
|
326
|
+
return new LroEngine(lro, {
|
|
327
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
328
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
329
|
+
lroResourceLocationConfig: "location"
|
|
330
|
+
});
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip
|
|
335
|
+
* file. The operation is supported for billing accounts with agreement type Microsoft Partner
|
|
336
|
+
* Agreement or Microsoft Customer Agreement.
|
|
337
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
338
|
+
* @param downloadUrls An array of download urls for individual documents
|
|
339
|
+
* @param options The options parameters.
|
|
340
|
+
*/
|
|
341
|
+
beginDownloadMultipleBillingProfileInvoicesAndWait(billingAccountName, downloadUrls, options) {
|
|
342
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
343
|
+
const poller = yield this.beginDownloadMultipleBillingProfileInvoices(billingAccountName, downloadUrls, options);
|
|
344
|
+
return poller.pollUntilDone();
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Lists the invoices for a subscription.
|
|
349
|
+
* @param periodStartDate Invoice period start date.
|
|
350
|
+
* @param periodEndDate Invoice period end date.
|
|
351
|
+
* @param options The options parameters.
|
|
352
|
+
*/
|
|
353
|
+
_listByBillingSubscription(periodStartDate, periodEndDate, options) {
|
|
354
|
+
return this.client.sendOperationRequest({ periodStartDate, periodEndDate, options }, listByBillingSubscriptionOperationSpec);
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Gets an invoice by subscription ID and invoice ID.
|
|
358
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
359
|
+
* @param options The options parameters.
|
|
360
|
+
*/
|
|
361
|
+
getBySubscriptionAndInvoiceId(invoiceName, options) {
|
|
362
|
+
return this.client.sendOperationRequest({ invoiceName, options }, getBySubscriptionAndInvoiceIdOperationSpec);
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Gets a URL to download an invoice.
|
|
366
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
367
|
+
* @param downloadToken Download token with document source and document ID.
|
|
368
|
+
* @param options The options parameters.
|
|
369
|
+
*/
|
|
370
|
+
beginDownloadBillingSubscriptionInvoice(invoiceName, downloadToken, options) {
|
|
371
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
372
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
373
|
+
return this.client.sendOperationRequest(args, spec);
|
|
374
|
+
});
|
|
375
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
376
|
+
var _a;
|
|
377
|
+
let currentRawResponse = undefined;
|
|
378
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
379
|
+
const callback = (rawResponse, flatResponse) => {
|
|
380
|
+
currentRawResponse = rawResponse;
|
|
381
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
382
|
+
};
|
|
383
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
384
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
385
|
+
return {
|
|
386
|
+
flatResponse,
|
|
387
|
+
rawResponse: {
|
|
388
|
+
statusCode: currentRawResponse.status,
|
|
389
|
+
body: currentRawResponse.parsedBody,
|
|
390
|
+
headers: currentRawResponse.headers.toJSON()
|
|
391
|
+
}
|
|
392
|
+
};
|
|
393
|
+
});
|
|
394
|
+
const lro = new LroImpl(sendOperation, { invoiceName, downloadToken, options }, downloadBillingSubscriptionInvoiceOperationSpec);
|
|
395
|
+
return new LroEngine(lro, {
|
|
396
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
397
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
398
|
+
lroResourceLocationConfig: "location"
|
|
399
|
+
});
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* Gets a URL to download an invoice.
|
|
404
|
+
* @param invoiceName The ID that uniquely identifies an invoice.
|
|
405
|
+
* @param downloadToken Download token with document source and document ID.
|
|
406
|
+
* @param options The options parameters.
|
|
407
|
+
*/
|
|
408
|
+
beginDownloadBillingSubscriptionInvoiceAndWait(invoiceName, downloadToken, options) {
|
|
409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
410
|
+
const poller = yield this.beginDownloadBillingSubscriptionInvoice(invoiceName, downloadToken, options);
|
|
411
|
+
return poller.pollUntilDone();
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip
|
|
416
|
+
* file.
|
|
417
|
+
* @param downloadUrls An array of download urls for individual documents
|
|
418
|
+
* @param options The options parameters.
|
|
419
|
+
*/
|
|
420
|
+
beginDownloadMultipleBillingSubscriptionInvoices(downloadUrls, options) {
|
|
421
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
422
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
423
|
+
return this.client.sendOperationRequest(args, spec);
|
|
424
|
+
});
|
|
425
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
426
|
+
var _a;
|
|
427
|
+
let currentRawResponse = undefined;
|
|
428
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
429
|
+
const callback = (rawResponse, flatResponse) => {
|
|
430
|
+
currentRawResponse = rawResponse;
|
|
431
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
432
|
+
};
|
|
433
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
434
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
435
|
+
return {
|
|
436
|
+
flatResponse,
|
|
437
|
+
rawResponse: {
|
|
438
|
+
statusCode: currentRawResponse.status,
|
|
439
|
+
body: currentRawResponse.parsedBody,
|
|
440
|
+
headers: currentRawResponse.headers.toJSON()
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
});
|
|
444
|
+
const lro = new LroImpl(sendOperation, { downloadUrls, options }, downloadMultipleBillingSubscriptionInvoicesOperationSpec);
|
|
445
|
+
return new LroEngine(lro, {
|
|
446
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
447
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
448
|
+
lroResourceLocationConfig: "location"
|
|
449
|
+
});
|
|
450
|
+
});
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip
|
|
454
|
+
* file.
|
|
455
|
+
* @param downloadUrls An array of download urls for individual documents
|
|
456
|
+
* @param options The options parameters.
|
|
457
|
+
*/
|
|
458
|
+
beginDownloadMultipleBillingSubscriptionInvoicesAndWait(downloadUrls, options) {
|
|
459
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
460
|
+
const poller = yield this.beginDownloadMultipleBillingSubscriptionInvoices(downloadUrls, options);
|
|
461
|
+
return poller.pollUntilDone();
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* ListByBillingAccountNext
|
|
466
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
467
|
+
* @param periodStartDate The start date to fetch the invoices. The date should be specified in
|
|
468
|
+
* MM-DD-YYYY format.
|
|
469
|
+
* @param periodEndDate The end date to fetch the invoices. The date should be specified in MM-DD-YYYY
|
|
470
|
+
* format.
|
|
471
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBillingAccount method.
|
|
472
|
+
* @param options The options parameters.
|
|
473
|
+
*/
|
|
474
|
+
_listByBillingAccountNext(billingAccountName, periodStartDate, periodEndDate, nextLink, options) {
|
|
475
|
+
return this.client.sendOperationRequest({ billingAccountName, periodStartDate, periodEndDate, nextLink, options }, listByBillingAccountNextOperationSpec);
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* ListByBillingProfileNext
|
|
479
|
+
* @param billingAccountName The ID that uniquely identifies a billing account.
|
|
480
|
+
* @param billingProfileName The ID that uniquely identifies a billing profile.
|
|
481
|
+
* @param periodStartDate The start date to fetch the invoices. The date should be specified in
|
|
482
|
+
* MM-DD-YYYY format.
|
|
483
|
+
* @param periodEndDate The end date to fetch the invoices. The date should be specified in MM-DD-YYYY
|
|
484
|
+
* format.
|
|
485
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBillingProfile method.
|
|
486
|
+
* @param options The options parameters.
|
|
487
|
+
*/
|
|
488
|
+
_listByBillingProfileNext(billingAccountName, billingProfileName, periodStartDate, periodEndDate, nextLink, options) {
|
|
489
|
+
return this.client.sendOperationRequest({
|
|
490
|
+
billingAccountName,
|
|
491
|
+
billingProfileName,
|
|
492
|
+
periodStartDate,
|
|
493
|
+
periodEndDate,
|
|
494
|
+
nextLink,
|
|
495
|
+
options
|
|
496
|
+
}, listByBillingProfileNextOperationSpec);
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* ListByBillingSubscriptionNext
|
|
500
|
+
* @param periodStartDate Invoice period start date.
|
|
501
|
+
* @param periodEndDate Invoice period end date.
|
|
502
|
+
* @param nextLink The nextLink from the previous successful call to the ListByBillingSubscription
|
|
503
|
+
* method.
|
|
504
|
+
* @param options The options parameters.
|
|
505
|
+
*/
|
|
506
|
+
_listByBillingSubscriptionNext(periodStartDate, periodEndDate, nextLink, options) {
|
|
507
|
+
return this.client.sendOperationRequest({ periodStartDate, periodEndDate, nextLink, options }, listByBillingSubscriptionNextOperationSpec);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
// Operation Specifications
|
|
511
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
512
|
+
const listByBillingAccountOperationSpec = {
|
|
513
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices",
|
|
514
|
+
httpMethod: "GET",
|
|
515
|
+
responses: {
|
|
516
|
+
200: {
|
|
517
|
+
bodyMapper: Mappers.InvoiceListResult
|
|
518
|
+
},
|
|
519
|
+
default: {
|
|
520
|
+
bodyMapper: Mappers.ErrorResponse
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
queryParameters: [
|
|
524
|
+
Parameters.apiVersion,
|
|
525
|
+
Parameters.periodStartDate,
|
|
526
|
+
Parameters.periodEndDate
|
|
527
|
+
],
|
|
528
|
+
urlParameters: [Parameters.$host, Parameters.billingAccountName],
|
|
529
|
+
headerParameters: [Parameters.accept],
|
|
530
|
+
serializer
|
|
531
|
+
};
|
|
532
|
+
const listByBillingProfileOperationSpec = {
|
|
533
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices",
|
|
534
|
+
httpMethod: "GET",
|
|
535
|
+
responses: {
|
|
536
|
+
200: {
|
|
537
|
+
bodyMapper: Mappers.InvoiceListResult
|
|
538
|
+
},
|
|
539
|
+
default: {
|
|
540
|
+
bodyMapper: Mappers.ErrorResponse
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
queryParameters: [
|
|
544
|
+
Parameters.apiVersion,
|
|
545
|
+
Parameters.periodStartDate,
|
|
546
|
+
Parameters.periodEndDate
|
|
547
|
+
],
|
|
548
|
+
urlParameters: [
|
|
549
|
+
Parameters.$host,
|
|
550
|
+
Parameters.billingAccountName,
|
|
551
|
+
Parameters.billingProfileName
|
|
552
|
+
],
|
|
553
|
+
headerParameters: [Parameters.accept],
|
|
554
|
+
serializer
|
|
555
|
+
};
|
|
556
|
+
const getOperationSpec = {
|
|
557
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}",
|
|
558
|
+
httpMethod: "GET",
|
|
559
|
+
responses: {
|
|
560
|
+
200: {
|
|
561
|
+
bodyMapper: Mappers.Invoice
|
|
562
|
+
},
|
|
563
|
+
default: {
|
|
564
|
+
bodyMapper: Mappers.ErrorResponse
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
queryParameters: [Parameters.apiVersion],
|
|
568
|
+
urlParameters: [
|
|
569
|
+
Parameters.$host,
|
|
570
|
+
Parameters.billingAccountName,
|
|
571
|
+
Parameters.invoiceName
|
|
572
|
+
],
|
|
573
|
+
headerParameters: [Parameters.accept],
|
|
574
|
+
serializer
|
|
575
|
+
};
|
|
576
|
+
const getByIdOperationSpec = {
|
|
577
|
+
path: "/providers/Microsoft.Billing/billingAccounts/default/invoices/{invoiceName}",
|
|
578
|
+
httpMethod: "GET",
|
|
579
|
+
responses: {
|
|
580
|
+
200: {
|
|
581
|
+
bodyMapper: Mappers.Invoice
|
|
582
|
+
},
|
|
583
|
+
default: {
|
|
584
|
+
bodyMapper: Mappers.ErrorResponse
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
queryParameters: [Parameters.apiVersion],
|
|
588
|
+
urlParameters: [Parameters.$host, Parameters.invoiceName],
|
|
589
|
+
headerParameters: [Parameters.accept],
|
|
590
|
+
serializer
|
|
591
|
+
};
|
|
592
|
+
const downloadInvoiceOperationSpec = {
|
|
593
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/download",
|
|
594
|
+
httpMethod: "POST",
|
|
595
|
+
responses: {
|
|
596
|
+
200: {
|
|
597
|
+
bodyMapper: Mappers.DownloadUrl
|
|
598
|
+
},
|
|
599
|
+
201: {
|
|
600
|
+
bodyMapper: Mappers.DownloadUrl
|
|
601
|
+
},
|
|
602
|
+
202: {
|
|
603
|
+
bodyMapper: Mappers.DownloadUrl
|
|
604
|
+
},
|
|
605
|
+
204: {
|
|
606
|
+
bodyMapper: Mappers.DownloadUrl
|
|
607
|
+
},
|
|
608
|
+
default: {
|
|
609
|
+
bodyMapper: Mappers.ErrorResponse
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
queryParameters: [Parameters.apiVersion, Parameters.downloadToken],
|
|
613
|
+
urlParameters: [
|
|
614
|
+
Parameters.$host,
|
|
615
|
+
Parameters.billingAccountName,
|
|
616
|
+
Parameters.invoiceName
|
|
617
|
+
],
|
|
618
|
+
headerParameters: [Parameters.accept],
|
|
619
|
+
serializer
|
|
620
|
+
};
|
|
621
|
+
const downloadMultipleBillingProfileInvoicesOperationSpec = {
|
|
622
|
+
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/downloadDocuments",
|
|
623
|
+
httpMethod: "POST",
|
|
624
|
+
responses: {
|
|
625
|
+
200: {
|
|
626
|
+
bodyMapper: Mappers.DownloadUrl
|
|
627
|
+
},
|
|
628
|
+
201: {
|
|
629
|
+
bodyMapper: Mappers.DownloadUrl
|
|
630
|
+
},
|
|
631
|
+
202: {
|
|
632
|
+
bodyMapper: Mappers.DownloadUrl
|
|
633
|
+
},
|
|
634
|
+
204: {
|
|
635
|
+
bodyMapper: Mappers.DownloadUrl
|
|
636
|
+
},
|
|
637
|
+
default: {
|
|
638
|
+
bodyMapper: Mappers.ErrorResponse
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
requestBody: Parameters.downloadUrls,
|
|
642
|
+
queryParameters: [Parameters.apiVersion],
|
|
643
|
+
urlParameters: [Parameters.$host, Parameters.billingAccountName],
|
|
644
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
645
|
+
mediaType: "json",
|
|
646
|
+
serializer
|
|
647
|
+
};
|
|
648
|
+
const listByBillingSubscriptionOperationSpec = {
|
|
649
|
+
path: "/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices",
|
|
650
|
+
httpMethod: "GET",
|
|
651
|
+
responses: {
|
|
652
|
+
200: {
|
|
653
|
+
bodyMapper: Mappers.InvoiceListResult
|
|
654
|
+
},
|
|
655
|
+
default: {
|
|
656
|
+
bodyMapper: Mappers.ErrorResponse
|
|
657
|
+
}
|
|
658
|
+
},
|
|
659
|
+
queryParameters: [
|
|
660
|
+
Parameters.apiVersion,
|
|
661
|
+
Parameters.periodStartDate,
|
|
662
|
+
Parameters.periodEndDate
|
|
663
|
+
],
|
|
664
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
665
|
+
headerParameters: [Parameters.accept],
|
|
666
|
+
serializer
|
|
667
|
+
};
|
|
668
|
+
const getBySubscriptionAndInvoiceIdOperationSpec = {
|
|
669
|
+
path: "/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices/{invoiceName}",
|
|
670
|
+
httpMethod: "GET",
|
|
671
|
+
responses: {
|
|
672
|
+
200: {
|
|
673
|
+
bodyMapper: Mappers.Invoice
|
|
674
|
+
},
|
|
675
|
+
default: {
|
|
676
|
+
bodyMapper: Mappers.ErrorResponse
|
|
677
|
+
}
|
|
678
|
+
},
|
|
679
|
+
queryParameters: [Parameters.apiVersion],
|
|
680
|
+
urlParameters: [
|
|
681
|
+
Parameters.$host,
|
|
682
|
+
Parameters.subscriptionId,
|
|
683
|
+
Parameters.invoiceName
|
|
684
|
+
],
|
|
685
|
+
headerParameters: [Parameters.accept],
|
|
686
|
+
serializer
|
|
687
|
+
};
|
|
688
|
+
const downloadBillingSubscriptionInvoiceOperationSpec = {
|
|
689
|
+
path: "/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices/{invoiceName}/download",
|
|
690
|
+
httpMethod: "POST",
|
|
691
|
+
responses: {
|
|
692
|
+
200: {
|
|
693
|
+
bodyMapper: Mappers.DownloadUrl
|
|
694
|
+
},
|
|
695
|
+
201: {
|
|
696
|
+
bodyMapper: Mappers.DownloadUrl
|
|
697
|
+
},
|
|
698
|
+
202: {
|
|
699
|
+
bodyMapper: Mappers.DownloadUrl
|
|
700
|
+
},
|
|
701
|
+
204: {
|
|
702
|
+
bodyMapper: Mappers.DownloadUrl
|
|
703
|
+
},
|
|
704
|
+
default: {
|
|
705
|
+
bodyMapper: Mappers.ErrorResponse
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
queryParameters: [Parameters.apiVersion, Parameters.downloadToken],
|
|
709
|
+
urlParameters: [
|
|
710
|
+
Parameters.$host,
|
|
711
|
+
Parameters.subscriptionId,
|
|
712
|
+
Parameters.invoiceName
|
|
713
|
+
],
|
|
714
|
+
headerParameters: [Parameters.accept],
|
|
715
|
+
serializer
|
|
716
|
+
};
|
|
717
|
+
const downloadMultipleBillingSubscriptionInvoicesOperationSpec = {
|
|
718
|
+
path: "/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/downloadDocuments",
|
|
719
|
+
httpMethod: "POST",
|
|
720
|
+
responses: {
|
|
721
|
+
200: {
|
|
722
|
+
bodyMapper: Mappers.DownloadUrl
|
|
723
|
+
},
|
|
724
|
+
201: {
|
|
725
|
+
bodyMapper: Mappers.DownloadUrl
|
|
726
|
+
},
|
|
727
|
+
202: {
|
|
728
|
+
bodyMapper: Mappers.DownloadUrl
|
|
729
|
+
},
|
|
730
|
+
204: {
|
|
731
|
+
bodyMapper: Mappers.DownloadUrl
|
|
732
|
+
},
|
|
733
|
+
default: {
|
|
734
|
+
bodyMapper: Mappers.ErrorResponse
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
requestBody: Parameters.downloadUrls,
|
|
738
|
+
queryParameters: [Parameters.apiVersion],
|
|
739
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
740
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
741
|
+
mediaType: "json",
|
|
742
|
+
serializer
|
|
743
|
+
};
|
|
744
|
+
const listByBillingAccountNextOperationSpec = {
|
|
745
|
+
path: "{nextLink}",
|
|
746
|
+
httpMethod: "GET",
|
|
747
|
+
responses: {
|
|
748
|
+
200: {
|
|
749
|
+
bodyMapper: Mappers.InvoiceListResult
|
|
750
|
+
},
|
|
751
|
+
default: {
|
|
752
|
+
bodyMapper: Mappers.ErrorResponse
|
|
753
|
+
}
|
|
754
|
+
},
|
|
755
|
+
queryParameters: [
|
|
756
|
+
Parameters.apiVersion,
|
|
757
|
+
Parameters.periodStartDate,
|
|
758
|
+
Parameters.periodEndDate
|
|
759
|
+
],
|
|
760
|
+
urlParameters: [
|
|
761
|
+
Parameters.$host,
|
|
762
|
+
Parameters.billingAccountName,
|
|
763
|
+
Parameters.nextLink
|
|
764
|
+
],
|
|
765
|
+
headerParameters: [Parameters.accept],
|
|
766
|
+
serializer
|
|
767
|
+
};
|
|
768
|
+
const listByBillingProfileNextOperationSpec = {
|
|
769
|
+
path: "{nextLink}",
|
|
770
|
+
httpMethod: "GET",
|
|
771
|
+
responses: {
|
|
772
|
+
200: {
|
|
773
|
+
bodyMapper: Mappers.InvoiceListResult
|
|
774
|
+
},
|
|
775
|
+
default: {
|
|
776
|
+
bodyMapper: Mappers.ErrorResponse
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
queryParameters: [
|
|
780
|
+
Parameters.apiVersion,
|
|
781
|
+
Parameters.periodStartDate,
|
|
782
|
+
Parameters.periodEndDate
|
|
783
|
+
],
|
|
784
|
+
urlParameters: [
|
|
785
|
+
Parameters.$host,
|
|
786
|
+
Parameters.billingAccountName,
|
|
787
|
+
Parameters.nextLink,
|
|
788
|
+
Parameters.billingProfileName
|
|
789
|
+
],
|
|
790
|
+
headerParameters: [Parameters.accept],
|
|
791
|
+
serializer
|
|
792
|
+
};
|
|
793
|
+
const listByBillingSubscriptionNextOperationSpec = {
|
|
794
|
+
path: "{nextLink}",
|
|
795
|
+
httpMethod: "GET",
|
|
796
|
+
responses: {
|
|
797
|
+
200: {
|
|
798
|
+
bodyMapper: Mappers.InvoiceListResult
|
|
799
|
+
},
|
|
800
|
+
default: {
|
|
801
|
+
bodyMapper: Mappers.ErrorResponse
|
|
802
|
+
}
|
|
803
|
+
},
|
|
804
|
+
queryParameters: [
|
|
805
|
+
Parameters.apiVersion,
|
|
806
|
+
Parameters.periodStartDate,
|
|
807
|
+
Parameters.periodEndDate
|
|
808
|
+
],
|
|
809
|
+
urlParameters: [
|
|
810
|
+
Parameters.$host,
|
|
811
|
+
Parameters.nextLink,
|
|
812
|
+
Parameters.subscriptionId
|
|
813
|
+
],
|
|
814
|
+
headerParameters: [Parameters.accept],
|
|
815
|
+
serializer
|
|
816
|
+
};
|
|
817
|
+
//# sourceMappingURL=invoices.js.map
|