Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Jar dependency binary information for maven and gradle can be found here at [mav
<dependency>
<groupId>com.microsoft.store</groupId>
<artifactId>partnercenter</artifactId>
<version>1.12.0</version>
<version>1.13.0</version>
</dependency>
```

Expand Down
3 changes: 3 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<source>7</source>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<CartLineItem> addOnItems;
private List<CartLineItem> addOnItems;

/**
* The type of billing cycle for the selected catalog item.
Expand Down Expand Up @@ -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<CartLineItem> getAddOnItems()
public List<CartLineItem> getAddOnItems()
{
return addOnItems;
}
Expand All @@ -105,7 +106,7 @@ public Iterable<CartLineItem> getAddOnItems()
*
* @param value A list of items that depend on this one, so they have to be purchased subsequently.
*/
public void setAddOnItems(Iterable<CartLineItem> value)
public void setAddOnItems(List<CartLineItem> value)
{
addOnItems = value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ public class ServiceCostsSummary
/**
* The service costs summary details.
*/
private List<ServiceCostLineItem> details;
private List<ServiceCostsSummary> details;

/**
* Gets the service costs summary details.
*
* @return The service costs summary details.
*/
public List<ServiceCostLineItem> getDetails()
public List<ServiceCostsSummary> getDetails()
{
return details;
}
Expand All @@ -39,7 +39,7 @@ public List<ServiceCostLineItem> getDetails()
*
* @param value The service costs summary details.
*/
public void setDetails(List<ServiceCostLineItem> value)
public void setDetails(List<ServiceCostsSummary> value)
{
details = value;;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -23,42 +22,42 @@
* for a given subscription.
*/
public class SubscriptionActivationLinksOperations extends BasePartnerComponent<Tuple<String, String>>
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<String, String>(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<String, String>(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<OrderLineItemActivationLink> get()
{
/**
* Gets the subscription activation links.
*
* @return The subscription activation links.
*/
@Override
public ResourceCollection<OrderLineItemActivationLink> get()
{
return this.getPartner().getServiceClient().get(
this.getPartner(),
new TypeReference<ResourceCollection<OrderLineItemActivationLink>>(){},
MessageFormat.format(
PartnerService.getInstance().getConfiguration().getApis().get("GetSubscriptionActivationLink").getPath(),
this.getContext().getItem1(),
this.getContext().getItem2()));
}
this.getContext().getItem1(),
this.getContext().getItem2()));
}
}
2 changes: 1 addition & 1 deletion src/main/resources/PartnerService.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down