Skip to content

Commit

Permalink
[Librarian] Regenerated @ 84b4cd4c23a96109c715a2512bbe8238fae5c394 4f…
Browse files Browse the repository at this point in the history
…23177c4c946a9a5cdaf592718766a9b4816075
  • Loading branch information
twilio-dx committed Jun 18, 2024
1 parent 546eb65 commit d61d33b
Show file tree
Hide file tree
Showing 432 changed files with 2,112 additions and 1,093 deletions.
24 changes: 24 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
twilio-ruby changelog
=====================

[2024-06-18] Version 7.2.0
--------------------------
**Library - Chore**
- [PR #723](https://github.com/twilio/twilio-ruby/pull/723): adding contentType in post and put. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!

**Events**
- Add `status` and `documentation_url` to Event Types

**Lookups**
- Removed unused `fraud` lookups in V1 only to facilitate rest proxy migration

**Numbers**
- Add date_created field to the Get Port In Request API
- Rename the `status_last_time_updated_timestamp` field to `last_updated` in the Get Port In Phone Number API **(breaking change)**
- Add Rejection reason and rejection reason code to the Get Port In Phone Number API
- Remove the carrier information from the Portability API

**Proxy**
- Change property `type` from enum to ienum

**Trusthub**
- Add skipMessagingUseCase field in compliance_tollfree_inquiry.


[2024-06-06] Version 7.1.1
--------------------------
**Library - Chore**
Expand Down
3 changes: 2 additions & 1 deletion lib/twilio-ruby/rest/accounts/v1/auth_token_promotion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ def initialize(version)
# @return [AuthTokenPromotionInstance] Updated AuthTokenPromotionInstance
def update

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.update('POST', @uri)
payload = @version.update('POST', @uri, headers: headers)
AuthTokenPromotionInstance.new(
@version,
payload,
Expand Down
12 changes: 8 additions & 4 deletions lib/twilio-ruby/rest/accounts/v1/credential/aws.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ def create(
'AccountSid' => account_sid,
})

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.create('POST', @uri, data: data)
payload = @version.create('POST', @uri, data: data, headers: headers)
AwsInstance.new(
@version,
payload,
Expand Down Expand Up @@ -172,17 +173,19 @@ def initialize(version, sid)
# @return [Boolean] True if delete succeeds, false otherwise
def delete

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

@version.delete('DELETE', @uri)
@version.delete('DELETE', @uri, headers: headers)
end

##
# Fetch the AwsInstance
# @return [AwsInstance] Fetched AwsInstance
def fetch

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.fetch('GET', @uri)
payload = @version.fetch('GET', @uri, headers: headers)
AwsInstance.new(
@version,
payload,
Expand All @@ -202,8 +205,9 @@ def update(
'FriendlyName' => friendly_name,
})

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.update('POST', @uri, data: data)
payload = @version.update('POST', @uri, data: data, headers: headers)
AwsInstance.new(
@version,
payload,
Expand Down
12 changes: 8 additions & 4 deletions lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ def create(
'AccountSid' => account_sid,
})

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.create('POST', @uri, data: data)
payload = @version.create('POST', @uri, data: data, headers: headers)
PublicKeyInstance.new(
@version,
payload,
Expand Down Expand Up @@ -172,17 +173,19 @@ def initialize(version, sid)
# @return [Boolean] True if delete succeeds, false otherwise
def delete

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

@version.delete('DELETE', @uri)
@version.delete('DELETE', @uri, headers: headers)
end

##
# Fetch the PublicKeyInstance
# @return [PublicKeyInstance] Fetched PublicKeyInstance
def fetch

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.fetch('GET', @uri)
payload = @version.fetch('GET', @uri, headers: headers)
PublicKeyInstance.new(
@version,
payload,
Expand All @@ -202,8 +205,9 @@ def update(
'FriendlyName' => friendly_name,
})

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.update('POST', @uri, data: data)
payload = @version.update('POST', @uri, data: data, headers: headers)
PublicKeyInstance.new(
@version,
payload,
Expand Down
9 changes: 6 additions & 3 deletions lib/twilio-ruby/rest/accounts/v1/safelist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ def create(
'PhoneNumber' => phone_number,
})

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.create('POST', @uri, data: data)
payload = @version.create('POST', @uri, data: data, headers: headers)
SafelistInstance.new(
@version,
payload,
Expand All @@ -61,8 +62,9 @@ def delete(
params = Twilio::Values.of({
'PhoneNumber' => phone_number,
})
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

@version.delete('DELETE', @uri, params: params)
@version.delete('DELETE', @uri, params: params, headers: headers)
end

##
Expand All @@ -76,8 +78,9 @@ def fetch(
params = Twilio::Values.of({
'PhoneNumber' => phone_number,
})
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.fetch('GET', @uri, params: params)
payload = @version.fetch('GET', @uri, params: params, headers: headers)
SafelistInstance.new(
@version,
payload,
Expand Down
6 changes: 4 additions & 2 deletions lib/twilio-ruby/rest/accounts/v1/secondary_auth_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ def initialize(version)
# @return [SecondaryAuthTokenInstance] Created SecondaryAuthTokenInstance
def create

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.create('POST', @uri)
payload = @version.create('POST', @uri, headers: headers)
SecondaryAuthTokenInstance.new(
@version,
payload,
Expand All @@ -72,8 +73,9 @@ def create
# @return [Boolean] True if delete succeeds, false otherwise
def delete

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

@version.delete('DELETE', @uri)
@version.delete('DELETE', @uri, headers: headers)
end


Expand Down
9 changes: 6 additions & 3 deletions lib/twilio-ruby/rest/api/v2010/account.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ def create(
'FriendlyName' => friendly_name,
})

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.create('POST', @uri, data: data)
payload = @version.create('POST', @uri, data: data, headers: headers)
AccountInstance.new(
@version,
payload,
Expand Down Expand Up @@ -200,8 +201,9 @@ def initialize(version, sid)
# @return [AccountInstance] Fetched AccountInstance
def fetch

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.fetch('GET', @uri)
payload = @version.fetch('GET', @uri, headers: headers)
AccountInstance.new(
@version,
payload,
Expand All @@ -224,8 +226,9 @@ def update(
'Status' => status,
})

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.update('POST', @uri, data: data)
payload = @version.update('POST', @uri, data: data, headers: headers)
AccountInstance.new(
@version,
payload,
Expand Down
12 changes: 8 additions & 4 deletions lib/twilio-ruby/rest/api/v2010/account/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ def create(
'StreetSecondary' => street_secondary,
})

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.create('POST', @uri, data: data)
payload = @version.create('POST', @uri, data: data, headers: headers)
AddressInstance.new(
@version,
payload,
Expand Down Expand Up @@ -214,17 +215,19 @@ def initialize(version, account_sid, sid)
# @return [Boolean] True if delete succeeds, false otherwise
def delete

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

@version.delete('DELETE', @uri)
@version.delete('DELETE', @uri, headers: headers)
end

##
# Fetch the AddressInstance
# @return [AddressInstance] Fetched AddressInstance
def fetch

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.fetch('GET', @uri)
payload = @version.fetch('GET', @uri, headers: headers)
AddressInstance.new(
@version,
payload,
Expand Down Expand Up @@ -269,8 +272,9 @@ def update(
'StreetSecondary' => street_secondary,
})

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.update('POST', @uri, data: data)
payload = @version.update('POST', @uri, data: data, headers: headers)
AddressInstance.new(
@version,
payload,
Expand Down
12 changes: 8 additions & 4 deletions lib/twilio-ruby/rest/api/v2010/account/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ def create(
'PublicApplicationConnectEnabled' => public_application_connect_enabled,
})

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.create('POST', @uri, data: data)
payload = @version.create('POST', @uri, data: data, headers: headers)
ApplicationInstance.new(
@version,
payload,
Expand Down Expand Up @@ -219,17 +220,19 @@ def initialize(version, account_sid, sid)
# @return [Boolean] True if delete succeeds, false otherwise
def delete

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

@version.delete('DELETE', @uri)
@version.delete('DELETE', @uri, headers: headers)
end

##
# Fetch the ApplicationInstance
# @return [ApplicationInstance] Fetched ApplicationInstance
def fetch

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.fetch('GET', @uri)
payload = @version.fetch('GET', @uri, headers: headers)
ApplicationInstance.new(
@version,
payload,
Expand Down Expand Up @@ -295,8 +298,9 @@ def update(
'PublicApplicationConnectEnabled' => public_application_connect_enabled,
})

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.update('POST', @uri, data: data)
payload = @version.update('POST', @uri, data: data, headers: headers)
ApplicationInstance.new(
@version,
payload,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,9 @@ def initialize(version, account_sid, connect_app_sid)
# @return [AuthorizedConnectAppInstance] Fetched AuthorizedConnectAppInstance
def fetch

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.fetch('GET', @uri)
payload = @version.fetch('GET', @uri, headers: headers)
AuthorizedConnectAppInstance.new(
@version,
payload,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ def initialize(version, account_sid, country_code)
# @return [AvailablePhoneNumberCountryInstance] Fetched AvailablePhoneNumberCountryInstance
def fetch

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.fetch('GET', @uri)
payload = @version.fetch('GET', @uri, headers: headers)
AvailablePhoneNumberCountryInstance.new(
@version,
payload,
Expand Down
3 changes: 2 additions & 1 deletion lib/twilio-ruby/rest/api/v2010/account/balance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ def initialize(version, account_sid: nil)
# @return [BalanceInstance] Fetched BalanceInstance
def fetch

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.fetch('GET', @uri)
payload = @version.fetch('GET', @uri, headers: headers)
BalanceInstance.new(
@version,
payload,
Expand Down
14 changes: 9 additions & 5 deletions lib/twilio-ruby/rest/api/v2010/account/call.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,9 @@ def create(
'ApplicationSid' => application_sid,
})

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.create('POST', @uri, data: data)
payload = @version.create('POST', @uri, data: data, headers: headers)
CallInstance.new(
@version,
payload,
Expand Down Expand Up @@ -338,17 +339,19 @@ def initialize(version, account_sid, sid)
# @return [Boolean] True if delete succeeds, false otherwise
def delete

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

@version.delete('DELETE', @uri)
@version.delete('DELETE', @uri, headers: headers)
end

##
# Fetch the CallInstance
# @return [CallInstance] Fetched CallInstance
def fetch

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.fetch('GET', @uri)
payload = @version.fetch('GET', @uri, headers: headers)
CallInstance.new(
@version,
payload,
Expand Down Expand Up @@ -393,8 +396,9 @@ def update(
'TimeLimit' => time_limit,
})

headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })

payload = @version.update('POST', @uri, data: data)
payload = @version.update('POST', @uri, data: data, headers: headers)
CallInstance.new(
@version,
payload,
Expand Down Expand Up @@ -727,7 +731,7 @@ def duration
end

##
# @return [String] The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available.
# @return [String] The charge for this call, in the currency associated with the account. Populated after the call is completed. May not be immediately available. The price associated with a call only reflects the charge for connectivity. Charges for other call-related features such as Answering Machine Detection, Text-To-Speech, and SIP REFER are not included in this value.
def price
@properties['price']
end
Expand Down
Loading

0 comments on commit d61d33b

Please sign in to comment.