Skip to content

Commit

Permalink
Release 3.3.4 (#99)
Browse files Browse the repository at this point in the history
* Add symbol to dividends

* Update README & Changelog

* Update version to 3.3.4

* Fix javadoc plugin
  • Loading branch information
WojciechZankowski authored Aug 27, 2020
1 parent 940e217 commit beae72d
Show file tree
Hide file tree
Showing 15 changed files with 72 additions and 42 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log
All notable changes to this project will be documented in this file.

## [3.3.4] - 2020-08-27

### Added

- Added support to no UTP SSE quotes [[#97](https://github.com/WojciechZankowski/iextrading4j/pull/97)] [@lucasbaizer2](https://github.com/lucasbaizer2)
- Added ```symbol``` to Dividens

## [3.3.3] - 2020-06-01

### Changed
Expand Down Expand Up @@ -370,4 +377,5 @@ All notable changes to this project will be documented in this file.
[3.3.0]: https://github.com/WojciechZankowski/iextrading4j/compare/IT4J_RELEASE_3_2_8...IT4J_RELEASE_3_3_0
[3.3.1]: https://github.com/WojciechZankowski/iextrading4j/compare/IT4J_RELEASE_3_3_0...IT4J_RELEASE_3_3_1
[3.3.2]: https://github.com/WojciechZankowski/iextrading4j/compare/IT4J_RELEASE_3_3_1...IT4J_RELEASE_3_3_2
[3.3.3]: https://github.com/WojciechZankowski/iextrading4j/compare/IT4J_RELEASE_3_3_2...IT4J_RELEASE_3_3_3
[3.3.3]: https://github.com/WojciechZankowski/iextrading4j/compare/IT4J_RELEASE_3_3_2...IT4J_RELEASE_3_3_3
[3.3.3]: https://github.com/WojciechZankowski/iextrading4j/compare/IT4J_RELEASE_3_3_3...IT4J_RELEASE_3_3_4
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ Maven:
<dependency>
<groupId>pl.zankowski</groupId>
<artifactId>iextrading4j-all</artifactId>
<version>3.3.3</version>
<version>3.3.4</version>
</dependency>
```

Gradle:

```
dependencies {
compile 'pl.zankowski:iextrading4j-all:3.3.3'
compile 'pl.zankowski:iextrading4j-all:3.3.4'
}
```

Library is up to:

* IEX Trading API version [1.24] - 09.11.2018
* IEX Cloud API version [1.0] - 03.11.2019
* IEX Cloud API version [1.0] - 11.08.2020

Supported versions: Java SE 8, Java SE 9, Java SE 10, Java SE 11, Java SE 12

Expand Down
2 changes: 1 addition & 1 deletion iextrading4j-acceptance/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>iextrading4j</artifactId>
<groupId>pl.zankowski</groupId>
<version>3.3.3</version>
<version>3.3.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package pl.zankowski.iextrading4j.test.acceptance.v1;

import org.junit.Ignore;
import org.junit.Test;
import pl.zankowski.iextrading4j.api.alternative.CeoCompensation;
import pl.zankowski.iextrading4j.api.alternative.CryptoPrice;
Expand Down Expand Up @@ -53,6 +54,7 @@ public void cryptoBookTest() {
assertThat(book).isNotNull();
}

@Ignore("Message received from IEX Trading: The requested data requires permission to access.")
@Test
public void dailySentimentTest() {
final Sentiment result = cloudClient.executeRequest(new DailySentimentRequestBuilder()
Expand All @@ -62,6 +64,7 @@ public void dailySentimentTest() {
assertThat(result).isNotNull();
}

@Ignore("Message received from IEX Trading: The requested data requires permission to access.")
@Test
public void manualDailySentimentTest() {
final List<Sentiment> result = cloudClient.executeRequest(new SentimentRequestBuilder()
Expand All @@ -72,6 +75,7 @@ public void manualDailySentimentTest() {
assertThat(result).isNotNull();
}

@Ignore("Message received from IEX Trading: The requested data requires permission to access.")
@Test
public void minuteSentimentTest() {
final List<Sentiment> result = cloudClient.executeRequest(new SentimentRequestBuilder()
Expand Down
2 changes: 1 addition & 1 deletion iextrading4j-all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>iextrading4j</artifactId>
<groupId>pl.zankowski</groupId>
<version>3.3.3</version>
<version>3.3.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion iextrading4j-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>iextrading4j</artifactId>
<groupId>pl.zankowski</groupId>
<version>3.3.3</version>
<version>3.3.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.google.common.base.MoreObjects;
import com.google.common.base.Objects;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Objects;
import java.util.StringJoiner;

@JsonPropertyOrder({"exDate", "paymentDate", "recordDate", "declaredDate",
@JsonPropertyOrder({"symbol", "exDate", "paymentDate", "recordDate", "declaredDate",
"amount", "flag", "currency", "description", "frequency", "date"})
public class Dividends implements Serializable {

private static final long serialVersionUID = -8671643610377057386L;

private final String symbol;
private final LocalDate exDate;
private final LocalDate paymentDate;
private final LocalDate recordDate;
Expand All @@ -29,6 +31,7 @@ public class Dividends implements Serializable {

@JsonCreator
public Dividends(
@JsonProperty("symbol") final String symbol,
@JsonProperty("exDate") final LocalDate exDate,
@JsonProperty("paymentDate") final LocalDate paymentDate,
@JsonProperty("recordDate") final LocalDate recordDate,
Expand All @@ -39,6 +42,7 @@ public Dividends(
@JsonProperty("description") final String description,
@JsonProperty("frequency") final String frequency,
@JsonProperty("date") final LocalDate date) {
this.symbol = symbol;
this.exDate = exDate;
this.paymentDate = paymentDate;
this.recordDate = recordDate;
Expand All @@ -51,6 +55,10 @@ public Dividends(
this.date = date;
}

public String getSymbol() {
return symbol;
}

public LocalDate getExDate() {
return exDate;
}
Expand Down Expand Up @@ -100,36 +108,39 @@ public boolean equals(final Object o) {
return false;
}
final Dividends dividends = (Dividends) o;
return Objects.equal(exDate, dividends.exDate) &&
Objects.equal(paymentDate, dividends.paymentDate) &&
Objects.equal(recordDate, dividends.recordDate) &&
Objects.equal(declaredDate, dividends.declaredDate) &&
Objects.equal(amount, dividends.amount) &&
Objects.equal(flag, dividends.flag) &&
Objects.equal(currency, dividends.currency) &&
Objects.equal(description, dividends.description) &&
Objects.equal(frequency, dividends.frequency) &&
Objects.equal(date, dividends.date);
return Objects.equals(symbol, dividends.symbol) &&
Objects.equals(exDate, dividends.exDate) &&
Objects.equals(paymentDate, dividends.paymentDate) &&
Objects.equals(recordDate, dividends.recordDate) &&
Objects.equals(declaredDate, dividends.declaredDate) &&
Objects.equals(amount, dividends.amount) &&
Objects.equals(flag, dividends.flag) &&
Objects.equals(currency, dividends.currency) &&
Objects.equals(description, dividends.description) &&
Objects.equals(frequency, dividends.frequency) &&
Objects.equals(date, dividends.date);
}

@Override
public int hashCode() {
return Objects.hashCode(exDate, paymentDate, recordDate, declaredDate, amount, flag, currency, description, frequency, date);
return Objects.hash(symbol, exDate, paymentDate, recordDate, declaredDate,
amount, flag, currency, description, frequency, date);
}

@Override
public String toString() {
return MoreObjects.toStringHelper(this)
.add("exDate", exDate)
.add("paymentDate", paymentDate)
.add("recordDate", recordDate)
.add("declaredDate", declaredDate)
.add("amount", amount)
.add("flag", flag)
.add("currency", currency)
.add("description", description)
.add("frequency", frequency)
.add("date", date)
return new StringJoiner(", ", Dividends.class.getSimpleName() + "[", "]")
.add("symbol='" + symbol + "'")
.add("exDate=" + exDate)
.add("paymentDate=" + paymentDate)
.add("recordDate=" + recordDate)
.add("declaredDate=" + declaredDate)
.add("amount=" + amount)
.add("flag='" + flag + "'")
.add("currency='" + currency + "'")
.add("description='" + description + "'")
.add("frequency='" + frequency + "'")
.add("date=" + date)
.toString();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public class DividendsTest {

@Test
public void constructor() {
final String symbol = fixture.create(String.class);
final LocalDate exDate = fixture.create(LocalDate.class);
final LocalDate paymentDate = fixture.create(LocalDate.class);
final LocalDate recordDate = fixture.create(LocalDate.class);
Expand All @@ -27,9 +28,10 @@ public void constructor() {
final String frequency = fixture.create(String.class);
final LocalDate date = fixture.create(LocalDate.class);

final Dividends dividends = new Dividends(exDate, paymentDate, recordDate, declaredDate, amount,
final Dividends dividends = new Dividends(symbol, exDate, paymentDate, recordDate, declaredDate, amount,
flag, currency, description, frequency, date);

assertThat(dividends.getSymbol()).isEqualTo(symbol);
assertThat(dividends.getExDate()).isEqualTo(exDate);
assertThat(dividends.getPaymentDate()).isEqualTo(paymentDate);
assertThat(dividends.getRecordDate()).isEqualTo(recordDate);
Expand Down
2 changes: 1 addition & 1 deletion iextrading4j-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>iextrading4j</artifactId>
<groupId>pl.zankowski</groupId>
<version>3.3.3</version>
<version>3.3.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion iextrading4j-mutation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>iextrading4j</artifactId>
<groupId>pl.zankowski</groupId>
<version>3.3.3</version>
<version>3.3.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
4 changes: 2 additions & 2 deletions iextrading4j-samples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>iextrading4j</artifactId>
<groupId>pl.zankowski</groupId>
<version>3.3.3</version>
<version>3.3.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand All @@ -15,7 +15,7 @@
<dependency>
<groupId>pl.zankowski</groupId>
<artifactId>iextrading4j-client</artifactId>
<version>3.3.3</version>
<version>3.3.4</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion iextrading4j-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>iextrading4j</artifactId>
<groupId>pl.zankowski</groupId>
<version>3.3.3</version>
<version>3.3.4</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public void dividendsServiceTest() {
.build());

final Dividends dividends = dividendsList.get(0);
assertThat(dividends.getSymbol()).isEqualTo("AAPL");
assertThat(dividends.getExDate()).isEqualTo(LocalDate.of(2019, 5, 10));
assertThat(dividends.getPaymentDate()).isEqualTo(LocalDate.of(2019, 5, 16));
assertThat(dividends.getRecordDate()).isEqualTo(LocalDate.of(2019, 5, 13));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[
{
"symbol": "AAPL",
"exDate": "2019-05-10",
"paymentDate": "2019-05-16",
"recordDate": "2019-05-13",
Expand Down
13 changes: 8 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>pl.zankowski</groupId>
<artifactId>iextrading4j</artifactId>
<packaging>pom</packaging>
<version>3.3.3</version>
<version>3.3.4</version>

<name>IEXTrading4j</name>
<description>Open source IEX Trading REST and WebSocket API library</description>
Expand Down Expand Up @@ -75,27 +75,27 @@
<dependency>
<groupId>pl.zankowski</groupId>
<artifactId>iextrading4j-api</artifactId>
<version>3.3.3</version>
<version>3.3.4</version>
</dependency>

<dependency>
<groupId>pl.zankowski</groupId>
<artifactId>iextrading4j-api</artifactId>
<type>test-jar</type>
<scope>test</scope>
<version>3.3.3</version>
<version>3.3.4</version>
</dependency>

<dependency>
<groupId>pl.zankowski</groupId>
<artifactId>iextrading4j-client</artifactId>
<version>3.3.3</version>
<version>3.3.4</version>
</dependency>

<dependency>
<groupId>pl.zankowski</groupId>
<artifactId>iextrading4j-samples</artifactId>
<version>3.3.3</version>
<version>3.3.4</version>
</dependency>

<!-- Libraries -->
Expand Down Expand Up @@ -310,6 +310,9 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin}</version>
<configuration>
<source>${maven.compiler.source}</source>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down

0 comments on commit beae72d

Please sign in to comment.