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

com.bandwidth.iris.sdk.model.DisconnectTelephoneNumberOrder 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.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

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

    @XmlElement(name = "Name")
    private String name;

    @XmlElement(name = "CustomerOrderId")
    private String customerOrderid;

    @XmlElement(name = "DisconnectTelephoneNumberOrderType")
    private DisconnectTelephoneNumberOrderType disconnectTelephoneNumberOrderType;

    public static DisconnectTelephoneNumberOrderResponse create(IrisClient client,
            DisconnectTelephoneNumberOrder disconnectTelephoneNumberOrder)
            throws Exception {
        return client.post(client.buildAccountModelUri(
                        new String[] { IrisPath.DISCONNECTS_URI_PATH }), disconnectTelephoneNumberOrder,
                DisconnectTelephoneNumberOrderResponse.class);
    }

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

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCustomerOrderid() {
        return customerOrderid;
    }

    public void setCustomerOrderid(String customerOrderid) {
        this.customerOrderid = customerOrderid;
    }

    public DisconnectTelephoneNumberOrderType getDisconnectTelephoneNumberOrderType() {
        return disconnectTelephoneNumberOrderType;
    }

    public void setDisconnectTelephoneNumberOrderType(DisconnectTelephoneNumberOrderType
            disconnectTelephoneNumberOrderType) {
        this.disconnectTelephoneNumberOrderType = disconnectTelephoneNumberOrderType;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy