BillingAccounts interface
代表 BillingAccounts 的介面。
方法
方法詳細資料
beginAddPaymentTerms(string, PaymentTerm[], BillingAccountsAddPaymentTermsOptionalParams)
將付款條款新增至計費帳戶下的所有帳單配置檔。 目前,只有合約類型為 「Microsoft客戶合約」且 AccountType 為 「企業」的計費帳戶,才能新增付款條款。 此動作需要預先授權,且只有 Field Sellers 有權新增付款條款,而不是自助動作。
function beginAddPaymentTerms(billingAccountName: string, parameters: PaymentTerm[], options?: BillingAccountsAddPaymentTermsOptionalParams): Promise<SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>
參數
- billingAccountName
-
string
可唯一識別計費帳戶的標識碼。
- parameters
付款期限的屬性。
選項參數。
傳回
Promise<@azure/core-lro.SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>
beginAddPaymentTermsAndWait(string, PaymentTerm[], BillingAccountsAddPaymentTermsOptionalParams)
將付款條款新增至計費帳戶下的所有帳單配置檔。 目前,只有合約類型為 「Microsoft客戶合約」且 AccountType 為 「企業」的計費帳戶,才能新增付款條款。 此動作需要預先授權,且只有 Field Sellers 有權新增付款條款,而不是自助動作。
function beginAddPaymentTermsAndWait(billingAccountName: string, parameters: PaymentTerm[], options?: BillingAccountsAddPaymentTermsOptionalParams): Promise<BillingAccount>
參數
- billingAccountName
-
string
可唯一識別計費帳戶的標識碼。
- parameters
付款期限的屬性。
選項參數。
傳回
Promise<BillingAccount>
beginCancelPaymentTerms(string, Date, BillingAccountsCancelPaymentTermsOptionalParams)
取消要求取消日期之後計費帳戶上的所有付款條款。 目前,取消付款條款只會由系統管理員動作提供服務,而不是自助動作。
function beginCancelPaymentTerms(billingAccountName: string, parameters: Date, options?: BillingAccountsCancelPaymentTermsOptionalParams): Promise<SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>
參數
- billingAccountName
-
string
可唯一識別計費帳戶的標識碼。
- 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
可唯一識別計費帳戶的標識碼。
- parameters
-
Date
日期之後,任何需要取消的付款條款。
選項參數。
傳回
Promise<BillingAccount>
beginUpdate(string, BillingAccountPatch, BillingAccountsUpdateOptionalParams)
更新計費帳戶的屬性。 目前,Microsoft客戶合約類型的計費帳戶,可以更新 displayName 和位址。 目前位址和通知電子郵件位址可以更新為合約類型Microsoft在線服務合約的計費帳戶。 目前,可以針對合約類型為 Enterprise 合約的計費帳戶編輯採購單號碼。
function beginUpdate(billingAccountName: string, parameters: BillingAccountPatch, options?: BillingAccountsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>
參數
- billingAccountName
-
string
可唯一識別計費帳戶的標識碼。
- parameters
- BillingAccountPatch
計費帳戶。
選項參數。
傳回
Promise<@azure/core-lro.SimplePollerLike<OperationState<BillingAccount>, BillingAccount>>
beginUpdateAndWait(string, BillingAccountPatch, BillingAccountsUpdateOptionalParams)
更新計費帳戶的屬性。 目前,Microsoft客戶合約類型的計費帳戶,可以更新 displayName 和位址。 目前位址和通知電子郵件位址可以更新為合約類型Microsoft在線服務合約的計費帳戶。 目前,可以針對合約類型為 Enterprise 合約的計費帳戶編輯採購單號碼。
function beginUpdateAndWait(billingAccountName: string, parameters: BillingAccountPatch, options?: BillingAccountsUpdateOptionalParams): Promise<BillingAccount>
參數
- billingAccountName
-
string
可唯一識別計費帳戶的標識碼。
- parameters
- BillingAccountPatch
計費帳戶。
選項參數。
傳回
Promise<BillingAccount>
confirmTransition(string, BillingAccountsConfirmTransitionOptionalParams)
取得已從在線服務計劃Microsoft合約類型轉換為合約類型Microsoft客戶合約之計費帳戶的轉換詳細數據。
function confirmTransition(billingAccountName: string, options?: BillingAccountsConfirmTransitionOptionalParams): Promise<TransitionDetails>
參數
- billingAccountName
-
string
可唯一識別計費帳戶的標識碼。
選項參數。
傳回
Promise<TransitionDetails>
get(string, BillingAccountsGetOptionalParams)
依其標識碼取得計費帳戶。
function get(billingAccountName: string, options?: BillingAccountsGetOptionalParams): Promise<BillingAccount>
參數
- billingAccountName
-
string
可唯一識別計費帳戶的標識碼。
- 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
可唯一識別計費帳戶的標識碼。
傳回
validatePaymentTerms(string, PaymentTerm[], BillingAccountsValidatePaymentTermsOptionalParams)
使用合約類型 『Microsoft 客戶合約』 和帳戶類型 『Enterprise』 驗證帳單帳戶上的付款條款。
function validatePaymentTerms(billingAccountName: string, parameters: PaymentTerm[], options?: BillingAccountsValidatePaymentTermsOptionalParams): Promise<PaymentTermsEligibilityResult>
參數
- billingAccountName
-
string
可唯一識別計費帳戶的標識碼。
- parameters
付款期限的屬性。
選項參數。
傳回
Promise<PaymentTermsEligibilityResult>