Skip to content

Commit db4b39d

Browse files
committed
Update library with latest definitions
1 parent c1b76f6 commit db4b39d

File tree

590 files changed

+2963
-2375
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

590 files changed

+2963
-2375
lines changed

src/main/java/com/twilio/rest/api/v2010/Account.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public static Type forValue(final String value) {
105105
*
106106
* @return AccountCreator capable of executing the create
107107
*/
108-
public static AccountCreator create() {
108+
public static AccountCreator creator() {
109109
return new AccountCreator();
110110
}
111111

@@ -115,7 +115,7 @@ public static AccountCreator create() {
115115
* @param sid Fetch by unique Account Sid
116116
* @return AccountFetcher capable of executing the fetch
117117
*/
118-
public static AccountFetcher fetch(final String sid) {
118+
public static AccountFetcher fetcher(final String sid) {
119119
return new AccountFetcher(sid);
120120
}
121121

@@ -124,7 +124,7 @@ public static AccountFetcher fetch(final String sid) {
124124
*
125125
* @return AccountFetcher capable of executing the fetch
126126
*/
127-
public static AccountFetcher fetch() {
127+
public static AccountFetcher fetcher() {
128128
return new AccountFetcher();
129129
}
130130

@@ -133,7 +133,7 @@ public static AccountFetcher fetch() {
133133
*
134134
* @return AccountReader capable of executing the read
135135
*/
136-
public static AccountReader read() {
136+
public static AccountReader reader() {
137137
return new AccountReader();
138138
}
139139

@@ -143,7 +143,7 @@ public static AccountReader read() {
143143
* @param sid The sid
144144
* @return AccountUpdater capable of executing the update
145145
*/
146-
public static AccountUpdater update(final String sid) {
146+
public static AccountUpdater updater(final String sid) {
147147
return new AccountUpdater(sid);
148148
}
149149

@@ -152,7 +152,7 @@ public static AccountUpdater update(final String sid) {
152152
*
153153
* @return AccountUpdater capable of executing the update
154154
*/
155-
public static AccountUpdater update() {
155+
public static AccountUpdater updater() {
156156
return new AccountUpdater();
157157
}
158158

src/main/java/com/twilio/rest/api/v2010/AccountCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public AccountCreator setFriendlyName(final String friendlyName) {
4040
*/
4141
@Override
4242
@SuppressWarnings("checkstyle:linelength")
43-
public Account execute(final TwilioRestClient client) {
43+
public Account create(final TwilioRestClient client) {
4444
Request request = new Request(
4545
HttpMethod.POST,
4646
Domains.API.toString(),

src/main/java/com/twilio/rest/api/v2010/AccountFetcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public AccountFetcher(final String sid) {
4343
*/
4444
@Override
4545
@SuppressWarnings("checkstyle:linelength")
46-
public Account execute(final TwilioRestClient client) {
46+
public Account fetch(final TwilioRestClient client) {
4747
this.sid = this.sid == null ? client.getAccountSid() : this.sid;
4848
Request request = new Request(
4949
HttpMethod.GET,

src/main/java/com/twilio/rest/api/v2010/AccountReader.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class AccountReader extends Reader<Account> {
3030
* @param friendlyName FriendlyName to filter on
3131
* @return this
3232
*/
33-
public AccountReader byFriendlyName(final String friendlyName) {
33+
public AccountReader setFriendlyName(final String friendlyName) {
3434
this.friendlyName = friendlyName;
3535
return this;
3636
}
@@ -41,7 +41,7 @@ public AccountReader byFriendlyName(final String friendlyName) {
4141
* @param status Status to filter on
4242
* @return this
4343
*/
44-
public AccountReader byStatus(final Account.Status status) {
44+
public AccountReader setStatus(final Account.Status status) {
4545
this.status = status;
4646
return this;
4747
}
@@ -53,8 +53,8 @@ public AccountReader byStatus(final Account.Status status) {
5353
* @return Account ResourceSet
5454
*/
5555
@Override
56-
public ResourceSet<Account> execute(final TwilioRestClient client) {
57-
return new ResourceSet<>(this, client, firstPage());
56+
public ResourceSet<Account> read(final TwilioRestClient client) {
57+
return new ResourceSet<>(this, client, firstPage(client));
5858
}
5959

6060
/**

src/main/java/com/twilio/rest/api/v2010/AccountUpdater.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public AccountUpdater setStatus(final Account.Status status) {
6767
*/
6868
@Override
6969
@SuppressWarnings("checkstyle:linelength")
70-
public Account execute(final TwilioRestClient client) {
70+
public Account update(final TwilioRestClient client) {
7171
this.sid = this.sid == null ? client.getAccountSid() : this.sid;
7272
Request request = new Request(
7373
HttpMethod.POST,

src/main/java/com/twilio/rest/api/v2010/account/Address.java

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ public class Address extends Resource {
4747
* @param isoCountry The iso_country
4848
* @return AddressCreator capable of executing the create
4949
*/
50-
public static AddressCreator create(final String accountSid,
51-
final String customerName,
52-
final String street,
53-
final String city,
54-
final String region,
55-
final String postalCode,
56-
final String isoCountry) {
50+
public static AddressCreator creator(final String accountSid,
51+
final String customerName,
52+
final String street,
53+
final String city,
54+
final String region,
55+
final String postalCode,
56+
final String isoCountry) {
5757
return new AddressCreator(accountSid, customerName, street, city, region, postalCode, isoCountry);
5858
}
5959

@@ -68,12 +68,12 @@ public static AddressCreator create(final String accountSid,
6868
* @param isoCountry The iso_country
6969
* @return AddressCreator capable of executing the create
7070
*/
71-
public static AddressCreator create(final String customerName,
72-
final String street,
73-
final String city,
74-
final String region,
75-
final String postalCode,
76-
final String isoCountry) {
71+
public static AddressCreator creator(final String customerName,
72+
final String street,
73+
final String city,
74+
final String region,
75+
final String postalCode,
76+
final String isoCountry) {
7777
return new AddressCreator(customerName, street, city, region, postalCode, isoCountry);
7878
}
7979

@@ -84,8 +84,8 @@ public static AddressCreator create(final String customerName,
8484
* @param sid The sid
8585
* @return AddressDeleter capable of executing the delete
8686
*/
87-
public static AddressDeleter delete(final String accountSid,
88-
final String sid) {
87+
public static AddressDeleter deleter(final String accountSid,
88+
final String sid) {
8989
return new AddressDeleter(accountSid, sid);
9090
}
9191

@@ -95,7 +95,7 @@ public static AddressDeleter delete(final String accountSid,
9595
* @param sid The sid
9696
* @return AddressDeleter capable of executing the delete
9797
*/
98-
public static AddressDeleter delete(final String sid) {
98+
public static AddressDeleter deleter(final String sid) {
9999
return new AddressDeleter(sid);
100100
}
101101

@@ -106,8 +106,8 @@ public static AddressDeleter delete(final String sid) {
106106
* @param sid The sid
107107
* @return AddressFetcher capable of executing the fetch
108108
*/
109-
public static AddressFetcher fetch(final String accountSid,
110-
final String sid) {
109+
public static AddressFetcher fetcher(final String accountSid,
110+
final String sid) {
111111
return new AddressFetcher(accountSid, sid);
112112
}
113113

@@ -117,7 +117,7 @@ public static AddressFetcher fetch(final String accountSid,
117117
* @param sid The sid
118118
* @return AddressFetcher capable of executing the fetch
119119
*/
120-
public static AddressFetcher fetch(final String sid) {
120+
public static AddressFetcher fetcher(final String sid) {
121121
return new AddressFetcher(sid);
122122
}
123123

@@ -128,8 +128,8 @@ public static AddressFetcher fetch(final String sid) {
128128
* @param sid The sid
129129
* @return AddressUpdater capable of executing the update
130130
*/
131-
public static AddressUpdater update(final String accountSid,
132-
final String sid) {
131+
public static AddressUpdater updater(final String accountSid,
132+
final String sid) {
133133
return new AddressUpdater(accountSid, sid);
134134
}
135135

@@ -139,7 +139,7 @@ public static AddressUpdater update(final String accountSid,
139139
* @param sid The sid
140140
* @return AddressUpdater capable of executing the update
141141
*/
142-
public static AddressUpdater update(final String sid) {
142+
public static AddressUpdater updater(final String sid) {
143143
return new AddressUpdater(sid);
144144
}
145145

@@ -149,7 +149,7 @@ public static AddressUpdater update(final String sid) {
149149
* @param accountSid The account_sid
150150
* @return AddressReader capable of executing the read
151151
*/
152-
public static AddressReader read(final String accountSid) {
152+
public static AddressReader reader(final String accountSid) {
153153
return new AddressReader(accountSid);
154154
}
155155

@@ -158,7 +158,7 @@ public static AddressReader read(final String accountSid) {
158158
*
159159
* @return AddressReader capable of executing the read
160160
*/
161-
public static AddressReader read() {
161+
public static AddressReader reader() {
162162
return new AddressReader();
163163
}
164164

src/main/java/com/twilio/rest/api/v2010/account/AddressCreator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public AddressCreator setFriendlyName(final String friendlyName) {
9797
*/
9898
@Override
9999
@SuppressWarnings("checkstyle:linelength")
100-
public Address execute(final TwilioRestClient client) {
100+
public Address create(final TwilioRestClient client) {
101101
this.accountSid = this.accountSid == null ? client.getAccountSid() : this.accountSid;
102102
Request request = new Request(
103103
HttpMethod.POST,

src/main/java/com/twilio/rest/api/v2010/account/AddressDeleter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public AddressDeleter(final String accountSid,
4949
*/
5050
@Override
5151
@SuppressWarnings("checkstyle:linelength")
52-
public boolean execute(final TwilioRestClient client) {
52+
public boolean delete(final TwilioRestClient client) {
5353
this.accountSid = this.accountSid == null ? client.getAccountSid() : this.accountSid;
5454
Request request = new Request(
5555
HttpMethod.DELETE,

src/main/java/com/twilio/rest/api/v2010/account/AddressFetcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public AddressFetcher(final String accountSid,
5050
*/
5151
@Override
5252
@SuppressWarnings("checkstyle:linelength")
53-
public Address execute(final TwilioRestClient client) {
53+
public Address fetch(final TwilioRestClient client) {
5454
this.accountSid = this.accountSid == null ? client.getAccountSid() : this.accountSid;
5555
Request request = new Request(
5656
HttpMethod.GET,

src/main/java/com/twilio/rest/api/v2010/account/AddressReader.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public AddressReader(final String accountSid) {
4646
* @param customerName The customer_name
4747
* @return this
4848
*/
49-
public AddressReader byCustomerName(final String customerName) {
49+
public AddressReader setCustomerName(final String customerName) {
5050
this.customerName = customerName;
5151
return this;
5252
}
@@ -57,7 +57,7 @@ public AddressReader byCustomerName(final String customerName) {
5757
* @param friendlyName The friendly_name
5858
* @return this
5959
*/
60-
public AddressReader byFriendlyName(final String friendlyName) {
60+
public AddressReader setFriendlyName(final String friendlyName) {
6161
this.friendlyName = friendlyName;
6262
return this;
6363
}
@@ -68,7 +68,7 @@ public AddressReader byFriendlyName(final String friendlyName) {
6868
* @param isoCountry The iso_country
6969
* @return this
7070
*/
71-
public AddressReader byIsoCountry(final String isoCountry) {
71+
public AddressReader setIsoCountry(final String isoCountry) {
7272
this.isoCountry = isoCountry;
7373
return this;
7474
}
@@ -80,8 +80,8 @@ public AddressReader byIsoCountry(final String isoCountry) {
8080
* @return Address ResourceSet
8181
*/
8282
@Override
83-
public ResourceSet<Address> execute(final TwilioRestClient client) {
84-
return new ResourceSet<>(this, client, firstPage());
83+
public ResourceSet<Address> read(final TwilioRestClient client) {
84+
return new ResourceSet<>(this, client, firstPage(client));
8585
}
8686

8787
/**

0 commit comments

Comments
 (0)