@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
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Transactions operations. */
|
|
20
20
|
class TransactionsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Transactions class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -50,52 +51,35 @@ class TransactionsImpl {
|
|
|
50
51
|
return this;
|
|
51
52
|
},
|
|
52
53
|
byPage: (settings) => {
|
|
53
|
-
if (settings
|
|
54
|
+
if (settings?.maxPageSize) {
|
|
54
55
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
56
|
}
|
|
56
57
|
return this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options, settings);
|
|
57
58
|
},
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
|
-
listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options, settings) {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
});
|
|
61
|
+
async *listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options, settings) {
|
|
62
|
+
let result;
|
|
63
|
+
let continuationToken = settings?.continuationToken;
|
|
64
|
+
if (!continuationToken) {
|
|
65
|
+
result = await this._listByCustomer(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options);
|
|
66
|
+
let page = result.value || [];
|
|
67
|
+
continuationToken = result.nextLink;
|
|
68
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
69
|
+
yield page;
|
|
70
|
+
}
|
|
71
|
+
while (continuationToken) {
|
|
72
|
+
result = await this._listByCustomerNext(billingAccountName, billingProfileName, customerName, continuationToken, options);
|
|
73
|
+
continuationToken = result.nextLink;
|
|
74
|
+
let page = result.value || [];
|
|
75
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
76
|
+
yield page;
|
|
77
|
+
}
|
|
79
78
|
}
|
|
80
|
-
listByCustomerPagingAll(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
85
|
-
_c = _f.value;
|
|
86
|
-
_d = false;
|
|
87
|
-
const page = _c;
|
|
88
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
92
|
-
finally {
|
|
93
|
-
try {
|
|
94
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
95
|
-
}
|
|
96
|
-
finally { if (e_1) throw e_1.error; }
|
|
97
|
-
}
|
|
98
|
-
});
|
|
79
|
+
async *listByCustomerPagingAll(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options) {
|
|
80
|
+
for await (const page of this.listByCustomerPagingPage(billingAccountName, billingProfileName, customerName, periodStartDate, periodEndDate, typeParam, options)) {
|
|
81
|
+
yield* page;
|
|
82
|
+
}
|
|
99
83
|
}
|
|
100
84
|
/**
|
|
101
85
|
* Lists the billed or unbilled transactions by invoice section name for given start date and end date.
|
|
@@ -122,52 +106,35 @@ class TransactionsImpl {
|
|
|
122
106
|
return this;
|
|
123
107
|
},
|
|
124
108
|
byPage: (settings) => {
|
|
125
|
-
if (settings
|
|
109
|
+
if (settings?.maxPageSize) {
|
|
126
110
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
127
111
|
}
|
|
128
112
|
return this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options, settings);
|
|
129
113
|
},
|
|
130
114
|
};
|
|
131
115
|
}
|
|
132
|
-
listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options, settings) {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
});
|
|
116
|
+
async *listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options, settings) {
|
|
117
|
+
let result;
|
|
118
|
+
let continuationToken = settings?.continuationToken;
|
|
119
|
+
if (!continuationToken) {
|
|
120
|
+
result = await this._listByInvoiceSection(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options);
|
|
121
|
+
let page = result.value || [];
|
|
122
|
+
continuationToken = result.nextLink;
|
|
123
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
124
|
+
yield page;
|
|
125
|
+
}
|
|
126
|
+
while (continuationToken) {
|
|
127
|
+
result = await this._listByInvoiceSectionNext(billingAccountName, billingProfileName, invoiceSectionName, continuationToken, options);
|
|
128
|
+
continuationToken = result.nextLink;
|
|
129
|
+
let page = result.value || [];
|
|
130
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
131
|
+
yield page;
|
|
132
|
+
}
|
|
151
133
|
}
|
|
152
|
-
listByInvoiceSectionPagingAll(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options) {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
157
|
-
_c = _f.value;
|
|
158
|
-
_d = false;
|
|
159
|
-
const page = _c;
|
|
160
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
164
|
-
finally {
|
|
165
|
-
try {
|
|
166
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
167
|
-
}
|
|
168
|
-
finally { if (e_2) throw e_2.error; }
|
|
169
|
-
}
|
|
170
|
-
});
|
|
134
|
+
async *listByInvoiceSectionPagingAll(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options) {
|
|
135
|
+
for await (const page of this.listByInvoiceSectionPagingPage(billingAccountName, billingProfileName, invoiceSectionName, periodStartDate, periodEndDate, typeParam, options)) {
|
|
136
|
+
yield* page;
|
|
137
|
+
}
|
|
171
138
|
}
|
|
172
139
|
/**
|
|
173
140
|
* Lists the billed or unbilled transactions by billing profile name for given start and end date.
|
|
@@ -193,52 +160,35 @@ class TransactionsImpl {
|
|
|
193
160
|
return this;
|
|
194
161
|
},
|
|
195
162
|
byPage: (settings) => {
|
|
196
|
-
if (settings
|
|
163
|
+
if (settings?.maxPageSize) {
|
|
197
164
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
198
165
|
}
|
|
199
166
|
return this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options, settings);
|
|
200
167
|
},
|
|
201
168
|
};
|
|
202
169
|
}
|
|
203
|
-
listByBillingProfilePagingPage(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options, settings) {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}
|
|
221
|
-
});
|
|
170
|
+
async *listByBillingProfilePagingPage(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options, settings) {
|
|
171
|
+
let result;
|
|
172
|
+
let continuationToken = settings?.continuationToken;
|
|
173
|
+
if (!continuationToken) {
|
|
174
|
+
result = await this._listByBillingProfile(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options);
|
|
175
|
+
let page = result.value || [];
|
|
176
|
+
continuationToken = result.nextLink;
|
|
177
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
178
|
+
yield page;
|
|
179
|
+
}
|
|
180
|
+
while (continuationToken) {
|
|
181
|
+
result = await this._listByBillingProfileNext(billingAccountName, billingProfileName, continuationToken, options);
|
|
182
|
+
continuationToken = result.nextLink;
|
|
183
|
+
let page = result.value || [];
|
|
184
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
185
|
+
yield page;
|
|
186
|
+
}
|
|
222
187
|
}
|
|
223
|
-
listByBillingProfilePagingAll(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options) {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
228
|
-
_c = _f.value;
|
|
229
|
-
_d = false;
|
|
230
|
-
const page = _c;
|
|
231
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
235
|
-
finally {
|
|
236
|
-
try {
|
|
237
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
238
|
-
}
|
|
239
|
-
finally { if (e_3) throw e_3.error; }
|
|
240
|
-
}
|
|
241
|
-
});
|
|
188
|
+
async *listByBillingProfilePagingAll(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options) {
|
|
189
|
+
for await (const page of this.listByBillingProfilePagingPage(billingAccountName, billingProfileName, periodStartDate, periodEndDate, typeParam, options)) {
|
|
190
|
+
yield* page;
|
|
191
|
+
}
|
|
242
192
|
}
|
|
243
193
|
/**
|
|
244
194
|
* Lists the transactions for an invoice. Transactions include purchases, refunds and Azure usage
|
|
@@ -257,52 +207,35 @@ class TransactionsImpl {
|
|
|
257
207
|
return this;
|
|
258
208
|
},
|
|
259
209
|
byPage: (settings) => {
|
|
260
|
-
if (settings
|
|
210
|
+
if (settings?.maxPageSize) {
|
|
261
211
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
262
212
|
}
|
|
263
213
|
return this.listByInvoicePagingPage(billingAccountName, invoiceName, options, settings);
|
|
264
214
|
},
|
|
265
215
|
};
|
|
266
216
|
}
|
|
267
|
-
listByInvoicePagingPage(billingAccountName, invoiceName, options, settings) {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
285
|
-
});
|
|
217
|
+
async *listByInvoicePagingPage(billingAccountName, invoiceName, options, settings) {
|
|
218
|
+
let result;
|
|
219
|
+
let continuationToken = settings?.continuationToken;
|
|
220
|
+
if (!continuationToken) {
|
|
221
|
+
result = await this._listByInvoice(billingAccountName, invoiceName, options);
|
|
222
|
+
let page = result.value || [];
|
|
223
|
+
continuationToken = result.nextLink;
|
|
224
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
225
|
+
yield page;
|
|
226
|
+
}
|
|
227
|
+
while (continuationToken) {
|
|
228
|
+
result = await this._listByInvoiceNext(billingAccountName, invoiceName, continuationToken, options);
|
|
229
|
+
continuationToken = result.nextLink;
|
|
230
|
+
let page = result.value || [];
|
|
231
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
232
|
+
yield page;
|
|
233
|
+
}
|
|
286
234
|
}
|
|
287
|
-
listByInvoicePagingAll(billingAccountName, invoiceName, options) {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByInvoicePagingPage(billingAccountName, invoiceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
292
|
-
_c = _f.value;
|
|
293
|
-
_d = false;
|
|
294
|
-
const page = _c;
|
|
295
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
299
|
-
finally {
|
|
300
|
-
try {
|
|
301
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
302
|
-
}
|
|
303
|
-
finally { if (e_4) throw e_4.error; }
|
|
304
|
-
}
|
|
305
|
-
});
|
|
235
|
+
async *listByInvoicePagingAll(billingAccountName, invoiceName, options) {
|
|
236
|
+
for await (const page of this.listByInvoicePagingPage(billingAccountName, invoiceName, options)) {
|
|
237
|
+
yield* page;
|
|
238
|
+
}
|
|
306
239
|
}
|
|
307
240
|
/**
|
|
308
241
|
* Lists the billed or unbilled transactions by customer id for given start date and end date.
|
|
@@ -402,14 +335,19 @@ class TransactionsImpl {
|
|
|
402
335
|
return this.client.sendOperationRequest(args, spec);
|
|
403
336
|
};
|
|
404
337
|
const sendOperationFn = async (args, spec) => {
|
|
405
|
-
var _a;
|
|
406
338
|
let currentRawResponse = undefined;
|
|
407
|
-
const providedCallback =
|
|
339
|
+
const providedCallback = args.options?.onResponse;
|
|
408
340
|
const callback = (rawResponse, flatResponse) => {
|
|
409
341
|
currentRawResponse = rawResponse;
|
|
410
|
-
providedCallback
|
|
342
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
343
|
+
};
|
|
344
|
+
const updatedArgs = {
|
|
345
|
+
...args,
|
|
346
|
+
options: {
|
|
347
|
+
...args.options,
|
|
348
|
+
onResponse: callback,
|
|
349
|
+
},
|
|
411
350
|
};
|
|
412
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
413
351
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
414
352
|
return {
|
|
415
353
|
flatResponse,
|
|
@@ -426,8 +364,8 @@ class TransactionsImpl {
|
|
|
426
364
|
spec: transactionsDownloadByInvoiceOperationSpec,
|
|
427
365
|
});
|
|
428
366
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
429
|
-
restoreFrom: options
|
|
430
|
-
intervalInMs: options
|
|
367
|
+
restoreFrom: options?.resumeFrom,
|
|
368
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
431
369
|
resourceLocationConfig: "location",
|
|
432
370
|
});
|
|
433
371
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.js","sourceRoot":"","sources":["../../../src/operations/transactions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AA0B9C,4CAA4C;AAC5C,gDAAgD;AAChD,MAAa,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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,wBAAwB,CAClC,kBAAkB,EAClB,kBAAk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U,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;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CA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AAU,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"]}
|