001/*
002 * Copyright 2010-2014 Ning, Inc.
003 * Copyright 2014-2015 The Billing Project, LLC
004 *
005 * The Billing Project licenses this file to you under the Apache License, version 2.0
006 * (the "License"); you may not use this file except in compliance with the
007 * License.  You may obtain a copy of the License at:
008 *
009 *    http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
013 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
014 * License for the specific language governing permissions and limitations
015 * under the License.
016 */
017package com.ning.billing.recurly.model;
018
019// see Invoice pagination: https://dev.recurly.com/docs/list-invoices
020public enum InvoiceState {
021    OPEN("open"),
022    FAILED("failed"),
023    COLLECTED("collected"),
024    PAST_DUE("past_due"),
025    PENDING("pending"),
026    PAID("paid"),
027    CLOSED("closed"),
028    VOIDED("voided"),
029    PROCESSING("processing");
030
031
032    private final String type;
033
034    private InvoiceState(final String type) {
035        this.type = type;
036    }
037
038    public String getType() {
039        return type;
040    }
041}