BillingAccountsClient Interface
public interface BillingAccountsClient
An instance of this class provides access to all the operations defined in BillingAccountsClient.
Method Summary
Method Details
addPaymentTerms
public abstract BillingAccountInner addPaymentTerms(String billingAccountName, List<PaymentTerm> parameters)
Adds payment terms to all the billing profiles under the billing account. Currently, payment terms can be added only on billing accounts that have Agreement Type as 'Microsoft Customer Agreement' and AccountType as 'Enterprise'. This action needs pre-authorization and only Field Sellers are authorized to add the payment terms and is not a self-serve action.
Parameters:
Returns:
addPaymentTerms
public abstract BillingAccountInner addPaymentTerms(String billingAccountName, List<PaymentTerm> parameters, Context context)
Adds payment terms to all the billing profiles under the billing account. Currently, payment terms can be added only on billing accounts that have Agreement Type as 'Microsoft Customer Agreement' and AccountType as 'Enterprise'. This action needs pre-authorization and only Field Sellers are authorized to add the payment terms and is not a self-serve action.
Parameters:
Returns:
beginAddPaymentTerms
public abstract SyncPoller<PollResult<BillingAccountInner>,BillingAccountInner> beginAddPaymentTerms(String billingAccountName, List<PaymentTerm> parameters)
Adds payment terms to all the billing profiles under the billing account. Currently, payment terms can be added only on billing accounts that have Agreement Type as 'Microsoft Customer Agreement' and AccountType as 'Enterprise'. This action needs pre-authorization and only Field Sellers are authorized to add the payment terms and is not a self-serve action.
Parameters:
Returns:
beginAddPaymentTerms
public abstract SyncPoller<PollResult<BillingAccountInner>,BillingAccountInner> beginAddPaymentTerms(String billingAccountName, List<PaymentTerm> parameters, Context context)
Adds payment terms to all the billing profiles under the billing account. Currently, payment terms can be added only on billing accounts that have Agreement Type as 'Microsoft Customer Agreement' and AccountType as 'Enterprise'. This action needs pre-authorization and only Field Sellers are authorized to add the payment terms and is not a self-serve action.
Parameters:
Returns:
beginCancelPaymentTerms
public abstract SyncPoller<PollResult<BillingAccountInner>,BillingAccountInner> beginCancelPaymentTerms(String billingAccountName, OffsetDateTime parameters)
Cancels all the payment terms on billing account that falls after the cancellation date in the request. Currently, cancel payment terms is only served by admin actions and is not a self-serve action.
Parameters:
Returns:
beginCancelPaymentTerms
public abstract SyncPoller<PollResult<BillingAccountInner>,BillingAccountInner> beginCancelPaymentTerms(String billingAccountName, OffsetDateTime parameters, Context context)
Cancels all the payment terms on billing account that falls after the cancellation date in the request. Currently, cancel payment terms is only served by admin actions and is not a self-serve action.
Parameters:
Returns:
beginUpdate
public abstract SyncPoller<PollResult<BillingAccountInner>,BillingAccountInner> beginUpdate(String billingAccountName, BillingAccountPatch parameters)
Updates the properties of a billing account. Currently, displayName and address can be updated for billing accounts with agreement type Microsoft Customer Agreement. Currently address and notification email address can be updated for billing accounts with agreement type Microsoft Online Services Agreement. Currently, purchase order number can be edited for billing accounts with agreement type Enterprise Agreement.
Parameters:
Returns:
beginUpdate
public abstract SyncPoller<PollResult<BillingAccountInner>,BillingAccountInner> beginUpdate(String billingAccountName, BillingAccountPatch parameters, Context context)
Updates the properties of a billing account. Currently, displayName and address can be updated for billing accounts with agreement type Microsoft Customer Agreement. Currently address and notification email address can be updated for billing accounts with agreement type Microsoft Online Services Agreement. Currently, purchase order number can be edited for billing accounts with agreement type Enterprise Agreement.
Parameters:
Returns:
cancelPaymentTerms
public abstract BillingAccountInner cancelPaymentTerms(String billingAccountName, OffsetDateTime parameters)
Cancels all the payment terms on billing account that falls after the cancellation date in the request. Currently, cancel payment terms is only served by admin actions and is not a self-serve action.
Parameters:
Returns:
cancelPaymentTerms
public abstract BillingAccountInner cancelPaymentTerms(String billingAccountName, OffsetDateTime parameters, Context context)
Cancels all the payment terms on billing account that falls after the cancellation date in the request. Currently, cancel payment terms is only served by admin actions and is not a self-serve action.
Parameters:
Returns:
confirmTransition
public abstract TransitionDetailsInner confirmTransition(String billingAccountName)
Gets the transition details for a billing account that has transitioned from agreement type Microsoft Online Services Program to agreement type Microsoft Customer Agreement.
Parameters:
Returns:
confirmTransitionWithResponse
public abstract Response<TransitionDetailsInner> confirmTransitionWithResponse(String billingAccountName, Context context)
Gets the transition details for a billing account that has transitioned from agreement type Microsoft Online Services Program to agreement type Microsoft Customer Agreement.
Parameters:
Returns:
get
public abstract BillingAccountInner get(String billingAccountName)
Gets a billing account by its ID.
Parameters:
Returns:
getWithResponse
public abstract Response<BillingAccountInner> getWithResponse(String billingAccountName, Context context)
Gets a billing account by its ID.
Parameters:
Returns:
list
public abstract PagedIterable<BillingAccountInner> list()
Lists the billing accounts that a user has access to.
Returns:
list
public abstract PagedIterable<BillingAccountInner> list(Boolean includeAll, Boolean includeAllWithoutBillingProfiles, Boolean includeDeleted, Boolean includePendingAgreement, Boolean includeResellee, String legalOwnerTid, String legalOwnerOid, String filter, String expand, Long top, Long skip, String search, Context context)
Lists the billing accounts that a user has access to.
Parameters:
Returns:
listInvoiceSectionsByCreateSubscriptionPermission
public abstract PagedIterable<InvoiceSectionWithCreateSubPermissionInner> listInvoiceSectionsByCreateSubscriptionPermission(String billingAccountName)
Lists the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
listInvoiceSectionsByCreateSubscriptionPermission
public abstract PagedIterable<InvoiceSectionWithCreateSubPermissionInner> listInvoiceSectionsByCreateSubscriptionPermission(String billingAccountName, String filter, Context context)
Lists the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
Parameters:
Returns:
update
public abstract BillingAccountInner update(String billingAccountName, BillingAccountPatch parameters)
Updates the properties of a billing account. Currently, displayName and address can be updated for billing accounts with agreement type Microsoft Customer Agreement. Currently address and notification email address can be updated for billing accounts with agreement type Microsoft Online Services Agreement. Currently, purchase order number can be edited for billing accounts with agreement type Enterprise Agreement.
Parameters:
Returns:
update
public abstract BillingAccountInner update(String billingAccountName, BillingAccountPatch parameters, Context context)
Updates the properties of a billing account. Currently, displayName and address can be updated for billing accounts with agreement type Microsoft Customer Agreement. Currently address and notification email address can be updated for billing accounts with agreement type Microsoft Online Services Agreement. Currently, purchase order number can be edited for billing accounts with agreement type Enterprise Agreement.
Parameters:
Returns:
validatePaymentTerms
public abstract PaymentTermsEligibilityResultInner validatePaymentTerms(String billingAccountName, List<PaymentTerm> parameters)
Validates payment terms on a billing account with agreement type 'Microsoft Customer Agreement' and account type 'Enterprise'.
Parameters:
Returns:
validatePaymentTermsWithResponse
public abstract Response<PaymentTermsEligibilityResultInner> validatePaymentTermsWithResponse(String billingAccountName, List<PaymentTerm> parameters, Context context)
Validates payment terms on a billing account with agreement type 'Microsoft Customer Agreement' and account type 'Enterprise'.
Parameters:
Returns: