@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.
- package/dist/browser/billingManagementClient.js +43 -5
- package/dist/browser/billingManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +868 -393
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/address.js +1 -0
- package/dist/browser/operations/address.js.map +1 -1
- package/dist/browser/operations/agreements.js +23 -40
- package/dist/browser/operations/agreements.js.map +1 -1
- package/dist/browser/operations/associatedTenants.js +45 -52
- package/dist/browser/operations/associatedTenants.js.map +1 -1
- package/dist/browser/operations/availableBalances.js +1 -0
- package/dist/browser/operations/availableBalances.js.map +1 -1
- package/dist/browser/operations/billingAccounts.js +79 -98
- package/dist/browser/operations/billingAccounts.js.map +1 -1
- package/dist/browser/operations/billingPermissions.js +162 -281
- package/dist/browser/operations/billingPermissions.js.map +1 -1
- package/dist/browser/operations/billingProfiles.js +45 -52
- package/dist/browser/operations/billingProfiles.js.map +1 -1
- package/dist/browser/operations/billingPropertyOperations.js +1 -0
- package/dist/browser/operations/billingPropertyOperations.js.map +1 -1
- package/dist/browser/operations/billingRequests.js +122 -202
- package/dist/browser/operations/billingRequests.js.map +1 -1
- package/dist/browser/operations/billingRoleAssignments.js +260 -307
- package/dist/browser/operations/billingRoleAssignments.js.map +1 -1
- package/dist/browser/operations/billingRoleDefinitionOperations.js +139 -241
- package/dist/browser/operations/billingRoleDefinitionOperations.js.map +1 -1
- package/dist/browser/operations/billingSubscriptions.js +199 -271
- package/dist/browser/operations/billingSubscriptions.js.map +1 -1
- package/dist/browser/operations/billingSubscriptionsAliases.js +34 -46
- package/dist/browser/operations/billingSubscriptionsAliases.js.map +1 -1
- package/dist/browser/operations/customers.js +45 -79
- package/dist/browser/operations/customers.js.map +1 -1
- package/dist/browser/operations/departments.js +23 -40
- package/dist/browser/operations/departments.js.map +1 -1
- package/dist/browser/operations/enrollmentAccounts.js +45 -79
- package/dist/browser/operations/enrollmentAccounts.js.map +1 -1
- package/dist/browser/operations/invoiceSections.js +45 -52
- package/dist/browser/operations/invoiceSections.js.map +1 -1
- package/dist/browser/operations/invoices.js +133 -154
- package/dist/browser/operations/invoices.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/partnerTransfers.js +23 -40
- package/dist/browser/operations/partnerTransfers.js.map +1 -1
- package/dist/browser/operations/paymentMethods.js +67 -118
- package/dist/browser/operations/paymentMethods.js.map +1 -1
- package/dist/browser/operations/policies.js +45 -24
- package/dist/browser/operations/policies.js.map +1 -1
- package/dist/browser/operations/products.js +100 -163
- package/dist/browser/operations/products.js.map +1 -1
- package/dist/browser/operations/recipientTransfers.js +23 -40
- package/dist/browser/operations/recipientTransfers.js.map +1 -1
- package/dist/browser/operations/reservationOrders.js +23 -40
- package/dist/browser/operations/reservationOrders.js.map +1 -1
- package/dist/browser/operations/reservations.js +78 -124
- package/dist/browser/operations/reservations.js.map +1 -1
- package/dist/browser/operations/savingsPlanOrders.js +23 -40
- package/dist/browser/operations/savingsPlanOrders.js.map +1 -1
- package/dist/browser/operations/savingsPlans.js +56 -85
- package/dist/browser/operations/savingsPlans.js.map +1 -1
- package/dist/browser/operations/transactions.js +100 -163
- package/dist/browser/operations/transactions.js.map +1 -1
- package/dist/browser/operations/transfers.js +23 -40
- package/dist/browser/operations/transfers.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/billingManagementClient.js +43 -5
- package/dist/commonjs/billingManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +868 -393
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/address.js +1 -0
- package/dist/commonjs/operations/address.js.map +1 -1
- package/dist/commonjs/operations/agreements.js +23 -39
- package/dist/commonjs/operations/agreements.js.map +1 -1
- package/dist/commonjs/operations/associatedTenants.js +45 -51
- package/dist/commonjs/operations/associatedTenants.js.map +1 -1
- package/dist/commonjs/operations/availableBalances.js +1 -0
- package/dist/commonjs/operations/availableBalances.js.map +1 -1
- package/dist/commonjs/operations/billingAccounts.js +79 -97
- package/dist/commonjs/operations/billingAccounts.js.map +1 -1
- package/dist/commonjs/operations/billingPermissions.js +155 -273
- package/dist/commonjs/operations/billingPermissions.js.map +1 -1
- package/dist/commonjs/operations/billingProfiles.js +45 -51
- package/dist/commonjs/operations/billingProfiles.js.map +1 -1
- package/dist/commonjs/operations/billingPropertyOperations.js +1 -0
- package/dist/commonjs/operations/billingPropertyOperations.js.map +1 -1
- package/dist/commonjs/operations/billingRequests.js +122 -201
- package/dist/commonjs/operations/billingRequests.js.map +1 -1
- package/dist/commonjs/operations/billingRoleAssignments.js +260 -306
- package/dist/commonjs/operations/billingRoleAssignments.js.map +1 -1
- package/dist/commonjs/operations/billingRoleDefinitionOperations.js +139 -240
- package/dist/commonjs/operations/billingRoleDefinitionOperations.js.map +1 -1
- package/dist/commonjs/operations/billingSubscriptions.js +199 -270
- package/dist/commonjs/operations/billingSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/billingSubscriptionsAliases.js +34 -45
- package/dist/commonjs/operations/billingSubscriptionsAliases.js.map +1 -1
- package/dist/commonjs/operations/customers.js +45 -78
- package/dist/commonjs/operations/customers.js.map +1 -1
- package/dist/commonjs/operations/departments.js +23 -39
- package/dist/commonjs/operations/departments.js.map +1 -1
- package/dist/commonjs/operations/enrollmentAccounts.js +45 -78
- package/dist/commonjs/operations/enrollmentAccounts.js.map +1 -1
- package/dist/commonjs/operations/invoiceSections.js +45 -51
- package/dist/commonjs/operations/invoiceSections.js.map +1 -1
- package/dist/commonjs/operations/invoices.js +133 -153
- package/dist/commonjs/operations/invoices.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/partnerTransfers.js +23 -39
- package/dist/commonjs/operations/partnerTransfers.js.map +1 -1
- package/dist/commonjs/operations/paymentMethods.js +67 -117
- package/dist/commonjs/operations/paymentMethods.js.map +1 -1
- package/dist/commonjs/operations/policies.js +45 -24
- package/dist/commonjs/operations/policies.js.map +1 -1
- package/dist/commonjs/operations/products.js +100 -162
- package/dist/commonjs/operations/products.js.map +1 -1
- package/dist/commonjs/operations/recipientTransfers.js +23 -39
- package/dist/commonjs/operations/recipientTransfers.js.map +1 -1
- package/dist/commonjs/operations/reservationOrders.js +23 -39
- package/dist/commonjs/operations/reservationOrders.js.map +1 -1
- package/dist/commonjs/operations/reservations.js +78 -123
- package/dist/commonjs/operations/reservations.js.map +1 -1
- package/dist/commonjs/operations/savingsPlanOrders.js +23 -39
- package/dist/commonjs/operations/savingsPlanOrders.js.map +1 -1
- package/dist/commonjs/operations/savingsPlans.js +56 -84
- package/dist/commonjs/operations/savingsPlans.js.map +1 -1
- package/dist/commonjs/operations/transactions.js +100 -162
- package/dist/commonjs/operations/transactions.js.map +1 -1
- package/dist/commonjs/operations/transfers.js +23 -39
- package/dist/commonjs/operations/transfers.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/billingManagementClient.js +43 -5
- package/dist/esm/billingManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +868 -393
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/address.js +1 -0
- package/dist/esm/operations/address.js.map +1 -1
- package/dist/esm/operations/agreements.js +23 -40
- package/dist/esm/operations/agreements.js.map +1 -1
- package/dist/esm/operations/associatedTenants.js +45 -52
- package/dist/esm/operations/associatedTenants.js.map +1 -1
- package/dist/esm/operations/availableBalances.js +1 -0
- package/dist/esm/operations/availableBalances.js.map +1 -1
- package/dist/esm/operations/billingAccounts.js +79 -98
- package/dist/esm/operations/billingAccounts.js.map +1 -1
- package/dist/esm/operations/billingPermissions.js +162 -281
- package/dist/esm/operations/billingPermissions.js.map +1 -1
- package/dist/esm/operations/billingProfiles.js +45 -52
- package/dist/esm/operations/billingProfiles.js.map +1 -1
- package/dist/esm/operations/billingPropertyOperations.js +1 -0
- package/dist/esm/operations/billingPropertyOperations.js.map +1 -1
- package/dist/esm/operations/billingRequests.js +122 -202
- package/dist/esm/operations/billingRequests.js.map +1 -1
- package/dist/esm/operations/billingRoleAssignments.js +260 -307
- package/dist/esm/operations/billingRoleAssignments.js.map +1 -1
- package/dist/esm/operations/billingRoleDefinitionOperations.js +139 -241
- package/dist/esm/operations/billingRoleDefinitionOperations.js.map +1 -1
- package/dist/esm/operations/billingSubscriptions.js +199 -271
- package/dist/esm/operations/billingSubscriptions.js.map +1 -1
- package/dist/esm/operations/billingSubscriptionsAliases.js +34 -46
- package/dist/esm/operations/billingSubscriptionsAliases.js.map +1 -1
- package/dist/esm/operations/customers.js +45 -79
- package/dist/esm/operations/customers.js.map +1 -1
- package/dist/esm/operations/departments.js +23 -40
- package/dist/esm/operations/departments.js.map +1 -1
- package/dist/esm/operations/enrollmentAccounts.js +45 -79
- package/dist/esm/operations/enrollmentAccounts.js.map +1 -1
- package/dist/esm/operations/invoiceSections.js +45 -52
- package/dist/esm/operations/invoiceSections.js.map +1 -1
- package/dist/esm/operations/invoices.js +133 -154
- package/dist/esm/operations/invoices.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/partnerTransfers.js +23 -40
- package/dist/esm/operations/partnerTransfers.js.map +1 -1
- package/dist/esm/operations/paymentMethods.js +67 -118
- package/dist/esm/operations/paymentMethods.js.map +1 -1
- package/dist/esm/operations/policies.js +45 -24
- package/dist/esm/operations/policies.js.map +1 -1
- package/dist/esm/operations/products.js +100 -163
- package/dist/esm/operations/products.js.map +1 -1
- package/dist/esm/operations/recipientTransfers.js +23 -40
- package/dist/esm/operations/recipientTransfers.js.map +1 -1
- package/dist/esm/operations/reservationOrders.js +23 -40
- package/dist/esm/operations/reservationOrders.js.map +1 -1
- package/dist/esm/operations/reservations.js +78 -124
- package/dist/esm/operations/reservations.js.map +1 -1
- package/dist/esm/operations/savingsPlanOrders.js +23 -40
- package/dist/esm/operations/savingsPlanOrders.js.map +1 -1
- package/dist/esm/operations/savingsPlans.js +56 -85
- package/dist/esm/operations/savingsPlans.js.map +1 -1
- package/dist/esm/operations/transactions.js +100 -163
- package/dist/esm/operations/transactions.js.map +1 -1
- package/dist/esm/operations/transfers.js +23 -40
- package/dist/esm/operations/transfers.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/billingManagementClient.js +43 -5
- package/dist/react-native/billingManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +868 -393
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/address.js +1 -0
- package/dist/react-native/operations/address.js.map +1 -1
- package/dist/react-native/operations/agreements.js +23 -40
- package/dist/react-native/operations/agreements.js.map +1 -1
- package/dist/react-native/operations/associatedTenants.js +45 -52
- package/dist/react-native/operations/associatedTenants.js.map +1 -1
- package/dist/react-native/operations/availableBalances.js +1 -0
- package/dist/react-native/operations/availableBalances.js.map +1 -1
- package/dist/react-native/operations/billingAccounts.js +79 -98
- package/dist/react-native/operations/billingAccounts.js.map +1 -1
- package/dist/react-native/operations/billingPermissions.js +162 -281
- package/dist/react-native/operations/billingPermissions.js.map +1 -1
- package/dist/react-native/operations/billingProfiles.js +45 -52
- package/dist/react-native/operations/billingProfiles.js.map +1 -1
- package/dist/react-native/operations/billingPropertyOperations.js +1 -0
- package/dist/react-native/operations/billingPropertyOperations.js.map +1 -1
- package/dist/react-native/operations/billingRequests.js +122 -202
- package/dist/react-native/operations/billingRequests.js.map +1 -1
- package/dist/react-native/operations/billingRoleAssignments.js +260 -307
- package/dist/react-native/operations/billingRoleAssignments.js.map +1 -1
- package/dist/react-native/operations/billingRoleDefinitionOperations.js +139 -241
- package/dist/react-native/operations/billingRoleDefinitionOperations.js.map +1 -1
- package/dist/react-native/operations/billingSubscriptions.js +199 -271
- package/dist/react-native/operations/billingSubscriptions.js.map +1 -1
- package/dist/react-native/operations/billingSubscriptionsAliases.js +34 -46
- package/dist/react-native/operations/billingSubscriptionsAliases.js.map +1 -1
- package/dist/react-native/operations/customers.js +45 -79
- package/dist/react-native/operations/customers.js.map +1 -1
- package/dist/react-native/operations/departments.js +23 -40
- package/dist/react-native/operations/departments.js.map +1 -1
- package/dist/react-native/operations/enrollmentAccounts.js +45 -79
- package/dist/react-native/operations/enrollmentAccounts.js.map +1 -1
- package/dist/react-native/operations/invoiceSections.js +45 -52
- package/dist/react-native/operations/invoiceSections.js.map +1 -1
- package/dist/react-native/operations/invoices.js +133 -154
- package/dist/react-native/operations/invoices.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/partnerTransfers.js +23 -40
- package/dist/react-native/operations/partnerTransfers.js.map +1 -1
- package/dist/react-native/operations/paymentMethods.js +67 -118
- package/dist/react-native/operations/paymentMethods.js.map +1 -1
- package/dist/react-native/operations/policies.js +45 -24
- package/dist/react-native/operations/policies.js.map +1 -1
- package/dist/react-native/operations/products.js +100 -163
- package/dist/react-native/operations/products.js.map +1 -1
- package/dist/react-native/operations/recipientTransfers.js +23 -40
- package/dist/react-native/operations/recipientTransfers.js.map +1 -1
- package/dist/react-native/operations/reservationOrders.js +23 -40
- package/dist/react-native/operations/reservationOrders.js.map +1 -1
- package/dist/react-native/operations/reservations.js +78 -124
- package/dist/react-native/operations/reservations.js.map +1 -1
- package/dist/react-native/operations/savingsPlanOrders.js +23 -40
- package/dist/react-native/operations/savingsPlanOrders.js.map +1 -1
- package/dist/react-native/operations/savingsPlans.js +56 -85
- package/dist/react-native/operations/savingsPlans.js.map +1 -1
- package/dist/react-native/operations/transactions.js +100 -163
- package/dist/react-native/operations/transactions.js.map +1 -1
- package/dist/react-native/operations/transfers.js +23 -40
- package/dist/react-native/operations/transfers.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- /package/review/{arm-billing.api.md → arm-billing-node.api.md} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partnerTransfers.js","sourceRoot":"","sources":["../../../src/operations/partnerTransfers.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;AAiBtD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,kBAA0B,EAC1B,kBAA0B,EAC1B,YAAoB,EACpB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,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,M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aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,YAAY;KACxB;IACD,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,gCAAgC;SACrD;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;QACnB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,YAAY;KACxB;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 { PartnerTransfers } 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 PartnerTransferDetails,\n PartnerTransfersListNextOptionalParams,\n PartnerTransfersListOptionalParams,\n PartnerTransfersListResponse,\n PartnerTransfersGetOptionalParams,\n PartnerTransfersGetResponse,\n PartnerInitiateTransferRequest,\n PartnerTransfersInitiateOptionalParams,\n PartnerTransfersInitiateResponse,\n PartnerTransfersCancelOptionalParams,\n PartnerTransfersCancelResponse,\n PartnerTransfersListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PartnerTransfers operations. */\nexport class PartnerTransfersImpl implements PartnerTransfers {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class PartnerTransfers class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the transfer requests sent to a customer. The operation is supported only for billing accounts\n * with agreement type Microsoft Partner 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 customerName The ID that uniquely identifies a customer.\n * @param options The options parameters.\n */\n public list(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n options?: PartnerTransfersListOptionalParams,\n ): PagedAsyncIterableIterator<PartnerTransferDetails> {\n const iter = this.listPagingAll(\n billingAccountName,\n billingProfileName,\n customerName,\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.listPagingPage(\n billingAccountName,\n billingProfileName,\n customerName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n options?: PartnerTransfersListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PartnerTransferDetails[]> {\n let result: PartnerTransfersListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n billingAccountName,\n billingProfileName,\n customerName,\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._listNext(\n billingAccountName,\n billingProfileName,\n customerName,\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 *listPagingAll(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n options?: PartnerTransfersListOptionalParams,\n ): AsyncIterableIterator<PartnerTransferDetails> {\n for await (const page of this.listPagingPage(\n billingAccountName,\n billingProfileName,\n customerName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a transfer request by ID. The operation is supported only for billing accounts with agreement\n * type Microsoft Partner 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 customerName The ID that uniquely identifies a customer.\n * @param transferName The ID that uniquely identifies a transfer request.\n * @param options The options parameters.\n */\n get(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n transferName: string,\n options?: PartnerTransfersGetOptionalParams,\n ): Promise<PartnerTransfersGetResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n transferName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Sends a request to a user in a customer's billing account to transfer billing ownership of their\n * subscriptions. The operation is supported only for billing accounts with agreement type Microsoft\n * Partner 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 customerName The ID that uniquely identifies a customer.\n * @param transferName The ID that uniquely identifies a transfer request.\n * @param parameters Request parameters that are provided to the initiate transfer operation.\n * @param options The options parameters.\n */\n initiate(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n transferName: string,\n parameters: PartnerInitiateTransferRequest,\n options?: PartnerTransfersInitiateOptionalParams,\n ): Promise<PartnerTransfersInitiateResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n transferName,\n parameters,\n options,\n },\n initiateOperationSpec,\n );\n }\n\n /**\n * Cancels a transfer request. The operation is supported only for billing accounts with agreement type\n * Microsoft Partner 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 customerName The ID that uniquely identifies a customer.\n * @param transferName The ID that uniquely identifies a transfer request.\n * @param options The options parameters.\n */\n cancel(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n transferName: string,\n options?: PartnerTransfersCancelOptionalParams,\n ): Promise<PartnerTransfersCancelResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n transferName,\n options,\n },\n cancelOperationSpec,\n );\n }\n\n /**\n * Lists the transfer requests sent to a customer. The operation is supported only for billing accounts\n * with agreement type Microsoft Partner 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 customerName The ID that uniquely identifies a customer.\n * @param options The options parameters.\n */\n private _list(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n options?: PartnerTransfersListOptionalParams,\n ): Promise<PartnerTransfersListResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, customerName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param customerName The ID that uniquely identifies a customer.\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 billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n nextLink: string,\n options?: PartnerTransfersListNextOptionalParams,\n ): Promise<PartnerTransfersListNextResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n nextLink,\n options,\n },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transfers/{transferName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerTransferDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n Parameters.transferName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst initiateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transfers/{transferName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerTransferDetails,\n },\n 201: {\n bodyMapper: Mappers.PartnerTransferDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters25,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n Parameters.transferName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transfers/{transferName}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerTransferDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n Parameters.transferName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transfers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerTransferDetailsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerTransferDetailsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.nextLink,\n Parameters.billingProfileName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"partnerTransfers.js","sourceRoot":"","sources":["../../../src/operations/partnerTransfers.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;AAiBtD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAM,OAAO,oBAAoB;IACd,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,kBAA0B,EAC1B,kBAA0B,EAC1B,YAAoB,EACpB,OAA4C;QAE5C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,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,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AAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gCAAgC;SACrD;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;QACnB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,YAAY;KACxB;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 { PartnerTransfers } 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 PartnerTransferDetails,\n PartnerTransfersListNextOptionalParams,\n PartnerTransfersListOptionalParams,\n PartnerTransfersListResponse,\n PartnerTransfersGetOptionalParams,\n PartnerTransfersGetResponse,\n PartnerInitiateTransferRequest,\n PartnerTransfersInitiateOptionalParams,\n PartnerTransfersInitiateResponse,\n PartnerTransfersCancelOptionalParams,\n PartnerTransfersCancelResponse,\n PartnerTransfersListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PartnerTransfers operations. */\nexport class PartnerTransfersImpl implements PartnerTransfers {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class PartnerTransfers class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the transfer requests sent to a customer. The operation is supported only for billing accounts\n * with agreement type Microsoft Partner 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 customerName The ID that uniquely identifies a customer.\n * @param options The options parameters.\n */\n public list(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n options?: PartnerTransfersListOptionalParams,\n ): PagedAsyncIterableIterator<PartnerTransferDetails> {\n const iter = this.listPagingAll(\n billingAccountName,\n billingProfileName,\n customerName,\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.listPagingPage(\n billingAccountName,\n billingProfileName,\n customerName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n options?: PartnerTransfersListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PartnerTransferDetails[]> {\n let result: PartnerTransfersListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n billingAccountName,\n billingProfileName,\n customerName,\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._listNext(\n billingAccountName,\n billingProfileName,\n customerName,\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 *listPagingAll(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n options?: PartnerTransfersListOptionalParams,\n ): AsyncIterableIterator<PartnerTransferDetails> {\n for await (const page of this.listPagingPage(\n billingAccountName,\n billingProfileName,\n customerName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets a transfer request by ID. The operation is supported only for billing accounts with agreement\n * type Microsoft Partner 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 customerName The ID that uniquely identifies a customer.\n * @param transferName The ID that uniquely identifies a transfer request.\n * @param options The options parameters.\n */\n get(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n transferName: string,\n options?: PartnerTransfersGetOptionalParams,\n ): Promise<PartnerTransfersGetResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n transferName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Sends a request to a user in a customer's billing account to transfer billing ownership of their\n * subscriptions. The operation is supported only for billing accounts with agreement type Microsoft\n * Partner 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 customerName The ID that uniquely identifies a customer.\n * @param transferName The ID that uniquely identifies a transfer request.\n * @param parameters Request parameters that are provided to the initiate transfer operation.\n * @param options The options parameters.\n */\n initiate(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n transferName: string,\n parameters: PartnerInitiateTransferRequest,\n options?: PartnerTransfersInitiateOptionalParams,\n ): Promise<PartnerTransfersInitiateResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n transferName,\n parameters,\n options,\n },\n initiateOperationSpec,\n );\n }\n\n /**\n * Cancels a transfer request. The operation is supported only for billing accounts with agreement type\n * Microsoft Partner 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 customerName The ID that uniquely identifies a customer.\n * @param transferName The ID that uniquely identifies a transfer request.\n * @param options The options parameters.\n */\n cancel(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n transferName: string,\n options?: PartnerTransfersCancelOptionalParams,\n ): Promise<PartnerTransfersCancelResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n transferName,\n options,\n },\n cancelOperationSpec,\n );\n }\n\n /**\n * Lists the transfer requests sent to a customer. The operation is supported only for billing accounts\n * with agreement type Microsoft Partner 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 customerName The ID that uniquely identifies a customer.\n * @param options The options parameters.\n */\n private _list(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n options?: PartnerTransfersListOptionalParams,\n ): Promise<PartnerTransfersListResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, customerName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param customerName The ID that uniquely identifies a customer.\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 billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n nextLink: string,\n options?: PartnerTransfersListNextOptionalParams,\n ): Promise<PartnerTransfersListNextResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n nextLink,\n options,\n },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transfers/{transferName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerTransferDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n Parameters.transferName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst initiateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transfers/{transferName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerTransferDetails,\n },\n 201: {\n bodyMapper: Mappers.PartnerTransferDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters25,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n Parameters.transferName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transfers/{transferName}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerTransferDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n Parameters.transferName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transfers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerTransferDetailsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PartnerTransferDetailsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.nextLink,\n Parameters.billingProfileName,\n Parameters.customerName,\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 PaymentMethods operations. */
|
|
15
14
|
export class PaymentMethodsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class PaymentMethods class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -37,52 +37,35 @@ export class PaymentMethodsImpl {
|
|
|
37
37
|
return this;
|
|
38
38
|
},
|
|
39
39
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
42
|
}
|
|
43
43
|
return this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings);
|
|
44
44
|
},
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
47
|
+
async *listByBillingProfilePagingPage(billingAccountName, billingProfileName, options, settings) {
|
|
48
|
+
let result;
|
|
49
|
+
let continuationToken = settings?.continuationToken;
|
|
50
|
+
if (!continuationToken) {
|
|
51
|
+
result = await this._listByBillingProfile(billingAccountName, billingProfileName, options);
|
|
52
|
+
let page = result.value || [];
|
|
53
|
+
continuationToken = result.nextLink;
|
|
54
|
+
setContinuationToken(page, continuationToken);
|
|
55
|
+
yield page;
|
|
56
|
+
}
|
|
57
|
+
while (continuationToken) {
|
|
58
|
+
result = await this._listByBillingProfileNext(billingAccountName, billingProfileName, continuationToken, options);
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
let page = result.value || [];
|
|
61
|
+
setContinuationToken(page, continuationToken);
|
|
62
|
+
yield page;
|
|
63
|
+
}
|
|
66
64
|
}
|
|
67
|
-
listByBillingProfilePagingAll(billingAccountName, billingProfileName, options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = __asyncValues(this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
65
|
+
async *listByBillingProfilePagingAll(billingAccountName, billingProfileName, options) {
|
|
66
|
+
for await (const page of this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, options)) {
|
|
67
|
+
yield* page;
|
|
68
|
+
}
|
|
86
69
|
}
|
|
87
70
|
/**
|
|
88
71
|
* Lists the payment methods available for a billing account. Along with the payment methods owned by
|
|
@@ -101,52 +84,35 @@ export class PaymentMethodsImpl {
|
|
|
101
84
|
return this;
|
|
102
85
|
},
|
|
103
86
|
byPage: (settings) => {
|
|
104
|
-
if (settings
|
|
87
|
+
if (settings?.maxPageSize) {
|
|
105
88
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
106
89
|
}
|
|
107
90
|
return this.listByBillingAccountPagingPage(billingAccountName, options, settings);
|
|
108
91
|
},
|
|
109
92
|
};
|
|
110
93
|
}
|
|
111
|
-
listByBillingAccountPagingPage(billingAccountName, options, settings) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
});
|
|
94
|
+
async *listByBillingAccountPagingPage(billingAccountName, options, settings) {
|
|
95
|
+
let result;
|
|
96
|
+
let continuationToken = settings?.continuationToken;
|
|
97
|
+
if (!continuationToken) {
|
|
98
|
+
result = await this._listByBillingAccount(billingAccountName, options);
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
continuationToken = result.nextLink;
|
|
101
|
+
setContinuationToken(page, continuationToken);
|
|
102
|
+
yield page;
|
|
103
|
+
}
|
|
104
|
+
while (continuationToken) {
|
|
105
|
+
result = await this._listByBillingAccountNext(billingAccountName, continuationToken, options);
|
|
106
|
+
continuationToken = result.nextLink;
|
|
107
|
+
let page = result.value || [];
|
|
108
|
+
setContinuationToken(page, continuationToken);
|
|
109
|
+
yield page;
|
|
110
|
+
}
|
|
130
111
|
}
|
|
131
|
-
listByBillingAccountPagingAll(billingAccountName, options) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
for (var _d = true, _e = __asyncValues(this.listByBillingAccountPagingPage(billingAccountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
136
|
-
_c = _f.value;
|
|
137
|
-
_d = false;
|
|
138
|
-
const page = _c;
|
|
139
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
143
|
-
finally {
|
|
144
|
-
try {
|
|
145
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
146
|
-
}
|
|
147
|
-
finally { if (e_2) throw e_2.error; }
|
|
148
|
-
}
|
|
149
|
-
});
|
|
112
|
+
async *listByBillingAccountPagingAll(billingAccountName, options) {
|
|
113
|
+
for await (const page of this.listByBillingAccountPagingPage(billingAccountName, options)) {
|
|
114
|
+
yield* page;
|
|
115
|
+
}
|
|
150
116
|
}
|
|
151
117
|
/**
|
|
152
118
|
* Lists the payment methods owned by the caller.
|
|
@@ -162,52 +128,35 @@ export class PaymentMethodsImpl {
|
|
|
162
128
|
return this;
|
|
163
129
|
},
|
|
164
130
|
byPage: (settings) => {
|
|
165
|
-
if (settings
|
|
131
|
+
if (settings?.maxPageSize) {
|
|
166
132
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
167
133
|
}
|
|
168
134
|
return this.listByUserPagingPage(options, settings);
|
|
169
135
|
},
|
|
170
136
|
};
|
|
171
137
|
}
|
|
172
|
-
listByUserPagingPage(options, settings) {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
});
|
|
138
|
+
async *listByUserPagingPage(options, settings) {
|
|
139
|
+
let result;
|
|
140
|
+
let continuationToken = settings?.continuationToken;
|
|
141
|
+
if (!continuationToken) {
|
|
142
|
+
result = await this._listByUser(options);
|
|
143
|
+
let page = result.value || [];
|
|
144
|
+
continuationToken = result.nextLink;
|
|
145
|
+
setContinuationToken(page, continuationToken);
|
|
146
|
+
yield page;
|
|
147
|
+
}
|
|
148
|
+
while (continuationToken) {
|
|
149
|
+
result = await this._listByUserNext(continuationToken, options);
|
|
150
|
+
continuationToken = result.nextLink;
|
|
151
|
+
let page = result.value || [];
|
|
152
|
+
setContinuationToken(page, continuationToken);
|
|
153
|
+
yield page;
|
|
154
|
+
}
|
|
191
155
|
}
|
|
192
|
-
listByUserPagingAll(options) {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
for (var _d = true, _e = __asyncValues(this.listByUserPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
197
|
-
_c = _f.value;
|
|
198
|
-
_d = false;
|
|
199
|
-
const page = _c;
|
|
200
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
204
|
-
finally {
|
|
205
|
-
try {
|
|
206
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
207
|
-
}
|
|
208
|
-
finally { if (e_3) throw e_3.error; }
|
|
209
|
-
}
|
|
210
|
-
});
|
|
156
|
+
async *listByUserPagingAll(options) {
|
|
157
|
+
for await (const page of this.listByUserPagingPage(options)) {
|
|
158
|
+
yield* page;
|
|
159
|
+
}
|
|
211
160
|
}
|
|
212
161
|
/**
|
|
213
162
|
* Lists payment methods attached to a billing profile. The operation is supported only for billing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paymentMethods.js","sourceRoot":"","sources":["../../../src/operations/paymentMethods.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,M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IACrC,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;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,mBAAmB;KAC/B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,2BAA2B,GAA6B;IAC5D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;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 { PaymentMethods } 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 PaymentMethodLink,\n PaymentMethodsListByBillingProfileNextOptionalParams,\n PaymentMethodsListByBillingProfileOptionalParams,\n PaymentMethodsListByBillingProfileResponse,\n PaymentMethod,\n PaymentMethodsListByBillingAccountNextOptionalParams,\n PaymentMethodsListByBillingAccountOptionalParams,\n PaymentMethodsListByBillingAccountResponse,\n PaymentMethodsListByUserNextOptionalParams,\n PaymentMethodsListByUserOptionalParams,\n PaymentMethodsListByUserResponse,\n PaymentMethodsGetByBillingProfileOptionalParams,\n PaymentMethodsGetByBillingProfileResponse,\n PaymentMethodsGetByBillingAccountOptionalParams,\n PaymentMethodsGetByBillingAccountResponse,\n PaymentMethodsDeleteByUserOptionalParams,\n PaymentMethodsGetByUserOptionalParams,\n PaymentMethodsGetByUserResponse,\n PaymentMethodsListByBillingProfileNextResponse,\n PaymentMethodsListByBillingAccountNextResponse,\n PaymentMethodsListByUserNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PaymentMethods operations. */\nexport class PaymentMethodsImpl implements PaymentMethods {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class PaymentMethods class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists payment methods attached to a billing profile. The operation is supported only for billing\n * accounts with agreement type Microsoft Customer 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?: PaymentMethodsListByBillingProfileOptionalParams,\n ): PagedAsyncIterableIterator<PaymentMethodLink> {\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?: PaymentMethodsListByBillingProfileOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PaymentMethodLink[]> {\n let result: PaymentMethodsListByBillingProfileResponse;\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?: PaymentMethodsListByBillingProfileOptionalParams,\n ): AsyncIterableIterator<PaymentMethodLink> {\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 payment methods available for a billing account. Along with the payment methods owned by\n * the caller, these payment methods can be attached to a billing profile to make payments. The\n * operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.\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?: PaymentMethodsListByBillingAccountOptionalParams,\n ): PagedAsyncIterableIterator<PaymentMethod> {\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?: PaymentMethodsListByBillingAccountOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PaymentMethod[]> {\n let result: PaymentMethodsListByBillingAccountResponse;\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?: PaymentMethodsListByBillingAccountOptionalParams,\n ): AsyncIterableIterator<PaymentMethod> {\n for await (const page of this.listByBillingAccountPagingPage(\n billingAccountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the payment methods owned by the caller.\n * @param options The options parameters.\n */\n public listByUser(\n options?: PaymentMethodsListByUserOptionalParams,\n ): PagedAsyncIterableIterator<PaymentMethod> {\n const iter = this.listByUserPagingAll(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.listByUserPagingPage(options, settings);\n },\n };\n }\n\n private async *listByUserPagingPage(\n options?: PaymentMethodsListByUserOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PaymentMethod[]> {\n let result: PaymentMethodsListByUserResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByUser(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._listByUserNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByUserPagingAll(\n options?: PaymentMethodsListByUserOptionalParams,\n ): AsyncIterableIterator<PaymentMethod> {\n for await (const page of this.listByUserPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists payment methods attached to a billing profile. The operation is supported only for billing\n * accounts with agreement type Microsoft Customer 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?: PaymentMethodsListByBillingProfileOptionalParams,\n ): Promise<PaymentMethodsListByBillingProfileResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, options },\n listByBillingProfileOperationSpec,\n );\n }\n\n /**\n * Gets a payment method linked with a billing profile. The operation is supported only for billing\n * accounts with agreement type Microsoft Customer 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 paymentMethodName The ID that uniquely identifies a payment method.\n * @param options The options parameters.\n */\n getByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n paymentMethodName: string,\n options?: PaymentMethodsGetByBillingProfileOptionalParams,\n ): Promise<PaymentMethodsGetByBillingProfileResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, paymentMethodName, options },\n getByBillingProfileOperationSpec,\n );\n }\n\n /**\n * Lists the payment methods available for a billing account. Along with the payment methods owned by\n * the caller, these payment methods can be attached to a billing profile to make payments. The\n * operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.\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?: PaymentMethodsListByBillingAccountOptionalParams,\n ): Promise<PaymentMethodsListByBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, options },\n listByBillingAccountOperationSpec,\n );\n }\n\n /**\n * Gets a payment method available for a billing account. The operation is supported only for billing\n * accounts with agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param paymentMethodName The ID that uniquely identifies a payment method.\n * @param options The options parameters.\n */\n getByBillingAccount(\n billingAccountName: string,\n paymentMethodName: string,\n options?: PaymentMethodsGetByBillingAccountOptionalParams,\n ): Promise<PaymentMethodsGetByBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, paymentMethodName, options },\n getByBillingAccountOperationSpec,\n );\n }\n\n /**\n * Lists the payment methods owned by the caller.\n * @param options The options parameters.\n */\n private _listByUser(\n options?: PaymentMethodsListByUserOptionalParams,\n ): Promise<PaymentMethodsListByUserResponse> {\n return this.client.sendOperationRequest(\n { options },\n listByUserOperationSpec,\n );\n }\n\n /**\n * Deletes a payment method owned by the caller.\n * @param paymentMethodName The ID that uniquely identifies a payment method.\n * @param options The options parameters.\n */\n deleteByUser(\n paymentMethodName: string,\n options?: PaymentMethodsDeleteByUserOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { paymentMethodName, options },\n deleteByUserOperationSpec,\n );\n }\n\n /**\n * Gets a payment method owned by the caller.\n * @param paymentMethodName The ID that uniquely identifies a payment method.\n * @param options The options parameters.\n */\n getByUser(\n paymentMethodName: string,\n options?: PaymentMethodsGetByUserOptionalParams,\n ): Promise<PaymentMethodsGetByUserResponse> {\n return this.client.sendOperationRequest(\n { paymentMethodName, options },\n getByUserOperationSpec,\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?: PaymentMethodsListByBillingProfileNextOptionalParams,\n ): Promise<PaymentMethodsListByBillingProfileNextResponse> {\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?: PaymentMethodsListByBillingAccountNextOptionalParams,\n ): Promise<PaymentMethodsListByBillingAccountNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, nextLink, options },\n listByBillingAccountNextOperationSpec,\n );\n }\n\n /**\n * ListByUserNext\n * @param nextLink The nextLink from the previous successful call to the ListByUser method.\n * @param options The options parameters.\n */\n private _listByUserNext(\n nextLink: string,\n options?: PaymentMethodsListByUserNextOptionalParams,\n ): Promise<PaymentMethodsListByUserNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listByUserNextOperationSpec,\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}/paymentMethodLinks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethodLinksListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName1,\n Parameters.billingProfileName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethodLinks/{paymentMethodName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethodLink,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName1,\n Parameters.billingProfileName1,\n Parameters.paymentMethodName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/paymentMethods\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethodsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName1],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/paymentMethods/{paymentMethodName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethod,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName1,\n Parameters.paymentMethodName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByUserOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/paymentMethods\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethodsListResult,\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 deleteByUserOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/paymentMethods/{paymentMethodName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.paymentMethodName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getByUserOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/paymentMethods/{paymentMethodName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethod,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.paymentMethodName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingProfileNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethodLinksListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.billingAccountName1,\n Parameters.billingProfileName1,\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.PaymentMethodsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.billingAccountName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByUserNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethodsListResult,\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":"paymentMethods.js","sourceRoot":"","sources":["../../../src/operations/paymentMethods.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;AA0BtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAA0B;IA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* 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 { PaymentMethods } 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 PaymentMethodLink,\n PaymentMethodsListByBillingProfileNextOptionalParams,\n PaymentMethodsListByBillingProfileOptionalParams,\n PaymentMethodsListByBillingProfileResponse,\n PaymentMethod,\n PaymentMethodsListByBillingAccountNextOptionalParams,\n PaymentMethodsListByBillingAccountOptionalParams,\n PaymentMethodsListByBillingAccountResponse,\n PaymentMethodsListByUserNextOptionalParams,\n PaymentMethodsListByUserOptionalParams,\n PaymentMethodsListByUserResponse,\n PaymentMethodsGetByBillingProfileOptionalParams,\n PaymentMethodsGetByBillingProfileResponse,\n PaymentMethodsGetByBillingAccountOptionalParams,\n PaymentMethodsGetByBillingAccountResponse,\n PaymentMethodsDeleteByUserOptionalParams,\n PaymentMethodsGetByUserOptionalParams,\n PaymentMethodsGetByUserResponse,\n PaymentMethodsListByBillingProfileNextResponse,\n PaymentMethodsListByBillingAccountNextResponse,\n PaymentMethodsListByUserNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PaymentMethods operations. */\nexport class PaymentMethodsImpl implements PaymentMethods {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class PaymentMethods class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists payment methods attached to a billing profile. The operation is supported only for billing\n * accounts with agreement type Microsoft Customer 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?: PaymentMethodsListByBillingProfileOptionalParams,\n ): PagedAsyncIterableIterator<PaymentMethodLink> {\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?: PaymentMethodsListByBillingProfileOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PaymentMethodLink[]> {\n let result: PaymentMethodsListByBillingProfileResponse;\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?: PaymentMethodsListByBillingProfileOptionalParams,\n ): AsyncIterableIterator<PaymentMethodLink> {\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 payment methods available for a billing account. Along with the payment methods owned by\n * the caller, these payment methods can be attached to a billing profile to make payments. The\n * operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.\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?: PaymentMethodsListByBillingAccountOptionalParams,\n ): PagedAsyncIterableIterator<PaymentMethod> {\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?: PaymentMethodsListByBillingAccountOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PaymentMethod[]> {\n let result: PaymentMethodsListByBillingAccountResponse;\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?: PaymentMethodsListByBillingAccountOptionalParams,\n ): AsyncIterableIterator<PaymentMethod> {\n for await (const page of this.listByBillingAccountPagingPage(\n billingAccountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the payment methods owned by the caller.\n * @param options The options parameters.\n */\n public listByUser(\n options?: PaymentMethodsListByUserOptionalParams,\n ): PagedAsyncIterableIterator<PaymentMethod> {\n const iter = this.listByUserPagingAll(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.listByUserPagingPage(options, settings);\n },\n };\n }\n\n private async *listByUserPagingPage(\n options?: PaymentMethodsListByUserOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PaymentMethod[]> {\n let result: PaymentMethodsListByUserResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByUser(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._listByUserNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByUserPagingAll(\n options?: PaymentMethodsListByUserOptionalParams,\n ): AsyncIterableIterator<PaymentMethod> {\n for await (const page of this.listByUserPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists payment methods attached to a billing profile. The operation is supported only for billing\n * accounts with agreement type Microsoft Customer 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?: PaymentMethodsListByBillingProfileOptionalParams,\n ): Promise<PaymentMethodsListByBillingProfileResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, options },\n listByBillingProfileOperationSpec,\n );\n }\n\n /**\n * Gets a payment method linked with a billing profile. The operation is supported only for billing\n * accounts with agreement type Microsoft Customer 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 paymentMethodName The ID that uniquely identifies a payment method.\n * @param options The options parameters.\n */\n getByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n paymentMethodName: string,\n options?: PaymentMethodsGetByBillingProfileOptionalParams,\n ): Promise<PaymentMethodsGetByBillingProfileResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, paymentMethodName, options },\n getByBillingProfileOperationSpec,\n );\n }\n\n /**\n * Lists the payment methods available for a billing account. Along with the payment methods owned by\n * the caller, these payment methods can be attached to a billing profile to make payments. The\n * operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.\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?: PaymentMethodsListByBillingAccountOptionalParams,\n ): Promise<PaymentMethodsListByBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, options },\n listByBillingAccountOperationSpec,\n );\n }\n\n /**\n * Gets a payment method available for a billing account. The operation is supported only for billing\n * accounts with agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param paymentMethodName The ID that uniquely identifies a payment method.\n * @param options The options parameters.\n */\n getByBillingAccount(\n billingAccountName: string,\n paymentMethodName: string,\n options?: PaymentMethodsGetByBillingAccountOptionalParams,\n ): Promise<PaymentMethodsGetByBillingAccountResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, paymentMethodName, options },\n getByBillingAccountOperationSpec,\n );\n }\n\n /**\n * Lists the payment methods owned by the caller.\n * @param options The options parameters.\n */\n private _listByUser(\n options?: PaymentMethodsListByUserOptionalParams,\n ): Promise<PaymentMethodsListByUserResponse> {\n return this.client.sendOperationRequest(\n { options },\n listByUserOperationSpec,\n );\n }\n\n /**\n * Deletes a payment method owned by the caller.\n * @param paymentMethodName The ID that uniquely identifies a payment method.\n * @param options The options parameters.\n */\n deleteByUser(\n paymentMethodName: string,\n options?: PaymentMethodsDeleteByUserOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { paymentMethodName, options },\n deleteByUserOperationSpec,\n );\n }\n\n /**\n * Gets a payment method owned by the caller.\n * @param paymentMethodName The ID that uniquely identifies a payment method.\n * @param options The options parameters.\n */\n getByUser(\n paymentMethodName: string,\n options?: PaymentMethodsGetByUserOptionalParams,\n ): Promise<PaymentMethodsGetByUserResponse> {\n return this.client.sendOperationRequest(\n { paymentMethodName, options },\n getByUserOperationSpec,\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?: PaymentMethodsListByBillingProfileNextOptionalParams,\n ): Promise<PaymentMethodsListByBillingProfileNextResponse> {\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?: PaymentMethodsListByBillingAccountNextOptionalParams,\n ): Promise<PaymentMethodsListByBillingAccountNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, nextLink, options },\n listByBillingAccountNextOperationSpec,\n );\n }\n\n /**\n * ListByUserNext\n * @param nextLink The nextLink from the previous successful call to the ListByUser method.\n * @param options The options parameters.\n */\n private _listByUserNext(\n nextLink: string,\n options?: PaymentMethodsListByUserNextOptionalParams,\n ): Promise<PaymentMethodsListByUserNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listByUserNextOperationSpec,\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}/paymentMethodLinks\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethodLinksListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName1,\n Parameters.billingProfileName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/paymentMethodLinks/{paymentMethodName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethodLink,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName1,\n Parameters.billingProfileName1,\n Parameters.paymentMethodName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/paymentMethods\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethodsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName1],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getByBillingAccountOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/paymentMethods/{paymentMethodName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethod,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName1,\n Parameters.paymentMethodName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByUserOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/paymentMethods\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethodsListResult,\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 deleteByUserOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/paymentMethods/{paymentMethodName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.paymentMethodName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getByUserOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/paymentMethods/{paymentMethodName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethod,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.paymentMethodName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingProfileNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethodLinksListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.billingAccountName1,\n Parameters.billingProfileName1,\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.PaymentMethodsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.billingAccountName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByUserNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentMethodsListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -12,6 +12,7 @@ import { createHttpPoller, } from "@azure/core-lro";
|
|
|
12
12
|
import { createLroSpec } from "../lroImpl.js";
|
|
13
13
|
/** Class containing Policies operations. */
|
|
14
14
|
export class PoliciesImpl {
|
|
15
|
+
client;
|
|
15
16
|
/**
|
|
16
17
|
* Initialize a new instance of the class Policies class.
|
|
17
18
|
* @param client Reference to the service client
|
|
@@ -52,14 +53,19 @@ export class PoliciesImpl {
|
|
|
52
53
|
return this.client.sendOperationRequest(args, spec);
|
|
53
54
|
};
|
|
54
55
|
const sendOperationFn = async (args, spec) => {
|
|
55
|
-
var _a;
|
|
56
56
|
let currentRawResponse = undefined;
|
|
57
|
-
const providedCallback =
|
|
57
|
+
const providedCallback = args.options?.onResponse;
|
|
58
58
|
const callback = (rawResponse, flatResponse) => {
|
|
59
59
|
currentRawResponse = rawResponse;
|
|
60
|
-
providedCallback
|
|
60
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
61
|
+
};
|
|
62
|
+
const updatedArgs = {
|
|
63
|
+
...args,
|
|
64
|
+
options: {
|
|
65
|
+
...args.options,
|
|
66
|
+
onResponse: callback,
|
|
67
|
+
},
|
|
61
68
|
};
|
|
62
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
63
69
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
64
70
|
return {
|
|
65
71
|
flatResponse,
|
|
@@ -82,8 +88,8 @@ export class PoliciesImpl {
|
|
|
82
88
|
spec: createOrUpdateByCustomerOperationSpec,
|
|
83
89
|
});
|
|
84
90
|
const poller = await createHttpPoller(lro, {
|
|
85
|
-
restoreFrom: options
|
|
86
|
-
intervalInMs: options
|
|
91
|
+
restoreFrom: options?.resumeFrom,
|
|
92
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
87
93
|
});
|
|
88
94
|
await poller.poll();
|
|
89
95
|
return poller;
|
|
@@ -124,14 +130,19 @@ export class PoliciesImpl {
|
|
|
124
130
|
return this.client.sendOperationRequest(args, spec);
|
|
125
131
|
};
|
|
126
132
|
const sendOperationFn = async (args, spec) => {
|
|
127
|
-
var _a;
|
|
128
133
|
let currentRawResponse = undefined;
|
|
129
|
-
const providedCallback =
|
|
134
|
+
const providedCallback = args.options?.onResponse;
|
|
130
135
|
const callback = (rawResponse, flatResponse) => {
|
|
131
136
|
currentRawResponse = rawResponse;
|
|
132
|
-
providedCallback
|
|
137
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
138
|
+
};
|
|
139
|
+
const updatedArgs = {
|
|
140
|
+
...args,
|
|
141
|
+
options: {
|
|
142
|
+
...args.options,
|
|
143
|
+
onResponse: callback,
|
|
144
|
+
},
|
|
133
145
|
};
|
|
134
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
135
146
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
136
147
|
return {
|
|
137
148
|
flatResponse,
|
|
@@ -148,8 +159,8 @@ export class PoliciesImpl {
|
|
|
148
159
|
spec: createOrUpdateByBillingProfileOperationSpec,
|
|
149
160
|
});
|
|
150
161
|
const poller = await createHttpPoller(lro, {
|
|
151
|
-
restoreFrom: options
|
|
152
|
-
intervalInMs: options
|
|
162
|
+
restoreFrom: options?.resumeFrom,
|
|
163
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
153
164
|
});
|
|
154
165
|
await poller.poll();
|
|
155
166
|
return poller;
|
|
@@ -189,14 +200,19 @@ export class PoliciesImpl {
|
|
|
189
200
|
return this.client.sendOperationRequest(args, spec);
|
|
190
201
|
};
|
|
191
202
|
const sendOperationFn = async (args, spec) => {
|
|
192
|
-
var _a;
|
|
193
203
|
let currentRawResponse = undefined;
|
|
194
|
-
const providedCallback =
|
|
204
|
+
const providedCallback = args.options?.onResponse;
|
|
195
205
|
const callback = (rawResponse, flatResponse) => {
|
|
196
206
|
currentRawResponse = rawResponse;
|
|
197
|
-
providedCallback
|
|
207
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
208
|
+
};
|
|
209
|
+
const updatedArgs = {
|
|
210
|
+
...args,
|
|
211
|
+
options: {
|
|
212
|
+
...args.options,
|
|
213
|
+
onResponse: callback,
|
|
214
|
+
},
|
|
198
215
|
};
|
|
199
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
200
216
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
201
217
|
return {
|
|
202
218
|
flatResponse,
|
|
@@ -213,8 +229,8 @@ export class PoliciesImpl {
|
|
|
213
229
|
spec: createOrUpdateByCustomerAtBillingAccountOperationSpec,
|
|
214
230
|
});
|
|
215
231
|
const poller = await createHttpPoller(lro, {
|
|
216
|
-
restoreFrom: options
|
|
217
|
-
intervalInMs: options
|
|
232
|
+
restoreFrom: options?.resumeFrom,
|
|
233
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
218
234
|
});
|
|
219
235
|
await poller.poll();
|
|
220
236
|
return poller;
|
|
@@ -250,14 +266,19 @@ export class PoliciesImpl {
|
|
|
250
266
|
return this.client.sendOperationRequest(args, spec);
|
|
251
267
|
};
|
|
252
268
|
const sendOperationFn = async (args, spec) => {
|
|
253
|
-
var _a;
|
|
254
269
|
let currentRawResponse = undefined;
|
|
255
|
-
const providedCallback =
|
|
270
|
+
const providedCallback = args.options?.onResponse;
|
|
256
271
|
const callback = (rawResponse, flatResponse) => {
|
|
257
272
|
currentRawResponse = rawResponse;
|
|
258
|
-
providedCallback
|
|
273
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
274
|
+
};
|
|
275
|
+
const updatedArgs = {
|
|
276
|
+
...args,
|
|
277
|
+
options: {
|
|
278
|
+
...args.options,
|
|
279
|
+
onResponse: callback,
|
|
280
|
+
},
|
|
259
281
|
};
|
|
260
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
261
282
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
262
283
|
return {
|
|
263
284
|
flatResponse,
|
|
@@ -274,8 +295,8 @@ export class PoliciesImpl {
|
|
|
274
295
|
spec: createOrUpdateByBillingAccountOperationSpec,
|
|
275
296
|
});
|
|
276
297
|
const poller = await createHttpPoller(lro, {
|
|
277
|
-
restoreFrom: options
|
|
278
|
-
intervalInMs: options
|
|
298
|
+
restoreFrom: options?.resumeFrom,
|
|
299
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
279
300
|
});
|
|
280
301
|
await poller.poll();
|
|
281
302
|
return poller;
|