Skip to content

Commit c785ba4

Browse files
authored
Merge pull request #324 from twilio/release-7.4.0-alpha-1
Release 7.4.0-alpha-1. Locale Fix PR-320; Undocumented Parameters PR-…
2 parents 2fb6e26 + 7d1c8c0 commit c785ba4

File tree

16 files changed

+75
-87
lines changed

16 files changed

+75
-87
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ twilio-java changelog
1111
- Add support for ending conferences via the API.
1212
- Add `region` field to Conferences.
1313

14+
- **Wireless**
15+
- Creating RatePlan now takes single `renewal` string instead of `renewalPeriod` and `renewalUnits` (backwards incompatible).
16+
- Change RatePlan `renewal` field to String (backwards incompatible).
17+
1418
- **Twilio Chat**
1519
- Add `membersCount` and `messagesCount` to Channel.
1620
- Add support for filtering on channel type when reading list of Channels.

src/main/java/com/twilio/rest/preview/wireless/RatePlan.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
@JsonIgnoreProperties(ignoreUnknown = true)
3838
public class RatePlan extends Resource {
39-
private static final long serialVersionUID = 255981823638757L;
39+
private static final long serialVersionUID = 1403964494264L;
4040

4141
/**
4242
* Create a RatePlanReader to execute read.
@@ -121,7 +121,7 @@ public static RatePlan fromJson(final InputStream json, final ObjectMapper objec
121121
private final List<String> roaming;
122122
private final Map<String, Object> data;
123123
private final Map<String, Object> commands;
124-
private final Map<String, Object> renewal;
124+
private final String renewal;
125125
private final DateTime dateCreated;
126126
private final DateTime dateUpdated;
127127
private final URI url;
@@ -142,7 +142,7 @@ private RatePlan(@JsonProperty("sid")
142142
@JsonProperty("commands")
143143
final Map<String, Object> commands,
144144
@JsonProperty("renewal")
145-
final Map<String, Object> renewal,
145+
final String renewal,
146146
@JsonProperty("date_created")
147147
final String dateCreated,
148148
@JsonProperty("date_updated")
@@ -230,7 +230,7 @@ public final Map<String, Object> getCommands() {
230230
*
231231
* @return The renewal
232232
*/
233-
public final Map<String, Object> getRenewal() {
233+
public final String getRenewal() {
234234
return this.renewal;
235235
}
236236

src/main/java/com/twilio/rest/preview/wireless/RatePlanCreator.java

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ public class RatePlanCreator extends Creator<RatePlan> {
2727
private Integer dataLimit;
2828
private String dataMetering;
2929
private Boolean commandsEnabled;
30-
private Integer renewalPeriod;
31-
private String renewalUnits;
30+
private String renewal;
3231

3332
/**
3433
* The alias.
@@ -107,24 +106,13 @@ public RatePlanCreator setCommandsEnabled(final Boolean commandsEnabled) {
107106
}
108107

109108
/**
110-
* The renewal_period.
109+
* The renewal.
111110
*
112-
* @param renewalPeriod The renewal_period
111+
* @param renewal The renewal
113112
* @return this
114113
*/
115-
public RatePlanCreator setRenewalPeriod(final Integer renewalPeriod) {
116-
this.renewalPeriod = renewalPeriod;
117-
return this;
118-
}
119-
120-
/**
121-
* The renewal_units.
122-
*
123-
* @param renewalUnits The renewal_units
124-
* @return this
125-
*/
126-
public RatePlanCreator setRenewalUnits(final String renewalUnits) {
127-
this.renewalUnits = renewalUnits;
114+
public RatePlanCreator setRenewal(final String renewal) {
115+
this.renewal = renewal;
128116
return this;
129117
}
130118

@@ -199,12 +187,8 @@ private void addPostParams(final Request request) {
199187
request.addPostParam("CommandsEnabled", commandsEnabled.toString());
200188
}
201189

202-
if (renewalPeriod != null) {
203-
request.addPostParam("RenewalPeriod", renewalPeriod.toString());
204-
}
205-
206-
if (renewalUnits != null) {
207-
request.addPostParam("RenewalUnits", renewalUnits);
190+
if (renewal != null) {
191+
request.addPostParam("Renewal", renewal);
208192
}
209193
}
210194
}

src/test/java/com/twilio/rest/accounts/v1/credential/PublicKeyTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void testReadRequest() {
6060
public void testReadEmptyResponse() {
6161
new NonStrictExpectations() {{
6262
twilioRestClient.request((Request) any);
63-
result = new Response("{\"credentials\": [],\"meta\": {\"first_page_url\": \"https://accounts.twilio.com/v1/Credentials/PublicKeys?Page=0&PageSize=50\",\"key\": \"credentials\",\"next_page_url\": null,\"page\": 0,\"page_size\": 0,\"previous_page_url\": null,\"url\": \"https://accounts.twilio.com/v1/Credentials/PublicKeys\"}}", TwilioRestClient.HTTP_STATUS_CODE_OK);
63+
result = new Response("{\"credentials\": [],\"meta\": {\"first_page_url\": \"https://accounts.twilio.com/v1/Credentials/PublicKeys?PageSize=50&Page=0\",\"key\": \"credentials\",\"next_page_url\": null,\"page\": 0,\"page_size\": 50,\"previous_page_url\": null,\"url\": \"https://accounts.twilio.com/v1/Credentials/PublicKeys?PageSize=50&Page=0\"}}", TwilioRestClient.HTTP_STATUS_CODE_OK);
6464
twilioRestClient.getObjectMapper();
6565
result = new ObjectMapper();
6666
}};
@@ -72,7 +72,7 @@ public void testReadEmptyResponse() {
7272
public void testReadFullResponse() {
7373
new NonStrictExpectations() {{
7474
twilioRestClient.request((Request) any);
75-
result = new Response("{\"credentials\": [{\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"date_created\": \"2015-07-30T20:00:00Z\",\"date_updated\": \"2015-07-30T20:00:00Z\",\"friendly_name\": \"friendly_name\",\"sid\": \"CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"url\": \"http://www.example.com\"}],\"meta\": {\"first_page_url\": \"https://accounts.twilio.com/v1/Credentials/PublicKeys?Page=0&PageSize=50\",\"key\": \"credentials\",\"next_page_url\": null,\"page\": 0,\"page_size\": 1,\"previous_page_url\": null,\"url\": \"https://accounts.twilio.com/v1/Credentials/PublicKeys\"}}", TwilioRestClient.HTTP_STATUS_CODE_OK);
75+
result = new Response("{\"credentials\": [{\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"date_created\": \"2015-07-31T04:00:00Z\",\"date_updated\": \"2015-07-31T04:00:00Z\",\"friendly_name\": \"friendly_name\",\"sid\": \"CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"url\": \"https://accounts.twilio.com/v1/Credentials/PublicKeys/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}],\"meta\": {\"first_page_url\": \"https://accounts.twilio.com/v1/Credentials/PublicKeys?PageSize=50&Page=0\",\"key\": \"credentials\",\"next_page_url\": null,\"page\": 0,\"page_size\": 50,\"previous_page_url\": null,\"url\": \"https://accounts.twilio.com/v1/Credentials/PublicKeys?PageSize=50&Page=0\"}}", TwilioRestClient.HTTP_STATUS_CODE_OK);
7676
twilioRestClient.getObjectMapper();
7777
result = new ObjectMapper();
7878
}};
@@ -104,7 +104,7 @@ public void testCreateRequest() {
104104
public void testCreateResponse() {
105105
new NonStrictExpectations() {{
106106
twilioRestClient.request((Request) any);
107-
result = new Response("{\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"date_created\": \"2015-07-30T20:00:00Z\",\"date_updated\": \"2015-07-30T20:00:00Z\",\"friendly_name\": \"friendly_name\",\"sid\": \"CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"url\": \"http://www.example.com\"}", TwilioRestClient.HTTP_STATUS_CODE_CREATED);
107+
result = new Response("{\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"date_created\": \"2015-07-31T04:00:00Z\",\"date_updated\": \"2015-07-31T04:00:00Z\",\"friendly_name\": \"friendly_name\",\"sid\": \"CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"url\": \"https://accounts.twilio.com/v1/Credentials/PublicKeys/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}", TwilioRestClient.HTTP_STATUS_CODE_CREATED);
108108
twilioRestClient.getObjectMapper();
109109
result = new ObjectMapper();
110110
}};
@@ -136,7 +136,7 @@ public void testFetchRequest() {
136136
public void testFetchResponse() {
137137
new NonStrictExpectations() {{
138138
twilioRestClient.request((Request) any);
139-
result = new Response("{\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"date_created\": \"2015-07-30T20:00:00Z\",\"date_updated\": \"2015-07-30T20:00:00Z\",\"friendly_name\": \"friendly_name\",\"sid\": \"CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"url\": \"http://www.example.com\"}", TwilioRestClient.HTTP_STATUS_CODE_OK);
139+
result = new Response("{\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"date_created\": \"2015-07-31T04:00:00Z\",\"date_updated\": \"2015-07-31T04:00:00Z\",\"friendly_name\": \"friendly_name\",\"sid\": \"CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"url\": \"https://accounts.twilio.com/v1/Credentials/PublicKeys/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}", TwilioRestClient.HTTP_STATUS_CODE_OK);
140140
twilioRestClient.getObjectMapper();
141141
result = new ObjectMapper();
142142
}};
@@ -168,7 +168,7 @@ public void testUpdateRequest() {
168168
public void testUpdateResponse() {
169169
new NonStrictExpectations() {{
170170
twilioRestClient.request((Request) any);
171-
result = new Response("{\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"date_created\": \"2015-07-30T20:00:00Z\",\"date_updated\": \"2015-07-30T20:00:00Z\",\"friendly_name\": \"friendly_name\",\"sid\": \"CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"url\": \"http://www.example.com\"}", TwilioRestClient.HTTP_STATUS_CODE_OK);
171+
result = new Response("{\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"date_created\": \"2015-07-31T04:00:00Z\",\"date_updated\": \"2015-07-31T04:00:00Z\",\"friendly_name\": \"friendly_name\",\"sid\": \"CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"url\": \"https://accounts.twilio.com/v1/Credentials/PublicKeys/CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}", TwilioRestClient.HTTP_STATUS_CODE_OK);
172172
twilioRestClient.getObjectMapper();
173173
result = new ObjectMapper();
174174
}};

src/test/java/com/twilio/rest/api/v2010/account/sip/domain/RegistrationEndpointTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void testReadRequest() {
6060
public void testReadEmptyResponse() {
6161
new NonStrictExpectations() {{
6262
twilioRestClient.request((Request) any);
63-
result = new Response("{\"end\": -1,\"first_page_uri\": \"/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Registrations/region/registrant.json?Page=0PageSize=50\",\"next_page_uri\": null,\"page\": 0,\"page_size\": 0,\"previous_page_uri\": null,\"registrations\": [],\"start\": 0,\"uri\": \"/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Registrations/region/registrant.json\"}", TwilioRestClient.HTTP_STATUS_CODE_OK);
63+
result = new Response("{\"end\": 0,\"first_page_uri\": \"/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Registrations/region/registrant.json?PageSize=50&Page=0\",\"next_page_uri\": null,\"page\": 0,\"page_size\": 50,\"previous_page_uri\": null,\"registrations\": [],\"start\": 0,\"uri\": \"/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Registrations/region/registrant.json?PageSize=50&Page=0\"}", TwilioRestClient.HTTP_STATUS_CODE_OK);
6464
twilioRestClient.getObjectMapper();
6565
result = new ObjectMapper();
6666
}};
@@ -72,7 +72,7 @@ public void testReadEmptyResponse() {
7272
public void testReadFullResponse() {
7373
new NonStrictExpectations() {{
7474
twilioRestClient.request((Request) any);
75-
result = new Response("{\"end\": 0,\"first_page_uri\": \"/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Registrations/region/registrant.json?Page=0PageSize=50\",\"next_page_uri\": null,\"page\": 0,\"page_size\": 1,\"previous_page_uri\": null,\"registrations\": [{\"address_of_record\": \"address_of_record\",\"channel_type\": \"channel_type\",\"date_created\": \"Thu, 30 Jul 2015 20:00:00 +0000\",\"date_expires\": \"Thu, 30 Jul 2015 20:00:00 +0000\",\"date_updated\": \"Thu, 30 Jul 2015 20:00:00 +0000\",\"display_name\": \"display_name\",\"sip_call_id\": \"sip_call_id\",\"sip_contact\": \"sip_contact\",\"sip_cseq\": 100,\"sip_path\": \"sip_path\",\"sip_via\": \"sip_via\",\"user_agent\": \"user_agent\"}],\"start\": 0,\"uri\": \"/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Registrations/region/registrant.json\"}", TwilioRestClient.HTTP_STATUS_CODE_OK);
75+
result = new Response("{\"end\": 0,\"first_page_uri\": \"/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Registrations/region/registrant.json?PageSize=50&Page=0\",\"next_page_uri\": null,\"page\": 0,\"page_size\": 50,\"previous_page_uri\": null,\"registrations\": [{\"address_of_record\": \"sip:tor@test.sip.us1.twilio.com\",\"channel_type\": \"public-sip\",\"date_created\": \"Thu, 30 Jul 2015 20:00:00 +0000\",\"date_expires\": \"Thu, 30 Jul 2015 20:00:00 +0000\",\"date_updated\": \"Thu, 30 Jul 2015 20:00:00 +0000\",\"display_name\": \"display_name\",\"sip_call_id\": \"sip_call_id\",\"sip_contact\": \"sip_contact\",\"sip_cseq\": 100,\"sip_path\": \"sip_path\",\"sip_via\": \"sip_via\",\"user_agent\": \"user_agent\"}],\"start\": 0,\"uri\": \"/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/SIP/Domains/SDaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Registrations/region/registrant.json?PageSize=50&Page=0\"}", TwilioRestClient.HTTP_STATUS_CODE_OK);
7676
twilioRestClient.getObjectMapper();
7777
result = new ObjectMapper();
7878
}};

src/test/java/com/twilio/rest/notify/v1/service/BindingTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public void testFetchRequest() {
6060
public void testFetchResponse() {
6161
new NonStrictExpectations() {{
6262
twilioRestClient.request((Request) any);
63-
result = new Response("{\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"address\": \"address\",\"binding_type\": \"binding_type\",\"credential_sid\": \"CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"date_created\": \"2015-07-30T20:00:00Z\",\"date_updated\": \"2015-07-30T20:00:00Z\",\"endpoint\": \"endpoint\",\"identity\": \"identity\",\"notification_protocol_version\": \"notification_protocol_version\",\"service_sid\": \"ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"sid\": \"BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"tags\": [\"tags\"],\"url\": \"http://www.example.com\"}", TwilioRestClient.HTTP_STATUS_CODE_OK);
63+
result = new Response("{\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"address\": \"a7c658f4111ec4ff5a1a647f9d0edd819025b9f20522d2fae897049f32873e73\",\"binding_type\": \"apn\",\"credential_sid\": null,\"date_created\": \"2015-07-30T20:00:00Z\",\"date_updated\": \"2015-07-30T20:00:00Z\",\"endpoint\": \"26607274\",\"identity\": \"24987039\",\"notification_protocol_version\": \"3\",\"service_sid\": \"ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"sid\": \"BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"tags\": [\"26607274\"],\"url\": \"https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}", TwilioRestClient.HTTP_STATUS_CODE_OK);
6464
twilioRestClient.getObjectMapper();
6565
result = new ObjectMapper();
6666
}};
@@ -127,7 +127,7 @@ public void testCreateRequest() {
127127
public void testCreateResponse() {
128128
new NonStrictExpectations() {{
129129
twilioRestClient.request((Request) any);
130-
result = new Response("{\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"address\": \"address\",\"binding_type\": \"binding_type\",\"credential_sid\": \"CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"date_created\": \"2015-07-30T20:00:00Z\",\"date_updated\": \"2015-07-30T20:00:00Z\",\"endpoint\": \"endpoint\",\"identity\": \"identity\",\"notification_protocol_version\": \"notification_protocol_version\",\"service_sid\": \"ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"sid\": \"BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"tags\": [\"tags\"],\"url\": \"http://www.example.com\"}", TwilioRestClient.HTTP_STATUS_CODE_CREATED);
130+
result = new Response("{\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"address\": \"a7c658f4111ec4ff5a1a647f9d0edd819025b9f20522d2fae897049f32873e73\",\"binding_type\": \"apn\",\"credential_sid\": null,\"date_created\": \"2015-07-30T20:00:00Z\",\"date_updated\": \"2015-07-30T20:00:00Z\",\"endpoint\": \"26607274\",\"identity\": \"24987039\",\"notification_protocol_version\": \"3\",\"service_sid\": \"ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"sid\": \"BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"tags\": [\"26607274\"],\"url\": \"https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}", TwilioRestClient.HTTP_STATUS_CODE_CREATED);
131131
twilioRestClient.getObjectMapper();
132132
result = new ObjectMapper();
133133
}};
@@ -159,7 +159,7 @@ public void testReadRequest() {
159159
public void testReadEmptyResponse() {
160160
new NonStrictExpectations() {{
161161
twilioRestClient.request((Request) any);
162-
result = new Response("{\"bindings\": [],\"meta\": {\"first_page_url\": \"https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?Page=0&PageSize=50\",\"key\": \"bindings\",\"next_page_url\": null,\"page\": 0,\"page_size\": 0,\"previous_page_url\": null,\"url\": \"https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings\"}}", TwilioRestClient.HTTP_STATUS_CODE_OK);
162+
result = new Response("{\"bindings\": [],\"meta\": {\"first_page_url\": \"https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?PageSize=50&Page=0\",\"key\": \"bindings\",\"next_page_url\": null,\"page\": 0,\"page_size\": 50,\"previous_page_url\": null,\"url\": \"https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?PageSize=50&Page=0\"}}", TwilioRestClient.HTTP_STATUS_CODE_OK);
163163
twilioRestClient.getObjectMapper();
164164
result = new ObjectMapper();
165165
}};
@@ -171,7 +171,7 @@ public void testReadEmptyResponse() {
171171
public void testReadFullResponse() {
172172
new NonStrictExpectations() {{
173173
twilioRestClient.request((Request) any);
174-
result = new Response("{\"bindings\": [{\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"address\": \"address\",\"binding_type\": \"binding_type\",\"credential_sid\": \"CRaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"date_created\": \"2015-07-30T20:00:00Z\",\"date_updated\": \"2015-07-30T20:00:00Z\",\"endpoint\": \"endpoint\",\"identity\": \"identity\",\"notification_protocol_version\": \"notification_protocol_version\",\"service_sid\": \"ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"sid\": \"BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"tags\": [\"tags\"],\"url\": \"http://www.example.com\"}],\"meta\": {\"first_page_url\": \"https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?Page=0&PageSize=50\",\"key\": \"bindings\",\"next_page_url\": null,\"page\": 0,\"page_size\": 1,\"previous_page_url\": null,\"url\": \"https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings\"}}", TwilioRestClient.HTTP_STATUS_CODE_OK);
174+
result = new Response("{\"bindings\": [{\"account_sid\": \"ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"address\": \"a7c658f4111ec4ff5a1a647f9d0edd819025b9f20522d2fae897049f32873e73\",\"binding_type\": \"apn\",\"credential_sid\": null,\"date_created\": \"2015-07-30T20:00:00Z\",\"date_updated\": \"2015-07-30T20:00:00Z\",\"endpoint\": \"26607274\",\"identity\": \"24987039\",\"notification_protocol_version\": \"3\",\"service_sid\": \"ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"sid\": \"BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"tags\": [\"26607274\"],\"url\": \"https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings/BSaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\"}],\"meta\": {\"first_page_url\": \"https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?PageSize=50&Page=0\",\"key\": \"bindings\",\"next_page_url\": null,\"page\": 0,\"page_size\": 50,\"previous_page_url\": null,\"url\": \"https://notify.twilio.com/v1/Services/ISaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Bindings?PageSize=50&Page=0\"}}", TwilioRestClient.HTTP_STATUS_CODE_OK);
175175
twilioRestClient.getObjectMapper();
176176
result = new ObjectMapper();
177177
}};

0 commit comments

Comments
 (0)