PaymentMethodsClient Interface
public interface PaymentMethodsClient
An instance of this class provides access to all the operations defined in PaymentMethodsClient.
Method Summary
Method Details
deleteByUser
public abstract void deleteByUser(String paymentMethodName)
Deletes a payment method owned by the caller.
Parameters:
deleteByUserWithResponse
public abstract Response<Void> deleteByUserWithResponse(String paymentMethodName, Context context)
Deletes a payment method owned by the caller.
Parameters:
Returns:
getByBillingAccount
public abstract PaymentMethodInner getByBillingAccount(String billingAccountName, String paymentMethodName)
Gets a payment method available for a billing account. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
getByBillingAccountWithResponse
public abstract Response<PaymentMethodInner> getByBillingAccountWithResponse(String billingAccountName, String paymentMethodName, Context context)
Gets a payment method available for a billing account. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
getByBillingProfile
public abstract PaymentMethodLinkInner getByBillingProfile(String billingAccountName, String billingProfileName, String paymentMethodName)
Gets a payment method linked with a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
getByBillingProfileWithResponse
public abstract Response<PaymentMethodLinkInner> getByBillingProfileWithResponse(String billingAccountName, String billingProfileName, String paymentMethodName, Context context)
Gets a payment method linked with a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
getByUser
public abstract PaymentMethodInner getByUser(String paymentMethodName)
Gets a payment method owned by the caller.
Parameters:
Returns:
getByUserWithResponse
public abstract Response<PaymentMethodInner> getByUserWithResponse(String paymentMethodName, Context context)
Gets a payment method owned by the caller.
Parameters:
Returns:
listByBillingAccount
public abstract PagedIterable<PaymentMethodInner> listByBillingAccount(String billingAccountName)
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.
Parameters:
Returns:
listByBillingAccount
public abstract PagedIterable<PaymentMethodInner> listByBillingAccount(String billingAccountName, Context context)
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.
Parameters:
Returns:
listByBillingProfile
public abstract PagedIterable<PaymentMethodLinkInner> listByBillingProfile(String billingAccountName, String billingProfileName)
Lists payment methods attached to a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
listByBillingProfile
public abstract PagedIterable<PaymentMethodLinkInner> listByBillingProfile(String billingAccountName, String billingProfileName, Context context)
Lists payment methods attached to a billing profile. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
listByUser
public abstract PagedIterable<PaymentMethodInner> listByUser()
Lists the payment methods owned by the caller.
Returns:
listByUser
public abstract PagedIterable<PaymentMethodInner> listByUser(Context context)
Lists the payment methods owned by the caller.
Parameters:
Returns: