| 1 | /** |
| 2 | * Licensed to jclouds, Inc. (jclouds) under one or more |
| 3 | * contributor license agreements. See the NOTICE file |
| 4 | * distributed with this work for additional information |
| 5 | * regarding copyright ownership. jclouds licenses this file |
| 6 | * to you under the Apache License, Version 2.0 (the |
| 7 | * "License"); you may not use this file except in compliance |
| 8 | * with the License. You may obtain a copy of the License at |
| 9 | * |
| 10 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | * |
| 12 | * Unless required by applicable law or agreed to in writing, |
| 13 | * software distributed under the License is distributed on an |
| 14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | * KIND, either express or implied. See the License for the |
| 16 | * specific language governing permissions and limitations |
| 17 | * under the License. |
| 18 | */ |
| 19 | package org.jclouds.rimuhosting.miro.domain; |
| 20 | |
| 21 | import com.google.gson.annotations.SerializedName; |
| 22 | |
| 23 | import java.sql.Timestamp; |
| 24 | |
| 25 | /** |
| 26 | * Billing data. Need to make it inteface with jclouds. |
| 27 | * TODO: test |
| 28 | * |
| 29 | * @author Ivan Meredith |
| 30 | */ |
| 31 | public class BillingData { |
| 32 | @SerializedName("cancellation_date") |
| 33 | private Timestamp dateCancelled; |
| 34 | @SerializedName("monthly_recurring_fee") |
| 35 | private Double monthlyCharge; |
| 36 | @SerializedName("order_date") |
| 37 | private Timestamp dateOrdered; |
| 38 | @SerializedName("prepaid_until") |
| 39 | private Timestamp dataPrepaidUntil; |
| 40 | @SerializedName("suspended_date") |
| 41 | private Timestamp dateSuspended; |
| 42 | |
| 43 | public Timestamp getDateCancelled() { |
| 44 | return dateCancelled; |
| 45 | } |
| 46 | |
| 47 | public void setDateCancelled(Timestamp dateCancelled) { |
| 48 | this.dateCancelled = dateCancelled; |
| 49 | } |
| 50 | |
| 51 | public Double getMonthlyCharge() { |
| 52 | return monthlyCharge; |
| 53 | } |
| 54 | |
| 55 | public void setMonthlyCharge(Double monthlyCharge) { |
| 56 | this.monthlyCharge = monthlyCharge; |
| 57 | } |
| 58 | |
| 59 | public Timestamp getDateOrdered() { |
| 60 | return dateOrdered; |
| 61 | } |
| 62 | |
| 63 | public void setDateOrdered(Timestamp dateOrdered) { |
| 64 | this.dateOrdered = dateOrdered; |
| 65 | } |
| 66 | |
| 67 | public Timestamp getDataPrepaidUntil() { |
| 68 | return dataPrepaidUntil; |
| 69 | } |
| 70 | |
| 71 | public void setDataPrepaidUntil(Timestamp dataPrepaidUntil) { |
| 72 | this.dataPrepaidUntil = dataPrepaidUntil; |
| 73 | } |
| 74 | |
| 75 | public Timestamp getDateSuspended() { |
| 76 | return dateSuspended; |
| 77 | } |
| 78 | |
| 79 | public void setDateSuspended(Timestamp dateSuspended) { |
| 80 | this.dateSuspended = dateSuspended; |
| 81 | } |
| 82 | } |