From f65956aff6e950a7782f1f2ecee9228856f8f0bd Mon Sep 17 00:00:00 2001 From: Isaiah Williams Date: Fri, 10 May 2019 13:36:34 -0500 Subject: [PATCH] Minor update for the release --- README.md | 2 +- pom.xml | 3 + .../models/carts/CartLineItem.java | 7 ++- .../servicecosts/ServiceCostsSummary.java | 6 +- ...SubscriptionActivationLinksOperations.java | 61 +++++++++---------- src/main/resources/PartnerService.json | 2 +- 6 files changed, 42 insertions(+), 39 deletions(-) diff --git a/README.md b/README.md index 716f77c..c972dd8 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Jar dependency binary information for maven and gradle can be found here at [mav com.microsoft.store partnercenter - 1.12.0 + 1.13.0 ``` diff --git a/pom.xml b/pom.xml index d955dc2..8042e8e 100644 --- a/pom.xml +++ b/pom.xml @@ -150,6 +150,9 @@ org.apache.maven.plugins maven-javadoc-plugin + + 7 + org.apache.maven.plugins diff --git a/src/main/java/com/microsoft/store/partnercenter/models/carts/CartLineItem.java b/src/main/java/com/microsoft/store/partnercenter/models/carts/CartLineItem.java index d540dac..569bf92 100644 --- a/src/main/java/com/microsoft/store/partnercenter/models/carts/CartLineItem.java +++ b/src/main/java/com/microsoft/store/partnercenter/models/carts/CartLineItem.java @@ -7,6 +7,7 @@ package com.microsoft.store.partnercenter.models.carts; import java.util.Collection; +import java.util.List; import java.util.Map; import com.fasterxml.jackson.annotation.JsonProperty; @@ -22,7 +23,7 @@ public class CartLineItem * A list of items that depend on this one, so they have to be purchased subsequently. */ @JsonProperty("addOnItems") - private Iterable addOnItems; + private List addOnItems; /** * The type of billing cycle for the selected catalog item. @@ -95,7 +96,7 @@ public class CartLineItem * * @return A list of items that depend on this one, so they have to be purchased subsequently. */ - public Iterable getAddOnItems() + public List getAddOnItems() { return addOnItems; } @@ -105,7 +106,7 @@ public Iterable getAddOnItems() * * @param value A list of items that depend on this one, so they have to be purchased subsequently. */ - public void setAddOnItems(Iterable value) + public void setAddOnItems(List value) { addOnItems = value; } diff --git a/src/main/java/com/microsoft/store/partnercenter/models/servicecosts/ServiceCostsSummary.java b/src/main/java/com/microsoft/store/partnercenter/models/servicecosts/ServiceCostsSummary.java index 8b13862..fe1bd0c 100644 --- a/src/main/java/com/microsoft/store/partnercenter/models/servicecosts/ServiceCostsSummary.java +++ b/src/main/java/com/microsoft/store/partnercenter/models/servicecosts/ServiceCostsSummary.java @@ -22,14 +22,14 @@ public class ServiceCostsSummary /** * The service costs summary details. */ - private List details; + private List details; /** * Gets the service costs summary details. * * @return The service costs summary details. */ - public List getDetails() + public List getDetails() { return details; } @@ -39,7 +39,7 @@ public List getDetails() * * @param value The service costs summary details. */ - public void setDetails(List value) + public void setDetails(List value) { details = value;; } diff --git a/src/main/java/com/microsoft/store/partnercenter/subscriptions/SubscriptionActivationLinksOperations.java b/src/main/java/com/microsoft/store/partnercenter/subscriptions/SubscriptionActivationLinksOperations.java index eea6385..567c33c 100644 --- a/src/main/java/com/microsoft/store/partnercenter/subscriptions/SubscriptionActivationLinksOperations.java +++ b/src/main/java/com/microsoft/store/partnercenter/subscriptions/SubscriptionActivationLinksOperations.java @@ -14,7 +14,6 @@ import com.microsoft.store.partnercenter.PartnerService; import com.microsoft.store.partnercenter.models.ResourceCollection; import com.microsoft.store.partnercenter.models.orders.OrderLineItemActivationLink; -import com.microsoft.store.partnercenter.models.subscriptions.Subscription; import com.microsoft.store.partnercenter.models.utils.Tuple; import com.microsoft.store.partnercenter.utils.StringHelper; @@ -23,42 +22,42 @@ * for a given subscription. */ public class SubscriptionActivationLinksOperations extends BasePartnerComponent> - implements ISubscriptionActivationLinks { - /** - * Initializes a new instance of the SubscriptionActivationLinksOperations - * class. - * - * @param rootPartnerOperations The root partner operations instance. - * @param customerId The customer identifier. - * @param subscriptionId The subscription identifier - */ - public SubscriptionActivationLinksOperations(IPartner rootPartnerOperations, String customerId, - String subscriptionId) { - super(rootPartnerOperations, new Tuple(customerId, subscriptionId)); + implements ISubscriptionActivationLinks { + /** + * Initializes a new instance of the SubscriptionActivationLinksOperations + * class. + * + * @param rootPartnerOperations The root partner operations instance. + * @param customerId The customer identifier. + * @param subscriptionId The subscription identifier + */ + public SubscriptionActivationLinksOperations(IPartner rootPartnerOperations, String customerId, + String subscriptionId) { + super(rootPartnerOperations, new Tuple(customerId, subscriptionId)); - if (StringHelper.isNullOrWhiteSpace(customerId)) { - throw new IllegalArgumentException("customerId must be set."); - } + if (StringHelper.isNullOrWhiteSpace(customerId)) { + throw new IllegalArgumentException("customerId must be set."); + } - if (StringHelper.isNullOrWhiteSpace(subscriptionId)) { - throw new IllegalArgumentException("subscriptionId must be set."); - } - } + if (StringHelper.isNullOrWhiteSpace(subscriptionId)) { + throw new IllegalArgumentException("subscriptionId must be set."); + } + } - /** - * Gets the subscription activation links. - * - * @return The subscription activation links. - */ - @Override - public ResourceCollection get() - { + /** + * Gets the subscription activation links. + * + * @return The subscription activation links. + */ + @Override + public ResourceCollection get() + { return this.getPartner().getServiceClient().get( this.getPartner(), new TypeReference>(){}, MessageFormat.format( PartnerService.getInstance().getConfiguration().getApis().get("GetSubscriptionActivationLink").getPath(), - this.getContext().getItem1(), - this.getContext().getItem2())); - } + this.getContext().getItem1(), + this.getContext().getItem2())); + } } \ No newline at end of file diff --git a/src/main/resources/PartnerService.json b/src/main/resources/PartnerService.json index 6ecdc56..d34bb71 100644 --- a/src/main/resources/PartnerService.json +++ b/src/main/resources/PartnerService.json @@ -5,7 +5,7 @@ "DefaultAuthenticationTokenExpiryBufferInSeconds": "30", "DefaultLocale": "en-US", "PartnerCenterClient": "Partner Center Java SDK", - "SdkVersion": "1.12.0", + "SdkVersion": "1.13.0", "Apis": { "PartnerLicensesDeploymentInsights": { "Path": "analytics/licenses/deployment"