Skip to content
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
4 changes: 0 additions & 4 deletions sdk/billing/arm-billing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

This package contains an isomorphic SDK for BillingManagementClient.

For more information about Billing:
* [Azure documentation](https://docs.microsoft.com/en-us/azure/cost-management-billing/)
* [SDK reference documentation](https://docs.microsoft.com/en-us/javascript/api/overview/azure/billing?view=azure-node-latest)

### Currently supported environments

- Node.js version 6.x.x or higher
Expand Down
20 changes: 10 additions & 10 deletions sdk/billing/arm-billing/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2110,9 +2110,9 @@ export interface InvoicesDownloadInvoiceHeaders {
}

/**
* Defines headers for DownloadMultipleModernInvoice operation.
* Defines headers for DownloadMultipleBillingProfileInvoices operation.
*/
export interface InvoicesDownloadMultipleModernInvoiceHeaders {
export interface InvoicesDownloadMultipleBillingProfileInvoicesHeaders {
/**
* GET this URL to retrieve the status of the asynchronous operation.
*/
Expand Down Expand Up @@ -2140,9 +2140,9 @@ export interface InvoicesDownloadBillingSubscriptionInvoiceHeaders {
}

/**
* Defines headers for DownloadMultipleBillingSubscriptionInvoice operation.
* Defines headers for DownloadMultipleBillingSubscriptionInvoices operation.
*/
export interface InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders {
export interface InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders {
/**
* GET this URL to retrieve the status of the asynchronous operation.
*/
Expand Down Expand Up @@ -3974,17 +3974,17 @@ export type InvoicesDownloadInvoiceResponse = DownloadUrl & InvoicesDownloadInvo
};

/**
* Contains response data for the downloadMultipleModernInvoice operation.
* Contains response data for the downloadMultipleBillingProfileInvoices operation.
*/
export type InvoicesDownloadMultipleModernInvoiceResponse = DownloadUrl & InvoicesDownloadMultipleModernInvoiceHeaders & {
export type InvoicesDownloadMultipleBillingProfileInvoicesResponse = DownloadUrl & InvoicesDownloadMultipleBillingProfileInvoicesHeaders & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: InvoicesDownloadMultipleModernInvoiceHeaders;
parsedHeaders: InvoicesDownloadMultipleBillingProfileInvoicesHeaders;

/**
* The response body as text (string format)
Expand Down Expand Up @@ -4064,17 +4064,17 @@ export type InvoicesDownloadBillingSubscriptionInvoiceResponse = DownloadUrl & I
};

/**
* Contains response data for the downloadMultipleBillingSubscriptionInvoice operation.
* Contains response data for the downloadMultipleBillingSubscriptionInvoices operation.
*/
export type InvoicesDownloadMultipleBillingSubscriptionInvoiceResponse = DownloadUrl & InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders & {
export type InvoicesDownloadMultipleBillingSubscriptionInvoicesResponse = DownloadUrl & InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders;
parsedHeaders: InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders;

/**
* The response body as text (string format)
Expand Down
4 changes: 2 additions & 2 deletions sdk/billing/arm-billing/src/models/invoicesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export {
InvoiceListResult,
InvoicesDownloadBillingSubscriptionInvoiceHeaders,
InvoicesDownloadInvoiceHeaders,
InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders,
InvoicesDownloadMultipleModernInvoiceHeaders,
InvoicesDownloadMultipleBillingProfileInvoicesHeaders,
InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders,
InvoiceSection,
InvoiceSectionsOnExpand,
Participants,
Expand Down
12 changes: 6 additions & 6 deletions sdk/billing/arm-billing/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2902,11 +2902,11 @@ export const InvoicesDownloadInvoiceHeaders: msRest.CompositeMapper = {
}
};

export const InvoicesDownloadMultipleModernInvoiceHeaders: msRest.CompositeMapper = {
serializedName: "invoices-downloadmultiplemoderninvoice-headers",
export const InvoicesDownloadMultipleBillingProfileInvoicesHeaders: msRest.CompositeMapper = {
serializedName: "invoices-downloadmultiplebillingprofileinvoices-headers",
type: {
name: "Composite",
className: "InvoicesDownloadMultipleModernInvoiceHeaders",
className: "InvoicesDownloadMultipleBillingProfileInvoicesHeaders",
modelProperties: {
location: {
serializedName: "location",
Expand Down Expand Up @@ -2946,11 +2946,11 @@ export const InvoicesDownloadBillingSubscriptionInvoiceHeaders: msRest.Composite
}
};

export const InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders: msRest.CompositeMapper = {
serializedName: "invoices-downloadmultiplebillingsubscriptioninvoice-headers",
export const InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders: msRest.CompositeMapper = {
serializedName: "invoices-downloadmultiplebillingsubscriptioninvoices-headers",
type: {
name: "Composite",
className: "InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders",
className: "InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders",
modelProperties: {
location: {
serializedName: "location",
Expand Down
60 changes: 30 additions & 30 deletions sdk/billing/arm-billing/src/operations/invoices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,17 +196,17 @@ export class Invoices {
}

/**
* Gets a URL to download an multiple invoices documents (invoice pdf, tax receipts, credit notes)
* as a zip file. The operation is supported for billing accounts with agreement type Microsoft
* Partner Agreement or Microsoft Customer Agreement.
* Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a
* zip file. The operation is supported for billing accounts with agreement type Microsoft Partner
* Agreement or Microsoft Customer Agreement.
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param downloadUrls An array of download urls for individual documents
* @param [options] The optional parameters
* @returns Promise<Models.InvoicesDownloadMultipleModernInvoiceResponse>
* @returns Promise<Models.InvoicesDownloadMultipleBillingProfileInvoicesResponse>
*/
downloadMultipleModernInvoice(billingAccountName: string, downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise<Models.InvoicesDownloadMultipleModernInvoiceResponse> {
return this.beginDownloadMultipleModernInvoice(billingAccountName,downloadUrls,options)
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.InvoicesDownloadMultipleModernInvoiceResponse>;
downloadMultipleBillingProfileInvoices(billingAccountName: string, downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise<Models.InvoicesDownloadMultipleBillingProfileInvoicesResponse> {
return this.beginDownloadMultipleBillingProfileInvoices(billingAccountName,downloadUrls,options)
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.InvoicesDownloadMultipleBillingProfileInvoicesResponse>;
}

/**
Expand Down Expand Up @@ -282,15 +282,15 @@ export class Invoices {
}

/**
* Gets a URL to download multiple invoices documents (invoice pdf, tax receipts, credit notes) as
* a zip file.
* Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a
* zip file.
* @param downloadUrls An array of download urls for individual documents
* @param [options] The optional parameters
* @returns Promise<Models.InvoicesDownloadMultipleBillingSubscriptionInvoiceResponse>
* @returns Promise<Models.InvoicesDownloadMultipleBillingSubscriptionInvoicesResponse>
*/
downloadMultipleBillingSubscriptionInvoice(downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise<Models.InvoicesDownloadMultipleBillingSubscriptionInvoiceResponse> {
return this.beginDownloadMultipleBillingSubscriptionInvoice(downloadUrls,options)
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.InvoicesDownloadMultipleBillingSubscriptionInvoiceResponse>;
downloadMultipleBillingSubscriptionInvoices(downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise<Models.InvoicesDownloadMultipleBillingSubscriptionInvoicesResponse> {
return this.beginDownloadMultipleBillingSubscriptionInvoices(downloadUrls,options)
.then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.InvoicesDownloadMultipleBillingSubscriptionInvoicesResponse>;
}

/**
Expand All @@ -315,22 +315,22 @@ export class Invoices {
}

/**
* Gets a URL to download an multiple invoices documents (invoice pdf, tax receipts, credit notes)
* as a zip file. The operation is supported for billing accounts with agreement type Microsoft
* Partner Agreement or Microsoft Customer Agreement.
* Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a
* zip file. The operation is supported for billing accounts with agreement type Microsoft Partner
* Agreement or Microsoft Customer Agreement.
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param downloadUrls An array of download urls for individual documents
* @param [options] The optional parameters
* @returns Promise<msRestAzure.LROPoller>
*/
beginDownloadMultipleModernInvoice(billingAccountName: string, downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
beginDownloadMultipleBillingProfileInvoices(billingAccountName: string, downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
return this.client.sendLRORequest(
{
billingAccountName,
downloadUrls,
options
},
beginDownloadMultipleModernInvoiceOperationSpec,
beginDownloadMultipleBillingProfileInvoicesOperationSpec,
options);
}

Expand All @@ -353,19 +353,19 @@ export class Invoices {
}

/**
* Gets a URL to download multiple invoices documents (invoice pdf, tax receipts, credit notes) as
* a zip file.
* Gets a URL to download multiple invoice documents (invoice pdf, tax receipts, credit notes) as a
* zip file.
* @param downloadUrls An array of download urls for individual documents
* @param [options] The optional parameters
* @returns Promise<msRestAzure.LROPoller>
*/
beginDownloadMultipleBillingSubscriptionInvoice(downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
beginDownloadMultipleBillingSubscriptionInvoices(downloadUrls: string[], options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
return this.client.sendLRORequest(
{
downloadUrls,
options
},
beginDownloadMultipleBillingSubscriptionInvoiceOperationSpec,
beginDownloadMultipleBillingSubscriptionInvoicesOperationSpec,
options);
}

Expand Down Expand Up @@ -637,7 +637,7 @@ const beginDownloadInvoiceOperationSpec: msRest.OperationSpec = {
serializer
};

const beginDownloadMultipleModernInvoiceOperationSpec: msRest.OperationSpec = {
const beginDownloadMultipleBillingProfileInvoicesOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "providers/Microsoft.Billing/billingAccounts/{billingAccountName}/downloadDocuments",
urlParameters: [
Expand Down Expand Up @@ -667,14 +667,14 @@ const beginDownloadMultipleModernInvoiceOperationSpec: msRest.OperationSpec = {
responses: {
200: {
bodyMapper: Mappers.DownloadUrl,
headersMapper: Mappers.InvoicesDownloadMultipleModernInvoiceHeaders
headersMapper: Mappers.InvoicesDownloadMultipleBillingProfileInvoicesHeaders
},
202: {
headersMapper: Mappers.InvoicesDownloadMultipleModernInvoiceHeaders
headersMapper: Mappers.InvoicesDownloadMultipleBillingProfileInvoicesHeaders
},
default: {
bodyMapper: Mappers.ErrorResponse,
headersMapper: Mappers.InvoicesDownloadMultipleModernInvoiceHeaders
headersMapper: Mappers.InvoicesDownloadMultipleBillingProfileInvoicesHeaders
}
},
serializer
Expand Down Expand Up @@ -710,7 +710,7 @@ const beginDownloadBillingSubscriptionInvoiceOperationSpec: msRest.OperationSpec
serializer
};

const beginDownloadMultipleBillingSubscriptionInvoiceOperationSpec: msRest.OperationSpec = {
const beginDownloadMultipleBillingSubscriptionInvoicesOperationSpec: msRest.OperationSpec = {
httpMethod: "POST",
path: "providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/{subscriptionId}/downloadDocuments",
urlParameters: [
Expand Down Expand Up @@ -740,14 +740,14 @@ const beginDownloadMultipleBillingSubscriptionInvoiceOperationSpec: msRest.Opera
responses: {
200: {
bodyMapper: Mappers.DownloadUrl,
headersMapper: Mappers.InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders
headersMapper: Mappers.InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders
},
202: {
headersMapper: Mappers.InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders
headersMapper: Mappers.InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders
},
default: {
bodyMapper: Mappers.ErrorResponse,
headersMapper: Mappers.InvoicesDownloadMultipleBillingSubscriptionInvoiceHeaders
headersMapper: Mappers.InvoicesDownloadMultipleBillingSubscriptionInvoicesHeaders
}
},
serializer
Expand Down