@azure/arm-billing 5.0.1-alpha.20250618.1 → 5.0.1-alpha.20250718.2

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.
Files changed (275) hide show
  1. package/dist/browser/billingManagementClient.js +43 -5
  2. package/dist/browser/billingManagementClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +868 -393
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/address.js +1 -0
  8. package/dist/browser/operations/address.js.map +1 -1
  9. package/dist/browser/operations/agreements.js +23 -40
  10. package/dist/browser/operations/agreements.js.map +1 -1
  11. package/dist/browser/operations/associatedTenants.js +45 -52
  12. package/dist/browser/operations/associatedTenants.js.map +1 -1
  13. package/dist/browser/operations/availableBalances.js +1 -0
  14. package/dist/browser/operations/availableBalances.js.map +1 -1
  15. package/dist/browser/operations/billingAccounts.js +79 -98
  16. package/dist/browser/operations/billingAccounts.js.map +1 -1
  17. package/dist/browser/operations/billingPermissions.js +162 -281
  18. package/dist/browser/operations/billingPermissions.js.map +1 -1
  19. package/dist/browser/operations/billingProfiles.js +45 -52
  20. package/dist/browser/operations/billingProfiles.js.map +1 -1
  21. package/dist/browser/operations/billingPropertyOperations.js +1 -0
  22. package/dist/browser/operations/billingPropertyOperations.js.map +1 -1
  23. package/dist/browser/operations/billingRequests.js +122 -202
  24. package/dist/browser/operations/billingRequests.js.map +1 -1
  25. package/dist/browser/operations/billingRoleAssignments.js +260 -307
  26. package/dist/browser/operations/billingRoleAssignments.js.map +1 -1
  27. package/dist/browser/operations/billingRoleDefinitionOperations.js +139 -241
  28. package/dist/browser/operations/billingRoleDefinitionOperations.js.map +1 -1
  29. package/dist/browser/operations/billingSubscriptions.js +199 -271
  30. package/dist/browser/operations/billingSubscriptions.js.map +1 -1
  31. package/dist/browser/operations/billingSubscriptionsAliases.js +34 -46
  32. package/dist/browser/operations/billingSubscriptionsAliases.js.map +1 -1
  33. package/dist/browser/operations/customers.js +45 -79
  34. package/dist/browser/operations/customers.js.map +1 -1
  35. package/dist/browser/operations/departments.js +23 -40
  36. package/dist/browser/operations/departments.js.map +1 -1
  37. package/dist/browser/operations/enrollmentAccounts.js +45 -79
  38. package/dist/browser/operations/enrollmentAccounts.js.map +1 -1
  39. package/dist/browser/operations/invoiceSections.js +45 -52
  40. package/dist/browser/operations/invoiceSections.js.map +1 -1
  41. package/dist/browser/operations/invoices.js +133 -154
  42. package/dist/browser/operations/invoices.js.map +1 -1
  43. package/dist/browser/operations/operations.js +23 -40
  44. package/dist/browser/operations/operations.js.map +1 -1
  45. package/dist/browser/operations/partnerTransfers.js +23 -40
  46. package/dist/browser/operations/partnerTransfers.js.map +1 -1
  47. package/dist/browser/operations/paymentMethods.js +67 -118
  48. package/dist/browser/operations/paymentMethods.js.map +1 -1
  49. package/dist/browser/operations/policies.js +45 -24
  50. package/dist/browser/operations/policies.js.map +1 -1
  51. package/dist/browser/operations/products.js +100 -163
  52. package/dist/browser/operations/products.js.map +1 -1
  53. package/dist/browser/operations/recipientTransfers.js +23 -40
  54. package/dist/browser/operations/recipientTransfers.js.map +1 -1
  55. package/dist/browser/operations/reservationOrders.js +23 -40
  56. package/dist/browser/operations/reservationOrders.js.map +1 -1
  57. package/dist/browser/operations/reservations.js +78 -124
  58. package/dist/browser/operations/reservations.js.map +1 -1
  59. package/dist/browser/operations/savingsPlanOrders.js +23 -40
  60. package/dist/browser/operations/savingsPlanOrders.js.map +1 -1
  61. package/dist/browser/operations/savingsPlans.js +56 -85
  62. package/dist/browser/operations/savingsPlans.js.map +1 -1
  63. package/dist/browser/operations/transactions.js +100 -163
  64. package/dist/browser/operations/transactions.js.map +1 -1
  65. package/dist/browser/operations/transfers.js +23 -40
  66. package/dist/browser/operations/transfers.js.map +1 -1
  67. package/dist/browser/pagingHelper.js +2 -4
  68. package/dist/browser/pagingHelper.js.map +1 -1
  69. package/dist/commonjs/billingManagementClient.js +43 -5
  70. package/dist/commonjs/billingManagementClient.js.map +1 -1
  71. package/dist/commonjs/lroImpl.js +7 -3
  72. package/dist/commonjs/lroImpl.js.map +1 -1
  73. package/dist/commonjs/models/mappers.js +868 -393
  74. package/dist/commonjs/models/mappers.js.map +1 -1
  75. package/dist/commonjs/operations/address.js +1 -0
  76. package/dist/commonjs/operations/address.js.map +1 -1
  77. package/dist/commonjs/operations/agreements.js +23 -39
  78. package/dist/commonjs/operations/agreements.js.map +1 -1
  79. package/dist/commonjs/operations/associatedTenants.js +45 -51
  80. package/dist/commonjs/operations/associatedTenants.js.map +1 -1
  81. package/dist/commonjs/operations/availableBalances.js +1 -0
  82. package/dist/commonjs/operations/availableBalances.js.map +1 -1
  83. package/dist/commonjs/operations/billingAccounts.js +79 -97
  84. package/dist/commonjs/operations/billingAccounts.js.map +1 -1
  85. package/dist/commonjs/operations/billingPermissions.js +155 -273
  86. package/dist/commonjs/operations/billingPermissions.js.map +1 -1
  87. package/dist/commonjs/operations/billingProfiles.js +45 -51
  88. package/dist/commonjs/operations/billingProfiles.js.map +1 -1
  89. package/dist/commonjs/operations/billingPropertyOperations.js +1 -0
  90. package/dist/commonjs/operations/billingPropertyOperations.js.map +1 -1
  91. package/dist/commonjs/operations/billingRequests.js +122 -201
  92. package/dist/commonjs/operations/billingRequests.js.map +1 -1
  93. package/dist/commonjs/operations/billingRoleAssignments.js +260 -306
  94. package/dist/commonjs/operations/billingRoleAssignments.js.map +1 -1
  95. package/dist/commonjs/operations/billingRoleDefinitionOperations.js +139 -240
  96. package/dist/commonjs/operations/billingRoleDefinitionOperations.js.map +1 -1
  97. package/dist/commonjs/operations/billingSubscriptions.js +199 -270
  98. package/dist/commonjs/operations/billingSubscriptions.js.map +1 -1
  99. package/dist/commonjs/operations/billingSubscriptionsAliases.js +34 -45
  100. package/dist/commonjs/operations/billingSubscriptionsAliases.js.map +1 -1
  101. package/dist/commonjs/operations/customers.js +45 -78
  102. package/dist/commonjs/operations/customers.js.map +1 -1
  103. package/dist/commonjs/operations/departments.js +23 -39
  104. package/dist/commonjs/operations/departments.js.map +1 -1
  105. package/dist/commonjs/operations/enrollmentAccounts.js +45 -78
  106. package/dist/commonjs/operations/enrollmentAccounts.js.map +1 -1
  107. package/dist/commonjs/operations/invoiceSections.js +45 -51
  108. package/dist/commonjs/operations/invoiceSections.js.map +1 -1
  109. package/dist/commonjs/operations/invoices.js +133 -153
  110. package/dist/commonjs/operations/invoices.js.map +1 -1
  111. package/dist/commonjs/operations/operations.js +23 -39
  112. package/dist/commonjs/operations/operations.js.map +1 -1
  113. package/dist/commonjs/operations/partnerTransfers.js +23 -39
  114. package/dist/commonjs/operations/partnerTransfers.js.map +1 -1
  115. package/dist/commonjs/operations/paymentMethods.js +67 -117
  116. package/dist/commonjs/operations/paymentMethods.js.map +1 -1
  117. package/dist/commonjs/operations/policies.js +45 -24
  118. package/dist/commonjs/operations/policies.js.map +1 -1
  119. package/dist/commonjs/operations/products.js +100 -162
  120. package/dist/commonjs/operations/products.js.map +1 -1
  121. package/dist/commonjs/operations/recipientTransfers.js +23 -39
  122. package/dist/commonjs/operations/recipientTransfers.js.map +1 -1
  123. package/dist/commonjs/operations/reservationOrders.js +23 -39
  124. package/dist/commonjs/operations/reservationOrders.js.map +1 -1
  125. package/dist/commonjs/operations/reservations.js +78 -123
  126. package/dist/commonjs/operations/reservations.js.map +1 -1
  127. package/dist/commonjs/operations/savingsPlanOrders.js +23 -39
  128. package/dist/commonjs/operations/savingsPlanOrders.js.map +1 -1
  129. package/dist/commonjs/operations/savingsPlans.js +56 -84
  130. package/dist/commonjs/operations/savingsPlans.js.map +1 -1
  131. package/dist/commonjs/operations/transactions.js +100 -162
  132. package/dist/commonjs/operations/transactions.js.map +1 -1
  133. package/dist/commonjs/operations/transfers.js +23 -39
  134. package/dist/commonjs/operations/transfers.js.map +1 -1
  135. package/dist/commonjs/pagingHelper.js +2 -4
  136. package/dist/commonjs/pagingHelper.js.map +1 -1
  137. package/dist/commonjs/tsdoc-metadata.json +11 -11
  138. package/dist/esm/billingManagementClient.js +43 -5
  139. package/dist/esm/billingManagementClient.js.map +1 -1
  140. package/dist/esm/lroImpl.js +7 -3
  141. package/dist/esm/lroImpl.js.map +1 -1
  142. package/dist/esm/models/mappers.js +868 -393
  143. package/dist/esm/models/mappers.js.map +1 -1
  144. package/dist/esm/operations/address.js +1 -0
  145. package/dist/esm/operations/address.js.map +1 -1
  146. package/dist/esm/operations/agreements.js +23 -40
  147. package/dist/esm/operations/agreements.js.map +1 -1
  148. package/dist/esm/operations/associatedTenants.js +45 -52
  149. package/dist/esm/operations/associatedTenants.js.map +1 -1
  150. package/dist/esm/operations/availableBalances.js +1 -0
  151. package/dist/esm/operations/availableBalances.js.map +1 -1
  152. package/dist/esm/operations/billingAccounts.js +79 -98
  153. package/dist/esm/operations/billingAccounts.js.map +1 -1
  154. package/dist/esm/operations/billingPermissions.js +162 -281
  155. package/dist/esm/operations/billingPermissions.js.map +1 -1
  156. package/dist/esm/operations/billingProfiles.js +45 -52
  157. package/dist/esm/operations/billingProfiles.js.map +1 -1
  158. package/dist/esm/operations/billingPropertyOperations.js +1 -0
  159. package/dist/esm/operations/billingPropertyOperations.js.map +1 -1
  160. package/dist/esm/operations/billingRequests.js +122 -202
  161. package/dist/esm/operations/billingRequests.js.map +1 -1
  162. package/dist/esm/operations/billingRoleAssignments.js +260 -307
  163. package/dist/esm/operations/billingRoleAssignments.js.map +1 -1
  164. package/dist/esm/operations/billingRoleDefinitionOperations.js +139 -241
  165. package/dist/esm/operations/billingRoleDefinitionOperations.js.map +1 -1
  166. package/dist/esm/operations/billingSubscriptions.js +199 -271
  167. package/dist/esm/operations/billingSubscriptions.js.map +1 -1
  168. package/dist/esm/operations/billingSubscriptionsAliases.js +34 -46
  169. package/dist/esm/operations/billingSubscriptionsAliases.js.map +1 -1
  170. package/dist/esm/operations/customers.js +45 -79
  171. package/dist/esm/operations/customers.js.map +1 -1
  172. package/dist/esm/operations/departments.js +23 -40
  173. package/dist/esm/operations/departments.js.map +1 -1
  174. package/dist/esm/operations/enrollmentAccounts.js +45 -79
  175. package/dist/esm/operations/enrollmentAccounts.js.map +1 -1
  176. package/dist/esm/operations/invoiceSections.js +45 -52
  177. package/dist/esm/operations/invoiceSections.js.map +1 -1
  178. package/dist/esm/operations/invoices.js +133 -154
  179. package/dist/esm/operations/invoices.js.map +1 -1
  180. package/dist/esm/operations/operations.js +23 -40
  181. package/dist/esm/operations/operations.js.map +1 -1
  182. package/dist/esm/operations/partnerTransfers.js +23 -40
  183. package/dist/esm/operations/partnerTransfers.js.map +1 -1
  184. package/dist/esm/operations/paymentMethods.js +67 -118
  185. package/dist/esm/operations/paymentMethods.js.map +1 -1
  186. package/dist/esm/operations/policies.js +45 -24
  187. package/dist/esm/operations/policies.js.map +1 -1
  188. package/dist/esm/operations/products.js +100 -163
  189. package/dist/esm/operations/products.js.map +1 -1
  190. package/dist/esm/operations/recipientTransfers.js +23 -40
  191. package/dist/esm/operations/recipientTransfers.js.map +1 -1
  192. package/dist/esm/operations/reservationOrders.js +23 -40
  193. package/dist/esm/operations/reservationOrders.js.map +1 -1
  194. package/dist/esm/operations/reservations.js +78 -124
  195. package/dist/esm/operations/reservations.js.map +1 -1
  196. package/dist/esm/operations/savingsPlanOrders.js +23 -40
  197. package/dist/esm/operations/savingsPlanOrders.js.map +1 -1
  198. package/dist/esm/operations/savingsPlans.js +56 -85
  199. package/dist/esm/operations/savingsPlans.js.map +1 -1
  200. package/dist/esm/operations/transactions.js +100 -163
  201. package/dist/esm/operations/transactions.js.map +1 -1
  202. package/dist/esm/operations/transfers.js +23 -40
  203. package/dist/esm/operations/transfers.js.map +1 -1
  204. package/dist/esm/pagingHelper.js +2 -4
  205. package/dist/esm/pagingHelper.js.map +1 -1
  206. package/dist/react-native/billingManagementClient.js +43 -5
  207. package/dist/react-native/billingManagementClient.js.map +1 -1
  208. package/dist/react-native/lroImpl.js +7 -3
  209. package/dist/react-native/lroImpl.js.map +1 -1
  210. package/dist/react-native/models/mappers.js +868 -393
  211. package/dist/react-native/models/mappers.js.map +1 -1
  212. package/dist/react-native/operations/address.js +1 -0
  213. package/dist/react-native/operations/address.js.map +1 -1
  214. package/dist/react-native/operations/agreements.js +23 -40
  215. package/dist/react-native/operations/agreements.js.map +1 -1
  216. package/dist/react-native/operations/associatedTenants.js +45 -52
  217. package/dist/react-native/operations/associatedTenants.js.map +1 -1
  218. package/dist/react-native/operations/availableBalances.js +1 -0
  219. package/dist/react-native/operations/availableBalances.js.map +1 -1
  220. package/dist/react-native/operations/billingAccounts.js +79 -98
  221. package/dist/react-native/operations/billingAccounts.js.map +1 -1
  222. package/dist/react-native/operations/billingPermissions.js +162 -281
  223. package/dist/react-native/operations/billingPermissions.js.map +1 -1
  224. package/dist/react-native/operations/billingProfiles.js +45 -52
  225. package/dist/react-native/operations/billingProfiles.js.map +1 -1
  226. package/dist/react-native/operations/billingPropertyOperations.js +1 -0
  227. package/dist/react-native/operations/billingPropertyOperations.js.map +1 -1
  228. package/dist/react-native/operations/billingRequests.js +122 -202
  229. package/dist/react-native/operations/billingRequests.js.map +1 -1
  230. package/dist/react-native/operations/billingRoleAssignments.js +260 -307
  231. package/dist/react-native/operations/billingRoleAssignments.js.map +1 -1
  232. package/dist/react-native/operations/billingRoleDefinitionOperations.js +139 -241
  233. package/dist/react-native/operations/billingRoleDefinitionOperations.js.map +1 -1
  234. package/dist/react-native/operations/billingSubscriptions.js +199 -271
  235. package/dist/react-native/operations/billingSubscriptions.js.map +1 -1
  236. package/dist/react-native/operations/billingSubscriptionsAliases.js +34 -46
  237. package/dist/react-native/operations/billingSubscriptionsAliases.js.map +1 -1
  238. package/dist/react-native/operations/customers.js +45 -79
  239. package/dist/react-native/operations/customers.js.map +1 -1
  240. package/dist/react-native/operations/departments.js +23 -40
  241. package/dist/react-native/operations/departments.js.map +1 -1
  242. package/dist/react-native/operations/enrollmentAccounts.js +45 -79
  243. package/dist/react-native/operations/enrollmentAccounts.js.map +1 -1
  244. package/dist/react-native/operations/invoiceSections.js +45 -52
  245. package/dist/react-native/operations/invoiceSections.js.map +1 -1
  246. package/dist/react-native/operations/invoices.js +133 -154
  247. package/dist/react-native/operations/invoices.js.map +1 -1
  248. package/dist/react-native/operations/operations.js +23 -40
  249. package/dist/react-native/operations/operations.js.map +1 -1
  250. package/dist/react-native/operations/partnerTransfers.js +23 -40
  251. package/dist/react-native/operations/partnerTransfers.js.map +1 -1
  252. package/dist/react-native/operations/paymentMethods.js +67 -118
  253. package/dist/react-native/operations/paymentMethods.js.map +1 -1
  254. package/dist/react-native/operations/policies.js +45 -24
  255. package/dist/react-native/operations/policies.js.map +1 -1
  256. package/dist/react-native/operations/products.js +100 -163
  257. package/dist/react-native/operations/products.js.map +1 -1
  258. package/dist/react-native/operations/recipientTransfers.js +23 -40
  259. package/dist/react-native/operations/recipientTransfers.js.map +1 -1
  260. package/dist/react-native/operations/reservationOrders.js +23 -40
  261. package/dist/react-native/operations/reservationOrders.js.map +1 -1
  262. package/dist/react-native/operations/reservations.js +78 -124
  263. package/dist/react-native/operations/reservations.js.map +1 -1
  264. package/dist/react-native/operations/savingsPlanOrders.js +23 -40
  265. package/dist/react-native/operations/savingsPlanOrders.js.map +1 -1
  266. package/dist/react-native/operations/savingsPlans.js +56 -85
  267. package/dist/react-native/operations/savingsPlans.js.map +1 -1
  268. package/dist/react-native/operations/transactions.js +100 -163
  269. package/dist/react-native/operations/transactions.js.map +1 -1
  270. package/dist/react-native/operations/transfers.js +23 -40
  271. package/dist/react-native/operations/transfers.js.map +1 -1
  272. package/dist/react-native/pagingHelper.js +2 -4
  273. package/dist/react-native/pagingHelper.js.map +1 -1
  274. package/package.json +2 -2
  275. /package/review/{arm-billing.api.md → arm-billing-node.api.md} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../../src/operations/invoices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EA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C,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Invoices } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BillingManagementClient } from \"../billingManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Invoice,\n InvoicesListByBillingProfileNextOptionalParams,\n InvoicesListByBillingProfileOptionalParams,\n InvoicesListByBillingProfileResponse,\n InvoicesListByBillingAccountNextOptionalParams,\n InvoicesListByBillingAccountOptionalParams,\n InvoicesListByBillingAccountResponse,\n InvoicesListByBillingSubscriptionNextOptionalParams,\n InvoicesListByBillingSubscriptionOptionalParams,\n InvoicesListByBillingSubscriptionResponse,\n DocumentDownloadRequest,\n InvoicesDownloadDocumentsByBillingAccountOptionalParams,\n InvoicesDownloadDocumentsByBillingAccountResponse,\n InvoicesAmendOptionalParams,\n InvoicesAmendResponse,\n InvoicesDownloadByBillingAccountOptionalParams,\n InvoicesDownloadByBillingAccountResponse,\n InvoicesDownloadSummaryByBillingAccountOptionalParams,\n InvoicesDownloadSummaryByBillingAccountResponse,\n InvoicesGetByBillingAccountOptionalParams,\n InvoicesGetByBillingAccountResponse,\n InvoicesDownloadDocumentsByBillingSubscriptionOptionalParams,\n InvoicesDownloadDocumentsByBillingSubscriptionResponse,\n InvoicesDownloadByBillingSubscriptionOptionalParams,\n InvoicesDownloadByBillingSubscriptionResponse,\n InvoicesGetByBillingSubscriptionOptionalParams,\n InvoicesGetByBillingSubscriptionResponse,\n InvoicesGetOptionalParams,\n InvoicesGetResponse,\n InvoicesListByBillingProfileNextResponse,\n InvoicesListByBillingAccountNextResponse,\n InvoicesListByBillingSubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Invoices operations. */\nexport class InvoicesImpl implements Invoices {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class Invoices class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the invoices for a billing profile for a given start date and end date. The operation is\n * supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer\n * Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param options The options parameters.\n */\n public listByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n options?: InvoicesListByBillingProfileOptionalParams,\n ): PagedAsyncIterableIterator<Invoice> {\n const iter = this.listByBillingProfilePagingAll(\n billingAccountName,\n billingProfileName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByBillingProfilePagingPage(\n billingAccountName,\n billingProfileName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByBillingProfilePagingPage(\n billingAccountName: string,\n billingProfileName: string,\n options?: InvoicesListByBillingProfileOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Invoice[]> {\n let result: InvoicesListByBillingProfileResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBillingProfile(\n billingAccountName,\n billingProfileName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByBillingProfileNext(\n billingAccountName,\n billingProfileName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByBillingProfilePagingAll(\n billingAccountName: string,\n billingProfileName: string,\n options?: InvoicesListByBillingProfileOptionalParams,\n ): AsyncIterableIterator<Invoice> {\n for await (const page of this.listByBillingProfilePagingPage(\n billingAccountName,\n billingProfileName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the invoices for a billing account for a given start date and end date. The operation is\n * supported for all billing account types.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param options The options parameters.\n */\n public listByBillingAccount(\n billingAccountName: string,\n options?: InvoicesListByBillingAccountOptionalParams,\n ): PagedAsyncIterableIterator<Invoice> {\n const iter = this.listByBillingAccountPagingAll(\n billingAccountName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByBillingAccountPagingPage(\n billingAccountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByBillingAccountPagingPage(\n billingAccountName: string,\n options?: InvoicesListByBillingAccountOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Invoice[]> {\n let result: InvoicesListByBillingAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBillingAccount(billingAccountName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByBillingAccountNext(\n billingAccountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByBillingAccountPagingAll(\n billingAccountName: string,\n options?: InvoicesListByBillingAccountOptionalParams,\n ): AsyncIterableIterator<Invoice> {\n for await (const page of this.listByBillingAccountPagingPage(\n billingAccountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the invoices for a subscription. The operation is supported for billing accounts with\n * agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n * @param options The options parameters.\n */\n public listByBillingSubscription(\n options?: InvoicesListByBillingSubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<Invoice> {\n const iter = this.listByBillingSubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByBillingSubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listByBillingSubscriptionPagingPage(\n options?: InvoicesListByBillingSubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Invoice[]> {\n let result: InvoicesListByBillingSubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBillingSubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByBillingSubscriptionNext(\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByBillingSubscriptionPagingAll(\n options?: InvoicesListByBillingSubscriptionOptionalParams,\n ): AsyncIterableIterator<Invoice> {\n for await (const page of this.listByBillingSubscriptionPagingPage(\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the invoices for a billing profile for a given start date and end date. The operation is\n * supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer\n * Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param options The options parameters.\n */\n private _listByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n options?: InvoicesListByBillingProfileOptionalParams,\n ): Promise<InvoicesListByBillingProfileResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, options },\n listByBillingProfileOperationSpec,\n );\n }\n\n /**\n * Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip\n * file. The operation is supported for billing accounts with agreement type Microsoft Partner\n * Agreement or Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A list of download details for individual documents.\n * @param options The options parameters.\n */\n async beginDownloadDocumentsByBillingAccount(\n billingAccountName: string,\n parameters: DocumentDownloadRequest[],\n options?: InvoicesDownloadDocumentsByBillingAccountOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<InvoicesDownloadDocumentsByBillingAccountResponse>,\n InvoicesDownloadDocumentsByBillingAccountResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<InvoicesDownloadDocumentsByBillingAccountResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, parameters, options },\n spec: downloadDocumentsByBillingAccountOperationSpec,\n });\n const poller = await createHttpPoller<\n InvoicesDownloadDocumentsByBillingAccountResponse,\n OperationState<InvoicesDownloadDocumentsByBillingAccountResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip\n * file. The operation is supported for billing accounts with agreement type Microsoft Partner\n * Agreement or Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A list of download details for individual documents.\n * @param options The options parameters.\n */\n async beginDownloadDocumentsByBillingAccountAndWait(\n billingAccountName: string,\n parameters: DocumentDownloadRequest[],\n options?: InvoicesDownloadDocumentsByBillingAccountOptionalParams,\n ): Promise<InvoicesDownloadDocumentsByBillingAccountResponse> {\n const poller = await this.beginDownloadDocumentsByBillingAccount(\n billingAccountName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Regenerate an invoice by billing account name and invoice name. The operation is supported for\n * billing accounts with agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginAmend(\n billingAccountName: string,\n invoiceName: string,\n options?: InvoicesAmendOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<InvoicesAmendResponse>,\n InvoicesAmendResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<InvoicesAmendResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, invoiceName, options },\n spec: amendOperationSpec,\n });\n const poller = await createHttpPoller<\n InvoicesAmendResponse,\n OperationState<InvoicesAmendResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Regenerate an invoice by billing account name and invoice name. The operation is supported for\n * billing accounts with agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginAmendAndWait(\n billingAccountName: string,\n invoiceName: string,\n options?: InvoicesAmendOptionalParams,\n ): Promise<InvoicesAmendResponse> {\n const poller = await this.beginAmend(\n billingAccountName,\n invoiceName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a URL to download an invoice document. The operation is supported for billing accounts with\n * agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownloadByBillingAccount(\n billingAccountName: string,\n invoiceName: string,\n options?: InvoicesDownloadByBillingAccountOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<InvoicesDownloadByBillingAccountResponse>,\n InvoicesDownloadByBillingAccountResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<InvoicesDownloadByBillingAccountResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, invoiceName, options },\n spec: downloadByBillingAccountOperationSpec,\n });\n const poller = await createHttpPoller<\n InvoicesDownloadByBillingAccountResponse,\n OperationState<InvoicesDownloadByBillingAccountResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download an invoice document. The operation is supported for billing accounts with\n * agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownloadByBillingAccountAndWait(\n billingAccountName: string,\n invoiceName: string,\n options?: InvoicesDownloadByBillingAccountOptionalParams,\n ): Promise<InvoicesDownloadByBillingAccountResponse> {\n const poller = await this.beginDownloadByBillingAccount(\n billingAccountName,\n invoiceName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a URL to download the summary document for an invoice. The operation is supported for billing\n * accounts with agreement type Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownloadSummaryByBillingAccount(\n billingAccountName: string,\n invoiceName: string,\n options?: InvoicesDownloadSummaryByBillingAccountOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<InvoicesDownloadSummaryByBillingAccountResponse>,\n InvoicesDownloadSummaryByBillingAccountResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<InvoicesDownloadSummaryByBillingAccountResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, invoiceName, options },\n spec: downloadSummaryByBillingAccountOperationSpec,\n });\n const poller = await createHttpPoller<\n InvoicesDownloadSummaryByBillingAccountResponse,\n OperationState<InvoicesDownloadSummaryByBillingAccountResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download the summary document for an invoice. The operation is supported for billing\n * accounts with agreement type Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownloadSummaryByBillingAccountAndWait(\n billingAccountName: string,\n invoiceName: string,\n options?: InvoicesDownloadSummaryByBillingAccountOptionalParams,\n ): Promise<InvoicesDownloadSummaryByBillingAccountResponse> {\n const poller = await this.beginDownloadSummaryByBillingAccount(\n billingAccountName,\n invoiceName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets an invoice by billing account name and ID. The operation is supported for all billing account\n * types.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n getByBillingAccount(\n billingAccountName: string,\n invoiceName: string,\n options?: InvoicesGetByBillingAccountOptionalParams,\n ): Promise<InvoicesGetByBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, invoiceName, options },\n getByBillingAccountOperationSpec,\n );\n }\n\n /**\n * Lists the invoices for a billing account for a given start date and end date. The operation is\n * supported for all billing account types.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param options The options parameters.\n */\n private _listByBillingAccount(\n billingAccountName: string,\n options?: InvoicesListByBillingAccountOptionalParams,\n ): Promise<InvoicesListByBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, options },\n listByBillingAccountOperationSpec,\n );\n }\n\n /**\n * Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip\n * file. The operation is supported for billing accounts with agreement type Microsoft Partner\n * Agreement or Microsoft Customer Agreement.\n * @param parameters A list of download details for individual documents.\n * @param options The options parameters.\n */\n async beginDownloadDocumentsByBillingSubscription(\n parameters: DocumentDownloadRequest[],\n options?: InvoicesDownloadDocumentsByBillingSubscriptionOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<InvoicesDownloadDocumentsByBillingSubscriptionResponse>,\n InvoicesDownloadDocumentsByBillingSubscriptionResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<InvoicesDownloadDocumentsByBillingSubscriptionResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { parameters, options },\n spec: downloadDocumentsByBillingSubscriptionOperationSpec,\n });\n const poller = await createHttpPoller<\n InvoicesDownloadDocumentsByBillingSubscriptionResponse,\n OperationState<InvoicesDownloadDocumentsByBillingSubscriptionResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip\n * file. The operation is supported for billing accounts with agreement type Microsoft Partner\n * Agreement or Microsoft Customer Agreement.\n * @param parameters A list of download details for individual documents.\n * @param options The options parameters.\n */\n async beginDownloadDocumentsByBillingSubscriptionAndWait(\n parameters: DocumentDownloadRequest[],\n options?: InvoicesDownloadDocumentsByBillingSubscriptionOptionalParams,\n ): Promise<InvoicesDownloadDocumentsByBillingSubscriptionResponse> {\n const poller = await this.beginDownloadDocumentsByBillingSubscription(\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a URL to download an invoice by billing subscription. The operation is supported for billing\n * accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownloadByBillingSubscription(\n invoiceName: string,\n options?: InvoicesDownloadByBillingSubscriptionOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<InvoicesDownloadByBillingSubscriptionResponse>,\n InvoicesDownloadByBillingSubscriptionResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<InvoicesDownloadByBillingSubscriptionResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { invoiceName, options },\n spec: downloadByBillingSubscriptionOperationSpec,\n });\n const poller = await createHttpPoller<\n InvoicesDownloadByBillingSubscriptionResponse,\n OperationState<InvoicesDownloadByBillingSubscriptionResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download an invoice by billing subscription. The operation is supported for billing\n * accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownloadByBillingSubscriptionAndWait(\n invoiceName: string,\n options?: InvoicesDownloadByBillingSubscriptionOptionalParams,\n ): Promise<InvoicesDownloadByBillingSubscriptionResponse> {\n const poller = await this.beginDownloadByBillingSubscription(\n invoiceName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets an invoice by subscription ID and invoice ID. The operation is supported for billing accounts\n * with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n getByBillingSubscription(\n invoiceName: string,\n options?: InvoicesGetByBillingSubscriptionOptionalParams,\n ): Promise<InvoicesGetByBillingSubscriptionResponse> {\n return this.client.sendOperationRequest(\n { invoiceName, options },\n getByBillingSubscriptionOperationSpec,\n );\n }\n\n /**\n * Lists the invoices for a subscription. The operation is supported for billing accounts with\n * agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n * @param options The options parameters.\n */\n private _listByBillingSubscription(\n options?: InvoicesListByBillingSubscriptionOptionalParams,\n ): Promise<InvoicesListByBillingSubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listByBillingSubscriptionOperationSpec,\n );\n }\n\n /**\n * Gets an invoice by ID. The operation is supported for billing accounts with agreement type Microsoft\n * Partner Agreement or Microsoft Customer Agreement.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n get(\n invoiceName: string,\n options?: InvoicesGetOptionalParams,\n ): Promise<InvoicesGetResponse> {\n return this.client.sendOperationRequest(\n { invoiceName, options },\n getOperationSpec,\n );\n }\n\n /**\n * ListByBillingProfileNext\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param nextLink The nextLink from the previous successful call to the ListByBillingProfile method.\n * @param options The options parameters.\n */\n private _listByBillingProfileNext(\n billingAccountName: string,\n billingProfileName: string,\n nextLink: string,\n options?: InvoicesListByBillingProfileNextOptionalParams,\n ): Promise<InvoicesListByBillingProfileNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, nextLink, options },\n listByBillingProfileNextOperationSpec,\n );\n }\n\n /**\n * ListByBillingAccountNext\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param nextLink The nextLink from the previous successful call to the ListByBillingAccount method.\n * @param options The options parameters.\n */\n private _listByBillingAccountNext(\n billingAccountName: string,\n nextLink: string,\n options?: InvoicesListByBillingAccountNextOptionalParams,\n ): Promise<InvoicesListByBillingAccountNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, nextLink, options },\n listByBillingAccountNextOperationSpec,\n );\n }\n\n /**\n * ListByBillingSubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListByBillingSubscription\n * method.\n * @param options The options parameters.\n */\n private _listByBillingSubscriptionNext(\n nextLink: string,\n options?: InvoicesListByBillingSubscriptionNextOptionalParams,\n ): Promise<InvoicesListByBillingSubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listByBillingSubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderBy,\n Parameters.top,\n Parameters.skip,\n Parameters.count,\n Parameters.search,\n Parameters.periodStartDate,\n Parameters.periodEndDate,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst downloadDocumentsByBillingAccountOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/downloadDocuments\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 201: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 202: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 204: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters17,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n };\nconst amendOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/amend\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.InvoicesAmendHeaders,\n },\n 201: {\n headersMapper: Mappers.InvoicesAmendHeaders,\n },\n 202: {\n headersMapper: Mappers.InvoicesAmendHeaders,\n },\n 204: {\n headersMapper: Mappers.InvoicesAmendHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst downloadByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/download\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 201: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 202: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 204: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.documentName],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst downloadSummaryByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/downloadSummary\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 201: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 202: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 204: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Invoice,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderBy,\n Parameters.top,\n Parameters.skip,\n Parameters.count,\n Parameters.search,\n Parameters.periodStartDate,\n Parameters.periodEndDate,\n ],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst downloadDocumentsByBillingSubscriptionOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/downloadDocuments\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 201: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 202: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 204: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters17,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n };\nconst downloadByBillingSubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices/{invoiceName}/download\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 201: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 202: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 204: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.documentName],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getByBillingSubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices/{invoiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Invoice,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingSubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderBy,\n Parameters.top,\n Parameters.skip,\n Parameters.count,\n Parameters.search,\n Parameters.periodStartDate,\n Parameters.periodEndDate,\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/default/invoices/{invoiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Invoice,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.invoiceName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingProfileNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.nextLink,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingSubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"invoices.js","sourceRoot":"","sources":["../../../src/operations/invoices.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAoC9C,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAM,OAAO,YAAY;IACN,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,oBAAoB,CACzB,kBAA0B,EAC1B,kBAA0B,EAC1B,OAAoD;QAEpD,MAAM,IAAI,GAAG,IAAI,CAAC,6BAA6B,CAC7C,kBAAkB,EAClB,kBAAkB,EAClB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,8BAA8B,CACxC,kBAAkB,EAClB,kBAAkB,EAClB,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C,GAA6B;IACtE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,0CAA0C,GAA6B;IAC3E,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Invoices } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BillingManagementClient } from \"../billingManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Invoice,\n InvoicesListByBillingProfileNextOptionalParams,\n InvoicesListByBillingProfileOptionalParams,\n InvoicesListByBillingProfileResponse,\n InvoicesListByBillingAccountNextOptionalParams,\n InvoicesListByBillingAccountOptionalParams,\n InvoicesListByBillingAccountResponse,\n InvoicesListByBillingSubscriptionNextOptionalParams,\n InvoicesListByBillingSubscriptionOptionalParams,\n InvoicesListByBillingSubscriptionResponse,\n DocumentDownloadRequest,\n InvoicesDownloadDocumentsByBillingAccountOptionalParams,\n InvoicesDownloadDocumentsByBillingAccountResponse,\n InvoicesAmendOptionalParams,\n InvoicesAmendResponse,\n InvoicesDownloadByBillingAccountOptionalParams,\n InvoicesDownloadByBillingAccountResponse,\n InvoicesDownloadSummaryByBillingAccountOptionalParams,\n InvoicesDownloadSummaryByBillingAccountResponse,\n InvoicesGetByBillingAccountOptionalParams,\n InvoicesGetByBillingAccountResponse,\n InvoicesDownloadDocumentsByBillingSubscriptionOptionalParams,\n InvoicesDownloadDocumentsByBillingSubscriptionResponse,\n InvoicesDownloadByBillingSubscriptionOptionalParams,\n InvoicesDownloadByBillingSubscriptionResponse,\n InvoicesGetByBillingSubscriptionOptionalParams,\n InvoicesGetByBillingSubscriptionResponse,\n InvoicesGetOptionalParams,\n InvoicesGetResponse,\n InvoicesListByBillingProfileNextResponse,\n InvoicesListByBillingAccountNextResponse,\n InvoicesListByBillingSubscriptionNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Invoices operations. */\nexport class InvoicesImpl implements Invoices {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class Invoices class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the invoices for a billing profile for a given start date and end date. The operation is\n * supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer\n * Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param options The options parameters.\n */\n public listByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n options?: InvoicesListByBillingProfileOptionalParams,\n ): PagedAsyncIterableIterator<Invoice> {\n const iter = this.listByBillingProfilePagingAll(\n billingAccountName,\n billingProfileName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByBillingProfilePagingPage(\n billingAccountName,\n billingProfileName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByBillingProfilePagingPage(\n billingAccountName: string,\n billingProfileName: string,\n options?: InvoicesListByBillingProfileOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Invoice[]> {\n let result: InvoicesListByBillingProfileResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBillingProfile(\n billingAccountName,\n billingProfileName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByBillingProfileNext(\n billingAccountName,\n billingProfileName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByBillingProfilePagingAll(\n billingAccountName: string,\n billingProfileName: string,\n options?: InvoicesListByBillingProfileOptionalParams,\n ): AsyncIterableIterator<Invoice> {\n for await (const page of this.listByBillingProfilePagingPage(\n billingAccountName,\n billingProfileName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the invoices for a billing account for a given start date and end date. The operation is\n * supported for all billing account types.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param options The options parameters.\n */\n public listByBillingAccount(\n billingAccountName: string,\n options?: InvoicesListByBillingAccountOptionalParams,\n ): PagedAsyncIterableIterator<Invoice> {\n const iter = this.listByBillingAccountPagingAll(\n billingAccountName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByBillingAccountPagingPage(\n billingAccountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByBillingAccountPagingPage(\n billingAccountName: string,\n options?: InvoicesListByBillingAccountOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Invoice[]> {\n let result: InvoicesListByBillingAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBillingAccount(billingAccountName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByBillingAccountNext(\n billingAccountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByBillingAccountPagingAll(\n billingAccountName: string,\n options?: InvoicesListByBillingAccountOptionalParams,\n ): AsyncIterableIterator<Invoice> {\n for await (const page of this.listByBillingAccountPagingPage(\n billingAccountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the invoices for a subscription. The operation is supported for billing accounts with\n * agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n * @param options The options parameters.\n */\n public listByBillingSubscription(\n options?: InvoicesListByBillingSubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<Invoice> {\n const iter = this.listByBillingSubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByBillingSubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listByBillingSubscriptionPagingPage(\n options?: InvoicesListByBillingSubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Invoice[]> {\n let result: InvoicesListByBillingSubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBillingSubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByBillingSubscriptionNext(\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByBillingSubscriptionPagingAll(\n options?: InvoicesListByBillingSubscriptionOptionalParams,\n ): AsyncIterableIterator<Invoice> {\n for await (const page of this.listByBillingSubscriptionPagingPage(\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the invoices for a billing profile for a given start date and end date. The operation is\n * supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer\n * Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param options The options parameters.\n */\n private _listByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n options?: InvoicesListByBillingProfileOptionalParams,\n ): Promise<InvoicesListByBillingProfileResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, options },\n listByBillingProfileOperationSpec,\n );\n }\n\n /**\n * Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip\n * file. The operation is supported for billing accounts with agreement type Microsoft Partner\n * Agreement or Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A list of download details for individual documents.\n * @param options The options parameters.\n */\n async beginDownloadDocumentsByBillingAccount(\n billingAccountName: string,\n parameters: DocumentDownloadRequest[],\n options?: InvoicesDownloadDocumentsByBillingAccountOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<InvoicesDownloadDocumentsByBillingAccountResponse>,\n InvoicesDownloadDocumentsByBillingAccountResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<InvoicesDownloadDocumentsByBillingAccountResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, parameters, options },\n spec: downloadDocumentsByBillingAccountOperationSpec,\n });\n const poller = await createHttpPoller<\n InvoicesDownloadDocumentsByBillingAccountResponse,\n OperationState<InvoicesDownloadDocumentsByBillingAccountResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip\n * file. The operation is supported for billing accounts with agreement type Microsoft Partner\n * Agreement or Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A list of download details for individual documents.\n * @param options The options parameters.\n */\n async beginDownloadDocumentsByBillingAccountAndWait(\n billingAccountName: string,\n parameters: DocumentDownloadRequest[],\n options?: InvoicesDownloadDocumentsByBillingAccountOptionalParams,\n ): Promise<InvoicesDownloadDocumentsByBillingAccountResponse> {\n const poller = await this.beginDownloadDocumentsByBillingAccount(\n billingAccountName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Regenerate an invoice by billing account name and invoice name. The operation is supported for\n * billing accounts with agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginAmend(\n billingAccountName: string,\n invoiceName: string,\n options?: InvoicesAmendOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<InvoicesAmendResponse>,\n InvoicesAmendResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<InvoicesAmendResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, invoiceName, options },\n spec: amendOperationSpec,\n });\n const poller = await createHttpPoller<\n InvoicesAmendResponse,\n OperationState<InvoicesAmendResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Regenerate an invoice by billing account name and invoice name. The operation is supported for\n * billing accounts with agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginAmendAndWait(\n billingAccountName: string,\n invoiceName: string,\n options?: InvoicesAmendOptionalParams,\n ): Promise<InvoicesAmendResponse> {\n const poller = await this.beginAmend(\n billingAccountName,\n invoiceName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a URL to download an invoice document. The operation is supported for billing accounts with\n * agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownloadByBillingAccount(\n billingAccountName: string,\n invoiceName: string,\n options?: InvoicesDownloadByBillingAccountOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<InvoicesDownloadByBillingAccountResponse>,\n InvoicesDownloadByBillingAccountResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<InvoicesDownloadByBillingAccountResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, invoiceName, options },\n spec: downloadByBillingAccountOperationSpec,\n });\n const poller = await createHttpPoller<\n InvoicesDownloadByBillingAccountResponse,\n OperationState<InvoicesDownloadByBillingAccountResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download an invoice document. The operation is supported for billing accounts with\n * agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownloadByBillingAccountAndWait(\n billingAccountName: string,\n invoiceName: string,\n options?: InvoicesDownloadByBillingAccountOptionalParams,\n ): Promise<InvoicesDownloadByBillingAccountResponse> {\n const poller = await this.beginDownloadByBillingAccount(\n billingAccountName,\n invoiceName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a URL to download the summary document for an invoice. The operation is supported for billing\n * accounts with agreement type Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownloadSummaryByBillingAccount(\n billingAccountName: string,\n invoiceName: string,\n options?: InvoicesDownloadSummaryByBillingAccountOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<InvoicesDownloadSummaryByBillingAccountResponse>,\n InvoicesDownloadSummaryByBillingAccountResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<InvoicesDownloadSummaryByBillingAccountResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, invoiceName, options },\n spec: downloadSummaryByBillingAccountOperationSpec,\n });\n const poller = await createHttpPoller<\n InvoicesDownloadSummaryByBillingAccountResponse,\n OperationState<InvoicesDownloadSummaryByBillingAccountResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download the summary document for an invoice. The operation is supported for billing\n * accounts with agreement type Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownloadSummaryByBillingAccountAndWait(\n billingAccountName: string,\n invoiceName: string,\n options?: InvoicesDownloadSummaryByBillingAccountOptionalParams,\n ): Promise<InvoicesDownloadSummaryByBillingAccountResponse> {\n const poller = await this.beginDownloadSummaryByBillingAccount(\n billingAccountName,\n invoiceName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets an invoice by billing account name and ID. The operation is supported for all billing account\n * types.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n getByBillingAccount(\n billingAccountName: string,\n invoiceName: string,\n options?: InvoicesGetByBillingAccountOptionalParams,\n ): Promise<InvoicesGetByBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, invoiceName, options },\n getByBillingAccountOperationSpec,\n );\n }\n\n /**\n * Lists the invoices for a billing account for a given start date and end date. The operation is\n * supported for all billing account types.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param options The options parameters.\n */\n private _listByBillingAccount(\n billingAccountName: string,\n options?: InvoicesListByBillingAccountOptionalParams,\n ): Promise<InvoicesListByBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, options },\n listByBillingAccountOperationSpec,\n );\n }\n\n /**\n * Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip\n * file. The operation is supported for billing accounts with agreement type Microsoft Partner\n * Agreement or Microsoft Customer Agreement.\n * @param parameters A list of download details for individual documents.\n * @param options The options parameters.\n */\n async beginDownloadDocumentsByBillingSubscription(\n parameters: DocumentDownloadRequest[],\n options?: InvoicesDownloadDocumentsByBillingSubscriptionOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<InvoicesDownloadDocumentsByBillingSubscriptionResponse>,\n InvoicesDownloadDocumentsByBillingSubscriptionResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<InvoicesDownloadDocumentsByBillingSubscriptionResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { parameters, options },\n spec: downloadDocumentsByBillingSubscriptionOperationSpec,\n });\n const poller = await createHttpPoller<\n InvoicesDownloadDocumentsByBillingSubscriptionResponse,\n OperationState<InvoicesDownloadDocumentsByBillingSubscriptionResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a zip\n * file. The operation is supported for billing accounts with agreement type Microsoft Partner\n * Agreement or Microsoft Customer Agreement.\n * @param parameters A list of download details for individual documents.\n * @param options The options parameters.\n */\n async beginDownloadDocumentsByBillingSubscriptionAndWait(\n parameters: DocumentDownloadRequest[],\n options?: InvoicesDownloadDocumentsByBillingSubscriptionOptionalParams,\n ): Promise<InvoicesDownloadDocumentsByBillingSubscriptionResponse> {\n const poller = await this.beginDownloadDocumentsByBillingSubscription(\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a URL to download an invoice by billing subscription. The operation is supported for billing\n * accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownloadByBillingSubscription(\n invoiceName: string,\n options?: InvoicesDownloadByBillingSubscriptionOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<InvoicesDownloadByBillingSubscriptionResponse>,\n InvoicesDownloadByBillingSubscriptionResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<InvoicesDownloadByBillingSubscriptionResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { invoiceName, options },\n spec: downloadByBillingSubscriptionOperationSpec,\n });\n const poller = await createHttpPoller<\n InvoicesDownloadByBillingSubscriptionResponse,\n OperationState<InvoicesDownloadByBillingSubscriptionResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download an invoice by billing subscription. The operation is supported for billing\n * accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginDownloadByBillingSubscriptionAndWait(\n invoiceName: string,\n options?: InvoicesDownloadByBillingSubscriptionOptionalParams,\n ): Promise<InvoicesDownloadByBillingSubscriptionResponse> {\n const poller = await this.beginDownloadByBillingSubscription(\n invoiceName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets an invoice by subscription ID and invoice ID. The operation is supported for billing accounts\n * with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n getByBillingSubscription(\n invoiceName: string,\n options?: InvoicesGetByBillingSubscriptionOptionalParams,\n ): Promise<InvoicesGetByBillingSubscriptionResponse> {\n return this.client.sendOperationRequest(\n { invoiceName, options },\n getByBillingSubscriptionOperationSpec,\n );\n }\n\n /**\n * Lists the invoices for a subscription. The operation is supported for billing accounts with\n * agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.\n * @param options The options parameters.\n */\n private _listByBillingSubscription(\n options?: InvoicesListByBillingSubscriptionOptionalParams,\n ): Promise<InvoicesListByBillingSubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listByBillingSubscriptionOperationSpec,\n );\n }\n\n /**\n * Gets an invoice by ID. The operation is supported for billing accounts with agreement type Microsoft\n * Partner Agreement or Microsoft Customer Agreement.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n get(\n invoiceName: string,\n options?: InvoicesGetOptionalParams,\n ): Promise<InvoicesGetResponse> {\n return this.client.sendOperationRequest(\n { invoiceName, options },\n getOperationSpec,\n );\n }\n\n /**\n * ListByBillingProfileNext\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param nextLink The nextLink from the previous successful call to the ListByBillingProfile method.\n * @param options The options parameters.\n */\n private _listByBillingProfileNext(\n billingAccountName: string,\n billingProfileName: string,\n nextLink: string,\n options?: InvoicesListByBillingProfileNextOptionalParams,\n ): Promise<InvoicesListByBillingProfileNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, nextLink, options },\n listByBillingProfileNextOperationSpec,\n );\n }\n\n /**\n * ListByBillingAccountNext\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param nextLink The nextLink from the previous successful call to the ListByBillingAccount method.\n * @param options The options parameters.\n */\n private _listByBillingAccountNext(\n billingAccountName: string,\n nextLink: string,\n options?: InvoicesListByBillingAccountNextOptionalParams,\n ): Promise<InvoicesListByBillingAccountNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, nextLink, options },\n listByBillingAccountNextOperationSpec,\n );\n }\n\n /**\n * ListByBillingSubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListByBillingSubscription\n * method.\n * @param options The options parameters.\n */\n private _listByBillingSubscriptionNext(\n nextLink: string,\n options?: InvoicesListByBillingSubscriptionNextOptionalParams,\n ): Promise<InvoicesListByBillingSubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listByBillingSubscriptionNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderBy,\n Parameters.top,\n Parameters.skip,\n Parameters.count,\n Parameters.search,\n Parameters.periodStartDate,\n Parameters.periodEndDate,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst downloadDocumentsByBillingAccountOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/downloadDocuments\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 201: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 202: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 204: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters17,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n };\nconst amendOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/amend\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.InvoicesAmendHeaders,\n },\n 201: {\n headersMapper: Mappers.InvoicesAmendHeaders,\n },\n 202: {\n headersMapper: Mappers.InvoicesAmendHeaders,\n },\n 204: {\n headersMapper: Mappers.InvoicesAmendHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst downloadByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/download\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 201: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 202: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 204: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.documentName],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst downloadSummaryByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/downloadSummary\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 201: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 202: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 204: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Invoice,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderBy,\n Parameters.top,\n Parameters.skip,\n Parameters.count,\n Parameters.search,\n Parameters.periodStartDate,\n Parameters.periodEndDate,\n ],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst downloadDocumentsByBillingSubscriptionOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/downloadDocuments\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 201: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 202: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 204: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters17,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n };\nconst downloadByBillingSubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices/{invoiceName}/download\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 201: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 202: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 204: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.documentName],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getByBillingSubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices/{invoiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Invoice,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingSubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/invoices\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderBy,\n Parameters.top,\n Parameters.skip,\n Parameters.count,\n Parameters.search,\n Parameters.periodStartDate,\n Parameters.periodEndDate,\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/default/invoices/{invoiceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Invoice,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.invoiceName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingProfileNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.nextLink,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingSubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing Operations operations. */
15
14
  export class OperationsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Operations class.
18
18
  * @param client Reference to the service client
@@ -34,52 +34,35 @@ export class OperationsImpl {
34
34
  return this;
35
35
  },
36
36
  byPage: (settings) => {
37
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
37
+ if (settings?.maxPageSize) {
38
38
  throw new Error("maxPageSize is not supported by this operation.");
39
39
  }
40
40
  return this.listPagingPage(options, settings);
41
41
  },
42
42
  };
43
43
  }
44
- listPagingPage(options, settings) {
45
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
- let result;
47
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
- if (!continuationToken) {
49
- result = yield __await(this._list(options));
50
- let page = result.value || [];
51
- continuationToken = result.nextLink;
52
- setContinuationToken(page, continuationToken);
53
- yield yield __await(page);
54
- }
55
- while (continuationToken) {
56
- result = yield __await(this._listNext(continuationToken, options));
57
- continuationToken = result.nextLink;
58
- let page = result.value || [];
59
- setContinuationToken(page, continuationToken);
60
- yield yield __await(page);
61
- }
62
- });
44
+ async *listPagingPage(options, settings) {
45
+ let result;
46
+ let continuationToken = settings?.continuationToken;
47
+ if (!continuationToken) {
48
+ result = await this._list(options);
49
+ let page = result.value || [];
50
+ continuationToken = result.nextLink;
51
+ setContinuationToken(page, continuationToken);
52
+ yield page;
53
+ }
54
+ while (continuationToken) {
55
+ result = await this._listNext(continuationToken, options);
56
+ continuationToken = result.nextLink;
57
+ let page = result.value || [];
58
+ setContinuationToken(page, continuationToken);
59
+ yield page;
60
+ }
63
61
  }
64
- listPagingAll(options) {
65
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
66
- var _a, e_1, _b, _c;
67
- try {
68
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
69
- _c = _f.value;
70
- _d = false;
71
- const page = _c;
72
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
73
- }
74
- }
75
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
76
- finally {
77
- try {
78
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
79
- }
80
- finally { if (e_1) throw e_1.error; }
81
- }
82
- });
62
+ async *listPagingAll(options) {
63
+ for await (const page of this.listPagingPage(options)) {
64
+ yield* page;
65
+ }
83
66
  }
84
67
  /**
85
68
  * List of operations supported by provider.
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAsC,EACtC,QAAuB;;YAEvB,IAAI,MAA8B,CAAC;YACnC,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,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rC,EAAE,QAAQ,EAAE,OAAO,EAAE,EACrB,qBAAqB,CACtB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,yCAAyC;IAC/C,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BillingManagementClient } from \"../billingManagementClient.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * List of operations supported by provider.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List of operations supported by provider.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB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C","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BillingManagementClient } from \"../billingManagementClient.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * List of operations supported by provider.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List of operations supported by provider.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing PartnerTransfers operations. */
15
14
  export class PartnerTransfersImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class PartnerTransfers class.
18
18
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class PartnerTransfersImpl {
38
38
  return this;
39
39
  },
40
40
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
42
42
  throw new Error("maxPageSize is not supported by this operation.");
43
43
  }
44
44
  return this.listPagingPage(billingAccountName, billingProfileName, customerName, options, settings);
45
45
  },
46
46
  };
47
47
  }
48
- listPagingPage(billingAccountName, billingProfileName, customerName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._list(billingAccountName, billingProfileName, customerName, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- setContinuationToken(page, continuationToken);
57
- yield yield __await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield __await(this._listNext(billingAccountName, billingProfileName, customerName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listPagingPage(billingAccountName, billingProfileName, customerName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(billingAccountName, billingProfileName, customerName, options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ setContinuationToken(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listNext(billingAccountName, billingProfileName, customerName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listPagingAll(billingAccountName, billingProfileName, customerName, options) {
69
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listPagingPage(billingAccountName, billingProfileName, customerName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
66
+ async *listPagingAll(billingAccountName, billingProfileName, customerName, options) {
67
+ for await (const page of this.listPagingPage(billingAccountName, billingProfileName, customerName, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * Gets a transfer request by ID. The operation is supported only for billing accounts with agreement