你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PaymentMethods interface

表示 PaymentMethods 的接口。

方法

deleteByUser(string, PaymentMethodsDeleteByUserOptionalParams)

删除调用方拥有的付款方式。

getByBillingAccount(string, string, PaymentMethodsGetByBillingAccountOptionalParams)

获取可用于计费帐户的付款方式。 该作仅支持协议类型为Microsoft客户协议的计费帐户。

getByBillingProfile(string, string, string, PaymentMethodsGetByBillingProfileOptionalParams)

获取与计费配置文件链接的付款方式。 该作仅支持协议类型为Microsoft客户协议的计费帐户。

getByUser(string, PaymentMethodsGetByUserOptionalParams)

获取调用方拥有的付款方式。

listByBillingAccount(string, PaymentMethodsListByBillingAccountOptionalParams)

列出计费帐户可用的付款方式。 除了调用方拥有的付款方式之外,这些付款方式也可以附加到计费配置文件中,以便付款。 该作仅支持协议类型为Microsoft客户协议的计费帐户。

listByBillingProfile(string, string, PaymentMethodsListByBillingProfileOptionalParams)

列出附加到计费配置文件的付款方式。 该作仅支持协议类型为Microsoft客户协议的计费帐户。

listByUser(PaymentMethodsListByUserOptionalParams)

列出调用方拥有的付款方式。

方法详细信息

deleteByUser(string, PaymentMethodsDeleteByUserOptionalParams)

删除调用方拥有的付款方式。

function deleteByUser(paymentMethodName: string, options?: PaymentMethodsDeleteByUserOptionalParams): Promise<void>

参数

paymentMethodName

string

唯一标识付款方式的 ID。

返回

Promise<void>

getByBillingAccount(string, string, PaymentMethodsGetByBillingAccountOptionalParams)

获取可用于计费帐户的付款方式。 该作仅支持协议类型为Microsoft客户协议的计费帐户。

function getByBillingAccount(billingAccountName: string, paymentMethodName: string, options?: PaymentMethodsGetByBillingAccountOptionalParams): Promise<PaymentMethod>

参数

billingAccountName

string

唯一标识计费帐户的 ID。

paymentMethodName

string

唯一标识付款方式的 ID。

返回

Promise<PaymentMethod>

getByBillingProfile(string, string, string, PaymentMethodsGetByBillingProfileOptionalParams)

获取与计费配置文件链接的付款方式。 该作仅支持协议类型为Microsoft客户协议的计费帐户。

function getByBillingProfile(billingAccountName: string, billingProfileName: string, paymentMethodName: string, options?: PaymentMethodsGetByBillingProfileOptionalParams): Promise<PaymentMethodLink>

参数

billingAccountName

string

唯一标识计费帐户的 ID。

billingProfileName

string

唯一标识计费配置文件的 ID。

paymentMethodName

string

唯一标识付款方式的 ID。

返回

getByUser(string, PaymentMethodsGetByUserOptionalParams)

获取调用方拥有的付款方式。

function getByUser(paymentMethodName: string, options?: PaymentMethodsGetByUserOptionalParams): Promise<PaymentMethod>

参数

paymentMethodName

string

唯一标识付款方式的 ID。

options
PaymentMethodsGetByUserOptionalParams

选项参数。

返回

Promise<PaymentMethod>

listByBillingAccount(string, PaymentMethodsListByBillingAccountOptionalParams)

列出计费帐户可用的付款方式。 除了调用方拥有的付款方式之外,这些付款方式也可以附加到计费配置文件中,以便付款。 该作仅支持协议类型为Microsoft客户协议的计费帐户。

function listByBillingAccount(billingAccountName: string, options?: PaymentMethodsListByBillingAccountOptionalParams): PagedAsyncIterableIterator<PaymentMethod, PaymentMethod[], PageSettings>

参数

billingAccountName

string

唯一标识计费帐户的 ID。

返回

listByBillingProfile(string, string, PaymentMethodsListByBillingProfileOptionalParams)

列出附加到计费配置文件的付款方式。 该作仅支持协议类型为Microsoft客户协议的计费帐户。

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

参数

billingAccountName

string

唯一标识计费帐户的 ID。

billingProfileName

string

唯一标识计费配置文件的 ID。

返回

listByUser(PaymentMethodsListByUserOptionalParams)

列出调用方拥有的付款方式。

function listByUser(options?: PaymentMethodsListByUserOptionalParams): PagedAsyncIterableIterator<PaymentMethod, PaymentMethod[], PageSettings>

参数

options
PaymentMethodsListByUserOptionalParams

选项参数。

返回