Skip to content

Update getting reports #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.telstra.messaging</groupId>
<artifactId>telstra-messaging</artifactId>
<version>3.1-SNAPSHOT</version>
<version>3.2-SNAPSHOT</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>telstra-messaging</artifactId>
<packaging>jar</packaging>
<name>telstra-messaging</name>
<version>3.1-SNAPSHOT</version>
<version>3.2-SNAPSHOT</version>
<url>https://github.com/swagger-api/swagger-codegen</url>
<description>Swagger Java</description>
<scm>
Expand Down
11 changes: 6 additions & 5 deletions src/main/java/com/telstra/GetReports200ResponseReportsInner.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@

package com.telstra;


import java.util.Objects;

import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.util.UUID;
import org.threeten.bp.LocalDate;

/**
* GetReports200ResponseReportsInner
*/
Expand All @@ -35,7 +36,7 @@ public class GetReports200ResponseReportsInner {
private String reportType = null;

@SerializedName("reportExpiry")
private LocalDate reportExpiry = null;
private String reportExpiry = null;

public GetReports200ResponseReportsInner reportId(UUID reportId) {
this.reportId = reportId;
Expand Down Expand Up @@ -91,7 +92,7 @@ public void setReportType(String reportType) {
this.reportType = reportType;
}

public GetReports200ResponseReportsInner reportExpiry(LocalDate reportExpiry) {
public GetReports200ResponseReportsInner reportExpiry(String reportExpiry) {
this.reportExpiry = reportExpiry;
return this;
}
Expand All @@ -101,11 +102,11 @@ public GetReports200ResponseReportsInner reportExpiry(LocalDate reportExpiry) {
* @return reportExpiry
**/
@Schema(description = "The expiry date of your report. After this date, you will be unable to download your report. ")
public LocalDate getReportExpiry() {
public String getReportExpiry() {
return reportExpiry;
}

public void setReportExpiry(LocalDate reportExpiry) {
public void setReportExpiry(String reportExpiry) {
this.reportExpiry = reportExpiry;
}

Expand Down
16 changes: 8 additions & 8 deletions src/test/java/com/telstra/messaging/MessagesApiTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.time.ZonedDateTime;


import java.time.format.DateTimeFormatter;
import java.time.ZoneOffset;

/**
* API tests for MessagesApi
Expand Down Expand Up @@ -155,10 +155,10 @@ public void sendMessagesTest() {

Integer retryTimeout = 10;

String scheduleSend = "2024-08-15T20:48:47.096Z";
ZonedDateTime zdt = ZonedDateTime.parse(scheduleSend);
ZonedDateTime zdt = ZonedDateTime.now(ZoneOffset.UTC);
ZonedDateTime zdtPlusTwoDays = zdt.plusDays(2);
scheduleSend = zdtPlusTwoDays.toString();
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSX");
String scheduleSend = zdtPlusTwoDays.format(formatter);

Boolean deliveryNotification = false;
String statusCallbackUrl = "http://www.example.com";
Expand Down Expand Up @@ -229,10 +229,10 @@ public void updateMessageByIdTest() {

Integer retryTimeout = 10;

String scheduleSend = "2024-08-15T20:48:47.096Z";
ZonedDateTime zdt = ZonedDateTime.parse(scheduleSend);
ZonedDateTime zdt = ZonedDateTime.now(ZoneOffset.UTC);
ZonedDateTime zdtPlusTwoDays = zdt.plusDays(2);
scheduleSend = zdtPlusTwoDays.toString();
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSX");
String scheduleSend = zdtPlusTwoDays.format(formatter);

Boolean deliveryNotification = false;
String statusCallbackUrl = "http://www.example.com";
Expand Down