All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bandwidth.iris.sdk.model.RemoveImportedTnOrder Maven / Gradle / Ivy

There is a newer version: 4.2.0
Show newest version
package com.bandwidth.iris.sdk.model;

import com.bandwidth.iris.sdk.IrisClient;
import com.bandwidth.iris.sdk.IrisPath;

import javax.xml.bind.annotation.*;
import java.util.List;
import java.util.Map;

@XmlRootElement(name="RemoveImportedTnOrder")
@XmlAccessorType(XmlAccessType.FIELD)
public class RemoveImportedTnOrder extends BaseModel{

    @XmlElement(name = "CustomerOrderId")
    private String customerOrderId;
    @XmlElement(name = "OrderCreateDate")
    private String orderCreateDate;
    @XmlElement(name= "AccountId")
    private String accountId;
    @XmlElement(name = "CreatedByUser")
    private String createdByUser;
    @XmlElement(name = "OrderId")
    private String orderId;
    @XmlElement(name = "LastModifiedDate")
    private String lastModifiedDate;
    @XmlElementWrapper(name = "TelephoneNumbers")
    @XmlElement(name = "TelephoneNumber")
    private List telephoneNumberList;
    @XmlElement(name = "ProcessingStatus")
    private String processingStatus;
    @XmlElementWrapper(name = "Errors")
    @XmlElement(name = "Error")
    private List errors;

    public static RemoveImportedTnOrderResponse Create(IrisClient client, RemoveImportedTnOrder order) throws  Exception{
        return client.post( client.buildAccountModelUri(new String[] {IrisPath.REMOVE_IMPORTED_TN_ORDERS} ), order, RemoveImportedTnOrderResponse.class);
    }

    public static RemoveImportedTnOrders List(IrisClient client, Map query) throws Exception {
        return client.get( client.buildAccountModelUri(new String[] {IrisPath.REMOVE_IMPORTED_TN_ORDERS} , query), RemoveImportedTnOrders.class);
    }

    public static RemoveImportedTnOrder Get(IrisClient client, String orderId) throws Exception {
        return client.get( client.buildAccountModelUri(new String[] {IrisPath.REMOVE_IMPORTED_TN_ORDERS, orderId} ), RemoveImportedTnOrder.class);
    }

    public static OrderHistoryWrapper GetHistory(IrisClient client, String orderId) throws Exception {
        return client.get( client.buildAccountModelUri(new String[] {IrisPath.REMOVE_IMPORTED_TN_ORDERS, orderId, "history"} ), OrderHistoryWrapper.class);
    }


    public String getCustomerOrderId() {
        return customerOrderId;
    }

    public void setCustomerOrderId(String customerOrderId) {
        this.customerOrderId = customerOrderId;
    }

    public String getOrderCreateDate() {
        return orderCreateDate;
    }

    public void setOrderCreateDate(String orderCreateDate) {
        this.orderCreateDate = orderCreateDate;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getCreatedByUser() {
        return createdByUser;
    }

    public void setCreatedByUser(String createdByUser) {
        this.createdByUser = createdByUser;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getLastModifiedDate() {
        return lastModifiedDate;
    }

    public void setLastModifiedDate(String lastModifiedDate) {
        this.lastModifiedDate = lastModifiedDate;
    }

    public List getTelephoneNumberList() {
        return telephoneNumberList;
    }

    public void setTelephoneNumberList(List telephoneNumberList) {
        this.telephoneNumberList = telephoneNumberList;
    }

    public String getProcessingStatus() {
        return processingStatus;
    }

    public void setProcessingStatus(String processingStatus) {
        this.processingStatus = processingStatus;
    }

    public List getErrors() {
        return errors;
    }

    public void setErrors(List errors) {
        this.errors = errors;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy