@azure/arm-billing 5.0.1-alpha.20250619.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
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing BillingAccounts operations. */
|
|
20
20
|
class BillingAccountsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class BillingAccounts class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -41,53 +42,36 @@ class BillingAccountsImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.listInvoiceSectionsByCreateSubscriptionPermissionPagingPage(billingAccountName, options, settings);
|
|
48
49
|
},
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
listInvoiceSectionsByCreateSubscriptionPermissionPagingPage(billingAccountName, options, settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
});
|
|
52
|
+
async *listInvoiceSectionsByCreateSubscriptionPermissionPagingPage(billingAccountName, options, settings) {
|
|
53
|
+
let result;
|
|
54
|
+
let continuationToken = settings?.continuationToken;
|
|
55
|
+
if (!continuationToken) {
|
|
56
|
+
result = await this._listInvoiceSectionsByCreateSubscriptionPermission(billingAccountName, options);
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
62
|
+
while (continuationToken) {
|
|
63
|
+
result =
|
|
64
|
+
await this._listInvoiceSectionsByCreateSubscriptionPermissionNext(billingAccountName, continuationToken, options);
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
let page = result.value || [];
|
|
67
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
68
|
+
yield page;
|
|
69
|
+
}
|
|
71
70
|
}
|
|
72
|
-
listInvoiceSectionsByCreateSubscriptionPermissionPagingAll(billingAccountName, options) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listInvoiceSectionsByCreateSubscriptionPermissionPagingPage(billingAccountName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
77
|
-
_c = _f.value;
|
|
78
|
-
_d = false;
|
|
79
|
-
const page = _c;
|
|
80
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
84
|
-
finally {
|
|
85
|
-
try {
|
|
86
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
87
|
-
}
|
|
88
|
-
finally { if (e_1) throw e_1.error; }
|
|
89
|
-
}
|
|
90
|
-
});
|
|
71
|
+
async *listInvoiceSectionsByCreateSubscriptionPermissionPagingAll(billingAccountName, options) {
|
|
72
|
+
for await (const page of this.listInvoiceSectionsByCreateSubscriptionPermissionPagingPage(billingAccountName, options)) {
|
|
73
|
+
yield* page;
|
|
74
|
+
}
|
|
91
75
|
}
|
|
92
76
|
/**
|
|
93
77
|
* Lists the billing accounts that a user has access to.
|
|
@@ -103,52 +87,35 @@ class BillingAccountsImpl {
|
|
|
103
87
|
return this;
|
|
104
88
|
},
|
|
105
89
|
byPage: (settings) => {
|
|
106
|
-
if (settings
|
|
90
|
+
if (settings?.maxPageSize) {
|
|
107
91
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
108
92
|
}
|
|
109
93
|
return this.listPagingPage(options, settings);
|
|
110
94
|
},
|
|
111
95
|
};
|
|
112
96
|
}
|
|
113
|
-
listPagingPage(options, settings) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
});
|
|
97
|
+
async *listPagingPage(options, settings) {
|
|
98
|
+
let result;
|
|
99
|
+
let continuationToken = settings?.continuationToken;
|
|
100
|
+
if (!continuationToken) {
|
|
101
|
+
result = await this._list(options);
|
|
102
|
+
let page = result.value || [];
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
105
|
+
yield page;
|
|
106
|
+
}
|
|
107
|
+
while (continuationToken) {
|
|
108
|
+
result = await this._listNext(continuationToken, options);
|
|
109
|
+
continuationToken = result.nextLink;
|
|
110
|
+
let page = result.value || [];
|
|
111
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
112
|
+
yield page;
|
|
113
|
+
}
|
|
132
114
|
}
|
|
133
|
-
listPagingAll(options) {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
138
|
-
_c = _f.value;
|
|
139
|
-
_d = false;
|
|
140
|
-
const page = _c;
|
|
141
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
145
|
-
finally {
|
|
146
|
-
try {
|
|
147
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
148
|
-
}
|
|
149
|
-
finally { if (e_2) throw e_2.error; }
|
|
150
|
-
}
|
|
151
|
-
});
|
|
115
|
+
async *listPagingAll(options) {
|
|
116
|
+
for await (const page of this.listPagingPage(options)) {
|
|
117
|
+
yield* page;
|
|
118
|
+
}
|
|
152
119
|
}
|
|
153
120
|
/**
|
|
154
121
|
* Adds payment terms to all the billing profiles under the billing account. Currently, payment terms
|
|
@@ -164,14 +131,19 @@ class BillingAccountsImpl {
|
|
|
164
131
|
return this.client.sendOperationRequest(args, spec);
|
|
165
132
|
};
|
|
166
133
|
const sendOperationFn = async (args, spec) => {
|
|
167
|
-
var _a;
|
|
168
134
|
let currentRawResponse = undefined;
|
|
169
|
-
const providedCallback =
|
|
135
|
+
const providedCallback = args.options?.onResponse;
|
|
170
136
|
const callback = (rawResponse, flatResponse) => {
|
|
171
137
|
currentRawResponse = rawResponse;
|
|
172
|
-
providedCallback
|
|
138
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
139
|
+
};
|
|
140
|
+
const updatedArgs = {
|
|
141
|
+
...args,
|
|
142
|
+
options: {
|
|
143
|
+
...args.options,
|
|
144
|
+
onResponse: callback,
|
|
145
|
+
},
|
|
173
146
|
};
|
|
174
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
175
147
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
176
148
|
return {
|
|
177
149
|
flatResponse,
|
|
@@ -188,8 +160,8 @@ class BillingAccountsImpl {
|
|
|
188
160
|
spec: addPaymentTermsOperationSpec,
|
|
189
161
|
});
|
|
190
162
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
191
|
-
restoreFrom: options
|
|
192
|
-
intervalInMs: options
|
|
163
|
+
restoreFrom: options?.resumeFrom,
|
|
164
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
193
165
|
resourceLocationConfig: "location",
|
|
194
166
|
});
|
|
195
167
|
await poller.poll();
|
|
@@ -221,14 +193,19 @@ class BillingAccountsImpl {
|
|
|
221
193
|
return this.client.sendOperationRequest(args, spec);
|
|
222
194
|
};
|
|
223
195
|
const sendOperationFn = async (args, spec) => {
|
|
224
|
-
var _a;
|
|
225
196
|
let currentRawResponse = undefined;
|
|
226
|
-
const providedCallback =
|
|
197
|
+
const providedCallback = args.options?.onResponse;
|
|
227
198
|
const callback = (rawResponse, flatResponse) => {
|
|
228
199
|
currentRawResponse = rawResponse;
|
|
229
|
-
providedCallback
|
|
200
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
201
|
+
};
|
|
202
|
+
const updatedArgs = {
|
|
203
|
+
...args,
|
|
204
|
+
options: {
|
|
205
|
+
...args.options,
|
|
206
|
+
onResponse: callback,
|
|
207
|
+
},
|
|
230
208
|
};
|
|
231
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
232
209
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
233
210
|
return {
|
|
234
211
|
flatResponse,
|
|
@@ -245,8 +222,8 @@ class BillingAccountsImpl {
|
|
|
245
222
|
spec: cancelPaymentTermsOperationSpec,
|
|
246
223
|
});
|
|
247
224
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
248
|
-
restoreFrom: options
|
|
249
|
-
intervalInMs: options
|
|
225
|
+
restoreFrom: options?.resumeFrom,
|
|
226
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
250
227
|
resourceLocationConfig: "location",
|
|
251
228
|
});
|
|
252
229
|
await poller.poll();
|
|
@@ -315,14 +292,19 @@ class BillingAccountsImpl {
|
|
|
315
292
|
return this.client.sendOperationRequest(args, spec);
|
|
316
293
|
};
|
|
317
294
|
const sendOperationFn = async (args, spec) => {
|
|
318
|
-
var _a;
|
|
319
295
|
let currentRawResponse = undefined;
|
|
320
|
-
const providedCallback =
|
|
296
|
+
const providedCallback = args.options?.onResponse;
|
|
321
297
|
const callback = (rawResponse, flatResponse) => {
|
|
322
298
|
currentRawResponse = rawResponse;
|
|
323
|
-
providedCallback
|
|
299
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
300
|
+
};
|
|
301
|
+
const updatedArgs = {
|
|
302
|
+
...args,
|
|
303
|
+
options: {
|
|
304
|
+
...args.options,
|
|
305
|
+
onResponse: callback,
|
|
306
|
+
},
|
|
324
307
|
};
|
|
325
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
326
308
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
327
309
|
return {
|
|
328
310
|
flatResponse,
|
|
@@ -339,8 +321,8 @@ class BillingAccountsImpl {
|
|
|
339
321
|
spec: updateOperationSpec,
|
|
340
322
|
});
|
|
341
323
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
342
|
-
restoreFrom: options
|
|
343
|
-
intervalInMs: options
|
|
324
|
+
restoreFrom: options?.resumeFrom,
|
|
325
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
344
326
|
resourceLocationConfig: "location",
|
|
345
327
|
});
|
|
346
328
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billingAccounts.js","sourceRoot":"","sources":["../../../src/operations/billingAccounts.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AA4B9C,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;IAG9B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,iDAAiD,CACtD,kBAA0B,EAC1B,OAAwF;QAExF,MAAM,IAAI,GACR,IAAI,CAAC,0DAA0D,CAC7D,kBAAkB,EAClB,OAAO,CACR,CAAC;QACJ,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,2DAA2D,CACrE,kBAAkB,EAClB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,2DAA2D,CACxE,kBAA0B,EAC1B,OAAwF,EACxF,QAAuB;;YAEvB,IAAI,MAAgF,CAAC;YACrF,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB,CAAC;YACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;gBACvB,MAAM,GAAG,sBAAM,IAAI,CAAC,kDAAkD,CACpE,kBAAkB,EAClB,OAAO,CACR,CAAA,CAAC;gBACF,IAAI,IAAI,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U,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,kEAAkE,GACtE;IACE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+CAA+C;SACpE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACJ,MAAM,qBAAqB,GAA6B;IACtD,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 { BillingAccounts } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BillingManagementClient } from \"../billingManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n InvoiceSectionWithCreateSubPermission,\n BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextOptionalParams,\n BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams,\n BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionResponse,\n BillingAccount,\n BillingAccountsListNextOptionalParams,\n BillingAccountsListOptionalParams,\n BillingAccountsListResponse,\n PaymentTerm,\n BillingAccountsAddPaymentTermsOptionalParams,\n BillingAccountsAddPaymentTermsResponse,\n BillingAccountsCancelPaymentTermsOptionalParams,\n BillingAccountsCancelPaymentTermsResponse,\n BillingAccountsConfirmTransitionOptionalParams,\n BillingAccountsConfirmTransitionResponse,\n BillingAccountsValidatePaymentTermsOptionalParams,\n BillingAccountsValidatePaymentTermsResponse,\n BillingAccountsGetOptionalParams,\n BillingAccountsGetResponse,\n BillingAccountPatch,\n BillingAccountsUpdateOptionalParams,\n BillingAccountsUpdateResponse,\n BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextResponse,\n BillingAccountsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BillingAccounts operations. */\nexport class BillingAccountsImpl implements BillingAccounts {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class BillingAccounts class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the invoice sections for which the user has permission to create Azure subscriptions. 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 listInvoiceSectionsByCreateSubscriptionPermission(\n billingAccountName: string,\n options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams,\n ): PagedAsyncIterableIterator<InvoiceSectionWithCreateSubPermission> {\n const iter =\n this.listInvoiceSectionsByCreateSubscriptionPermissionPagingAll(\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.listInvoiceSectionsByCreateSubscriptionPermissionPagingPage(\n billingAccountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listInvoiceSectionsByCreateSubscriptionPermissionPagingPage(\n billingAccountName: string,\n options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<InvoiceSectionWithCreateSubPermission[]> {\n let result: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listInvoiceSectionsByCreateSubscriptionPermission(\n billingAccountName,\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 =\n await this._listInvoiceSectionsByCreateSubscriptionPermissionNext(\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 *listInvoiceSectionsByCreateSubscriptionPermissionPagingAll(\n billingAccountName: string,\n options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams,\n ): AsyncIterableIterator<InvoiceSectionWithCreateSubPermission> {\n for await (const page of this.listInvoiceSectionsByCreateSubscriptionPermissionPagingPage(\n billingAccountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the billing accounts that a user has access to.\n * @param options The options parameters.\n */\n public list(\n options?: BillingAccountsListOptionalParams,\n ): PagedAsyncIterableIterator<BillingAccount> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: BillingAccountsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<BillingAccount[]> {\n let result: BillingAccountsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: BillingAccountsListOptionalParams,\n ): AsyncIterableIterator<BillingAccount> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Adds payment terms to all the billing profiles under the billing account. Currently, payment terms\n * can be added only on billing accounts that have Agreement Type as 'Microsoft Customer Agreement' and\n * AccountType as 'Enterprise'. This action needs pre-authorization and only Field Sellers are\n * authorized to add the payment terms and is not a self-serve action.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters The properties of payment term.\n * @param options The options parameters.\n */\n async beginAddPaymentTerms(\n billingAccountName: string,\n parameters: PaymentTerm[],\n options?: BillingAccountsAddPaymentTermsOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<BillingAccountsAddPaymentTermsResponse>,\n BillingAccountsAddPaymentTermsResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<BillingAccountsAddPaymentTermsResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, parameters, options },\n spec: addPaymentTermsOperationSpec,\n });\n const poller = await createHttpPoller<\n BillingAccountsAddPaymentTermsResponse,\n OperationState<BillingAccountsAddPaymentTermsResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Adds payment terms to all the billing profiles under the billing account. Currently, payment terms\n * can be added only on billing accounts that have Agreement Type as 'Microsoft Customer Agreement' and\n * AccountType as 'Enterprise'. This action needs pre-authorization and only Field Sellers are\n * authorized to add the payment terms and is not a self-serve action.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters The properties of payment term.\n * @param options The options parameters.\n */\n async beginAddPaymentTermsAndWait(\n billingAccountName: string,\n parameters: PaymentTerm[],\n options?: BillingAccountsAddPaymentTermsOptionalParams,\n ): Promise<BillingAccountsAddPaymentTermsResponse> {\n const poller = await this.beginAddPaymentTerms(\n billingAccountName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Cancels all the payment terms on billing account that falls after the cancellation date in the\n * request. Currently, cancel payment terms is only served by admin actions and is not a self-serve\n * action.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters Date after which any payment terms that needs to be cancelled.\n * @param options The options parameters.\n */\n async beginCancelPaymentTerms(\n billingAccountName: string,\n parameters: Date,\n options?: BillingAccountsCancelPaymentTermsOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<BillingAccountsCancelPaymentTermsResponse>,\n BillingAccountsCancelPaymentTermsResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<BillingAccountsCancelPaymentTermsResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, parameters, options },\n spec: cancelPaymentTermsOperationSpec,\n });\n const poller = await createHttpPoller<\n BillingAccountsCancelPaymentTermsResponse,\n OperationState<BillingAccountsCancelPaymentTermsResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Cancels all the payment terms on billing account that falls after the cancellation date in the\n * request. Currently, cancel payment terms is only served by admin actions and is not a self-serve\n * action.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters Date after which any payment terms that needs to be cancelled.\n * @param options The options parameters.\n */\n async beginCancelPaymentTermsAndWait(\n billingAccountName: string,\n parameters: Date,\n options?: BillingAccountsCancelPaymentTermsOptionalParams,\n ): Promise<BillingAccountsCancelPaymentTermsResponse> {\n const poller = await this.beginCancelPaymentTerms(\n billingAccountName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the transition details for a billing account that has transitioned from agreement type\n * Microsoft Online Services Program to agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param options The options parameters.\n */\n confirmTransition(\n billingAccountName: string,\n options?: BillingAccountsConfirmTransitionOptionalParams,\n ): Promise<BillingAccountsConfirmTransitionResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, options },\n confirmTransitionOperationSpec,\n );\n }\n\n /**\n * Lists the invoice sections for which the user has permission to create Azure subscriptions. 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 _listInvoiceSectionsByCreateSubscriptionPermission(\n billingAccountName: string,\n options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams,\n ): Promise<BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, options },\n listInvoiceSectionsByCreateSubscriptionPermissionOperationSpec,\n );\n }\n\n /**\n * Validates payment terms on a billing account with agreement type 'Microsoft Customer Agreement' and\n * account type 'Enterprise'.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters The properties of payment term.\n * @param options The options parameters.\n */\n validatePaymentTerms(\n billingAccountName: string,\n parameters: PaymentTerm[],\n options?: BillingAccountsValidatePaymentTermsOptionalParams,\n ): Promise<BillingAccountsValidatePaymentTermsResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, parameters, options },\n validatePaymentTermsOperationSpec,\n );\n }\n\n /**\n * Gets a billing account by its ID.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param options The options parameters.\n */\n get(\n billingAccountName: string,\n options?: BillingAccountsGetOptionalParams,\n ): Promise<BillingAccountsGetResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Updates the properties of a billing account. Currently, displayName and address can be updated for\n * billing accounts with agreement type Microsoft Customer Agreement. Currently address and\n * notification email address can be updated for billing accounts with agreement type Microsoft Online\n * Services Agreement. Currently, purchase order number can be edited for billing accounts with\n * agreement type Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A billing account.\n * @param options The options parameters.\n */\n async beginUpdate(\n billingAccountName: string,\n parameters: BillingAccountPatch,\n options?: BillingAccountsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<BillingAccountsUpdateResponse>,\n BillingAccountsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<BillingAccountsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, parameters, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n BillingAccountsUpdateResponse,\n OperationState<BillingAccountsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the properties of a billing account. Currently, displayName and address can be updated for\n * billing accounts with agreement type Microsoft Customer Agreement. Currently address and\n * notification email address can be updated for billing accounts with agreement type Microsoft Online\n * Services Agreement. Currently, purchase order number can be edited for billing accounts with\n * agreement type Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A billing account.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n billingAccountName: string,\n parameters: BillingAccountPatch,\n options?: BillingAccountsUpdateOptionalParams,\n ): Promise<BillingAccountsUpdateResponse> {\n const poller = await this.beginUpdate(\n billingAccountName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the billing accounts that a user has access to.\n * @param options The options parameters.\n */\n private _list(\n options?: BillingAccountsListOptionalParams,\n ): Promise<BillingAccountsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListInvoiceSectionsByCreateSubscriptionPermissionNext\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param nextLink The nextLink from the previous successful call to the\n * ListInvoiceSectionsByCreateSubscriptionPermission method.\n * @param options The options parameters.\n */\n private _listInvoiceSectionsByCreateSubscriptionPermissionNext(\n billingAccountName: string,\n nextLink: string,\n options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextOptionalParams,\n ): Promise<BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, nextLink, options },\n listInvoiceSectionsByCreateSubscriptionPermissionNextOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: BillingAccountsListNextOptionalParams,\n ): Promise<BillingAccountsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst addPaymentTermsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/addPaymentTerms\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccount,\n },\n 201: {\n bodyMapper: Mappers.BillingAccount,\n },\n 202: {\n bodyMapper: Mappers.BillingAccount,\n },\n 204: {\n bodyMapper: Mappers.BillingAccount,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst cancelPaymentTermsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/cancelPaymentTerms\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccount,\n },\n 201: {\n bodyMapper: Mappers.BillingAccount,\n },\n 202: {\n bodyMapper: Mappers.BillingAccount,\n },\n 204: {\n bodyMapper: Mappers.BillingAccount,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst confirmTransitionOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/confirmTransition\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransitionDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listInvoiceSectionsByCreateSubscriptionPermissionOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/listInvoiceSectionsWithCreateSubscriptionPermission\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceSectionWithCreateSubPermissionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst validatePaymentTermsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/validatePaymentTerms\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentTermsEligibilityResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccount,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccount,\n },\n 201: {\n bodyMapper: Mappers.BillingAccount,\n },\n 202: {\n bodyMapper: Mappers.BillingAccount,\n },\n 204: {\n bodyMapper: Mappers.BillingAccount,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccountListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.expand,\n Parameters.filter,\n Parameters.top,\n Parameters.skip,\n Parameters.search,\n Parameters.includeAll,\n Parameters.includeAllWithoutBillingProfiles,\n Parameters.includeDeleted,\n Parameters.includePendingAgreement,\n Parameters.includeResellee,\n Parameters.legalOwnerTID,\n Parameters.legalOwnerOID,\n ],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listInvoiceSectionsByCreateSubscriptionPermissionNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceSectionWithCreateSubPermissionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccountListResult,\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":"billingAccounts.js","sourceRoot":"","sources":["../../../src/operations/billingAccounts.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AA4B9C,4CAA4C;AAC5C,mDAAmD;AACnD,MAAa,mBAAmB;IACb,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,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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 { BillingAccounts } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { BillingManagementClient } from \"../billingManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n InvoiceSectionWithCreateSubPermission,\n BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextOptionalParams,\n BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams,\n BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionResponse,\n BillingAccount,\n BillingAccountsListNextOptionalParams,\n BillingAccountsListOptionalParams,\n BillingAccountsListResponse,\n PaymentTerm,\n BillingAccountsAddPaymentTermsOptionalParams,\n BillingAccountsAddPaymentTermsResponse,\n BillingAccountsCancelPaymentTermsOptionalParams,\n BillingAccountsCancelPaymentTermsResponse,\n BillingAccountsConfirmTransitionOptionalParams,\n BillingAccountsConfirmTransitionResponse,\n BillingAccountsValidatePaymentTermsOptionalParams,\n BillingAccountsValidatePaymentTermsResponse,\n BillingAccountsGetOptionalParams,\n BillingAccountsGetResponse,\n BillingAccountPatch,\n BillingAccountsUpdateOptionalParams,\n BillingAccountsUpdateResponse,\n BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextResponse,\n BillingAccountsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BillingAccounts operations. */\nexport class BillingAccountsImpl implements BillingAccounts {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class BillingAccounts class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the invoice sections for which the user has permission to create Azure subscriptions. 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 listInvoiceSectionsByCreateSubscriptionPermission(\n billingAccountName: string,\n options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams,\n ): PagedAsyncIterableIterator<InvoiceSectionWithCreateSubPermission> {\n const iter =\n this.listInvoiceSectionsByCreateSubscriptionPermissionPagingAll(\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.listInvoiceSectionsByCreateSubscriptionPermissionPagingPage(\n billingAccountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listInvoiceSectionsByCreateSubscriptionPermissionPagingPage(\n billingAccountName: string,\n options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<InvoiceSectionWithCreateSubPermission[]> {\n let result: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listInvoiceSectionsByCreateSubscriptionPermission(\n billingAccountName,\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 =\n await this._listInvoiceSectionsByCreateSubscriptionPermissionNext(\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 *listInvoiceSectionsByCreateSubscriptionPermissionPagingAll(\n billingAccountName: string,\n options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams,\n ): AsyncIterableIterator<InvoiceSectionWithCreateSubPermission> {\n for await (const page of this.listInvoiceSectionsByCreateSubscriptionPermissionPagingPage(\n billingAccountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the billing accounts that a user has access to.\n * @param options The options parameters.\n */\n public list(\n options?: BillingAccountsListOptionalParams,\n ): PagedAsyncIterableIterator<BillingAccount> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: BillingAccountsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<BillingAccount[]> {\n let result: BillingAccountsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: BillingAccountsListOptionalParams,\n ): AsyncIterableIterator<BillingAccount> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Adds payment terms to all the billing profiles under the billing account. Currently, payment terms\n * can be added only on billing accounts that have Agreement Type as 'Microsoft Customer Agreement' and\n * AccountType as 'Enterprise'. This action needs pre-authorization and only Field Sellers are\n * authorized to add the payment terms and is not a self-serve action.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters The properties of payment term.\n * @param options The options parameters.\n */\n async beginAddPaymentTerms(\n billingAccountName: string,\n parameters: PaymentTerm[],\n options?: BillingAccountsAddPaymentTermsOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<BillingAccountsAddPaymentTermsResponse>,\n BillingAccountsAddPaymentTermsResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<BillingAccountsAddPaymentTermsResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, parameters, options },\n spec: addPaymentTermsOperationSpec,\n });\n const poller = await createHttpPoller<\n BillingAccountsAddPaymentTermsResponse,\n OperationState<BillingAccountsAddPaymentTermsResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Adds payment terms to all the billing profiles under the billing account. Currently, payment terms\n * can be added only on billing accounts that have Agreement Type as 'Microsoft Customer Agreement' and\n * AccountType as 'Enterprise'. This action needs pre-authorization and only Field Sellers are\n * authorized to add the payment terms and is not a self-serve action.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters The properties of payment term.\n * @param options The options parameters.\n */\n async beginAddPaymentTermsAndWait(\n billingAccountName: string,\n parameters: PaymentTerm[],\n options?: BillingAccountsAddPaymentTermsOptionalParams,\n ): Promise<BillingAccountsAddPaymentTermsResponse> {\n const poller = await this.beginAddPaymentTerms(\n billingAccountName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Cancels all the payment terms on billing account that falls after the cancellation date in the\n * request. Currently, cancel payment terms is only served by admin actions and is not a self-serve\n * action.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters Date after which any payment terms that needs to be cancelled.\n * @param options The options parameters.\n */\n async beginCancelPaymentTerms(\n billingAccountName: string,\n parameters: Date,\n options?: BillingAccountsCancelPaymentTermsOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<BillingAccountsCancelPaymentTermsResponse>,\n BillingAccountsCancelPaymentTermsResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<BillingAccountsCancelPaymentTermsResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, parameters, options },\n spec: cancelPaymentTermsOperationSpec,\n });\n const poller = await createHttpPoller<\n BillingAccountsCancelPaymentTermsResponse,\n OperationState<BillingAccountsCancelPaymentTermsResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Cancels all the payment terms on billing account that falls after the cancellation date in the\n * request. Currently, cancel payment terms is only served by admin actions and is not a self-serve\n * action.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters Date after which any payment terms that needs to be cancelled.\n * @param options The options parameters.\n */\n async beginCancelPaymentTermsAndWait(\n billingAccountName: string,\n parameters: Date,\n options?: BillingAccountsCancelPaymentTermsOptionalParams,\n ): Promise<BillingAccountsCancelPaymentTermsResponse> {\n const poller = await this.beginCancelPaymentTerms(\n billingAccountName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the transition details for a billing account that has transitioned from agreement type\n * Microsoft Online Services Program to agreement type Microsoft Customer Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param options The options parameters.\n */\n confirmTransition(\n billingAccountName: string,\n options?: BillingAccountsConfirmTransitionOptionalParams,\n ): Promise<BillingAccountsConfirmTransitionResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, options },\n confirmTransitionOperationSpec,\n );\n }\n\n /**\n * Lists the invoice sections for which the user has permission to create Azure subscriptions. 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 _listInvoiceSectionsByCreateSubscriptionPermission(\n billingAccountName: string,\n options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams,\n ): Promise<BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, options },\n listInvoiceSectionsByCreateSubscriptionPermissionOperationSpec,\n );\n }\n\n /**\n * Validates payment terms on a billing account with agreement type 'Microsoft Customer Agreement' and\n * account type 'Enterprise'.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters The properties of payment term.\n * @param options The options parameters.\n */\n validatePaymentTerms(\n billingAccountName: string,\n parameters: PaymentTerm[],\n options?: BillingAccountsValidatePaymentTermsOptionalParams,\n ): Promise<BillingAccountsValidatePaymentTermsResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, parameters, options },\n validatePaymentTermsOperationSpec,\n );\n }\n\n /**\n * Gets a billing account by its ID.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param options The options parameters.\n */\n get(\n billingAccountName: string,\n options?: BillingAccountsGetOptionalParams,\n ): Promise<BillingAccountsGetResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Updates the properties of a billing account. Currently, displayName and address can be updated for\n * billing accounts with agreement type Microsoft Customer Agreement. Currently address and\n * notification email address can be updated for billing accounts with agreement type Microsoft Online\n * Services Agreement. Currently, purchase order number can be edited for billing accounts with\n * agreement type Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A billing account.\n * @param options The options parameters.\n */\n async beginUpdate(\n billingAccountName: string,\n parameters: BillingAccountPatch,\n options?: BillingAccountsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<BillingAccountsUpdateResponse>,\n BillingAccountsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<BillingAccountsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, parameters, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n BillingAccountsUpdateResponse,\n OperationState<BillingAccountsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Updates the properties of a billing account. Currently, displayName and address can be updated for\n * billing accounts with agreement type Microsoft Customer Agreement. Currently address and\n * notification email address can be updated for billing accounts with agreement type Microsoft Online\n * Services Agreement. Currently, purchase order number can be edited for billing accounts with\n * agreement type Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param parameters A billing account.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n billingAccountName: string,\n parameters: BillingAccountPatch,\n options?: BillingAccountsUpdateOptionalParams,\n ): Promise<BillingAccountsUpdateResponse> {\n const poller = await this.beginUpdate(\n billingAccountName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Lists the billing accounts that a user has access to.\n * @param options The options parameters.\n */\n private _list(\n options?: BillingAccountsListOptionalParams,\n ): Promise<BillingAccountsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListInvoiceSectionsByCreateSubscriptionPermissionNext\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param nextLink The nextLink from the previous successful call to the\n * ListInvoiceSectionsByCreateSubscriptionPermission method.\n * @param options The options parameters.\n */\n private _listInvoiceSectionsByCreateSubscriptionPermissionNext(\n billingAccountName: string,\n nextLink: string,\n options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextOptionalParams,\n ): Promise<BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, nextLink, options },\n listInvoiceSectionsByCreateSubscriptionPermissionNextOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: BillingAccountsListNextOptionalParams,\n ): Promise<BillingAccountsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst addPaymentTermsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/addPaymentTerms\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccount,\n },\n 201: {\n bodyMapper: Mappers.BillingAccount,\n },\n 202: {\n bodyMapper: Mappers.BillingAccount,\n },\n 204: {\n bodyMapper: Mappers.BillingAccount,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst cancelPaymentTermsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/cancelPaymentTerms\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccount,\n },\n 201: {\n bodyMapper: Mappers.BillingAccount,\n },\n 202: {\n bodyMapper: Mappers.BillingAccount,\n },\n 204: {\n bodyMapper: Mappers.BillingAccount,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst confirmTransitionOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/confirmTransition\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransitionDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listInvoiceSectionsByCreateSubscriptionPermissionOperationSpec: coreClient.OperationSpec =\n {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/listInvoiceSectionsWithCreateSubscriptionPermission\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceSectionWithCreateSubPermissionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst validatePaymentTermsOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/validatePaymentTerms\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PaymentTermsEligibilityResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccount,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccount,\n },\n 201: {\n bodyMapper: Mappers.BillingAccount,\n },\n 202: {\n bodyMapper: Mappers.BillingAccount,\n },\n 204: {\n bodyMapper: Mappers.BillingAccount,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.parameters3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.billingAccountName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccountListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.expand,\n Parameters.filter,\n Parameters.top,\n Parameters.skip,\n Parameters.search,\n Parameters.includeAll,\n Parameters.includeAllWithoutBillingProfiles,\n Parameters.includeDeleted,\n Parameters.includePendingAgreement,\n Parameters.includeResellee,\n Parameters.legalOwnerTID,\n Parameters.legalOwnerOID,\n ],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listInvoiceSectionsByCreateSubscriptionPermissionNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InvoiceSectionWithCreateSubPermissionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BillingAccountListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|