BillingAccountsOperations interface

Interface representing a BillingAccounts operations.

Properties

addPaymentTerms

Adds payment terms to all the billing profiles under the billing account. Currently, payment terms can be added only on billing accounts that have Agreement Type as 'Microsoft Customer Agreement' and AccountType as 'Enterprise'. This action needs pre-authorization and only Field Sellers are authorized to add the payment terms and is not a self-serve action.

beginAddPaymentTerms
beginAddPaymentTermsAndWait
beginCancelPaymentTerms
beginCancelPaymentTermsAndWait
beginUpdate
beginUpdateAndWait
cancelPaymentTerms

Cancels all the payment terms on billing account that falls after the cancellation date in the request. Currently, cancel payment terms is only served by admin actions and is not a self-serve action.

confirmTransition

Gets the transition details for a billing account that has transitioned from agreement type Microsoft Online Services Program to agreement type Microsoft Customer Agreement.

get

Gets a billing account by its ID.

list

Lists the billing accounts that a user has access to.

listInvoiceSectionsByCreateSubscriptionPermission

Lists the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

update

Updates the properties of a billing account. Currently, displayName and address can be updated for billing accounts with agreement type Microsoft Customer Agreement. Currently address and notification email address can be updated for billing accounts with agreement type Microsoft Online Services Agreement. Currently, purchase order number can be edited for billing accounts with agreement type Enterprise Agreement.

validatePaymentTerms

Validates payment terms on a billing account with agreement type 'Microsoft Customer Agreement' and account type 'Enterprise'.

Property Details

addPaymentTerms

Adds payment terms to all the billing profiles under the billing account. Currently, payment terms can be added only on billing accounts that have Agreement Type as 'Microsoft Customer Agreement' and AccountType as 'Enterprise'. This action needs pre-authorization and only Field Sellers are authorized to add the payment terms and is not a self-serve action.

addPaymentTerms: (billingAccountName: string, parameters: PaymentTerm[], options?: BillingAccountsAddPaymentTermsOptionalParams) => PollerLike<OperationState<BillingAccount>, BillingAccount>

Property Value

(billingAccountName: string, parameters: PaymentTerm[], options?: BillingAccountsAddPaymentTermsOptionalParams) => PollerLike<OperationState<BillingAccount>, BillingAccount>

beginAddPaymentTerms

Warning

This API is now deprecated.

use addPaymentTerms instead

beginAddPaymentTerms: (billingAccountName: string, parameters: PaymentTerm[], options?: BillingAccountsAddPaymentTermsOptionalParams) => Promise<SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>

Property Value

(billingAccountName: string, parameters: PaymentTerm[], options?: BillingAccountsAddPaymentTermsOptionalParams) => Promise<SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>

beginAddPaymentTermsAndWait

Warning

This API is now deprecated.

use addPaymentTerms instead

beginAddPaymentTermsAndWait: (billingAccountName: string, parameters: PaymentTerm[], options?: BillingAccountsAddPaymentTermsOptionalParams) => Promise<BillingAccount>

Property Value

(billingAccountName: string, parameters: PaymentTerm[], options?: BillingAccountsAddPaymentTermsOptionalParams) => Promise<BillingAccount>

beginCancelPaymentTerms

Warning

This API is now deprecated.

use cancelPaymentTerms instead

beginCancelPaymentTerms: (billingAccountName: string, parameters: Date, options?: BillingAccountsCancelPaymentTermsOptionalParams) => Promise<SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>

Property Value

(billingAccountName: string, parameters: Date, options?: BillingAccountsCancelPaymentTermsOptionalParams) => Promise<SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>

beginCancelPaymentTermsAndWait

Warning

This API is now deprecated.

use cancelPaymentTerms instead

beginCancelPaymentTermsAndWait: (billingAccountName: string, parameters: Date, options?: BillingAccountsCancelPaymentTermsOptionalParams) => Promise<BillingAccount>

Property Value

(billingAccountName: string, parameters: Date, options?: BillingAccountsCancelPaymentTermsOptionalParams) => Promise<BillingAccount>

beginUpdate

Warning

This API is now deprecated.

use update instead

beginUpdate: (billingAccountName: string, parameters: BillingAccountPatch, options?: BillingAccountsUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>

Property Value

(billingAccountName: string, parameters: BillingAccountPatch, options?: BillingAccountsUpdateOptionalParams) => Promise<SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>

beginUpdateAndWait

Warning

This API is now deprecated.

use update instead

beginUpdateAndWait: (billingAccountName: string, parameters: BillingAccountPatch, options?: BillingAccountsUpdateOptionalParams) => Promise<BillingAccount>

Property Value

(billingAccountName: string, parameters: BillingAccountPatch, options?: BillingAccountsUpdateOptionalParams) => Promise<BillingAccount>

cancelPaymentTerms

Cancels all the payment terms on billing account that falls after the cancellation date in the request. Currently, cancel payment terms is only served by admin actions and is not a self-serve action.

cancelPaymentTerms: (billingAccountName: string, parameters: Date, options?: BillingAccountsCancelPaymentTermsOptionalParams) => PollerLike<OperationState<BillingAccount>, BillingAccount>

Property Value

(billingAccountName: string, parameters: Date, options?: BillingAccountsCancelPaymentTermsOptionalParams) => PollerLike<OperationState<BillingAccount>, BillingAccount>

confirmTransition

Gets the transition details for a billing account that has transitioned from agreement type Microsoft Online Services Program to agreement type Microsoft Customer Agreement.

confirmTransition: (billingAccountName: string, options?: BillingAccountsConfirmTransitionOptionalParams) => Promise<TransitionDetails>

Property Value

(billingAccountName: string, options?: BillingAccountsConfirmTransitionOptionalParams) => Promise<TransitionDetails>

get

Gets a billing account by its ID.

get: (billingAccountName: string, options?: BillingAccountsGetOptionalParams) => Promise<BillingAccount>

Property Value

(billingAccountName: string, options?: BillingAccountsGetOptionalParams) => Promise<BillingAccount>

list

Lists the billing accounts that a user has access to.

list: (options?: BillingAccountsListOptionalParams) => PagedAsyncIterableIterator<BillingAccount, BillingAccount[], PageSettings>

Property Value

(options?: BillingAccountsListOptionalParams) => PagedAsyncIterableIterator<BillingAccount, BillingAccount[], PageSettings>

listInvoiceSectionsByCreateSubscriptionPermission

Lists the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

listInvoiceSectionsByCreateSubscriptionPermission: (billingAccountName: string, options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams) => PagedAsyncIterableIterator<InvoiceSectionWithCreateSubPermission, InvoiceSectionWithCreateSubPermission[], PageSettings>

Property Value

(billingAccountName: string, options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams) => PagedAsyncIterableIterator<InvoiceSectionWithCreateSubPermission, InvoiceSectionWithCreateSubPermission[], PageSettings>

update

Updates the properties of a billing account. Currently, displayName and address can be updated for billing accounts with agreement type Microsoft Customer Agreement. Currently address and notification email address can be updated for billing accounts with agreement type Microsoft Online Services Agreement. Currently, purchase order number can be edited for billing accounts with agreement type Enterprise Agreement.

update: (billingAccountName: string, parameters: BillingAccountPatch, options?: BillingAccountsUpdateOptionalParams) => PollerLike<OperationState<BillingAccount>, BillingAccount>

Property Value

(billingAccountName: string, parameters: BillingAccountPatch, options?: BillingAccountsUpdateOptionalParams) => PollerLike<OperationState<BillingAccount>, BillingAccount>

validatePaymentTerms

Validates payment terms on a billing account with agreement type 'Microsoft Customer Agreement' and account type 'Enterprise'.

validatePaymentTerms: (billingAccountName: string, parameters: PaymentTerm[], options?: BillingAccountsValidatePaymentTermsOptionalParams) => Promise<PaymentTermsEligibilityResult>

Property Value

(billingAccountName: string, parameters: PaymentTerm[], options?: BillingAccountsValidatePaymentTermsOptionalParams) => Promise<PaymentTermsEligibilityResult>