View Javadoc
1   package org.oxerr.peatio.rest.dto;
2   
3   import java.math.BigDecimal;
4   import java.util.Date;
5   
6   import com.fasterxml.jackson.annotation.JsonFormat;
7   import com.fasterxml.jackson.annotation.JsonProperty;
8   
9   /**
10   * Deposit information.
11   */
12  public class Deposit extends BaseObject {
13  
14  	private final String currency;
15  	private final BigDecimal amount;
16  	private final BigDecimal fee;
17  	private final String txid;
18  	private final Date createdAt;
19  	private final int confirmations;
20  	private final Date doneAt;
21  	private final String state;
22  
23  	public Deposit(@JsonProperty("currency") String currency,
24  			@JsonProperty("amount") BigDecimal amount,
25  			@JsonProperty("fee") BigDecimal fee,
26  			@JsonProperty("txid") String txid,
27  			@JsonProperty("created_at")
28  			@JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ssXXX")
29  			Date createdAt,
30  			@JsonProperty("confirmations") int confirmations,
31  			@JsonProperty("done_at")
32  			@JsonFormat(pattern="yyyy-MM-dd'T'HH:mm:ssXXX")
33  			Date doneAt,
34  			@JsonProperty("state") String state) {
35  		this.currency = currency;
36  		this.amount = amount;
37  		this.fee = fee;
38  		this.txid = txid;
39  		this.createdAt = createdAt;
40  		this.confirmations = confirmations;
41  		this.doneAt = doneAt;
42  		this.state = state;
43  	}
44  
45  	public String getCurrency() {
46  		return currency;
47  	}
48  
49  	public BigDecimal getAmount() {
50  		return amount;
51  	}
52  
53  	public BigDecimal getFee() {
54  		return fee;
55  	}
56  
57  	public String getTxid() {
58  		return txid;
59  	}
60  
61  	public Date getCreatedAt() {
62  		return createdAt;
63  	}
64  
65  	public int getConfirmations() {
66  		return confirmations;
67  	}
68  
69  	public Date getDoneAt() {
70  		return doneAt;
71  	}
72  
73  	public String getState() {
74  		return state;
75  	}
76  
77  }