Skip to content

Commit 1a04ce6

Browse files
committed
EL-360 -- Revert the StateChangedDate back to Date
1 parent 66c6b10 commit 1a04ce6

14 files changed

Lines changed: 40 additions & 40 deletions

HISTORY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Add new support for 'client.tags' endpoint (ie: getting list of tags for the client)
99
* Add support for pagination, filtering and sorting to 'client.campaigns' endpoint
1010
* Add Python 3.10 to `tox.ini`
11-
* Breaking: Following endpoints now return ListJoinedDate for each subscriber. Also, Date has been renamed to StateChangedDate:
11+
* Adding support for returning ListJoinedDate for each subscriber.
1212
* List.Active()
1313
* List.Bounced()
1414
* List.Unsubscribed()

test/fixtures/active_subscribers.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"EmailAddress": "subs+7t8787Y@example.com",
55
"Name": "Person One",
6-
"StateChangedDate": "2010-10-25 10:28:00",
6+
"Date": "2010-10-25 10:28:00",
77
"ListJoinedDate": "2010-10-24 10:28:00",
88
"State": "Active",
99
"CustomFields": [
@@ -33,7 +33,7 @@
3333
{
3434
"EmailAddress": "subs+7878787y8ggg@example.com",
3535
"Name": "Person Two",
36-
"StateChangedDate": "2010-10-25 12:17:00",
36+
"Date": "2010-10-25 12:17:00",
3737
"ListJoinedDate": "2010-10-25 12:17:00",
3838
"State": "Active",
3939
"CustomFields": [
@@ -47,7 +47,7 @@
4747
{
4848
"EmailAddress": "subs+7890909i0ggg@example.com",
4949
"Name": "Person Three",
50-
"StateChangedDate": "2010-10-25 12:52:00",
50+
"Date": "2010-10-25 12:52:00",
5151
"ListJoinedDate": "2010-10-25 12:52:00",
5252
"State": "Active",
5353
"CustomFields": [
@@ -61,7 +61,7 @@
6161
{
6262
"EmailAddress": "subs@example.com",
6363
"Name": "Person Four",
64-
"StateChangedDate": "2010-10-27 13:13:00",
64+
"Date": "2010-10-27 13:13:00",
6565
"ListJoinedDate": "2010-10-27 13:13:00",
6666
"State": "Active",
6767
"CustomFields": [],
@@ -70,7 +70,7 @@
7070
{
7171
"EmailAddress": "joey@example.com",
7272
"Name": "Person Five",
73-
"StateChangedDate": "2010-10-27 13:13:00",
73+
"Date": "2010-10-27 13:13:00",
7474
"ListJoinedDate": "2010-10-27 13:13:00",
7575
"State": "Active",
7676
"CustomFields": [],

test/fixtures/active_subscribers_with_tracking_preference.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"EmailAddress": "subs+7t8787Y@example.com",
55
"Name": "Person One",
6-
"StateChangedDate": "2010-10-25 10:28:00",
6+
"Date": "2010-10-25 10:28:00",
77
"ListJoinedDate": "2010-10-24 10:28:00",
88
"State": "Active",
99
"CustomFields": [
@@ -34,7 +34,7 @@
3434
{
3535
"EmailAddress": "subs+7878787y8ggg@example.com",
3636
"Name": "Person Two",
37-
"StateChangedDate": "2010-10-25 12:17:00",
37+
"Date": "2010-10-25 12:17:00",
3838
"ListJoinedDate": "2010-10-25 12:17:00",
3939
"State": "Active",
4040
"CustomFields": [
@@ -49,7 +49,7 @@
4949
{
5050
"EmailAddress": "subs+7890909i0ggg@example.com",
5151
"Name": "Person Three",
52-
"StateChangedDate": "2010-10-25 12:52:00",
52+
"Date": "2010-10-25 12:52:00",
5353
"ListJoinedDate": "2010-10-25 12:52:00",
5454
"State": "Active",
5555
"CustomFields": [
@@ -64,7 +64,7 @@
6464
{
6565
"EmailAddress": "subs@example.com",
6666
"Name": "Person Four",
67-
"StateChangedDate": "2010-10-27 13:13:00",
67+
"Date": "2010-10-27 13:13:00",
6868
"ListJoinedDate": "2010-10-27 13:13:00",
6969
"State": "Active",
7070
"CustomFields": [],
@@ -74,7 +74,7 @@
7474
{
7575
"EmailAddress": "joey@example.com",
7676
"Name": "Person Five",
77-
"StateChangedDate": "2010-10-27 13:13:00",
77+
"Date": "2010-10-27 13:13:00",
7878
"ListJoinedDate": "2010-10-27 13:13:00",
7979
"State": "Active",
8080
"CustomFields": [],

test/fixtures/bounced_subscribers.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"EmailAddress": "bouncedsubscriber@example.com",
55
"Name": "Bounced One",
6-
"StateChangedDate": "2010-10-25 13:11:00",
6+
"Date": "2010-10-25 13:11:00",
77
"ListJoinedDate": "2010-10-25 13:11:00",
88
"State": "Bounced",
99
"CustomFields": [],

test/fixtures/deleted_subscribers.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"EmailAddress": "subscriber@example.com",
55
"Name": "Deleted One",
6-
"StateChangedDate": "2010-10-25 13:11:00",
6+
"Date": "2010-10-25 13:11:00",
77
"ListJoinedDate": "2010-10-25 13:11:00",
88
"State": "Deleted",
99
"CustomFields": [],
@@ -12,7 +12,7 @@
1212
{
1313
"EmailAddress": "subscriberone@example.com",
1414
"Name": "Subscriber",
15-
"StateChangedDate": "2010-10-25 13:04:00",
15+
"Date": "2010-10-25 13:04:00",
1616
"ListJoinedDate": "2010-10-25 13:04:00",
1717
"State": "Deleted",
1818
"CustomFields": [
@@ -26,7 +26,7 @@
2626
{
2727
"EmailAddress": "example+1@example.com",
2828
"Name": "Example One",
29-
"StateChangedDate": "2010-10-26 10:56:00",
29+
"Date": "2010-10-26 10:56:00",
3030
"ListJoinedDate": "2010-10-26 10:56:00",
3131
"State": "Deleted",
3232
"CustomFields": [],
@@ -35,7 +35,7 @@
3535
{
3636
"EmailAddress": "example+2@example.com",
3737
"Name": "Example Two",
38-
"StateChangedDate": "2010-10-26 10:56:00",
38+
"Date": "2010-10-26 10:56:00",
3939
"ListJoinedDate": "2010-10-26 10:56:00",
4040
"State": "Deleted",
4141
"CustomFields": [],
@@ -44,7 +44,7 @@
4444
{
4545
"EmailAddress": "example+3@example.com",
4646
"Name": "Example Three",
47-
"StateChangedDate": "2010-10-26 10:56:00",
47+
"Date": "2010-10-26 10:56:00",
4848
"ListJoinedDate": "2010-10-26 10:56:00",
4949
"State": "Deleted",
5050
"CustomFields": [],

test/fixtures/segment_subscribers.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
{
44
"EmailAddress": "personone@example.com",
55
"Name": "Person One",
6-
"StateChangedDate": "2010-10-27 13:13:00",
6+
"Date": "2010-10-27 13:13:00",
77
"ListJoinedDate": "2010-10-27 13:13:00",
88
"State": "Active",
99
"CustomFields": []
1010
},
1111
{
1212
"EmailAddress": "persontwo@example.com",
1313
"Name": "Person Two",
14-
"StateChangedDate": "2010-10-27 13:13:00",
14+
"Date": "2010-10-27 13:13:00",
1515
"ListJoinedDate": "2010-10-27 13:13:00",
1616
"State": "Active",
1717
"CustomFields": []

test/fixtures/segment_subscribers_with_tracking_preference.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"EmailAddress": "personone@example.com",
55
"Name": "Person One",
6-
"StateChangedDate": "2010-10-27 13:13:00",
6+
"Date": "2010-10-27 13:13:00",
77
"ListJoinedDate": "2010-10-27 13:13:00",
88
"State": "Active",
99
"CustomFields": [],
@@ -12,7 +12,7 @@
1212
{
1313
"EmailAddress": "persontwo@example.com",
1414
"Name": "Person Two",
15-
"StateChangedDate": "2010-10-27 13:13:00",
15+
"Date": "2010-10-27 13:13:00",
1616
"ListJoinedDate": "2010-10-27 13:13:00",
1717
"State": "Active",
1818
"CustomFields": [],

test/fixtures/subscriber_details.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"EmailAddress": "subscriber@example.com",
33
"Name": "Subscriber One",
4-
"StateChangedDate": "2010-10-25 10:28:00",
4+
"Date": "2010-10-25 10:28:00",
55
"ListJoinedDate": "2010-10-25 10:28:00",
66
"State": "Active",
77
"CustomFields": [

test/fixtures/subscriber_details_with_tracking_preference.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"EmailAddress": "subscriber@example.com",
33
"Name": "Subscriber One",
4-
"StateChangedDate": "2010-10-25 10:28:00",
4+
"Date": "2010-10-25 10:28:00",
55
"ListJoinedDate": "2010-10-25 10:28:00",
66
"State": "Active",
77
"CustomFields": [

test/fixtures/unconfirmed_subscribers.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"EmailAddress": "subs+7t8787Y@example.com",
55
"Name": "Unconfirmed One",
6-
"StateChangedDate": "2010-10-25 10:28:00",
6+
"Date": "2010-10-25 10:28:00",
77
"ListJoinedDate": "2010-10-25 10:28:00",
88
"State": "Unconfirmed",
99
"CustomFields": [
@@ -17,7 +17,7 @@
1717
{
1818
"EmailAddress": "subs+7878787y8ggg@example.com",
1919
"Name": "Unconfirmed Two",
20-
"StateChangedDate": "2010-10-25 12:17:00",
20+
"Date": "2010-10-25 12:17:00",
2121
"ListJoinedDate": "2010-10-25 12:17:00",
2222
"State": "Unconfirmed",
2323
"CustomFields": [

0 commit comments

Comments
 (0)