Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions lib/services/billingManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

Copyright (c) 2018 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
The MIT License (MIT)
Copyright (c) 2019 Microsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
264 changes: 258 additions & 6 deletions lib/services/billingManagement/lib/billingManagementClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* regenerated.
*/

import { ServiceClientCredentials } from 'ms-rest';
import { ServiceClient, ServiceClientOptions, ServiceCallback, HttpOperationResponse, ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as models from "./models";
import * as operations from "./operations";
Expand All @@ -34,11 +34,11 @@ export default class BillingManagementClient extends AzureServiceClient {
*
* @param {boolean} [options.noRetryPolicy] - If set to true, turn off default retry policy
*
* @param {string} [options.acceptLanguage] - Gets or sets the preferred language for the response.
* @param {string} [options.acceptLanguage] - The preferred language for the response.
*
* @param {number} [options.longRunningOperationRetryTimeout] - Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.
* @param {number} [options.longRunningOperationRetryTimeout] - The retry timeout in seconds for Long Running Operations. Default value is 30.
*
* @param {boolean} [options.generateClientRequestId] - When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
* @param {boolean} [options.generateClientRequestId] - Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true.
*
*/
constructor(credentials: ServiceClientCredentials, subscriptionId: string, baseUri?: string, options?: AzureServiceClientOptions);
Expand All @@ -56,10 +56,262 @@ export default class BillingManagementClient extends AzureServiceClient {
generateClientRequestId: boolean;

// Operation groups
billingAccounts: operations.BillingAccounts;
billingAccountsWithCreateInvoiceSectionPermission: operations.BillingAccountsWithCreateInvoiceSectionPermission;
availableBalanceByBillingProfile: operations.AvailableBalanceByBillingProfile;
paymentMethodsByBillingProfile: operations.PaymentMethodsByBillingProfile;
billingProfilesByBillingAccountName: operations.BillingProfilesByBillingAccountName;
billingProfiles: operations.BillingProfiles;
invoiceSectionsByBillingAccountName: operations.InvoiceSectionsByBillingAccountName;
invoiceSections: operations.InvoiceSections;
invoiceSectionsWithCreateSubscriptionPermission: operations.InvoiceSectionsWithCreateSubscriptionPermission;
departmentsByBillingAccountName: operations.DepartmentsByBillingAccountName;
departments: operations.Departments;
enrollmentAccountsByBillingAccountName: operations.EnrollmentAccountsByBillingAccountName;
enrollmentAccounts: operations.EnrollmentAccounts;
billingPeriods: operations.BillingPeriods;
invoices: operations.Invoices;
invoicesByBillingAccount: operations.InvoicesByBillingAccount;
invoicePricesheet: operations.InvoicePricesheet;
invoicesByBillingProfile: operations.InvoicesByBillingProfile;
invoice: operations.Invoice;
productsByBillingSubscriptions: operations.ProductsByBillingSubscriptions;
billingSubscriptionsByBillingProfile: operations.BillingSubscriptionsByBillingProfile;
billingSubscriptionsByInvoiceSection: operations.BillingSubscriptionsByInvoiceSection;
billingSubscription: operations.BillingSubscription;
productsByBillingAccount: operations.ProductsByBillingAccount;
productsByInvoiceSection: operations.ProductsByInvoiceSection;
products: operations.Products;
transactionsByBillingAccount: operations.TransactionsByBillingAccount;
policyOperations: operations.PolicyOperations;
billingPropertyOperations: operations.BillingPropertyOperations;
transfer: operations.Transfer;
transfers: operations.Transfers;
recipientTransfer: operations.RecipientTransfer;
operations: operations.Operations;
billingAccountBillingPermissions: operations.BillingAccountBillingPermissions;
invoiceSectionsBillingPermissions: operations.InvoiceSectionsBillingPermissions;
billingProfileBillingPermissions: operations.BillingProfileBillingPermissions;
billingAccountBillingRoleDefinition: operations.BillingAccountBillingRoleDefinition;
invoiceSectionBillingRoleDefinition: operations.InvoiceSectionBillingRoleDefinition;
billingProfileBillingRoleDefinition: operations.BillingProfileBillingRoleDefinition;
billingAccountBillingRoleAssignment: operations.BillingAccountBillingRoleAssignment;
invoiceSectionBillingRoleAssignment: operations.InvoiceSectionBillingRoleAssignment;
billingProfileBillingRoleAssignment: operations.BillingProfileBillingRoleAssignment;


/**
* Lists the transactions by billingProfileName for given start date and end
* date.
*
* @param {string} billingAccountName billing Account Id.
*
* @param {string} billingProfileName Billing Profile Id.
*
* @param {string} startDate Start date
*
* @param {string} endDate End date
*
* @param {object} [options] Optional Parameters.
*
* @param {string} [options.filter] May be used to filter by transaction kind.
* The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not
* currently support 'ne', 'or', or 'not'. Tag filter is a key value pair
* string where key and value is separated by a colon (:).
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<TransactionsListResult>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
transactionsByBillingProfileWithHttpOperationResponse(billingAccountName: string, billingProfileName: string, startDate: string, endDate: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.TransactionsListResult>>;

/**
* Lists the transactions by billingProfileName for given start date and end
* date.
*
* @param {string} billingAccountName billing Account Id.
*
* @param {string} billingProfileName Billing Profile Id.
*
* @param {string} startDate Start date
*
* @param {string} endDate End date
*
* @param {object} [options] Optional Parameters.
*
* @param {string} [options.filter] May be used to filter by transaction kind.
* The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not
* currently support 'ne', 'or', or 'not'. Tag filter is a key value pair
* string where key and value is separated by a colon (:).
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {TransactionsListResult} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {TransactionsListResult} [result] - The deserialized result object if an error did not occur.
* See {@link TransactionsListResult} for more
* information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
transactionsByBillingProfile(billingAccountName: string, billingProfileName: string, startDate: string, endDate: string, options?: { filter? : string, customHeaders? : { [headerName: string]: string; } }): Promise<models.TransactionsListResult>;
transactionsByBillingProfile(billingAccountName: string, billingProfileName: string, startDate: string, endDate: string, callback: ServiceCallback<models.TransactionsListResult>): void;
transactionsByBillingProfile(billingAccountName: string, billingProfileName: string, startDate: string, endDate: string, options: { filter? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.TransactionsListResult>): void;


/**
* Cancel product by product id
*
* @param {string} billingAccountName billing Account Id.
*
* @param {string} productName Invoice Id.
*
* @param {object} [options] Optional Parameters.
*
* @param {string} [options.autoRenew] Request parameters to update auto renew
* policy a product. Possible values include: 'true', 'false'
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<UpdateAutoRenewOperationSummary>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
updateAutoRenewForBillingAccountWithHttpOperationResponse(billingAccountName: string, productName: string, options?: { autoRenew? : string, customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.UpdateAutoRenewOperationSummary>>;

/**
* Cancel product by product id
*
* @param {string} billingAccountName billing Account Id.
*
* @param {string} productName Invoice Id.
*
* @param {object} [options] Optional Parameters.
*
* @param {string} [options.autoRenew] Request parameters to update auto renew
* policy a product. Possible values include: 'true', 'false'
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {UpdateAutoRenewOperationSummary} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {UpdateAutoRenewOperationSummary} [result] - The deserialized result object if an error did not occur.
* See {@link UpdateAutoRenewOperationSummary} for more
* information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
updateAutoRenewForBillingAccount(billingAccountName: string, productName: string, options?: { autoRenew? : string, customHeaders? : { [headerName: string]: string; } }): Promise<models.UpdateAutoRenewOperationSummary>;
updateAutoRenewForBillingAccount(billingAccountName: string, productName: string, callback: ServiceCallback<models.UpdateAutoRenewOperationSummary>): void;
updateAutoRenewForBillingAccount(billingAccountName: string, productName: string, options: { autoRenew? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.UpdateAutoRenewOperationSummary>): void;


/**
* Cancel auto renew for product by product id
*
* @param {string} billingAccountName billing Account Id.
*
* @param {string} invoiceSectionName InvoiceSection Id.
*
* @param {string} productName Invoice Id.
*
* @param {object} [options] Optional Parameters.
*
* @param {string} [options.autoRenew] Request parameters to update auto renew
* policy a product. Possible values include: 'true', 'false'
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @returns {Promise} A promise is returned
*
* @resolve {HttpOperationResponse<UpdateAutoRenewOperationSummary>} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*/
updateAutoRenewForInvoiceSectionWithHttpOperationResponse(billingAccountName: string, invoiceSectionName: string, productName: string, options?: { autoRenew? : string, customHeaders? : { [headerName: string]: string; } }): Promise<HttpOperationResponse<models.UpdateAutoRenewOperationSummary>>;

/**
* Cancel auto renew for product by product id
*
* @param {string} billingAccountName billing Account Id.
*
* @param {string} invoiceSectionName InvoiceSection Id.
*
* @param {string} productName Invoice Id.
*
* @param {object} [options] Optional Parameters.
*
* @param {string} [options.autoRenew] Request parameters to update auto renew
* policy a product. Possible values include: 'true', 'false'
*
* @param {object} [options.customHeaders] Headers that will be added to the
* request
*
* @param {ServiceCallback} [optionalCallback] - The optional callback.
*
* @returns {ServiceCallback|Promise} If a callback was passed as the last
* parameter then it returns the callback else returns a Promise.
*
* {Promise} A promise is returned.
*
* @resolve {UpdateAutoRenewOperationSummary} - The deserialized result object.
*
* @reject {Error|ServiceError} - The error object.
*
* {ServiceCallback} optionalCallback(err, result, request, response)
*
* {Error|ServiceError} err - The Error object if an error occurred, null otherwise.
*
* {UpdateAutoRenewOperationSummary} [result] - The deserialized result object if an error did not occur.
* See {@link UpdateAutoRenewOperationSummary} for more
* information.
*
* {WebResource} [request] - The HTTP Request object if an error did not occur.
*
* {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur.
*/
updateAutoRenewForInvoiceSection(billingAccountName: string, invoiceSectionName: string, productName: string, options?: { autoRenew? : string, customHeaders? : { [headerName: string]: string; } }): Promise<models.UpdateAutoRenewOperationSummary>;
updateAutoRenewForInvoiceSection(billingAccountName: string, invoiceSectionName: string, productName: string, callback: ServiceCallback<models.UpdateAutoRenewOperationSummary>): void;
updateAutoRenewForInvoiceSection(billingAccountName: string, invoiceSectionName: string, productName: string, options: { autoRenew? : string, customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback<models.UpdateAutoRenewOperationSummary>): void;
}

export { BillingManagementClient, models as BillingManagementModels };
Loading