-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from Bandwidth/SWI-6678
SWI-6678
- Loading branch information
Showing
7 changed files
with
257 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/com/bandwidth/sdk/numbers/models/orders/OrdersResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.bandwidth.sdk.numbers.models.orders; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; | ||
import org.immutables.value.Value; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
@Value.Immutable | ||
@JsonSerialize(as = ImmutableOrdersResponse.class) | ||
@JsonDeserialize(as = ImmutableOrdersResponse.class) | ||
@JacksonXmlRootElement(localName = "ResponseSelectWrapper") | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public abstract class OrdersResponse { | ||
@Value.Redacted | ||
@Nullable | ||
@JacksonXmlProperty(localName = "ListOrderIdUserIdDate") | ||
public abstract OrdersResponseWrapper getOrdersResponseData(); | ||
|
||
public static ImmutableOrdersResponse.Builder builder() { | ||
return ImmutableOrdersResponse.builder(); | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
src/main/java/com/bandwidth/sdk/numbers/models/orders/OrdersResponseData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package com.bandwidth.sdk.numbers.models.orders; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; | ||
import org.immutables.value.Value; | ||
|
||
import javax.annotation.Nullable; | ||
import java.util.Date; | ||
|
||
@Value.Immutable | ||
@JsonSerialize(as = ImmutableOrdersResponseData.class) | ||
@JsonDeserialize(as = ImmutableOrdersResponseData.class) | ||
@JacksonXmlRootElement(localName = "OrderIdUserIdDate") | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public abstract class OrdersResponseData { | ||
@Nullable | ||
@JacksonXmlProperty(localName = "accountId") | ||
public abstract String getAccountId(); | ||
|
||
@Nullable | ||
@JacksonXmlProperty(localName = "CountOfTNs") | ||
public abstract Integer getCountOfTns(); | ||
|
||
@Nullable | ||
@JacksonXmlProperty(localName = "CustomerOrderId") | ||
public abstract String getCustomerOrderId(); | ||
|
||
@Nullable | ||
@JacksonXmlProperty(localName = "userId") | ||
public abstract String getUserId(); | ||
|
||
@Nullable | ||
@JacksonXmlProperty(localName = "lastModifiedDate") | ||
public abstract Date getLastModifiedDate(); | ||
|
||
@Nullable | ||
@JacksonXmlProperty(localName = "OrderDate") | ||
public abstract Date getOrderDate(); | ||
|
||
@Nullable | ||
@JacksonXmlProperty(localName = "OrderType") | ||
public abstract String getOrderType(); | ||
|
||
@Nullable | ||
@JacksonXmlProperty(localName = "orderId") | ||
public abstract String getOrderId(); | ||
|
||
@Nullable | ||
@JacksonXmlProperty(localName = "OrderStatus") | ||
public abstract OrderResponse.OrderStatus getOrderStatus(); | ||
|
||
@Nullable | ||
@JacksonXmlProperty(localName = "Summary") | ||
public abstract String getSummary(); | ||
|
||
public static ImmutableOrdersResponseData.Builder builder() { | ||
return ImmutableOrdersResponseData.builder(); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/main/java/com/bandwidth/sdk/numbers/models/orders/OrdersResponseLinks.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.bandwidth.sdk.numbers.models.orders; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; | ||
import org.immutables.value.Value; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
@Value.Immutable | ||
@JsonSerialize(as = ImmutableOrdersResponseLinks.class) | ||
@JsonDeserialize(as = ImmutableOrdersResponseLinks.class) | ||
@JacksonXmlRootElement(localName = "Links") | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public abstract class OrdersResponseLinks { | ||
@Nullable | ||
@JacksonXmlProperty(localName = "first") | ||
public abstract String getFirst(); | ||
|
||
@Nullable | ||
@JacksonXmlProperty(localName = "next") | ||
public abstract String getNext(); | ||
|
||
public static ImmutableOrdersResponseLinks.Builder builder() { | ||
return ImmutableOrdersResponseLinks.builder(); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
src/main/java/com/bandwidth/sdk/numbers/models/orders/OrdersResponseWrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package com.bandwidth.sdk.numbers.models.orders; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize; | ||
import com.fasterxml.jackson.databind.annotation.JsonSerialize; | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper; | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty; | ||
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement; | ||
import org.immutables.value.Value; | ||
|
||
import javax.annotation.Nullable; | ||
import java.util.List; | ||
|
||
@Value.Immutable | ||
@JsonSerialize(as = ImmutableOrdersResponseWrapper.class) | ||
@JsonDeserialize(as = ImmutableOrdersResponseWrapper.class) | ||
@JacksonXmlRootElement(localName = "ListOrderIdUserIdDate") | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public abstract class OrdersResponseWrapper { | ||
@Nullable | ||
@JacksonXmlProperty(localName = "TotalCount") | ||
public abstract Integer getTotalCount(); | ||
|
||
@Nullable | ||
@JacksonXmlElementWrapper(localName = "Links") | ||
public abstract OrdersResponseLinks getLinks(); | ||
|
||
@Nullable | ||
@JacksonXmlElementWrapper(useWrapping = false) | ||
@JacksonXmlProperty(localName = "OrderIdUserIdDate") | ||
public abstract List<OrdersResponseData> getOrders(); | ||
|
||
public static ImmutableOrdersResponseWrapper.Builder builder() { | ||
return ImmutableOrdersResponseWrapper.builder(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters