Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/test/java/com/resend/services/apikeys/ApiKeysTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ public class ApiKeysTest {

private static final String LIST_RESPONSE_JSON = "{\"data\":[" +
"{\"id\":\"abcdefg-4321-5678-ijklmnop\",\"name\":\"Production\"," +
"\"created_at\":\"2023-04-08T00:11:13.110779+00:00\",\"last_used_at\":\"2023-04-26T20:21:26.844Z\"}," +
"\"created_at\":\"2023-04-08 00:11:13.110779+00\",\"last_used_at\":\"2023-04-26 20:21:26.844+00\"}," +
"{\"id\":\"abcdefg-1234-5678-ijklmnop\",\"name\":\"Staging\"," +
"\"created_at\":\"2023-04-08T00:11:13.110779+00:00\"}" +
"\"created_at\":\"2023-04-08 00:11:13.110779+00\"}" +
"],\"has_more\":true,\"object\":\"list\"}";

@Mock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ public class AudiencesTest {
"{\"id\":\"123\",\"name\":\"aud\",\"object\":\"audience\"}";

private static final String LIST_RESPONSE_JSON = "{\"data\":[" +
"{\"id\":\"1\",\"name\":\"test1\",\"created_at\":\"2023-04-08T00:11:13.110779+00:00\"}," +
"{\"id\":\"2\",\"name\":\"test2\",\"created_at\":\"2023-04-08T00:11:13.110779+00:00\"}," +
"{\"id\":\"3\",\"name\":\"test3\",\"created_at\":\"2023-04-08T00:11:13.110779+00:00\"}" +
"{\"id\":\"1\",\"name\":\"test1\",\"created_at\":\"2023-04-08 00:11:13.110779+00\"}," +
"{\"id\":\"2\",\"name\":\"test2\",\"created_at\":\"2023-04-08 00:11:13.110779+00\"}," +
"{\"id\":\"3\",\"name\":\"test3\",\"created_at\":\"2023-04-08 00:11:13.110779+00\"}" +
"],\"object\":\"list\",\"has_more\":true}";

private static final String REMOVE_RESPONSE_JSON =
"{\"id\":\"123\",\"object\":\"audience\",\"deleted\":true}";

private static final String GET_RESPONSE_JSON =
"{\"id\":\"123\",\"name\":\"aud\",\"created_at\":\"2023-04-08T00:11:13.110779+00:00\",\"object\":\"audience\"}";
"{\"id\":\"123\",\"name\":\"aud\",\"created_at\":\"2023-04-08 00:11:13.110779+00\",\"object\":\"audience\"}";

@Mock
private IHttpClient httpClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ public class AutomationsTest {
private static final String GET_AUTOMATION_JSON =
"{\"object\":\"automation\",\"id\":\"" + AUTOMATION_ID + "\"," +
"\"name\":\"Welcome Automation\",\"status\":\"enabled\"," +
"\"created_at\":\"2024-12-01T10:00:00.000Z\",\"updated_at\":\"2024-12-02T10:00:00.000Z\"," +
"\"created_at\":\"2024-12-01 10:00:00+00\",\"updated_at\":\"2024-12-02 10:00:00+00\"," +
"\"steps\":[],\"connections\":[]}";

private static final String LIST_AUTOMATIONS_JSON =
"{\"object\":\"list\",\"has_more\":false,\"data\":[" +
"{\"id\":\"1\",\"name\":\"Automation 1\",\"status\":\"enabled\",\"created_at\":\"2024-12-01T10:00:00.000Z\",\"updated_at\":\"2024-12-01T10:00:00.000Z\"}," +
"{\"id\":\"2\",\"name\":\"Automation 2\",\"status\":\"disabled\",\"created_at\":\"2024-12-02T10:00:00.000Z\",\"updated_at\":\"2024-12-02T10:00:00.000Z\"}," +
"{\"id\":\"3\",\"name\":\"Automation 3\",\"status\":\"enabled\",\"created_at\":\"2024-12-03T10:00:00.000Z\",\"updated_at\":\"2024-12-03T10:00:00.000Z\"}" +
"{\"id\":\"1\",\"name\":\"Automation 1\",\"status\":\"enabled\",\"created_at\":\"2024-12-01 10:00:00+00\",\"updated_at\":\"2024-12-01 10:00:00+00\"}," +
"{\"id\":\"2\",\"name\":\"Automation 2\",\"status\":\"disabled\",\"created_at\":\"2024-12-02 10:00:00+00\",\"updated_at\":\"2024-12-02 10:00:00+00\"}," +
"{\"id\":\"3\",\"name\":\"Automation 3\",\"status\":\"enabled\",\"created_at\":\"2024-12-03 10:00:00+00\",\"updated_at\":\"2024-12-03 10:00:00+00\"}" +
"]}";

private static final String UPDATE_AUTOMATION_JSON =
Expand All @@ -48,15 +48,15 @@ public class AutomationsTest {

private static final String LIST_RUNS_JSON =
"{\"object\":\"list\",\"has_more\":false,\"data\":[" +
"{\"id\":\"run_1\",\"status\":\"completed\",\"started_at\":\"2024-12-01T10:00:00.000Z\",\"finished_at\":\"2024-12-01T10:05:00.000Z\",\"created_at\":\"2024-12-01T10:00:00.000Z\"}," +
"{\"id\":\"run_2\",\"status\":\"running\",\"started_at\":\"2024-12-02T10:00:00.000Z\",\"created_at\":\"2024-12-02T10:00:00.000Z\"}," +
"{\"id\":\"run_3\",\"status\":\"failed\",\"started_at\":\"2024-12-03T10:00:00.000Z\",\"finished_at\":\"2024-12-03T10:02:00.000Z\",\"created_at\":\"2024-12-03T10:00:00.000Z\"}" +
"{\"id\":\"run_1\",\"status\":\"completed\",\"started_at\":\"2024-12-01 10:00:00+00\",\"finished_at\":\"2024-12-01 10:05:00+00\",\"created_at\":\"2024-12-01 10:00:00+00\"}," +
"{\"id\":\"run_2\",\"status\":\"running\",\"started_at\":\"2024-12-02 10:00:00+00\",\"created_at\":\"2024-12-02 10:00:00+00\"}," +
"{\"id\":\"run_3\",\"status\":\"failed\",\"started_at\":\"2024-12-03 10:00:00+00\",\"finished_at\":\"2024-12-03 10:02:00+00\",\"created_at\":\"2024-12-03 10:00:00+00\"}" +
"]}";

private static final String GET_RUN_JSON =
"{\"object\":\"automation_run\",\"id\":\"run_1\",\"status\":\"completed\"," +
"\"started_at\":\"2024-12-01T10:00:00.000Z\",\"finished_at\":\"2024-12-01T10:00:05.000Z\"," +
"\"created_at\":\"2024-12-01T10:00:00.000Z\",\"steps\":[]}";
"\"started_at\":\"2024-12-01 10:00:00+00\",\"finished_at\":\"2024-12-01 10:00:05+00\"," +
"\"created_at\":\"2024-12-01 10:00:00+00\",\"steps\":[]}";

@Mock
private IHttpClient httpClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class BroadcastsTest {
"{\"id\":\"" + GET_BROADCAST_ID + "\"," +
"\"audience_id\":\"" + AUDIENCE_ID + "\"," +
"\"status\":\"draft\"," +
"\"created_at\":\"2024-12-01T19:32:22.980Z\"," +
"\"created_at\":\"2024-12-01 19:32:22.98+00\"," +
"\"object\":\"broadcast\"," +
"\"name\":\"Announcements\"," +
"\"from\":\"Acme <onboarding@resend.dev>\"," +
Expand All @@ -44,9 +44,9 @@ public class BroadcastsTest {

private static final String LIST_RESPONSE_JSON =
"{\"object\":\"list\",\"has_more\":true,\"data\":[" +
"{\"id\":\"1\",\"audience_id\":\"" + AUDIENCE_ID + "\",\"status\":\"draft\",\"created_at\":\"2024-12-01T19:32:22.980Z\"}," +
"{\"id\":\"2\",\"audience_id\":\"" + AUDIENCE_ID + "\",\"status\":\"sent\",\"created_at\":\"2024-12-02T10:15:30.000Z\"}," +
"{\"id\":\"3\",\"audience_id\":\"" + AUDIENCE_ID + "\",\"status\":\"queued\",\"created_at\":\"2024-12-03T08:45:00.000Z\"}" +
"{\"id\":\"1\",\"audience_id\":\"" + AUDIENCE_ID + "\",\"status\":\"draft\",\"created_at\":\"2024-12-01 19:32:22.98+00\"}," +
"{\"id\":\"2\",\"audience_id\":\"" + AUDIENCE_ID + "\",\"status\":\"sent\",\"created_at\":\"2024-12-02 10:15:30+00\"}," +
"{\"id\":\"3\",\"audience_id\":\"" + AUDIENCE_ID + "\",\"status\":\"queued\",\"created_at\":\"2024-12-03 08:45:00+00\"}" +
"]}";

private static final String SEND_RESPONSE_JSON =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ public class ContactPropertiesTest {

private static final String CREATE_RESPONSE_JSON = "{\"id\":\"123\",\"object\":\"contact_property\"}";
private static final String GET_RESPONSE_JSON =
"{\"id\":\"123\",\"key\":\"age\",\"created_at\":\"2023-04-08T00:11:13.110779+00:00\",\"type\":\"number\",\"fallback_value\":\"25\"}";
"{\"id\":\"123\",\"key\":\"age\",\"created_at\":\"2023-04-08 00:11:13.110779+00\",\"type\":\"number\",\"fallback_value\":\"25\"}";
private static final String UPDATE_RESPONSE_JSON = "{\"id\":\"123\",\"object\":\"contact_property\"}";
private static final String REMOVE_RESPONSE_JSON = "{\"id\":\"123\",\"object\":\"contact_property\",\"deleted\":true}";
private static final String LIST_RESPONSE_JSON =
"{\"data\":[" +
"{\"id\":\"1\",\"key\":\"age\",\"created_at\":\"2023-04-08T00:11:13.110779+00:00\",\"type\":\"string\",\"fallback_value\":\"25\"}," +
"{\"id\":\"2\",\"key\":\"city\",\"created_at\":\"2023-04-08T00:11:13.110779+00:00\",\"type\":\"string\",\"fallback_value\":\"New York\"}," +
"{\"id\":\"3\",\"key\":\"subscribed\",\"created_at\":\"2023-04-08T00:11:13.110779+00:00\",\"type\":\"string\",\"fallback_value\":\"fallback\"}" +
"{\"id\":\"1\",\"key\":\"age\",\"created_at\":\"2023-04-08 00:11:13.110779+00\",\"type\":\"string\",\"fallback_value\":\"25\"}," +
"{\"id\":\"2\",\"key\":\"city\",\"created_at\":\"2023-04-08 00:11:13.110779+00\",\"type\":\"string\",\"fallback_value\":\"New York\"}," +
"{\"id\":\"3\",\"key\":\"subscribed\",\"created_at\":\"2023-04-08 00:11:13.110779+00\",\"type\":\"string\",\"fallback_value\":\"fallback\"}" +
"],\"object\":\"list\",\"has_more\":false}";

@Mock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public class ContactSegmentsTest {
private static final String REMOVE_SEGMENT_JSON = "{\"id\":\"" + SEGMENT_ID + "\",\"deleted\":true}";
private static final String LIST_SEGMENTS_JSON =
"{\"object\":\"list\",\"data\":[" +
"{\"id\":\"" + SEGMENT_ID + "\",\"name\":\"Registered Users\",\"created_at\":\"2023-10-06T22:59:55.977Z\"}," +
"{\"id\":\"b9d24c8e-bf1c-5d4d-cf1d-470cbd97482f\",\"name\":\"Premium Users\",\"created_at\":\"2023-11-12T14:23:10.123Z\"}" +
"{\"id\":\"" + SEGMENT_ID + "\",\"name\":\"Registered Users\",\"created_at\":\"2023-10-06 22:59:55.977+00\"}," +
"{\"id\":\"b9d24c8e-bf1c-5d4d-cf1d-470cbd97482f\",\"name\":\"Premium Users\",\"created_at\":\"2023-11-12 14:23:10.123+00\"}" +
"],\"has_more\":false}";

@Mock
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/com/resend/services/contacts/ContactsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ public class ContactsTest {
private static final String GET_CONTACT_JSON =
"{\"object\":\"contacts\",\"id\":\"123\",\"email\":\"user@example.com\"," +
"\"first_name\":\"test\",\"last_name\":\"test\"," +
"\"created_at\":\"2025-04-30T12:00:00Z\",\"unsubscribed\":false}";
"\"created_at\":\"2025-04-30 12:00:00+00\",\"unsubscribed\":false}";
private static final String LIST_CONTACTS_JSON =
"{\"data\":[" +
"{\"id\":\"1\",\"email\":\"frodo.baggins@shire.com\",\"first_name\":\"Frodo\"," +
"\"last_name\":\"Baggins\",\"created_at\":\"2023-04-08T00:11:13.110779+00:00\",\"unsubscribed\":false}," +
"\"last_name\":\"Baggins\",\"created_at\":\"2023-04-08 00:11:13.110779+00\",\"unsubscribed\":false}," +
"{\"id\":\"2\",\"email\":\"aragorn.strider@gondor.com\",\"first_name\":\"Aragorn\"," +
"\"last_name\":\"Strider\",\"created_at\":\"2023-04-08T00:11:13.110779+00:00\",\"unsubscribed\":false}," +
"\"last_name\":\"Strider\",\"created_at\":\"2023-04-08 00:11:13.110779+00\",\"unsubscribed\":false}," +
"{\"id\":\"3\",\"email\":\"legolas.greenleaf@woodland.com\",\"first_name\":\"Legolas\"," +
"\"last_name\":\"Greenleaf\",\"created_at\":\"2023-04-08T00:11:13.110779+00:00\",\"unsubscribed\":false}" +
"\"last_name\":\"Greenleaf\",\"created_at\":\"2023-04-08 00:11:13.110779+00\",\"unsubscribed\":false}" +
"],\"object\":\"list\"}";
private static final String UPDATE_TOPICS_JSON =
"{\"id\":\"e169aa45-1ecf-4183-9955-b1499d5701d3\"}";
Expand Down
10 changes: 5 additions & 5 deletions src/test/java/com/resend/services/domains/DomainsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public class DomainsTest {

private static final String CREATE_RESPONSE_JSON =
"{\"id\":\"" + DOMAIN_ID + "\",\"name\":\"resend.dev\"," +
"\"created_at\":\"2023-04-08T00:11:13.110779+00:00\",\"status\":\"Active\"," +
"\"created_at\":\"2023-04-08 00:11:13.110779+00\",\"status\":\"Active\"," +
"\"region\":\"us-east-1\",\"dnsProvider\":\"DNSProviderXYZ\",\"records\":[]}";

private static final String GET_RESPONSE_JSON =
"{\"id\":\"" + DOMAIN_ID + "\",\"name\":\"resend.dev\"," +
"\"created_at\":\"2023-04-08T00:11:13.110779+00:00\",\"status\":\"Active\"," +
"\"created_at\":\"2023-04-08 00:11:13.110779+00\",\"status\":\"Active\"," +
"\"region\":\"us-east-1\",\"dnsProvider\":\"DNSProviderXYZ\",\"object\":\"domain\",\"records\":[]}";

private static final String VERIFY_RESPONSE_JSON =
Expand All @@ -41,11 +41,11 @@ public class DomainsTest {
"{\"id\":\"" + DOMAIN_ID + "\",\"object\":\"domain\"}";

private static final String LIST_RESPONSE_JSON = "{\"data\":[" +
"{\"id\":\"id-1\",\"name\":\"resend.dev\",\"created_at\":\"2023-04-08T00:11:13.110Z\"," +
"{\"id\":\"id-1\",\"name\":\"resend.dev\",\"created_at\":\"2023-04-08 00:11:13.11+00\"," +
"\"status\":\"Active\",\"region\":\"us-east-1\"}," +
"{\"id\":\"id-2\",\"name\":\"example.com\",\"created_at\":\"2023-01-01T12:00:00.000Z\"," +
"{\"id\":\"id-2\",\"name\":\"example.com\",\"created_at\":\"2023-01-01 12:00:00+00\"," +
"\"status\":\"Active\",\"region\":\"us-east-2\"}," +
"{\"id\":\"id-3\",\"name\":\"another.com\",\"created_at\":\"2023-02-15T08:30:00.000Z\"," +
"{\"id\":\"id-3\",\"name\":\"another.com\",\"created_at\":\"2023-02-15 08:30:00+00\"," +
"\"status\":\"Inactive\",\"region\":\"us-west-1\"}" +
"],\"has_more\":true,\"object\":\"list\"}";

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/com/resend/services/emails/EmailsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class EmailsTest {
private static final String GET_EMAIL_JSON =
"{\"object\":\"email_object\",\"id\":\"" + EMAIL_ID + "\"," +
"\"from\":\"sender@example.com\",\"to\":[\"recipient@example.com\"]," +
"\"created_at\":\"2023-04-08T00:11:13.110779+00:00\"," +
"\"created_at\":\"2023-04-08 00:11:13.110779+00\"," +
"\"subject\":\"Test Email Subject\"," +
"\"html\":\"<html><body>This is the HTML content</body></html>\"," +
"\"text\":\"This is the plain text content\"," +
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/com/resend/services/events/EventsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ public class EventsTest {
"{\"object\":\"event\",\"id\":\"" + EVENT_ID + "\"," +
"\"name\":\"user.signup\"," +
"\"schema\":{\"user_id\":\"string\",\"plan\":\"string\"}," +
"\"created_at\":\"2024-12-01T10:00:00.000Z\",\"updated_at\":\"2024-12-02T10:00:00.000Z\"}";
"\"created_at\":\"2024-12-01 10:00:00+00\",\"updated_at\":\"2024-12-02 10:00:00+00\"}";

private static final String LIST_EVENTS_JSON =
"{\"object\":\"list\",\"has_more\":false,\"data\":[" +
"{\"id\":\"1\",\"name\":\"user.signup\",\"created_at\":\"2024-12-01T10:00:00.000Z\"}," +
"{\"id\":\"2\",\"name\":\"user.verified\",\"created_at\":\"2024-12-02T10:00:00.000Z\"}," +
"{\"id\":\"3\",\"name\":\"order.created\",\"created_at\":\"2024-12-03T10:00:00.000Z\"}" +
"{\"id\":\"1\",\"name\":\"user.signup\",\"created_at\":\"2024-12-01 10:00:00+00\"}," +
"{\"id\":\"2\",\"name\":\"user.verified\",\"created_at\":\"2024-12-02 10:00:00+00\"}," +
"{\"id\":\"3\",\"name\":\"order.created\",\"created_at\":\"2024-12-03 10:00:00+00\"}" +
"]}";

private static final String UPDATE_EVENT_JSON =
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/com/resend/services/logs/LogsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
public class LogsTest {

private static final String GET_LOG_JSON =
"{\"id\":\"log_123\",\"created_at\":\"2024-01-01T00:00:00.000Z\"," +
"{\"id\":\"log_123\",\"created_at\":\"2024-01-01 00:00:00+00\"," +
"\"endpoint\":\"/emails\",\"method\":\"POST\",\"response_status\":200," +
"\"user_agent\":\"resend-java/4.13.0\",\"object\":\"log\"}";

private static final String LIST_LOGS_JSON =
"{\"object\":\"list\",\"has_more\":false,\"data\":[" +
"{\"id\":\"log_1\",\"created_at\":\"2024-01-01T00:00:00.000Z\",\"endpoint\":\"/emails\",\"method\":\"POST\",\"response_status\":200,\"user_agent\":\"resend-java/4.13.0\"}," +
"{\"id\":\"log_2\",\"created_at\":\"2024-01-02T00:00:00.000Z\",\"endpoint\":\"/domains\",\"method\":\"GET\",\"response_status\":200,\"user_agent\":\"resend-java/4.13.0\"}," +
"{\"id\":\"log_3\",\"created_at\":\"2024-01-03T00:00:00.000Z\",\"endpoint\":\"/contacts\",\"method\":\"DELETE\",\"response_status\":204}" +
"{\"id\":\"log_1\",\"created_at\":\"2024-01-01 00:00:00+00\",\"endpoint\":\"/emails\",\"method\":\"POST\",\"response_status\":200,\"user_agent\":\"resend-java/4.13.0\"}," +
"{\"id\":\"log_2\",\"created_at\":\"2024-01-02 00:00:00+00\",\"endpoint\":\"/domains\",\"method\":\"GET\",\"response_status\":200,\"user_agent\":\"resend-java/4.13.0\"}," +
"{\"id\":\"log_3\",\"created_at\":\"2024-01-03 00:00:00+00\",\"endpoint\":\"/contacts\",\"method\":\"DELETE\",\"response_status\":204}" +
"]}";

@Mock
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class ReceivingTest {
"{\"object\":\"email\",\"id\":\"" + EMAIL_ID + "\"," +
"\"to\":[\"delivered@resend.dev\"]," +
"\"from\":\"Acme <onboarding@resend.dev>\"," +
"\"created_at\":\"2023-04-03T22:13:42.674981+00:00\"," +
"\"created_at\":\"2023-04-03 22:13:42.674981+00\"," +
"\"subject\":\"Hello World\"," +
"\"html\":\"Congrats on sending your <strong>first email</strong>!\"," +
"\"bcc\":[],\"cc\":[],\"reply_to\":[]," +
Expand All @@ -52,15 +52,15 @@ public class ReceivingTest {
"\"filename\":\"avatar.png\",\"content_type\":\"image/png\"," +
"\"content_disposition\":\"inline\",\"content_id\":\"img001\"," +
"\"download_url\":\"https://inbound-cdn.resend.com/" + EMAIL_ID + "/attachments/" + ATTACHMENT_ID + "?some-params=example&signature=sig-123\"," +
"\"expires_at\":\"2025-10-17T14:29:41.521Z\"}";
"\"expires_at\":\"2025-10-17 14:29:41.521+00\"}";

private static final String LIST_ATTACHMENTS_JSON =
"{\"object\":\"list\",\"has_more\":false,\"data\":[" +
"{\"object\":\"attachment\",\"id\":\"" + ATTACHMENT_ID + "\"," +
"\"filename\":\"avatar.png\",\"content_type\":\"image/png\"," +
"\"content_disposition\":\"inline\",\"content_id\":\"img001\"," +
"\"download_url\":\"https://inbound-cdn.resend.com/" + EMAIL_ID + "/attachments/" + ATTACHMENT_ID + "?some-params=example&signature=sig-123\"," +
"\"expires_at\":\"2025-10-17T14:29:41.521Z\"}" +
"\"expires_at\":\"2025-10-17 14:29:41.521+00\"}" +
"]}";

@Mock
Expand Down
8 changes: 4 additions & 4 deletions src/test/java/com/resend/services/segments/SegmentsTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public class SegmentsTest {
private static final String CREATE_RESPONSE_JSON = "{\"id\":\"123\",\"name\":\"seg\",\"object\":\"audience\"}";
private static final String REMOVE_RESPONSE_JSON = "{\"id\":\"123\",\"object\":\"audience\",\"deleted\":true}";
private static final String GET_RESPONSE_JSON =
"{\"id\":\"123\",\"name\":\"seg\",\"created_at\":\"2023-04-08T00:11:13.110779+00:00\",\"object\":\"audience\"}";
"{\"id\":\"123\",\"name\":\"seg\",\"created_at\":\"2023-04-08 00:11:13.110779+00\",\"object\":\"audience\"}";
private static final String LIST_RESPONSE_JSON =
"{\"data\":[" +
"{\"id\":\"1\",\"name\":\"test1\",\"created_at\":\"2023-04-08T00:11:13.110779+00:00\"}," +
"{\"id\":\"2\",\"name\":\"test2\",\"created_at\":\"2023-04-08T00:11:13.110779+00:00\"}," +
"{\"id\":\"3\",\"name\":\"test3\",\"created_at\":\"2023-04-08T00:11:13.110779+00:00\"}" +
"{\"id\":\"1\",\"name\":\"test1\",\"created_at\":\"2023-04-08 00:11:13.110779+00\"}," +
"{\"id\":\"2\",\"name\":\"test2\",\"created_at\":\"2023-04-08 00:11:13.110779+00\"}," +
"{\"id\":\"3\",\"name\":\"test3\",\"created_at\":\"2023-04-08 00:11:13.110779+00\"}" +
"],\"object\":\"list\",\"has_more\":true}";

@Mock
Expand Down
Loading
Loading