// Copyright 2016 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.api.ads.adwords.jaxws.v201609.billing;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for CustomerOrderLineError.Reason.
*
* <p>The following schema fragment specifies the expected content contained within this class.
* <p>
* <pre>
* <simpleType name="CustomerOrderLineError.Reason">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="INVALID_ORDER_LINE_ID"/>
* <enumeration value="END_DATE_BEFORE_START_DATE"/>
* <enumeration value="NEGATIVE_SPEND"/>
* <enumeration value="CREATE_IN_PAST"/>
* <enumeration value="ALREADY_STARTED"/>
* <enumeration value="ALREADY_SPENT"/>
* <enumeration value="FINISHED_IN_THE_PAST"/>
* <enumeration value="CANCEL_ACTIVE"/>
* <enumeration value="OVERLAP_DATE_RANGE"/>
* <enumeration value="COS_CHANGE"/>
* <enumeration value="NON_ADWORDS"/>
* <enumeration value="START_DATE_AFTER_ACTUAL"/>
* <enumeration value="END_DATE_PAST_MAX"/>
* <enumeration value="PARENT_IS_SELF"/>
* <enumeration value="CANNOT_CANCEL_NEW"/>
* <enumeration value="CANNOT_CANCEL_STARTED"/>
* <enumeration value="CANNOT_PROMOTE_NON_PENDING_ORDERLINE"/>
* <enumeration value="UPDATE_ORDERLINE_WILL_SHIFT_CURRENT"/>
* <enumeration value="ORDERLINE_BEING_MODIFIED_IS_NOT_NORMAL_OR_PENDING"/>
* <enumeration value="INVALID_STATUS_CHANGE"/>
* <enumeration value="MORE_THAN_ONE_OPERATION_NOT_PERMITTED"/>
* <enumeration value="INVALID_TIMEZONE_IN_DATE_RANGES"/>
* <enumeration value="UNKNOWN"/>
* </restriction>
* </simpleType>
* </pre>
*
*/
@XmlType(name = "CustomerOrderLineError.Reason")
@XmlEnum
public enum CustomerOrderLineErrorReason {
/**
*
* Order Line Id does not exist.
*
*
*/
INVALID_ORDER_LINE_ID,
/**
*
* End date must be later than start date
*
*
*/
END_DATE_BEFORE_START_DATE,
/**
*
* Spending limit must be positive
*
*
*/
NEGATIVE_SPEND,
/**
*
* Cannot create order line with start date in the past
*
*
*/
CREATE_IN_PAST,
/**
*
* Cannot change start date after the order line has started
*
*
*/
ALREADY_STARTED,
/**
*
* Cannot set spending limit below what has already been spent
*
*
*/
ALREADY_SPENT,
/**
*
* Cannot move end date into the past
*
*
*/
FINISHED_IN_THE_PAST,
/**
*
* Cannot cancel active order line
*
*
*/
CANCEL_ACTIVE,
/**
*
* Cannot make overlapping order lines.
*
*
*/
OVERLAP_DATE_RANGE,
/**
*
* Cannot make a COS order line non-COS.
*
*
*/
COS_CHANGE,
/**
*
* Cannot create an order line on a non-adwords account
*
*
*/
NON_ADWORDS,
/**
*
* Cannot set contract start date to be after actual start date
*
*
*/
START_DATE_AFTER_ACTUAL,
/**
*
* Cannot set contract start date to be after actual start date
*
*
*/
END_DATE_PAST_MAX,
/**
*
* only cancelled order lines may have themselves as parent
*
*
*/
PARENT_IS_SELF,
/**
*
* Cannot cancel new order line
*
*
*/
CANNOT_CANCEL_NEW,
/**
*
* Cannot cancel started order line
*
*
*/
CANNOT_CANCEL_STARTED,
/**
*
* Cannot promote an order line that is not pending.
*
*
*/
CANNOT_PROMOTE_NON_PENDING_ORDERLINE,
/**
*
* Updating order line will shift current order line.
*
*
*/
UPDATE_ORDERLINE_WILL_SHIFT_CURRENT,
/**
*
* Only Order lines in normal or pending state can be modified.
*
*
*/
ORDERLINE_BEING_MODIFIED_IS_NOT_NORMAL_OR_PENDING,
/**
*
* Invalid Status Change by client.
*
*
*/
INVALID_STATUS_CHANGE,
/**
*
* More than one operation not permitted per call.
*
*
*/
MORE_THAN_ONE_OPERATION_NOT_PERMITTED,
/**
*
* StartDate and EndDate should pass in the customer's account timeZone.
*
*
*/
INVALID_TIMEZONE_IN_DATE_RANGES,
UNKNOWN;
public String value() {
return name();
}
public static CustomerOrderLineErrorReason fromValue(String v) {
return valueOf(v);
}
}