twilio-ruby 5.31.6 → 5.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b10dfe68ba7cf1dbd1aaa43ca5710c553be4dc466323a91763f975ccf617785
4
- data.tar.gz: 778ec7e17ddd7926d65140bcdf6916b002feec6df502b0939762bc3e00034855
3
+ metadata.gz: 28cc3a56f591c7829313367af99d2da9b0d91ae0d163b99d10d84db8d40e9119
4
+ data.tar.gz: f759fccd00bb6ba6262177bdb24021531b2ce2b32d7fae50affdb075cc9618ea
5
5
  SHA512:
6
- metadata.gz: ae1943f38ef340c1006d64c5bce6b5d70de809f6529d53436c95528d4b988c37dbd224fea438c9fb8ae487df7257d65f10d1ce43c319c4bc8caa93e7c537b119
7
- data.tar.gz: 483ad9fc52526bed959e06be06cc88aeb3fd6763c3756c3b7d86458f1cbe64f78f4a80fbd53bf70dcd7d52f50d2b9eb869bdd66e7f7a7b104a700993ebede97a
6
+ metadata.gz: 28663d53e91c0784b2cd0b91154cea116be05a80f6a56138e59442cd40f56c618693ac25026b5eec6f0fc75738ff10ff6716dd21ad2770ab67892a7cf7480022
7
+ data.tar.gz: b9df6ad98bf62443ce0d588e8ebcc020e40f59678f46cb908c242208ca3fb093fbee01949638bce65e8509d855e0bea541afcdaca387cba192cdfbfb8840e290
data/.travis.yml CHANGED
@@ -9,7 +9,7 @@ rvm:
9
9
  - 2.6
10
10
  - 2.5
11
11
  - 2.4
12
- - jruby
12
+ - jruby-9.2
13
13
 
14
14
  services:
15
15
  - docker
data/CHANGES.md CHANGED
@@ -1,6 +1,20 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2020-03-18] Version 5.32.0
5
+ ---------------------------
6
+ **Api**
7
+ - Add optional `emergency_calling_enabled` parameter to SIP Domain
8
+ - Add optional property `call_reason` in the call create request
9
+
10
+ **Authy**
11
+ - Added `friendly_name` and `config` as optional params to Factor update
12
+ - Added `config` param to Factor creation **(breaking change)**
13
+
14
+ **Preview**
15
+ - Renamed `SuccessRate` endpoint to `ImpressionsRate` for Branded Calls (fka. Verified by Twilio) **(breaking change)**
16
+
17
+
4
18
  [2020-03-04] Version 5.31.6
5
19
  ---------------------------
6
20
  **Library - Chore**
data/README.md CHANGED
@@ -32,13 +32,13 @@ This library supports the following Ruby implementations:
32
32
  To install using [Bundler][bundler] grab the latest stable version:
33
33
 
34
34
  ```ruby
35
- gem 'twilio-ruby', '~> 5.31.6'
35
+ gem 'twilio-ruby', '~> 5.32.0'
36
36
  ```
37
37
 
38
38
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
39
39
 
40
40
  ```bash
41
- gem install twilio-ruby -v 5.31.6
41
+ gem install twilio-ruby -v 5.32.0
42
42
  ```
43
43
 
44
44
  To build and install the development branch yourself from the latest source:
@@ -139,6 +139,9 @@ module Twilio
139
139
  # @param [String] byoc The SID of a BYOC (Bring Your Own Carrier) trunk to route
140
140
  # this call with. Note that `byoc` is only meaningful when `to` is a phone number;
141
141
  # it will otherwise be ignored. (Beta)
142
+ # @param [String] call_reason The Reason for the outgoing call. Use call_reason to
143
+ # specify the purpose of the call that is presented on the called party's phone.
144
+ # (Beta).
142
145
  # @param [String] url The absolute URL that returns the TwiML instructions for the
143
146
  # call. We will call this URL using the `method` when the call connects. For more
144
147
  # information, see the [Url
@@ -150,7 +153,7 @@ module Twilio
150
153
  # @param [String] application_sid The SID of the Application resource that will
151
154
  # handle the call, if the call will be handled by an application.
152
155
  # @return [CallInstance] Newly created CallInstance
153
- def create(to: nil, from: nil, method: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_event: :unset, status_callback_method: :unset, send_digits: :unset, timeout: :unset, record: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, sip_auth_username: :unset, sip_auth_password: :unset, machine_detection: :unset, machine_detection_timeout: :unset, recording_status_callback_event: :unset, trim: :unset, caller_id: :unset, machine_detection_speech_threshold: :unset, machine_detection_speech_end_threshold: :unset, machine_detection_silence_timeout: :unset, async_amd: :unset, async_amd_status_callback: :unset, async_amd_status_callback_method: :unset, byoc: :unset, url: :unset, twiml: :unset, application_sid: :unset)
156
+ def create(to: nil, from: nil, method: :unset, fallback_url: :unset, fallback_method: :unset, status_callback: :unset, status_callback_event: :unset, status_callback_method: :unset, send_digits: :unset, timeout: :unset, record: :unset, recording_channels: :unset, recording_status_callback: :unset, recording_status_callback_method: :unset, sip_auth_username: :unset, sip_auth_password: :unset, machine_detection: :unset, machine_detection_timeout: :unset, recording_status_callback_event: :unset, trim: :unset, caller_id: :unset, machine_detection_speech_threshold: :unset, machine_detection_speech_end_threshold: :unset, machine_detection_silence_timeout: :unset, async_amd: :unset, async_amd_status_callback: :unset, async_amd_status_callback_method: :unset, byoc: :unset, call_reason: :unset, url: :unset, twiml: :unset, application_sid: :unset)
154
157
  data = Twilio::Values.of({
155
158
  'To' => to,
156
159
  'From' => from,
@@ -183,6 +186,7 @@ module Twilio
183
186
  'AsyncAmdStatusCallback' => async_amd_status_callback,
184
187
  'AsyncAmdStatusCallbackMethod' => async_amd_status_callback_method,
185
188
  'Byoc' => byoc,
189
+ 'CallReason' => call_reason,
186
190
  })
187
191
 
188
192
  payload = @version.create(
@@ -130,8 +130,11 @@ module Twilio
130
130
  # @param [Boolean] sip_registration Whether to allow SIP Endpoints to register
131
131
  # with the domain to receive calls. Can be `true` or `false`. `true` allows SIP
132
132
  # Endpoints to register with the domain to receive calls, `false` does not.
133
+ # @param [Boolean] emergency_calling_enabled Whether emergency calling is enabled
134
+ # for the domain. If enabled, allows emergency calls on the domain from phone
135
+ # numbers with validated addresses.
133
136
  # @return [DomainInstance] Newly created DomainInstance
134
- def create(domain_name: nil, friendly_name: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, voice_status_callback_url: :unset, voice_status_callback_method: :unset, sip_registration: :unset)
137
+ def create(domain_name: nil, friendly_name: :unset, voice_url: :unset, voice_method: :unset, voice_fallback_url: :unset, voice_fallback_method: :unset, voice_status_callback_url: :unset, voice_status_callback_method: :unset, sip_registration: :unset, emergency_calling_enabled: :unset)
135
138
  data = Twilio::Values.of({
136
139
  'DomainName' => domain_name,
137
140
  'FriendlyName' => friendly_name,
@@ -142,6 +145,7 @@ module Twilio
142
145
  'VoiceStatusCallbackUrl' => voice_status_callback_url,
143
146
  'VoiceStatusCallbackMethod' => voice_status_callback_method,
144
147
  'SipRegistration' => sip_registration,
148
+ 'EmergencyCallingEnabled' => emergency_calling_enabled,
145
149
  })
146
150
 
147
151
  payload = @version.create(
@@ -247,8 +251,11 @@ module Twilio
247
251
  # Endpoints to register with the domain to receive calls, `false` does not.
248
252
  # @param [String] domain_name The unique address you reserve on Twilio to which
249
253
  # you route your SIP traffic. Domain names can contain letters, digits, and "-".
254
+ # @param [Boolean] emergency_calling_enabled Whether emergency calling is enabled
255
+ # for the domain. If enabled, allows emergency calls on the domain from phone
256
+ # numbers with validated addresses.
250
257
  # @return [DomainInstance] Updated DomainInstance
251
- def update(friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset, sip_registration: :unset, domain_name: :unset)
258
+ def update(friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset, sip_registration: :unset, domain_name: :unset, emergency_calling_enabled: :unset)
252
259
  data = Twilio::Values.of({
253
260
  'FriendlyName' => friendly_name,
254
261
  'VoiceFallbackMethod' => voice_fallback_method,
@@ -259,6 +266,7 @@ module Twilio
259
266
  'VoiceUrl' => voice_url,
260
267
  'SipRegistration' => sip_registration,
261
268
  'DomainName' => domain_name,
269
+ 'EmergencyCallingEnabled' => emergency_calling_enabled,
262
270
  })
263
271
 
264
272
  payload = @version.update(
@@ -389,6 +397,7 @@ module Twilio
389
397
  'voice_url' => payload['voice_url'],
390
398
  'subresource_uris' => payload['subresource_uris'],
391
399
  'sip_registration' => payload['sip_registration'],
400
+ 'emergency_calling_enabled' => payload['emergency_calling_enabled'],
392
401
  }
393
402
 
394
403
  # Context
@@ -509,6 +518,12 @@ module Twilio
509
518
  @properties['sip_registration']
510
519
  end
511
520
 
521
+ ##
522
+ # @return [Boolean] Whether emergency calling is enabled for the domain.
523
+ def emergency_calling_enabled
524
+ @properties['emergency_calling_enabled']
525
+ end
526
+
512
527
  ##
513
528
  # Fetch a DomainInstance
514
529
  # @return [DomainInstance] Fetched DomainInstance
@@ -536,8 +551,11 @@ module Twilio
536
551
  # Endpoints to register with the domain to receive calls, `false` does not.
537
552
  # @param [String] domain_name The unique address you reserve on Twilio to which
538
553
  # you route your SIP traffic. Domain names can contain letters, digits, and "-".
554
+ # @param [Boolean] emergency_calling_enabled Whether emergency calling is enabled
555
+ # for the domain. If enabled, allows emergency calls on the domain from phone
556
+ # numbers with validated addresses.
539
557
  # @return [DomainInstance] Updated DomainInstance
540
- def update(friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset, sip_registration: :unset, domain_name: :unset)
558
+ def update(friendly_name: :unset, voice_fallback_method: :unset, voice_fallback_url: :unset, voice_method: :unset, voice_status_callback_method: :unset, voice_status_callback_url: :unset, voice_url: :unset, sip_registration: :unset, domain_name: :unset, emergency_calling_enabled: :unset)
541
559
  context.update(
542
560
  friendly_name: friendly_name,
543
561
  voice_fallback_method: voice_fallback_method,
@@ -548,6 +566,7 @@ module Twilio
548
566
  voice_url: voice_url,
549
567
  sip_registration: sip_registration,
550
568
  domain_name: domain_name,
569
+ emergency_calling_enabled: emergency_calling_enabled,
551
570
  )
552
571
  end
553
572
 
@@ -40,12 +40,15 @@ module Twilio
40
40
  # @param [String] friendly_name The friendly name of this Factor
41
41
  # @param [factor.FactorTypes] factor_type The Type of this Factor. One of
42
42
  # `app-push`, `sms`, `totp`, etc.
43
+ # @param [String] config The config required for this Factor. It must be a json
44
+ # string with the required properties for the given factor type
43
45
  # @return [FactorInstance] Newly created FactorInstance
44
- def create(binding: nil, friendly_name: nil, factor_type: nil)
46
+ def create(binding: nil, friendly_name: nil, factor_type: nil, config: nil)
45
47
  data = Twilio::Values.of({
46
48
  'Binding' => binding,
47
49
  'FriendlyName' => friendly_name,
48
50
  'FactorType' => factor_type,
51
+ 'Config' => config,
49
52
  })
50
53
 
51
54
  payload = @version.create(
@@ -241,9 +244,16 @@ module Twilio
241
244
  # Update the FactorInstance
242
245
  # @param [String] auth_payload The optional payload needed to verify the Factor
243
246
  # for the first time. E.g. for a TOTP, the numeric code.
247
+ # @param [String] friendly_name The new friendly name of this Factor
248
+ # @param [String] config The new config for this Factor. It must be a json string
249
+ # with the required properties for the given factor type
244
250
  # @return [FactorInstance] Updated FactorInstance
245
- def update(auth_payload: :unset)
246
- data = Twilio::Values.of({'AuthPayload' => auth_payload, })
251
+ def update(auth_payload: :unset, friendly_name: :unset, config: :unset)
252
+ data = Twilio::Values.of({
253
+ 'AuthPayload' => auth_payload,
254
+ 'FriendlyName' => friendly_name,
255
+ 'Config' => config,
256
+ })
247
257
 
248
258
  payload = @version.update(
249
259
  'POST',
@@ -331,6 +341,7 @@ module Twilio
331
341
  'friendly_name' => payload['friendly_name'],
332
342
  'status' => payload['status'],
333
343
  'factor_type' => payload['factor_type'],
344
+ 'config' => payload['config'],
334
345
  'url' => payload['url'],
335
346
  'links' => payload['links'],
336
347
  }
@@ -416,6 +427,12 @@ module Twilio
416
427
  @properties['factor_type']
417
428
  end
418
429
 
430
+ ##
431
+ # @return [Hash] The config
432
+ def config
433
+ @properties['config']
434
+ end
435
+
419
436
  ##
420
437
  # @return [String] The URL of this resource.
421
438
  def url
@@ -446,9 +463,12 @@ module Twilio
446
463
  # Update the FactorInstance
447
464
  # @param [String] auth_payload The optional payload needed to verify the Factor
448
465
  # for the first time. E.g. for a TOTP, the numeric code.
466
+ # @param [String] friendly_name The new friendly name of this Factor
467
+ # @param [String] config The new config for this Factor. It must be a json string
468
+ # with the required properties for the given factor type
449
469
  # @return [FactorInstance] Updated FactorInstance
450
- def update(auth_payload: :unset)
451
- context.update(auth_payload: auth_payload, )
470
+ def update(auth_payload: :unset, friendly_name: :unset, config: :unset)
471
+ context.update(auth_payload: auth_payload, friendly_name: friendly_name, config: config, )
452
472
  end
453
473
 
454
474
  ##
@@ -27,17 +27,17 @@ module Twilio
27
27
  @solution = {business_sid: business_sid}
28
28
 
29
29
  # Components
30
- @success_rate = nil
30
+ @impressions_rate = nil
31
31
  end
32
32
 
33
33
  ##
34
- # Access the success_rate
35
- # @return [SuccessRateList]
36
- # @return [SuccessRateContext]
37
- def success_rate
38
- return SuccessRateContext.new(@version, @solution[:business_sid], )
34
+ # Access the impressions_rate
35
+ # @return [ImpressionsRateList]
36
+ # @return [ImpressionsRateContext]
37
+ def impressions_rate
38
+ return ImpressionsRateContext.new(@version, @solution[:business_sid], )
39
39
 
40
- @success_rate ||= SuccessRateList.new(@version, business_sid: @solution[:business_sid], )
40
+ @impressions_rate ||= ImpressionsRateList.new(@version, business_sid: @solution[:business_sid], )
41
41
  end
42
42
 
43
43
  ##
@@ -14,13 +14,13 @@ module Twilio
14
14
  class InsightsList < ListResource
15
15
  ##
16
16
  # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
17
- class SuccessRateList < ListResource
17
+ class ImpressionsRateList < ListResource
18
18
  ##
19
- # Initialize the SuccessRateList
19
+ # Initialize the ImpressionsRateList
20
20
  # @param [Version] version Version that contains the resource
21
21
  # @param [String] business_sid A 34 character string that uniquely identifies this
22
22
  # Business.
23
- # @return [SuccessRateList] SuccessRateList
23
+ # @return [ImpressionsRateList] ImpressionsRateList
24
24
  def initialize(version, business_sid: nil)
25
25
  super(version)
26
26
 
@@ -31,19 +31,19 @@ module Twilio
31
31
  ##
32
32
  # Provide a user friendly representation
33
33
  def to_s
34
- '#<Twilio.Preview.TrustedComms.SuccessRateList>'
34
+ '#<Twilio.Preview.TrustedComms.ImpressionsRateList>'
35
35
  end
36
36
  end
37
37
 
38
38
  ##
39
39
  # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
40
- class SuccessRatePage < Page
40
+ class ImpressionsRatePage < Page
41
41
  ##
42
- # Initialize the SuccessRatePage
42
+ # Initialize the ImpressionsRatePage
43
43
  # @param [Version] version Version that contains the resource
44
44
  # @param [Response] response Response from the API
45
45
  # @param [Hash] solution Path solution for the resource
46
- # @return [SuccessRatePage] SuccessRatePage
46
+ # @return [ImpressionsRatePage] ImpressionsRatePage
47
47
  def initialize(version, response, solution)
48
48
  super(version, response)
49
49
 
@@ -52,52 +52,52 @@ module Twilio
52
52
  end
53
53
 
54
54
  ##
55
- # Build an instance of SuccessRateInstance
55
+ # Build an instance of ImpressionsRateInstance
56
56
  # @param [Hash] payload Payload response from the API
57
- # @return [SuccessRateInstance] SuccessRateInstance
57
+ # @return [ImpressionsRateInstance] ImpressionsRateInstance
58
58
  def get_instance(payload)
59
- SuccessRateInstance.new(@version, payload, business_sid: @solution[:business_sid], )
59
+ ImpressionsRateInstance.new(@version, payload, business_sid: @solution[:business_sid], )
60
60
  end
61
61
 
62
62
  ##
63
63
  # Provide a user friendly representation
64
64
  def to_s
65
- '<Twilio.Preview.TrustedComms.SuccessRatePage>'
65
+ '<Twilio.Preview.TrustedComms.ImpressionsRatePage>'
66
66
  end
67
67
  end
68
68
 
69
69
  ##
70
70
  # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
71
- class SuccessRateContext < InstanceContext
71
+ class ImpressionsRateContext < InstanceContext
72
72
  ##
73
- # Initialize the SuccessRateContext
73
+ # Initialize the ImpressionsRateContext
74
74
  # @param [Version] version Version that contains the resource
75
75
  # @param [String] business_sid The unique SID identifier of the Business to filter
76
76
  # by.
77
- # @return [SuccessRateContext] SuccessRateContext
77
+ # @return [ImpressionsRateContext] ImpressionsRateContext
78
78
  def initialize(version, business_sid)
79
79
  super(version)
80
80
 
81
81
  # Path Solution
82
82
  @solution = {business_sid: business_sid, }
83
- @uri = "/Businesses/#{@solution[:business_sid]}/Insights/SuccessRate"
83
+ @uri = "/Businesses/#{@solution[:business_sid]}/Insights/ImpressionsRate"
84
84
  end
85
85
 
86
86
  ##
87
- # Fetch a SuccessRateInstance
87
+ # Fetch a ImpressionsRateInstance
88
88
  # @param [String] brand_sid The unique SID identifier of the Brand to filter by.
89
89
  # @param [String] branded_channel_sid The unique SID identifier of the Branded
90
90
  # Channel to filter by.
91
91
  # @param [String] phone_number_sid The unique SID identifier of the Phone Number
92
92
  # to filter by.
93
93
  # @param [String] country The 2-letter ISO 3166 code of the Country to filter by.
94
- # @param [Time] start The start date that for this Success Rate, given in ISO 8601
95
- # format. Default value is 30 days ago.
96
- # @param [Time] end_ The end date that for this Success Rate, given in ISO 8601
97
- # format. Default value is current timestamp.
98
- # @param [success_rate.Intervals] interval The Interval of this Success Rate. One
99
- # of `minute`, `hour`, `day`, `week` or `month`.
100
- # @return [SuccessRateInstance] Fetched SuccessRateInstance
94
+ # @param [Time] start The start date that for this Impressions Rate, given in ISO
95
+ # 8601 format. Default value is 30 days ago.
96
+ # @param [Time] end_ The end date that for this Impressions Rate, given in ISO
97
+ # 8601 format. Default value is current timestamp.
98
+ # @param [impressions_rate.Intervals] interval The Interval of this Impressions
99
+ # Rate. One of `minute`, `hour`, `day`, `week` or `month`.
100
+ # @return [ImpressionsRateInstance] Fetched ImpressionsRateInstance
101
101
  def fetch(brand_sid: :unset, branded_channel_sid: :unset, phone_number_sid: :unset, country: :unset, start: :unset, end_: :unset, interval: :unset)
102
102
  params = Twilio::Values.of({
103
103
  'BrandSid' => brand_sid,
@@ -115,34 +115,34 @@ module Twilio
115
115
  params,
116
116
  )
117
117
 
118
- SuccessRateInstance.new(@version, payload, business_sid: @solution[:business_sid], )
118
+ ImpressionsRateInstance.new(@version, payload, business_sid: @solution[:business_sid], )
119
119
  end
120
120
 
121
121
  ##
122
122
  # Provide a user friendly representation
123
123
  def to_s
124
124
  context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
125
- "#<Twilio.Preview.TrustedComms.SuccessRateContext #{context}>"
125
+ "#<Twilio.Preview.TrustedComms.ImpressionsRateContext #{context}>"
126
126
  end
127
127
 
128
128
  ##
129
129
  # Provide a detailed, user friendly representation
130
130
  def inspect
131
131
  context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
132
- "#<Twilio.Preview.TrustedComms.SuccessRateContext #{context}>"
132
+ "#<Twilio.Preview.TrustedComms.ImpressionsRateContext #{context}>"
133
133
  end
134
134
  end
135
135
 
136
136
  ##
137
137
  # PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
138
- class SuccessRateInstance < InstanceResource
138
+ class ImpressionsRateInstance < InstanceResource
139
139
  ##
140
- # Initialize the SuccessRateInstance
140
+ # Initialize the ImpressionsRateInstance
141
141
  # @param [Version] version Version that contains the resource
142
142
  # @param [Hash] payload payload that contains response from Twilio
143
143
  # @param [String] business_sid A 34 character string that uniquely identifies this
144
144
  # Business.
145
- # @return [SuccessRateInstance] SuccessRateInstance
145
+ # @return [ImpressionsRateInstance] ImpressionsRateInstance
146
146
  def initialize(version, payload, business_sid: nil)
147
147
  super(version)
148
148
 
@@ -165,10 +165,10 @@ module Twilio
165
165
  ##
166
166
  # Generate an instance context for the instance, the context is capable of
167
167
  # performing various actions. All instance actions are proxied to the context
168
- # @return [SuccessRateContext] SuccessRateContext for this SuccessRateInstance
168
+ # @return [ImpressionsRateContext] ImpressionsRateContext for this ImpressionsRateInstance
169
169
  def context
170
170
  unless @instance_context
171
- @instance_context = SuccessRateContext.new(@version, @params['business_sid'], )
171
+ @instance_context = ImpressionsRateContext.new(@version, @params['business_sid'], )
172
172
  end
173
173
  @instance_context
174
174
  end
@@ -186,25 +186,25 @@ module Twilio
186
186
  end
187
187
 
188
188
  ##
189
- # @return [Time] The end date that for this Success Rate.
189
+ # @return [Time] The end date that for this Impressions Rate.
190
190
  def end_
191
191
  @properties['end_']
192
192
  end
193
193
 
194
194
  ##
195
- # @return [success_rate.Intervals] The Interval of this Success Rate.
195
+ # @return [impressions_rate.Intervals] The Interval of this Impressions Rate.
196
196
  def interval
197
197
  @properties['interval']
198
198
  end
199
199
 
200
200
  ##
201
- # @return [Hash] Values of Success Rate per interval.
201
+ # @return [Hash] Values of Impressions Rate per interval.
202
202
  def reports
203
203
  @properties['reports']
204
204
  end
205
205
 
206
206
  ##
207
- # @return [Time] The start date that for this Success Rate.
207
+ # @return [Time] The start date that for this Impressions Rate.
208
208
  def start
209
209
  @properties['start']
210
210
  end
@@ -216,20 +216,20 @@ module Twilio
216
216
  end
217
217
 
218
218
  ##
219
- # Fetch a SuccessRateInstance
219
+ # Fetch a ImpressionsRateInstance
220
220
  # @param [String] brand_sid The unique SID identifier of the Brand to filter by.
221
221
  # @param [String] branded_channel_sid The unique SID identifier of the Branded
222
222
  # Channel to filter by.
223
223
  # @param [String] phone_number_sid The unique SID identifier of the Phone Number
224
224
  # to filter by.
225
225
  # @param [String] country The 2-letter ISO 3166 code of the Country to filter by.
226
- # @param [Time] start The start date that for this Success Rate, given in ISO 8601
227
- # format. Default value is 30 days ago.
228
- # @param [Time] end_ The end date that for this Success Rate, given in ISO 8601
229
- # format. Default value is current timestamp.
230
- # @param [success_rate.Intervals] interval The Interval of this Success Rate. One
231
- # of `minute`, `hour`, `day`, `week` or `month`.
232
- # @return [SuccessRateInstance] Fetched SuccessRateInstance
226
+ # @param [Time] start The start date that for this Impressions Rate, given in ISO
227
+ # 8601 format. Default value is 30 days ago.
228
+ # @param [Time] end_ The end date that for this Impressions Rate, given in ISO
229
+ # 8601 format. Default value is current timestamp.
230
+ # @param [impressions_rate.Intervals] interval The Interval of this Impressions
231
+ # Rate. One of `minute`, `hour`, `day`, `week` or `month`.
232
+ # @return [ImpressionsRateInstance] Fetched ImpressionsRateInstance
233
233
  def fetch(brand_sid: :unset, branded_channel_sid: :unset, phone_number_sid: :unset, country: :unset, start: :unset, end_: :unset, interval: :unset)
234
234
  context.fetch(
235
235
  brand_sid: brand_sid,
@@ -246,14 +246,14 @@ module Twilio
246
246
  # Provide a user friendly representation
247
247
  def to_s
248
248
  values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
249
- "<Twilio.Preview.TrustedComms.SuccessRateInstance #{values}>"
249
+ "<Twilio.Preview.TrustedComms.ImpressionsRateInstance #{values}>"
250
250
  end
251
251
 
252
252
  ##
253
253
  # Provide a detailed, user friendly representation
254
254
  def inspect
255
255
  values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
256
- "<Twilio.Preview.TrustedComms.SuccessRateInstance #{values}>"
256
+ "<Twilio.Preview.TrustedComms.ImpressionsRateInstance #{values}>"
257
257
  end
258
258
  end
259
259
  end