From 25c4ae0520d2466b75727fa7923bc301c1f25807 Mon Sep 17 00:00:00 2001 From: Michel Perez Date: Mon, 30 Oct 2023 11:21:48 -0500 Subject: [PATCH] generating code with jdk8 --- src/main/AndroidManifest.xml | 0 src/main/java/com/lob/api/ApiClient.java | 15 ++- src/main/java/com/lob/api/JSON.java | 102 ++++++++++++++++++ .../java/com/lob/api/client/AddressesApi.java | 12 +-- .../com/lob/api/client/BankAccountsApi.java | 12 +-- .../com/lob/api/client/BillingGroupsApi.java | 12 +-- .../java/com/lob/api/client/ChecksApi.java | 12 +-- .../java/com/lob/api/client/LettersApi.java | 12 +-- .../java/com/lob/api/client/PostcardsApi.java | 12 +-- .../com/lob/api/client/SelfMailersApi.java | 12 +-- .../lob/api/client/TemplateVersionsApi.java | 12 +-- .../java/com/lob/api/client/TemplatesApi.java | 12 +-- src/main/java/com/lob/model/Address.java | 18 ++-- src/main/java/com/lob/model/BankAccount.java | 18 ++-- .../java/com/lob/model/BankAccountVerify.java | 2 +- src/main/java/com/lob/model/BillingGroup.java | 18 ++-- src/main/java/com/lob/model/Buckslip.java | 4 +- .../java/com/lob/model/BuckslipOrder.java | 34 +++--- src/main/java/com/lob/model/Campaign.java | 36 +++---- .../java/com/lob/model/CampaignCreative.java | 18 ++-- .../java/com/lob/model/CampaignUpdatable.java | 18 ++-- .../java/com/lob/model/CampaignWritable.java | 18 ++-- src/main/java/com/lob/model/Card.java | 20 ++-- src/main/java/com/lob/model/CardOrder.java | 34 +++--- src/main/java/com/lob/model/Check.java | 35 +++--- .../java/com/lob/model/CheckEditable.java | 10 +- .../java/com/lob/model/CreativeResponse.java | 18 ++-- .../com/lob/model/DeliverabilityAnalysis.java | 2 +- src/main/java/com/lob/model/Events.java | 10 +- src/main/java/com/lob/model/Export.java | 18 ++-- .../java/com/lob/model/IntlVerifications.java | 2 +- .../lob/model/IntlVerificationsPayload.java | 2 +- src/main/java/com/lob/model/Letter.java | 35 +++--- .../com/lob/model/LetterDetailsReturned.java | 2 +- .../com/lob/model/LetterDetailsWritable.java | 2 +- .../java/com/lob/model/LetterEditable.java | 10 +- .../com/lob/model/MultipleComponentsList.java | 2 +- src/main/java/com/lob/model/Postcard.java | 35 +++--- .../java/com/lob/model/PostcardEditable.java | 10 +- src/main/java/com/lob/model/SelfMailer.java | 10 +- .../com/lob/model/SelfMailerEditable.java | 10 +- src/main/java/com/lob/model/Template.java | 20 ++-- .../java/com/lob/model/TemplateVersion.java | 18 ++-- .../com/lob/model/TrackingEventCertified.java | 26 ++--- .../com/lob/model/TrackingEventNormal.java | 26 ++--- src/main/java/com/lob/model/Upload.java | 18 ++-- .../java/com/lob/model/UploadsMetadata.java | 2 +- .../java/com/lob/model/UsVerifications.java | 2 +- src/main/java/com/lob/model/Zip.java | 2 +- .../com/lob/api/client/AddressesApiTest.java | 0 .../lob/api/client/BankAccountsApiTest.java | 0 .../lob/api/client/BillingGroupsApiTest.java | 0 .../lob/api/client/BuckslipOrdersApiTest.java | 0 .../com/lob/api/client/BuckslipsApiTest.java | 0 .../com/lob/api/client/CampaignsApiTest.java | 0 .../com/lob/api/client/CardOrdersApiTest.java | 0 .../java/com/lob/api/client/CardsApiTest.java | 0 .../com/lob/api/client/ChecksApiTest.java | 0 .../com/lob/api/client/CreativesApiTest.java | 0 .../com/lob/api/client/DefaultApiTest.java | 0 .../api/client/IdentityValidationApiTest.java | 0 .../client/IntlAutocompletionsApiTest.java | 0 .../api/client/IntlVerificationsApiTest.java | 0 .../com/lob/api/client/LettersApiTest.java | 0 .../com/lob/api/client/PostcardsApiTest.java | 0 .../client/ReverseGeocodeLookupsApiTest.java | 0 .../lob/api/client/SelfMailersApiTest.java | 0 .../api/client/TemplateVersionsApiTest.java | 0 .../com/lob/api/client/TemplatesApiTest.java | 0 .../com/lob/api/client/UploadsApiTest.java | 0 .../api/client/UsAutocompletionsApiTest.java | 0 .../api/client/UsVerificationsApiTest.java | 0 .../com/lob/api/client/ZipLookupsApiTest.java | 0 73 files changed, 454 insertions(+), 336 deletions(-) mode change 100755 => 100644 src/main/AndroidManifest.xml mode change 100755 => 100644 src/test/java/com/lob/api/client/AddressesApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/BankAccountsApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/BillingGroupsApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/BuckslipOrdersApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/BuckslipsApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/CampaignsApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/CardOrdersApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/CardsApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/ChecksApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/CreativesApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/DefaultApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/IdentityValidationApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/IntlAutocompletionsApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/IntlVerificationsApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/LettersApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/PostcardsApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/ReverseGeocodeLookupsApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/SelfMailersApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/TemplateVersionsApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/TemplatesApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/UploadsApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/UsAutocompletionsApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/UsVerificationsApiTest.java mode change 100755 => 100644 src/test/java/com/lob/api/client/ZipLookupsApiTest.java diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml old mode 100755 new mode 100644 diff --git a/src/main/java/com/lob/api/ApiClient.java b/src/main/java/com/lob/api/ApiClient.java index 0f8b39d4..994e3ebb 100644 --- a/src/main/java/com/lob/api/ApiClient.java +++ b/src/main/java/com/lob/api/ApiClient.java @@ -41,6 +41,9 @@ import java.security.cert.CertificateFactory; import java.security.cert.X509Certificate; import java.text.DateFormat; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; import java.util.*; import java.util.Map.Entry; import java.util.concurrent.TimeUnit; @@ -265,6 +268,16 @@ public ApiClient setSqlDateFormat(DateFormat dateFormat) { return this; } + public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { + this.json.setOffsetDateTimeFormat(dateFormat); + return this; + } + + public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { + this.json.setLocalDateFormat(dateFormat); + return this; + } + public ApiClient setLenientOnJson(boolean lenientOnJson) { this.json.setLenientOnJson(lenientOnJson); return this; @@ -525,7 +538,7 @@ public ApiClient setWriteTimeout(int writeTimeout) { public String parameterToString(Object param) { if (param == null) { return ""; - } else if (param instanceof Date ) { + } else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) { //Serialize to json string and remove the " enclosing characters String jsonStr = json.serialize(param); return jsonStr.substring(1, jsonStr.length() - 1); diff --git a/src/main/java/com/lob/api/JSON.java b/src/main/java/com/lob/api/JSON.java index b7661d9b..c70d207c 100644 --- a/src/main/java/com/lob/api/JSON.java +++ b/src/main/java/com/lob/api/JSON.java @@ -33,6 +33,9 @@ import java.text.DateFormat; import java.text.ParseException; import java.text.ParsePosition; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; import java.util.Date; import java.util.Locale; import java.util.Map; @@ -43,6 +46,8 @@ public class JSON { private boolean isLenientOnJson = false; private DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); private SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); + private OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); + private LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); private ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); @SuppressWarnings("unchecked") @@ -80,6 +85,8 @@ public JSON() { gson = createGson() .registerTypeAdapter(Date.class, dateTypeAdapter) .registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter) + .registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter) + .registerTypeAdapter(LocalDate.class, localDateTypeAdapter) .registerTypeAdapter(byte[].class, byteArrayAdapter) .create(); } @@ -177,6 +184,101 @@ public byte[] read(JsonReader in) throws IOException { } } + /** + * Gson TypeAdapter for JSR310 OffsetDateTime type + */ + public static class OffsetDateTimeTypeAdapter extends TypeAdapter { + + private DateTimeFormatter formatter; + + public OffsetDateTimeTypeAdapter() { + this(DateTimeFormatter.ISO_OFFSET_DATE_TIME); + } + + public OffsetDateTimeTypeAdapter(DateTimeFormatter formatter) { + this.formatter = formatter; + } + + public void setFormat(DateTimeFormatter dateFormat) { + this.formatter = dateFormat; + } + + @Override + public void write(JsonWriter out, OffsetDateTime date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + out.value(formatter.format(date)); + } + } + + @Override + public OffsetDateTime read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + if (date.endsWith("+0000")) { + date = date.substring(0, date.length()-5) + "Z"; + } + return OffsetDateTime.parse(date, formatter); + } + } + } + + /** + * Gson TypeAdapter for JSR310 LocalDate type + */ + public class LocalDateTypeAdapter extends TypeAdapter { + + private DateTimeFormatter formatter; + + public LocalDateTypeAdapter() { + this(DateTimeFormatter.ISO_LOCAL_DATE); + } + + public LocalDateTypeAdapter(DateTimeFormatter formatter) { + this.formatter = formatter; + } + + public void setFormat(DateTimeFormatter dateFormat) { + this.formatter = dateFormat; + } + + @Override + public void write(JsonWriter out, LocalDate date) throws IOException { + if (date == null) { + out.nullValue(); + } else { + out.value(formatter.format(date)); + } + } + + @Override + public LocalDate read(JsonReader in) throws IOException { + switch (in.peek()) { + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + return LocalDate.parse(date, formatter); + } + } + } + + public JSON setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { + offsetDateTimeTypeAdapter.setFormat(dateFormat); + return this; + } + + public JSON setLocalDateFormat(DateTimeFormatter dateFormat) { + localDateTypeAdapter.setFormat(dateFormat); + return this; + } + /** * Gson TypeAdapter for java.sql.Date type * If the dateFormat is null, a simple "yyyy-MM-dd" format will be used diff --git a/src/main/java/com/lob/api/client/AddressesApi.java b/src/main/java/com/lob/api/client/AddressesApi.java index f97323ff..bd230f68 100644 --- a/src/main/java/com/lob/api/client/AddressesApi.java +++ b/src/main/java/com/lob/api/client/AddressesApi.java @@ -31,8 +31,8 @@ import com.lob.model.AddressDeletion; import com.lob.model.AddressEditable; import com.lob.model.AddressList; -import java.util.Date; import com.lob.model.LobError; +import java.time.OffsetDateTime; import java.lang.reflect.Type; import java.util.ArrayList; @@ -448,7 +448,7 @@ public okhttp3.Call getAsync(String adrId, final ApiCallback
_callback) 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -503,7 +503,7 @@ public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCall(limit, before, after, include, dateCreated, metadata, _callback); @@ -529,7 +529,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public AddressList list(Integer limit, String before, String after, List include, Map dateCreated, Map metadata) throws ApiException { + public AddressList list(Integer limit, String before, String after, List include, Map dateCreated, Map metadata) throws ApiException { try { ApiResponse localVarResp = listWithHttpInfo(limit, before, after, include, dateCreated, metadata); return localVarResp.getData(); @@ -556,7 +556,7 @@ public AddressList list(Integer limit, String before, String after, List 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public ApiResponse listWithHttpInfo(Integer limit, String before, String after, List include, Map dateCreated, Map metadata) throws ApiException { + public ApiResponse listWithHttpInfo(Integer limit, String before, String after, List include, Map dateCreated, Map metadata) throws ApiException { try { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -585,7 +585,7 @@ public ApiResponse listWithHttpInfo(Integer limit, String before, S 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listAsync(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAsync(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/lob/api/client/BankAccountsApi.java b/src/main/java/com/lob/api/client/BankAccountsApi.java index 4a05e2a2..ba56d87d 100644 --- a/src/main/java/com/lob/api/client/BankAccountsApi.java +++ b/src/main/java/com/lob/api/client/BankAccountsApi.java @@ -32,8 +32,8 @@ import com.lob.model.BankAccountList; import com.lob.model.BankAccountVerify; import com.lob.model.BankAccountWritable; -import java.util.Date; import com.lob.model.LobError; +import java.time.OffsetDateTime; import java.lang.reflect.Type; import java.util.ArrayList; @@ -582,7 +582,7 @@ public okhttp3.Call verifyAsync(String bankId, BankAccountVerify bankAccountVeri 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -637,7 +637,7 @@ public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCall(limit, before, after, include, dateCreated, metadata, _callback); @@ -663,7 +663,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public BankAccountList list(Integer limit, String before, String after, List include, Map dateCreated, Map metadata) throws ApiException { + public BankAccountList list(Integer limit, String before, String after, List include, Map dateCreated, Map metadata) throws ApiException { try { ApiResponse localVarResp = listWithHttpInfo(limit, before, after, include, dateCreated, metadata); return localVarResp.getData(); @@ -690,7 +690,7 @@ public BankAccountList list(Integer limit, String before, String after, List 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public ApiResponse listWithHttpInfo(Integer limit, String before, String after, List include, Map dateCreated, Map metadata) throws ApiException { + public ApiResponse listWithHttpInfo(Integer limit, String before, String after, List include, Map dateCreated, Map metadata) throws ApiException { try { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -719,7 +719,7 @@ public ApiResponse listWithHttpInfo(Integer limit, String befor 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listAsync(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAsync(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/lob/api/client/BillingGroupsApi.java b/src/main/java/com/lob/api/client/BillingGroupsApi.java index 69d2e5da..65e30b57 100644 --- a/src/main/java/com/lob/api/client/BillingGroupsApi.java +++ b/src/main/java/com/lob/api/client/BillingGroupsApi.java @@ -30,8 +30,8 @@ import com.lob.model.BillingGroup; import com.lob.model.BillingGroupEditable; import com.lob.model.BillingGroupList; -import java.util.Date; import com.lob.model.LobError; +import java.time.OffsetDateTime; import com.lob.model.SortByDateModified; import java.lang.reflect.Type; @@ -457,7 +457,7 @@ public okhttp3.Call updateAsync(String bgId, BillingGroupEditable billingGroupEd 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listCall(Integer limit, Integer offset, List include, Map dateCreated, Map dateModified, SortByDateModified sortByDateModified, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCall(Integer limit, Integer offset, List include, Map dateCreated, Map dateModified, SortByDateModified sortByDateModified, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -512,7 +512,7 @@ public okhttp3.Call listCall(Integer limit, Integer offset, List include } @SuppressWarnings("rawtypes") - private okhttp3.Call listValidateBeforeCall(Integer limit, Integer offset, List include, Map dateCreated, Map dateModified, SortByDateModified sortByDateModified, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidateBeforeCall(Integer limit, Integer offset, List include, Map dateCreated, Map dateModified, SortByDateModified sortByDateModified, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCall(limit, offset, include, dateCreated, dateModified, sortByDateModified, _callback); @@ -538,7 +538,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, Integer offset, List< 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public BillingGroupList list(Integer limit, Integer offset, List include, Map dateCreated, Map dateModified, SortByDateModified sortByDateModified) throws ApiException { + public BillingGroupList list(Integer limit, Integer offset, List include, Map dateCreated, Map dateModified, SortByDateModified sortByDateModified) throws ApiException { try { ApiResponse localVarResp = listWithHttpInfo(limit, offset, include, dateCreated, dateModified, sortByDateModified); return localVarResp.getData(); @@ -565,7 +565,7 @@ public BillingGroupList list(Integer limit, Integer offset, List include 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public ApiResponse listWithHttpInfo(Integer limit, Integer offset, List include, Map dateCreated, Map dateModified, SortByDateModified sortByDateModified) throws ApiException { + public ApiResponse listWithHttpInfo(Integer limit, Integer offset, List include, Map dateCreated, Map dateModified, SortByDateModified sortByDateModified) throws ApiException { try { okhttp3.Call localVarCall = listValidateBeforeCall(limit, offset, include, dateCreated, dateModified, sortByDateModified, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -594,7 +594,7 @@ public ApiResponse listWithHttpInfo(Integer limit, Integer off 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listAsync(Integer limit, Integer offset, List include, Map dateCreated, Map dateModified, SortByDateModified sortByDateModified, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAsync(Integer limit, Integer offset, List include, Map dateCreated, Map dateModified, SortByDateModified sortByDateModified, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listValidateBeforeCall(limit, offset, include, dateCreated, dateModified, sortByDateModified, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/lob/api/client/ChecksApi.java b/src/main/java/com/lob/api/client/ChecksApi.java index e0771d17..b76aa3c2 100644 --- a/src/main/java/com/lob/api/client/ChecksApi.java +++ b/src/main/java/com/lob/api/client/ChecksApi.java @@ -31,9 +31,9 @@ import com.lob.model.CheckDeletion; import com.lob.model.CheckEditable; import com.lob.model.CheckList; -import java.util.Date; import com.lob.model.LobError; import com.lob.model.MailType; +import java.time.OffsetDateTime; import com.lob.model.SortBy3; import java.lang.reflect.Type; @@ -462,7 +462,7 @@ public okhttp3.Call getAsync(String chkId, final ApiCallback _callback) t 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -533,7 +533,7 @@ public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCall(limit, before, after, include, dateCreated, metadata, scheduled, sendDate, mailType, sortBy, _callback); @@ -563,7 +563,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public CheckList list(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { + public CheckList list(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { try { ApiResponse localVarResp = listWithHttpInfo(limit, before, after, include, dateCreated, metadata, scheduled, sendDate, mailType, sortBy); return localVarResp.getData(); @@ -594,7 +594,7 @@ public CheckList list(Integer limit, String before, String after, List i 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public ApiResponse listWithHttpInfo(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { + public ApiResponse listWithHttpInfo(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { try { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, scheduled, sendDate, mailType, sortBy, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -627,7 +627,7 @@ public ApiResponse listWithHttpInfo(Integer limit, String before, Str 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listAsync(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAsync(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, scheduled, sendDate, mailType, sortBy, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/lob/api/client/LettersApi.java b/src/main/java/com/lob/api/client/LettersApi.java index ea8fbe25..617bdda8 100644 --- a/src/main/java/com/lob/api/client/LettersApi.java +++ b/src/main/java/com/lob/api/client/LettersApi.java @@ -27,13 +27,13 @@ import java.io.IOException; import java.nio.file.Files; -import java.util.Date; import com.lob.model.Letter; import com.lob.model.LetterDeletion; import com.lob.model.LetterEditable; import com.lob.model.LetterList; import com.lob.model.LobError; import com.lob.model.MailType; +import java.time.OffsetDateTime; import com.lob.model.SortBy3; import java.lang.reflect.Type; @@ -484,7 +484,7 @@ public okhttp3.Call getAsync(String ltrId, final ApiCallback _callback) 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean color, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean color, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -559,7 +559,7 @@ public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean color, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean color, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCall(limit, before, after, include, dateCreated, metadata, color, scheduled, sendDate, mailType, sortBy, _callback); @@ -590,7 +590,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public LetterList list(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean color, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { + public LetterList list(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean color, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { try { ApiResponse localVarResp = listWithHttpInfo(limit, before, after, include, dateCreated, metadata, color, scheduled, sendDate, mailType, sortBy); return localVarResp.getData(); @@ -622,7 +622,7 @@ public LetterList list(Integer limit, String before, String after, List 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public ApiResponse listWithHttpInfo(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean color, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { + public ApiResponse listWithHttpInfo(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean color, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { try { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, color, scheduled, sendDate, mailType, sortBy, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -656,7 +656,7 @@ public ApiResponse listWithHttpInfo(Integer limit, String before, St 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listAsync(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean color, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAsync(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, Boolean color, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, color, scheduled, sendDate, mailType, sortBy, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/lob/api/client/PostcardsApi.java b/src/main/java/com/lob/api/client/PostcardsApi.java index 7b1c9b9c..935d19a4 100644 --- a/src/main/java/com/lob/api/client/PostcardsApi.java +++ b/src/main/java/com/lob/api/client/PostcardsApi.java @@ -27,9 +27,9 @@ import java.io.IOException; import java.nio.file.Files; -import java.util.Date; import com.lob.model.LobError; import com.lob.model.MailType; +import java.time.OffsetDateTime; import com.lob.model.Postcard; import com.lob.model.PostcardDeletion; import com.lob.model.PostcardEditable; @@ -464,7 +464,7 @@ public okhttp3.Call getAsync(String pscId, final ApiCallback _callback 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -539,7 +539,7 @@ public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCall(limit, before, after, include, dateCreated, metadata, size, scheduled, sendDate, mailType, sortBy, _callback); @@ -570,7 +570,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public PostcardList list(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { + public PostcardList list(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { try { ApiResponse localVarResp = listWithHttpInfo(limit, before, after, include, dateCreated, metadata, size, scheduled, sendDate, mailType, sortBy); return localVarResp.getData(); @@ -602,7 +602,7 @@ public PostcardList list(Integer limit, String before, String after, List 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public ApiResponse listWithHttpInfo(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { + public ApiResponse listWithHttpInfo(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { try { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, size, scheduled, sendDate, mailType, sortBy, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -636,7 +636,7 @@ public ApiResponse listWithHttpInfo(Integer limit, String before, 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listAsync(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAsync(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, size, scheduled, sendDate, mailType, sortBy, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/lob/api/client/SelfMailersApi.java b/src/main/java/com/lob/api/client/SelfMailersApi.java index 4f23e0c7..bed78e34 100644 --- a/src/main/java/com/lob/api/client/SelfMailersApi.java +++ b/src/main/java/com/lob/api/client/SelfMailersApi.java @@ -27,9 +27,9 @@ import java.io.IOException; import java.nio.file.Files; -import java.util.Date; import com.lob.model.LobError; import com.lob.model.MailType; +import java.time.OffsetDateTime; import com.lob.model.SelfMailer; import com.lob.model.SelfMailerDeletion; import com.lob.model.SelfMailerEditable; @@ -464,7 +464,7 @@ public okhttp3.Call getAsync(String sfmId, final ApiCallback _callba 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -539,7 +539,7 @@ public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCall(limit, before, after, include, dateCreated, metadata, size, scheduled, sendDate, mailType, sortBy, _callback); @@ -570,7 +570,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public SelfMailerList list(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { + public SelfMailerList list(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { try { ApiResponse localVarResp = listWithHttpInfo(limit, before, after, include, dateCreated, metadata, size, scheduled, sendDate, mailType, sortBy); return localVarResp.getData(); @@ -602,7 +602,7 @@ public SelfMailerList list(Integer limit, String before, String after, List 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public ApiResponse listWithHttpInfo(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { + public ApiResponse listWithHttpInfo(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy) throws ApiException { try { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, size, scheduled, sendDate, mailType, sortBy, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -636,7 +636,7 @@ public ApiResponse listWithHttpInfo(Integer limit, String before 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listAsync(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAsync(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, List size, Boolean scheduled, Map sendDate, MailType mailType, SortBy3 sortBy, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, size, scheduled, sendDate, mailType, sortBy, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/lob/api/client/TemplateVersionsApi.java b/src/main/java/com/lob/api/client/TemplateVersionsApi.java index c78b0d75..587e0e12 100644 --- a/src/main/java/com/lob/api/client/TemplateVersionsApi.java +++ b/src/main/java/com/lob/api/client/TemplateVersionsApi.java @@ -27,8 +27,8 @@ import java.io.IOException; import java.nio.file.Files; -import java.util.Date; import com.lob.model.LobError; +import java.time.OffsetDateTime; import com.lob.model.TemplateVersion; import com.lob.model.TemplateVersionDeletion; import com.lob.model.TemplateVersionList; @@ -622,7 +622,7 @@ public okhttp3.Call updateAsync(String tmplId, String vrsnId, TemplateVersionUpd 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listCall(String tmplId, Integer limit, String before, String after, List include, Map dateCreated, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCall(String tmplId, Integer limit, String before, String after, List include, Map dateCreated, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -674,7 +674,7 @@ public okhttp3.Call listCall(String tmplId, Integer limit, String before, String } @SuppressWarnings("rawtypes") - private okhttp3.Call listValidateBeforeCall(String tmplId, Integer limit, String before, String after, List include, Map dateCreated, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidateBeforeCall(String tmplId, Integer limit, String before, String after, List include, Map dateCreated, final ApiCallback _callback) throws ApiException { // verify the required parameter 'tmplId' is set if (tmplId == null) { @@ -705,7 +705,7 @@ private okhttp3.Call listValidateBeforeCall(String tmplId, Integer limit, String 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public TemplateVersionList list(String tmplId, Integer limit, String before, String after, List include, Map dateCreated) throws ApiException { + public TemplateVersionList list(String tmplId, Integer limit, String before, String after, List include, Map dateCreated) throws ApiException { try { ApiResponse localVarResp = listWithHttpInfo(tmplId, limit, before, after, include, dateCreated); return localVarResp.getData(); @@ -732,7 +732,7 @@ public TemplateVersionList list(String tmplId, Integer limit, String before, Str 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public ApiResponse listWithHttpInfo(String tmplId, Integer limit, String before, String after, List include, Map dateCreated) throws ApiException { + public ApiResponse listWithHttpInfo(String tmplId, Integer limit, String before, String after, List include, Map dateCreated) throws ApiException { try { okhttp3.Call localVarCall = listValidateBeforeCall(tmplId, limit, before, after, include, dateCreated, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -761,7 +761,7 @@ public ApiResponse listWithHttpInfo(String tmplId, Integer 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listAsync(String tmplId, Integer limit, String before, String after, List include, Map dateCreated, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAsync(String tmplId, Integer limit, String before, String after, List include, Map dateCreated, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listValidateBeforeCall(tmplId, limit, before, after, include, dateCreated, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/lob/api/client/TemplatesApi.java b/src/main/java/com/lob/api/client/TemplatesApi.java index bad287b3..8dd2053c 100644 --- a/src/main/java/com/lob/api/client/TemplatesApi.java +++ b/src/main/java/com/lob/api/client/TemplatesApi.java @@ -27,8 +27,8 @@ import java.io.IOException; import java.nio.file.Files; -import java.util.Date; import com.lob.model.LobError; +import java.time.OffsetDateTime; import com.lob.model.Template; import com.lob.model.TemplateDeletion; import com.lob.model.TemplateList; @@ -582,7 +582,7 @@ public okhttp3.Call updateAsync(String tmplId, TemplateUpdate templateUpdate, fi 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -637,7 +637,7 @@ public okhttp3.Call listCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listCall(limit, before, after, include, dateCreated, metadata, _callback); @@ -663,7 +663,7 @@ private okhttp3.Call listValidateBeforeCall(Integer limit, String before, String 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public TemplateList list(Integer limit, String before, String after, List include, Map dateCreated, Map metadata) throws ApiException { + public TemplateList list(Integer limit, String before, String after, List include, Map dateCreated, Map metadata) throws ApiException { try { ApiResponse localVarResp = listWithHttpInfo(limit, before, after, include, dateCreated, metadata); return localVarResp.getData(); @@ -690,7 +690,7 @@ public TemplateList list(Integer limit, String before, String after, List 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public ApiResponse listWithHttpInfo(Integer limit, String before, String after, List include, Map dateCreated, Map metadata) throws ApiException { + public ApiResponse listWithHttpInfo(Integer limit, String before, String after, List include, Map dateCreated, Map metadata) throws ApiException { try { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, null); Type localVarReturnType = new TypeToken(){}.getType(); @@ -719,7 +719,7 @@ public ApiResponse listWithHttpInfo(Integer limit, String before, 0 Lob uses RESTful HTTP response codes to indicate success or failure of an API request. - */ - public okhttp3.Call listAsync(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listAsync(Integer limit, String before, String after, List include, Map dateCreated, Map metadata, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = listValidateBeforeCall(limit, before, after, include, dateCreated, metadata, _callback); Type localVarReturnType = new TypeToken(){}.getType(); diff --git a/src/main/java/com/lob/model/Address.java b/src/main/java/com/lob/model/Address.java index 866efd3b..dcf7881c 100644 --- a/src/main/java/com/lob/model/Address.java +++ b/src/main/java/com/lob/model/Address.java @@ -24,7 +24,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Date; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -384,7 +384,7 @@ public ObjectEnum getObject() { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -394,7 +394,7 @@ public ObjectEnum getObject() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -405,7 +405,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -415,7 +415,7 @@ public Date getDateCreated() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -674,7 +674,7 @@ public void setObject(ObjectEnum _object) { /* - public Address dateCreated(Date dateCreated) { + public Address dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -682,14 +682,14 @@ public Address dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public Address dateModified(Date dateModified) { + public Address dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -697,7 +697,7 @@ public Address dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } diff --git a/src/main/java/com/lob/model/BankAccount.java b/src/main/java/com/lob/model/BankAccount.java index dbf6621e..024718f2 100644 --- a/src/main/java/com/lob/model/BankAccount.java +++ b/src/main/java/com/lob/model/BankAccount.java @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Date; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -297,7 +297,7 @@ public Boolean getVerified() { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -307,7 +307,7 @@ public Boolean getVerified() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -318,7 +318,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -328,7 +328,7 @@ public Date getDateCreated() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -575,7 +575,7 @@ public void setVerified(Boolean verified) { /* - public BankAccount dateCreated(Date dateCreated) { + public BankAccount dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -583,14 +583,14 @@ public BankAccount dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public BankAccount dateModified(Date dateModified) { + public BankAccount dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -598,7 +598,7 @@ public BankAccount dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } diff --git a/src/main/java/com/lob/model/BankAccountVerify.java b/src/main/java/com/lob/model/BankAccountVerify.java index 275d4728..357fff72 100644 --- a/src/main/java/com/lob/model/BankAccountVerify.java +++ b/src/main/java/com/lob/model/BankAccountVerify.java @@ -37,7 +37,7 @@ public class BankAccountVerify { public static final String SERIALIZED_NAME_AMOUNTS = "amounts"; @SerializedName(SERIALIZED_NAME_AMOUNTS) - private List amounts = new ArrayList(); + private List amounts = new ArrayList<>(); public List getAmounts() { if (this.amounts == null) { this.amounts = new ArrayList(); diff --git a/src/main/java/com/lob/model/BillingGroup.java b/src/main/java/com/lob/model/BillingGroup.java index 73b92eee..be9119c8 100644 --- a/src/main/java/com/lob/model/BillingGroup.java +++ b/src/main/java/com/lob/model/BillingGroup.java @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Date; +import java.time.OffsetDateTime; import com.google.gson.Gson; import java.util.HashMap; @@ -105,7 +105,7 @@ public void setId (String id) throws IllegalArgumentException { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -115,7 +115,7 @@ public void setId (String id) throws IllegalArgumentException { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -126,7 +126,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -136,7 +136,7 @@ public Date getDateCreated() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -252,7 +252,7 @@ public BillingGroup id(String id) { /* - public BillingGroup dateCreated(Date dateCreated) { + public BillingGroup dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -260,14 +260,14 @@ public BillingGroup dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public BillingGroup dateModified(Date dateModified) { + public BillingGroup dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -275,7 +275,7 @@ public BillingGroup dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } diff --git a/src/main/java/com/lob/model/Buckslip.java b/src/main/java/com/lob/model/Buckslip.java index 0be77f75..76391250 100644 --- a/src/main/java/com/lob/model/Buckslip.java +++ b/src/main/java/com/lob/model/Buckslip.java @@ -213,7 +213,7 @@ public URI getBackOriginalUrl() { public static final String SERIALIZED_NAME_THUMBNAILS = "thumbnails"; @SerializedName(SERIALIZED_NAME_THUMBNAILS) - private List thumbnails = new ArrayList(); + private List thumbnails = new ArrayList<>(); public static final String SERIALIZED_NAME_AVAILABLE_QUANTITY = "available_quantity"; @@ -323,7 +323,7 @@ public BigDecimal getProjectedQuantity() { public static final String SERIALIZED_NAME_BUCKSLIP_ORDERS = "buckslip_orders"; @SerializedName(SERIALIZED_NAME_BUCKSLIP_ORDERS) - private List buckslipOrders = new ArrayList(); + private List buckslipOrders = new ArrayList<>(); /** * Gets or Sets stock diff --git a/src/main/java/com/lob/model/BuckslipOrder.java b/src/main/java/com/lob/model/BuckslipOrder.java index 1f3ab00f..61ebf7e7 100644 --- a/src/main/java/com/lob/model/BuckslipOrder.java +++ b/src/main/java/com/lob/model/BuckslipOrder.java @@ -24,7 +24,7 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; -import java.util.Date; +import java.time.OffsetDateTime; import com.google.gson.Gson; import java.util.HashMap; @@ -39,7 +39,7 @@ public class BuckslipOrder { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -49,7 +49,7 @@ public class BuckslipOrder { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -60,7 +60,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -70,7 +70,7 @@ public Date getDateCreated() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -331,7 +331,7 @@ public String getCancelledReason() { @SerializedName(SERIALIZED_NAME_AVAILABILITY_DATE) - private Date availabilityDate; + private OffsetDateTime availabilityDate; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return availabilityDate @@ -341,7 +341,7 @@ public String getCancelledReason() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getAvailabilityDate() { + public OffsetDateTime getAvailabilityDate() { return availabilityDate; } @@ -352,7 +352,7 @@ public Date getAvailabilityDate() { @SerializedName(SERIALIZED_NAME_EXPECTED_AVAILABILITY_DATE) - private Date expectedAvailabilityDate; + private OffsetDateTime expectedAvailabilityDate; /** * The fixed deadline for the buckslips to be printed. * @return expectedAvailabilityDate @@ -362,7 +362,7 @@ public Date getAvailabilityDate() { @ApiModelProperty(value = "The fixed deadline for the buckslips to be printed.") - public Date getExpectedAvailabilityDate() { + public OffsetDateTime getExpectedAvailabilityDate() { return expectedAvailabilityDate; } @@ -370,7 +370,7 @@ public Date getExpectedAvailabilityDate() { /* - public BuckslipOrder dateCreated(Date dateCreated) { + public BuckslipOrder dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -378,14 +378,14 @@ public BuckslipOrder dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public BuckslipOrder dateModified(Date dateModified) { + public BuckslipOrder dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -393,7 +393,7 @@ public BuckslipOrder dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } @@ -529,7 +529,7 @@ public void setCancelledReason(String cancelledReason) { /* - public BuckslipOrder availabilityDate(Date availabilityDate) { + public BuckslipOrder availabilityDate(OffsetDateTime availabilityDate) { this.availabilityDate = availabilityDate; return this; @@ -537,14 +537,14 @@ public BuckslipOrder availabilityDate(Date availabilityDate) { */ - public void setAvailabilityDate(Date availabilityDate) { + public void setAvailabilityDate(OffsetDateTime availabilityDate) { this.availabilityDate = availabilityDate; } /* - public BuckslipOrder expectedAvailabilityDate(Date expectedAvailabilityDate) { + public BuckslipOrder expectedAvailabilityDate(OffsetDateTime expectedAvailabilityDate) { this.expectedAvailabilityDate = expectedAvailabilityDate; return this; @@ -552,7 +552,7 @@ public BuckslipOrder expectedAvailabilityDate(Date expectedAvailabilityDate) { */ - public void setExpectedAvailabilityDate(Date expectedAvailabilityDate) { + public void setExpectedAvailabilityDate(OffsetDateTime expectedAvailabilityDate) { this.expectedAvailabilityDate = expectedAvailabilityDate; } diff --git a/src/main/java/com/lob/model/Campaign.java b/src/main/java/com/lob/model/Campaign.java index 43b8d581..87001c1e 100644 --- a/src/main/java/com/lob/model/Campaign.java +++ b/src/main/java/com/lob/model/Campaign.java @@ -26,8 +26,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -134,7 +134,7 @@ public CmpScheduleType getScheduleType() { @SerializedName(SERIALIZED_NAME_TARGET_DELIVERY_DATE) - private Date targetDeliveryDate; + private OffsetDateTime targetDeliveryDate; /** * If `schedule_type` is `target_delivery_date`, provide a targeted delivery date for mail pieces in this campaign. * @return targetDeliveryDate @@ -144,7 +144,7 @@ public CmpScheduleType getScheduleType() { @ApiModelProperty(value = "If `schedule_type` is `target_delivery_date`, provide a targeted delivery date for mail pieces in this campaign.") - public Date getTargetDeliveryDate() { + public OffsetDateTime getTargetDeliveryDate() { return targetDeliveryDate; } @@ -155,7 +155,7 @@ public Date getTargetDeliveryDate() { @SerializedName(SERIALIZED_NAME_SEND_DATE) - private Date sendDate; + private OffsetDateTime sendDate; /** * If `schedule_type` is `scheduled_send_date`, provide a date to send this campaign. * @return sendDate @@ -165,7 +165,7 @@ public Date getTargetDeliveryDate() { @ApiModelProperty(value = "If `schedule_type` is `scheduled_send_date`, provide a date to send this campaign.") - public Date getSendDate() { + public OffsetDateTime getSendDate() { return sendDate; } @@ -315,14 +315,14 @@ public Boolean getIsDraft() { public static final String SERIALIZED_NAME_CREATIVES = "creatives"; @SerializedName(SERIALIZED_NAME_CREATIVES) - private List creatives = new ArrayList(); + private List creatives = new ArrayList<>(); public static final String SERIALIZED_NAME_DATE_CREATED = "date_created"; @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -332,7 +332,7 @@ public Boolean getIsDraft() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -343,7 +343,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -353,7 +353,7 @@ public Date getDateCreated() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -505,7 +505,7 @@ public void setScheduleType(CmpScheduleType scheduleType) { /* - public Campaign targetDeliveryDate(Date targetDeliveryDate) { + public Campaign targetDeliveryDate(OffsetDateTime targetDeliveryDate) { this.targetDeliveryDate = targetDeliveryDate; return this; @@ -513,14 +513,14 @@ public Campaign targetDeliveryDate(Date targetDeliveryDate) { */ - public void setTargetDeliveryDate(Date targetDeliveryDate) { + public void setTargetDeliveryDate(OffsetDateTime targetDeliveryDate) { this.targetDeliveryDate = targetDeliveryDate; } /* - public Campaign sendDate(Date sendDate) { + public Campaign sendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; return this; @@ -528,7 +528,7 @@ public Campaign sendDate(Date sendDate) { */ - public void setSendDate(Date sendDate) { + public void setSendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; } @@ -665,7 +665,7 @@ public void setCreatives(List creatives) { /* - public Campaign dateCreated(Date dateCreated) { + public Campaign dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -673,14 +673,14 @@ public Campaign dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public Campaign dateModified(Date dateModified) { + public Campaign dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -688,7 +688,7 @@ public Campaign dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } diff --git a/src/main/java/com/lob/model/CampaignCreative.java b/src/main/java/com/lob/model/CampaignCreative.java index f4e910df..385d1a80 100644 --- a/src/main/java/com/lob/model/CampaignCreative.java +++ b/src/main/java/com/lob/model/CampaignCreative.java @@ -24,8 +24,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -284,7 +284,7 @@ public List getCampaigns() { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -294,7 +294,7 @@ public List getCampaigns() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -305,7 +305,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -315,7 +315,7 @@ public Date getDateCreated() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -554,7 +554,7 @@ public void setCampaigns(List campaigns) { /* - public CampaignCreative dateCreated(Date dateCreated) { + public CampaignCreative dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -562,14 +562,14 @@ public CampaignCreative dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public CampaignCreative dateModified(Date dateModified) { + public CampaignCreative dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -577,7 +577,7 @@ public CampaignCreative dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } diff --git a/src/main/java/com/lob/model/CampaignUpdatable.java b/src/main/java/com/lob/model/CampaignUpdatable.java index 67614e44..b04ac2fb 100644 --- a/src/main/java/com/lob/model/CampaignUpdatable.java +++ b/src/main/java/com/lob/model/CampaignUpdatable.java @@ -25,7 +25,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Date; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -107,7 +107,7 @@ public CmpScheduleType getScheduleType() { @SerializedName(SERIALIZED_NAME_TARGET_DELIVERY_DATE) - private Date targetDeliveryDate; + private OffsetDateTime targetDeliveryDate; /** * If `schedule_type` is `target_delivery_date`, provide a targeted delivery date for mail pieces in this campaign. * @return targetDeliveryDate @@ -117,7 +117,7 @@ public CmpScheduleType getScheduleType() { @ApiModelProperty(value = "If `schedule_type` is `target_delivery_date`, provide a targeted delivery date for mail pieces in this campaign.") - public Date getTargetDeliveryDate() { + public OffsetDateTime getTargetDeliveryDate() { return targetDeliveryDate; } @@ -128,7 +128,7 @@ public Date getTargetDeliveryDate() { @SerializedName(SERIALIZED_NAME_SEND_DATE) - private Date sendDate; + private OffsetDateTime sendDate; /** * If `schedule_type` is `scheduled_send_date`, provide a date to send this campaign. * @return sendDate @@ -138,7 +138,7 @@ public Date getTargetDeliveryDate() { @ApiModelProperty(value = "If `schedule_type` is `scheduled_send_date`, provide a date to send this campaign.") - public Date getSendDate() { + public OffsetDateTime getSendDate() { return sendDate; } @@ -286,7 +286,7 @@ public void setScheduleType(CmpScheduleType scheduleType) { /* - public CampaignUpdatable targetDeliveryDate(Date targetDeliveryDate) { + public CampaignUpdatable targetDeliveryDate(OffsetDateTime targetDeliveryDate) { this.targetDeliveryDate = targetDeliveryDate; return this; @@ -294,14 +294,14 @@ public CampaignUpdatable targetDeliveryDate(Date targetDeliveryDate) { */ - public void setTargetDeliveryDate(Date targetDeliveryDate) { + public void setTargetDeliveryDate(OffsetDateTime targetDeliveryDate) { this.targetDeliveryDate = targetDeliveryDate; } /* - public CampaignUpdatable sendDate(Date sendDate) { + public CampaignUpdatable sendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; return this; @@ -309,7 +309,7 @@ public CampaignUpdatable sendDate(Date sendDate) { */ - public void setSendDate(Date sendDate) { + public void setSendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; } diff --git a/src/main/java/com/lob/model/CampaignWritable.java b/src/main/java/com/lob/model/CampaignWritable.java index c03d5392..db0f5ac4 100644 --- a/src/main/java/com/lob/model/CampaignWritable.java +++ b/src/main/java/com/lob/model/CampaignWritable.java @@ -25,7 +25,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Date; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -132,7 +132,7 @@ public CmpScheduleType getScheduleType() { @SerializedName(SERIALIZED_NAME_TARGET_DELIVERY_DATE) - private Date targetDeliveryDate; + private OffsetDateTime targetDeliveryDate; /** * If `schedule_type` is `target_delivery_date`, provide a targeted delivery date for mail pieces in this campaign. * @return targetDeliveryDate @@ -142,7 +142,7 @@ public CmpScheduleType getScheduleType() { @ApiModelProperty(value = "If `schedule_type` is `target_delivery_date`, provide a targeted delivery date for mail pieces in this campaign.") - public Date getTargetDeliveryDate() { + public OffsetDateTime getTargetDeliveryDate() { return targetDeliveryDate; } @@ -153,7 +153,7 @@ public Date getTargetDeliveryDate() { @SerializedName(SERIALIZED_NAME_SEND_DATE) - private Date sendDate; + private OffsetDateTime sendDate; /** * If `schedule_type` is `scheduled_send_date`, provide a date to send this campaign. * @return sendDate @@ -163,7 +163,7 @@ public Date getTargetDeliveryDate() { @ApiModelProperty(value = "If `schedule_type` is `scheduled_send_date`, provide a date to send this campaign.") - public Date getSendDate() { + public OffsetDateTime getSendDate() { return sendDate; } @@ -302,7 +302,7 @@ public void setScheduleType(CmpScheduleType scheduleType) { /* - public CampaignWritable targetDeliveryDate(Date targetDeliveryDate) { + public CampaignWritable targetDeliveryDate(OffsetDateTime targetDeliveryDate) { this.targetDeliveryDate = targetDeliveryDate; return this; @@ -310,14 +310,14 @@ public CampaignWritable targetDeliveryDate(Date targetDeliveryDate) { */ - public void setTargetDeliveryDate(Date targetDeliveryDate) { + public void setTargetDeliveryDate(OffsetDateTime targetDeliveryDate) { this.targetDeliveryDate = targetDeliveryDate; } /* - public CampaignWritable sendDate(Date sendDate) { + public CampaignWritable sendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; return this; @@ -325,7 +325,7 @@ public CampaignWritable sendDate(Date sendDate) { */ - public void setSendDate(Date sendDate) { + public void setSendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; } diff --git a/src/main/java/com/lob/model/Card.java b/src/main/java/com/lob/model/Card.java index c5da2c99..e7b1b7bb 100644 --- a/src/main/java/com/lob/model/Card.java +++ b/src/main/java/com/lob/model/Card.java @@ -25,8 +25,8 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.net.URI; +import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Date; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; @@ -192,7 +192,7 @@ public URI getBackOriginalUrl() { public static final String SERIALIZED_NAME_THUMBNAILS = "thumbnails"; @SerializedName(SERIALIZED_NAME_THUMBNAILS) - private List thumbnails = new ArrayList(); + private List thumbnails = new ArrayList<>(); public List getThumbnails() { if (this.thumbnails == null) { this.thumbnails = new ArrayList(); @@ -404,7 +404,7 @@ public Integer getThresholdAmount() { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -414,7 +414,7 @@ public Integer getThresholdAmount() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -425,7 +425,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -435,7 +435,7 @@ public Date getDateCreated() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -816,7 +816,7 @@ public void setThresholdAmount(Integer thresholdAmount) { /* - public Card dateCreated(Date dateCreated) { + public Card dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -824,14 +824,14 @@ public Card dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public Card dateModified(Date dateModified) { + public Card dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -839,7 +839,7 @@ public Card dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } diff --git a/src/main/java/com/lob/model/CardOrder.java b/src/main/java/com/lob/model/CardOrder.java index 9de367f6..197b7649 100644 --- a/src/main/java/com/lob/model/CardOrder.java +++ b/src/main/java/com/lob/model/CardOrder.java @@ -24,7 +24,7 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; -import java.util.Date; +import java.time.OffsetDateTime; import com.google.gson.Gson; import java.util.HashMap; @@ -247,7 +247,7 @@ public String getCancelledReason() { @SerializedName(SERIALIZED_NAME_AVAILABILITY_DATE) - private Date availabilityDate; + private OffsetDateTime availabilityDate; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return availabilityDate @@ -257,7 +257,7 @@ public String getCancelledReason() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getAvailabilityDate() { + public OffsetDateTime getAvailabilityDate() { return availabilityDate; } @@ -268,7 +268,7 @@ public Date getAvailabilityDate() { @SerializedName(SERIALIZED_NAME_EXPECTED_AVAILABILITY_DATE) - private Date expectedAvailabilityDate; + private OffsetDateTime expectedAvailabilityDate; /** * The fixed deadline for the cards to be printed. * @return expectedAvailabilityDate @@ -278,7 +278,7 @@ public Date getAvailabilityDate() { @ApiModelProperty(value = "The fixed deadline for the cards to be printed.") - public Date getExpectedAvailabilityDate() { + public OffsetDateTime getExpectedAvailabilityDate() { return expectedAvailabilityDate; } @@ -289,7 +289,7 @@ public Date getExpectedAvailabilityDate() { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -299,7 +299,7 @@ public Date getExpectedAvailabilityDate() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -310,7 +310,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -320,7 +320,7 @@ public Date getDateCreated() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -469,7 +469,7 @@ public void setCancelledReason(String cancelledReason) { /* - public CardOrder availabilityDate(Date availabilityDate) { + public CardOrder availabilityDate(OffsetDateTime availabilityDate) { this.availabilityDate = availabilityDate; return this; @@ -477,14 +477,14 @@ public CardOrder availabilityDate(Date availabilityDate) { */ - public void setAvailabilityDate(Date availabilityDate) { + public void setAvailabilityDate(OffsetDateTime availabilityDate) { this.availabilityDate = availabilityDate; } /* - public CardOrder expectedAvailabilityDate(Date expectedAvailabilityDate) { + public CardOrder expectedAvailabilityDate(OffsetDateTime expectedAvailabilityDate) { this.expectedAvailabilityDate = expectedAvailabilityDate; return this; @@ -492,14 +492,14 @@ public CardOrder expectedAvailabilityDate(Date expectedAvailabilityDate) { */ - public void setExpectedAvailabilityDate(Date expectedAvailabilityDate) { + public void setExpectedAvailabilityDate(OffsetDateTime expectedAvailabilityDate) { this.expectedAvailabilityDate = expectedAvailabilityDate; } /* - public CardOrder dateCreated(Date dateCreated) { + public CardOrder dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -507,14 +507,14 @@ public CardOrder dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public CardOrder dateModified(Date dateModified) { + public CardOrder dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -522,7 +522,7 @@ public CardOrder dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } diff --git a/src/main/java/com/lob/model/Check.java b/src/main/java/com/lob/model/Check.java index d8e09c37..6936c9dc 100644 --- a/src/main/java/com/lob/model/Check.java +++ b/src/main/java/com/lob/model/Check.java @@ -28,8 +28,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.LocalDate; +import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -168,7 +169,7 @@ public Object getMergeVariables() { @SerializedName(SERIALIZED_NAME_SEND_DATE) - private Date sendDate; + private OffsetDateTime sendDate; /** * A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC. * @return sendDate @@ -178,7 +179,7 @@ public Object getMergeVariables() { @ApiModelProperty(value = "A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC.") - public Date getSendDate() { + public OffsetDateTime getSendDate() { return sendDate; } @@ -565,7 +566,7 @@ public List getThumbnails() { @SerializedName(SERIALIZED_NAME_EXPECTED_DELIVERY_DATE) - private Date expectedDeliveryDate; + private LocalDate expectedDeliveryDate; /** * A date in YYYY-MM-DD format of the mailpiece's expected delivery date based on its `send_date`. * @return expectedDeliveryDate @@ -575,7 +576,7 @@ public List getThumbnails() { @ApiModelProperty(value = "A date in YYYY-MM-DD format of the mailpiece's expected delivery date based on its `send_date`.") - public Date getExpectedDeliveryDate() { + public LocalDate getExpectedDeliveryDate() { return expectedDeliveryDate; } @@ -663,7 +664,7 @@ public ObjectEnum getObject() { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -673,7 +674,7 @@ public ObjectEnum getObject() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -684,7 +685,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -694,7 +695,7 @@ public Date getDateCreated() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -839,7 +840,7 @@ public void setMergeVariables(Object mergeVariables) { /* - public Check sendDate(Date sendDate) { + public Check sendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; return this; @@ -847,7 +848,7 @@ public Check sendDate(Date sendDate) { */ - public void setSendDate(Date sendDate) { + public void setSendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; } @@ -1042,7 +1043,7 @@ public void setThumbnails(List thumbnails) { /* - public Check expectedDeliveryDate(Date expectedDeliveryDate) { + public Check expectedDeliveryDate(LocalDate expectedDeliveryDate) { this.expectedDeliveryDate = expectedDeliveryDate; return this; @@ -1050,7 +1051,7 @@ public Check expectedDeliveryDate(Date expectedDeliveryDate) { */ - public void setExpectedDeliveryDate(Date expectedDeliveryDate) { + public void setExpectedDeliveryDate(LocalDate expectedDeliveryDate) { this.expectedDeliveryDate = expectedDeliveryDate; } @@ -1095,7 +1096,7 @@ public void setObject(ObjectEnum _object) { /* - public Check dateCreated(Date dateCreated) { + public Check dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -1103,14 +1104,14 @@ public Check dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public Check dateModified(Date dateModified) { + public Check dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -1118,7 +1119,7 @@ public Check dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } diff --git a/src/main/java/com/lob/model/CheckEditable.java b/src/main/java/com/lob/model/CheckEditable.java index 3fbb86b5..c1e0b0a8 100644 --- a/src/main/java/com/lob/model/CheckEditable.java +++ b/src/main/java/com/lob/model/CheckEditable.java @@ -24,7 +24,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Date; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -246,7 +246,7 @@ public Object getMergeVariables() { @SerializedName(SERIALIZED_NAME_SEND_DATE) - private Date sendDate; + private OffsetDateTime sendDate; /** * A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC. * @return sendDate @@ -256,7 +256,7 @@ public Object getMergeVariables() { @ApiModelProperty(value = "A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC.") - public Date getSendDate() { + public OffsetDateTime getSendDate() { return sendDate; } @@ -589,7 +589,7 @@ public void setMergeVariables(Object mergeVariables) { /* - public CheckEditable sendDate(Date sendDate) { + public CheckEditable sendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; return this; @@ -597,7 +597,7 @@ public CheckEditable sendDate(Date sendDate) { */ - public void setSendDate(Date sendDate) { + public void setSendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; } diff --git a/src/main/java/com/lob/model/CreativeResponse.java b/src/main/java/com/lob/model/CreativeResponse.java index 9d58821e..226ffcaf 100644 --- a/src/main/java/com/lob/model/CreativeResponse.java +++ b/src/main/java/com/lob/model/CreativeResponse.java @@ -24,8 +24,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -284,7 +284,7 @@ public List getCampaigns() { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -294,7 +294,7 @@ public List getCampaigns() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -305,7 +305,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -315,7 +315,7 @@ public Date getDateCreated() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -554,7 +554,7 @@ public void setCampaigns(List campaigns) { /* - public CreativeResponse dateCreated(Date dateCreated) { + public CreativeResponse dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -562,14 +562,14 @@ public CreativeResponse dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public CreativeResponse dateModified(Date dateModified) { + public CreativeResponse dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -577,7 +577,7 @@ public CreativeResponse dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } diff --git a/src/main/java/com/lob/model/DeliverabilityAnalysis.java b/src/main/java/com/lob/model/DeliverabilityAnalysis.java index 5cd2bb21..cd535cb7 100644 --- a/src/main/java/com/lob/model/DeliverabilityAnalysis.java +++ b/src/main/java/com/lob/model/DeliverabilityAnalysis.java @@ -702,7 +702,7 @@ public DpvDoorNotAccessibleEnum getDpvDoorNotAccessible() { public static final String SERIALIZED_NAME_DPV_FOOTNOTES = "dpv_footnotes"; @SerializedName(SERIALIZED_NAME_DPV_FOOTNOTES) - private List dpvFootnotes = new ArrayList(); + private List dpvFootnotes = new ArrayList<>(); public List getDpvFootnotes() { if (this.dpvFootnotes == null) { this.dpvFootnotes = new ArrayList(); diff --git a/src/main/java/com/lob/model/Events.java b/src/main/java/com/lob/model/Events.java index adfe6a13..98567d22 100644 --- a/src/main/java/com/lob/model/Events.java +++ b/src/main/java/com/lob/model/Events.java @@ -24,7 +24,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Date; +import java.time.OffsetDateTime; import com.google.gson.Gson; import java.util.HashMap; @@ -127,7 +127,7 @@ public EventType getEventType() { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -137,7 +137,7 @@ public EventType getEventType() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -268,7 +268,7 @@ public void setEventType(EventType eventType) { /* - public Events dateCreated(Date dateCreated) { + public Events dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -276,7 +276,7 @@ public Events dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } diff --git a/src/main/java/com/lob/model/Export.java b/src/main/java/com/lob/model/Export.java index 7d5f01d3..4510f2b7 100644 --- a/src/main/java/com/lob/model/Export.java +++ b/src/main/java/com/lob/model/Export.java @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Date; +import java.time.OffsetDateTime; import com.google.gson.Gson; import java.util.HashMap; @@ -63,7 +63,7 @@ public void setId (String id) throws IllegalArgumentException { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the export was created * @return dateCreated @@ -73,7 +73,7 @@ public void setId (String id) throws IllegalArgumentException { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the export was created") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -84,7 +84,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the export was last modified * @return dateModified @@ -94,7 +94,7 @@ public Date getDateCreated() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the export was last modified") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -321,7 +321,7 @@ public Export id(String id) { /* - public Export dateCreated(Date dateCreated) { + public Export dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -329,14 +329,14 @@ public Export dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public Export dateModified(Date dateModified) { + public Export dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -344,7 +344,7 @@ public Export dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } diff --git a/src/main/java/com/lob/model/IntlVerifications.java b/src/main/java/com/lob/model/IntlVerifications.java index 6376cab2..7ffe710a 100644 --- a/src/main/java/com/lob/model/IntlVerifications.java +++ b/src/main/java/com/lob/model/IntlVerifications.java @@ -38,7 +38,7 @@ public class IntlVerifications { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) - private List addresses = new ArrayList(); + private List addresses = new ArrayList<>(); public List getAddresses() { if (this.addresses == null) { this.addresses = new ArrayList(); diff --git a/src/main/java/com/lob/model/IntlVerificationsPayload.java b/src/main/java/com/lob/model/IntlVerificationsPayload.java index 1ddac7fb..0993b8ef 100644 --- a/src/main/java/com/lob/model/IntlVerificationsPayload.java +++ b/src/main/java/com/lob/model/IntlVerificationsPayload.java @@ -38,7 +38,7 @@ public class IntlVerificationsPayload { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) - private List addresses = new ArrayList(); + private List addresses = new ArrayList<>(); public List getAddresses() { if (this.addresses == null) { this.addresses = new ArrayList(); diff --git a/src/main/java/com/lob/model/Letter.java b/src/main/java/com/lob/model/Letter.java index d8539276..ef96196b 100644 --- a/src/main/java/com/lob/model/Letter.java +++ b/src/main/java/com/lob/model/Letter.java @@ -29,8 +29,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.LocalDate; +import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -168,7 +169,7 @@ public List getThumbnails() { @SerializedName(SERIALIZED_NAME_EXPECTED_DELIVERY_DATE) - private Date expectedDeliveryDate; + private LocalDate expectedDeliveryDate; /** * A date in YYYY-MM-DD format of the mailpiece's expected delivery date based on its `send_date`. * @return expectedDeliveryDate @@ -178,7 +179,7 @@ public List getThumbnails() { @ApiModelProperty(value = "A date in YYYY-MM-DD format of the mailpiece's expected delivery date based on its `send_date`.") - public Date getExpectedDeliveryDate() { + public LocalDate getExpectedDeliveryDate() { return expectedDeliveryDate; } @@ -189,7 +190,7 @@ public Date getExpectedDeliveryDate() { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -199,7 +200,7 @@ public Date getExpectedDeliveryDate() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -210,7 +211,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -220,7 +221,7 @@ public Date getDateCreated() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -471,7 +472,7 @@ public Object getMergeVariables() { @SerializedName(SERIALIZED_NAME_SEND_DATE) - private Date sendDate; + private OffsetDateTime sendDate; /** * A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC. * @return sendDate @@ -481,7 +482,7 @@ public Object getMergeVariables() { @ApiModelProperty(value = "A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC.") - public Date getSendDate() { + public OffsetDateTime getSendDate() { return sendDate; } @@ -880,7 +881,7 @@ public void setThumbnails(List thumbnails) { /* - public Letter expectedDeliveryDate(Date expectedDeliveryDate) { + public Letter expectedDeliveryDate(LocalDate expectedDeliveryDate) { this.expectedDeliveryDate = expectedDeliveryDate; return this; @@ -888,14 +889,14 @@ public Letter expectedDeliveryDate(Date expectedDeliveryDate) { */ - public void setExpectedDeliveryDate(Date expectedDeliveryDate) { + public void setExpectedDeliveryDate(LocalDate expectedDeliveryDate) { this.expectedDeliveryDate = expectedDeliveryDate; } /* - public Letter dateCreated(Date dateCreated) { + public Letter dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -903,14 +904,14 @@ public Letter dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public Letter dateModified(Date dateModified) { + public Letter dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -918,7 +919,7 @@ public Letter dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } @@ -1056,7 +1057,7 @@ public void setMergeVariables(Object mergeVariables) { /* - public Letter sendDate(Date sendDate) { + public Letter sendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; return this; @@ -1064,7 +1065,7 @@ public Letter sendDate(Date sendDate) { */ - public void setSendDate(Date sendDate) { + public void setSendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; } diff --git a/src/main/java/com/lob/model/LetterDetailsReturned.java b/src/main/java/com/lob/model/LetterDetailsReturned.java index 61b34d28..35dfdf00 100644 --- a/src/main/java/com/lob/model/LetterDetailsReturned.java +++ b/src/main/java/com/lob/model/LetterDetailsReturned.java @@ -62,7 +62,7 @@ public Boolean getColor() { public static final String SERIALIZED_NAME_CARDS = "cards"; @SerializedName(SERIALIZED_NAME_CARDS) - private List cards = new ArrayList(); + private List cards = new ArrayList<>(); /** * Specifies the location of the address information that will show through the double-window envelope. diff --git a/src/main/java/com/lob/model/LetterDetailsWritable.java b/src/main/java/com/lob/model/LetterDetailsWritable.java index a63b446f..d2390a9f 100644 --- a/src/main/java/com/lob/model/LetterDetailsWritable.java +++ b/src/main/java/com/lob/model/LetterDetailsWritable.java @@ -112,7 +112,7 @@ public AddressPlacementEnum getAddressPlacement() { public static final String SERIALIZED_NAME_CARDS = "cards"; @SerializedName(SERIALIZED_NAME_CARDS) - private List cards = new ArrayList(); + private List cards = new ArrayList<>(); public static final String SERIALIZED_NAME_COLOR = "color"; diff --git a/src/main/java/com/lob/model/LetterEditable.java b/src/main/java/com/lob/model/LetterEditable.java index 7d6ea5f8..146b38ca 100644 --- a/src/main/java/com/lob/model/LetterEditable.java +++ b/src/main/java/com/lob/model/LetterEditable.java @@ -26,8 +26,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -120,7 +120,7 @@ public Object getMergeVariables() { @SerializedName(SERIALIZED_NAME_SEND_DATE) - private Date sendDate; + private OffsetDateTime sendDate; /** * A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC. * @return sendDate @@ -130,7 +130,7 @@ public Object getMergeVariables() { @ApiModelProperty(value = "A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC.") - public Date getSendDate() { + public OffsetDateTime getSendDate() { return sendDate; } @@ -595,7 +595,7 @@ public void setMergeVariables(Object mergeVariables) { /* - public LetterEditable sendDate(Date sendDate) { + public LetterEditable sendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; return this; @@ -603,7 +603,7 @@ public LetterEditable sendDate(Date sendDate) { */ - public void setSendDate(Date sendDate) { + public void setSendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; } diff --git a/src/main/java/com/lob/model/MultipleComponentsList.java b/src/main/java/com/lob/model/MultipleComponentsList.java index e3364530..636ea685 100644 --- a/src/main/java/com/lob/model/MultipleComponentsList.java +++ b/src/main/java/com/lob/model/MultipleComponentsList.java @@ -38,7 +38,7 @@ public class MultipleComponentsList { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) - private List addresses = new ArrayList(); + private List addresses = new ArrayList<>(); public List getAddresses() { if (this.addresses == null) { this.addresses = new ArrayList(); diff --git a/src/main/java/com/lob/model/Postcard.java b/src/main/java/com/lob/model/Postcard.java index 9690f32f..3c1c42df 100644 --- a/src/main/java/com/lob/model/Postcard.java +++ b/src/main/java/com/lob/model/Postcard.java @@ -30,8 +30,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.LocalDate; +import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -215,7 +216,7 @@ public PostcardSize getSize() { @SerializedName(SERIALIZED_NAME_EXPECTED_DELIVERY_DATE) - private Date expectedDeliveryDate; + private LocalDate expectedDeliveryDate; /** * A date in YYYY-MM-DD format of the mailpiece's expected delivery date based on its `send_date`. * @return expectedDeliveryDate @@ -225,7 +226,7 @@ public PostcardSize getSize() { @ApiModelProperty(value = "A date in YYYY-MM-DD format of the mailpiece's expected delivery date based on its `send_date`.") - public Date getExpectedDeliveryDate() { + public LocalDate getExpectedDeliveryDate() { return expectedDeliveryDate; } @@ -236,7 +237,7 @@ public Date getExpectedDeliveryDate() { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -246,7 +247,7 @@ public Date getExpectedDeliveryDate() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -257,7 +258,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -267,7 +268,7 @@ public Date getDateCreated() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -575,7 +576,7 @@ public Object getMergeVariables() { @SerializedName(SERIALIZED_NAME_SEND_DATE) - private Date sendDate; + private OffsetDateTime sendDate; /** * A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC. * @return sendDate @@ -585,7 +586,7 @@ public Object getMergeVariables() { @ApiModelProperty(value = "A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC.") - public Date getSendDate() { + public OffsetDateTime getSendDate() { return sendDate; } @@ -709,7 +710,7 @@ public void setSize(PostcardSize size) { /* - public Postcard expectedDeliveryDate(Date expectedDeliveryDate) { + public Postcard expectedDeliveryDate(LocalDate expectedDeliveryDate) { this.expectedDeliveryDate = expectedDeliveryDate; return this; @@ -717,14 +718,14 @@ public Postcard expectedDeliveryDate(Date expectedDeliveryDate) { */ - public void setExpectedDeliveryDate(Date expectedDeliveryDate) { + public void setExpectedDeliveryDate(LocalDate expectedDeliveryDate) { this.expectedDeliveryDate = expectedDeliveryDate; } /* - public Postcard dateCreated(Date dateCreated) { + public Postcard dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -732,14 +733,14 @@ public Postcard dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public Postcard dateModified(Date dateModified) { + public Postcard dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -747,7 +748,7 @@ public Postcard dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } @@ -935,7 +936,7 @@ public void setMergeVariables(Object mergeVariables) { /* - public Postcard sendDate(Date sendDate) { + public Postcard sendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; return this; @@ -943,7 +944,7 @@ public Postcard sendDate(Date sendDate) { */ - public void setSendDate(Date sendDate) { + public void setSendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; } diff --git a/src/main/java/com/lob/model/PostcardEditable.java b/src/main/java/com/lob/model/PostcardEditable.java index f2dd9860..d90af406 100644 --- a/src/main/java/com/lob/model/PostcardEditable.java +++ b/src/main/java/com/lob/model/PostcardEditable.java @@ -27,7 +27,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Date; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -185,7 +185,7 @@ public Object getMergeVariables() { @SerializedName(SERIALIZED_NAME_SEND_DATE) - private Date sendDate; + private OffsetDateTime sendDate; /** * A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC. * @return sendDate @@ -195,7 +195,7 @@ public Object getMergeVariables() { @ApiModelProperty(value = "A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC.") - public Date getSendDate() { + public OffsetDateTime getSendDate() { return sendDate; } @@ -415,7 +415,7 @@ public void setMergeVariables(Object mergeVariables) { /* - public PostcardEditable sendDate(Date sendDate) { + public PostcardEditable sendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; return this; @@ -423,7 +423,7 @@ public PostcardEditable sendDate(Date sendDate) { */ - public void setSendDate(Date sendDate) { + public void setSendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; } diff --git a/src/main/java/com/lob/model/SelfMailer.java b/src/main/java/com/lob/model/SelfMailer.java index 9144a4c1..71a43e4d 100644 --- a/src/main/java/com/lob/model/SelfMailer.java +++ b/src/main/java/com/lob/model/SelfMailer.java @@ -27,8 +27,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -211,7 +211,7 @@ public Object getMergeVariables() { @SerializedName(SERIALIZED_NAME_SEND_DATE) - private Date sendDate; + private OffsetDateTime sendDate; /** * A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC. * @return sendDate @@ -221,7 +221,7 @@ public Object getMergeVariables() { @ApiModelProperty(value = "A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC.") - public Date getSendDate() { + public OffsetDateTime getSendDate() { return sendDate; } @@ -571,7 +571,7 @@ public void setMergeVariables(Object mergeVariables) { /* - public SelfMailer sendDate(Date sendDate) { + public SelfMailer sendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; return this; @@ -579,7 +579,7 @@ public SelfMailer sendDate(Date sendDate) { */ - public void setSendDate(Date sendDate) { + public void setSendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; } diff --git a/src/main/java/com/lob/model/SelfMailerEditable.java b/src/main/java/com/lob/model/SelfMailerEditable.java index 14caee61..5890a348 100644 --- a/src/main/java/com/lob/model/SelfMailerEditable.java +++ b/src/main/java/com/lob/model/SelfMailerEditable.java @@ -26,7 +26,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Date; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -184,7 +184,7 @@ public Object getMergeVariables() { @SerializedName(SERIALIZED_NAME_SEND_DATE) - private Date sendDate; + private OffsetDateTime sendDate; /** * A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC. * @return sendDate @@ -194,7 +194,7 @@ public Object getMergeVariables() { @ApiModelProperty(value = "A timestamp in ISO 8601 format which specifies a date after the current time and up to 180 days in the future to send the letter off for production. Setting a send date overrides the default [cancellation window](#section/Cancellation-Windows) applied to the mailpiece. Until the `send_date` has passed, the mailpiece can be canceled. If a date in the format `2017-11-01` is passed, it will evaluate to midnight UTC of that date (`2017-11-01T00:00:00.000Z`). If a datetime is passed, that exact time will be used. A `send_date` passed with no time zone will default to UTC, while a `send_date` passed with a time zone will be converted to UTC.") - public Date getSendDate() { + public OffsetDateTime getSendDate() { return sendDate; } @@ -393,7 +393,7 @@ public void setMergeVariables(Object mergeVariables) { /* - public SelfMailerEditable sendDate(Date sendDate) { + public SelfMailerEditable sendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; return this; @@ -401,7 +401,7 @@ public SelfMailerEditable sendDate(Date sendDate) { */ - public void setSendDate(Date sendDate) { + public void setSendDate(OffsetDateTime sendDate) { this.sendDate = sendDate; } diff --git a/src/main/java/com/lob/model/Template.java b/src/main/java/com/lob/model/Template.java index 3d0adff8..01cbb8f4 100644 --- a/src/main/java/com/lob/model/Template.java +++ b/src/main/java/com/lob/model/Template.java @@ -24,8 +24,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.OffsetDateTime; import java.util.ArrayList; -import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -88,7 +88,7 @@ public void setId (String id) throws IllegalArgumentException { public static final String SERIALIZED_NAME_VERSIONS = "versions"; @SerializedName(SERIALIZED_NAME_VERSIONS) - private List versions = new ArrayList(); + private List versions = new ArrayList<>(); public List getVersions() { if (this.versions == null) { this.versions = new ArrayList(); @@ -199,7 +199,7 @@ public Map getMetadata() { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -209,7 +209,7 @@ public Map getMetadata() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -220,7 +220,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -230,7 +230,7 @@ public Date getDateCreated() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -359,7 +359,7 @@ public void setMetadata(Map metadata) { /* - public Template dateCreated(Date dateCreated) { + public Template dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -367,14 +367,14 @@ public Template dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public Template dateModified(Date dateModified) { + public Template dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -382,7 +382,7 @@ public Template dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } diff --git a/src/main/java/com/lob/model/TemplateVersion.java b/src/main/java/com/lob/model/TemplateVersion.java index 81d112d0..57cb651d 100644 --- a/src/main/java/com/lob/model/TemplateVersion.java +++ b/src/main/java/com/lob/model/TemplateVersion.java @@ -24,7 +24,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Date; +import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -170,7 +170,7 @@ public Object getMergeVariables() { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -180,7 +180,7 @@ public Object getMergeVariables() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -191,7 +191,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -201,7 +201,7 @@ public Date getDateCreated() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -383,7 +383,7 @@ public void setMergeVariables(Object mergeVariables) { /* - public TemplateVersion dateCreated(Date dateCreated) { + public TemplateVersion dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -391,14 +391,14 @@ public TemplateVersion dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public TemplateVersion dateModified(Date dateModified) { + public TemplateVersion dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -406,7 +406,7 @@ public TemplateVersion dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } diff --git a/src/main/java/com/lob/model/TrackingEventCertified.java b/src/main/java/com/lob/model/TrackingEventCertified.java index 5a2cae27..3e5a996b 100644 --- a/src/main/java/com/lob/model/TrackingEventCertified.java +++ b/src/main/java/com/lob/model/TrackingEventCertified.java @@ -24,7 +24,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Date; +import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -255,7 +255,7 @@ public void setId (String id) throws IllegalArgumentException { @SerializedName(SERIALIZED_NAME_TIME) - private Date time; + private OffsetDateTime time; /** * A timestamp in ISO 8601 format of the date USPS registered the event. * @return time @@ -265,7 +265,7 @@ public void setId (String id) throws IllegalArgumentException { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date USPS registered the event.") - public Date getTime() { + public OffsetDateTime getTime() { return time; } @@ -276,7 +276,7 @@ public Date getTime() { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -286,7 +286,7 @@ public Date getTime() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -297,7 +297,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -307,7 +307,7 @@ public Date getDateCreated() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -453,7 +453,7 @@ public TrackingEventCertified id(String id) { /* - public TrackingEventCertified time(Date time) { + public TrackingEventCertified time(OffsetDateTime time) { this.time = time; return this; @@ -461,14 +461,14 @@ public TrackingEventCertified time(Date time) { */ - public void setTime(Date time) { + public void setTime(OffsetDateTime time) { this.time = time; } /* - public TrackingEventCertified dateCreated(Date dateCreated) { + public TrackingEventCertified dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -476,14 +476,14 @@ public TrackingEventCertified dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public TrackingEventCertified dateModified(Date dateModified) { + public TrackingEventCertified dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -491,7 +491,7 @@ public TrackingEventCertified dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } diff --git a/src/main/java/com/lob/model/TrackingEventNormal.java b/src/main/java/com/lob/model/TrackingEventNormal.java index f29c7eca..c31ba141 100644 --- a/src/main/java/com/lob/model/TrackingEventNormal.java +++ b/src/main/java/com/lob/model/TrackingEventNormal.java @@ -23,7 +23,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Date; +import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -231,7 +231,7 @@ public void setId (String id) throws IllegalArgumentException { @SerializedName(SERIALIZED_NAME_TIME) - private Date time; + private OffsetDateTime time; /** * A timestamp in ISO 8601 format of the date USPS registered the event. * @return time @@ -241,7 +241,7 @@ public void setId (String id) throws IllegalArgumentException { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date USPS registered the event.") - public Date getTime() { + public OffsetDateTime getTime() { return time; } @@ -252,7 +252,7 @@ public Date getTime() { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the resource was created. * @return dateCreated @@ -262,7 +262,7 @@ public Date getTime() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was created.") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -273,7 +273,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the resource was last modified. * @return dateModified @@ -283,7 +283,7 @@ public Date getDateCreated() { @ApiModelProperty(value = "A timestamp in ISO 8601 format of the date the resource was last modified.") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -426,7 +426,7 @@ public TrackingEventNormal id(String id) { /* - public TrackingEventNormal time(Date time) { + public TrackingEventNormal time(OffsetDateTime time) { this.time = time; return this; @@ -434,14 +434,14 @@ public TrackingEventNormal time(Date time) { */ - public void setTime(Date time) { + public void setTime(OffsetDateTime time) { this.time = time; } /* - public TrackingEventNormal dateCreated(Date dateCreated) { + public TrackingEventNormal dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -449,14 +449,14 @@ public TrackingEventNormal dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public TrackingEventNormal dateModified(Date dateModified) { + public TrackingEventNormal dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -464,7 +464,7 @@ public TrackingEventNormal dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } diff --git a/src/main/java/com/lob/model/Upload.java b/src/main/java/com/lob/model/Upload.java index 2ae266aa..37b0ffd5 100644 --- a/src/main/java/com/lob/model/Upload.java +++ b/src/main/java/com/lob/model/Upload.java @@ -27,7 +27,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.Date; +import java.time.OffsetDateTime; import com.google.gson.Gson; import java.util.HashMap; @@ -324,7 +324,7 @@ public Integer getBytesProcessed() { @SerializedName(SERIALIZED_NAME_DATE_CREATED) - private Date dateCreated; + private OffsetDateTime dateCreated; /** * A timestamp in ISO 8601 format of the date the upload was created * @return dateCreated @@ -334,7 +334,7 @@ public Integer getBytesProcessed() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the upload was created") - public Date getDateCreated() { + public OffsetDateTime getDateCreated() { return dateCreated; } @@ -345,7 +345,7 @@ public Date getDateCreated() { @SerializedName(SERIALIZED_NAME_DATE_MODIFIED) - private Date dateModified; + private OffsetDateTime dateModified; /** * A timestamp in ISO 8601 format of the date the upload was last modified * @return dateModified @@ -355,7 +355,7 @@ public Date getDateCreated() { @ApiModelProperty(required = true, value = "A timestamp in ISO 8601 format of the date the upload was last modified") - public Date getDateModified() { + public OffsetDateTime getDateModified() { return dateModified; } @@ -609,7 +609,7 @@ public void setBytesProcessed(Integer bytesProcessed) { /* - public Upload dateCreated(Date dateCreated) { + public Upload dateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; return this; @@ -617,14 +617,14 @@ public Upload dateCreated(Date dateCreated) { */ - public void setDateCreated(Date dateCreated) { + public void setDateCreated(OffsetDateTime dateCreated) { this.dateCreated = dateCreated; } /* - public Upload dateModified(Date dateModified) { + public Upload dateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; return this; @@ -632,7 +632,7 @@ public Upload dateModified(Date dateModified) { */ - public void setDateModified(Date dateModified) { + public void setDateModified(OffsetDateTime dateModified) { this.dateModified = dateModified; } diff --git a/src/main/java/com/lob/model/UploadsMetadata.java b/src/main/java/com/lob/model/UploadsMetadata.java index 1ca624cd..2228ad8b 100644 --- a/src/main/java/com/lob/model/UploadsMetadata.java +++ b/src/main/java/com/lob/model/UploadsMetadata.java @@ -38,7 +38,7 @@ public class UploadsMetadata { public static final String SERIALIZED_NAME_COLUMNS = "columns"; @SerializedName(SERIALIZED_NAME_COLUMNS) - private List columns = new ArrayList(); + private List columns = new ArrayList<>(); /* diff --git a/src/main/java/com/lob/model/UsVerifications.java b/src/main/java/com/lob/model/UsVerifications.java index 78b811af..9ca0caf4 100644 --- a/src/main/java/com/lob/model/UsVerifications.java +++ b/src/main/java/com/lob/model/UsVerifications.java @@ -38,7 +38,7 @@ public class UsVerifications { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) - private List addresses = new ArrayList(); + private List addresses = new ArrayList<>(); public List getAddresses() { if (this.addresses == null) { this.addresses = new ArrayList(); diff --git a/src/main/java/com/lob/model/Zip.java b/src/main/java/com/lob/model/Zip.java index 1f50eb9c..c471936e 100644 --- a/src/main/java/com/lob/model/Zip.java +++ b/src/main/java/com/lob/model/Zip.java @@ -89,7 +89,7 @@ public void setId (String id) throws IllegalArgumentException { public static final String SERIALIZED_NAME_CITIES = "cities"; @SerializedName(SERIALIZED_NAME_CITIES) - private List cities = new ArrayList(); + private List cities = new ArrayList<>(); public List getCities() { if (this.cities == null) { this.cities = new ArrayList(); diff --git a/src/test/java/com/lob/api/client/AddressesApiTest.java b/src/test/java/com/lob/api/client/AddressesApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/BankAccountsApiTest.java b/src/test/java/com/lob/api/client/BankAccountsApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/BillingGroupsApiTest.java b/src/test/java/com/lob/api/client/BillingGroupsApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/BuckslipOrdersApiTest.java b/src/test/java/com/lob/api/client/BuckslipOrdersApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/BuckslipsApiTest.java b/src/test/java/com/lob/api/client/BuckslipsApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/CampaignsApiTest.java b/src/test/java/com/lob/api/client/CampaignsApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/CardOrdersApiTest.java b/src/test/java/com/lob/api/client/CardOrdersApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/CardsApiTest.java b/src/test/java/com/lob/api/client/CardsApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/ChecksApiTest.java b/src/test/java/com/lob/api/client/ChecksApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/CreativesApiTest.java b/src/test/java/com/lob/api/client/CreativesApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/DefaultApiTest.java b/src/test/java/com/lob/api/client/DefaultApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/IdentityValidationApiTest.java b/src/test/java/com/lob/api/client/IdentityValidationApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/IntlAutocompletionsApiTest.java b/src/test/java/com/lob/api/client/IntlAutocompletionsApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/IntlVerificationsApiTest.java b/src/test/java/com/lob/api/client/IntlVerificationsApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/LettersApiTest.java b/src/test/java/com/lob/api/client/LettersApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/PostcardsApiTest.java b/src/test/java/com/lob/api/client/PostcardsApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/ReverseGeocodeLookupsApiTest.java b/src/test/java/com/lob/api/client/ReverseGeocodeLookupsApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/SelfMailersApiTest.java b/src/test/java/com/lob/api/client/SelfMailersApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/TemplateVersionsApiTest.java b/src/test/java/com/lob/api/client/TemplateVersionsApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/TemplatesApiTest.java b/src/test/java/com/lob/api/client/TemplatesApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/UploadsApiTest.java b/src/test/java/com/lob/api/client/UploadsApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/UsAutocompletionsApiTest.java b/src/test/java/com/lob/api/client/UsAutocompletionsApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/UsVerificationsApiTest.java b/src/test/java/com/lob/api/client/UsVerificationsApiTest.java old mode 100755 new mode 100644 diff --git a/src/test/java/com/lob/api/client/ZipLookupsApiTest.java b/src/test/java/com/lob/api/client/ZipLookupsApiTest.java old mode 100755 new mode 100644