BillingAccounts interface
表示 BillingAccounts 的接口。
方法
方法详细信息
beginAddPaymentTerms(string, PaymentTerm[], BillingAccountsAddPaymentTermsOptionalParams)
向计费帐户下的所有计费配置文件添加付款条款。 目前,只能在协议类型为“Microsoft客户协议”和 AccountType 为“Enterprise”的计费帐户上添加付款条款。 此作需要预先授权,只有 Field Sellers 才有权添加付款条款,并且不是自助服务作。
function beginAddPaymentTerms(billingAccountName: string, parameters: PaymentTerm[], options?: BillingAccountsAddPaymentTermsOptionalParams): Promise<SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>
参数
- billingAccountName
-
string
唯一标识计费帐户的 ID。
- parameters
付款期限的属性。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>
beginAddPaymentTermsAndWait(string, PaymentTerm[], BillingAccountsAddPaymentTermsOptionalParams)
向计费帐户下的所有计费配置文件添加付款条款。 目前,只能在协议类型为“Microsoft客户协议”和 AccountType 为“Enterprise”的计费帐户上添加付款条款。 此作需要预先授权,只有 Field Sellers 才有权添加付款条款,并且不是自助服务作。
function beginAddPaymentTermsAndWait(billingAccountName: string, parameters: PaymentTerm[], options?: BillingAccountsAddPaymentTermsOptionalParams): Promise<BillingAccount>
参数
- billingAccountName
-
string
唯一标识计费帐户的 ID。
- parameters
付款期限的属性。
选项参数。
返回
Promise<BillingAccount>
beginCancelPaymentTerms(string, Date, BillingAccountsCancelPaymentTermsOptionalParams)
取消请求取消日期后计费帐户的所有付款条款。 目前,取消付款条款仅由管理员作提供,不是自助服务作。
function beginCancelPaymentTerms(billingAccountName: string, parameters: Date, options?: BillingAccountsCancelPaymentTermsOptionalParams): Promise<SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>
参数
- billingAccountName
-
string
唯一标识计费帐户的 ID。
- parameters
-
Date
需要取消的任何付款条款的日期。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>
beginCancelPaymentTermsAndWait(string, Date, BillingAccountsCancelPaymentTermsOptionalParams)
取消请求取消日期后计费帐户的所有付款条款。 目前,取消付款条款仅由管理员作提供,不是自助服务作。
function beginCancelPaymentTermsAndWait(billingAccountName: string, parameters: Date, options?: BillingAccountsCancelPaymentTermsOptionalParams): Promise<BillingAccount>
参数
- billingAccountName
-
string
唯一标识计费帐户的 ID。
- parameters
-
Date
需要取消的任何付款条款的日期。
选项参数。
返回
Promise<BillingAccount>
beginUpdate(string, BillingAccountPatch, BillingAccountsUpdateOptionalParams)
更新计费帐户的属性。 目前,可针对协议类型Microsoft客户协议的计费帐户更新 displayName 和地址。 对于协议类型Microsoft联机服务协议的计费帐户,可以更新当前地址和通知电子邮件地址。 目前,可以为协议类型为企业协议的计费帐户编辑采购订单编号。
function beginUpdate(billingAccountName: string, parameters: BillingAccountPatch, options?: BillingAccountsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>
参数
- billingAccountName
-
string
唯一标识计费帐户的 ID。
- parameters
- BillingAccountPatch
计费帐户。
选项参数。
返回
Promise<@azure/core-lro.SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>
beginUpdateAndWait(string, BillingAccountPatch, BillingAccountsUpdateOptionalParams)
更新计费帐户的属性。 目前,可针对协议类型Microsoft客户协议的计费帐户更新 displayName 和地址。 对于协议类型Microsoft联机服务协议的计费帐户,可以更新当前地址和通知电子邮件地址。 目前,可以为协议类型为企业协议的计费帐户编辑采购订单编号。
function beginUpdateAndWait(billingAccountName: string, parameters: BillingAccountPatch, options?: BillingAccountsUpdateOptionalParams): Promise<BillingAccount>
参数
- billingAccountName
-
string
唯一标识计费帐户的 ID。
- parameters
- BillingAccountPatch
计费帐户。
选项参数。
返回
Promise<BillingAccount>
confirmTransition(string, BillingAccountsConfirmTransitionOptionalParams)
获取已从协议类型Microsoft Online Services 计划转换为协议类型Microsoft客户协议的计费帐户的转换详细信息。
function confirmTransition(billingAccountName: string, options?: BillingAccountsConfirmTransitionOptionalParams): Promise<TransitionDetails>
参数
- billingAccountName
-
string
唯一标识计费帐户的 ID。
选项参数。
返回
Promise<TransitionDetails>
get(string, BillingAccountsGetOptionalParams)
按其 ID 获取计费帐户。
function get(billingAccountName: string, options?: BillingAccountsGetOptionalParams): Promise<BillingAccount>
参数
- billingAccountName
-
string
唯一标识计费帐户的 ID。
- options
- BillingAccountsGetOptionalParams
选项参数。
返回
Promise<BillingAccount>
list(BillingAccountsListOptionalParams)
列出用户有权访问的计费帐户。
function list(options?: BillingAccountsListOptionalParams): PagedAsyncIterableIterator<BillingAccount, BillingAccount[], PageSettings>
参数
选项参数。
返回
listInvoiceSectionsByCreateSubscriptionPermission(string, BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams)
列出用户有权为其创建 Azure 订阅的发票科目。 该作仅支持协议类型为Microsoft客户协议的计费帐户。
function listInvoiceSectionsByCreateSubscriptionPermission(billingAccountName: string, options?: BillingAccountsListInvoiceSectionsByCreateSubscriptionPermissionOptionalParams): PagedAsyncIterableIterator<InvoiceSectionWithCreateSubPermission, InvoiceSectionWithCreateSubPermission[], PageSettings>
参数
- billingAccountName
-
string
唯一标识计费帐户的 ID。
返回
validatePaymentTerms(string, PaymentTerm[], BillingAccountsValidatePaymentTermsOptionalParams)
使用协议类型“Microsoft客户协议”和帐户类型“Enterprise”验证计费帐户的付款条款。
function validatePaymentTerms(billingAccountName: string, parameters: PaymentTerm[], options?: BillingAccountsValidatePaymentTermsOptionalParams): Promise<PaymentTermsEligibilityResult>
参数
- billingAccountName
-
string
唯一标识计费帐户的 ID。
- parameters
付款期限的属性。
选项参数。
返回
Promise<PaymentTermsEligibilityResult>