Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit de79b78

Browse files
author
Isaiah Williams
authored
Minor update for the release (#45)
1 parent 50e971b commit de79b78

6 files changed

Lines changed: 42 additions & 39 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Jar dependency binary information for maven and gradle can be found here at [mav
1414
<dependency>
1515
<groupId>com.microsoft.store</groupId>
1616
<artifactId>partnercenter</artifactId>
17-
<version>1.12.0</version>
17+
<version>1.13.0</version>
1818
</dependency>
1919
```
2020

pom.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@
150150
<plugin>
151151
<groupId>org.apache.maven.plugins</groupId>
152152
<artifactId>maven-javadoc-plugin</artifactId>
153+
<configuration>
154+
<source>7</source>
155+
</configuration>
153156
</plugin>
154157
<plugin>
155158
<groupId>org.apache.maven.plugins</groupId>

src/main/java/com/microsoft/store/partnercenter/models/carts/CartLineItem.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
package com.microsoft.store.partnercenter.models.carts;
88

99
import java.util.Collection;
10+
import java.util.List;
1011
import java.util.Map;
1112

1213
import com.fasterxml.jackson.annotation.JsonProperty;
@@ -22,7 +23,7 @@ public class CartLineItem
2223
* A list of items that depend on this one, so they have to be purchased subsequently.
2324
*/
2425
@JsonProperty("addOnItems")
25-
private Iterable<CartLineItem> addOnItems;
26+
private List<CartLineItem> addOnItems;
2627

2728
/**
2829
* The type of billing cycle for the selected catalog item.
@@ -95,7 +96,7 @@ public class CartLineItem
9596
*
9697
* @return A list of items that depend on this one, so they have to be purchased subsequently.
9798
*/
98-
public Iterable<CartLineItem> getAddOnItems()
99+
public List<CartLineItem> getAddOnItems()
99100
{
100101
return addOnItems;
101102
}
@@ -105,7 +106,7 @@ public Iterable<CartLineItem> getAddOnItems()
105106
*
106107
* @param value A list of items that depend on this one, so they have to be purchased subsequently.
107108
*/
108-
public void setAddOnItems(Iterable<CartLineItem> value)
109+
public void setAddOnItems(List<CartLineItem> value)
109110
{
110111
addOnItems = value;
111112
}

src/main/java/com/microsoft/store/partnercenter/models/servicecosts/ServiceCostsSummary.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ public class ServiceCostsSummary
2222
/**
2323
* The service costs summary details.
2424
*/
25-
private List<ServiceCostLineItem> details;
25+
private List<ServiceCostsSummary> details;
2626

2727
/**
2828
* Gets the service costs summary details.
2929
*
3030
* @return The service costs summary details.
3131
*/
32-
public List<ServiceCostLineItem> getDetails()
32+
public List<ServiceCostsSummary> getDetails()
3333
{
3434
return details;
3535
}
@@ -39,7 +39,7 @@ public List<ServiceCostLineItem> getDetails()
3939
*
4040
* @param value The service costs summary details.
4141
*/
42-
public void setDetails(List<ServiceCostLineItem> value)
42+
public void setDetails(List<ServiceCostsSummary> value)
4343
{
4444
details = value;;
4545
}

src/main/java/com/microsoft/store/partnercenter/subscriptions/SubscriptionActivationLinksOperations.java

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
import com.microsoft.store.partnercenter.PartnerService;
1515
import com.microsoft.store.partnercenter.models.ResourceCollection;
1616
import com.microsoft.store.partnercenter.models.orders.OrderLineItemActivationLink;
17-
import com.microsoft.store.partnercenter.models.subscriptions.Subscription;
1817
import com.microsoft.store.partnercenter.models.utils.Tuple;
1918
import com.microsoft.store.partnercenter.utils.StringHelper;
2019

@@ -23,42 +22,42 @@
2322
* for a given subscription.
2423
*/
2524
public class SubscriptionActivationLinksOperations extends BasePartnerComponent<Tuple<String, String>>
26-
implements ISubscriptionActivationLinks {
27-
/**
28-
* Initializes a new instance of the SubscriptionActivationLinksOperations
29-
* class.
30-
*
31-
* @param rootPartnerOperations The root partner operations instance.
32-
* @param customerId The customer identifier.
33-
* @param subscriptionId The subscription identifier
34-
*/
35-
public SubscriptionActivationLinksOperations(IPartner rootPartnerOperations, String customerId,
36-
String subscriptionId) {
37-
super(rootPartnerOperations, new Tuple<String, String>(customerId, subscriptionId));
25+
implements ISubscriptionActivationLinks {
26+
/**
27+
* Initializes a new instance of the SubscriptionActivationLinksOperations
28+
* class.
29+
*
30+
* @param rootPartnerOperations The root partner operations instance.
31+
* @param customerId The customer identifier.
32+
* @param subscriptionId The subscription identifier
33+
*/
34+
public SubscriptionActivationLinksOperations(IPartner rootPartnerOperations, String customerId,
35+
String subscriptionId) {
36+
super(rootPartnerOperations, new Tuple<String, String>(customerId, subscriptionId));
3837

39-
if (StringHelper.isNullOrWhiteSpace(customerId)) {
40-
throw new IllegalArgumentException("customerId must be set.");
41-
}
38+
if (StringHelper.isNullOrWhiteSpace(customerId)) {
39+
throw new IllegalArgumentException("customerId must be set.");
40+
}
4241

43-
if (StringHelper.isNullOrWhiteSpace(subscriptionId)) {
44-
throw new IllegalArgumentException("subscriptionId must be set.");
45-
}
46-
}
42+
if (StringHelper.isNullOrWhiteSpace(subscriptionId)) {
43+
throw new IllegalArgumentException("subscriptionId must be set.");
44+
}
45+
}
4746

48-
/**
49-
* Gets the subscription activation links.
50-
*
51-
* @return The subscription activation links.
52-
*/
53-
@Override
54-
public ResourceCollection<OrderLineItemActivationLink> get()
55-
{
47+
/**
48+
* Gets the subscription activation links.
49+
*
50+
* @return The subscription activation links.
51+
*/
52+
@Override
53+
public ResourceCollection<OrderLineItemActivationLink> get()
54+
{
5655
return this.getPartner().getServiceClient().get(
5756
this.getPartner(),
5857
new TypeReference<ResourceCollection<OrderLineItemActivationLink>>(){},
5958
MessageFormat.format(
6059
PartnerService.getInstance().getConfiguration().getApis().get("GetSubscriptionActivationLink").getPath(),
61-
this.getContext().getItem1(),
62-
this.getContext().getItem2()));
63-
}
60+
this.getContext().getItem1(),
61+
this.getContext().getItem2()));
62+
}
6463
}

src/main/resources/PartnerService.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"DefaultAuthenticationTokenExpiryBufferInSeconds": "30",
66
"DefaultLocale": "en-US",
77
"PartnerCenterClient": "Partner Center Java SDK",
8-
"SdkVersion": "1.12.0",
8+
"SdkVersion": "1.13.0",
99
"Apis": {
1010
"PartnerLicensesDeploymentInsights": {
1111
"Path": "analytics/licenses/deployment"

0 commit comments

Comments
 (0)