InvoiceSections interface

Interface representing a InvoiceSections.

Methods

beginCreateOrUpdate(string, string, string, InvoiceSection, InvoiceSectionsCreateOrUpdateOptionalParams)

Creates or updates an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

beginCreateOrUpdateAndWait(string, string, string, InvoiceSection, InvoiceSectionsCreateOrUpdateOptionalParams)

Creates or updates an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

beginDelete(string, string, string, InvoiceSectionsDeleteOptionalParams)

Deletes an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

beginDeleteAndWait(string, string, string, InvoiceSectionsDeleteOptionalParams)

Deletes an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

get(string, string, string, InvoiceSectionsGetOptionalParams)

Gets an invoice section by its ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

listByBillingProfile(string, string, InvoiceSectionsListByBillingProfileOptionalParams)

Lists the invoice sections that a user has access to. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

validateDeleteEligibility(string, string, string, InvoiceSectionsValidateDeleteEligibilityOptionalParams)

Validates if the invoice section can be deleted. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

Method Details

beginCreateOrUpdate(string, string, string, InvoiceSection, InvoiceSectionsCreateOrUpdateOptionalParams)

Creates or updates an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

function beginCreateOrUpdate(billingAccountName: string, billingProfileName: string, invoiceSectionName: string, parameters: InvoiceSection, options?: InvoiceSectionsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<InvoiceSection>, InvoiceSection>>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

billingProfileName

string

The ID that uniquely identifies a billing profile.

invoiceSectionName

string

The ID that uniquely identifies an invoice section.

parameters
InvoiceSection

An invoice section.

options
InvoiceSectionsCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<InvoiceSection>, InvoiceSection>>

beginCreateOrUpdateAndWait(string, string, string, InvoiceSection, InvoiceSectionsCreateOrUpdateOptionalParams)

Creates or updates an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

function beginCreateOrUpdateAndWait(billingAccountName: string, billingProfileName: string, invoiceSectionName: string, parameters: InvoiceSection, options?: InvoiceSectionsCreateOrUpdateOptionalParams): Promise<InvoiceSection>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

billingProfileName

string

The ID that uniquely identifies a billing profile.

invoiceSectionName

string

The ID that uniquely identifies an invoice section.

parameters
InvoiceSection

An invoice section.

options
InvoiceSectionsCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<InvoiceSection>

beginDelete(string, string, string, InvoiceSectionsDeleteOptionalParams)

Deletes an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

function beginDelete(billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: InvoiceSectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<InvoiceSectionsDeleteHeaders>, InvoiceSectionsDeleteHeaders>>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

billingProfileName

string

The ID that uniquely identifies a billing profile.

invoiceSectionName

string

The ID that uniquely identifies an invoice section.

options
InvoiceSectionsDeleteOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<InvoiceSectionsDeleteHeaders>, InvoiceSectionsDeleteHeaders>>

beginDeleteAndWait(string, string, string, InvoiceSectionsDeleteOptionalParams)

Deletes an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

function beginDeleteAndWait(billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: InvoiceSectionsDeleteOptionalParams): Promise<InvoiceSectionsDeleteHeaders>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

billingProfileName

string

The ID that uniquely identifies a billing profile.

invoiceSectionName

string

The ID that uniquely identifies an invoice section.

options
InvoiceSectionsDeleteOptionalParams

The options parameters.

Returns

get(string, string, string, InvoiceSectionsGetOptionalParams)

Gets an invoice section by its ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

function get(billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: InvoiceSectionsGetOptionalParams): Promise<InvoiceSection>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

billingProfileName

string

The ID that uniquely identifies a billing profile.

invoiceSectionName

string

The ID that uniquely identifies an invoice section.

options
InvoiceSectionsGetOptionalParams

The options parameters.

Returns

Promise<InvoiceSection>

listByBillingProfile(string, string, InvoiceSectionsListByBillingProfileOptionalParams)

Lists the invoice sections that a user has access to. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

function listByBillingProfile(billingAccountName: string, billingProfileName: string, options?: InvoiceSectionsListByBillingProfileOptionalParams): PagedAsyncIterableIterator<InvoiceSection, InvoiceSection[], PageSettings>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

billingProfileName

string

The ID that uniquely identifies a billing profile.

options
InvoiceSectionsListByBillingProfileOptionalParams

The options parameters.

Returns

validateDeleteEligibility(string, string, string, InvoiceSectionsValidateDeleteEligibilityOptionalParams)

Validates if the invoice section can be deleted. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.

function validateDeleteEligibility(billingAccountName: string, billingProfileName: string, invoiceSectionName: string, options?: InvoiceSectionsValidateDeleteEligibilityOptionalParams): Promise<DeleteInvoiceSectionEligibilityResult>

Parameters

billingAccountName

string

The ID that uniquely identifies a billing account.

billingProfileName

string

The ID that uniquely identifies a billing profile.

invoiceSectionName

string

The ID that uniquely identifies an invoice section.

Returns