POST | /ext/powens/connection_synced |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
import com.google.gson.annotations.*;
import com.google.gson.reflect.*;
public class dtos
{
public static class PowensConnectionSyncRequest
{
public ConnectionRequest connection = null;
@DataMember(Name="push_type")
@SerializedName("push_type")
public String pushType = null;
@DataMember(Name="id_webhook_data")
@SerializedName("id_webhook_data")
public Integer idWebhookData = null;
public ConnectionRequest getConnection() { return connection; }
public PowensConnectionSyncRequest setConnection(ConnectionRequest value) { this.connection = value; return this; }
public String getPushType() { return pushType; }
public PowensConnectionSyncRequest setPushType(String value) { this.pushType = value; return this; }
public Integer getIdWebhookData() { return idWebhookData; }
public PowensConnectionSyncRequest setIdWebhookData(Integer value) { this.idWebhookData = value; return this; }
}
@DataContract
public static class ConnectionRequest
{
@DataMember(Name="id")
@SerializedName("id")
public Integer id = null;
@DataMember(Name="id_user")
@SerializedName("id_user")
public Long idUser = null;
@DataMember(Name="id_connector")
@SerializedName("id_connector")
public Integer idConnector = null;
@DataMember(Name="last_update")
@SerializedName("last_update")
public Date lastUpdate = null;
@DataMember(Name="created")
@SerializedName("created")
public Date created = null;
@DataMember(Name="active")
@SerializedName("active")
public Boolean active = null;
@DataMember(Name="last_push")
@SerializedName("last_push")
public Date lastPush = null;
@DataMember(Name="next_try")
@SerializedName("next_try")
public Date nextTry = null;
@DataMember(Name="connector")
@SerializedName("connector")
public ConnectorReq connector = null;
@DataMember(Name="accounts")
@SerializedName("accounts")
public ArrayList<PowensAccount> accounts = null;
@DataMember(Name="state")
@SerializedName("state")
public String state = null;
@DataMember(Name="error")
@SerializedName("error")
public String error = null;
@DataMember(Name="error_message")
@SerializedName("error_message")
public String errorMessage = null;
@DataMember(Name="expire")
@SerializedName("expire")
public Date expire = null;
@DataMember(Name="id_provider")
@SerializedName("id_provider")
public Integer idProvider = null;
@DataMember(Name="id_bank")
@SerializedName("id_bank")
public Integer idBank = null;
@DataMember(Name="bank")
@SerializedName("bank")
public ConnectorReq bank = null;
@DataMember(Name="connector_uuid")
@SerializedName("connector_uuid")
public String connectorUuid = null;
@DataMember(Name="informations")
@SerializedName("informations")
public Object informations = null;
public Integer getId() { return id; }
public ConnectionRequest setId(Integer value) { this.id = value; return this; }
public Long getIdUser() { return idUser; }
public ConnectionRequest setIdUser(Long value) { this.idUser = value; return this; }
public Integer getIdConnector() { return idConnector; }
public ConnectionRequest setIdConnector(Integer value) { this.idConnector = value; return this; }
public Date getLastUpdate() { return lastUpdate; }
public ConnectionRequest setLastUpdate(Date value) { this.lastUpdate = value; return this; }
public Date getCreated() { return created; }
public ConnectionRequest setCreated(Date value) { this.created = value; return this; }
public Boolean isActive() { return active; }
public ConnectionRequest setActive(Boolean value) { this.active = value; return this; }
public Date getLastPush() { return lastPush; }
public ConnectionRequest setLastPush(Date value) { this.lastPush = value; return this; }
public Date getNextTry() { return nextTry; }
public ConnectionRequest setNextTry(Date value) { this.nextTry = value; return this; }
public ConnectorReq getConnector() { return connector; }
public ConnectionRequest setConnector(ConnectorReq value) { this.connector = value; return this; }
public ArrayList<PowensAccount> getAccounts() { return accounts; }
public ConnectionRequest setAccounts(ArrayList<PowensAccount> value) { this.accounts = value; return this; }
public String getState() { return state; }
public ConnectionRequest setState(String value) { this.state = value; return this; }
public String getError() { return error; }
public ConnectionRequest setError(String value) { this.error = value; return this; }
public String getErrorMessage() { return errorMessage; }
public ConnectionRequest setErrorMessage(String value) { this.errorMessage = value; return this; }
public Date getExpire() { return expire; }
public ConnectionRequest setExpire(Date value) { this.expire = value; return this; }
public Integer getIdProvider() { return idProvider; }
public ConnectionRequest setIdProvider(Integer value) { this.idProvider = value; return this; }
public Integer getIdBank() { return idBank; }
public ConnectionRequest setIdBank(Integer value) { this.idBank = value; return this; }
public ConnectorReq getBank() { return bank; }
public ConnectionRequest setBank(ConnectorReq value) { this.bank = value; return this; }
public String getConnectorUuid() { return connectorUuid; }
public ConnectionRequest setConnectorUuid(String value) { this.connectorUuid = value; return this; }
public Object getInformations() { return informations; }
public ConnectionRequest setInformations(Object value) { this.informations = value; return this; }
}
@DataContract
public static class ConnectorReq
{
@DataMember(Name="id")
@SerializedName("id")
public Integer id = null;
@DataMember(Name="name")
@SerializedName("name")
public String name = null;
@DataMember(Name="hidden")
@SerializedName("hidden")
public Boolean hidden = null;
@DataMember(Name="charged")
@SerializedName("charged")
public Boolean charged = null;
@DataMember(Name="code")
@SerializedName("code")
public String code = null;
@DataMember(Name="beta")
@SerializedName("beta")
public Boolean beta = null;
@DataMember(Name="color")
@SerializedName("color")
public String color = null;
@DataMember(Name="slug")
@SerializedName("slug")
public String slug = null;
@DataMember(Name="sync_periodicity")
@SerializedName("sync_periodicity")
public BigDecimal syncPeriodicity = null;
@DataMember(Name="months_to_fetch")
@SerializedName("months_to_fetch")
public Integer monthsToFetch = null;
@DataMember(Name="siret")
@SerializedName("siret")
public String siret = null;
@DataMember(Name="uuid")
@SerializedName("uuid")
public String uuid = null;
@DataMember(Name="restricted")
@SerializedName("restricted")
public Boolean restricted = null;
@DataMember(Name="stability")
@SerializedName("stability")
public Stability stability = null;
@DataMember(Name="capabilities")
@SerializedName("capabilities")
public ArrayList<String> capabilities = null;
@DataMember(Name="available_auth_mechanisms")
@SerializedName("available_auth_mechanisms")
public ArrayList<AuthMechanism> availableAuthMechanisms = null;
@DataMember(Name="categories")
@SerializedName("categories")
public ArrayList<String> categories = null;
@DataMember(Name="auth_mechanism")
@SerializedName("auth_mechanism")
public AuthMechanism authMechanism = null;
@DataMember(Name="account_types")
@SerializedName("account_types")
public ArrayList<Object> accountTypes = null;
@DataMember(Name="account_usage")
@SerializedName("account_usage")
public ArrayList<Object> accountUsages = null;
@DataMember(Name="documents_type")
@SerializedName("documents_type")
public ArrayList<String> documentsType = null;
@DataMember(Name="products")
@SerializedName("products")
public ArrayList<Object> products = null;
public Integer getId() { return id; }
public ConnectorReq setId(Integer value) { this.id = value; return this; }
public String getName() { return name; }
public ConnectorReq setName(String value) { this.name = value; return this; }
public Boolean isHidden() { return hidden; }
public ConnectorReq setHidden(Boolean value) { this.hidden = value; return this; }
public Boolean isCharged() { return charged; }
public ConnectorReq setCharged(Boolean value) { this.charged = value; return this; }
public String getCode() { return code; }
public ConnectorReq setCode(String value) { this.code = value; return this; }
public Boolean isBeta() { return beta; }
public ConnectorReq setBeta(Boolean value) { this.beta = value; return this; }
public String getColor() { return color; }
public ConnectorReq setColor(String value) { this.color = value; return this; }
public String getSlug() { return slug; }
public ConnectorReq setSlug(String value) { this.slug = value; return this; }
public BigDecimal getSyncPeriodicity() { return syncPeriodicity; }
public ConnectorReq setSyncPeriodicity(BigDecimal value) { this.syncPeriodicity = value; return this; }
public Integer getMonthsToFetch() { return monthsToFetch; }
public ConnectorReq setMonthsToFetch(Integer value) { this.monthsToFetch = value; return this; }
public String getSiret() { return siret; }
public ConnectorReq setSiret(String value) { this.siret = value; return this; }
public String getUuid() { return uuid; }
public ConnectorReq setUuid(String value) { this.uuid = value; return this; }
public Boolean isRestricted() { return restricted; }
public ConnectorReq setRestricted(Boolean value) { this.restricted = value; return this; }
public Stability getStability() { return stability; }
public ConnectorReq setStability(Stability value) { this.stability = value; return this; }
public ArrayList<String> getCapabilities() { return capabilities; }
public ConnectorReq setCapabilities(ArrayList<String> value) { this.capabilities = value; return this; }
public ArrayList<AuthMechanism> getAvailableAuthMechanisms() { return availableAuthMechanisms; }
public ConnectorReq setAvailableAuthMechanisms(ArrayList<AuthMechanism> value) { this.availableAuthMechanisms = value; return this; }
public ArrayList<String> getCategories() { return categories; }
public ConnectorReq setCategories(ArrayList<String> value) { this.categories = value; return this; }
public AuthMechanism getAuthMechanism() { return authMechanism; }
public ConnectorReq setAuthMechanism(AuthMechanism value) { this.authMechanism = value; return this; }
public ArrayList<Object> getAccountTypes() { return accountTypes; }
public ConnectorReq setAccountTypes(ArrayList<Object> value) { this.accountTypes = value; return this; }
public ArrayList<Object> getAccountUsages() { return accountUsages; }
public ConnectorReq setAccountUsages(ArrayList<Object> value) { this.accountUsages = value; return this; }
public ArrayList<String> getDocumentsType() { return documentsType; }
public ConnectorReq setDocumentsType(ArrayList<String> value) { this.documentsType = value; return this; }
public ArrayList<Object> getProducts() { return products; }
public ConnectorReq setProducts(ArrayList<Object> value) { this.products = value; return this; }
}
public static class Stability
{
public String status = null;
public Date lastUpdate = null;
public String getStatus() { return status; }
public Stability setStatus(String value) { this.status = value; return this; }
public Date getLastUpdate() { return lastUpdate; }
public Stability setLastUpdate(Date value) { this.lastUpdate = value; return this; }
}
public static enum AuthMechanism
{
Credentials(1),
WebAuth(2);
private final int value;
AuthMechanism(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
@DataContract
public static class PowensAccount
{
@DataMember(Name="investments")
@SerializedName("investments")
public ArrayList<PowensInvestment> investments = null;
@DataMember(Name="id")
@SerializedName("id")
public Integer id = null;
@DataMember(Name="id_connection")
@SerializedName("id_connection")
public Integer idConnection = null;
@DataMember(Name="id_user")
@SerializedName("id_user")
public Integer idUser = null;
@DataMember(Name="id_source")
@SerializedName("id_source")
public Integer idSource = null;
@DataMember(Name="id_parent")
@SerializedName("id_parent")
public Integer idParent = null;
@DataMember(Name="number")
@SerializedName("number")
public String number = null;
@DataMember(Name="webid")
@SerializedName("webid")
public String webId = null;
@DataMember(Name="original_name")
@SerializedName("original_name")
public String originalName = null;
@DataMember(Name="balance")
@SerializedName("balance")
public BigDecimal balance = null;
@DataMember(Name="coming")
@SerializedName("coming")
public BigDecimal coming = null;
@DataMember(Name="display")
@SerializedName("display")
public Boolean display = null;
@DataMember(Name="last_update")
@SerializedName("last_update")
public Date lastUpdate = null;
@DataMember(Name="deleted")
@SerializedName("deleted")
public Date deleted = null;
@DataMember(Name="disabled")
@SerializedName("disabled")
public Date disabled = null;
@DataMember(Name="iban")
@SerializedName("iban")
public String iban = null;
@DataMember(Name="currency")
@SerializedName("currency")
public PowensCurrency currency = null;
@DataMember(Name="id_type")
@SerializedName("id_type")
public Integer idType = null;
@DataMember(Name="bookmarked")
@SerializedName("bookmarked")
public Integer bookmarked = null;
@DataMember(Name="name")
@SerializedName("name")
public String name = null;
@DataMember(Name="error")
@SerializedName("error")
public String error = null;
@DataMember(Name="usage")
@SerializedName("usage")
public AccountUsage usage = null;
@DataMember(Name="company_name")
@SerializedName("company_name")
public String companyName = null;
@DataMember(Name="opening_date")
@SerializedName("opening_date")
public Date openingDate = null;
@DataMember(Name="bic")
@SerializedName("bic")
public Object bic = null;
@DataMember(Name="coming_balance")
@SerializedName("coming_balance")
public Long comingBalances = null;
@DataMember(Name="formatted_balance")
@SerializedName("formatted_balance")
public String formattedBalance = null;
@DataMember(Name="type")
@SerializedName("type")
public String type = null;
@DataMember(Name="calculated")
@SerializedName("calculated")
public ArrayList<String> calculated = null;
@DataMember(Name="valuation")
@SerializedName("valuation")
public Double valuation = null;
@DataMember(Name="diff")
@SerializedName("diff")
public Double diff = null;
@DataMember(Name="diff_percent")
@SerializedName("diff_percent")
public Double diffPercent = null;
@DataMember(Name="prev_diff")
@SerializedName("prev_diff")
public Double prevDiff = null;
@DataMember(Name="prev_diff_percent")
@SerializedName("prev_diff_percent")
public Double prevDiffPercent = null;
@DataMember(Name="information")
@SerializedName("information")
public PowensInformation information = null;
@DataMember(Name="loan")
@SerializedName("loan")
public PowensLoan loan = null;
public ArrayList<PowensInvestment> getInvestments() { return investments; }
public PowensAccount setInvestments(ArrayList<PowensInvestment> value) { this.investments = value; return this; }
public Integer getId() { return id; }
public PowensAccount setId(Integer value) { this.id = value; return this; }
public Integer getIdConnection() { return idConnection; }
public PowensAccount setIdConnection(Integer value) { this.idConnection = value; return this; }
public Integer getIdUser() { return idUser; }
public PowensAccount setIdUser(Integer value) { this.idUser = value; return this; }
public Integer getIdSource() { return idSource; }
public PowensAccount setIdSource(Integer value) { this.idSource = value; return this; }
public Integer getIdParent() { return idParent; }
public PowensAccount setIdParent(Integer value) { this.idParent = value; return this; }
public String getNumber() { return number; }
public PowensAccount setNumber(String value) { this.number = value; return this; }
public String getWebId() { return webId; }
public PowensAccount setWebId(String value) { this.webId = value; return this; }
public String getOriginalName() { return originalName; }
public PowensAccount setOriginalName(String value) { this.originalName = value; return this; }
public BigDecimal getBalance() { return balance; }
public PowensAccount setBalance(BigDecimal value) { this.balance = value; return this; }
public BigDecimal getComing() { return coming; }
public PowensAccount setComing(BigDecimal value) { this.coming = value; return this; }
public Boolean isDisplay() { return display; }
public PowensAccount setDisplay(Boolean value) { this.display = value; return this; }
public Date getLastUpdate() { return lastUpdate; }
public PowensAccount setLastUpdate(Date value) { this.lastUpdate = value; return this; }
public Date getDeleted() { return deleted; }
public PowensAccount setDeleted(Date value) { this.deleted = value; return this; }
public Date getDisabled() { return disabled; }
public PowensAccount setDisabled(Date value) { this.disabled = value; return this; }
public String getIban() { return iban; }
public PowensAccount setIban(String value) { this.iban = value; return this; }
public PowensCurrency getCurrency() { return currency; }
public PowensAccount setCurrency(PowensCurrency value) { this.currency = value; return this; }
public Integer getIdType() { return idType; }
public PowensAccount setIdType(Integer value) { this.idType = value; return this; }
public Integer getBookmarked() { return bookmarked; }
public PowensAccount setBookmarked(Integer value) { this.bookmarked = value; return this; }
public String getName() { return name; }
public PowensAccount setName(String value) { this.name = value; return this; }
public String getError() { return error; }
public PowensAccount setError(String value) { this.error = value; return this; }
public AccountUsage getUsage() { return usage; }
public PowensAccount setUsage(AccountUsage value) { this.usage = value; return this; }
public String getCompanyName() { return companyName; }
public PowensAccount setCompanyName(String value) { this.companyName = value; return this; }
public Date getOpeningDate() { return openingDate; }
public PowensAccount setOpeningDate(Date value) { this.openingDate = value; return this; }
public Object getBic() { return bic; }
public PowensAccount setBic(Object value) { this.bic = value; return this; }
public Long getComingBalances() { return comingBalances; }
public PowensAccount setComingBalances(Long value) { this.comingBalances = value; return this; }
public String getFormattedBalance() { return formattedBalance; }
public PowensAccount setFormattedBalance(String value) { this.formattedBalance = value; return this; }
public String getType() { return type; }
public PowensAccount setType(String value) { this.type = value; return this; }
public ArrayList<String> getCalculated() { return calculated; }
public PowensAccount setCalculated(ArrayList<String> value) { this.calculated = value; return this; }
public Double getValuation() { return valuation; }
public PowensAccount setValuation(Double value) { this.valuation = value; return this; }
public Double getDiff() { return diff; }
public PowensAccount setDiff(Double value) { this.diff = value; return this; }
public Double getDiffPercent() { return diffPercent; }
public PowensAccount setDiffPercent(Double value) { this.diffPercent = value; return this; }
public Double getPrevDiff() { return prevDiff; }
public PowensAccount setPrevDiff(Double value) { this.prevDiff = value; return this; }
public Double getPrevDiffPercent() { return prevDiffPercent; }
public PowensAccount setPrevDiffPercent(Double value) { this.prevDiffPercent = value; return this; }
public PowensInformation getInformation() { return information; }
public PowensAccount setInformation(PowensInformation value) { this.information = value; return this; }
public PowensLoan getLoan() { return loan; }
public PowensAccount setLoan(PowensLoan value) { this.loan = value; return this; }
}
@DataContract
public static class PowensInvestment
{
@DataMember(Name="id")
@SerializedName("id")
public Integer id = null;
@DataMember(Name="id_account")
@SerializedName("id_account")
public Integer idAccount = null;
@DataMember(Name="label")
@SerializedName("label")
public String label = null;
@DataMember(Name="code")
@SerializedName("code")
public String code = null;
@DataMember(Name="code_type")
@SerializedName("code_type")
public String codeType = null;
@DataMember(Name="stock_symbol")
@SerializedName("stock_symbol")
public String stockSymbol = null;
@DataMember(Name="stock_market")
@SerializedName("stock_market")
public Object stockMarket = null;
@DataMember(Name="source")
@SerializedName("source")
public String source = null;
@DataMember(Name="description")
@SerializedName("description")
public String description = null;
@DataMember(Name="quantity")
@SerializedName("quantity")
public BigDecimal quantity = null;
@DataMember(Name="unitprice")
@SerializedName("unitprice")
public BigDecimal unitPrice = null;
@DataMember(Name="unitvalue")
@SerializedName("unitvalue")
public BigDecimal unitValue = null;
@DataMember(Name="valuation")
@SerializedName("valuation")
public BigDecimal valuation = null;
@DataMember(Name="diff")
@SerializedName("diff")
public BigDecimal diff = null;
@DataMember(Name="diff_percent")
@SerializedName("diff_percent")
public BigDecimal diffPercent = null;
@DataMember(Name="prev_diff")
@SerializedName("prev_diff")
public BigDecimal prevDiff = null;
@DataMember(Name="portfolio_share")
@SerializedName("portfolio_share")
public BigDecimal portfolioShare = null;
@DataMember(Name="vdate")
@SerializedName("vdate")
public Date vDate = null;
@DataMember(Name="prev_vdate")
@SerializedName("prev_vdate")
public Date prevVDate = null;
@DataMember(Name="id_security")
@SerializedName("id_security")
public Integer idSecurity = null;
@DataMember(Name="original_currency")
@SerializedName("original_currency")
public Currency originalCurrency = null;
@DataMember(Name="original_valuation")
@SerializedName("original_valuation")
public BigDecimal originalValuation = null;
@DataMember(Name="original_unitvalue")
@SerializedName("original_unitvalue")
public BigDecimal originalUnitValue = null;
@DataMember(Name="original_unitprice")
@SerializedName("original_unitprice")
public BigDecimal originalUnitPrice = null;
@DataMember(Name="original_diff")
@SerializedName("original_diff")
public BigDecimal originalDiff = null;
@DataMember(Name="last_update")
@SerializedName("last_update")
public Date lastUpdate = null;
@DataMember(Name="deleted")
@SerializedName("deleted")
public Date deleted = null;
@DataMember(Name="calculated")
@SerializedName("calculated")
public ArrayList<String> calculated = null;
@DataMember(Name="id_type")
@SerializedName("id_type")
public Integer idType = null;
public Integer getId() { return id; }
public PowensInvestment setId(Integer value) { this.id = value; return this; }
public Integer getIdAccount() { return idAccount; }
public PowensInvestment setIdAccount(Integer value) { this.idAccount = value; return this; }
public String getLabel() { return label; }
public PowensInvestment setLabel(String value) { this.label = value; return this; }
public String getCode() { return code; }
public PowensInvestment setCode(String value) { this.code = value; return this; }
public String getCodeType() { return codeType; }
public PowensInvestment setCodeType(String value) { this.codeType = value; return this; }
public String getStockSymbol() { return stockSymbol; }
public PowensInvestment setStockSymbol(String value) { this.stockSymbol = value; return this; }
public Object getStockMarket() { return stockMarket; }
public PowensInvestment setStockMarket(Object value) { this.stockMarket = value; return this; }
public String getSource() { return source; }
public PowensInvestment setSource(String value) { this.source = value; return this; }
public String getDescription() { return description; }
public PowensInvestment setDescription(String value) { this.description = value; return this; }
public BigDecimal getQuantity() { return quantity; }
public PowensInvestment setQuantity(BigDecimal value) { this.quantity = value; return this; }
public BigDecimal getUnitPrice() { return unitPrice; }
public PowensInvestment setUnitPrice(BigDecimal value) { this.unitPrice = value; return this; }
public BigDecimal getUnitValue() { return unitValue; }
public PowensInvestment setUnitValue(BigDecimal value) { this.unitValue = value; return this; }
public BigDecimal getValuation() { return valuation; }
public PowensInvestment setValuation(BigDecimal value) { this.valuation = value; return this; }
public BigDecimal getDiff() { return diff; }
public PowensInvestment setDiff(BigDecimal value) { this.diff = value; return this; }
public BigDecimal getDiffPercent() { return diffPercent; }
public PowensInvestment setDiffPercent(BigDecimal value) { this.diffPercent = value; return this; }
public BigDecimal getPrevDiff() { return prevDiff; }
public PowensInvestment setPrevDiff(BigDecimal value) { this.prevDiff = value; return this; }
public BigDecimal getPortfolioShare() { return portfolioShare; }
public PowensInvestment setPortfolioShare(BigDecimal value) { this.portfolioShare = value; return this; }
public Date getVDate() { return vDate; }
public PowensInvestment setVDate(Date value) { this.vDate = value; return this; }
public Date getPrevVDate() { return prevVDate; }
public PowensInvestment setPrevVDate(Date value) { this.prevVDate = value; return this; }
public Integer getIdSecurity() { return idSecurity; }
public PowensInvestment setIdSecurity(Integer value) { this.idSecurity = value; return this; }
public Currency getOriginalCurrency() { return originalCurrency; }
public PowensInvestment setOriginalCurrency(Currency value) { this.originalCurrency = value; return this; }
public BigDecimal getOriginalValuation() { return originalValuation; }
public PowensInvestment setOriginalValuation(BigDecimal value) { this.originalValuation = value; return this; }
public BigDecimal getOriginalUnitValue() { return originalUnitValue; }
public PowensInvestment setOriginalUnitValue(BigDecimal value) { this.originalUnitValue = value; return this; }
public BigDecimal getOriginalUnitPrice() { return originalUnitPrice; }
public PowensInvestment setOriginalUnitPrice(BigDecimal value) { this.originalUnitPrice = value; return this; }
public BigDecimal getOriginalDiff() { return originalDiff; }
public PowensInvestment setOriginalDiff(BigDecimal value) { this.originalDiff = value; return this; }
public Date getLastUpdate() { return lastUpdate; }
public PowensInvestment setLastUpdate(Date value) { this.lastUpdate = value; return this; }
public Date getDeleted() { return deleted; }
public PowensInvestment setDeleted(Date value) { this.deleted = value; return this; }
public ArrayList<String> getCalculated() { return calculated; }
public PowensInvestment setCalculated(ArrayList<String> value) { this.calculated = value; return this; }
public Integer getIdType() { return idType; }
public PowensInvestment setIdType(Integer value) { this.idType = value; return this; }
}
public static class Currency
{
public String id = null;
public String name = null;
public String symbol = null;
public Boolean crypto = null;
public Integer precision = null;
public Boolean prefix = null;
public Object marketcap = null;
public Date datetime = null;
public String getId() { return id; }
public Currency setId(String value) { this.id = value; return this; }
public String getName() { return name; }
public Currency setName(String value) { this.name = value; return this; }
public String getSymbol() { return symbol; }
public Currency setSymbol(String value) { this.symbol = value; return this; }
public Boolean isCrypto() { return crypto; }
public Currency setCrypto(Boolean value) { this.crypto = value; return this; }
public Integer getPrecision() { return precision; }
public Currency setPrecision(Integer value) { this.precision = value; return this; }
public Boolean isPrefix() { return prefix; }
public Currency setPrefix(Boolean value) { this.prefix = value; return this; }
public Object getMarketcap() { return marketcap; }
public Currency setMarketcap(Object value) { this.marketcap = value; return this; }
public Date getDatetime() { return datetime; }
public Currency setDatetime(Date value) { this.datetime = value; return this; }
}
@DataContract
public static class PowensCurrency
{
@DataMember(Name="id")
@SerializedName("id")
public String id = null;
@DataMember(Name="name")
@SerializedName("name")
public String name = null;
@DataMember(Name="symbol")
@SerializedName("symbol")
public String symbol = null;
@DataMember(Name="crypto")
@SerializedName("crypto")
public Boolean crypto = null;
@DataMember(Name="precision")
@SerializedName("precision")
public Integer precision = null;
@DataMember(Name="prefix")
@SerializedName("prefix")
public Boolean prefix = null;
@DataMember(Name="marketcap")
@SerializedName("marketcap")
public Object marketcap = null;
@DataMember(Name="datetime")
@SerializedName("datetime")
public Date datetime = null;
public String getId() { return id; }
public PowensCurrency setId(String value) { this.id = value; return this; }
public String getName() { return name; }
public PowensCurrency setName(String value) { this.name = value; return this; }
public String getSymbol() { return symbol; }
public PowensCurrency setSymbol(String value) { this.symbol = value; return this; }
public Boolean isCrypto() { return crypto; }
public PowensCurrency setCrypto(Boolean value) { this.crypto = value; return this; }
public Integer getPrecision() { return precision; }
public PowensCurrency setPrecision(Integer value) { this.precision = value; return this; }
public Boolean isPrefix() { return prefix; }
public PowensCurrency setPrefix(Boolean value) { this.prefix = value; return this; }
public Object getMarketcap() { return marketcap; }
public PowensCurrency setMarketcap(Object value) { this.marketcap = value; return this; }
public Date getDatetime() { return datetime; }
public PowensCurrency setDatetime(Date value) { this.datetime = value; return this; }
}
public static enum AccountUsage
{
Priv(1),
Orga(2);
private final int value;
AccountUsage(final int intValue) { value = intValue; }
public int getValue() { return value; }
}
@DataContract
public static class PowensInformation
{
@DataMember(Name="version")
@SerializedName("version")
public String version = null;
@DataMember(Name="provider_type")
@SerializedName("provider_type")
public String providerType = null;
public String getVersion() { return version; }
public PowensInformation setVersion(String value) { this.version = value; return this; }
public String getProviderType() { return providerType; }
public PowensInformation setProviderType(String value) { this.providerType = value; return this; }
}
@DataContract
public static class PowensLoan
{
@DataMember(Name="total_amount")
@SerializedName("total_amount")
public BigDecimal totalAmount = null;
@DataMember(Name="available_amount")
@SerializedName("available_amount")
public BigDecimal availableAmount = null;
@DataMember(Name="used_amount")
@SerializedName("used_amount")
public BigDecimal usedAmount = null;
@DataMember(Name="subscription_date")
@SerializedName("subscription_date")
public Date subscriptionDate = null;
@DataMember(Name="maturity_date")
@SerializedName("maturity_date")
public Date maturityDate = null;
@DataMember(Name="next_payment_amount")
@SerializedName("next_payment_amount")
public BigDecimal nextPaymentAmount = null;
@DataMember(Name="next_payment_date")
@SerializedName("next_payment_date")
public Date nextPaymentDate = null;
@DataMember(Name="rate")
@SerializedName("rate")
public BigDecimal rate = null;
@DataMember(Name="nb_payments_left")
@SerializedName("nb_payments_left")
public Integer nbPaymentsLeft = null;
@DataMember(Name="nb_payments_done")
@SerializedName("nb_payments_done")
public Integer nbPaymentsDone = null;
@DataMember(Name="nb_payments_total")
@SerializedName("nb_payments_total")
public Integer nbPaymentsTotal = null;
@DataMember(Name="last_payment_amount")
@SerializedName("last_payment_amount")
public BigDecimal lastPaymentAmount = null;
@DataMember(Name="last_payment_date")
@SerializedName("last_payment_date")
public Date lastPaymentDate = null;
@DataMember(Name="account_label")
@SerializedName("account_label")
public String accountLabel = null;
@DataMember(Name="insurance_label")
@SerializedName("insurance_label")
public String insuranceLabel = null;
@DataMember(Name="insurance_amount")
@SerializedName("insurance_amount")
public BigDecimal insuranceAmount = null;
@DataMember(Name="insurance_rate")
@SerializedName("insurance_rate")
public BigDecimal insuranceRate = null;
@DataMember(Name="duration")
@SerializedName("duration")
public Integer duration = null;
@DataMember(Name="type")
@SerializedName("type")
public String type = null;
public BigDecimal getTotalAmount() { return totalAmount; }
public PowensLoan setTotalAmount(BigDecimal value) { this.totalAmount = value; return this; }
public BigDecimal getAvailableAmount() { return availableAmount; }
public PowensLoan setAvailableAmount(BigDecimal value) { this.availableAmount = value; return this; }
public BigDecimal getUsedAmount() { return usedAmount; }
public PowensLoan setUsedAmount(BigDecimal value) { this.usedAmount = value; return this; }
public Date getSubscriptionDate() { return subscriptionDate; }
public PowensLoan setSubscriptionDate(Date value) { this.subscriptionDate = value; return this; }
public Date getMaturityDate() { return maturityDate; }
public PowensLoan setMaturityDate(Date value) { this.maturityDate = value; return this; }
public BigDecimal getNextPaymentAmount() { return nextPaymentAmount; }
public PowensLoan setNextPaymentAmount(BigDecimal value) { this.nextPaymentAmount = value; return this; }
public Date getNextPaymentDate() { return nextPaymentDate; }
public PowensLoan setNextPaymentDate(Date value) { this.nextPaymentDate = value; return this; }
public BigDecimal getRate() { return rate; }
public PowensLoan setRate(BigDecimal value) { this.rate = value; return this; }
public Integer getNbPaymentsLeft() { return nbPaymentsLeft; }
public PowensLoan setNbPaymentsLeft(Integer value) { this.nbPaymentsLeft = value; return this; }
public Integer getNbPaymentsDone() { return nbPaymentsDone; }
public PowensLoan setNbPaymentsDone(Integer value) { this.nbPaymentsDone = value; return this; }
public Integer getNbPaymentsTotal() { return nbPaymentsTotal; }
public PowensLoan setNbPaymentsTotal(Integer value) { this.nbPaymentsTotal = value; return this; }
public BigDecimal getLastPaymentAmount() { return lastPaymentAmount; }
public PowensLoan setLastPaymentAmount(BigDecimal value) { this.lastPaymentAmount = value; return this; }
public Date getLastPaymentDate() { return lastPaymentDate; }
public PowensLoan setLastPaymentDate(Date value) { this.lastPaymentDate = value; return this; }
public String getAccountLabel() { return accountLabel; }
public PowensLoan setAccountLabel(String value) { this.accountLabel = value; return this; }
public String getInsuranceLabel() { return insuranceLabel; }
public PowensLoan setInsuranceLabel(String value) { this.insuranceLabel = value; return this; }
public BigDecimal getInsuranceAmount() { return insuranceAmount; }
public PowensLoan setInsuranceAmount(BigDecimal value) { this.insuranceAmount = value; return this; }
public BigDecimal getInsuranceRate() { return insuranceRate; }
public PowensLoan setInsuranceRate(BigDecimal value) { this.insuranceRate = value; return this; }
public Integer getDuration() { return duration; }
public PowensLoan setDuration(Integer value) { this.duration = value; return this; }
public String getType() { return type; }
public PowensLoan setType(String value) { this.type = value; return this; }
}
}
Java PowensConnectionSyncRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ext/powens/connection_synced HTTP/1.1
Host: hcbtas-q-albamfs-api.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"connection":{"id":0,"id_user":0,"id_connector":0,"last_update":"0001-01-01T00:00:00.0000000","created":"0001-01-01T00:00:00.0000000","active":false,"last_push":"0001-01-01T00:00:00.0000000","next_try":"0001-01-01T00:00:00.0000000","connector":{"id":0,"name":"String","hidden":false,"charged":false,"code":"String","beta":false,"color":"String","slug":"String","sync_periodicity":0,"months_to_fetch":0,"siret":"String","uuid":"String","restricted":false,"stability":{"status":"String","lastUpdate":"0001-01-01T00:00:00.0000000"},"capabilities":["String"],"available_auth_mechanisms":["credentials"],"categories":["String"],"auth_mechanism":"credentials","account_types":[{}],"account_usage":[{}],"documents_type":["String"],"products":[{}]},"accounts":[{"investments":[{"id":0,"id_account":0,"label":"String","code":"String","code_type":"String","stock_symbol":"String","stock_market":{},"source":"String","description":"String","quantity":0,"unitprice":0,"unitvalue":0,"valuation":0,"diff":0,"diff_percent":0,"prev_diff":0,"portfolio_share":0,"vdate":"0001-01-01T00:00:00.0000000","prev_vdate":"0001-01-01T00:00:00.0000000","id_security":0,"original_currency":{"id":"String","name":"String","symbol":"String","crypto":false,"precision":0,"prefix":false,"marketcap":{},"datetime":"0001-01-01T00:00:00.0000000"},"original_valuation":0,"original_unitvalue":0,"original_unitprice":0,"original_diff":0,"last_update":"0001-01-01T00:00:00.0000000","deleted":"0001-01-01T00:00:00.0000000","calculated":["String"],"id_type":0}],"id":0,"id_connection":0,"id_user":0,"id_source":0,"id_parent":0,"number":"String","webid":"String","original_name":"String","balance":0,"coming":0,"display":false,"last_update":"0001-01-01T00:00:00.0000000","deleted":"0001-01-01T00:00:00.0000000","disabled":"0001-01-01T00:00:00.0000000","iban":"String","currency":{"id":"String","name":"String","symbol":"String","crypto":false,"precision":0,"prefix":false,"marketcap":{},"datetime":"0001-01-01T00:00:00.0000000"},"id_type":0,"bookmarked":0,"name":"String","error":"String","usage":"0","company_name":"String","opening_date":"0001-01-01T00:00:00.0000000","bic":{},"coming_balance":0,"formatted_balance":"String","type":"String","calculated":["String"],"valuation":0,"diff":0,"diff_percent":0,"prev_diff":0,"prev_diff_percent":0,"information":{"version":"String","provider_type":"String"},"loan":{"total_amount":0,"available_amount":0,"used_amount":0,"subscription_date":"0001-01-01T00:00:00.0000000","maturity_date":"0001-01-01T00:00:00.0000000","next_payment_amount":0,"next_payment_date":"0001-01-01T00:00:00.0000000","rate":0,"nb_payments_left":0,"nb_payments_done":0,"nb_payments_total":0,"last_payment_amount":0,"last_payment_date":"0001-01-01T00:00:00.0000000","account_label":"String","insurance_label":"String","insurance_amount":0,"insurance_rate":0,"duration":0,"type":"String"}}],"state":"String","error":"String","error_message":"String","expire":"0001-01-01T00:00:00.0000000","id_provider":0,"id_bank":0,"bank":{"id":0,"name":"String","hidden":false,"charged":false,"code":"String","beta":false,"color":"String","slug":"String","sync_periodicity":0,"months_to_fetch":0,"siret":"String","uuid":"String","restricted":false,"stability":{"status":"String","lastUpdate":"0001-01-01T00:00:00.0000000"},"capabilities":["String"],"available_auth_mechanisms":["credentials"],"categories":["String"],"auth_mechanism":"credentials","account_types":[{}],"account_usage":[{}],"documents_type":["String"],"products":[{}]},"connector_uuid":"String","informations":{}},"push_type":"String","id_webhook_data":0}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"version":{"major":0,"minor":0,"build":-1,"revision":-1,"majorRevision":-1,"minorRevision":-1},"content":{"__type":"System.Net.Http.EmptyContent, System.Net.Http","headers":[]},"statusCode":"Continue","reasonPhrase":"String","headers":[],"trailingHeaders":[],"requestMessage":{"version":{"major":0,"minor":0,"build":-1,"revision":-1,"majorRevision":-1,"minorRevision":-1},"versionPolicy":"RequestVersionOrLower","method":{"method":"GET"},"headers":[],"properties":{},"options":{}},"isSuccessStatusCode":false}