Share via


MockableBillingTenantResource.GetBillingPaymentMethod Method

Definition

Gets a payment method owned by the caller.

  • Request Path: /providers/Microsoft.Billing/paymentMethods/{paymentMethodName}
  • Operation Id: PaymentMethods_GetByUser
public virtual Azure.Response<Azure.ResourceManager.Billing.BillingPaymentMethodResource> GetBillingPaymentMethod (string paymentMethodName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetBillingPaymentMethod : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Billing.BillingPaymentMethodResource>
override this.GetBillingPaymentMethod : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Billing.BillingPaymentMethodResource>
Public Overridable Function GetBillingPaymentMethod (paymentMethodName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of BillingPaymentMethodResource)

Parameters

paymentMethodName
String

The ID that uniquely identifies a payment method.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

paymentMethodName is null.

paymentMethodName is an empty string, and was expected to be non-empty.

Applies to