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 */
017
018package com.ning.billing.recurly.model;
019
020import com.fasterxml.jackson.annotation.JsonIgnore;
021import com.fasterxml.jackson.annotation.JsonSetter;
022
023import javax.xml.bind.annotation.XmlRootElement;
024import javax.xml.bind.annotation.XmlTransient;
025
026@XmlRootElement(name = "credit_payments")
027public class CreditPayments extends RecurlyObjects<CreditPayment> {
028
029    @XmlTransient
030    public static final String CREDIT_PAYMENTS_RESOURCE = "/credit_payments";
031
032    @XmlTransient
033    private static final String PROPERTY_NAME = "credit_payment";
034
035    @JsonSetter(value = PROPERTY_NAME)
036    @Override
037    public void setRecurlyObject(final CreditPayment value) {
038        super.setRecurlyObject(value);
039    }
040
041    @JsonIgnore
042    @Override
043    public CreditPayments getStart() {
044        return getStart(CreditPayments.class);
045    }
046
047    @JsonIgnore
048    @Override
049    public CreditPayments getNext() {
050        return getNext(CreditPayments.class);
051    }
052}