InvoiceSections interface
Interface representing a InvoiceSections.
Methods
begin |
Creates or updates an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. |
begin |
Creates or updates an invoice section. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. |
begin |
Deletes an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement. |
begin |
Deletes an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement. |
get(string, string, string, Invoice |
Gets an invoice section by its ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. |
list |
Lists the invoice sections that a user has access to. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. |
validate |
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.
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.
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.
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.
The options parameters.
Returns
Promise<InvoiceSectionsDeleteHeaders>
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.
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.
The options parameters.