private CoinbaseCache( @JsonProperty("notes_present") final boolean notesPresent, @JsonProperty("category") final CoinbaseAccountChangeCategory category, @JsonProperty("other_user") final CoinbaseUserInfo otherUser) { this.notesPresent = notesPresent; this.category = category; this.otherUser = new CoinbaseUser(otherUser); }
private CoinbaseAccountChanges( @JsonProperty("current_user") final CoinbaseUserInfo currentUser, @JsonProperty("balance") final CoinbaseMoney balance, @JsonProperty("account_changes") final List<CoinbaseAccountChange> accountChanges, @JsonProperty("total_count") final int totalCount, @JsonProperty("num_pages") final int numPages, @JsonProperty("current_page") final int currentPage) { super(totalCount, numPages, currentPage); this.currentUser = new CoinbaseUser(currentUser); this.balance = balance; this.accountChanges = accountChanges; }
private CoinbaseTransactions( @JsonProperty("current_user") final CoinbaseUserInfo currentUser, @JsonProperty("balance") final CoinbaseMoney balance, @JsonProperty("transactions") final List<CoinbaseTransaction> transactions, @JsonProperty("total_count") final int totalCount, @JsonProperty("num_pages") final int numPages, @JsonProperty("current_page") final int currentPage) { super(totalCount, numPages, currentPage); this.currentUser = new CoinbaseUser(currentUser); this.balance = balance; this.transactions = transactions; }
private CoinbaseTransactionInfoResult( @JsonProperty("id") final String id, @JsonProperty("created_at") @JsonDeserialize(using = ISO8601DateDeserializer.class) final Date createdAt, @JsonProperty("amount") final CoinbaseMoney amount, @JsonProperty("request") final boolean request, @JsonProperty("status") final CoinbaseTransactionStatus status, @JsonProperty("sender") final CoinbaseUserInfo sender, @JsonProperty("recipient") final CoinbaseUserInfo recipient, @JsonProperty("recipient_address") final String recipientAddress, @JsonProperty("notes") final String notes, @JsonProperty("hsh") final String transactionHash, @JsonProperty("idem") final String idempotencyKey) { this.id = id; this.createdAt = createdAt; this.amount = amount; this.request = request; this.status = status; this.sender = new CoinbaseUser(sender); this.recipient = new CoinbaseUser(recipient); this.recipientAddress = recipientAddress; this.notes = notes; this.transactionHash = transactionHash; this.idempotencyKey = idempotencyKey; }
public static CoinbaseUser createCoinbaseNewUserWithReferrerId( String email, final String password, final String referrerId) { return new CoinbaseUser(new CoinbaseUserInfo(email, password, referrerId)); }
public static CoinbaseUser createNewCoinbaseUser(String email, final String password) { return new CoinbaseUser(new CoinbaseUserInfo(email, password, null)); }
private CoinbaseCache( @JsonProperty("notes_present") final boolean notesPresent, @JsonProperty("category") final CoinbaseAccountChangeCategory category, @JsonProperty("other_user") final CoinbaseUserInfo otherUser) { this.notesPresent = notesPresent; this.category = category; this.otherUser = new CoinbaseUser(otherUser); }
private CoinbaseTransactions( @JsonProperty("current_user") final CoinbaseUserInfo currentUser, @JsonProperty("balance") final CoinbaseMoney balance, @JsonProperty("transactions") final List<CoinbaseTransaction> transactions, @JsonProperty("total_count") final int totalCount, @JsonProperty("num_pages") final int numPages, @JsonProperty("current_page") final int currentPage) { super(totalCount, numPages, currentPage); this.currentUser = new CoinbaseUser(currentUser); this.balance = balance; this.transactions = transactions; }
private CoinbaseAccountChanges( @JsonProperty("current_user") final CoinbaseUserInfo currentUser, @JsonProperty("balance") final CoinbaseMoney balance, @JsonProperty("account_changes") final List<CoinbaseAccountChange> accountChanges, @JsonProperty("total_count") final int totalCount, @JsonProperty("num_pages") final int numPages, @JsonProperty("current_page") final int currentPage) { super(totalCount, numPages, currentPage); this.currentUser = new CoinbaseUser(currentUser); this.balance = balance; this.accountChanges = accountChanges; }
private CoinbaseTransactionInfoResult( @JsonProperty("id") final String id, @JsonProperty("created_at") @JsonDeserialize(using = ISO8601DateDeserializer.class) final Date createdAt, @JsonProperty("amount") final CoinbaseMoney amount, @JsonProperty("request") final boolean request, @JsonProperty("status") final CoinbaseTransactionStatus status, @JsonProperty("sender") final CoinbaseUserInfo sender, @JsonProperty("recipient") final CoinbaseUserInfo recipient, @JsonProperty("recipient_address") final String recipientAddress, @JsonProperty("notes") final String notes, @JsonProperty("hsh") final String transactionHash, @JsonProperty("idem") final String idempotencyKey) { this.id = id; this.createdAt = createdAt; this.amount = amount; this.request = request; this.status = status; this.sender = new CoinbaseUser(sender); this.recipient = new CoinbaseUser(recipient); this.recipientAddress = recipientAddress; this.notes = notes; this.transactionHash = transactionHash; this.idempotencyKey = idempotencyKey; }
public static CoinbaseUser createCoinbaseNewUserWithReferrerId( String email, final String password, final String referrerId) { return new CoinbaseUser(new CoinbaseUserInfo(email, password, referrerId)); }
public static CoinbaseUser createNewCoinbaseUser(String email, final String password) { return new CoinbaseUser(new CoinbaseUserInfo(email, password, null)); }