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

Commit 601bf76

Browse files
author
Isaiah Williams
authored
Model update (#110)
1 parent 75e400f commit 601bf76

3 files changed

Lines changed: 32 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
* Invoice
3030
* Added the billing start and end dates to the invoice model (Thanks [@msize](https://github.com/msize))
3131
* Added the ReservationOrderId property to the one time invoice line item model
32+
* Added the Quantity property to the daily rated usage line item model
33+
* Addressed an issue that was preventing the pcToBCExchangeRate and pcToBCExchangeRateDate fields on the daily rated usage line item model from being deserialized
3234
* Subscription
3335
* Added the missing get subscription usage record by resource configuration (Thanks [@msize](https://github.com/msize))
3436

src/main/java/com/microsoft/store/partnercenter/models/customers/Customer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public void setCommerceId(String value)
7474
/**
7575
* Gets the company profile.
7676
*
77-
* @return The compnay profile.
77+
* @return The company profile.
7878
*/
7979
public CustomerCompanyProfile getCompanyProfile()
8080
{

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

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import java.util.Map;
77

8+
import com.fasterxml.jackson.annotation.JsonProperty;
89
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
910
import com.microsoft.store.partnercenter.utils.NestedResourceDeserializer;
1011

@@ -182,6 +183,11 @@ public class DailyRatedUsageLineItem
182183
*/
183184
private String publisherName;
184185

186+
/**
187+
* The quantity of usage
188+
*/
189+
private double quantity;
190+
185191
/**
186192
* The Reseller MPN identifier of the indirect reseller.
187193
*/
@@ -790,6 +796,7 @@ public void setPartnerName(String value)
790796
*
791797
* @return The pricing currency to billing currency exchange rate.
792798
*/
799+
@JsonProperty("pcToBCExchangeRate")
793800
public double getPCToBCExchangeRate()
794801
{
795802
return pcToBCExchangeRate;
@@ -810,7 +817,8 @@ public void setPCToBCExchangeRate(double value)
810817
*
811818
* @return The pricing currency to billing currency exchange rate date.
812819
*/
813-
public DateTime getPCToBCExchangeRateDate()
820+
@JsonProperty("pcToBCExchangeRateDate")
821+
public DateTime getPCToBCExchangeRateDate()
814822
{
815823
return pcToBCExchangeRateDate;
816824
}
@@ -945,6 +953,26 @@ public void setPublisherName(String value)
945953
publisherName = value;
946954
}
947955

956+
/**
957+
* Gets the quantity of the usage.
958+
*
959+
* @return The quantity of the usage
960+
*/
961+
public double getQuantity()
962+
{
963+
return quantity;
964+
}
965+
966+
/**
967+
* Sets the quantity of the usage.
968+
*
969+
* @param value The quantity of the usage.
970+
*/
971+
public void setQuantity(double value)
972+
{
973+
quantity = value;
974+
}
975+
948976
/**
949977
* Gets the rate of partner earned credit.
950978
*

0 commit comments

Comments
 (0)