Class CustomerOperations
java.lang.Object
com.microsoft.store.partnercenter.BasePartnerComponent<String>
com.microsoft.store.partnercenter.BasePartnerComponentString
com.microsoft.store.partnercenter.customers.CustomerOperations
- All Implemented Interfaces:
ICustomer,IEntityDeleteOperations<Customer>,IEntityGetOperations<Customer>,IEntityPatchOperations<Customer>,IPartnerComponent<String>,IPartnerComponentString
public class CustomerOperations extends BasePartnerComponentString implements ICustomer
Implements a single customer operations.
-
Constructor Summary
Constructors Constructor Description CustomerOperations(IPartner rootPartnerOperations, String customerId)Initializes a new instance of the CustomerOperations class. -
Method Summary
Modifier and Type Method Description voiddelete()Deletes the customer from a testing in production account.Customerget()Retrieves information of a specific customer.ICustomerAgreementCollectiongetAgreements()Obtains the accepted agreements for the customer.ICustomerAnalyticsCollectiongetAnalytics()Obtains the customer level analytics collection object.ICustomerApplicationConsentCollectiongetApplicationConsents()Obtains the application consents for the customer.IBatchJobStatusCollectiongetBatchUploadStatus()Obtains the devices batch upload job status behavior of the customer.ICartCollectiongetCarts()Gets the cart behavior for the customer.IConfigurationPolicyCollectiongetConfigurationPolicies()Obtains the configuration policies behavior for the customer.IDevicesBatchCollectiongetDeviceBatches()Obtains the devices batches behavior of the customer.ICustomerDeviceCollectiongetDevicePolicy()Obtains the device policy behavior of the customer.IDirectoryRoleCollectiongetDirectoryRoles()Obtains the Customer qualification.IEntitlementCollectiongetEntitlements()Obtains the entitlement collection object.IManagedServiceCollectiongetManagedServices()Obtains the managed services behavior for the customer.ICustomerOfferCategoryCollectiongetOfferCategories()Obtains the Offer Categories behavior for the customer.ICustomerOfferCollectiongetOffers()Obtains the Offers behavior for the customer.IOrderCollectiongetOrders()Gets the orders behavior for the customer.ICustomerProductCollectiongetProducts()Gets the cart behavior for the customer.ICustomerProfileCollectiongetProfiles()Obtains the profiles behavior for the customer.ICustomerQualificationgetQualification()Obtains the Customer qualification.ICustomerRelationshipCollectiongetRelationships()Obtains the relationship collection behavior for the customer.ICustomerServiceCostsCollectiongetServiceCosts()Gets the cart behavior for the customer.IServiceRequestCollectiongetServiceRequests()Obtains the service requests behavior for the customer.ICustomerSubscribedSkuCollectiongetSubscribedSkus()Obtains the subscribed SKUs for the customer.ISubscriptionCollectiongetSubscriptions()Gets the subscriptions behavior for the customer.ICustomerUsageSpendingBudgetgetUsageBudget()Obtains the usage spending budget behavior for the customer.ICustomerUsageSummarygetUsageSummary()Obtains the customer usage summary behavior for the customer.ICustomerUserCollectiongetUsers()Obtains the users for the customer.Customerpatch(Customer customer)Removes the relationship between the partner and customer when RelationshipToPartner == CustomerPartnerRelationship.NONE.Methods inherited from class com.microsoft.store.partnercenter.BasePartnerComponent
getContext, getPartnerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.store.partnercenter.IPartnerComponent
getContext, getPartner
-
Constructor Details
-
CustomerOperations
Initializes a new instance of the CustomerOperations class.- Parameters:
rootPartnerOperations- The root partner operations instance.customerId- The customer identifier.
-
-
Method Details
-
getAgreements
Obtains the accepted agreements for the customer.- Specified by:
getAgreementsin interfaceICustomer- Returns:
- The customer accepted agreements.
-
getApplicationConsents
Obtains the application consents for the customer.- Specified by:
getApplicationConsentsin interfaceICustomer- Returns:
- The customer application consents.
-
getOrders
Gets the orders behavior for the customer. -
getProfiles
Obtains the profiles behavior for the customer.- Specified by:
getProfilesin interfaceICustomer- Returns:
- The customer profiles.
-
getSubscriptions
Description copied from interface:ICustomerGets the subscriptions behavior for the customer.- Specified by:
getSubscriptionsin interfaceICustomer- Returns:
- The subscriptions behavior for the customer.
-
getServiceRequests
Obtains the service requests behavior for the customer.- Specified by:
getServiceRequestsin interfaceICustomer- Returns:
- The customer service request operations.
-
getManagedServices
Obtains the managed services behavior for the customer.- Specified by:
getManagedServicesin interfaceICustomer- Returns:
- The customer managed services operations.
-
getOfferCategories
Obtains the Offer Categories behavior for the customer.- Specified by:
getOfferCategoriesin interfaceICustomer- Returns:
- The offer categories behavior for the customer.
-
getOffers
Obtains the Offers behavior for the customer. -
getUsageSummary
Obtains the customer usage summary behavior for the customer.- Specified by:
getUsageSummaryin interfaceICustomer- Returns:
- The customer usage summary operations.
-
getUsageBudget
Obtains the usage spending budget behavior for the customer.- Specified by:
getUsageBudgetin interfaceICustomer- Returns:
- The customer usage spending budget operations.
-
getQualification
Obtains the Customer qualification.- Specified by:
getQualificationin interfaceICustomer- Returns:
- The qualification behavior of the customer.
-
getUsers
Obtains the users for the customer. -
getDirectoryRoles
Obtains the Customer qualification.- Specified by:
getDirectoryRolesin interfaceICustomer- Returns:
- The directory role behavior for the customer.
-
getSubscribedSkus
Obtains the subscribed SKUs for the customer.- Specified by:
getSubscribedSkusin interfaceICustomer- Returns:
- The customer usage spending budget operations.
-
getCarts
Gets the cart behavior for the customer. -
getProducts
Gets the cart behavior for the customer.- Specified by:
getProductsin interfaceICustomer- Returns:
- The customer carts.
-
getServiceCosts
Gets the cart behavior for the customer.- Specified by:
getServiceCostsin interfaceICustomer- Returns:
- The customer carts.
-
getDeviceBatches
Obtains the devices batches behavior of the customer.- Specified by:
getDeviceBatchesin interfaceICustomer- Returns:
- The devices batches behavior of the customer.
-
getDevicePolicy
Obtains the device policy behavior of the customer.- Specified by:
getDevicePolicyin interfaceICustomer- Returns:
- The device policy behavior of the customer.
-
getBatchUploadStatus
Obtains the devices batch upload job status behavior of the customer.- Specified by:
getBatchUploadStatusin interfaceICustomer- Returns:
- The device batch upload job status beavior of the customer.
-
getRelationships
Obtains the relationship collection behavior for the customer.- Specified by:
getRelationshipsin interfaceICustomer- Returns:
- The relationship collection behavior for the customer.
-
getAnalytics
Obtains the customer level analytics collection object.- Specified by:
getAnalyticsin interfaceICustomer- Returns:
- The analytics collection behavior for the customer.
-
getEntitlements
Obtains the entitlement collection object.- Specified by:
getEntitlementsin interfaceICustomer- Returns:
- The entitlement collection behavior for the customer.
-
getConfigurationPolicies
Obtains the configuration policies behavior for the customer.- Specified by:
getConfigurationPoliciesin interfaceICustomer- Returns:
- The configuration policies behavior for the customer.
-
get
Retrieves information of a specific customer.- Specified by:
getin interfaceICustomer- Specified by:
getin interfaceIEntityGetOperations<Customer>- Returns:
- The customer object.
-
patch
Removes the relationship between the partner and customer when RelationshipToPartner == CustomerPartnerRelationship.NONE.- Specified by:
patchin interfaceIEntityPatchOperations<Customer>- Parameters:
customer- A customer with RelationshipToPartner == CustomerPartnerRelationship.NONE.- Returns:
- The information for the modified customer.
-
delete
public void delete()Deletes the customer from a testing in production account. This only works for customer in the integration sandbox.- Specified by:
deletein interfaceICustomer- Specified by:
deletein interfaceIEntityDeleteOperations<Customer>
-