├── .github ├── ISSUE_TEMPLATE │ ├── BUG_REPORT.md │ └── FEATURE_REQUEST.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .vscode └── settings.json ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── azure-pipelines.yml ├── pom.xml └── src ├── main ├── java │ └── com │ │ └── microsoft │ │ └── store │ │ └── partnercenter │ │ ├── AggregatePartnerOperations.java │ │ ├── AuthenticationToken.java │ │ ├── BasePartnerComponent.java │ │ ├── BasePartnerComponentString.java │ │ ├── IAadLoginHandler.java │ │ ├── IAggregatePartner.java │ │ ├── IPartner.java │ │ ├── IPartnerComponent.java │ │ ├── IPartnerComponentString.java │ │ ├── IPartnerCredentials.java │ │ ├── PartnerOperations.java │ │ ├── PartnerService.java │ │ ├── agreements │ │ ├── AgreementDetailsCollectionOperations.java │ │ ├── CustomerAgreementCollectionOperations.java │ │ ├── IAgreementDetailsCollection.java │ │ └── ICustomerAgreementCollection.java │ │ ├── analytics │ │ ├── CustomerAnalyticsCollectionOperations.java │ │ ├── CustomerLicensesAnalyticsCollectionOperations.java │ │ ├── CustomerLicensesDeploymentInsightsCollectionOperations.java │ │ ├── CustomerLicensesUsageInsightsCollectionOperations.java │ │ ├── ICustomerAnalyticsCollection.java │ │ ├── ICustomerLicensesAnalyticsCollection.java │ │ ├── ICustomerLicensesDeploymentInsightsCollection.java │ │ ├── ICustomerLicensesUsageInsightsCollection.java │ │ ├── IPartnerAnalyticsCollection.java │ │ ├── IPartnerLicensesAnalyticsCollection.java │ │ ├── IPartnerLicensesDeploymentInsightsCollection.java │ │ ├── IPartnerLicensesUsageInsightsCollection.java │ │ ├── PartnerAnalyticsCollectionOperations.java │ │ ├── PartnerLicensesAnalyticsCollectionOperations.java │ │ ├── PartnerLicensesDeploymentInsightsCollectionOperations.java │ │ └── PartnerLicensesUsageInsightsCollectionOperations.java │ │ ├── applicationconsents │ │ ├── ApplicationConsentOperations.java │ │ ├── CustomerApplicationConsentCollectionOperations.java │ │ ├── IApplicationConsent.java │ │ └── ICustomerApplicationConsentCollection.java │ │ ├── auditrecords │ │ ├── AuditRecordsCollection.java │ │ └── IAuditRecordsCollection.java │ │ ├── carts │ │ ├── CartCollectionOperations.java │ │ ├── CartOperations.java │ │ ├── ICart.java │ │ └── ICartCollection.java │ │ ├── compliance │ │ ├── AgreementSignatureStatusOperations.java │ │ ├── ComplianceCollectionOperations.java │ │ ├── IAgreementSignatureStatus.java │ │ └── IComplianceCollection.java │ │ ├── configuration │ │ └── Configuration.java │ │ ├── countryvalidationrules │ │ ├── CountryValidationRulesCollectionOperations.java │ │ ├── CountryValidationRulesOperations.java │ │ ├── ICountryValidationRules.java │ │ └── ICountryValidationRulesCollection.java │ │ ├── customerdirectoryroles │ │ ├── DirectoryRoleCollectionOperations.java │ │ ├── DirectoryRoleOperations.java │ │ ├── IDirectoryRole.java │ │ ├── IDirectoryRoleCollection.java │ │ ├── IUserMember.java │ │ ├── IUserMemberCollection.java │ │ ├── UserMemberCollectionOperations.java │ │ └── UserMemberOperations.java │ │ ├── customers │ │ ├── CustomerCollectionOperations.java │ │ ├── CustomerOperations.java │ │ ├── ICustomer.java │ │ ├── ICustomerCollection.java │ │ ├── products │ │ │ ├── CustomerAvailabilityCollectionByTargetSegmentByReservationScopeOperations.java │ │ │ ├── CustomerAvailabilityCollectionByTargetSegmentOperations.java │ │ │ ├── CustomerAvailabilityCollectionOperations.java │ │ │ ├── CustomerAvailabilityOperations.java │ │ │ ├── CustomerProductCollectionByTargetViewByReservationScopeOperations.java │ │ │ ├── CustomerProductCollectionByTargetViewByTargetSegmentByReservationScopeOperations.java │ │ │ ├── CustomerProductCollectionByTargetViewByTargetSegmentOperations.java │ │ │ ├── CustomerProductCollectionByTargetViewOperations.java │ │ │ ├── CustomerProductCollectionOperations.java │ │ │ ├── CustomerProductOperations.java │ │ │ ├── CustomerSkuCollectionByTargetSegmentOperations.java │ │ │ ├── CustomerSkuCollectionOperations.java │ │ │ ├── CustomerSkuOperations.java │ │ │ ├── ICustomerProduct.java │ │ │ ├── ICustomerProductByReservationScope.java │ │ │ ├── ICustomerProductCollection.java │ │ │ ├── ICustomerProductCollectionByTargetView.java │ │ │ ├── ICustomerProductCollectionByTargetViewByReservationScope.java │ │ │ ├── ICustomerProductCollectionByTargetViewByTargetSegment.java │ │ │ ├── ICustomerProductCollectionByTargetViewByTargetSegmentByReservationScope.java │ │ │ ├── ICustomerSku.java │ │ │ └── ICustomerSkuByReservationScope.java │ │ ├── profiles │ │ │ ├── CustomerBillingProfileOperations.java │ │ │ ├── CustomerCompanyProfileOperations.java │ │ │ ├── CustomerProfileCollectionOperations.java │ │ │ ├── ICustomerProfile.java │ │ │ ├── ICustomerProfileCollection.java │ │ │ └── ICustomerReadonlyProfile.java │ │ └── servicecosts │ │ │ ├── CustomerServiceCostsCollectionOperations.java │ │ │ ├── ICustomerServiceCostsCollection.java │ │ │ ├── IServiceCostLineItemsCollection.java │ │ │ ├── IServiceCostSummary.java │ │ │ ├── IServiceCostsCollection.java │ │ │ ├── ServiceCostLineItemsOperations.java │ │ │ ├── ServiceCostSummaryOperations.java │ │ │ └── ServiceCostsCollectionOperations.java │ │ ├── customerusers │ │ ├── CustomerUserLicenseCollectionOperations.java │ │ ├── CustomerUserLicenseUpdateOperations.java │ │ ├── CustomerUserOperations.java │ │ ├── CustomerUserRoleCollectionOperations.java │ │ ├── CustomerUsersCollectionOperations.java │ │ ├── ICustomerUser.java │ │ ├── ICustomerUserCollection.java │ │ ├── ICustomerUserLicenseCollection.java │ │ ├── ICustomerUserLicenseUpdates.java │ │ └── ICustomerUserRoleCollection.java │ │ ├── devicesdeployment │ │ ├── BatchJobStatusCollectionOperations.java │ │ ├── BatchJobStatusOperations.java │ │ ├── ConfigurationPolicyCollectionOperations.java │ │ ├── ConfigurationPolicyOperations.java │ │ ├── CustomerDevicesCollectionOperations.java │ │ ├── DeviceCollectionOperations.java │ │ ├── DeviceOperations.java │ │ ├── DevicesBatchCollectionOperations.java │ │ ├── DevicesBatchOperations.java │ │ ├── IBatchJobStatus.java │ │ ├── IBatchJobStatusCollection.java │ │ ├── IConfigurationPolicy.java │ │ ├── IConfigurationPolicyCollection.java │ │ ├── ICustomerDeviceCollection.java │ │ ├── IDevice.java │ │ ├── IDeviceCollection.java │ │ ├── IDevicesBatch.java │ │ └── IDevicesBatchCollection.java │ │ ├── domains │ │ ├── DomainCollectionOperations.java │ │ ├── DomainOperations.java │ │ ├── IDomain.java │ │ └── IDomainCollection.java │ │ ├── entitlements │ │ ├── EntitlementCollectionByEntitlementTypeOperations.java │ │ ├── EntitlementCollectionOperations.java │ │ ├── IEntitlementCollection.java │ │ └── IEntitlementCollectionByEntitlementType.java │ │ ├── enumerators │ │ ├── BaseResourceCollectionEnumerator.java │ │ ├── IResourceCollectionEnumerator.java │ │ ├── IResourceCollectionEnumeratorContainer.java │ │ ├── IUtilizationCollectionEnumeratorContainer.java │ │ ├── IndexBasedCollectionEnumerator.java │ │ ├── ResourceCollectionEnumeratorContainer.java │ │ └── UtilizationCollectionEnumeratorContainer.java │ │ ├── errorhandling │ │ ├── DefaultPartnerServiceErrorHandler.java │ │ └── IFailedPartnerServiceResponseHandler.java │ │ ├── exception │ │ ├── PartnerErrorCategory.java │ │ ├── PartnerException.java │ │ └── PartnerResponseParseException.java │ │ ├── extensions │ │ ├── ApplicationPartnerCredentials.java │ │ ├── BasePartnerCredentials.java │ │ ├── ExtensionsOperations.java │ │ ├── IExtensions.java │ │ ├── PartnerCredentials.java │ │ ├── UserPartnerCredentials.java │ │ └── products │ │ │ ├── IProductExtensions.java │ │ │ ├── IProductExtensionsByCountry.java │ │ │ ├── ProductExtensionsByCountryOperations.java │ │ │ └── ProductExtensionsOperations.java │ │ ├── factory │ │ ├── IPartnerFactory.java │ │ ├── IResourceCollectionEnumeratorFactory.java │ │ ├── IndexBasedCollectionEnumeratorFactory.java │ │ └── StandardPartnerFactory.java │ │ ├── genericoperations │ │ ├── ICountrySelector.java │ │ ├── IEntireEntityCollectionRetrievalOperations.java │ │ ├── IEntityCollectionRetrievalOperations.java │ │ ├── IEntityCreateOperations.java │ │ ├── IEntityDeleteOperations.java │ │ ├── IEntityExistsOperations.java │ │ ├── IEntityGetOperations.java │ │ ├── IEntityPatchOperations.java │ │ ├── IEntityPutOperations.java │ │ ├── IEntitySelector.java │ │ ├── IEntityUpdateOperations.java │ │ └── IPagedEntityCollectionRetrievalOperations.java │ │ ├── invoices │ │ ├── EstimateCollectionOperations.java │ │ ├── EstimateLinkCollectionByCurrencyOperations.java │ │ ├── EstimateLinkOperations.java │ │ ├── IEstimateCollection.java │ │ ├── IEstimateLink.java │ │ ├── IEstimateLinkCollectionByCurrency.java │ │ ├── IInvoice.java │ │ ├── IInvoiceCollection.java │ │ ├── IInvoiceDocuments.java │ │ ├── IInvoiceLineItemCollection.java │ │ ├── IInvoiceStatement.java │ │ ├── IInvoiceSummary.java │ │ ├── IInvoiceSummaryCollection.java │ │ ├── IReceipt.java │ │ ├── IReceiptCollection.java │ │ ├── IReceiptDocuments.java │ │ ├── IReceiptStatement.java │ │ ├── IReconciliationLineItemCollection.java │ │ ├── InvoiceCollection.java │ │ ├── InvoiceDocumentsOperations.java │ │ ├── InvoiceLineItemCollectionOperations.java │ │ ├── InvoiceOperations.java │ │ ├── InvoiceStatementOperations.java │ │ ├── InvoiceSummaryCollectionOperations.java │ │ ├── InvoiceSummaryOperations.java │ │ ├── ReceiptCollectionOperations.java │ │ ├── ReceiptDocumentsOperations.java │ │ ├── ReceiptOperations.java │ │ ├── ReceiptStatementOperations.java │ │ └── ReconciliationLineItemCollectionOperations.java │ │ ├── logging │ │ ├── ILogger.java │ │ ├── PartnerLog.java │ │ └── SystemOutLogger.java │ │ ├── managedservices │ │ ├── IManagedServiceCollection.java │ │ └── ManagedServiceCollectionOperations.java │ │ ├── models │ │ ├── Address.java │ │ ├── ApiFault.java │ │ ├── Contact.java │ │ ├── Contract.java │ │ ├── ContractType.java │ │ ├── Link.java │ │ ├── Profile.java │ │ ├── ResourceAttributes.java │ │ ├── ResourceBase.java │ │ ├── ResourceBaseWithLinks.java │ │ ├── ResourceCollection.java │ │ ├── ResourceCollectionWithLinks.java │ │ ├── SecureString.java │ │ ├── SeekBasedResourceCollection.java │ │ ├── StandardResourceCollectionLinks.java │ │ ├── StandardResourceLinks.java │ │ ├── UserCredentials.java │ │ ├── agreements │ │ │ ├── Agreement.java │ │ │ └── AgreementMetaData.java │ │ ├── analytics │ │ │ ├── CustomerLicensesDeploymentInsights.java │ │ │ ├── CustomerLicensesInsightsBase.java │ │ │ ├── CustomerLicensesUsageInsights.java │ │ │ ├── LicensesInsightsBase.java │ │ │ ├── PartnerLicensesDeploymentInsights.java │ │ │ └── PartnerLicensesUsageInsights.java │ │ ├── applicationconsents │ │ │ ├── ApplicationConsent.java │ │ │ └── ApplicationGrant.java │ │ ├── auditing │ │ │ ├── AuditRecord.java │ │ │ ├── AuditRecordSearchField.java │ │ │ ├── OperationStatus.java │ │ │ ├── OperationType.java │ │ │ └── ResourceType.java │ │ ├── carts │ │ │ ├── Cart.java │ │ │ ├── CartCheckoutResult.java │ │ │ ├── CartError.java │ │ │ ├── CartErrorCode.java │ │ │ ├── CartLineItem.java │ │ │ ├── OrderError.java │ │ │ ├── ParticipantType.java │ │ │ └── RenewsTo.java │ │ ├── compliance │ │ │ └── AgreementSignatureStatus.java │ │ ├── countryvalidationrules │ │ │ └── CountryValidationRules.java │ │ ├── customers │ │ │ ├── Customer.java │ │ │ ├── CustomerBillingProfile.java │ │ │ ├── CustomerCompanyProfile.java │ │ │ ├── CustomerPartnerRelationship.java │ │ │ ├── CustomerQualification.java │ │ │ └── CustomerSearchField.java │ │ ├── devicesdeployment │ │ │ ├── BatchUploadDetails.java │ │ │ ├── ConfigurationPolicy.java │ │ │ ├── Device.java │ │ │ ├── DeviceBatch.java │ │ │ ├── DeviceBatchCreationRequest.java │ │ │ ├── DevicePolicyUpdateRequest.java │ │ │ ├── DeviceUploadDetails.java │ │ │ ├── DeviceUploadStatusType.java │ │ │ ├── PolicyCategory.java │ │ │ └── PolicySettingsType.java │ │ ├── entitlements │ │ │ ├── Artifact.java │ │ │ ├── Entitlement.java │ │ │ ├── QuantityDetail.java │ │ │ ├── ReferenceOrder.java │ │ │ ├── Reservation.java │ │ │ ├── ReservedInstanceArtifact.java │ │ │ └── ReservedInstanceArtifactDetails.java │ │ ├── invoices │ │ │ ├── BaseUsageBasedLineItem.java │ │ │ ├── BillingPeriod.java │ │ │ ├── BillingProvider.java │ │ │ ├── BillingType.java │ │ │ ├── DailyRatedUsageLineItem.java │ │ │ ├── DailyUsageLineItem.java │ │ │ ├── DocumentType.java │ │ │ ├── EstimateLink.java │ │ │ ├── Invoice.java │ │ │ ├── InvoiceDetail.java │ │ │ ├── InvoiceLineItem.java │ │ │ ├── InvoiceLineItemType.java │ │ │ ├── InvoiceSearchField.java │ │ │ ├── InvoiceSummary.java │ │ │ ├── InvoiceSummaryDetail.java │ │ │ ├── LicenseBasedLineItem.java │ │ │ ├── OneTimeInvoiceLineItem.java │ │ │ └── UsageBasedLineItem.java │ │ ├── licenses │ │ │ ├── License.java │ │ │ ├── LicenseAssignment.java │ │ │ ├── LicenseGroupId.java │ │ │ ├── LicenseUpdate.java │ │ │ ├── LicenseWarning.java │ │ │ ├── ProductSku.java │ │ │ ├── ServicePlan.java │ │ │ └── SubscribedSku.java │ │ ├── managedservices │ │ │ ├── ManagedService.java │ │ │ └── ManagedServiceLinks.java │ │ ├── offers │ │ │ ├── BillingCycleType.java │ │ │ ├── Offer.java │ │ │ ├── OfferCategory.java │ │ │ ├── OfferLinks.java │ │ │ └── Product.java │ │ ├── orders │ │ │ ├── Order.java │ │ │ ├── OrderLineItem.java │ │ │ ├── OrderLineItemActivationLink.java │ │ │ ├── OrderLineItemLinks.java │ │ │ ├── OrderLineItemProvisioningStatus.java │ │ │ ├── OrderLinks.java │ │ │ ├── Pricing.java │ │ │ ├── QuantityProvisioningStatus.java │ │ │ └── RenewsTo.java │ │ ├── partners │ │ │ ├── BillingProfile.java │ │ │ ├── LegalBusinessProfile.java │ │ │ ├── MpnProfile.java │ │ │ ├── OrganizationProfile.java │ │ │ ├── SupportProfile.java │ │ │ ├── VettingStatus.java │ │ │ ├── VettingSubStatus.java │ │ │ └── VettingVersion.java │ │ ├── products │ │ │ ├── Availability.java │ │ │ ├── AvailabilityTerm.java │ │ │ ├── BillingCycleType.java │ │ │ ├── CancellationPolicy.java │ │ │ ├── CancellationRefundOption.java │ │ │ ├── CurrencyInfo.java │ │ │ ├── InventoryCheckRequest.java │ │ │ ├── InventoryItem.java │ │ │ ├── InventoryRestriction.java │ │ │ ├── ItemType.java │ │ │ ├── Product.java │ │ │ ├── ProductLinks.java │ │ │ ├── RenewalOption.java │ │ │ └── Sku.java │ │ ├── productupgrades │ │ │ ├── ProductUpgradeDetail.java │ │ │ ├── ProductUpgradeEligibility.java │ │ │ ├── ProductUpgradeErrorDetail.java │ │ │ ├── ProductUpgradeLineItem.java │ │ │ ├── ProductUpgradeRequest.java │ │ │ └── ProductUpgradeStatus.java │ │ ├── query │ │ │ ├── BaseQuery.java │ │ │ ├── CountQuery.java │ │ │ ├── IQuery.java │ │ │ ├── IndexedQuery.java │ │ │ ├── QueryFactory.java │ │ │ ├── QueryType.java │ │ │ ├── SeekOperation.java │ │ │ ├── SeekQuery.java │ │ │ ├── SimpleQuery.java │ │ │ ├── filters │ │ │ │ ├── FieldFilter.java │ │ │ │ ├── FieldFilterOperation.java │ │ │ │ ├── FieldType.java │ │ │ │ ├── IFilterExpressionGenerator.java │ │ │ │ └── SimpleFieldFilter.java │ │ │ └── sort │ │ │ │ ├── Sort.java │ │ │ │ └── SortDirection.java │ │ ├── ratecards │ │ │ ├── AzureMeter.java │ │ │ ├── AzureOfferTerm.java │ │ │ └── AzureRateCard.java │ │ ├── relationshiprequests │ │ │ └── CustomerRelationshipRequest.java │ │ ├── relationships │ │ │ ├── PartnerRelationship.java │ │ │ ├── PartnerRelationshipSearchField.java │ │ │ └── PartnerRelationshipType.java │ │ ├── roles │ │ │ ├── DirectoryRole.java │ │ │ └── UserMember.java │ │ ├── servicecosts │ │ │ ├── ServiceCostLineItem.java │ │ │ ├── ServiceCostsBillingPeriod.java │ │ │ ├── ServiceCostsSummary.java │ │ │ └── ServiceCostsSummaryLinks.java │ │ ├── serviceincidents │ │ │ ├── MessageType.java │ │ │ ├── ServiceIncidentDetail.java │ │ │ ├── ServiceIncidentHistory.java │ │ │ ├── ServiceIncidentSearchField.java │ │ │ ├── ServiceIncidentStatus.java │ │ │ └── ServiceIncidents.java │ │ ├── servicerequests │ │ │ ├── FileInfo.java │ │ │ ├── ServiceRequest.java │ │ │ ├── ServiceRequestContact.java │ │ │ ├── ServiceRequestNote.java │ │ │ ├── ServiceRequestOrganization.java │ │ │ ├── ServiceRequestSearchField.java │ │ │ ├── ServiceRequestSeverity.java │ │ │ ├── ServiceRequestStatus.java │ │ │ └── SupportTopic.java │ │ ├── subscriptions │ │ │ ├── AzureEntitlement.java │ │ │ ├── Conversion.java │ │ │ ├── ConversionError.java │ │ │ ├── ConversionErrorCode.java │ │ │ ├── ConversionResult.java │ │ │ ├── ProvisioningStatus.java │ │ │ ├── RefundOption.java │ │ │ ├── Subscription.java │ │ │ ├── SubscriptionActivationResult.java │ │ │ ├── SubscriptionLinks.java │ │ │ ├── SubscriptionProvisioningStatus.java │ │ │ ├── SubscriptionRegistrationStatus.java │ │ │ ├── SubscriptionStatus.java │ │ │ ├── SupportContact.java │ │ │ ├── Upgrade.java │ │ │ ├── UpgradeError.java │ │ │ ├── UpgradeErrorCode.java │ │ │ ├── UpgradeResult.java │ │ │ ├── UpgradeType.java │ │ │ └── UserLicenseError.java │ │ ├── usage │ │ │ ├── AzureResourceMonthlyUsageRecord.java │ │ │ ├── CustomerMonthlyUsageRecord.java │ │ │ ├── CustomerUsageSummary.java │ │ │ ├── MeterUsageRecord.java │ │ │ ├── PartnerUsageSummary.java │ │ │ ├── ResourceUsageRecord.java │ │ │ ├── SpendingBudget.java │ │ │ ├── SubscriptionDailyUsageRecord.java │ │ │ ├── SubscriptionMonthlyUsageRecord.java │ │ │ ├── SubscriptionUsageSummary.java │ │ │ ├── UsageRecordBase.java │ │ │ └── UsageSummaryBase.java │ │ ├── users │ │ │ ├── CustomerUser.java │ │ │ ├── PasswordProfile.java │ │ │ ├── User.java │ │ │ ├── UserDomainType.java │ │ │ └── UserState.java │ │ ├── utilizations │ │ │ ├── AzureInstanceData.java │ │ │ ├── AzureResource.java │ │ │ ├── AzureUtilizationGranularity.java │ │ │ └── AzureUtilizationRecord.java │ │ ├── utils │ │ │ ├── KeyValuePair.java │ │ │ ├── QuadrupleTuple.java │ │ │ ├── QuintupleTuple.java │ │ │ ├── TripletTuple.java │ │ │ └── Tuple.java │ │ ├── validationcodes │ │ │ └── ValidationCode.java │ │ └── validations │ │ │ └── CountryInformation.java │ │ ├── network │ │ ├── HttpStatusCode.java │ │ ├── IPartnerServiceClient.java │ │ ├── PartnerServiceClient.java │ │ └── PartnerServiceRetryStrategy.java │ │ ├── offers │ │ ├── CategoryOffersCollectionOperations.java │ │ ├── CustomerOfferCategoryCollectionOperations.java │ │ ├── CustomerOfferCollectionOperations.java │ │ ├── ICategoryOffersCollection.java │ │ ├── ICustomerOfferCategoryCollection.java │ │ ├── ICustomerOfferCollection.java │ │ ├── IOffer.java │ │ ├── IOfferAddOns.java │ │ ├── IOfferCategoryCollection.java │ │ ├── IOfferCollection.java │ │ ├── OfferAddOnsOperations.java │ │ ├── OfferCategoryCollectionOperations.java │ │ ├── OfferCategoryCountrySelector.java │ │ ├── OfferCollectionOperations.java │ │ ├── OfferCountrySelector.java │ │ └── OfferOperations.java │ │ ├── orders │ │ ├── IOrder.java │ │ ├── IOrderActivationLinks.java │ │ ├── IOrderCollection.java │ │ ├── IOrderCollectionByBillingCycleType.java │ │ ├── IOrderLineItem.java │ │ ├── IOrderLineItemActivationLink.java │ │ ├── IOrderLineItemCollection.java │ │ ├── IOrderProvisioningStatus.java │ │ ├── OrderCollectionByBillingCycleTypeOperations.java │ │ ├── OrderCollectionOperations.java │ │ ├── OrderLineItemActivationLinkOperations.java │ │ ├── OrderLineItemCollectionOperations.java │ │ ├── OrderLineItemOperations.java │ │ ├── OrderOperations.java │ │ └── OrderProvisioningStatusOperations.java │ │ ├── products │ │ ├── AvailabilityCollectionByTargetSegmentByReservationScopeOperations.java │ │ ├── AvailabilityCollectionByTargetSegmentOperations.java │ │ ├── AvailabilityCollectionOperations.java │ │ ├── AvailabilityOperations.java │ │ ├── IAvailability.java │ │ ├── IAvailabilityCollection.java │ │ ├── IAvailabilityCollectionByTargetSegment.java │ │ ├── IAvailabilityCollectionByTargetSegmentByReservationScopeOperations.java │ │ ├── IProduct.java │ │ ├── IProductCollection.java │ │ ├── IProductCollectionByCountry.java │ │ ├── IProductCollectionByCountryByTargetView.java │ │ ├── IProductCollectionByCountryByTargetViewByTargetSegment.java │ │ ├── ISku.java │ │ ├── ISkuCollection.java │ │ ├── ISkuCollectionByTargetSegment.java │ │ ├── ProductCollectionByCountryByTargetViewByTargetSegmentOperations.java │ │ ├── ProductCollectionByCountryByTargetViewOperations.java │ │ ├── ProductCollectionByCountryOperations.java │ │ ├── ProductCollectionOperations.java │ │ ├── ProductOperations.java │ │ ├── SkuCollectionByTargetSegmentOperations.java │ │ ├── SkuCollectionOperations.java │ │ └── SkuOperations.java │ │ ├── productupgrades │ │ ├── IProductUpgrade.java │ │ ├── IProductUpgradeCollection.java │ │ ├── ProductUpgradeCollectionOperations.java │ │ └── ProductUpgradeOperations.java │ │ ├── profiles │ │ ├── BillingProfileOperations.java │ │ ├── IBillingProfile.java │ │ ├── ILegalBusinessProfile.java │ │ ├── IMpnProfile.java │ │ ├── IOrganizationProfile.java │ │ ├── IPartnerProfileCollection.java │ │ ├── ISupportProfile.java │ │ ├── LegalBusinessProfileOperations.java │ │ ├── MpnProfileOperations.java │ │ ├── OrganizationProfileOperations.java │ │ ├── PartnerProfileCollectionOperations.java │ │ └── SupportProfileOperations.java │ │ ├── qualification │ │ ├── CustomerQualificationOperations.java │ │ └── ICustomerQualification.java │ │ ├── ratecards │ │ ├── AzureRateCardOperations.java │ │ ├── IAzureRateCard.java │ │ ├── IRateCardCollection.java │ │ └── RateCardCollectionOperations.java │ │ ├── relationshiprequests │ │ ├── CustomerRelationshipRequestOperations.java │ │ └── ICustomerRelationshipRequest.java │ │ ├── relationships │ │ ├── CustomerRelationshipCollectionOperations.java │ │ ├── ICustomerRelationshipCollection.java │ │ ├── IRelationshipCollection.java │ │ └── RelationshipCollectionOperations.java │ │ ├── requestcontext │ │ ├── IRequestContext.java │ │ ├── RequestContext.java │ │ └── RequestContextFactory.java │ │ ├── serviceincidents │ │ ├── IServiceIncidentCollection.java │ │ └── ServiceIncidentCollectionOperations.java │ │ ├── servicerequests │ │ ├── CustomerServiceRequestCollectionOperations.java │ │ ├── CustomerServiceRequestOperations.java │ │ ├── IPartnerServiceRequestCollection.java │ │ ├── IServiceRequest.java │ │ ├── IServiceRequestCollection.java │ │ ├── ISupportTopicsCollection.java │ │ ├── PartnerServiceRequestCollectionOperations.java │ │ ├── PartnerServiceRequestOperations.java │ │ └── SupportTopicsCollectionOperations.java │ │ ├── subscribedskus │ │ ├── CustomerSubscribedSkuCollectionOperations.java │ │ └── ICustomerSubscribedSkuCollection.java │ │ ├── subscriptions │ │ ├── ISubscription.java │ │ ├── ISubscriptionActivationLinks.java │ │ ├── ISubscriptionAddOnCollection.java │ │ ├── ISubscriptionCollection.java │ │ ├── ISubscriptionConversionCollection.java │ │ ├── ISubscriptionProvisioningStatus.java │ │ ├── ISubscriptionRegistration.java │ │ ├── ISubscriptionRegistrationStatus.java │ │ ├── ISubscriptionSupportContact.java │ │ ├── ISubscriptionUpgradeCollection.java │ │ ├── OrderSubscriptionCollectionOperations.java │ │ ├── PartnerSubscriptionCollectionOperations.java │ │ ├── SubscriptionActivationLinksOperations.java │ │ ├── SubscriptionAddOnCollectionOperations.java │ │ ├── SubscriptionCollectionOperations.java │ │ ├── SubscriptionConversionCollectionOperations.java │ │ ├── SubscriptionOperations.java │ │ ├── SubscriptionProvisioningStatusOperations.java │ │ ├── SubscriptionRegistrationOperations.java │ │ ├── SubscriptionRegistrationStatusOperations.java │ │ ├── SubscriptionSupportContactOperations.java │ │ └── SubscriptionUpgradeCollectionOperations.java │ │ ├── usage │ │ ├── CustomerUsageRecordCollectionOperations.java │ │ ├── CustomerUsageSpendingBudgetOperations.java │ │ ├── CustomerUsageSummaryOperations.java │ │ ├── ICustomerUsageRecordCollection.java │ │ ├── ICustomerUsageSpendingBudget.java │ │ ├── ICustomerUsageSummary.java │ │ ├── IPartnerUsageSummary.java │ │ ├── IResourceUsageRecordCollection.java │ │ ├── ISubscriptionMonthlyUsageRecordCollection.java │ │ ├── ISubscriptionUsageRecordCollection.java │ │ ├── ISubscriptionUsageSummary.java │ │ ├── IUsageRecordByMeterCollection.java │ │ ├── IUsageRecordByResourceCollection.java │ │ ├── PartnerUsageSummaryOperations.java │ │ ├── ResourceUsageRecordCollectionOperations.java │ │ ├── SubscriptionMonthlyUsageRecordCollectionOperations.java │ │ ├── SubscriptionUsageRecordCollectionOperations.java │ │ ├── SubscriptionUsageSummaryOperations.java │ │ ├── UsageRecordByMeterCollectionOperations.java │ │ └── UsageRecordByResourceCollectionOperations.java │ │ ├── utilization │ │ ├── AzureUtilizationCollectionOperations.java │ │ ├── IAzureUtilizationCollection.java │ │ ├── IUtilizationCollection.java │ │ └── UtilizationCollectionOperations.java │ │ ├── utils │ │ ├── ArtifactDeserializer.java │ │ ├── InvoiceLineItemDeserializer.java │ │ ├── NestedResourceDeserializer.java │ │ ├── ParameterValidator.java │ │ ├── StringHelper.java │ │ └── UriDeserializer.java │ │ └── validations │ │ ├── IValidationOperations.java │ │ └── ValidationOperations.java └── resources │ └── PartnerService.json └── test └── java └── com └── microsoft └── store └── partnercenter ├── TestConstants.java ├── TestJsonConverter.java ├── extensions └── ApplicationPartnerCredentialsTest.java └── models ├── ContractTypeTest.java ├── agreements ├── AgreementMetaDataTest.java └── AgreementTest.java ├── applicationconsents └── ApplicationConsentTest.java ├── auditing ├── AuditRecordSearchFieldTest.java ├── OperationStatusTest.java ├── OperationTypeTest.java └── ResourceTypeTest.java ├── carts ├── CartErrorTest.java └── ParticipantTypeTest.java ├── customers ├── CustomerPartnerRelationshipTest.java ├── CustomerQualificationTest.java └── CustomerSearchFieldTest.java ├── devicesdeployment ├── DeviceUploadStatusTypeTest.java ├── PolicyCategoryTest.java └── PolicySettingsTypeTest.java ├── entitlements └── ArtifactTest.java ├── invoices ├── BillingProviderTest.java ├── BillingTypeTest.java ├── DailyRatedUsageLineItemTest.java ├── DocumentTypeTest.java ├── InvoiceSearchFieldTest.java └── OneTimeInvoiceLineItemTest.java ├── licenses └── LicenseGroupIdTest.java ├── offers └── BillingCycleTypeTest.java ├── partners ├── VettingStatusTest.java ├── VettingSubStatusTest.java └── VettingVersionTest.java ├── products └── BillingCycleTypeTest.java ├── productupgrades ├── ProductUpgradeDetailTest.java ├── ProductUpgradeEligibilityTest.java ├── ProductUpgradeErrorDetailTest.java ├── ProductUpgradeLineItemTest.java ├── ProductUpgradeRequestTest.java └── ProductUpgradeStatusTest.java ├── query ├── SeekOperationTest.java ├── filters │ ├── FieldFilterOperationTest.java │ └── FieldTypeTest.java └── sort │ └── SortDirectionTest.java ├── relationships ├── PartnerRelationshipSearchFieldTest.java └── PartnerRelationshipTypeTest.java ├── servicecosts └── ServiceCostsBillingPeriodTest.java ├── serviceincidents ├── MessageTypeTest.java ├── ServiceIncidentSearchFieldTest.java └── ServiceIncidentStatusTest.java ├── servicerequests ├── ServiceRequestSearchFieldTest.java ├── ServiceRequestSeverityTest.java └── ServiceRequestStatusTest.java ├── subscriptions ├── AzureEntitlementTest.java ├── ConversionErrorCodeTest.java ├── ProvisioningStatusTest.java ├── SubscriptionStatusTest.java ├── UpgradeErrorCodeTest.java └── UpgradeTypeTest.java ├── users ├── UserDomainTypeTest.java └── UserStateTest.java └── utilizations └── AzureUtilizationGranularityTest.java /.github/ISSUE_TEMPLATE/BUG_REPORT.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | 5 | --- 6 | 7 | # Steps to reproduce 8 | 9 | > What steps can reproduce the defect? 10 | > Please share the setup, sample project, version of Java etc. 11 | 12 | ## Expected behavior 13 | 14 | > Share the expected output 15 | 16 | ## Actual behavior 17 | 18 | > What is the behavior observed? 19 | 20 | ## Diagnostic logs 21 | 22 | > Please share test platform diagnostics logs. 23 | > The logs may contain test assembly paths, kindly review and mask those before sharing. 24 | 25 | ## Environment 26 | 27 | > Please share additional details about your environment. 28 | > Version -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | 5 | --- 6 | 7 | # Feature Request 8 | 9 | **Is your feature request related to a problem? Please describe.** 10 | A clear and concise description of what the problem is. Ex. I am always frustrated when [...] 11 | 12 | **Describe the solution you would like** 13 | A clear and concise description of what you want to happen. 14 | 15 | **Describe alternatives you have considered** 16 | A clear and concise description of any alternative solutions or features you have considered. 17 | 18 | **Additional context** 19 | Add any other context or screenshots about the feature request here. -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | # Description 2 | 3 | Please add a meaningful description for this change. Ensure the PR has required unit tests. 4 | 5 | ## Related issue 6 | 7 | Kindly link any related issues (e.g. Fixes #xyz). -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "java.configuration.updateBuildConfiguration": "automatic" 3 | } -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Microsoft Corporation. All rights reserved. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE 22 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/IAadLoginHandler.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter; 5 | 6 | /** 7 | * Represents the interface for Azure Active Directory handler. 8 | * 9 | */ 10 | public interface IAadLoginHandler 11 | { 12 | AuthenticationToken authenticate(); 13 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/IAggregatePartner.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter; 5 | 6 | import com.microsoft.store.partnercenter.requestcontext.IRequestContext; 7 | 8 | /** 9 | * A partner operations interface which can be used to generate scoped partner operations that use a specific partner 10 | * context. 11 | */ 12 | public interface IAggregatePartner 13 | extends IPartner 14 | { 15 | /** 16 | * Returns a partner operations object which uses the provided context when executing operations. 17 | * 18 | * @param context An operation context object. 19 | * @return A partner operations object which uses the provided operation context. 20 | */ 21 | IPartner with(IRequestContext context); 22 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/IPartnerComponent.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter; 5 | 6 | /** 7 | * Represents a partner SDK component. The type of the component's context object. 8 | */ 9 | public interface IPartnerComponent 10 | { 11 | /** 12 | * Gets a reference to the partner operations instance that generated this component. 13 | * 14 | * @return A reference to the partner operations instance that generated this component. 15 | */ 16 | IPartner getPartner(); 17 | 18 | /** 19 | * Gets the component context object. 20 | * 21 | * @return The component context object. 22 | */ 23 | TContext getContext(); 24 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/IPartnerComponentString.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter; 5 | 6 | /** 7 | * Represents a partner SDK component. The type of the component's context object. 8 | */ 9 | public interface IPartnerComponentString 10 | extends IPartnerComponent 11 | { 12 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/analytics/ICustomerAnalyticsCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.analytics; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | 8 | /** 9 | * Holds operations that apply to customer analytics collection. 10 | */ 11 | public interface ICustomerAnalyticsCollection 12 | extends IPartnerComponentString 13 | { 14 | /** 15 | * Gets the customer's licenses analytics collection. 16 | * 17 | * @return The customer's licenses analytics collection. 18 | */ 19 | ICustomerLicensesAnalyticsCollection getLicenses(); 20 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/analytics/ICustomerLicensesAnalyticsCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.analytics; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | 8 | /** 9 | * Encapsulates collection of customer level analytics. 10 | */ 11 | public interface ICustomerLicensesAnalyticsCollection 12 | extends IPartnerComponentString 13 | { 14 | /** 15 | * Gets the customer level licenses deployment analytics. 16 | * 17 | * @return The customer level licenses deployment analytics 18 | */ 19 | ICustomerLicensesDeploymentInsightsCollection getDeployment(); 20 | 21 | /** 22 | * Gets the customer level licenses usage analytics. 23 | * 24 | * @return The customer level licenses usage analytics. 25 | */ 26 | ICustomerLicensesUsageInsightsCollection getUsage(); 27 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/analytics/ICustomerLicensesDeploymentInsightsCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.analytics; 5 | 6 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 7 | import com.microsoft.store.partnercenter.IPartnerComponentString; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.analytics.CustomerLicensesDeploymentInsights; 10 | 11 | /** 12 | * Encapsulates the operations on the customer's licenses' deployment insights collection. 13 | */ 14 | public interface ICustomerLicensesDeploymentInsightsCollection 15 | extends IPartnerComponentString, IEntireEntityCollectionRetrievalOperations> 16 | { 17 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/analytics/ICustomerLicensesUsageInsightsCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.analytics; 5 | 6 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 7 | import com.microsoft.store.partnercenter.IPartnerComponentString; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.analytics.CustomerLicensesUsageInsights; 10 | 11 | /** 12 | * Encapsulates the operations on the customer's licenses' usage insights collection. 13 | */ 14 | public interface ICustomerLicensesUsageInsightsCollection 15 | extends IPartnerComponentString, IEntireEntityCollectionRetrievalOperations> 16 | { 17 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/analytics/IPartnerAnalyticsCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.analytics; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | 8 | /** 9 | * Encapsulates collection of partner's analytics. 10 | */ 11 | public interface IPartnerAnalyticsCollection 12 | extends IPartnerComponentString 13 | { 14 | /** 15 | * Gets the partner's licenses analytics collection. 16 | * 17 | * @return The partner's licenses analytics collection. 18 | */ 19 | IPartnerLicensesAnalyticsCollection getLicenses(); 20 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/analytics/IPartnerLicensesAnalyticsCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.analytics; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | 8 | /** 9 | * Encapsulates collection of partner level licenses' analytics. 10 | */ 11 | public interface IPartnerLicensesAnalyticsCollection 12 | extends IPartnerComponentString 13 | { 14 | /** 15 | * Gets the partner's licenses' deployment analytics. 16 | * 17 | * @return The partner's licenses' deployment analytics. 18 | */ 19 | IPartnerLicensesDeploymentInsightsCollection getDeployment(); 20 | 21 | /** 22 | * Gets the partner's licenses' usage analytics. 23 | * 24 | * @return The partner's licenses' usage analytics. 25 | */ 26 | IPartnerLicensesUsageInsightsCollection getUsage(); 27 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/analytics/IPartnerLicensesDeploymentInsightsCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.analytics; 5 | 6 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 7 | import com.microsoft.store.partnercenter.IPartnerComponentString; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.analytics.PartnerLicensesDeploymentInsights; 10 | 11 | /** 12 | * Encapsulates the operations on the partner's licenses' deployment insights collection. 13 | */ 14 | public interface IPartnerLicensesDeploymentInsightsCollection 15 | extends IPartnerComponentString, IEntireEntityCollectionRetrievalOperations> 16 | { 17 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/analytics/IPartnerLicensesUsageInsightsCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.analytics; 5 | 6 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 7 | import com.microsoft.store.partnercenter.IPartnerComponentString; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.analytics.PartnerLicensesUsageInsights; 10 | 11 | /** 12 | * Encapsulates the operations on the partner's licenses' usage insights collection. 13 | */ 14 | public interface IPartnerLicensesUsageInsightsCollection 15 | extends IPartnerComponentString, IEntireEntityCollectionRetrievalOperations> 16 | { 17 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/applicationconsents/IApplicationConsent.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.applicationconsents; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityDeleteOperations; 8 | import com.microsoft.store.partnercenter.models.applicationconsents.ApplicationConsent; 9 | import com.microsoft.store.partnercenter.models.utils.Tuple; 10 | 11 | /** 12 | * Represents an application consent 13 | */ 14 | public interface IApplicationConsent 15 | extends IPartnerComponent>, 16 | IEntityDeleteOperations 17 | { 18 | /** 19 | * Remove application consent. 20 | */ 21 | void delete(); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/carts/ICart.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.carts; 5 | 6 | import com.microsoft.store.partnercenter.models.carts.Cart; 7 | import com.microsoft.store.partnercenter.models.carts.CartCheckoutResult; 8 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 9 | import com.microsoft.store.partnercenter.genericoperations.IEntityPutOperations; 10 | import com.microsoft.store.partnercenter.IPartnerComponent; 11 | import com.microsoft.store.partnercenter.models.utils.Tuple; 12 | 13 | /** 14 | * Encapsulates a customer cart behavior. 15 | */ 16 | public interface ICart 17 | extends IPartnerComponent>, IEntityPutOperations, IEntityGetOperations 18 | { 19 | /** 20 | * Checkouts the cart. 21 | * 22 | * @return The cart checkout result. 23 | */ 24 | CartCheckoutResult checkout(); 25 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/carts/ICartCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.carts; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityCreateOperations; 8 | import com.microsoft.store.partnercenter.genericoperations.IEntitySelector; 9 | import com.microsoft.store.partnercenter.models.carts.Cart; 10 | 11 | /** 12 | * Encapsulates a customer cart behavior. 13 | */ 14 | public interface ICartCollection 15 | extends IPartnerComponentString, 16 | IEntityCreateOperations, IEntitySelector 17 | { 18 | /** 19 | * Obtains a specific cart behavior. 20 | * 21 | * @param cartId Identifier for the cart. 22 | * @return The available cart operations. 23 | */ 24 | ICart byId(String cartId); 25 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/compliance/IAgreementSignatureStatus.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.compliance; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.models.compliance.AgreementSignatureStatus; 8 | 9 | /** 10 | * Represents the agreement signature status operations. 11 | */ 12 | public interface IAgreementSignatureStatus 13 | extends IPartnerComponent 14 | { 15 | /** 16 | * Gets the agreement signature status by Microsoft Partner Network identifier or tenant identifier. 17 | * 18 | * @param mpnId Optional identifier for the Microsoft Partner Network. 19 | * @param tenantId Optional identifier for the tenant. 20 | * 21 | * @return The agreement signature status by Microsoft Partner Network identifier or tenant identifier. 22 | */ 23 | AgreementSignatureStatus get(String mpnId, String tenantId); 24 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/compliance/IComplianceCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.compliance; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | 8 | /** 9 | * Represents the compliance status of a partner. 10 | */ 11 | public interface IComplianceCollection 12 | extends IPartnerComponent 13 | { 14 | /** 15 | * Gets the operations available for agreement signature status. 16 | * 17 | * @return The operations available for agreement signature status. 18 | */ 19 | IAgreementSignatureStatus getAgreementSignatureStatus(); 20 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/countryvalidationrules/ICountryValidationRules.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.countryvalidationrules; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.countryvalidationrules.CountryValidationRules; 9 | 10 | /** 11 | * Represents the behavior of a specific country validation rules. 12 | */ 13 | public interface ICountryValidationRules 14 | extends IPartnerComponentString, IEntityGetOperations 15 | { 16 | /** 17 | * Retrieves the country validation rules. 18 | * @return The validation rules for the country. 19 | */ 20 | CountryValidationRules get(); 21 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/countryvalidationrules/ICountryValidationRulesCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.countryvalidationrules; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.ICountrySelector; 8 | 9 | /** 10 | * Interface and Template for Country-Specific Rules for Validation 11 | * 12 | */ 13 | public interface ICountryValidationRulesCollection 14 | extends IPartnerComponentString, ICountrySelector 15 | { 16 | /** 17 | * Obtains behavior for a specific country's validation rules. 18 | * 19 | * @param country The country's ISO2 code. 20 | * @return The country validation rules operations. 21 | */ 22 | ICountryValidationRules byCountry(String country); 23 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customerdirectoryroles/IDirectoryRole.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customerdirectoryroles; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.models.utils.Tuple; 8 | 9 | /** 10 | * Represents a Directory Role 11 | * 12 | */ 13 | public interface IDirectoryRole extends IPartnerComponent> 14 | { 15 | /** 16 | * Gets the current directory role's user member collection operations. 17 | * 18 | * @return The current directory role's user member collection operations 19 | */ 20 | IUserMemberCollection getUserMembers(); 21 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customerdirectoryroles/IUserMember.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customerdirectoryroles; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityDeleteOperations; 8 | import com.microsoft.store.partnercenter.models.roles.UserMember; 9 | import com.microsoft.store.partnercenter.models.utils.TripletTuple; 10 | 11 | /** 12 | * Represents a Directory User 13 | * 14 | */ 15 | public interface IUserMember 16 | extends IPartnerComponent>, IEntityDeleteOperations 17 | { 18 | /** 19 | * Remove directory user member from directory role. 20 | */ 21 | void delete(); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customers/products/ICustomerProduct.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customers.products; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.offers.Product; 9 | import com.microsoft.store.partnercenter.models.utils.TripletTuple; 10 | 11 | /** 12 | * Represents the operations that can be performed on a single product. 13 | */ 14 | public interface ICustomerProduct 15 | extends IPartnerComponent>, 16 | IEntityGetOperations 17 | { 18 | /** 19 | * Gets the operations that can be applied on a customer's product identifiers filtered by a specific reservation scope. 20 | * 21 | * @param reservationScope The reservation scope filter. 22 | * @return The individual product operations sorted by reservation scope. 23 | */ 24 | ICustomerProductByReservationScope ByCustomerReservationScope(String reservationScope); 25 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customers/products/ICustomerProductByReservationScope.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customers.products; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.offers.Product; 9 | import com.microsoft.store.partnercenter.models.utils.TripletTuple; 10 | 11 | /** 12 | * Represents operations that can be performed on a single product filtered by reservation scope. 13 | */ 14 | public interface ICustomerProductByReservationScope 15 | extends IPartnerComponent>, 16 | IEntityGetOperations 17 | { 18 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customers/products/ICustomerProductCollectionByTargetViewByReservationScope.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customers.products; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.offers.Product; 10 | import com.microsoft.store.partnercenter.models.utils.TripletTuple; 11 | 12 | /** 13 | * Represents the operations that can be performed on products in a given product collection and that apply to a given customer, filtered by reservation scope. 14 | */ 15 | public interface ICustomerProductCollectionByTargetViewByReservationScope 16 | extends IPartnerComponent>, 17 | IEntireEntityCollectionRetrievalOperations> 18 | { 19 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customers/products/ICustomerProductCollectionByTargetViewByTargetSegmentByReservationScope.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customers.products; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.offers.Product; 10 | import com.microsoft.store.partnercenter.models.utils.QuadrupleTuple; 11 | 12 | /** 13 | * Represents the operations that can be performed on products in a given product collection and that apply to a given customer, filtered by reservation scope. 14 | */ 15 | public interface ICustomerProductCollectionByTargetViewByTargetSegmentByReservationScope 16 | extends IPartnerComponent>, 17 | IEntireEntityCollectionRetrievalOperations> 18 | { 19 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customers/products/ICustomerSku.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customers.products; 5 | 6 | import com.microsoft.store.partnercenter.products.ISku; 7 | 8 | /** 9 | * Represents the operations that can be performed on a single SKU. 10 | */ 11 | public interface ICustomerSku 12 | extends ISku 13 | { 14 | /** 15 | * Gets the operations that can be applied on a customer's SKU identifiers filtered by a specific reservation scope. 16 | * 17 | * @param reservationScope The reservation scope filter. 18 | * @return The individual SKU operations sorted by reservation scope. 19 | */ 20 | ICustomerSkuByReservationScope byCustomerReservationScope(String reservationScope); 21 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customers/products/ICustomerSkuByReservationScope.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customers.products; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.products.Sku; 9 | import com.microsoft.store.partnercenter.models.utils.QuadrupleTuple; 10 | 11 | /** 12 | * Represents the operations that can be performed on a customer's single sku filtered by reservation scope. 13 | */ 14 | public interface ICustomerSkuByReservationScope 15 | extends IPartnerComponent>, 16 | IEntityGetOperations 17 | { 18 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customers/profiles/ICustomerProfile.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customers.profiles; 5 | 6 | import com.microsoft.store.partnercenter.genericoperations.IEntityUpdateOperations; 7 | import com.microsoft.store.partnercenter.models.ResourceBase; 8 | 9 | /** 10 | * Encapsulates a single customer profile behavior. The type of the customer profile. 11 | */ 12 | public interface ICustomerProfile 13 | extends ICustomerReadonlyProfile, IEntityUpdateOperations 14 | { 15 | /** 16 | * Updates the customer profile. 17 | * 18 | * @param customerProfile The customer profile information. 19 | * @return The updated customer profile. 20 | */ 21 | T update(T customerProfile); 22 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customers/profiles/ICustomerProfileCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customers.profiles; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.models.customers.CustomerBillingProfile; 8 | import com.microsoft.store.partnercenter.models.customers.CustomerCompanyProfile; 9 | 10 | /** 11 | * Represents customer profiles behavior. 12 | */ 13 | public interface ICustomerProfileCollection 14 | extends IPartnerComponentString 15 | { 16 | /** 17 | * Gets the customer's billing profile operations. 18 | * 19 | * @return The customer's billing profile operations. 20 | */ 21 | ICustomerProfile getBilling(); 22 | 23 | /** 24 | * Gets the customer's company profile operations. 25 | * 26 | * @return The customer's company profile operations. 27 | */ 28 | ICustomerReadonlyProfile getCompany(); 29 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customers/profiles/ICustomerReadonlyProfile.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customers.profiles; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceBase; 9 | 10 | /** 11 | * 12 | * Encapsulates a single customer read-only profile behavior. 13 | */ 14 | public interface ICustomerReadonlyProfile 15 | extends IPartnerComponentString, IEntityGetOperations 16 | { 17 | /** 18 | * Retrieves the customer profile. 19 | * @return The customer profile. 20 | */ 21 | T get(); 22 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customers/servicecosts/ICustomerServiceCostsCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customers.servicecosts; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.models.servicecosts.ServiceCostsBillingPeriod; 8 | 9 | /** 10 | * Holds customer service costs behavior. 11 | */ 12 | public interface ICustomerServiceCostsCollection 13 | extends IPartnerComponentString 14 | { 15 | /** 16 | * Obtains the service cost operations by billing period. 17 | * 18 | * @param billingPeriod The billing period. 19 | * @return The service cost operations. 20 | */ 21 | IServiceCostsCollection byBillingPeriod(ServiceCostsBillingPeriod billingPeriod); 22 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customers/servicecosts/IServiceCostLineItemsCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customers.servicecosts; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.servicecosts.ServiceCostLineItem; 10 | import com.microsoft.store.partnercenter.models.utils.Tuple; 11 | 12 | /** 13 | * Represents the behavior of the customer service cost line items as a whole. 14 | */ 15 | public interface IServiceCostLineItemsCollection 16 | extends IPartnerComponent>, IEntireEntityCollectionRetrievalOperations> 17 | { 18 | /** 19 | * Retrieves a customer's service cost line items. 20 | * 21 | * @return The service cost line items. 22 | */ 23 | ResourceCollection get(); 24 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customers/servicecosts/IServiceCostSummary.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customers.servicecosts; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.servicecosts.ServiceCostsSummary; 9 | import com.microsoft.store.partnercenter.models.utils.Tuple; 10 | 11 | /** 12 | * Holds the operations related to a customer's service costs. 13 | */ 14 | public interface IServiceCostSummary 15 | extends IPartnerComponent>, IEntityGetOperations 16 | { 17 | /** 18 | * Retrieves the customer's service cost summary. 19 | * 20 | * @return The customer's service cost summary. 21 | */ 22 | ServiceCostsSummary get(); 23 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customers/servicecosts/IServiceCostsCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customers.servicecosts; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.models.utils.Tuple; 8 | 9 | /** 10 | * Holds the operations related to a customer's service costs. 11 | */ 12 | public interface IServiceCostsCollection 13 | extends IPartnerComponent> 14 | { 15 | /** 16 | * Gets the customer's service cost line items. 17 | * 18 | * @return The customer's service cost line items. 19 | */ 20 | IServiceCostLineItemsCollection getLineItems(); 21 | 22 | /** 23 | * Gets the customer's service cost summary. 24 | * 25 | * @return The customer's service cost summary. 26 | */ 27 | IServiceCostSummary getSummary(); 28 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/customerusers/ICustomerUserRoleCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.customerusers; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.roles.DirectoryRole; 10 | import com.microsoft.store.partnercenter.models.utils.Tuple; 11 | 12 | /** 13 | * Represents the behavior of the customers user's directory roles. 14 | */ 15 | public interface ICustomerUserRoleCollection 16 | extends IPartnerComponent>, 17 | IEntireEntityCollectionRetrievalOperations> 18 | { 19 | /** 20 | * Gets the customer user's directory roles. 21 | * 22 | * @return The customer user's directory roles. 23 | */ 24 | ResourceCollection get(); 25 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/devicesdeployment/IBatchJobStatus.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.devicesdeployment; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.devicesdeployment.BatchUploadDetails; 9 | import com.microsoft.store.partnercenter.models.utils.Tuple; 10 | 11 | /** 12 | * Represents the operations that can be done on the partner's device. 13 | */ 14 | public interface IBatchJobStatus 15 | extends IPartnerComponent>, 16 | IEntityGetOperations 17 | { 18 | /** 19 | * Retrieves a specific customer devices batch upload status details. 20 | * 21 | * @return The devices batch upload status details. 22 | */ 23 | BatchUploadDetails get(); 24 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/devicesdeployment/IBatchJobStatusCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.devicesdeployment; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntitySelector; 8 | 9 | /** 10 | * Represents the operations that can be done on the partner's batch upload status collection. 11 | */ 12 | public interface IBatchJobStatusCollection 13 | extends IPartnerComponentString, 14 | IEntitySelector 15 | { 16 | /** 17 | * Retrieves a specific customer's devices batch upload status behavior. 18 | * 19 | * @param trackingId The tracking identifier. 20 | * @return The customer's devices batch upload status operations. 21 | */ 22 | IBatchJobStatus byId(String trackingId); 23 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/devicesdeployment/ICustomerDeviceCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.devicesdeployment; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.models.devicesdeployment.DevicePolicyUpdateRequest; 8 | 9 | /** 10 | * Represents the operations that can be done on the partner's devices. 11 | */ 12 | public interface ICustomerDeviceCollection 13 | extends IPartnerComponentString 14 | { 15 | /** 16 | * Updates the devices with configuration policies. 17 | * 18 | * @param devicePolicyUpdateRequest The device policy update request with devices to be updated. 19 | * @return The location of the status to track the update. 20 | */ 21 | String update(DevicePolicyUpdateRequest devicePolicyUpdateRequest); 22 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/devicesdeployment/IDevice.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.devicesdeployment; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityDeleteOperations; 8 | import com.microsoft.store.partnercenter.genericoperations.IEntityPatchOperations; 9 | import com.microsoft.store.partnercenter.models.devicesdeployment.Device; 10 | import com.microsoft.store.partnercenter.models.utils.TripletTuple; 11 | 12 | /** 13 | * Represents the operations that can be done on the partner's device. 14 | */ 15 | public interface IDevice 16 | extends IPartnerComponent>, 17 | IEntityDeleteOperations, IEntityPatchOperations 18 | { 19 | /** 20 | * Updates a device associated to the customer with a configuration policy. 21 | * 22 | * @param updateDevice The device to be updated. 23 | * @return The device that was updated. 24 | */ 25 | Device patch(Device updateDevice); 26 | 27 | /** 28 | * Deletes the device. 29 | */ 30 | void delete(); 31 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/devicesdeployment/IDevicesBatch.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.devicesdeployment; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.models.utils.Tuple; 8 | 9 | /** 10 | * Represents the operations that can be done on the partner's devices batches. 11 | */ 12 | public interface IDevicesBatch 13 | extends IPartnerComponent> 14 | { 15 | /** 16 | * Obtains the devices behavior of the devices batch. 17 | * 18 | * @return The devices behavior of the devices batch. 19 | */ 20 | IDeviceCollection getDevices(); 21 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/domains/DomainCollectionOperations.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.domains; 5 | 6 | import com.microsoft.store.partnercenter.BasePartnerComponentString; 7 | import com.microsoft.store.partnercenter.IPartner; 8 | 9 | public class DomainCollectionOperations 10 | extends BasePartnerComponentString 11 | implements IDomainCollection 12 | { 13 | 14 | /** 15 | * Initializes a new instance of the DomainCollectionOperations class 16 | * 17 | * @param rootPartnerOperations The root partner operations instance. 18 | */ 19 | public DomainCollectionOperations(IPartner rootPartnerOperations) 20 | { 21 | super(rootPartnerOperations); 22 | } 23 | 24 | /** 25 | * Obtains a specific domain behavior. 26 | * 27 | * @param domain The domain. 28 | * @return The domain operations. 29 | */ 30 | @Override 31 | public IDomain byDomain(String domain) 32 | { 33 | return new DomainOperations(this.getPartner(), domain); 34 | } 35 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/domains/IDomain.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.domains; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityExistsOperations; 8 | 9 | public interface IDomain extends IPartnerComponentString, IEntityExistsOperations 10 | { 11 | /** 12 | * Checks if the domain is available or not. 13 | * 14 | * @return true if the domain exists, false otherwise. 15 | */ 16 | boolean exists(); 17 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/domains/IDomainCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.domains; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | 8 | public interface IDomainCollection extends IPartnerComponentString 9 | { 10 | /** 11 | * Obtains a specific domain behavior. 12 | * 13 | * @param domain The domain. 14 | * 15 | * @return The domain operations. 16 | */ 17 | IDomain byDomain(String domain); 18 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/enumerators/IUtilizationCollectionEnumeratorContainer.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.enumerators; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.factory.IResourceCollectionEnumeratorFactory; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.utilizations.AzureUtilizationRecord; 10 | 11 | /** 12 | * Groups all supported utilization record enumerators for usage based subscriptions. 13 | */ 14 | public interface IUtilizationCollectionEnumeratorContainer 15 | extends IPartnerComponentString 16 | { 17 | /** 18 | * Gets a factory that creates Azure utilization record collection enumerators. 19 | * 20 | * @return A factory that creates Azure utilization record collection enumerators. 21 | */ 22 | IResourceCollectionEnumeratorFactory> getAzure(); 23 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/errorhandling/IFailedPartnerServiceResponseHandler.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.errorhandling; 5 | 6 | import okhttp3.Response; 7 | 8 | import com.microsoft.store.partnercenter.exception.PartnerException; 9 | import com.microsoft.store.partnercenter.requestcontext.IRequestContext; 10 | 11 | /** 12 | * Defines behavior for handling non successful responses from the partner service. 13 | */ 14 | public interface IFailedPartnerServiceResponseHandler 15 | { 16 | /** 17 | * Handles failed partner service responses. 18 | * 19 | * @param response The partner service response. 20 | * @return The exception to throw. 21 | */ 22 | PartnerException handleFailedResponse(Response response); 23 | 24 | /** 25 | * Handles failed partner service responses. 26 | * 27 | * @param response The partner service response. 28 | * @param context The reqeust context. 29 | * @return The exception to throw. 30 | */ 31 | PartnerException handleFailedResponse(Response response, IRequestContext context); 32 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/extensions/IExtensions.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.extensions; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.extensions.products.IProductExtensions; 8 | 9 | /** 10 | * Holds operations that extend another set of operations. 11 | */ 12 | public interface IExtensions 13 | extends IPartnerComponentString 14 | { 15 | /** 16 | * Retrieves the product extension operations. 17 | * 18 | * @return The product extensions operations. 19 | */ 20 | IProductExtensions getProduct(); 21 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/extensions/products/IProductExtensions.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.extensions.products; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | 8 | /** 9 | * Holds extension operations for products. 10 | */ 11 | public interface IProductExtensions 12 | extends IPartnerComponentString 13 | { 14 | /** 15 | * Retrieves the extension operations that can be applied on products from a given country. 16 | * 17 | * @param country The country name. 18 | * @return The product extensions operations by country. 19 | */ 20 | IProductExtensionsByCountry byCountry(String country); 21 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/extensions/products/IProductExtensionsByCountry.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.extensions.products; 5 | 6 | import java.util.List; 7 | 8 | import com.microsoft.store.partnercenter.IPartnerComponentString; 9 | import com.microsoft.store.partnercenter.models.products.InventoryItem; 10 | import com.microsoft.store.partnercenter.models.products.InventoryCheckRequest; 11 | 12 | /** 13 | * Holds extension operations for products by country. 14 | */ 15 | public interface IProductExtensionsByCountry 16 | extends IPartnerComponentString 17 | { 18 | /** 19 | * Retrieves inventory validation results for the provided country. 20 | * 21 | * @param checkRequest The request for the inventory check. 22 | * @return The inventory check results. 23 | */ 24 | List checkInventory(InventoryCheckRequest checkRequest); 25 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/factory/IPartnerFactory.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.factory; 5 | 6 | import com.microsoft.store.partnercenter.IAggregatePartner; 7 | import com.microsoft.store.partnercenter.IPartnerCredentials; 8 | 9 | /** 10 | * Creates instances of {@link com.microsoft.store.partnercenter.IPartner}. 11 | */ 12 | public interface IPartnerFactory 13 | { 14 | /** 15 | * Builds a {@link IAggregatePartner} instance and configures it using the provided partner credentials. 16 | * 17 | * @param credentials The partner credentials. Use the extensions to obtain these. 18 | * @return A configured partner object. 19 | */ 20 | IAggregatePartner build(IPartnerCredentials credentials); 21 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/factory/IResourceCollectionEnumeratorFactory.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.factory; 5 | 6 | import com.microsoft.store.partnercenter.enumerators.IResourceCollectionEnumerator; 7 | import com.microsoft.store.partnercenter.models.ResourceBaseWithLinks; 8 | import com.microsoft.store.partnercenter.models.StandardResourceCollectionLinks; 9 | 10 | /** 11 | * Creates resource collection enumerators which can enumerate through resource collections. The collection type. 12 | */ 13 | public interface IResourceCollectionEnumeratorFactory> 14 | { 15 | /** 16 | * Creates a customer collection enumerator capable of traversing customers. 17 | * 18 | * @param customerResourceCollection The initial customer resource collection to start from. 19 | * @return A customer collection enumerator capable of traversing customers. 20 | */ 21 | IResourceCollectionEnumerator create(T customerResourceCollection); 22 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/factory/StandardPartnerFactory.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.factory; 5 | 6 | import com.microsoft.store.partnercenter.AggregatePartnerOperations; 7 | import com.microsoft.store.partnercenter.IAggregatePartner; 8 | import com.microsoft.store.partnercenter.IPartnerCredentials; 9 | 10 | /** 11 | * Standard implementation of the partner factory. 12 | */ 13 | public class StandardPartnerFactory 14 | implements IPartnerFactory 15 | { 16 | /** 17 | * Builds an IAggregatePartner instance and configures it using the provided partner credentials. 18 | * 19 | * @param credentials The partner credentials. Use the extensions to obtain these. 20 | * @return A configured partner object. 21 | */ 22 | @Override 23 | public IAggregatePartner build(IPartnerCredentials credentials) 24 | { 25 | return new AggregatePartnerOperations(credentials); 26 | } 27 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/genericoperations/ICountrySelector.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.genericoperations; 5 | 6 | /** 7 | * Returns operations interfaces based on the given country. 8 | */ 9 | public interface ICountrySelector { 10 | 11 | /** 12 | * Customizes operations based on the given country. 13 | * 14 | * @param country The country to be used by the returned operations. 15 | * 16 | * @return An operations interface customized for the provided country. 17 | */ 18 | TOperations byCountry(String country); 19 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/genericoperations/IEntireEntityCollectionRetrievalOperations.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.genericoperations; 5 | 6 | import com.microsoft.store.partnercenter.models.ResourceCollection; 7 | 8 | /** 9 | * A generic interface which represents operations for getting an entire collection of entities. The entity type.The 10 | * entity collection type. 11 | */ 12 | public interface IEntireEntityCollectionRetrievalOperations> 13 | { 14 | /** 15 | * Retrieves all entities. 16 | * 17 | * @return The entities. 18 | */ 19 | TResourceCollection get(); 20 | 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/genericoperations/IEntityCollectionRetrievalOperations.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.genericoperations; 5 | 6 | import com.microsoft.store.partnercenter.models.ResourceBase; 7 | import com.microsoft.store.partnercenter.models.ResourceCollection; 8 | 9 | /** 10 | * Groups all operations related to retrieving a collection of entities. The entity type.The entity collection type. 11 | */ 12 | public interface IEntityCollectionRetrievalOperations> 13 | extends IEntireEntityCollectionRetrievalOperations, 14 | IPagedEntityCollectionRetrievalOperations 15 | { 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/genericoperations/IEntityCreateOperations.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.genericoperations; 5 | 6 | /** 7 | * Groups operations for creating a single entity. The entity type request.The entity type response. 8 | */ 9 | public interface IEntityCreateOperations 10 | { 11 | /** 12 | * Creates a new entity. 13 | * 14 | * @param newEntity The new entity information. 15 | * @return The entity information that was just created. 16 | */ 17 | T1 create(T newEntity); 18 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/genericoperations/IEntityDeleteOperations.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.genericoperations; 5 | 6 | import com.microsoft.store.partnercenter.models.ResourceBase; 7 | 8 | /** 9 | * Groups operations for getting a single entity. The entity type. 10 | */ 11 | public interface IEntityDeleteOperations 12 | { 13 | /** 14 | * Deletes an entity. 15 | */ 16 | void delete(); 17 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/genericoperations/IEntityExistsOperations.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.genericoperations; 5 | 6 | public interface IEntityExistsOperations 7 | { 8 | /** 9 | * Checks if an entity exists or not. 10 | * 11 | * @return A value indicating whether the entity exists or not. 12 | */ 13 | boolean exists(); 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/genericoperations/IEntityGetOperations.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.genericoperations; 5 | 6 | /** 7 | * Groups operations for getting a single entity. The entity type. 8 | */ 9 | public interface IEntityGetOperations 10 | { 11 | /** 12 | * Retrieves an entity. 13 | * 14 | * @return The entity. 15 | */ 16 | T get(); 17 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/genericoperations/IEntityPatchOperations.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.genericoperations; 5 | 6 | import com.microsoft.store.partnercenter.models.ResourceBase; 7 | 8 | /** 9 | * Groups operations for getting a single entity. The entity type. 10 | */ 11 | public interface IEntityPatchOperations 12 | { 13 | /** 14 | * Patches an entity. 15 | * 16 | * @param entity The entity information. 17 | * @return The updated entity. 18 | */ 19 | T patch(T entity); 20 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/genericoperations/IEntityPutOperations.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.genericoperations; 5 | 6 | /** 7 | * Groups operations for updating a single entity. 8 | */ 9 | public interface IEntityPutOperations 10 | { 11 | /** 12 | * Updates an entity. 13 | * 14 | * @param entity The modified entity object. 15 | * @return The updated entity. 16 | */ 17 | T put(T entity); 18 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/genericoperations/IEntitySelector.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.genericoperations; 5 | 6 | public interface IEntitySelector 7 | { 8 | /** 9 | * Retrieves the behavior for an entity using the entity's identifier. 10 | * @param id The entity's identifier. 11 | * @return The entity's behavior. 12 | */ 13 | TEntity byId(TTYpe id); 14 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/genericoperations/IEntityUpdateOperations.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.genericoperations; 5 | 6 | /** 7 | * Groups operations for updating a single entity. The entity type. 8 | */ 9 | public interface IEntityUpdateOperations 10 | { 11 | /** 12 | * Updates an entity. 13 | * 14 | * @param entity The entity information. 15 | * @return The updated entity. 16 | */ 17 | T update(T entity); 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/genericoperations/IPagedEntityCollectionRetrievalOperations.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.genericoperations; 5 | 6 | import com.microsoft.store.partnercenter.models.ResourceBase; 7 | import com.microsoft.store.partnercenter.models.ResourceCollection; 8 | 9 | /** 10 | * A generic interface which represents paged entity retrieval operations. The entity type.The entity collection type. 11 | */ 12 | public interface IPagedEntityCollectionRetrievalOperations> 13 | { 14 | /** 15 | * Retrieves a subset of entities. 16 | * 17 | * @param offset The starting index. 18 | * @param size The maximum number of entities to return. 19 | * @return The requested entities subset. 20 | */ 21 | TResourceCollection get(int offset, int size); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/invoices/EstimateCollectionOperations.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.invoices; 5 | 6 | import com.microsoft.store.partnercenter.BasePartnerComponentString; 7 | import com.microsoft.store.partnercenter.IPartner; 8 | 9 | /** 10 | * Defines the operations available for estimate collection. 11 | */ 12 | public class EstimateCollectionOperations 13 | extends BasePartnerComponentString 14 | implements IEstimateCollection 15 | { 16 | /** 17 | * Initializes a new instance of the EstimateCollectionOperations class. 18 | * 19 | * @param rootPartnerOperations The root partner operations instance. 20 | */ 21 | public EstimateCollectionOperations(IPartner rootPartnerOperations) 22 | { 23 | super(rootPartnerOperations); 24 | } 25 | 26 | /** 27 | * Gets the estimate links of the recon line items. 28 | * 29 | * @return The estimate links of the recon line items. 30 | */ 31 | @Override 32 | public IEstimateLink getLinks() 33 | { 34 | return new EstimateLinkOperations(this.getPartner()); 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/invoices/IEstimateCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.invoices; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | 8 | /** 9 | * Represents the operations that can be done on the partner's estimate 10 | * collection. 11 | */ 12 | public interface IEstimateCollection 13 | extends IPartnerComponent 14 | { 15 | /** 16 | * Gets the estimate links for the recon line items. 17 | * 18 | * @return The estimate links for the recon line items. 19 | */ 20 | IEstimateLink getLinks(); 21 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/invoices/IEstimateLink.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.invoices; 5 | 6 | /** 7 | * Represents the operations available to an estimate link. 8 | */ 9 | public interface IEstimateLink 10 | { 11 | /** 12 | * Gets the operations that can be applied on products from a given country. 13 | * 14 | * @param currencyCode The currency code for the country. 15 | * @return The operations that can be performed on estimate link collection that belong to a given currency. 16 | */ 17 | IEstimateLinkCollectionByCurrency byCurrency(String currencyCode); 18 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/invoices/IEstimateLinkCollectionByCurrency.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.invoices; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.invoices.EstimateLink; 10 | 11 | /** 12 | * Holds operations that can be performed on estimate link collection that belong to a given currency. 13 | */ 14 | public interface IEstimateLinkCollectionByCurrency 15 | extends IPartnerComponent, IEntityGetOperations> 16 | { 17 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/invoices/IInvoiceDocuments.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.invoices; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | 8 | public interface IInvoiceDocuments extends IPartnerComponentString 9 | { 10 | /** 11 | * Gets an invoice statement operations. 12 | * 13 | * @return An invoice statement operations. 14 | */ 15 | IInvoiceStatement getStatement(); 16 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/invoices/IInvoiceStatement.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.invoices; 5 | 6 | import java.io.InputStream; 7 | 8 | import com.microsoft.store.partnercenter.IPartnerComponentString; 9 | 10 | /** 11 | * Represents the operations available to an invoice statement. 12 | */ 13 | public interface IInvoiceStatement extends IPartnerComponentString 14 | { 15 | /** 16 | * Retrieves the invoice statement. This operation is currently only supported for user based credentials. 17 | * 18 | * @return The invoice statement. 19 | */ 20 | InputStream get(); 21 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/invoices/IInvoiceSummary.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.invoices; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.invoices.InvoiceSummary; 9 | 10 | public interface IInvoiceSummary 11 | extends IPartnerComponentString, IEntityGetOperations 12 | { 13 | /** 14 | * Retrieves the invoice summary. This operation is currently only supported for user based credentials. 15 | * 16 | * @return The invoice summary. 17 | */ 18 | InvoiceSummary get(); 19 | } 20 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/invoices/IInvoiceSummaryCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.invoices; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.invoices.InvoiceSummary; 10 | 11 | /** 12 | * Represents all the operations that can be done on invoice summary collection. 13 | */ 14 | public interface IInvoiceSummaryCollection 15 | extends IPartnerComponentString, IEntityGetOperations> 16 | { 17 | /** 18 | * Retrieves the invoice summary collection. This operation is currently only supported for user based credentials. 19 | */ 20 | ResourceCollection get(); 21 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/invoices/IReceipt.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.invoices; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.models.utils.Tuple; 8 | 9 | /** 10 | * Represents the available receipt operations. 11 | */ 12 | public interface IReceipt extends IPartnerComponent> 13 | { 14 | /** 15 | * Gets the available document operations. 16 | * 17 | * @return The available document operations. 18 | */ 19 | IReceiptDocuments getDocuments(); 20 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/invoices/IReceiptCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.invoices; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntitySelector; 8 | 9 | /** 10 | * Represents the available operations for receipts. 11 | */ 12 | public interface IReceiptCollection 13 | extends IPartnerComponentString, IEntitySelector 14 | { 15 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/invoices/IReceiptDocuments.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.invoices; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.models.utils.Tuple; 8 | 9 | /** 10 | * Represents the operations available on receipt documents. 11 | */ 12 | public interface IReceiptDocuments extends IPartnerComponent> 13 | { 14 | /** 15 | * Gets the receipt statement operations. 16 | * 17 | * @return The available receipt statement operations. 18 | */ 19 | IReceiptStatement getStatement(); 20 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/invoices/IReceiptStatement.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.invoices; 5 | 6 | import java.io.InputStream; 7 | 8 | import com.microsoft.store.partnercenter.IPartnerComponent; 9 | import com.microsoft.store.partnercenter.models.utils.Tuple; 10 | 11 | /** 12 | * Represents the operations available to an invoice receipt statement. 13 | */ 14 | public interface IReceiptStatement extends IPartnerComponent> 15 | { 16 | /** 17 | * Retrieves the invoice statement. This operation is currently only supported for user based credentials. 18 | * 19 | * @return The invoice statement. 20 | */ 21 | InputStream get(); 22 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/invoices/IReconciliationLineItemCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.invoices; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.SeekBasedResourceCollection; 9 | import com.microsoft.store.partnercenter.models.invoices.InvoiceLineItem; 10 | 11 | /** 12 | * Represents the operations that can be done on partner's recon line items. 13 | */ 14 | public interface IReconciliationLineItemCollection 15 | extends IPartnerComponent, IEntireEntityCollectionRetrievalOperations> 16 | { 17 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/logging/ILogger.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.logging; 5 | 6 | /** 7 | * Defines logger behavior. 8 | */ 9 | public interface ILogger 10 | { 11 | /** 12 | * Logs a piece of information. 13 | * 14 | * @param message The informational message. 15 | */ 16 | void logInformation(String message); 17 | 18 | /** 19 | * Logs a warning. 20 | * 21 | * @param message The warning message. 22 | */ 23 | void logWarning(String message); 24 | 25 | /** 26 | * Logs an error. 27 | * 28 | * @param message The error message. 29 | */ 30 | void logError(String message); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/logging/SystemOutLogger.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.logging; 5 | 6 | /** 7 | * A logger that writes to the debug window to aid in debugging. 8 | */ 9 | public class SystemOutLogger 10 | implements ILogger 11 | { 12 | /** 13 | * Logs a piece of information. 14 | * 15 | * @param message The informational message. 16 | */ 17 | @Override 18 | public void logInformation(String message) 19 | { 20 | System.out.println("Default logger INFO: " + message); 21 | } 22 | 23 | /** 24 | * Logs a warning. 25 | * 26 | * @param message The warning message. 27 | */ 28 | @Override 29 | public void logWarning(String message) 30 | { 31 | System.out.println("Default logger WARNING: " + message); 32 | } 33 | 34 | /** 35 | * Logs an error. 36 | * 37 | * @param message The error message. 38 | */ 39 | @Override 40 | public void logError(String message) 41 | { 42 | System.out.println("Default logger ERROR: " + message); 43 | } 44 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/managedservices/IManagedServiceCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.managedservices; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.managedservices.ManagedService; 10 | 11 | /** 12 | * Holds the customer's managed services operations. 13 | */ 14 | public interface IManagedServiceCollection 15 | extends IPartnerComponentString, 16 | IEntireEntityCollectionRetrievalOperations> 17 | { 18 | /** 19 | * Retrieves all managed services. This operation is currently only supported for user based credentials. 20 | * 21 | * @return The managed services. 22 | */ 23 | ResourceCollection get(); 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/Contract.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models; 5 | 6 | /** 7 | * Base Contract 8 | */ 9 | public abstract class Contract 10 | extends ResourceBase 11 | { 12 | protected Contract() 13 | { 14 | super(); 15 | } 16 | 17 | private String orderId; 18 | 19 | /** 20 | * Gets the order identifier. 21 | * 22 | * @return The order identifier. 23 | */ 24 | public String getOrderId() 25 | { 26 | return orderId; 27 | } 28 | 29 | /** 30 | * Sets the order identifier. 31 | * 32 | * @param value The order identifier. 33 | */ 34 | public void setOrderId(String value) 35 | { 36 | orderId = value; 37 | } 38 | 39 | /** 40 | * Gets the contract type. 41 | * 42 | * @return The contract type. 43 | */ 44 | public abstract ContractType getContractType(); 45 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/ContractType.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | public enum ContractType 9 | { 10 | /** 11 | * Describes the type of contract Refers to a contract which provides subscription for the order item placed 12 | */ 13 | SUBSCRIPTION("subscription"), 14 | 15 | /** 16 | * Refers to a contract which provides a product key result for the order item placed 17 | */ 18 | PRODUCTKEY("productkey"), 19 | 20 | /** 21 | * Refers to a contract which provides Redemption code result for the order item placed. 22 | */ 23 | REDEMPTIONCODE("redemptioncode"); 24 | 25 | private final String value; 26 | 27 | ContractType(String value) 28 | { 29 | this.value = value; 30 | } 31 | 32 | /** 33 | * Converts the object to a string. 34 | * 35 | * @return A string that represents this object. 36 | */ 37 | @JsonValue 38 | @Override 39 | public String toString() 40 | { 41 | return value; 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/ResourceBase.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models; 5 | 6 | /** 7 | * Base class for resources 8 | */ 9 | public abstract class ResourceBase 10 | { 11 | /** 12 | * The resource attributes. 13 | */ 14 | private final ResourceAttributes attributes; 15 | 16 | /** 17 | * Initializes a new instance of the ResourceBase class. 18 | */ 19 | protected ResourceBase() 20 | { 21 | this.attributes = new ResourceAttributes(this.getClass()); 22 | } 23 | 24 | /** 25 | * Initializes a new instance of the ResourceBase class. 26 | * 27 | * @param objectType Type of the object. 28 | */ 29 | protected ResourceBase(String objectType) 30 | { 31 | this(); 32 | this.attributes.setObjectType(objectType); 33 | } 34 | 35 | /** 36 | * Gets the attributes. 37 | * 38 | * @return The resource attributes. 39 | */ 40 | public ResourceAttributes getAttributes() 41 | { 42 | return this.attributes; 43 | } 44 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/ResourceBaseWithLinks.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models; 5 | 6 | /** 7 | * Base class for resources 8 | */ 9 | public abstract class ResourceBaseWithLinks 10 | extends ResourceBase 11 | { 12 | /** 13 | * Initializes a new instance of the ResourceBaseWithLinks class. 14 | * 15 | * @param objectType Type of the object. 16 | */ 17 | protected ResourceBaseWithLinks(String objectType) 18 | { 19 | super(objectType); 20 | } 21 | 22 | /** 23 | * Initializes a new instance of the ResourceBaseWithLinks class. 24 | */ 25 | protected ResourceBaseWithLinks() 26 | { 27 | super(); 28 | } 29 | 30 | private TLinks links; 31 | 32 | /** 33 | * Gets the links. 34 | * 35 | * @return The links. 36 | */ 37 | public TLinks getLinks() 38 | { 39 | return links; 40 | } 41 | 42 | /** 43 | * Sets the links. 44 | * 45 | * @param value The links. 46 | */ 47 | public void setLinks(TLinks value) 48 | { 49 | links = value; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/SecureString.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models; 5 | 6 | public class SecureString 7 | { 8 | private int length; 9 | 10 | public int getLength() 11 | { 12 | return length; 13 | } 14 | 15 | public void setLength(int length) 16 | { 17 | this.length = length; 18 | } 19 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/StandardResourceCollectionLinks.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models; 5 | 6 | /** 7 | * Represents the links associated with a resource. 8 | */ 9 | public class StandardResourceCollectionLinks extends StandardResourceLinks 10 | { 11 | /** 12 | * Gets or sets the next page of items. 13 | */ 14 | private Link next; 15 | 16 | public Link getNext() 17 | { 18 | return next; 19 | } 20 | 21 | public void setNext(Link value) 22 | { 23 | next = value; 24 | } 25 | 26 | /** 27 | * Gets or sets the previous page of items. 28 | */ 29 | private Link previous; 30 | 31 | public Link getPrevious() 32 | { 33 | return previous; 34 | } 35 | 36 | public void setPrevious(Link value) 37 | { 38 | previous = value; 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/StandardResourceLinks.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models; 5 | 6 | /** 7 | * Represents the links associated with a resource. 8 | */ 9 | public class StandardResourceLinks 10 | { 11 | /** 12 | * Gets or sets the self uri. 13 | */ 14 | private Link self; 15 | 16 | public Link getSelf() 17 | { 18 | return self; 19 | } 20 | 21 | public void setSelf(Link value) 22 | { 23 | self = value; 24 | } 25 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/UserCredentials.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models; 5 | 6 | /** 7 | * UserName and Password Credentials 8 | */ 9 | public class UserCredentials 10 | { 11 | public UserCredentials() 12 | { 13 | } 14 | 15 | /** 16 | * Gets or sets the name of the user. 17 | */ 18 | private String userName; 19 | 20 | public String getUserName() 21 | { 22 | return userName; 23 | } 24 | 25 | public void setUserName(String value) 26 | { 27 | userName = value; 28 | } 29 | 30 | /** 31 | * Gets or sets the password. 32 | */ 33 | private String password; 34 | 35 | public String getPassword() 36 | { 37 | return password; 38 | } 39 | 40 | public void setPassword(String value) 41 | { 42 | password = value; 43 | } 44 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/applicationconsents/ApplicationGrant.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.applicationconsents; 5 | 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | 8 | /** 9 | * The ApplicationGrant resource. Represents the grants which enabled consents for an application. 10 | */ 11 | public class ApplicationGrant 12 | { 13 | /** 14 | * Gets or sets the enterprise application id. 15 | */ 16 | @JsonProperty("enterpriseApplicationId") 17 | private String enterpriseApplicationId; 18 | 19 | public String getEnterpriseApplicationId() 20 | { 21 | return enterpriseApplicationId; 22 | } 23 | 24 | public void setEnterpriseApplicationId(String value) 25 | { 26 | enterpriseApplicationId = value; 27 | } 28 | 29 | /** 30 | * Gets or sets the scope. 31 | */ 32 | @JsonProperty("scope") 33 | private String scope; 34 | 35 | public String getScope() 36 | { 37 | return scope; 38 | } 39 | 40 | public void setScope(String value) 41 | { 42 | scope = value; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/auditing/AuditRecordSearchField.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.auditing; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * Lists the supported audit search fields. 10 | */ 11 | public enum AuditRecordSearchField 12 | { 13 | /** 14 | * Customer company name. 15 | */ 16 | COMPANY_NAME("CompanyName"), 17 | 18 | /** 19 | * Customer identifier (GUID). 20 | */ 21 | CUSTOMER_ID("CustomerId"), 22 | 23 | /** 24 | * Resource Type as defined in available Resource Types (Example: Order, Subscription). 25 | */ 26 | RESOURCE_TYPE("ResourceType"); 27 | 28 | private final String value; 29 | 30 | AuditRecordSearchField(String value) 31 | { 32 | this.value = value; 33 | } 34 | 35 | /** 36 | * Converts the object to a string. 37 | * 38 | * @return A string that represents this object. 39 | */ 40 | @JsonValue 41 | @Override 42 | public String toString() 43 | { 44 | return value; 45 | } 46 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/auditing/OperationStatus.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.auditing; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * Represents status of an operation 10 | */ 11 | public enum OperationStatus 12 | { 13 | /** 14 | * Indicates success of the operation 15 | */ 16 | SUCCEEDED("succeeded"), 17 | 18 | /** 19 | * Indicates failure of the operation 20 | */ 21 | FAILED("failed"), 22 | 23 | /** 24 | * Indicates that the operation is still in progress 25 | */ 26 | PROGRESS("progress"), 27 | 28 | /** 29 | * Indicates that the operation is declined 30 | */ 31 | DECLINE("decline"); 32 | 33 | private final String value; 34 | 35 | OperationStatus(String value) 36 | { 37 | this.value = value; 38 | } 39 | 40 | /** 41 | * Converts the object to a string. 42 | * 43 | * @return A string that represents this object. 44 | */ 45 | @JsonValue 46 | @Override 47 | public String toString() 48 | { 49 | return value; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/carts/CartError.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.carts; 5 | 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.microsoft.store.partnercenter.models.ResourceBase; 8 | 9 | /** 10 | * Represents an error associated to a cart line item. 11 | */ 12 | public class CartError extends ResourceBase { 13 | /** 14 | * Gets or sets a cart error code. 15 | */ 16 | @JsonProperty("errorCode") 17 | private CartErrorCode errorCode; 18 | 19 | public CartErrorCode getErrorCode() 20 | { 21 | return errorCode; 22 | } 23 | 24 | public void setErrorCode(CartErrorCode value) 25 | { 26 | errorCode = value; 27 | } 28 | 29 | /** 30 | * Gets or sets an error description. 31 | */ 32 | @JsonProperty("errorDescription") 33 | private String errorDescription; 34 | 35 | public String getErrorDescription() 36 | { 37 | return errorDescription; 38 | } 39 | 40 | public void setErrorDescription(String value) 41 | { 42 | errorDescription = value; 43 | } 44 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/carts/ParticipantType.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.carts; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * Types of Participants 10 | */ 11 | public enum ParticipantType 12 | { 13 | /** 14 | * Default value if not known 15 | */ 16 | UNKNOWN("unknown"), 17 | 18 | /** 19 | * An indirect reseller with a transaction role. 20 | */ 21 | TRANSACTION_RESELLER("transaction_reseller"); 22 | 23 | private final String value; 24 | 25 | ParticipantType(String value) 26 | { 27 | this.value = value; 28 | } 29 | 30 | /** 31 | * Converts the object to a string. 32 | * 33 | * @return A string that represents this object. 34 | */ 35 | @JsonValue 36 | @Override 37 | public String toString() 38 | { 39 | return value; 40 | } 41 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/carts/RenewsTo.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.carts; 5 | 6 | /** 7 | * Represent the renews to for a cart line item. 8 | */ 9 | public class RenewsTo 10 | { 11 | /** 12 | * The term duration if applicable. 13 | */ 14 | private String termDuration; 15 | 16 | /** 17 | * Gets the term duration if applicable. 18 | * 19 | * @return The term duration if applicable. 20 | */ 21 | public String getTermDuration() 22 | { 23 | return termDuration; 24 | } 25 | 26 | /** 27 | * Sets the term duration if applicable. 28 | * 29 | * @param value The term duration if applicable. 30 | */ 31 | public void setTermDuration(String value) 32 | { 33 | termDuration = value; 34 | } 35 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/compliance/AgreementSignatureStatus.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.compliance; 5 | 6 | /** 7 | * Represent the agreement signature status 8 | */ 9 | public class AgreementSignatureStatus 10 | { 11 | /** 12 | * A value indicating whether agreement is signed. 13 | */ 14 | private boolean isAgreementSigned; 15 | 16 | /** 17 | * Gets a value indicating whether agreement is signed. 18 | * 19 | * @return A value indicating whether agreement is signed. 20 | */ 21 | public boolean getIsAgreementSigned() 22 | { 23 | return isAgreementSigned; 24 | } 25 | 26 | /** 27 | * Sets a value indicating whether agreement is signed. 28 | * 29 | * @param value A value indicating whether agreement is signed. 30 | */ 31 | public void setIsAgreementSigned(boolean value) 32 | { 33 | isAgreementSigned = value; 34 | } 35 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/customers/CustomerSearchField.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.customers; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * List of search fields for customer search 10 | */ 11 | public enum CustomerSearchField 12 | { 13 | /** 14 | * Customer Company name 15 | */ 16 | COMPANY_NAME("CompanyName"), 17 | 18 | /** 19 | * Customer domain name 20 | */ 21 | DOMAIN_NAME("Domain"), 22 | 23 | /** 24 | * The indirect reseller 25 | */ 26 | INDIRECT_RESELLER("IndirectReseller"), 27 | 28 | /** 29 | * The indirect CSP 30 | */ 31 | INDIRECT_CLOUD_SOLUTION_PROVIDER("IndirectCloudSolutionProvider"); 32 | 33 | private String name; 34 | 35 | CustomerSearchField(String name) 36 | { 37 | this.name = name; 38 | } 39 | 40 | /** 41 | * Converts the object to a string. 42 | * 43 | * @return A string that represents this object. 44 | */ 45 | @JsonValue 46 | @Override 47 | public String toString() 48 | { 49 | return name; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/devicesdeployment/DeviceBatchCreationRequest.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.devicesdeployment; 5 | 6 | import java.util.List; 7 | 8 | import com.fasterxml.jackson.annotation.JsonProperty; 9 | import com.microsoft.store.partnercenter.models.ResourceBase; 10 | 11 | /** 12 | * Represents a devices batch creation model. 13 | */ 14 | public class DeviceBatchCreationRequest extends ResourceBase { 15 | /** 16 | * Gets or sets the devices batch unique identifier. 17 | */ 18 | @JsonProperty("batchId") 19 | private String __BatchId; 20 | 21 | public String getBatchId() 22 | { 23 | return __BatchId; 24 | } 25 | 26 | public void setBatchId(String value) 27 | { 28 | __BatchId = value; 29 | } 30 | 31 | /** 32 | * Gets or sets the list of devices to be uploaded. 33 | */ 34 | @JsonProperty("devices") 35 | private List __Devices; 36 | 37 | public List getDevices() 38 | { 39 | return __Devices; 40 | } 41 | 42 | public void setDevices(List value) 43 | { 44 | __Devices = value; 45 | } 46 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/devicesdeployment/DevicePolicyUpdateRequest.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.devicesdeployment; 5 | 6 | import java.util.List; 7 | 8 | import com.fasterxml.jackson.annotation.JsonProperty; 9 | import com.microsoft.store.partnercenter.models.ResourceBase; 10 | 11 | /** 12 | * Represents the list of devices to be updated with a policy. 13 | */ 14 | public class DevicePolicyUpdateRequest extends ResourceBase { 15 | /** 16 | * Gets or sets the list of devices to be updated. 17 | */ 18 | @JsonProperty("devices") 19 | private List __Devices; 20 | 21 | public List getSetDevices() 22 | { 23 | return __Devices; 24 | } 25 | 26 | public void setDevices(List value) 27 | { 28 | __Devices = value; 29 | } 30 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/devicesdeployment/PolicyCategory.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.devicesdeployment; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * Represents the policy type that can be assigned to a device. 10 | */ 11 | public enum PolicyCategory 12 | { 13 | /** 14 | * Default settings for the policy. 15 | */ 16 | NONE("none"), 17 | 18 | /** 19 | * OOBE - Out of box experience policy setting. 20 | */ 21 | 22 | OOBE("o_o_b_e"); 23 | 24 | private final String value; 25 | 26 | PolicyCategory(String value) 27 | { 28 | this.value = value; 29 | } 30 | 31 | /** 32 | * Converts the object to a string. 33 | * 34 | * @return A string that represents this object. 35 | */ 36 | @JsonValue 37 | @Override 38 | public String toString() 39 | { 40 | return value; 41 | } 42 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/entitlements/QuantityDetail.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.entitlements; 5 | 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | 8 | /** 9 | * Class that represents an Quantity Detail. 10 | */ 11 | public class QuantityDetail { 12 | /** 13 | * Gets or sets quantity. 14 | */ 15 | @JsonProperty("quantity") 16 | private String __Quantity; 17 | 18 | public String getQuantity() 19 | { 20 | return __Quantity; 21 | } 22 | 23 | public void setQuantity(String value) 24 | { 25 | __Quantity = value; 26 | } 27 | 28 | /** 29 | *Gets or sets Status. 30 | */ 31 | @JsonProperty("status") 32 | private String __Status; 33 | 34 | public String getStatus() 35 | { 36 | return __Status; 37 | } 38 | 39 | public void setStatus(String value) 40 | { 41 | __Status = value; 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/invoices/BillingPeriod.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.invoices; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | public enum BillingPeriod 9 | { 10 | /** 11 | * Default period, does not mean anything. 12 | */ 13 | NONE("none"), 14 | 15 | /** 16 | * The current period that is ongoing. 17 | */ 18 | CURRENT("current"), 19 | 20 | /** 21 | * The previous period. 22 | */ 23 | PREVIOUS("previous"); 24 | 25 | private final String value; 26 | 27 | BillingPeriod(String value) 28 | { 29 | this.value = value; 30 | } 31 | 32 | /** 33 | * Converts the object to a string. 34 | * 35 | * @return A string that represents this object. 36 | */ 37 | @JsonValue 38 | @Override 39 | public String toString() 40 | { 41 | return value; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/invoices/BillingType.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.invoices; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | public enum BillingType 9 | { 10 | /** 11 | * The way billing is processed for a subscription Indicates nothing - not set, used as an initializer 12 | */ 13 | NONE("none"), 14 | 15 | /** 16 | * The usage based billing 17 | */ 18 | USAGE("usage"), 19 | 20 | /** 21 | * The license based billing 22 | */ 23 | LICENSE("license"); 24 | 25 | private final String value; 26 | 27 | BillingType(String value) 28 | { 29 | this.value = value; 30 | } 31 | 32 | /** 33 | * Converts the object to a string. 34 | * 35 | * @return A string that represents this object. 36 | */ 37 | @JsonValue 38 | @Override 39 | public String toString() 40 | { 41 | return value; 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/invoices/DocumentType.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.invoices; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * Different providers of billing information. 10 | */ 11 | public enum DocumentType 12 | { 13 | /** 14 | * Value if not set. 15 | */ 16 | NONE("none"), 17 | 18 | /** 19 | * Indicates that document type is an invoice. 20 | */ 21 | INVOICE("invoice"), 22 | 23 | /** 24 | * Indicates that document type is an void note. 25 | */ 26 | VOID_NOTE("void_note"), 27 | 28 | /** 29 | * Indicates that document type is an adjustment note. 30 | */ 31 | ADJUSTMENT_NOTE("adjustment_note"); 32 | 33 | private final String value; 34 | 35 | DocumentType(String value) 36 | { 37 | this.value = value; 38 | } 39 | 40 | /** 41 | * Converts the object to a string. 42 | * 43 | * @return A string that represents this object. 44 | */ 45 | @JsonValue 46 | @Override 47 | public String toString() 48 | { 49 | return value; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/invoices/InvoiceLineItem.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.invoices; 5 | 6 | import com.microsoft.store.partnercenter.models.ResourceBase; 7 | 8 | /** 9 | * Represents a line item on an invoice. 10 | */ 11 | public abstract class InvoiceLineItem 12 | extends ResourceBase 13 | { 14 | /** 15 | * Gets the type of invoice line item. 16 | * 17 | * @return The type of invoice line item. 18 | */ 19 | public abstract InvoiceLineItemType getInvoiceLineItemType(); 20 | 21 | /** 22 | * Gets the billing provider. 23 | * 24 | * @return The billing provider. 25 | */ 26 | public abstract BillingProvider getBillingProvider(); 27 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/invoices/InvoiceLineItemType.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.invoices; 5 | 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | 8 | public enum InvoiceLineItemType 9 | { 10 | /** 11 | * Lists invoice line item types. Default value. 12 | */ 13 | @JsonProperty("none") NONE("None"), 14 | 15 | /** 16 | * Daily usage information for associated with an invoice. This information does not contain data about cost per 17 | * use. 18 | */ 19 | @JsonProperty("usage_line_items") USAGELINEITEMS("UsageLineItems"), 20 | 21 | /** 22 | * Billing line items associated with an invoice. Contains information such as cost per use, tax charged, etc. 23 | */ 24 | @JsonProperty("billing_line_items") BILLINGLINEITEMS("BillingLineItems"); 25 | 26 | private String urlName; 27 | 28 | private InvoiceLineItemType(String urlName) 29 | { 30 | this.urlName = urlName; 31 | } 32 | 33 | public String getUrlName() 34 | { 35 | return this.urlName; 36 | } 37 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/invoices/InvoiceSearchField.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.invoices; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * Lists the supported invoice search fields. 10 | */ 11 | public enum InvoiceSearchField 12 | { 13 | /** 14 | * The invoice date. 15 | */ 16 | INVOICE_DATE("invoice_date"); 17 | 18 | private final String value; 19 | 20 | InvoiceSearchField(String value) 21 | { 22 | this.value = value; 23 | } 24 | 25 | /** 26 | * Converts the object to a string. 27 | * 28 | * @return A string that represents this object. 29 | */ 30 | @JsonValue 31 | @Override 32 | public String toString() 33 | { 34 | return value; 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/invoices/InvoiceSummaryDetail.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.invoices; 5 | 6 | /** 7 | * Represent a summary of individual details for an invoice type. for example recurring perpetual. 8 | */ 9 | public class InvoiceSummaryDetail 10 | { 11 | /** 12 | * Gets or sets the invoice type. example, recurring, perpetual. 13 | */ 14 | private String __InvoiceType; 15 | 16 | public String getInvoiceType() 17 | { 18 | return __InvoiceType; 19 | } 20 | 21 | public void setInvoiceType(String value) 22 | { 23 | __InvoiceType = value; 24 | } 25 | 26 | /** 27 | * Gets or sets summary on Partner's monthly bills for a particular invoice type. 28 | */ 29 | private InvoiceSummary __Summary; 30 | 31 | public InvoiceSummary getSummary() 32 | { 33 | return __Summary; 34 | } 35 | 36 | public void setSummary(InvoiceSummary value) 37 | { 38 | __Summary = value; 39 | } 40 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/licenses/LicenseAssignment.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.licenses; 5 | 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | 8 | /** 9 | * Model for licenses and service plans to be assigned to a user. 10 | */ 11 | public class LicenseAssignment { 12 | /** 13 | * Gets or sets service plan ids which will not be assigned to the user. 14 | */ 15 | @JsonProperty("ExcludedPlans") 16 | private Iterable __ExcludedPlans; 17 | 18 | public Iterable getExcludedPlans() 19 | { 20 | return __ExcludedPlans; 21 | } 22 | 23 | public void setExcludedPlans(Iterable value) 24 | { 25 | __ExcludedPlans = value; 26 | } 27 | 28 | /** 29 | * Gets or sets product id to be assigned to the user. 30 | */ 31 | @JsonProperty("SkuId") 32 | private String __SkuId; 33 | 34 | public String getSkuId() 35 | { 36 | return __SkuId; 37 | } 38 | 39 | public void setSkuId(String value) 40 | { 41 | __SkuId = value; 42 | } 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/offers/OfferLinks.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.offers; 5 | 6 | import com.microsoft.store.partnercenter.models.Link; 7 | import com.microsoft.store.partnercenter.models.StandardResourceLinks; 8 | 9 | /** 10 | * Bundles offer links. 11 | */ 12 | public class OfferLinks 13 | extends StandardResourceLinks 14 | { 15 | /** 16 | * Gets or sets the learn more link. 17 | */ 18 | private Link __LearnMore; 19 | 20 | public Link getLearnMore() 21 | { 22 | return __LearnMore; 23 | } 24 | 25 | public void setLearnMore(Link value) 26 | { 27 | __LearnMore = value; 28 | } 29 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/offers/Product.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.offers; 5 | 6 | /** 7 | * A product tied to an offer. 8 | */ 9 | public class Product 10 | { 11 | /** 12 | * Gets or sets the identifier. 13 | */ 14 | private String __Id; 15 | 16 | public String getId() 17 | { 18 | return __Id; 19 | } 20 | 21 | public void setId(String value) 22 | { 23 | __Id = value; 24 | } 25 | 26 | /** 27 | * Gets or sets the name. 28 | */ 29 | private String __Name; 30 | 31 | public String getName() 32 | { 33 | return __Name; 34 | } 35 | 36 | public void setName(String value) 37 | { 38 | __Name = value; 39 | } 40 | 41 | /** 42 | * Gets or sets the unit. 43 | */ 44 | private String __Unit; 45 | 46 | public String getUnit() 47 | { 48 | return __Unit; 49 | } 50 | 51 | public void setUnit(String value) 52 | { 53 | __Unit = value; 54 | } 55 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/orders/RenewsTo.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.orders; 5 | 6 | /** 7 | * Represent the renews to for a order line item. 8 | */ 9 | public class RenewsTo 10 | { 11 | /** 12 | * The term duration if applicable. 13 | */ 14 | private String termDuration; 15 | 16 | /** 17 | * Gets the term duration if applicable. 18 | * 19 | * @return The term duration if applicable. 20 | */ 21 | public String getTermDuration() 22 | { 23 | return termDuration; 24 | } 25 | 26 | /** 27 | * Sets the term duration if applicable. 28 | * 29 | * @param value The term duration if applicable. 30 | */ 31 | public void setTermDuration(String value) 32 | { 33 | termDuration = value; 34 | } 35 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/partners/MpnProfile.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.partners; 5 | 6 | import com.microsoft.store.partnercenter.models.ResourceBaseWithLinks; 7 | import com.microsoft.store.partnercenter.models.StandardResourceLinks; 8 | 9 | /** 10 | * Microsoft Partner Network profile of a partner 11 | */ 12 | public class MpnProfile 13 | extends ResourceBaseWithLinks 14 | { 15 | /** 16 | * Gets or sets the organization name. 17 | */ 18 | private String __PartnerName; 19 | 20 | public String getPartnerName() 21 | { 22 | return __PartnerName; 23 | } 24 | 25 | public void setPartnerName(String value) 26 | { 27 | __PartnerName = value; 28 | } 29 | 30 | /** 31 | * Gets or sets the Microsoft Partner Network Id 32 | */ 33 | private String __MpnId; 34 | 35 | public String getMpnId() 36 | { 37 | return __MpnId; 38 | } 39 | 40 | public void setMpnId(String value) 41 | { 42 | __MpnId = value; 43 | } 44 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/partners/VettingStatus.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.partners; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | public enum VettingStatus 9 | { 10 | /** 11 | * None vetting status 12 | */ 13 | NONE("none"), 14 | 15 | /** 16 | * Pending vetting status 17 | */ 18 | PENDING("pending"), 19 | 20 | /** 21 | * Authorized vetting status 22 | */ 23 | AUTHORIZED("authorized"), 24 | 25 | /** 26 | * Rejected vetting status 27 | */ 28 | REJECTED("rejected"); 29 | 30 | private final String value; 31 | 32 | VettingStatus(String value) 33 | { 34 | this.value = value; 35 | } 36 | 37 | /** 38 | * Converts the object to a string. 39 | * 40 | * @return A string that represents this object. 41 | */ 42 | @JsonValue 43 | @Override 44 | public String toString() 45 | { 46 | return value; 47 | } 48 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/partners/VettingVersion.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.partners; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | public enum VettingVersion 9 | { 10 | /** 11 | * None vetting version 12 | */ 13 | NONE("none"), 14 | 15 | /** 16 | * Latest vetting information: Will always get the latest vetting information no 17 | * matter if it is vetted or not 18 | */ 19 | CURRENT("current"), 20 | 21 | /** 22 | * Latest finalized vetting information: Will return the latest vetting information 23 | * that is either (Authorized or Rejected) 24 | */ 25 | LAST_FINALIZED("last_finalized"); 26 | 27 | private final String value; 28 | 29 | VettingVersion(String value) 30 | { 31 | this.value = value; 32 | } 33 | 34 | /** 35 | * Converts the object to a string. 36 | * 37 | * @return A string that represents this object. 38 | */ 39 | @JsonValue 40 | @Override 41 | public String toString() 42 | { 43 | return value; 44 | } 45 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/products/CancellationPolicy.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.products; 5 | 6 | /** 7 | * Represents a cancellation policy. 8 | */ 9 | public class CancellationPolicy 10 | { 11 | /** 12 | * The refund options that can apply to this cancellation policy. 13 | */ 14 | private Iterable refundOption; 15 | 16 | /** 17 | * Gets the refund options that can apply to this cancellation policy. 18 | * 19 | * @return The refund options that can apply to this cancellation policy. 20 | */ 21 | public Iterable getRefundOptions() 22 | { 23 | return refundOption; 24 | } 25 | 26 | /** 27 | * Sets the refund options that can apply to this cancellation policy. 28 | * 29 | * @param value The refund options that can apply to this cancellation policy. 30 | */ 31 | public void setRefundOptions(Iterable value) 32 | { 33 | refundOption = value; 34 | } 35 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/products/CurrencyInfo.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.products; 5 | 6 | /** 7 | * Class that represents the currency related information. 8 | */ 9 | public class CurrencyInfo 10 | { 11 | /** 12 | * Gets or sets the code of the currency. 13 | */ 14 | private String __Code; 15 | 16 | public String getCode() 17 | { 18 | return __Code; 19 | } 20 | 21 | public void setCode(String value) 22 | { 23 | __Code = value; 24 | } 25 | 26 | /** 27 | * Gets or sets the symbol of the currency. 28 | */ 29 | private String __Symbol; 30 | 31 | public String getSymbol() 32 | { 33 | return __Symbol; 34 | } 35 | 36 | public void setSymbol(String value) 37 | { 38 | __Symbol = value; 39 | } 40 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/products/InventoryCheckRequest.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.products; 5 | 6 | import java.util.List; 7 | import java.util.Map; 8 | 9 | /** 10 | * Class that represents an inventory check request. 11 | */ 12 | public class InventoryCheckRequest 13 | { 14 | /** 15 | * Gets or sets the target items for the inventory check. 16 | */ 17 | private List __TargetItems; 18 | 19 | public List getTargetItems() 20 | { 21 | return __TargetItems; 22 | } 23 | 24 | public void setTargetItems(List value) 25 | { 26 | __TargetItems = value; 27 | } 28 | 29 | /** 30 | * Gets or sets any context values that apply towards inventory check of the provided items. 31 | */ 32 | private Map __InventoryContext; 33 | 34 | public Map getInventoryContext() 35 | { 36 | return __InventoryContext; 37 | } 38 | 39 | public void setInventoryContext(Map value) 40 | { 41 | __InventoryContext = value; 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/products/ItemType.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.products; 5 | 6 | /** 7 | * Class that represents an item's type. 8 | */ 9 | public class ItemType 10 | { 11 | /** 12 | * Gets or sets the id. 13 | */ 14 | private String __Id; 15 | 16 | public String getId() 17 | { 18 | return __Id; 19 | } 20 | 21 | public void setId(String value) 22 | { 23 | __Id = value; 24 | } 25 | 26 | /** 27 | * Gets or sets the display name. 28 | */ 29 | private String __DisplayName; 30 | 31 | public String getDisplayName() 32 | { 33 | return __DisplayName; 34 | } 35 | 36 | public void setDisplayName(String value) 37 | { 38 | __DisplayName = value; 39 | } 40 | 41 | /** 42 | * Gets or sets the sub-type if applicable. 43 | */ 44 | private ItemType __SubType; 45 | 46 | public ItemType getSubType() 47 | { 48 | return __SubType; 49 | } 50 | 51 | public void setSubType(ItemType value) 52 | { 53 | __SubType = value; 54 | } 55 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/products/ProductLinks.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.products; 5 | 6 | import com.microsoft.store.partnercenter.models.Link; 7 | import com.microsoft.store.partnercenter.models.StandardResourceLinks; 8 | 9 | /** 10 | * Navigation links for Product. 11 | */ 12 | public class ProductLinks 13 | extends StandardResourceLinks 14 | { 15 | /** 16 | * The SKUs link. 17 | */ 18 | private Link skus; 19 | 20 | /** 21 | * Gets the SKUs link. 22 | * 23 | * @return The SKUs link. 24 | */ 25 | public Link getSkus() 26 | { 27 | return skus; 28 | } 29 | 30 | /** 31 | * Sets the SKUs links. 32 | * 33 | * @param value The SKUs link. 34 | */ 35 | public void setSkus(Link value) 36 | { 37 | skus = value; 38 | } 39 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/query/QueryType.java: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | package com.microsoft.store.partnercenter.models.query; 8 | 9 | public enum QueryType 10 | { 11 | /** 12 | * Enumerates query types. A standard query that supports filtering and sorting. 13 | */ 14 | SIMPLE, 15 | 16 | /** 17 | * A query that supports paging using an index and a page size in addition to the standard filtering and sorting. 18 | */ 19 | INDEXED, 20 | 21 | /** 22 | * A query that returns the count of results according to an optional filter. 23 | */ 24 | COUNT, 25 | 26 | /** 27 | * A query that is a continuation of a previous one. Used to retrieve more records of the same query relative 28 | * to the last made query by seeking to pages. 29 | */ 30 | SEEK 31 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/query/SeekQuery.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.query; 5 | 6 | /** 7 | * Represents a seek query. The seek query can be used to seek through sets of results using the given seek operation. 8 | */ 9 | public class SeekQuery 10 | extends IndexedQuery 11 | { 12 | protected SeekQuery(Object token) 13 | 14 | { 15 | super(token); 16 | } 17 | 18 | protected SeekQuery() 19 | 20 | { 21 | super(); 22 | } 23 | 24 | /** 25 | * Gets the query type. 26 | */ 27 | public QueryType getType() 28 | 29 | { 30 | return QueryType.SEEK; 31 | } 32 | 33 | /** 34 | * Gets or sets the seek operation. 35 | */ 36 | private SeekOperation __SeekOperation = SeekOperation.NEXT; 37 | 38 | public SeekOperation getSeekOperation() 39 | { 40 | return __SeekOperation; 41 | } 42 | 43 | public void setSeekOperation(SeekOperation value) 44 | { 45 | __SeekOperation = value; 46 | } 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/query/filters/FieldType.java: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | package com.microsoft.store.partnercenter.models.query.filters; 8 | 9 | import com.fasterxml.jackson.annotation.JsonValue; 10 | 11 | public enum FieldType 12 | { 13 | /** 14 | * Enumerates supported field types. String Type 15 | */ 16 | STRING("String"), 17 | 18 | /** 19 | * Integer Type 20 | */ 21 | INTEGER("Integer"), 22 | 23 | /** 24 | * Enum Type 25 | */ 26 | ENUM("Enum"), 27 | 28 | /** 29 | * DateTimeOffset Type 30 | */ 31 | DATE_TIME_OFFSET("DateTimeOffset"); 32 | 33 | private final String value; 34 | 35 | FieldType(String value) 36 | { 37 | this.value = value; 38 | } 39 | 40 | /** 41 | * Converts the object to a string. 42 | * 43 | * @return A string that represents this object. 44 | */ 45 | @JsonValue 46 | @Override 47 | public String toString() 48 | { 49 | return value; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/query/sort/SortDirection.java: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | package com.microsoft.store.partnercenter.models.query.sort; 8 | 9 | import com.fasterxml.jackson.annotation.JsonValue; 10 | 11 | public enum SortDirection 12 | { 13 | /** 14 | * Sort direction enumeration. Ascending sort. 15 | */ 16 | ASCENDING("ascending"), 17 | 18 | /** 19 | * Descending sort. 20 | */ 21 | DESCENDING("descending"); 22 | 23 | private final String value; 24 | 25 | SortDirection(String value) 26 | { 27 | this.value = value; 28 | } 29 | 30 | /** 31 | * Converts the object to a string. 32 | * 33 | * @return A string that represents this object. 34 | */ 35 | @JsonValue 36 | @Override 37 | public String toString() 38 | { 39 | return value; 40 | } 41 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/relationshiprequests/CustomerRelationshipRequest.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.relationshiprequests; 5 | 6 | import java.net.URI; 7 | 8 | import com.microsoft.store.partnercenter.models.ResourceBase; 9 | 10 | /** 11 | * Represents a customer relationship request with a partner. 12 | */ 13 | public class CustomerRelationshipRequest 14 | extends ResourceBase 15 | { 16 | private URI __Url; 17 | 18 | /** 19 | * Gets the URL to be used by the customer to establish a relationship with a partner. 20 | * 21 | * @return The URL to be used by the customer to establish a relationship with a partner. 22 | */ 23 | public URI getUrl() 24 | { 25 | return __Url; 26 | } 27 | 28 | /** 29 | * Sets the URL to be used by the customer to establish a relationship with a partner. 30 | * 31 | * @param value The URL to be used by the customer to establish a relationship with a partner. 32 | */ 33 | public void setUrl(URI value) 34 | { 35 | __Url = value; 36 | } 37 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/relationships/PartnerRelationshipSearchField.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.relationships; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * Lists the supported partner relationship search fields. 10 | */ 11 | public enum PartnerRelationshipSearchField 12 | { 13 | NAME("name"); 14 | 15 | private final String value; 16 | 17 | PartnerRelationshipSearchField(String value) 18 | { 19 | this.value = value; 20 | } 21 | 22 | /** 23 | * Converts the object to a string. 24 | * 25 | * @return A string that represents this object. 26 | */ 27 | @JsonValue 28 | @Override 29 | public String toString() 30 | { 31 | return value; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/relationships/PartnerRelationshipType.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.relationships; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * The types of relationships between partners for two tier partner scenario. 10 | */ 11 | public enum PartnerRelationshipType 12 | { 13 | /** 14 | * Is indirect reseller of. 15 | */ 16 | IS_INDIRECT_RESELLER_OF("is_indirect_reseller_of"), 17 | 18 | /** 19 | * Is indirect cloud solution provider of. 20 | */ 21 | IS_INDIRECT_CLOUD_SOLUTION_PROVIDER_OF("is_indirect_cloud_solution_provider_of"); 22 | 23 | private final String value; 24 | 25 | PartnerRelationshipType(String value) 26 | { 27 | this.value = value; 28 | } 29 | 30 | /** 31 | * Converts the object to a string. 32 | * 33 | * @return A string that represents this object. 34 | */ 35 | @JsonValue 36 | @Override 37 | public String toString() 38 | { 39 | return value; 40 | } 41 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/roles/DirectoryRole.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.roles; 5 | 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.microsoft.store.partnercenter.models.ResourceBase; 8 | 9 | /** 10 | * Represents a customer directory role object. 11 | */ 12 | public class DirectoryRole extends ResourceBase { 13 | /** 14 | * Gets or sets the name of the directory role. 15 | */ 16 | @JsonProperty("name") 17 | private String __Name; 18 | 19 | public String getName() 20 | { 21 | return __Name; 22 | } 23 | 24 | public void setName(String value) 25 | { 26 | __Name = value; 27 | } 28 | 29 | /** 30 | * Gets or sets the id of the directory role. 31 | */ 32 | @JsonProperty("id") 33 | private String __Id; 34 | 35 | public String getId() 36 | { 37 | return __Id; 38 | } 39 | 40 | public void setId(String value) 41 | { 42 | __Id = value; 43 | } 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/servicecosts/ServiceCostsBillingPeriod.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.servicecosts; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * Represents service costs billing periods. 10 | */ 11 | public enum ServiceCostsBillingPeriod 12 | { 13 | /** 14 | * None. 15 | */ 16 | NONE("none"), 17 | 18 | /** 19 | * Most recent. 20 | */ 21 | MOST_RECENT("most_recent"), 22 | 23 | /** 24 | * Current. 25 | */ 26 | CURRENT("current"); 27 | 28 | private final String value; 29 | 30 | ServiceCostsBillingPeriod(String value) 31 | { 32 | this.value = value; 33 | } 34 | 35 | /** 36 | * Converts the object to a string. 37 | * 38 | * @return A string that represents this object. 39 | */ 40 | @JsonValue 41 | @Override 42 | public String toString() 43 | { 44 | return value; 45 | } 46 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/servicecosts/ServiceCostsSummaryLinks.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.servicecosts; 5 | 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | import com.microsoft.store.partnercenter.models.Link; 8 | import com.microsoft.store.partnercenter.models.StandardResourceLinks; 9 | 10 | /** 11 | * Holds the operations related to a customer's service costs. 12 | */ 13 | public class ServiceCostsSummaryLinks 14 | extends StandardResourceLinks 15 | { 16 | /** 17 | * Gets or sets the link to the service cost line items. 18 | */ 19 | @JsonProperty("serviceCostLineItems") 20 | private Link __ServiceCostLineItems; 21 | 22 | public Link getServiceCostLineItems() 23 | { 24 | return __ServiceCostLineItems; 25 | } 26 | 27 | public void setServiceCostLineItems(Link value) 28 | { 29 | __ServiceCostLineItems = value; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/serviceincidents/MessageType.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.serviceincidents; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * Represents the status of partner center services. 10 | */ 11 | public enum MessageType 12 | { 13 | /** 14 | * Default type none. 15 | */ 16 | NONE("none"), 17 | 18 | /** 19 | * Active incident. 20 | */ 21 | INCIDENT("incident"), 22 | 23 | /** 24 | * Message center message. 25 | */ 26 | MESSAGE_CENTER("message_center"), 27 | 28 | /** 29 | * All types. 30 | */ 31 | ALL("all"); 32 | 33 | private final String value; 34 | 35 | MessageType(String value) 36 | { 37 | this.value = value; 38 | } 39 | 40 | /** 41 | * Converts the object to a string. 42 | * 43 | * @return A string that represents this object. 44 | */ 45 | @JsonValue 46 | @Override 47 | public String toString() 48 | { 49 | return value; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/serviceincidents/ServiceIncidentSearchField.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.serviceincidents; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * Lists the supported service incident search fields. 10 | */ 11 | public enum ServiceIncidentSearchField 12 | { 13 | /** 14 | * Search by service health incidents resolved status. 15 | */ 16 | RESOLVED("Resolved"); 17 | 18 | private final String value; 19 | 20 | ServiceIncidentSearchField(String value) 21 | { 22 | this.value = value; 23 | } 24 | 25 | /** 26 | * Converts the object to a string. 27 | * 28 | * @return A string that represents this object. 29 | */ 30 | @JsonValue 31 | @Override 32 | public String toString() 33 | { 34 | return value; 35 | } 36 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/serviceincidents/ServiceIncidentStatus.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.serviceincidents; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * Represents the status of partner center services. 10 | */ 11 | public enum ServiceIncidentStatus 12 | { 13 | /** 14 | * Default status - normal. 15 | */ 16 | NORMAL("normal"), 17 | 18 | /** 19 | * Informational status. 20 | */ 21 | INFORMATION("information"), 22 | 23 | /** 24 | * Warning status. 25 | */ 26 | WARNING("warning"), 27 | 28 | /** 29 | * Critical status. 30 | */ 31 | CRITICAL("critical"); 32 | 33 | private final String value; 34 | 35 | ServiceIncidentStatus(String value) 36 | { 37 | this.value = value; 38 | } 39 | 40 | /** 41 | * Converts the object to a string. 42 | * 43 | * @return A string that represents this object. 44 | */ 45 | @JsonValue 46 | @Override 47 | public String toString() 48 | { 49 | return value; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/servicerequests/ServiceRequestSearchField.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.servicerequests; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * Lists the supported service request search fields 10 | */ 11 | public enum ServiceRequestSearchField 12 | { 13 | /** 14 | * Service request status 15 | */ 16 | STATUS("Status"); 17 | 18 | private String value; 19 | 20 | ServiceRequestSearchField(String value) 21 | { 22 | this.value = value; 23 | } 24 | 25 | /** 26 | * Converts the object to a string. 27 | * 28 | * @return A string that represents this object. 29 | */ 30 | @JsonValue 31 | @Override 32 | public String toString() 33 | { 34 | return value; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/servicerequests/ServiceRequestSeverity.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.servicerequests; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | public enum ServiceRequestSeverity 9 | { 10 | /** 11 | * Describes service required status Severity Unknown 12 | */ 13 | UNKNOWN("unknown"), 14 | 15 | /** 16 | * Service Request Impact Critical 17 | */ 18 | CRITICAL("critical"), 19 | 20 | /** 21 | * Service Request Impact Moderate 22 | */ 23 | MODERATE("moderate"), 24 | 25 | /** 26 | * Service Request Impact Minimal 27 | */ 28 | MINIMAL("minimal"); 29 | 30 | private final String value; 31 | 32 | ServiceRequestSeverity(String value) 33 | { 34 | this.value = value; 35 | } 36 | 37 | /** 38 | * Converts the object to a string. 39 | * 40 | * @return A string that represents this object. 41 | */ 42 | @JsonValue 43 | @Override 44 | public String toString() 45 | { 46 | return value; 47 | } 48 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/servicerequests/ServiceRequestStatus.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.servicerequests; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | public enum ServiceRequestStatus 9 | { 10 | /** 11 | * Describes service request status Default Service Request Status 12 | */ 13 | NONE("none"), 14 | 15 | /** 16 | * Service Request Status Open 17 | */ 18 | OPEN("open"), 19 | 20 | /** 21 | * Service Request Status Closed 22 | */ 23 | CLOSED("closed"), 24 | 25 | /** 26 | * Service Request Status Action Required 27 | */ 28 | ATTENTION_NEEDED("attention_needed"); 29 | 30 | private final String value; 31 | 32 | ServiceRequestStatus(String value) 33 | { 34 | this.value = value; 35 | } 36 | 37 | /** 38 | * Converts the object to a string. 39 | * 40 | * @return A string that represents this object. 41 | */ 42 | @JsonValue 43 | @Override 44 | public String toString() 45 | { 46 | return value; 47 | } 48 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/subscriptions/ConversionErrorCode.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.subscriptions; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * The type of errors that prevent trial subscription conversion from happening. 10 | */ 11 | public enum ConversionErrorCode 12 | { 13 | /** 14 | * General error 15 | */ 16 | OTHER("other"), 17 | 18 | /** 19 | * Cannot find any conversions for the trial subscription. 20 | */ 21 | CONVERSIONS_NOT_FOUND("conversions_not_found"); 22 | 23 | private final String value; 24 | 25 | ConversionErrorCode(String value) 26 | { 27 | this.value = value; 28 | } 29 | 30 | /** 31 | * Converts the object to a string. 32 | * 33 | * @return A string that represents this object. 34 | */ 35 | @JsonValue 36 | @Override 37 | public String toString() 38 | { 39 | return value; 40 | } 41 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/subscriptions/ProvisioningStatus.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.subscriptions; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * Lists the available status for a subscription provisioning status. 10 | */ 11 | public enum ProvisioningStatus 12 | { 13 | /** 14 | * None. 15 | */ 16 | NONE("none"), 17 | 18 | /** 19 | * Success. 20 | */ 21 | SUCCESS("success"), 22 | 23 | /** 24 | * Pending. 25 | */ 26 | PENDING("pending"), 27 | 28 | /** 29 | * Failed. 30 | */ 31 | FAILED("failed"); 32 | 33 | private final String value; 34 | 35 | ProvisioningStatus(String value) 36 | { 37 | this.value = value; 38 | } 39 | 40 | /** 41 | * Converts the object to a string. 42 | * 43 | * @return A string that represents this object. 44 | */ 45 | @JsonValue 46 | @Override 47 | public String toString() 48 | { 49 | return value; 50 | } 51 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/subscriptions/SubscriptionLinks.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.subscriptions; 5 | 6 | import com.microsoft.store.partnercenter.models.Link; 7 | import com.microsoft.store.partnercenter.models.StandardResourceLinks; 8 | 9 | /** 10 | * Bundles links associated with a subscription. 11 | */ 12 | public class SubscriptionLinks 13 | extends StandardResourceLinks 14 | { 15 | /** 16 | * Gets or sets the offer link associated with the subscription. 17 | */ 18 | private Link __Offer; 19 | 20 | public Link getOffer() 21 | { 22 | return __Offer; 23 | } 24 | 25 | public void setOffer(Link value) 26 | { 27 | __Offer = value; 28 | } 29 | 30 | /** 31 | * Gets or sets the parent subscription link. 32 | */ 33 | private Link __ParentSubscription; 34 | 35 | public Link getParentSubscription() 36 | { 37 | return __ParentSubscription; 38 | } 39 | 40 | public void setParentSubscription(Link value) 41 | { 42 | __ParentSubscription = value; 43 | } 44 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/subscriptions/SubscriptionRegistrationStatus.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.subscriptions; 5 | 6 | import com.microsoft.store.partnercenter.models.ResourceBase; 7 | 8 | /** 9 | * The subscription provisioning status details. 10 | */ 11 | public class SubscriptionRegistrationStatus 12 | extends ResourceBase 13 | { 14 | /** 15 | * Gets or sets a GUID formatted string that identifies the subscription. 16 | */ 17 | private String __SubscriptionId; 18 | 19 | public String getSubscriptionId() 20 | { 21 | return __SubscriptionId; 22 | } 23 | 24 | public void setSubscriptionId(String value) 25 | { 26 | __SubscriptionId = value; 27 | } 28 | 29 | /** 30 | * Gets or sets a value indicating whether this subscription is registered. 31 | */ 32 | private String __Status; 33 | 34 | public String getStatus() 35 | { 36 | return __Status; 37 | } 38 | 39 | public void setStatus(String value) 40 | { 41 | __Status = value; 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/subscriptions/SubscriptionStatus.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.subscriptions; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | public enum SubscriptionStatus 9 | { 10 | /** 11 | * Enum representing the available states for a subscription Indicates nothing - no status, used as an initializer 12 | */ 13 | NONE("none"), 14 | 15 | /** 16 | * Subscription state: Active 17 | */ 18 | ACTIVE("active"), 19 | 20 | /** 21 | * Subscription state: Suspended 22 | */ 23 | SUSPENDED("suspended"), 24 | 25 | /** 26 | * Subscription state: Deleted 27 | */ 28 | DELETED("deleted"); 29 | 30 | private final String value; 31 | 32 | SubscriptionStatus(String value) 33 | { 34 | this.value = value; 35 | } 36 | 37 | /** 38 | * Converts the object to a string. 39 | * 40 | * @return A string that represents this object. 41 | */ 42 | @JsonValue 43 | @Override 44 | public String toString() 45 | { 46 | return value; 47 | } 48 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/subscriptions/UpgradeType.java: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // 5 | // ----------------------------------------------------------------------- 6 | 7 | package com.microsoft.store.partnercenter.models.subscriptions; 8 | 9 | import com.fasterxml.jackson.annotation.JsonValue; 10 | 11 | public enum UpgradeType 12 | { 13 | /** 14 | * Represents a form of upgrade for a subscription Default value 15 | */ 16 | NONE("none"), 17 | 18 | /** 19 | * Only subscription upgrade 20 | */ 21 | UPGRADE_ONLY("upgrade_only"), 22 | 23 | /** 24 | * Subscription upgrade and license transfer 25 | */ 26 | UPGRADE_WITH_LICENSE_TRANSFER("upgrade_with_license_transfer"); 27 | 28 | private final String value; 29 | 30 | UpgradeType(String value) 31 | { 32 | this.value = value; 33 | } 34 | 35 | /** 36 | * Converts the object to a string. 37 | * 38 | * @return A string that represents this object. 39 | */ 40 | @JsonValue 41 | @Override 42 | public String toString() 43 | { 44 | return value; 45 | } 46 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/usage/SpendingBudget.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.usage; 5 | 6 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; 7 | import com.microsoft.store.partnercenter.models.ResourceBase; 8 | 9 | /** 10 | * The spending budget allocated to the customer by the partner. 11 | */ 12 | @JsonIgnoreProperties({ "usageSpendingBudget" }) 13 | public class SpendingBudget 14 | extends ResourceBase 15 | { 16 | /** 17 | * Gets or sets the usage spending budget. 18 | */ 19 | private Double __Amount; 20 | 21 | public Double getAmount() 22 | { 23 | return __Amount; 24 | } 25 | 26 | public void setAmount(Double value) 27 | { 28 | __Amount = value; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/usage/SubscriptionUsageSummary.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.usage; 5 | 6 | /** 7 | * Defines the usage summary for a specific subscription. 8 | */ 9 | public class SubscriptionUsageSummary 10 | extends UsageSummaryBase 11 | { 12 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/users/CustomerUser.java: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // 5 | //----------------------------------------------------------------------- 6 | 7 | package com.microsoft.store.partnercenter.models.users; 8 | 9 | import com.fasterxml.jackson.annotation.JsonProperty; 10 | 11 | public class CustomerUser extends User 12 | { 13 | /** 14 | * Gets or sets usage location, the location where user intends to use the license. 15 | */ 16 | @JsonProperty("usageLocation") 17 | private String usageLocation; 18 | 19 | public String getUsageLocation() 20 | { 21 | return usageLocation; 22 | } 23 | 24 | public void setUsageLocation(String value) 25 | { 26 | usageLocation = value; 27 | } 28 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/users/PasswordProfile.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.users; 5 | 6 | import com.fasterxml.jackson.annotation.JsonProperty; 7 | 8 | public class PasswordProfile { 9 | /** 10 | * Gets or sets a value indicating whether force change password on first login is required or not. 11 | */ 12 | @JsonProperty("ForceChangePassword") 13 | private boolean __ForceChangePassword; 14 | 15 | public boolean getForceChangePassword() 16 | { 17 | return __ForceChangePassword; 18 | } 19 | 20 | public void setForceChangePassword(boolean value) 21 | { 22 | __ForceChangePassword = value; 23 | } 24 | 25 | 26 | /** 27 | * Gets or sets the password. 28 | */ 29 | @JsonProperty("Password") 30 | private String __Password; 31 | 32 | public String getPassword() 33 | { 34 | return __Password; 35 | } 36 | 37 | public void setPassword(String value) 38 | { 39 | __Password = value; 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/users/UserState.java: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // 5 | //----------------------------------------------------------------------- 6 | 7 | package com.microsoft.store.partnercenter.models.users; 8 | 9 | import com.fasterxml.jackson.annotation.JsonValue; 10 | 11 | /** 12 | * User state 13 | */ 14 | public enum UserState 15 | { 16 | /** 17 | * Active user. 18 | */ 19 | ACTIVE("active"), 20 | 21 | /** 22 | * Inactive user. 23 | */ 24 | INACTIVE("inactive"); 25 | 26 | private final String value; 27 | 28 | UserState(String value) 29 | { 30 | this.value = value; 31 | } 32 | 33 | /** 34 | * Converts the object to a string. 35 | * 36 | * @return A string that represents this object. 37 | */ 38 | @JsonValue 39 | @Override 40 | public String toString() 41 | { 42 | return value; 43 | } 44 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/utilizations/AzureUtilizationGranularity.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.utilizations; 5 | 6 | import com.fasterxml.jackson.annotation.JsonValue; 7 | 8 | /** 9 | * Lists the time granularity options for retrieving A subscription's Azure utilization. 10 | */ 11 | public enum AzureUtilizationGranularity 12 | { 13 | /** 14 | * Daily utilization. 15 | */ 16 | DAILY("daily"), 17 | 18 | /** 19 | * Hourly utilization. 20 | */ 21 | HOURLY("hourly"); 22 | 23 | private final String value; 24 | 25 | AzureUtilizationGranularity(String value) 26 | { 27 | this.value = value; 28 | } 29 | 30 | /** 31 | * Converts the object to a string. 32 | * 33 | * @return A string that represents this object. 34 | */ 35 | @JsonValue 36 | @Override 37 | public String toString() 38 | { 39 | return value; 40 | } 41 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/utils/KeyValuePair.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.utils; 5 | 6 | public class KeyValuePair 7 | { 8 | private K key; 9 | 10 | private V value; 11 | 12 | public KeyValuePair() 13 | { 14 | } 15 | 16 | public KeyValuePair(K key, V value) 17 | { 18 | this.key = key; 19 | this.value = value; 20 | } 21 | 22 | public K getKey() 23 | { 24 | return key; 25 | } 26 | 27 | public V getValue() 28 | { 29 | return value; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/utils/TripletTuple.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.utils; 5 | 6 | public class TripletTuple 7 | { 8 | private T1 item1; 9 | 10 | private T2 item2; 11 | 12 | private T3 item3; 13 | 14 | public TripletTuple(T1 item1, T2 item2, T3 item3) 15 | { 16 | this.item1 = item1; 17 | this.item2 = item2; 18 | this.item3 = item3; 19 | } 20 | 21 | public T1 getItem1() 22 | { 23 | return item1; 24 | } 25 | 26 | public void setItem1(T1 item1) 27 | { 28 | this.item1 = item1; 29 | } 30 | 31 | public T2 getItem2() 32 | { 33 | return item2; 34 | } 35 | 36 | public void setItem2(T2 item2) 37 | { 38 | this.item2 = item2; 39 | } 40 | 41 | public T3 getItem3() 42 | { 43 | return item3; 44 | } 45 | 46 | public void setItem3(T3 item3) 47 | { 48 | this.item3 = item3; 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/models/utils/Tuple.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.utils; 5 | 6 | public class Tuple 7 | { 8 | private T1 item1; 9 | 10 | private T2 item2; 11 | 12 | public Tuple(T1 item1, T2 item2) 13 | { 14 | this.item1 = item1; 15 | this.item2 = item2; 16 | } 17 | 18 | public T1 getItem1() 19 | { 20 | return item1; 21 | } 22 | 23 | public void setItem1(T1 item1) 24 | { 25 | this.item1 = item1; 26 | } 27 | 28 | public T2 getItem2() 29 | { 30 | return item2; 31 | } 32 | 33 | public void setItem2(T2 item2) 34 | { 35 | this.item2 = item2; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/network/HttpStatusCode.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.network; 5 | 6 | public class HttpStatusCode 7 | { 8 | public static final int BADREQUEST = 400; 9 | 10 | public static final int UNAUTHORIZED = 401; 11 | 12 | public static final int FORBIDDEN = 403; 13 | 14 | public static final int NOTFOUND = 404; 15 | 16 | public static final int CONFLICT = 409; 17 | 18 | public static final int SERVICEUNAVAILABLE = 503; 19 | 20 | public static final int EXPECTATIONFAILED = 417; 21 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/offers/ICustomerOfferCategoryCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.offers; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.offers.OfferCategory; 10 | 11 | public interface ICustomerOfferCategoryCollection 12 | extends IPartnerComponentString, IEntireEntityCollectionRetrievalOperations> 13 | { 14 | /** 15 | * Retrieves all the offer categories for the provided customer. 16 | * 17 | * @return The offer categories for the provided customer. 18 | */ 19 | ResourceCollection get(); 20 | } 21 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/offers/IOffer.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.offers; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.models.offers.Offer; 8 | import com.microsoft.store.partnercenter.models.utils.Tuple; 9 | 10 | /** 11 | * Holds operations that can be performed on a single offer. 12 | */ 13 | public interface IOffer 14 | extends IPartnerComponent> 15 | { 16 | /** 17 | * Gets the operations for the current offer's add-ons. 18 | * 19 | * @return The operations for the current offer's add-ons 20 | */ 21 | IOfferAddOns getAddOns(); 22 | 23 | /** 24 | * Retrieves an offer for the provided offer identifer, country. 25 | * 26 | * @return The requested offer for the given country and identifier. 27 | */ 28 | Offer get(); 29 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/offers/IOfferCategoryCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.offers; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.offers.OfferCategory; 10 | 11 | /** 12 | * Represents the behavior of offer categories available to partners. 13 | */ 14 | public interface IOfferCategoryCollection 15 | extends IPartnerComponentString, IEntireEntityCollectionRetrievalOperations> 16 | { 17 | /** 18 | * Retrieves all offer categories available to the partner for the provided country. 19 | * 20 | * @return All offer categories for the provided country. 21 | */ 22 | ResourceCollection get(); 23 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/offers/OfferCountrySelector.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.offers; 5 | 6 | import com.microsoft.store.partnercenter.BasePartnerComponentString; 7 | import com.microsoft.store.partnercenter.IPartner; 8 | import com.microsoft.store.partnercenter.genericoperations.ICountrySelector; 9 | import com.microsoft.store.partnercenter.utils.ParameterValidator; 10 | 11 | public class OfferCountrySelector 12 | extends BasePartnerComponentString 13 | implements ICountrySelector 14 | { 15 | 16 | /** 17 | * Initializes a new instance of the OfferCountrySelector class. 18 | * @param rootPartnerOperations The root partner operations instance. 19 | */ 20 | public OfferCountrySelector(IPartner rootPartnerOperations) 21 | { 22 | super(rootPartnerOperations); 23 | } 24 | 25 | /** 26 | * Scopes offers behavior to a specific country. 27 | */ 28 | @Override 29 | public IOfferCollection byCountry(String country) 30 | { 31 | ParameterValidator.isValidCountryCode(country); 32 | 33 | return new OfferCollectionOperations(this.getPartner(), country); 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/orders/IOrderActivationLinks.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.orders; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.orders.OrderLineItemActivationLink; 10 | import com.microsoft.store.partnercenter.models.utils.Tuple; 11 | 12 | /** 13 | * Encapsulates customer order activation link behavior. 14 | */ 15 | public interface IOrderActivationLinks 16 | extends IPartnerComponent>, IEntireEntityCollectionRetrievalOperations> 17 | { 18 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/orders/IOrderLineItem.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.orders; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.models.utils.TripletTuple; 8 | 9 | /** 10 | * Represents the available order line item operations. 11 | */ 12 | public interface IOrderLineItem 13 | extends IPartnerComponent> 14 | { 15 | /** 16 | * Gets the available customer order line item activation link operations. 17 | * 18 | * @return The available customer order line item activation link operations. 19 | */ 20 | IOrderLineItemActivationLink getActivationLink(); 21 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/orders/IOrderLineItemActivationLink.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.orders; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.orders.OrderLineItemActivationLink; 10 | import com.microsoft.store.partnercenter.models.utils.TripletTuple; 11 | 12 | /** 13 | * Represents the customer order line item activation link operations. 14 | */ 15 | public interface IOrderLineItemActivationLink 16 | extends IPartnerComponent>, IEntityGetOperations> 17 | { 18 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/orders/IOrderLineItemCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.orders; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntitySelector; 8 | import com.microsoft.store.partnercenter.models.utils.Tuple; 9 | 10 | /** 11 | * Represents the available order line item collection operations. 12 | */ 13 | public interface IOrderLineItemCollection 14 | extends IPartnerComponent>, IEntitySelector 15 | { 16 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/orders/IOrderProvisioningStatus.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.orders; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.orders.OrderLineItemProvisioningStatus; 10 | import com.microsoft.store.partnercenter.models.utils.Tuple; 11 | 12 | /** 13 | * Represents the operations that apply Order provisioning status. 14 | */ 15 | public interface IOrderProvisioningStatus 16 | extends IPartnerComponent>, IEntireEntityCollectionRetrievalOperations> 17 | { 18 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/products/IAvailability.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.products; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.products.Availability; 9 | import com.microsoft.store.partnercenter.models.utils.QuadrupleTuple; 10 | 11 | /** 12 | * Holds operations that can be performed on availabilities. 13 | */ 14 | public interface IAvailability 15 | extends IPartnerComponent>, 16 | IEntityGetOperations 17 | { 18 | /** 19 | * Retrieves the availability information. 20 | * 21 | * @return The availability information. 22 | */ 23 | Availability get(); 24 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/products/IAvailabilityCollectionByTargetSegmentByReservationScopeOperations.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.products; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.products.Availability; 10 | import com.microsoft.store.partnercenter.models.utils.QuintupleTuple; 11 | 12 | /** 13 | * Represents the operations that can be performed on availabilities for a specific reservation scope given a target segment. 14 | */ 15 | public interface IAvailabilityCollectionByTargetSegmentByReservationScopeOperations 16 | extends IPartnerComponent>, 17 | IEntireEntityCollectionRetrievalOperations> 18 | { 19 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/products/IProduct.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.products; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.products.Product; 9 | import com.microsoft.store.partnercenter.models.utils.Tuple; 10 | 11 | /** 12 | * Holds operations that can be performed on products that apply to a given customer. 13 | */ 14 | public interface IProduct 15 | extends IPartnerComponent>, IEntityGetOperations 16 | { 17 | /** 18 | * Retrieves the SKUs for the product. 19 | * 20 | * @return The SKUs for the product. 21 | */ 22 | ISkuCollection getSkus(); 23 | 24 | /** 25 | * Retrieves the product information 26 | * 27 | * @return The product information. 28 | */ 29 | Product get(); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/products/IProductCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.products; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | 8 | /** 9 | * Holds operations that can be performed on products. 10 | */ 11 | public interface IProductCollection 12 | extends IPartnerComponentString 13 | { 14 | /** 15 | * Retrieves the operations that can be applied on products from a given country. 16 | * 17 | * @param country The country name. 18 | * @return The product collection operations by country. 19 | */ 20 | IProductCollectionByCountry byCountry(String country); 21 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/products/ISku.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.products; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.products.Sku; 9 | import com.microsoft.store.partnercenter.models.utils.TripletTuple; 10 | 11 | /** 12 | * Holds operations that can be performed on a single SKU. 13 | */ 14 | public interface ISku 15 | extends IPartnerComponent>, 16 | IEntityGetOperations 17 | { 18 | /** 19 | * Retrieves the operations for the current SKU's availabilities. 20 | * 21 | * @return The operations for the current SKU's availabilities. 22 | */ 23 | IAvailabilityCollection getAvailabilities(); 24 | 25 | /** 26 | * Retrieves the SKU information. 27 | * 28 | * @return The SKUs information. 29 | */ 30 | Sku get(); 31 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/products/ISkuCollectionByTargetSegment.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.products; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.products.Sku; 10 | import com.microsoft.store.partnercenter.models.utils.TripletTuple; 11 | 12 | /** 13 | * Holds operations that can be performed on skus from a specific target segment. 14 | */ 15 | public interface ISkuCollectionByTargetSegment 16 | extends IPartnerComponent>, 17 | IEntireEntityCollectionRetrievalOperations> 18 | { 19 | /** 20 | * Retrieves all the skus for the provided product and target segment. 21 | * 22 | * @return The SKUs for the provided product and target segment. 23 | */ 24 | ResourceCollection get(); 25 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/productupgrades/IProductUpgrade.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.productupgrades; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.models.productupgrades.ProductUpgradeRequest; 8 | import com.microsoft.store.partnercenter.models.productupgrades.ProductUpgradeStatus; 9 | 10 | /** 11 | * Represents operations that apply to product upgrades. 12 | */ 13 | public interface IProductUpgrade 14 | extends IPartnerComponent 15 | { 16 | /** 17 | * Checks the product upgrade status 18 | * 19 | * @param productUpgradeRequest The product upgrade status request. 20 | * @return The status of the product upgrade. 21 | */ 22 | ProductUpgradeStatus checkStatus(ProductUpgradeRequest productUpgradeRequest); 23 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/profiles/IBillingProfile.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.profiles; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.genericoperations.IEntityUpdateOperations; 9 | import com.microsoft.store.partnercenter.models.partners.BillingProfile; 10 | 11 | /** 12 | * Encapsulates behavior of a partner billing profile. 13 | */ 14 | public interface IBillingProfile 15 | extends IPartnerComponentString, IEntityGetOperations, 16 | IEntityUpdateOperations 17 | { 18 | /** 19 | * Retrieves a partner's billing profile. 20 | * @return The billing profile. 21 | */ 22 | BillingProfile get(); 23 | 24 | /** 25 | * Updates the partner's billing profile. 26 | * @param billingProfile The billing profile information. 27 | * @return The updated billing profile. 28 | */ 29 | BillingProfile update(BillingProfile billingProfile); 30 | } 31 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/profiles/IMpnProfile.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.profiles; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.partners.MpnProfile; 9 | 10 | /** 11 | * Operations for MpnProfile 12 | */ 13 | public interface IMpnProfile 14 | extends IPartnerComponentString, IEntityGetOperations 15 | { 16 | /** 17 | * Retrieves the logged in partner's MPN profile. 18 | * 19 | * @return The partner's MPN profile. 20 | */ 21 | MpnProfile get(); 22 | 23 | /** 24 | * Retrieves a partner's MPN profile by MPN Id. 25 | * 26 | * @param mpnId The MPN id. 27 | * @return The partner's MPN profile. 28 | */ 29 | MpnProfile get(String mpnId); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/ratecards/IRateCardCollection.java: -------------------------------------------------------------------------------- 1 | //----------------------------------------------------------------------- 2 | // 3 | // Copyright (c) Microsoft Corporation. All rights reserved. 4 | // 5 | //----------------------------------------------------------------------- 6 | 7 | package com.microsoft.store.partnercenter.ratecards; 8 | 9 | import com.microsoft.store.partnercenter.IPartnerComponentString; 10 | 11 | /** 12 | * Holds operations that apply to rate cards. 13 | */ 14 | public interface IRateCardCollection 15 | extends IPartnerComponentString 16 | { 17 | /** 18 | * Gets the Azure rate card operations. 19 | * 20 | * @return The Azure rate card operations. 21 | */ 22 | IAzureRateCard getAzure(); 23 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/ratecards/RateCardCollectionOperations.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.ratecards; 5 | 6 | import com.microsoft.store.partnercenter.BasePartnerComponentString; 7 | import com.microsoft.store.partnercenter.IPartner; 8 | 9 | public class RateCardCollectionOperations extends BasePartnerComponentString implements IRateCardCollection { 10 | 11 | private IAzureRateCard __azureRateCardOperations; 12 | 13 | /** 14 | * Initializes a new instance of the RateCardCollectionOperationsclass. 15 | * @param rootPartnerOperations The root partner operations instance. 16 | */ 17 | public RateCardCollectionOperations(IPartner rootPartnerOperations) 18 | { 19 | super(rootPartnerOperations); 20 | 21 | __azureRateCardOperations = new AzureRateCardOperations(rootPartnerOperations); 22 | } 23 | 24 | /** 25 | * Gets the Azure rate card operations. 26 | * 27 | * @return The Azure rate card operations. 28 | */ 29 | @Override 30 | public IAzureRateCard getAzure() 31 | { 32 | return __azureRateCardOperations; 33 | } 34 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/relationshiprequests/ICustomerRelationshipRequest.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.relationshiprequests; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.relationshiprequests.CustomerRelationshipRequest; 9 | 10 | /** 11 | * Holds operations that apply to customer relationship requests. 12 | */ 13 | public interface ICustomerRelationshipRequest 14 | extends IPartnerComponentString, IEntityGetOperations 15 | { 16 | /** 17 | * Retrieves the customer relationship request which can be used by a customer to establish a relationship with the 18 | * current partner. 19 | * 20 | * @return A customer relationship request. 21 | */ 22 | CustomerRelationshipRequest get(); 23 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/relationships/ICustomerRelationshipCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.relationships; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.relationships.PartnerRelationship; 10 | 11 | /** 12 | * For two-tier partner scenarios, holds the operations for retrieving partner relationships 13 | * of a customer with respect to the logged in partner. 14 | */ 15 | public interface ICustomerRelationshipCollection 16 | extends IPartnerComponentString, IEntireEntityCollectionRetrievalOperations> 17 | { 18 | /** 19 | * Retrieves all the partner relationships associated to the customer based on the logged in partner. 20 | * 21 | * @return The partner relationships. 22 | */ 23 | ResourceCollection get(); 24 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/requestcontext/IRequestContext.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.requestcontext; 5 | 6 | import java.util.UUID; 7 | 8 | /** 9 | * Bundles context information which is amended to the partner SDK operations. 10 | */ 11 | public interface IRequestContext 12 | { 13 | /** 14 | * Gets the request identifier. Uniquely identifies the partner service operation. 15 | * 16 | * @return The request identifier. 17 | */ 18 | UUID getRequestId(); 19 | 20 | /** 21 | * Gets the correlation identifier. This identifier is used to group logical operations together. 22 | * 23 | * @return The correlation identifier. 24 | */ 25 | UUID getCorrelationId(); 26 | 27 | /** 28 | * Gets the locale. 29 | * 30 | * @return The locale. 31 | */ 32 | String getLocale(); 33 | 34 | } 35 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/serviceincidents/IServiceIncidentCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.serviceincidents; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.query.IQuery; 10 | import com.microsoft.store.partnercenter.models.serviceincidents.ServiceIncidents; 11 | 12 | public interface IServiceIncidentCollection 13 | extends IPartnerComponentString, IEntireEntityCollectionRetrievalOperations> 14 | { 15 | /** 16 | * Retrieves all service incidents. 17 | * 18 | * @param serviceIncidentsQuery A query to retrieve service incidents based on the active status. 19 | * @return The list of service incidents. 20 | */ 21 | ResourceCollection get(IQuery serviceIncidentsQuery); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/servicerequests/IPartnerServiceRequestCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.servicerequests; 5 | 6 | import com.microsoft.store.partnercenter.models.servicerequests.ServiceRequest; 7 | 8 | /** 9 | * Represents the behavior of partner service requests. 10 | */ 11 | public interface IPartnerServiceRequestCollection 12 | extends IServiceRequestCollection 13 | { 14 | /** 15 | * Gets a set of operations that can be performed on Support Topics. 16 | * 17 | * @return Collection of Support Topic Operations. 18 | */ 19 | ISupportTopicsCollection getSupportTopics(); 20 | 21 | /** 22 | * Creates a new ServiceRequest. 23 | * 24 | * @param newEntity The new ServiceRequest information. 25 | * @param agentLocale The locale. 26 | * @return The ServiceRequest information that was just created. 27 | */ 28 | ServiceRequest create(ServiceRequest newEntity, String agentLocale); 29 | } 30 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/servicerequests/ISupportTopicsCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.servicerequests; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.servicerequests.SupportTopic; 10 | 11 | /** 12 | * Represents the behavior of support topics. Support Topics operations are localizable. 13 | */ 14 | public interface ISupportTopicsCollection 15 | extends IPartnerComponentString, 16 | IEntireEntityCollectionRetrievalOperations> 17 | { 18 | /** 19 | * Retrieves all the support topics. 20 | * @return The support topics. 21 | */ 22 | ResourceCollection get(); 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/subscriptions/ISubscriptionActivationLinks.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.subscriptions; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.orders.OrderLineItemActivationLink; 10 | import com.microsoft.store.partnercenter.models.utils.Tuple; 11 | 12 | /** 13 | * A resource collection of subscription activation links. 14 | */ 15 | public interface ISubscriptionActivationLinks 16 | extends IPartnerComponent>, 17 | IEntireEntityCollectionRetrievalOperations> 18 | { 19 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/subscriptions/ISubscriptionAddOnCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.subscriptions; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.subscriptions.Subscription; 10 | import com.microsoft.store.partnercenter.models.utils.Tuple; 11 | 12 | /** 13 | * Defines the behavior for a subscription's add-ons. 14 | */ 15 | public interface ISubscriptionAddOnCollection 16 | extends IPartnerComponent>, 17 | IEntireEntityCollectionRetrievalOperations> 18 | { 19 | /** 20 | * Retrieves all subscription add-ons. 21 | * @return The subscription add-ons. 22 | */ 23 | ResourceCollection get(); 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/subscriptions/ISubscriptionProvisioningStatus.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.subscriptions; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.subscriptions.SubscriptionProvisioningStatus; 9 | import com.microsoft.store.partnercenter.models.utils.Tuple; 10 | 11 | /** 12 | * Defines the operations available on a customer's subscription registrations. 13 | */ 14 | public interface ISubscriptionProvisioningStatus 15 | extends IPartnerComponent>, IEntityGetOperations 16 | { 17 | /** 18 | * Retrieves all subscription provisioning status details. 19 | * 20 | * @return The subscription provisioning status details. 21 | */ 22 | SubscriptionProvisioningStatus get(); 23 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/subscriptions/ISubscriptionRegistration.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.subscriptions; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.models.utils.Tuple; 8 | 9 | /** 10 | * Defines the operations available on a customer's subscription registrations. 11 | */ 12 | public interface ISubscriptionRegistration 13 | extends IPartnerComponent> 14 | { 15 | /** 16 | * Register a subscription to enable Azure Reserved instance purchase. 17 | * 18 | * @return The location which indicates the URL of the API to query for status. 19 | */ 20 | String register(); 21 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/subscriptions/ISubscriptionRegistrationStatus.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.subscriptions; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.subscriptions.SubscriptionRegistrationStatus; 9 | import com.microsoft.store.partnercenter.models.utils.Tuple; 10 | 11 | /** 12 | * Defines the operations available on a customer's subscription registration status. 13 | */ 14 | public interface ISubscriptionRegistrationStatus 15 | extends IPartnerComponent>, IEntityGetOperations 16 | { 17 | /** 18 | * Retrieves a subscription registration status. 19 | * 20 | * @return The subscription registration status details. 21 | */ 22 | SubscriptionRegistrationStatus get(); 23 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/usage/ICustomerUsageRecordCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.usage; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.usage.CustomerMonthlyUsageRecord; 10 | 11 | /** 12 | * Defines the behavior of a customer usage record collection operations. 13 | */ 14 | public interface ICustomerUsageRecordCollection 15 | extends IPartnerComponentString, 16 | IEntireEntityCollectionRetrievalOperations> 17 | { 18 | /** 19 | * Retrieves all customer usage records. 20 | * @return The customer usage records. 21 | */ 22 | ResourceCollection get(); 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/usage/ICustomerUsageSummary.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.usage; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.usage.CustomerUsageSummary; 9 | 10 | /** 11 | * This interface defines the operations available on a customer's usage summary. 12 | */ 13 | public interface ICustomerUsageSummary 14 | extends IPartnerComponentString, IEntityGetOperations 15 | { 16 | /** 17 | * Retrieves the customer usage summary. 18 | * @return The customer usage summary. 19 | */ 20 | CustomerUsageSummary get(); 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/usage/IPartnerUsageSummary.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.usage; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.usage.PartnerUsageSummary; 9 | 10 | /** 11 | * This interface defines the operations available on a partner's usage summary. 12 | */ 13 | public interface IPartnerUsageSummary 14 | extends IPartnerComponentString, IEntityGetOperations 15 | { 16 | /** 17 | * Retrieves the partner's usage summary. 18 | * @return The partner's usage summary. 19 | */ 20 | PartnerUsageSummary get(); 21 | } 22 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/usage/IResourceUsageRecordCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.usage; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.usage.AzureResourceMonthlyUsageRecord; 10 | import com.microsoft.store.partnercenter.models.utils.Tuple; 11 | 12 | /** 13 | * Defines the behavior for a subscription's resource usage records. 14 | */ 15 | public interface IResourceUsageRecordCollection 16 | extends IPartnerComponent>, 17 | IEntireEntityCollectionRetrievalOperations> 18 | { 19 | /** 20 | * Retrieves the subscription's resource usage records. 21 | * @return The subscription's resource usage records. 22 | */ 23 | ResourceCollection get(); 24 | } 25 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/usage/ISubscriptionMonthlyUsageRecordCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.usage; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponentString; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.usage.SubscriptionMonthlyUsageRecord; 10 | 11 | /** 12 | * Defines the behavior for a subscription's daily usage records. 13 | */ 14 | public interface ISubscriptionMonthlyUsageRecordCollection 15 | extends IPartnerComponentString, 16 | IEntireEntityCollectionRetrievalOperations> 17 | { 18 | /** 19 | * Retrieves the customer's subscription usage records. 20 | * @return The customer's subscription usage records. 21 | */ 22 | ResourceCollection get(); 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/usage/ISubscriptionUsageRecordCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.usage; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.models.utils.Tuple; 8 | 9 | /** 10 | * Represents the operations for a customer's subscription usage records. 11 | */ 12 | public interface ISubscriptionUsageRecordCollection 13 | extends IPartnerComponent> 14 | { 15 | /** 16 | * Gets the subscription usage records grouped by meter. 17 | * 18 | * @return The subscription usage records grouped by meter. 19 | */ 20 | IUsageRecordByMeterCollection byMeter(); 21 | 22 | /** 23 | * Gets the subscription usage records grouped by resource. 24 | * 25 | * @return Gets the subscription usage records grouped by resource. 26 | */ 27 | IUsageRecordByResourceCollection byResource(); 28 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/usage/ISubscriptionUsageSummary.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.usage; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntityGetOperations; 8 | import com.microsoft.store.partnercenter.models.usage.SubscriptionUsageSummary; 9 | import com.microsoft.store.partnercenter.models.utils.Tuple; 10 | 11 | /** 12 | * This interface defines the operations available on a customer's subscription usage summary. 13 | */ 14 | public interface ISubscriptionUsageSummary 15 | extends IPartnerComponent>, IEntityGetOperations 16 | { 17 | /** 18 | * Retrieves the customer's subscription usage summary. 19 | * @return The customer's subscription usage summary. 20 | */ 21 | SubscriptionUsageSummary get(); 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/usage/IUsageRecordByMeterCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.usage; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.usage.MeterUsageRecord; 10 | import com.microsoft.store.partnercenter.models.utils.Tuple; 11 | 12 | /** 13 | * Represents the operations for a subscription's meter usage records. 14 | */ 15 | public interface IUsageRecordByMeterCollection 16 | extends IPartnerComponent>, IEntireEntityCollectionRetrievalOperations> 17 | { 18 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/usage/IUsageRecordByResourceCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.usage; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.genericoperations.IEntireEntityCollectionRetrievalOperations; 8 | import com.microsoft.store.partnercenter.models.ResourceCollection; 9 | import com.microsoft.store.partnercenter.models.usage.ResourceUsageRecord; 10 | import com.microsoft.store.partnercenter.models.utils.Tuple; 11 | 12 | /** 13 | * Represents the operations for a subscription's resource usage records. 14 | */ 15 | public interface IUsageRecordByResourceCollection 16 | extends IPartnerComponent>, IEntireEntityCollectionRetrievalOperations> 17 | { 18 | } -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/utilization/IUtilizationCollection.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.utilization; 5 | 6 | import com.microsoft.store.partnercenter.IPartnerComponent; 7 | import com.microsoft.store.partnercenter.models.utils.Tuple; 8 | 9 | public interface IUtilizationCollection 10 | extends IPartnerComponent> 11 | { 12 | /** 13 | * Gets the Azure subscription utilization behavior. 14 | * 15 | * @return The Azure subscription utilization behavior. 16 | */ 17 | IAzureUtilizationCollection getAzure(); 18 | } 19 | -------------------------------------------------------------------------------- /src/main/java/com/microsoft/store/partnercenter/validations/IValidationOperations.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.validations; 5 | 6 | import java.util.List; 7 | 8 | import com.microsoft.store.partnercenter.IPartnerComponentString; 9 | import com.microsoft.store.partnercenter.models.Address; 10 | import com.microsoft.store.partnercenter.models.validationcodes.ValidationCode; 11 | 12 | /** 13 | * Represents the behavior of a validation operations. 14 | */ 15 | public interface IValidationOperations 16 | extends IPartnerComponentString 17 | { 18 | /** 19 | * Gets validation code which is used for Government Community Cloud customers qualification. 20 | * 21 | * @return List of validation codes. 22 | */ 23 | List getValidationCodes(); 24 | 25 | /** 26 | * Checks if the address is valid or not. 27 | * 28 | * @param address The address to be validated. 29 | * @return true if the address is valid, false otherwise. 30 | */ 31 | Boolean isAddressValid(Address address); 32 | } -------------------------------------------------------------------------------- /src/test/java/com/microsoft/store/partnercenter/models/productupgrades/ProductUpgradeDetailTest.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.productupgrades; 5 | 6 | import static org.junit.jupiter.api.Assertions.assertEquals; 7 | 8 | import org.junit.jupiter.api.Test; 9 | 10 | public class ProductUpgradeDetailTest 11 | { 12 | @Test 13 | void getId() 14 | { 15 | ProductUpgradeDetail resource = new ProductUpgradeDetail(); 16 | String value = "d0064aa7-6de8-4106-ade8-30c56765db9a"; 17 | 18 | resource.setId(value); 19 | 20 | assertEquals(value, resource.getId()); 21 | } 22 | 23 | @Test 24 | void getName() 25 | { 26 | ProductUpgradeDetail resource = new ProductUpgradeDetail(); 27 | String value = "name"; 28 | 29 | resource.setName(value); 30 | 31 | assertEquals(value, resource.getName()); 32 | } 33 | } -------------------------------------------------------------------------------- /src/test/java/com/microsoft/store/partnercenter/models/productupgrades/ProductUpgradeErrorDetailTest.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.productupgrades; 5 | 6 | import static org.junit.jupiter.api.Assertions.assertEquals; 7 | 8 | import org.junit.jupiter.api.Test; 9 | 10 | public class ProductUpgradeErrorDetailTest 11 | { 12 | @Test 13 | void getCode() 14 | { 15 | ProductUpgradeErrorDetail resource = new ProductUpgradeErrorDetail(); 16 | String value = "code"; 17 | 18 | resource.setCode(value); 19 | 20 | assertEquals(value, resource.getCode()); 21 | } 22 | 23 | @Test 24 | void getDescription() 25 | { 26 | ProductUpgradeErrorDetail resource = new ProductUpgradeErrorDetail(); 27 | String value = "description"; 28 | 29 | resource.setDescription(value); 30 | 31 | assertEquals(value, resource.getDescription()); 32 | } 33 | } -------------------------------------------------------------------------------- /src/test/java/com/microsoft/store/partnercenter/models/productupgrades/ProductUpgradeRequestTest.java: -------------------------------------------------------------------------------- 1 | // Copyright (c) Microsoft Corporation. All rights reserved. 2 | // Licensed under the MIT license. See the LICENSE file in the project root for full license information. 3 | 4 | package com.microsoft.store.partnercenter.models.productupgrades; 5 | 6 | import static org.junit.jupiter.api.Assertions.assertEquals; 7 | 8 | import org.junit.jupiter.api.Test; 9 | 10 | public class ProductUpgradeRequestTest 11 | { 12 | @Test 13 | void getCustomerId() 14 | { 15 | ProductUpgradeRequest resource = new ProductUpgradeRequest(); 16 | String value = "03508667-bbab-4172-989e-3b0b925b6d7a"; 17 | 18 | resource.setCustomerId(value); 19 | 20 | assertEquals(value, resource.getCustomerId()); 21 | } 22 | 23 | @Test 24 | void getProductFamily() 25 | { 26 | ProductUpgradeRequest resource = new ProductUpgradeRequest(); 27 | String value = "family"; 28 | 29 | resource.setProductFamily(value); 30 | 31 | assertEquals(value, resource.getProductFamily()); 32 | } 33 | } --------------------------------------------------------------------------------