package com.cyosp.mpa.api.rest.homebank.v1dot2.model;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by CYOSP on 2017-07-23.
 */
@Getter
@Setter
@XStreamAlias(value = "account")
public class Account {

    @XStreamAsAttribute
    @XStreamAlias("name")
    private String name;

    @XStreamAsAttribute
    @XStreamAlias("key")
    private int key;
}

package com.cyosp.mpa.api.rest.homebank.v1dot2.model;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * Created by CYOSP on 2017-07-23.
 */
@Getter
@Setter
public class Account {

    @XStreamAsAttribute
    @XStreamAlias("key")
    private int key;

    @XStreamAsAttribute
    @XStreamAlias("flags")
    private int flags;

    @XStreamAsAttribute
    @XStreamAlias("pos")
    private int position;

    @XStreamAsAttribute
    @XStreamAlias("type")
    private int type;

    @XStreamAsAttribute
    @XStreamAlias("curr")
    private int currencyRef;

    @XStreamAsAttribute
    @XStreamAlias("name")
    private String name;

    @XStreamAsAttribute
    @XStreamAlias("initial")
    private BigDecimal initialBalance;

    @XStreamAsAttribute
    @XStreamAlias("minimum")
    private BigDecimal minimumBalance;

    @XStreamAsAttribute
    @XStreamAlias("cheque1")
    private long cheque1;

    @XStreamAsAttribute
    @XStreamAlias("cheque2")
    private long cheque2;
}

Complete account tag loading