Skip to content

Commit 6f2be22

Browse files
committed
[Librarian] Regenerated @ b894abe9525247ea4345d78891244817d397f6de f80058eb415516baff0287784518c3a22be1b1b6
1 parent fdee56a commit 6f2be22

File tree

301 files changed

+583
-3012
lines changed

Some content is hidden

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

301 files changed

+583
-3012
lines changed

CHANGES.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
twilio-go changelog
22
====================
3+
[2024-04-04] Version 1.20.0
4+
---------------------------
5+
**Library - Feature**
6+
- [PR #239](https://github.com/twilio/twilio-go/pull/239): added support for application/json content type in request body. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
7+
8+
**Api**
9+
- Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.
10+
11+
**Flex**
12+
- Remove optional parameter from `plugins` and it to `plugin_versions`
13+
14+
**Lookups**
15+
- Add new `pre_fill` package to the lookup response
16+
17+
**Messaging**
18+
- Cleanup api.messaging.next-gen from Messaging Services endpoints
19+
- Readd Sending-Window after fixing test failure
20+
21+
**Verify**
22+
- Add `whatsapp.msg_service_sid` and `whatsapp.from` parameters to create, update, get and list of services endpoints
23+
24+
**Voice**
25+
- Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC.
26+
27+
**Twiml**
28+
- Add new `token_type` value `payment-method` for `Pay` verb
29+
30+
331
[2024-04-01] Version 1.19.1
432
---------------------------
533
**Library - Chore**

rest/api/v2010/accounts_addresses.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ func (params *CreateAddressParams) SetStreetSecondary(StreetSecondary string) *C
9494
return params
9595
}
9696

97+
//
9798
func (c *ApiService) CreateAddress(params *CreateAddressParams) (*ApiV2010Address, error) {
9899
path := "/2010-04-01/Accounts/{AccountSid}/Addresses.json"
99100
if params != nil && params.PathAccountSid != nil {
@@ -162,6 +163,7 @@ func (params *DeleteAddressParams) SetPathAccountSid(PathAccountSid string) *Del
162163
return params
163164
}
164165

166+
//
165167
func (c *ApiService) DeleteAddress(Sid string, params *DeleteAddressParams) error {
166168
path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json"
167169
if params != nil && params.PathAccountSid != nil {
@@ -195,6 +197,7 @@ func (params *FetchAddressParams) SetPathAccountSid(PathAccountSid string) *Fetc
195197
return params
196198
}
197199

200+
//
198201
func (c *ApiService) FetchAddress(Sid string, params *FetchAddressParams) (*ApiV2010Address, error) {
199202
path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json"
200203
if params != nil && params.PathAccountSid != nil {
@@ -462,6 +465,7 @@ func (params *UpdateAddressParams) SetStreetSecondary(StreetSecondary string) *U
462465
return params
463466
}
464467

468+
//
465469
func (c *ApiService) UpdateAddress(Sid string, params *UpdateAddressParams) (*ApiV2010Address, error) {
466470
path := "/2010-04-01/Accounts/{AccountSid}/Addresses/{Sid}.json"
467471
if params != nil && params.PathAccountSid != nil {

rest/api/v2010/accounts_available_phone_numbers.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ func (params *FetchAvailablePhoneNumberCountryParams) SetPathAccountSid(PathAcco
3434
return params
3535
}
3636

37+
//
3738
func (c *ApiService) FetchAvailablePhoneNumberCountry(CountryCode string, params *FetchAvailablePhoneNumberCountryParams) (*ApiV2010AvailablePhoneNumberCountry, error) {
3839
path := "/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json"
3940
if params != nil && params.PathAccountSid != nil {

rest/api/v2010/accounts_calls_notifications.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ func (params *FetchCallNotificationParams) SetPathAccountSid(PathAccountSid stri
3434
return params
3535
}
3636

37+
//
3738
func (c *ApiService) FetchCallNotification(CallSid string, Sid string, params *FetchCallNotificationParams) (*ApiV2010CallNotificationInstance, error) {
3839
path := "/2010-04-01/Accounts/{AccountSid}/Calls/{CallSid}/Notifications/{Sid}.json"
3940
if params != nil && params.PathAccountSid != nil {

rest/api/v2010/accounts_conferences.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ func (c *ApiService) FetchConference(Sid string, params *FetchConferenceParams)
6666
type ListConferenceParams struct {
6767
// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Conference resource(s) to read.
6868
PathAccountSid *string `json:"PathAccountSid,omitempty"`
69-
// The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
69+
// Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
7070
DateCreated *string `json:"DateCreated,omitempty"`
71-
// The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
71+
// Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
7272
DateCreatedBefore *string `json:"DateCreated&lt;,omitempty"`
73-
// The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
73+
// Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date.
7474
DateCreatedAfter *string `json:"DateCreated&gt;,omitempty"`
75-
// The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
75+
// Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
7676
DateUpdated *string `json:"DateUpdated,omitempty"`
77-
// The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
77+
// Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
7878
DateUpdatedBefore *string `json:"DateUpdated&lt;,omitempty"`
79-
// The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
79+
// Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date.
8080
DateUpdatedAfter *string `json:"DateUpdated&gt;,omitempty"`
8181
// The string that identifies the Conference resources to read.
8282
FriendlyName *string `json:"FriendlyName,omitempty"`
@@ -311,6 +311,7 @@ func (params *UpdateConferenceParams) SetAnnounceMethod(AnnounceMethod string) *
311311
return params
312312
}
313313

314+
//
314315
func (c *ApiService) UpdateConference(Sid string, params *UpdateConferenceParams) (*ApiV2010Conference, error) {
315316
path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{Sid}.json"
316317
if params != nil && params.PathAccountSid != nil {

rest/api/v2010/accounts_conferences_participants.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ func (params *CreateParticipantParams) SetCallToken(CallToken string) *CreatePar
322322
return params
323323
}
324324

325+
//
325326
func (c *ApiService) CreateParticipant(ConferenceSid string, params *CreateParticipantParams) (*ApiV2010Participant, error) {
326327
path := "/2010-04-01/Accounts/{AccountSid}/Conferences/{ConferenceSid}/Participants.json"
327328
if params != nil && params.PathAccountSid != nil {

rest/api/v2010/accounts_incoming_phone_numbers_local.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ func (params *CreateIncomingPhoneNumberLocalParams) SetBundleSid(BundleSid strin
172172
return params
173173
}
174174

175+
//
175176
func (c *ApiService) CreateIncomingPhoneNumberLocal(params *CreateIncomingPhoneNumberLocalParams) (*ApiV2010IncomingPhoneNumberLocal, error) {
176177
path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Local.json"
177178
if params != nil && params.PathAccountSid != nil {

rest/api/v2010/accounts_incoming_phone_numbers_mobile.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ func (params *CreateIncomingPhoneNumberMobileParams) SetBundleSid(BundleSid stri
172172
return params
173173
}
174174

175+
//
175176
func (c *ApiService) CreateIncomingPhoneNumberMobile(params *CreateIncomingPhoneNumberMobileParams) (*ApiV2010IncomingPhoneNumberMobile, error) {
176177
path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/Mobile.json"
177178
if params != nil && params.PathAccountSid != nil {

rest/api/v2010/accounts_incoming_phone_numbers_toll_free.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ func (params *CreateIncomingPhoneNumberTollFreeParams) SetBundleSid(BundleSid st
172172
return params
173173
}
174174

175+
//
175176
func (c *ApiService) CreateIncomingPhoneNumberTollFree(params *CreateIncomingPhoneNumberTollFreeParams) (*ApiV2010IncomingPhoneNumberTollFree, error) {
176177
path := "/2010-04-01/Accounts/{AccountSid}/IncomingPhoneNumbers/TollFree.json"
177178
if params != nil && params.PathAccountSid != nil {

rest/api/v2010/accounts_keys.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func (params *CreateNewKeyParams) SetFriendlyName(FriendlyName string) *CreateNe
4040
return params
4141
}
4242

43+
//
4344
func (c *ApiService) CreateNewKey(params *CreateNewKeyParams) (*ApiV2010NewKey, error) {
4445
path := "/2010-04-01/Accounts/{AccountSid}/Keys.json"
4546
if params != nil && params.PathAccountSid != nil {
@@ -81,6 +82,7 @@ func (params *DeleteKeyParams) SetPathAccountSid(PathAccountSid string) *DeleteK
8182
return params
8283
}
8384

85+
//
8486
func (c *ApiService) DeleteKey(Sid string, params *DeleteKeyParams) error {
8587
path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json"
8688
if params != nil && params.PathAccountSid != nil {
@@ -114,6 +116,7 @@ func (params *FetchKeyParams) SetPathAccountSid(PathAccountSid string) *FetchKey
114116
return params
115117
}
116118

119+
//
117120
func (c *ApiService) FetchKey(Sid string, params *FetchKeyParams) (*ApiV2010Key, error) {
118121
path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json"
119122
if params != nil && params.PathAccountSid != nil {
@@ -306,6 +309,7 @@ func (params *UpdateKeyParams) SetFriendlyName(FriendlyName string) *UpdateKeyPa
306309
return params
307310
}
308311

312+
//
309313
func (c *ApiService) UpdateKey(Sid string, params *UpdateKeyParams) (*ApiV2010Key, error) {
310314
path := "/2010-04-01/Accounts/{AccountSid}/Keys/{Sid}.json"
311315
if params != nil && params.PathAccountSid != nil {

0 commit comments

Comments
 (0)