1414import com .microsoft .store .partnercenter .PartnerService ;
1515import com .microsoft .store .partnercenter .models .ResourceCollection ;
1616import com .microsoft .store .partnercenter .models .orders .OrderLineItemActivationLink ;
17- import com .microsoft .store .partnercenter .models .subscriptions .Subscription ;
1817import com .microsoft .store .partnercenter .models .utils .Tuple ;
1918import com .microsoft .store .partnercenter .utils .StringHelper ;
2019
2322 * for a given subscription.
2423 */
2524public 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}
0 commit comments