PaymentMethodsOperations interface

Interface representing a PaymentMethods operations.

Properties

deleteByUser

Deletes a payment method owned by the caller.

getByBillingAccount

Gets a payment method available for a billing account. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

getByBillingProfile

Gets a payment method linked with a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

getByUser

Gets a payment method owned by the caller.

listByBillingAccount

Lists the payment methods available for a billing account. Along with the payment methods owned by the caller, these payment methods can be attached to a billing profile to make payments. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

listByBillingProfile

Lists payment methods attached to a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

listByUser

Lists the payment methods owned by the caller.

Property Details

deleteByUser

Deletes a payment method owned by the caller.

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

Property Value

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

getByBillingAccount

Gets a payment method available for a billing account. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

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

Property Value

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

getByBillingProfile

Gets a payment method linked with a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

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

Property Value

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

getByUser

Gets a payment method owned by the caller.

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

Property Value

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

listByBillingAccount

Lists the payment methods available for a billing account. Along with the payment methods owned by the caller, these payment methods can be attached to a billing profile to make payments. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

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

Property Value

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

listByBillingProfile

Lists payment methods attached to a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

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

Property Value

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

listByUser

Lists the payment methods owned by the caller.

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

Property Value

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