@azure/arm-billing 5.0.1-alpha.20250619.1 → 5.0.1-alpha.20250730.1
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
|
@@ -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";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing Transactions operations. */
|
|
17
16
|
export class TransactionsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Transactions class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -47,52 +47,35 @@ export class TransactionsImpl {
|
|
|
47
47
|
return this;
|
|
48
48
|
},
|
|
49
49
|
byPage: (settings) => {
|
|
50
|
-
if (settings
|
|
50
|
+
if (settings?.maxPageSize) {
|
|
51
51
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
52
52
|
}
|
|
53
53
|
return this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options, settings);
|
|
54
54
|
},
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options, settings) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
});
|
|
57
|
+
async *listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options, settings) {
|
|
58
|
+
let result;
|
|
59
|
+
let continuationToken = settings?.continuationToken;
|
|
60
|
+
if (!continuationToken) {
|
|
61
|
+
result = await this._listByCustomer(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options);
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
setContinuationToken(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
67
|
+
while (continuationToken) {
|
|
68
|
+
result = await this._listByCustomerNext(billingAccountName, billingProfileName, customerName, continuationToken, options);
|
|
69
|
+
continuationToken = result.nextLink;
|
|
70
|
+
let page = result.value || [];
|
|
71
|
+
setContinuationToken(page, continuationToken);
|
|
72
|
+
yield page;
|
|
73
|
+
}
|
|
76
74
|
}
|
|
77
|
-
listByCustomerPagingAll(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options) {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
for (var _d = true, _e = __asyncValues(this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
82
|
-
_c = _f.value;
|
|
83
|
-
_d = false;
|
|
84
|
-
const page = _c;
|
|
85
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
89
|
-
finally {
|
|
90
|
-
try {
|
|
91
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
92
|
-
}
|
|
93
|
-
finally { if (e_1) throw e_1.error; }
|
|
94
|
-
}
|
|
95
|
-
});
|
|
75
|
+
async *listByCustomerPagingAll(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options) {
|
|
76
|
+
for await (const page of this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options)) {
|
|
77
|
+
yield* page;
|
|
78
|
+
}
|
|
96
79
|
}
|
|
97
80
|
/**
|
|
98
81
|
* Lists the billed or unbilled transactions by invoice section name for given start date and end date.
|
|
@@ -119,52 +102,35 @@ export class TransactionsImpl {
|
|
|
119
102
|
return this;
|
|
120
103
|
},
|
|
121
104
|
byPage: (settings) => {
|
|
122
|
-
if (settings
|
|
105
|
+
if (settings?.maxPageSize) {
|
|
123
106
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
124
107
|
}
|
|
125
108
|
return this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options, settings);
|
|
126
109
|
},
|
|
127
110
|
};
|
|
128
111
|
}
|
|
129
|
-
listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options, settings) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}
|
|
147
|
-
});
|
|
112
|
+
async *listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options, settings) {
|
|
113
|
+
let result;
|
|
114
|
+
let continuationToken = settings?.continuationToken;
|
|
115
|
+
if (!continuationToken) {
|
|
116
|
+
result = await this._listByInvoiceSection(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options);
|
|
117
|
+
let page = result.value || [];
|
|
118
|
+
continuationToken = result.nextLink;
|
|
119
|
+
setContinuationToken(page, continuationToken);
|
|
120
|
+
yield page;
|
|
121
|
+
}
|
|
122
|
+
while (continuationToken) {
|
|
123
|
+
result = await this._listByInvoiceSectionNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options);
|
|
124
|
+
continuationToken = result.nextLink;
|
|
125
|
+
let page = result.value || [];
|
|
126
|
+
setContinuationToken(page, continuationToken);
|
|
127
|
+
yield page;
|
|
128
|
+
}
|
|
148
129
|
}
|
|
149
|
-
listByInvoiceSectionPagingAll(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options) {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
for (var _d = true, _e = __asyncValues(this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
154
|
-
_c = _f.value;
|
|
155
|
-
_d = false;
|
|
156
|
-
const page = _c;
|
|
157
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
161
|
-
finally {
|
|
162
|
-
try {
|
|
163
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
164
|
-
}
|
|
165
|
-
finally { if (e_2) throw e_2.error; }
|
|
166
|
-
}
|
|
167
|
-
});
|
|
130
|
+
async *listByInvoiceSectionPagingAll(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options) {
|
|
131
|
+
for await (const page of this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options)) {
|
|
132
|
+
yield* page;
|
|
133
|
+
}
|
|
168
134
|
}
|
|
169
135
|
/**
|
|
170
136
|
* Lists the billed or unbilled transactions by billing profile name for given start and end date.
|
|
@@ -190,52 +156,35 @@ export class TransactionsImpl {
|
|
|
190
156
|
return this;
|
|
191
157
|
},
|
|
192
158
|
byPage: (settings) => {
|
|
193
|
-
if (settings
|
|
159
|
+
if (settings?.maxPageSize) {
|
|
194
160
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
195
161
|
}
|
|
196
162
|
return this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options, settings);
|
|
197
163
|
},
|
|
198
164
|
};
|
|
199
165
|
}
|
|
200
|
-
listByBillingProfilePagingPage(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options, settings) {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
});
|
|
166
|
+
async *listByBillingProfilePagingPage(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options, settings) {
|
|
167
|
+
let result;
|
|
168
|
+
let continuationToken = settings?.continuationToken;
|
|
169
|
+
if (!continuationToken) {
|
|
170
|
+
result = await this._listByBillingProfile(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options);
|
|
171
|
+
let page = result.value || [];
|
|
172
|
+
continuationToken = result.nextLink;
|
|
173
|
+
setContinuationToken(page, continuationToken);
|
|
174
|
+
yield page;
|
|
175
|
+
}
|
|
176
|
+
while (continuationToken) {
|
|
177
|
+
result = await this._listByBillingProfileNext(billingAccountName, billingProfileName, continuationToken, options);
|
|
178
|
+
continuationToken = result.nextLink;
|
|
179
|
+
let page = result.value || [];
|
|
180
|
+
setContinuationToken(page, continuationToken);
|
|
181
|
+
yield page;
|
|
182
|
+
}
|
|
219
183
|
}
|
|
220
|
-
listByBillingProfilePagingAll(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options) {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
for (var _d = true, _e = __asyncValues(this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
225
|
-
_c = _f.value;
|
|
226
|
-
_d = false;
|
|
227
|
-
const page = _c;
|
|
228
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
232
|
-
finally {
|
|
233
|
-
try {
|
|
234
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
235
|
-
}
|
|
236
|
-
finally { if (e_3) throw e_3.error; }
|
|
237
|
-
}
|
|
238
|
-
});
|
|
184
|
+
async *listByBillingProfilePagingAll(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options) {
|
|
185
|
+
for await (const page of this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options)) {
|
|
186
|
+
yield* page;
|
|
187
|
+
}
|
|
239
188
|
}
|
|
240
189
|
/**
|
|
241
190
|
* Lists the transactions for an invoice. Transactions include purchases, refunds and Azure usage
|
|
@@ -254,52 +203,35 @@ export class TransactionsImpl {
|
|
|
254
203
|
return this;
|
|
255
204
|
},
|
|
256
205
|
byPage: (settings) => {
|
|
257
|
-
if (settings
|
|
206
|
+
if (settings?.maxPageSize) {
|
|
258
207
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
259
208
|
}
|
|
260
209
|
return this.listByInvoicePagingPage(billingAccountName, invoiceName, options, settings);
|
|
261
210
|
},
|
|
262
211
|
};
|
|
263
212
|
}
|
|
264
|
-
listByInvoicePagingPage(billingAccountName, invoiceName, options, settings) {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
}
|
|
282
|
-
});
|
|
213
|
+
async *listByInvoicePagingPage(billingAccountName, invoiceName, options, settings) {
|
|
214
|
+
let result;
|
|
215
|
+
let continuationToken = settings?.continuationToken;
|
|
216
|
+
if (!continuationToken) {
|
|
217
|
+
result = await this._listByInvoice(billingAccountName, invoiceName, options);
|
|
218
|
+
let page = result.value || [];
|
|
219
|
+
continuationToken = result.nextLink;
|
|
220
|
+
setContinuationToken(page, continuationToken);
|
|
221
|
+
yield page;
|
|
222
|
+
}
|
|
223
|
+
while (continuationToken) {
|
|
224
|
+
result = await this._listByInvoiceNext(billingAccountName, invoiceName, continuationToken, options);
|
|
225
|
+
continuationToken = result.nextLink;
|
|
226
|
+
let page = result.value || [];
|
|
227
|
+
setContinuationToken(page, continuationToken);
|
|
228
|
+
yield page;
|
|
229
|
+
}
|
|
283
230
|
}
|
|
284
|
-
listByInvoicePagingAll(billingAccountName, invoiceName, options) {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
for (var _d = true, _e = __asyncValues(this.listByInvoicePagingPage(billingAccountName, invoiceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
289
|
-
_c = _f.value;
|
|
290
|
-
_d = false;
|
|
291
|
-
const page = _c;
|
|
292
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
296
|
-
finally {
|
|
297
|
-
try {
|
|
298
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
299
|
-
}
|
|
300
|
-
finally { if (e_4) throw e_4.error; }
|
|
301
|
-
}
|
|
302
|
-
});
|
|
231
|
+
async *listByInvoicePagingAll(billingAccountName, invoiceName, options) {
|
|
232
|
+
for await (const page of this.listByInvoicePagingPage(billingAccountName, invoiceName, options)) {
|
|
233
|
+
yield* page;
|
|
234
|
+
}
|
|
303
235
|
}
|
|
304
236
|
/**
|
|
305
237
|
* Lists the billed or unbilled transactions by customer id for given start date and end date.
|
|
@@ -399,14 +331,19 @@ export class TransactionsImpl {
|
|
|
399
331
|
return this.client.sendOperationRequest(args, spec);
|
|
400
332
|
};
|
|
401
333
|
const sendOperationFn = async (args, spec) => {
|
|
402
|
-
var _a;
|
|
403
334
|
let currentRawResponse = undefined;
|
|
404
|
-
const providedCallback =
|
|
335
|
+
const providedCallback = args.options?.onResponse;
|
|
405
336
|
const callback = (rawResponse, flatResponse) => {
|
|
406
337
|
currentRawResponse = rawResponse;
|
|
407
|
-
providedCallback
|
|
338
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
339
|
+
};
|
|
340
|
+
const updatedArgs = {
|
|
341
|
+
...args,
|
|
342
|
+
options: {
|
|
343
|
+
...args.options,
|
|
344
|
+
onResponse: callback,
|
|
345
|
+
},
|
|
408
346
|
};
|
|
409
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
410
347
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
411
348
|
return {
|
|
412
349
|
flatResponse,
|
|
@@ -423,8 +360,8 @@ export class TransactionsImpl {
|
|
|
423
360
|
spec: transactionsDownloadByInvoiceOperationSpec,
|
|
424
361
|
});
|
|
425
362
|
const poller = await createHttpPoller(lro, {
|
|
426
|
-
restoreFrom: options
|
|
427
|
-
intervalInMs: options
|
|
363
|
+
restoreFrom: options?.resumeFrom,
|
|
364
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
428
365
|
resourceLocationConfig: "location",
|
|
429
366
|
});
|
|
430
367
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../../src/operations/transactions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AA0B9C,4CAA4C;AAC5C,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IAG3B;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACI,cAAc,CACnB,kBAA0B,EAC1B,kBAA0B,EAC1B,YAAoB,EACpB,eAAqB,EACrB,aAAmB,EACnB,SAA0B,EAC1B,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,uBAAuB,CACvC,kBAAkB,EAClB,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,SAAS,EACT,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,a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CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;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,WAAW;KACvB;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 { Transactions } 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 Transaction,\n TransactionsListByCustomerNextOptionalParams,\n TransactionType,\n TransactionsListByCustomerOptionalParams,\n TransactionsListByCustomerResponse,\n TransactionsListByInvoiceSectionNextOptionalParams,\n TransactionsListByInvoiceSectionOptionalParams,\n TransactionsListByInvoiceSectionResponse,\n TransactionsListByBillingProfileNextOptionalParams,\n TransactionsListByBillingProfileOptionalParams,\n TransactionsListByBillingProfileResponse,\n TransactionsListByInvoiceNextOptionalParams,\n TransactionsListByInvoiceOptionalParams,\n TransactionsListByInvoiceResponse,\n TransactionsTransactionsDownloadByInvoiceOptionalParams,\n TransactionsTransactionsDownloadByInvoiceResponse,\n TransactionsGetTransactionSummaryByInvoiceOptionalParams,\n TransactionsGetTransactionSummaryByInvoiceResponse,\n TransactionsListByCustomerNextResponse,\n TransactionsListByInvoiceSectionNextResponse,\n TransactionsListByBillingProfileNextResponse,\n TransactionsListByInvoiceNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Transactions operations. */\nexport class TransactionsImpl implements Transactions {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class Transactions class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the billed or unbilled transactions by customer id for given start date and end date.\n * Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed\n * under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is\n * generated.\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 periodStartDate The start date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param periodEndDate The end date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param typeParam The type of transaction.\n * @param options The options parameters.\n */\n public listByCustomer(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByCustomerOptionalParams,\n ): PagedAsyncIterableIterator<Transaction> {\n const iter = this.listByCustomerPagingAll(\n billingAccountName,\n billingProfileName,\n customerName,\n periodStartDate,\n periodEndDate,\n typeParam,\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.listByCustomerPagingPage(\n billingAccountName,\n billingProfileName,\n customerName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByCustomerPagingPage(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByCustomerOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Transaction[]> {\n let result: TransactionsListByCustomerResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByCustomer(\n billingAccountName,\n billingProfileName,\n customerName,\n periodStartDate,\n periodEndDate,\n typeParam,\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._listByCustomerNext(\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 *listByCustomerPagingAll(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByCustomerOptionalParams,\n ): AsyncIterableIterator<Transaction> {\n for await (const page of this.listByCustomerPagingPage(\n billingAccountName,\n billingProfileName,\n customerName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the billed or unbilled transactions by invoice section name for given start date and end date.\n * Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed\n * under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is\n * generated.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param invoiceSectionName The ID that uniquely identifies an invoice section.\n * @param periodStartDate The start date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param periodEndDate The end date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param typeParam The type of transaction.\n * @param options The options parameters.\n */\n public listByInvoiceSection(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByInvoiceSectionOptionalParams,\n ): PagedAsyncIterableIterator<Transaction> {\n const iter = this.listByInvoiceSectionPagingAll(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n periodStartDate,\n periodEndDate,\n typeParam,\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.listByInvoiceSectionPagingPage(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByInvoiceSectionPagingPage(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByInvoiceSectionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Transaction[]> {\n let result: TransactionsListByInvoiceSectionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByInvoiceSection(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n periodStartDate,\n periodEndDate,\n typeParam,\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._listByInvoiceSectionNext(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\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 *listByInvoiceSectionPagingAll(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByInvoiceSectionOptionalParams,\n ): AsyncIterableIterator<Transaction> {\n for await (const page of this.listByInvoiceSectionPagingPage(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the billed or unbilled transactions by billing profile name for given start and end date.\n * Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed\n * under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is\n * generated.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param periodStartDate The start date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param periodEndDate The end date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param typeParam The type of transaction.\n * @param options The options parameters.\n */\n public listByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByBillingProfileOptionalParams,\n ): PagedAsyncIterableIterator<Transaction> {\n const iter = this.listByBillingProfilePagingAll(\n billingAccountName,\n billingProfileName,\n periodStartDate,\n periodEndDate,\n typeParam,\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 periodStartDate,\n periodEndDate,\n typeParam,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByBillingProfilePagingPage(\n billingAccountName: string,\n billingProfileName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByBillingProfileOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Transaction[]> {\n let result: TransactionsListByBillingProfileResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBillingProfile(\n billingAccountName,\n billingProfileName,\n periodStartDate,\n periodEndDate,\n typeParam,\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 periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByBillingProfileOptionalParams,\n ): AsyncIterableIterator<Transaction> {\n for await (const page of this.listByBillingProfilePagingPage(\n billingAccountName,\n billingProfileName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the transactions for an invoice. Transactions include purchases, refunds and Azure usage\n * charges.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n public listByInvoice(\n billingAccountName: string,\n invoiceName: string,\n options?: TransactionsListByInvoiceOptionalParams,\n ): PagedAsyncIterableIterator<Transaction> {\n const iter = this.listByInvoicePagingAll(\n billingAccountName,\n invoiceName,\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.listByInvoicePagingPage(\n billingAccountName,\n invoiceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByInvoicePagingPage(\n billingAccountName: string,\n invoiceName: string,\n options?: TransactionsListByInvoiceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Transaction[]> {\n let result: TransactionsListByInvoiceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByInvoice(\n billingAccountName,\n invoiceName,\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._listByInvoiceNext(\n billingAccountName,\n invoiceName,\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 *listByInvoicePagingAll(\n billingAccountName: string,\n invoiceName: string,\n options?: TransactionsListByInvoiceOptionalParams,\n ): AsyncIterableIterator<Transaction> {\n for await (const page of this.listByInvoicePagingPage(\n billingAccountName,\n invoiceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the billed or unbilled transactions by customer id for given start date and end date.\n * Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed\n * under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is\n * generated.\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 periodStartDate The start date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param periodEndDate The end date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param typeParam The type of transaction.\n * @param options The options parameters.\n */\n private _listByCustomer(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByCustomerOptionalParams,\n ): Promise<TransactionsListByCustomerResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n },\n listByCustomerOperationSpec,\n );\n }\n\n /**\n * Lists the billed or unbilled transactions by invoice section name for given start date and end date.\n * Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed\n * under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is\n * generated.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param invoiceSectionName The ID that uniquely identifies an invoice section.\n * @param periodStartDate The start date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param periodEndDate The end date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param typeParam The type of transaction.\n * @param options The options parameters.\n */\n private _listByInvoiceSection(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByInvoiceSectionOptionalParams,\n ): Promise<TransactionsListByInvoiceSectionResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n },\n listByInvoiceSectionOperationSpec,\n );\n }\n\n /**\n * Lists the billed or unbilled transactions by billing profile name for given start and end date.\n * Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed\n * under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is\n * generated.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param periodStartDate The start date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param periodEndDate The end date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param typeParam The type of transaction.\n * @param options The options parameters.\n */\n private _listByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByBillingProfileOptionalParams,\n ): Promise<TransactionsListByBillingProfileResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n },\n listByBillingProfileOperationSpec,\n );\n }\n\n /**\n * Lists the transactions for an invoice. Transactions include purchases, refunds and Azure usage\n * charges.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n private _listByInvoice(\n billingAccountName: string,\n invoiceName: string,\n options?: TransactionsListByInvoiceOptionalParams,\n ): Promise<TransactionsListByInvoiceResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, invoiceName, options },\n listByInvoiceOperationSpec,\n );\n }\n\n /**\n * Gets a URL to download the transactions document for an invoice. The operation is supported for\n * billing accounts with agreement type Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginTransactionsDownloadByInvoice(\n billingAccountName: string,\n invoiceName: string,\n options?: TransactionsTransactionsDownloadByInvoiceOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TransactionsTransactionsDownloadByInvoiceResponse>,\n TransactionsTransactionsDownloadByInvoiceResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TransactionsTransactionsDownloadByInvoiceResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, invoiceName, options },\n spec: transactionsDownloadByInvoiceOperationSpec,\n });\n const poller = await createHttpPoller<\n TransactionsTransactionsDownloadByInvoiceResponse,\n OperationState<TransactionsTransactionsDownloadByInvoiceResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download the transactions document for an invoice. The operation is supported for\n * billing accounts with agreement type Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginTransactionsDownloadByInvoiceAndWait(\n billingAccountName: string,\n invoiceName: string,\n options?: TransactionsTransactionsDownloadByInvoiceOptionalParams,\n ): Promise<TransactionsTransactionsDownloadByInvoiceResponse> {\n const poller = await this.beginTransactionsDownloadByInvoice(\n billingAccountName,\n invoiceName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the transaction summary for an invoice. Transactions include purchases, refunds and Azure usage\n * charges.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n getTransactionSummaryByInvoice(\n billingAccountName: string,\n invoiceName: string,\n options?: TransactionsGetTransactionSummaryByInvoiceOptionalParams,\n ): Promise<TransactionsGetTransactionSummaryByInvoiceResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, invoiceName, options },\n getTransactionSummaryByInvoiceOperationSpec,\n );\n }\n\n /**\n * ListByCustomerNext\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 ListByCustomer method.\n * @param options The options parameters.\n */\n private _listByCustomerNext(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n nextLink: string,\n options?: TransactionsListByCustomerNextOptionalParams,\n ): Promise<TransactionsListByCustomerNextResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n nextLink,\n options,\n },\n listByCustomerNextOperationSpec,\n );\n }\n\n /**\n * ListByInvoiceSectionNext\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param invoiceSectionName The ID that uniquely identifies an invoice section.\n * @param nextLink The nextLink from the previous successful call to the ListByInvoiceSection method.\n * @param options The options parameters.\n */\n private _listByInvoiceSectionNext(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n nextLink: string,\n options?: TransactionsListByInvoiceSectionNextOptionalParams,\n ): Promise<TransactionsListByInvoiceSectionNextResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n nextLink,\n options,\n },\n listByInvoiceSectionNextOperationSpec,\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?: TransactionsListByBillingProfileNextOptionalParams,\n ): Promise<TransactionsListByBillingProfileNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, nextLink, options },\n listByBillingProfileNextOperationSpec,\n );\n }\n\n /**\n * ListByInvoiceNext\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param nextLink The nextLink from the previous successful call to the ListByInvoice method.\n * @param options The options parameters.\n */\n private _listByInvoiceNext(\n billingAccountName: string,\n invoiceName: string,\n nextLink: string,\n options?: TransactionsListByInvoiceNextOptionalParams,\n ): Promise<TransactionsListByInvoiceNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, invoiceName, nextLink, options },\n listByInvoiceNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByCustomerOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transactions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderBy,\n Parameters.top,\n Parameters.skip,\n Parameters.count,\n Parameters.search,\n Parameters.periodStartDate1,\n Parameters.periodEndDate1,\n Parameters.typeParam,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByInvoiceSectionOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderBy,\n Parameters.top,\n Parameters.skip,\n Parameters.count,\n Parameters.search,\n Parameters.periodStartDate1,\n Parameters.periodEndDate1,\n Parameters.typeParam,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.invoiceSectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderBy,\n Parameters.top,\n Parameters.skip,\n Parameters.count,\n Parameters.search,\n Parameters.periodStartDate1,\n Parameters.periodEndDate1,\n Parameters.typeParam,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByInvoiceOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/transactions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderBy,\n Parameters.top,\n Parameters.skip,\n Parameters.count,\n Parameters.search,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst transactionsDownloadByInvoiceOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/transactionsDownload\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 201: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 202: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 204: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getTransactionSummaryByInvoiceOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/transactionSummary\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionSummary,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.search,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByCustomerNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\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};\nconst listByInvoiceSectionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\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.invoiceSectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingProfileNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.nextLink,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByInvoiceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.nextLink,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../../src/operations/transactions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;A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AkB;QAC7B,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;KAC9B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;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,WAAW;KACvB;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 { Transactions } 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 Transaction,\n TransactionsListByCustomerNextOptionalParams,\n TransactionType,\n TransactionsListByCustomerOptionalParams,\n TransactionsListByCustomerResponse,\n TransactionsListByInvoiceSectionNextOptionalParams,\n TransactionsListByInvoiceSectionOptionalParams,\n TransactionsListByInvoiceSectionResponse,\n TransactionsListByBillingProfileNextOptionalParams,\n TransactionsListByBillingProfileOptionalParams,\n TransactionsListByBillingProfileResponse,\n TransactionsListByInvoiceNextOptionalParams,\n TransactionsListByInvoiceOptionalParams,\n TransactionsListByInvoiceResponse,\n TransactionsTransactionsDownloadByInvoiceOptionalParams,\n TransactionsTransactionsDownloadByInvoiceResponse,\n TransactionsGetTransactionSummaryByInvoiceOptionalParams,\n TransactionsGetTransactionSummaryByInvoiceResponse,\n TransactionsListByCustomerNextResponse,\n TransactionsListByInvoiceSectionNextResponse,\n TransactionsListByBillingProfileNextResponse,\n TransactionsListByInvoiceNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Transactions operations. */\nexport class TransactionsImpl implements Transactions {\n private readonly client: BillingManagementClient;\n\n /**\n * Initialize a new instance of the class Transactions class.\n * @param client Reference to the service client\n */\n constructor(client: BillingManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the billed or unbilled transactions by customer id for given start date and end date.\n * Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed\n * under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is\n * generated.\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 periodStartDate The start date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param periodEndDate The end date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param typeParam The type of transaction.\n * @param options The options parameters.\n */\n public listByCustomer(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByCustomerOptionalParams,\n ): PagedAsyncIterableIterator<Transaction> {\n const iter = this.listByCustomerPagingAll(\n billingAccountName,\n billingProfileName,\n customerName,\n periodStartDate,\n periodEndDate,\n typeParam,\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.listByCustomerPagingPage(\n billingAccountName,\n billingProfileName,\n customerName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByCustomerPagingPage(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByCustomerOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Transaction[]> {\n let result: TransactionsListByCustomerResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByCustomer(\n billingAccountName,\n billingProfileName,\n customerName,\n periodStartDate,\n periodEndDate,\n typeParam,\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._listByCustomerNext(\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 *listByCustomerPagingAll(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByCustomerOptionalParams,\n ): AsyncIterableIterator<Transaction> {\n for await (const page of this.listByCustomerPagingPage(\n billingAccountName,\n billingProfileName,\n customerName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the billed or unbilled transactions by invoice section name for given start date and end date.\n * Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed\n * under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is\n * generated.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param invoiceSectionName The ID that uniquely identifies an invoice section.\n * @param periodStartDate The start date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param periodEndDate The end date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param typeParam The type of transaction.\n * @param options The options parameters.\n */\n public listByInvoiceSection(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByInvoiceSectionOptionalParams,\n ): PagedAsyncIterableIterator<Transaction> {\n const iter = this.listByInvoiceSectionPagingAll(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n periodStartDate,\n periodEndDate,\n typeParam,\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.listByInvoiceSectionPagingPage(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByInvoiceSectionPagingPage(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByInvoiceSectionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Transaction[]> {\n let result: TransactionsListByInvoiceSectionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByInvoiceSection(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n periodStartDate,\n periodEndDate,\n typeParam,\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._listByInvoiceSectionNext(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\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 *listByInvoiceSectionPagingAll(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByInvoiceSectionOptionalParams,\n ): AsyncIterableIterator<Transaction> {\n for await (const page of this.listByInvoiceSectionPagingPage(\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the billed or unbilled transactions by billing profile name for given start and end date.\n * Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed\n * under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is\n * generated.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param periodStartDate The start date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param periodEndDate The end date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param typeParam The type of transaction.\n * @param options The options parameters.\n */\n public listByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByBillingProfileOptionalParams,\n ): PagedAsyncIterableIterator<Transaction> {\n const iter = this.listByBillingProfilePagingAll(\n billingAccountName,\n billingProfileName,\n periodStartDate,\n periodEndDate,\n typeParam,\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 periodStartDate,\n periodEndDate,\n typeParam,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByBillingProfilePagingPage(\n billingAccountName: string,\n billingProfileName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByBillingProfileOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Transaction[]> {\n let result: TransactionsListByBillingProfileResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByBillingProfile(\n billingAccountName,\n billingProfileName,\n periodStartDate,\n periodEndDate,\n typeParam,\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 periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByBillingProfileOptionalParams,\n ): AsyncIterableIterator<Transaction> {\n for await (const page of this.listByBillingProfilePagingPage(\n billingAccountName,\n billingProfileName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the transactions for an invoice. Transactions include purchases, refunds and Azure usage\n * charges.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n public listByInvoice(\n billingAccountName: string,\n invoiceName: string,\n options?: TransactionsListByInvoiceOptionalParams,\n ): PagedAsyncIterableIterator<Transaction> {\n const iter = this.listByInvoicePagingAll(\n billingAccountName,\n invoiceName,\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.listByInvoicePagingPage(\n billingAccountName,\n invoiceName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByInvoicePagingPage(\n billingAccountName: string,\n invoiceName: string,\n options?: TransactionsListByInvoiceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Transaction[]> {\n let result: TransactionsListByInvoiceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByInvoice(\n billingAccountName,\n invoiceName,\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._listByInvoiceNext(\n billingAccountName,\n invoiceName,\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 *listByInvoicePagingAll(\n billingAccountName: string,\n invoiceName: string,\n options?: TransactionsListByInvoiceOptionalParams,\n ): AsyncIterableIterator<Transaction> {\n for await (const page of this.listByInvoicePagingPage(\n billingAccountName,\n invoiceName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the billed or unbilled transactions by customer id for given start date and end date.\n * Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed\n * under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is\n * generated.\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 periodStartDate The start date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param periodEndDate The end date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param typeParam The type of transaction.\n * @param options The options parameters.\n */\n private _listByCustomer(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByCustomerOptionalParams,\n ): Promise<TransactionsListByCustomerResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n },\n listByCustomerOperationSpec,\n );\n }\n\n /**\n * Lists the billed or unbilled transactions by invoice section name for given start date and end date.\n * Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed\n * under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is\n * generated.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param invoiceSectionName The ID that uniquely identifies an invoice section.\n * @param periodStartDate The start date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param periodEndDate The end date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param typeParam The type of transaction.\n * @param options The options parameters.\n */\n private _listByInvoiceSection(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByInvoiceSectionOptionalParams,\n ): Promise<TransactionsListByInvoiceSectionResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n },\n listByInvoiceSectionOperationSpec,\n );\n }\n\n /**\n * Lists the billed or unbilled transactions by billing profile name for given start and end date.\n * Transactions include purchases, refunds and Azure usage charges. Unbilled transactions are listed\n * under pending invoice Id and do not include tax. Tax is added to the amount once an invoice is\n * generated.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param periodStartDate The start date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param periodEndDate The end date to fetch the transactions. The date should be specified in\n * MM-DD-YYYY format.\n * @param typeParam The type of transaction.\n * @param options The options parameters.\n */\n private _listByBillingProfile(\n billingAccountName: string,\n billingProfileName: string,\n periodStartDate: Date,\n periodEndDate: Date,\n typeParam: TransactionType,\n options?: TransactionsListByBillingProfileOptionalParams,\n ): Promise<TransactionsListByBillingProfileResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n periodStartDate,\n periodEndDate,\n typeParam,\n options,\n },\n listByBillingProfileOperationSpec,\n );\n }\n\n /**\n * Lists the transactions for an invoice. Transactions include purchases, refunds and Azure usage\n * charges.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n private _listByInvoice(\n billingAccountName: string,\n invoiceName: string,\n options?: TransactionsListByInvoiceOptionalParams,\n ): Promise<TransactionsListByInvoiceResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, invoiceName, options },\n listByInvoiceOperationSpec,\n );\n }\n\n /**\n * Gets a URL to download the transactions document for an invoice. The operation is supported for\n * billing accounts with agreement type Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginTransactionsDownloadByInvoice(\n billingAccountName: string,\n invoiceName: string,\n options?: TransactionsTransactionsDownloadByInvoiceOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<TransactionsTransactionsDownloadByInvoiceResponse>,\n TransactionsTransactionsDownloadByInvoiceResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<TransactionsTransactionsDownloadByInvoiceResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { billingAccountName, invoiceName, options },\n spec: transactionsDownloadByInvoiceOperationSpec,\n });\n const poller = await createHttpPoller<\n TransactionsTransactionsDownloadByInvoiceResponse,\n OperationState<TransactionsTransactionsDownloadByInvoiceResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Gets a URL to download the transactions document for an invoice. The operation is supported for\n * billing accounts with agreement type Enterprise Agreement.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n async beginTransactionsDownloadByInvoiceAndWait(\n billingAccountName: string,\n invoiceName: string,\n options?: TransactionsTransactionsDownloadByInvoiceOptionalParams,\n ): Promise<TransactionsTransactionsDownloadByInvoiceResponse> {\n const poller = await this.beginTransactionsDownloadByInvoice(\n billingAccountName,\n invoiceName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets the transaction summary for an invoice. Transactions include purchases, refunds and Azure usage\n * charges.\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param options The options parameters.\n */\n getTransactionSummaryByInvoice(\n billingAccountName: string,\n invoiceName: string,\n options?: TransactionsGetTransactionSummaryByInvoiceOptionalParams,\n ): Promise<TransactionsGetTransactionSummaryByInvoiceResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, invoiceName, options },\n getTransactionSummaryByInvoiceOperationSpec,\n );\n }\n\n /**\n * ListByCustomerNext\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 ListByCustomer method.\n * @param options The options parameters.\n */\n private _listByCustomerNext(\n billingAccountName: string,\n billingProfileName: string,\n customerName: string,\n nextLink: string,\n options?: TransactionsListByCustomerNextOptionalParams,\n ): Promise<TransactionsListByCustomerNextResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n customerName,\n nextLink,\n options,\n },\n listByCustomerNextOperationSpec,\n );\n }\n\n /**\n * ListByInvoiceSectionNext\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param billingProfileName The ID that uniquely identifies a billing profile.\n * @param invoiceSectionName The ID that uniquely identifies an invoice section.\n * @param nextLink The nextLink from the previous successful call to the ListByInvoiceSection method.\n * @param options The options parameters.\n */\n private _listByInvoiceSectionNext(\n billingAccountName: string,\n billingProfileName: string,\n invoiceSectionName: string,\n nextLink: string,\n options?: TransactionsListByInvoiceSectionNextOptionalParams,\n ): Promise<TransactionsListByInvoiceSectionNextResponse> {\n return this.client.sendOperationRequest(\n {\n billingAccountName,\n billingProfileName,\n invoiceSectionName,\n nextLink,\n options,\n },\n listByInvoiceSectionNextOperationSpec,\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?: TransactionsListByBillingProfileNextOptionalParams,\n ): Promise<TransactionsListByBillingProfileNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, billingProfileName, nextLink, options },\n listByBillingProfileNextOperationSpec,\n );\n }\n\n /**\n * ListByInvoiceNext\n * @param billingAccountName The ID that uniquely identifies a billing account.\n * @param invoiceName The ID that uniquely identifies an invoice.\n * @param nextLink The nextLink from the previous successful call to the ListByInvoice method.\n * @param options The options parameters.\n */\n private _listByInvoiceNext(\n billingAccountName: string,\n invoiceName: string,\n nextLink: string,\n options?: TransactionsListByInvoiceNextOptionalParams,\n ): Promise<TransactionsListByInvoiceNextResponse> {\n return this.client.sendOperationRequest(\n { billingAccountName, invoiceName, nextLink, options },\n listByInvoiceNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByCustomerOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/customers/{customerName}/transactions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderBy,\n Parameters.top,\n Parameters.skip,\n Parameters.count,\n Parameters.search,\n Parameters.periodStartDate1,\n Parameters.periodEndDate1,\n Parameters.typeParam,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.customerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByInvoiceSectionOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/transactions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderBy,\n Parameters.top,\n Parameters.skip,\n Parameters.count,\n Parameters.search,\n Parameters.periodStartDate1,\n Parameters.periodEndDate1,\n Parameters.typeParam,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n Parameters.invoiceSectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingProfileOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/transactions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderBy,\n Parameters.top,\n Parameters.skip,\n Parameters.count,\n Parameters.search,\n Parameters.periodStartDate1,\n Parameters.periodEndDate1,\n Parameters.typeParam,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByInvoiceOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/transactions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.orderBy,\n Parameters.top,\n Parameters.skip,\n Parameters.count,\n Parameters.search,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst transactionsDownloadByInvoiceOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/transactionsDownload\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 201: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 202: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n 204: {\n bodyMapper: Mappers.DocumentDownloadResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getTransactionSummaryByInvoiceOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoices/{invoiceName}/transactionSummary\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionSummary,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.search,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByCustomerNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\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};\nconst listByInvoiceSectionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\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.invoiceSectionName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByBillingProfileNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.nextLink,\n Parameters.billingProfileName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByInvoiceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.TransactionListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.billingAccountName,\n Parameters.nextLink,\n Parameters.invoiceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|