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

Commit ac4a893

Browse files
author
Isaiah Williams
authored
Minor refactoring (#90)
1 parent ce4aaaa commit ac4a893

23 files changed

Lines changed: 107 additions & 106 deletions

src/main/java/com/microsoft/store/partnercenter/IPartner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import com.microsoft.store.partnercenter.offers.IOfferCategoryCollection;
1818
import com.microsoft.store.partnercenter.offers.IOfferCollection;
1919
import com.microsoft.store.partnercenter.products.IProductCollection;
20-
import com.microsoft.store.partnercenter.productupgrades.IProductUpgradesCollection;
20+
import com.microsoft.store.partnercenter.productupgrades.IProductUpgradeCollection;
2121
import com.microsoft.store.partnercenter.profiles.IPartnerProfileCollection;
2222
import com.microsoft.store.partnercenter.ratecards.IRateCardCollection;
2323
import com.microsoft.store.partnercenter.relationships.IRelationshipCollection;
@@ -74,7 +74,7 @@ public interface IPartner
7474
*
7575
* @return The product upgrades operations available to the partner.
7676
*/
77-
IProductUpgradesCollection getProductUpgrades();
77+
IProductUpgradeCollection getProductUpgrades();
7878

7979
/**
8080
* Gets the profiles operations available to the partner.

src/main/java/com/microsoft/store/partnercenter/PartnerOperations.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
import com.microsoft.store.partnercenter.offers.OfferCountrySelector;
3131
import com.microsoft.store.partnercenter.products.IProductCollection;
3232
import com.microsoft.store.partnercenter.products.ProductCollectionOperations;
33-
import com.microsoft.store.partnercenter.productupgrades.IProductUpgradesCollection;
34-
import com.microsoft.store.partnercenter.productupgrades.ProductUpgradesCollectionOperations;
33+
import com.microsoft.store.partnercenter.productupgrades.IProductUpgradeCollection;
34+
import com.microsoft.store.partnercenter.productupgrades.ProductUpgradeCollectionOperations;
3535
import com.microsoft.store.partnercenter.profiles.IPartnerProfileCollection;
3636
import com.microsoft.store.partnercenter.profiles.PartnerProfileCollectionOperations;
3737
import com.microsoft.store.partnercenter.ratecards.IRateCardCollection;
@@ -77,7 +77,7 @@ public class PartnerOperations
7777
/**
7878
* The available product upgrade operations.
7979
*/
80-
private IProductUpgradesCollection productUpgrades;
80+
private IProductUpgradeCollection productUpgrades;
8181

8282
/**
8383
* The profile operations.
@@ -450,11 +450,11 @@ public IAgreementDetailsCollection getAgreementDetails()
450450
* @return The product upgrades operations available to the partner.
451451
*/
452452
@Override
453-
public IProductUpgradesCollection getProductUpgrades()
453+
public IProductUpgradeCollection getProductUpgrades()
454454
{
455455
if(this.productUpgrades == null)
456456
{
457-
this.productUpgrades = new ProductUpgradesCollectionOperations(this);
457+
this.productUpgrades = new ProductUpgradeCollectionOperations(this);
458458
}
459459

460460
return this.productUpgrades;

src/main/java/com/microsoft/store/partnercenter/models/invoices/BaseUsageBasedLineItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ public void setChargeEndDate(DateTime value)
301301
}
302302

303303
/**
304-
* Gets or sets the unit of measure for azure usage.
304+
* Gets or sets the unit of measure for Azure usage.
305305
*/
306306
private String __Unit;
307307

src/main/java/com/microsoft/store/partnercenter/models/invoices/OneTimeInvoiceLineItem.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ public String getSkuName()
818818
/**
819819
* Sets the name for the SKU.
820820
*
821-
* @param value
821+
* @param value The name for the SKU.
822822
*/
823823
public void setSkuName(String value)
824824
{

src/main/java/com/microsoft/store/partnercenter/models/productupgrades/UpgradedProductDetails.java renamed to src/main/java/com/microsoft/store/partnercenter/models/productupgrades/ProductUpgradeDetail.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* Represents an upgraded product's details.
88
*/
9-
public class UpgradedProductDetails
9+
public class ProductUpgradeDetail
1010
{
1111
/**
1212
* The identifier for the product upgrade.

src/main/java/com/microsoft/store/partnercenter/models/productupgrades/ProductUpgradesEligibility.java renamed to src/main/java/com/microsoft/store/partnercenter/models/productupgrades/ProductUpgradeEligibility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* Represents a product upgrade eligibility.
88
*/
9-
public class ProductUpgradesEligibility
9+
public class ProductUpgradeEligibility
1010
{
1111
/**
1212
* The identifier for the customer.

src/main/java/com/microsoft/store/partnercenter/models/productupgrades/ProductUpgradesErrorDetails.java renamed to src/main/java/com/microsoft/store/partnercenter/models/productupgrades/ProductUpgradeErrorDetail.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* Represents error details for a product upgrade.
88
*/
9-
public class ProductUpgradesErrorDetails
9+
public class ProductUpgradeErrorDetail
1010
{
1111
/**
1212
* The error code of the product upgrade.

src/main/java/com/microsoft/store/partnercenter/models/productupgrades/ProductUpgradesLineItem.java renamed to src/main/java/com/microsoft/store/partnercenter/models/productupgrades/ProductUpgradeLineItem.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@
88
/**
99
* Represents the product upgrade line item.
1010
*/
11-
public class ProductUpgradesLineItem
11+
public class ProductUpgradeLineItem
1212
{
1313
/**
1414
* The error detail for the product upgrade.
1515
*/
16-
private ProductUpgradesErrorDetails errorDetails;
16+
private ProductUpgradeErrorDetail errorDetails;
1717

1818
/**
1919
* The product being upgraded.
2020
*/
21-
private UpgradedProductDetails sourceProduct;
21+
private ProductUpgradeDetail sourceProduct;
2222

2323
/**
2424
* The status for the product upgrade.
@@ -28,7 +28,7 @@ public class ProductUpgradesLineItem
2828
/**
2929
* The target product for the upgrade.
3030
*/
31-
private UpgradedProductDetails targetProduct;
31+
private ProductUpgradeDetail targetProduct;
3232

3333
/**
3434
* The date the product was upgraded.
@@ -40,7 +40,7 @@ public class ProductUpgradesLineItem
4040
*
4141
* @return The error detail for the product upgrade.
4242
*/
43-
public ProductUpgradesErrorDetails getErrorDetails()
43+
public ProductUpgradeErrorDetail getErrorDetails()
4444
{
4545
return errorDetails;
4646
}
@@ -50,7 +50,7 @@ public ProductUpgradesErrorDetails getErrorDetails()
5050
*
5151
* @param value The error detail for the product upgrade.
5252
*/
53-
public void setErrorDetails(ProductUpgradesErrorDetails value)
53+
public void setErrorDetails(ProductUpgradeErrorDetail value)
5454
{
5555
errorDetails = value;
5656
}
@@ -60,7 +60,7 @@ public void setErrorDetails(ProductUpgradesErrorDetails value)
6060
*
6161
* @return The product being upgraded.
6262
*/
63-
public UpgradedProductDetails getSourceProduct()
63+
public ProductUpgradeDetail getSourceProduct()
6464
{
6565
return sourceProduct;
6666
}
@@ -70,7 +70,7 @@ public UpgradedProductDetails getSourceProduct()
7070
*
7171
* @param value The product being upgraded.
7272
*/
73-
public void setSourceProduct(UpgradedProductDetails value)
73+
public void setSourceProduct(ProductUpgradeDetail value)
7474
{
7575
sourceProduct = value;
7676
}
@@ -100,7 +100,7 @@ public void setStatus(String value)
100100
*
101101
* @return The target product for the upgrade.
102102
*/
103-
public UpgradedProductDetails getTargetProduct()
103+
public ProductUpgradeDetail getTargetProduct()
104104
{
105105
return targetProduct;
106106
}
@@ -110,7 +110,7 @@ public UpgradedProductDetails getTargetProduct()
110110
*
111111
* @param value The target product for the upgrade.
112112
*/
113-
public void setTargetProduct(UpgradedProductDetails value)
113+
public void setTargetProduct(ProductUpgradeDetail value)
114114
{
115115
targetProduct = value;
116116
}

src/main/java/com/microsoft/store/partnercenter/models/productupgrades/ProductUpgradesRequest.java renamed to src/main/java/com/microsoft/store/partnercenter/models/productupgrades/ProductUpgradeRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/**
77
* Represents a product upgrade request.
88
*/
9-
public class ProductUpgradesRequest
9+
public class ProductUpgradeRequest
1010
{
1111
/**
1212
* The identifier for the customer.

src/main/java/com/microsoft/store/partnercenter/models/productupgrades/ProductUpgradesStatus.java renamed to src/main/java/com/microsoft/store/partnercenter/models/productupgrades/ProductUpgradeStatus.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
/**
99
* Represents a product upgrade status.
1010
*/
11-
public class ProductUpgradesStatus
11+
public class ProductUpgradeStatus
1212
{
1313
/**
1414
* The error detail for the product upgrade.
1515
*/
16-
private ProductUpgradesErrorDetails errorDetails;
16+
private ProductUpgradeErrorDetail errorDetails;
1717

1818
/**
1919
* Gets the identifier for the product upgrade.
@@ -23,7 +23,7 @@ public class ProductUpgradesStatus
2323
/**
2424
* The line item for the product upgrade.
2525
*/
26-
private List<ProductUpgradesLineItem> lineItems;
26+
private List<ProductUpgradeLineItem> lineItems;
2727

2828
/**
2929
* The family for the product.
@@ -40,7 +40,7 @@ public class ProductUpgradesStatus
4040
*
4141
* @return The error detail for the product upgrade.
4242
*/
43-
public ProductUpgradesErrorDetails getErrorDetails()
43+
public ProductUpgradeErrorDetail getErrorDetails()
4444
{
4545
return errorDetails;
4646
}
@@ -50,7 +50,7 @@ public ProductUpgradesErrorDetails getErrorDetails()
5050
*
5151
* @param value The error detail for the product upgrade.
5252
*/
53-
public void setErrorDetails(ProductUpgradesErrorDetails value)
53+
public void setErrorDetails(ProductUpgradeErrorDetail value)
5454
{
5555
errorDetails = value;
5656
}
@@ -80,7 +80,7 @@ public void setId(String value)
8080
*
8181
* @return The line items for the product upgrade.
8282
*/
83-
public List<ProductUpgradesLineItem> getLineItems()
83+
public List<ProductUpgradeLineItem> getLineItems()
8484
{
8585
return lineItems;
8686
}
@@ -90,7 +90,7 @@ public List<ProductUpgradesLineItem> getLineItems()
9090
*
9191
* @param value The line items for the product upgrade.
9292
*/
93-
public void setLineItems(List<ProductUpgradesLineItem> value)
93+
public void setLineItems(List<ProductUpgradeLineItem> value)
9494
{
9595
lineItems = value;
9696
}

0 commit comments

Comments
 (0)