twilio-ruby 5.10.0 → 5.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +11 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/key.rb +4 -2
  5. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +9 -3
  6. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +9 -3
  7. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +9 -3
  8. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +9 -3
  9. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +9 -3
  10. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +9 -3
  11. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +9 -3
  12. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +9 -3
  13. data/lib/twilio-ruby/rest/chat/v2/service/channel/member.rb +69 -29
  14. data/lib/twilio-ruby/rest/chat/v2/service/channel/message.rb +21 -17
  15. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +13 -9
  16. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/member.rb +69 -29
  17. data/lib/twilio-ruby/rest/ip_messaging/v2/service/channel/message.rb +21 -17
  18. data/lib/twilio-ruby/rest/ip_messaging/v2/service/user/user_channel.rb +13 -9
  19. data/lib/twilio-ruby/rest/notify/v1/service/user.rb +21 -9
  20. data/lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb +4 -1
  21. data/lib/twilio-ruby/rest/trunking/v1/trunk/ip_access_control_list.rb +13 -9
  22. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +28 -12
  23. data/lib/twilio-ruby/rest/video/v1/composition.rb +36 -28
  24. data/lib/twilio-ruby/rest/video/v1/room/room_participant/room_participant_published_track.rb +22 -17
  25. data/lib/twilio-ruby/rest/video/v1.rb +2 -1
  26. data/lib/twilio-ruby/rest/video.rb +2 -1
  27. data/lib/twilio-ruby/version.rb +1 -1
  28. data/spec/integration/trunking/v1/trunk/credential_list_spec.rb +9 -9
  29. data/spec/integration/trunking/v1/trunk/ip_access_control_list_spec.rb +15 -15
  30. data/spec/integration/trunking/v1/trunk/origination_url_spec.rb +15 -15
  31. data/spec/integration/trunking/v1/trunk_spec.rb +32 -28
  32. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 843223e6f0d1c7a92a7ab13f3930e0386ebd6f15
4
- data.tar.gz: ebfc1d58258f67bf87f2995815ad0f2ab3bb6bb1
3
+ metadata.gz: 44813fd91c7b8d7e409fd23e388303f45aa62e7d
4
+ data.tar.gz: 0ea68a8fc4e46fa080f369ebab9c88cf4e5fd32e
5
5
  SHA512:
6
- metadata.gz: 80907a343296c2717b10f7fcc173560709c21670eee7b2d7d684c0114540b02ba5b35e569a27de5fd33441c16be81f15e0396739a36a1056d683fa5270e77c98
7
- data.tar.gz: 4a1d1f4c0989dc6f48c26fd7ac5fec9c9da4dae4e6546a2ccbd4380945c284c34fe89c00bcc4e579211979af24589fbe4f72d2c3f3ea3a5ae75759284eb919d7
6
+ metadata.gz: 1c5affb763dba791e78bd3d859dc61845050107455657d6df3a13881a9835d844098085e7d666c0573062897935cd0f4cd64426138774b866c9268364097bea8
7
+ data.tar.gz: c93c228d311ff2645ee0aa3f1a481230ae5acbf612088ec44069c307897fde527eca9861413d827fdbd1b4930c2d46e582f6daf4bd3b8d886dc7f7232109a550
data/CHANGES.md CHANGED
@@ -1,6 +1,17 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2018-05-18] Version 5.10.1
5
+ ----------------------------
6
+ **Api**
7
+ - Add more programmable video categories to usage records
8
+ - Add 'include_subaccounts' parameter to all variation of usage_record fetch
9
+
10
+ **Trunking**
11
+ - Added cnam_lookup_enabled parameter to Trunk resource.
12
+ - Added case-insensitivity for recording parameter to Trunk resource.
13
+
14
+
4
15
  [2018-05-11] Version 5.10.0
5
16
  ----------------------------
6
17
  **Chat**
data/README.md CHANGED
@@ -27,13 +27,13 @@ in-line code documentation here in the library.
27
27
  To install using [Bundler][bundler] grab the latest stable version:
28
28
 
29
29
  ```ruby
30
- gem 'twilio-ruby', '~> 5.10.0'
30
+ gem 'twilio-ruby', '~> 5.10.1'
31
31
  ```
32
32
 
33
33
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
34
34
 
35
35
  ```bash
36
- gem install twilio-ruby -v 5.10.0
36
+ gem install twilio-ruby -v 5.10.1
37
37
  ```
38
38
 
39
39
  To build and install the development branch yourself from the latest source:
@@ -176,7 +176,8 @@ module Twilio
176
176
 
177
177
  ##
178
178
  # Update the KeyInstance
179
- # @param [String] friendly_name The friendly_name
179
+ # @param [String] friendly_name A descriptive string for this resource, chosen by
180
+ # your application, up to 64 characters long.
180
181
  # @return [KeyInstance] Updated KeyInstance
181
182
  def update(friendly_name: :unset)
182
183
  data = Twilio::Values.of({'FriendlyName' => friendly_name, })
@@ -274,7 +275,8 @@ module Twilio
274
275
 
275
276
  ##
276
277
  # Update the KeyInstance
277
- # @param [String] friendly_name The friendly_name
278
+ # @param [String] friendly_name A descriptive string for this resource, chosen by
279
+ # your application, up to 64 characters long.
278
280
  # @return [KeyInstance] Updated KeyInstance
279
281
  def update(friendly_name: :unset)
280
282
  context.update(friendly_name: friendly_name, )
@@ -42,6 +42,7 @@ module Twilio
42
42
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
43
43
  # also specify offsets to today. For example, `EndDate=+30days` will make
44
44
  # `EndDate` be 30 days from today.
45
+ # @param [Boolean] include_subaccounts The include_subaccounts
45
46
  # @param [Integer] limit Upper limit for the number of records to return. stream()
46
47
  # guarantees to never return more than limit. Default is no limit
47
48
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -49,11 +50,12 @@ module Twilio
49
50
  # but a limit is defined, stream() will attempt to read the limit with the most
50
51
  # efficient page size, i.e. min(limit, 1000)
51
52
  # @return [Array] Array of up to limit results
52
- def list(category: :unset, start_date: :unset, end_date: :unset, limit: nil, page_size: nil)
53
+ def list(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, limit: nil, page_size: nil)
53
54
  self.stream(
54
55
  category: category,
55
56
  start_date: start_date,
56
57
  end_date: end_date,
58
+ include_subaccounts: include_subaccounts,
57
59
  limit: limit,
58
60
  page_size: page_size
59
61
  ).entries
@@ -73,6 +75,7 @@ module Twilio
73
75
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
74
76
  # also specify offsets to today. For example, `EndDate=+30days` will make
75
77
  # `EndDate` be 30 days from today.
78
+ # @param [Boolean] include_subaccounts The include_subaccounts
76
79
  # @param [Integer] limit Upper limit for the number of records to return. stream()
77
80
  # guarantees to never return more than limit. Default is no limit.
78
81
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -80,13 +83,14 @@ module Twilio
80
83
  # but a limit is defined, stream() will attempt to read the limit with the most
81
84
  # efficient page size, i.e. min(limit, 1000)
82
85
  # @return [Enumerable] Enumerable that will yield up to limit results
83
- def stream(category: :unset, start_date: :unset, end_date: :unset, limit: nil, page_size: nil)
86
+ def stream(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, limit: nil, page_size: nil)
84
87
  limits = @version.read_limits(limit, page_size)
85
88
 
86
89
  page = self.page(
87
90
  category: category,
88
91
  start_date: start_date,
89
92
  end_date: end_date,
93
+ include_subaccounts: include_subaccounts,
90
94
  page_size: limits[:page_size],
91
95
  )
92
96
 
@@ -120,15 +124,17 @@ module Twilio
120
124
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
121
125
  # also specify offsets to today. For example, `EndDate=+30days` will make
122
126
  # `EndDate` be 30 days from today.
127
+ # @param [Boolean] include_subaccounts The include_subaccounts
123
128
  # @param [String] page_token PageToken provided by the API
124
129
  # @param [Integer] page_number Page Number, this value is simply for client state
125
130
  # @param [Integer] page_size Number of records to return, defaults to 50
126
131
  # @return [Page] Page of AllTimeInstance
127
- def page(category: :unset, start_date: :unset, end_date: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
132
+ def page(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
128
133
  params = Twilio::Values.of({
129
134
  'Category' => category,
130
135
  'StartDate' => Twilio.serialize_iso8601_date(start_date),
131
136
  'EndDate' => Twilio.serialize_iso8601_date(end_date),
137
+ 'IncludeSubaccounts' => include_subaccounts,
132
138
  'PageToken' => page_token,
133
139
  'Page' => page_number,
134
140
  'PageSize' => page_size,
@@ -42,6 +42,7 @@ module Twilio
42
42
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
43
43
  # also specify offsets to today. For example, `EndDate=+30days` will make
44
44
  # `EndDate` be 30 days from today.
45
+ # @param [Boolean] include_subaccounts The include_subaccounts
45
46
  # @param [Integer] limit Upper limit for the number of records to return. stream()
46
47
  # guarantees to never return more than limit. Default is no limit
47
48
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -49,11 +50,12 @@ module Twilio
49
50
  # but a limit is defined, stream() will attempt to read the limit with the most
50
51
  # efficient page size, i.e. min(limit, 1000)
51
52
  # @return [Array] Array of up to limit results
52
- def list(category: :unset, start_date: :unset, end_date: :unset, limit: nil, page_size: nil)
53
+ def list(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, limit: nil, page_size: nil)
53
54
  self.stream(
54
55
  category: category,
55
56
  start_date: start_date,
56
57
  end_date: end_date,
58
+ include_subaccounts: include_subaccounts,
57
59
  limit: limit,
58
60
  page_size: page_size
59
61
  ).entries
@@ -73,6 +75,7 @@ module Twilio
73
75
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
74
76
  # also specify offsets to today. For example, `EndDate=+30days` will make
75
77
  # `EndDate` be 30 days from today.
78
+ # @param [Boolean] include_subaccounts The include_subaccounts
76
79
  # @param [Integer] limit Upper limit for the number of records to return. stream()
77
80
  # guarantees to never return more than limit. Default is no limit.
78
81
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -80,13 +83,14 @@ module Twilio
80
83
  # but a limit is defined, stream() will attempt to read the limit with the most
81
84
  # efficient page size, i.e. min(limit, 1000)
82
85
  # @return [Enumerable] Enumerable that will yield up to limit results
83
- def stream(category: :unset, start_date: :unset, end_date: :unset, limit: nil, page_size: nil)
86
+ def stream(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, limit: nil, page_size: nil)
84
87
  limits = @version.read_limits(limit, page_size)
85
88
 
86
89
  page = self.page(
87
90
  category: category,
88
91
  start_date: start_date,
89
92
  end_date: end_date,
93
+ include_subaccounts: include_subaccounts,
90
94
  page_size: limits[:page_size],
91
95
  )
92
96
 
@@ -120,15 +124,17 @@ module Twilio
120
124
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
121
125
  # also specify offsets to today. For example, `EndDate=+30days` will make
122
126
  # `EndDate` be 30 days from today.
127
+ # @param [Boolean] include_subaccounts The include_subaccounts
123
128
  # @param [String] page_token PageToken provided by the API
124
129
  # @param [Integer] page_number Page Number, this value is simply for client state
125
130
  # @param [Integer] page_size Number of records to return, defaults to 50
126
131
  # @return [Page] Page of DailyInstance
127
- def page(category: :unset, start_date: :unset, end_date: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
132
+ def page(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
128
133
  params = Twilio::Values.of({
129
134
  'Category' => category,
130
135
  'StartDate' => Twilio.serialize_iso8601_date(start_date),
131
136
  'EndDate' => Twilio.serialize_iso8601_date(end_date),
137
+ 'IncludeSubaccounts' => include_subaccounts,
132
138
  'PageToken' => page_token,
133
139
  'Page' => page_number,
134
140
  'PageSize' => page_size,
@@ -43,6 +43,7 @@ module Twilio
43
43
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
44
44
  # also specify offsets to today. For example, `EndDate=+30days` will make
45
45
  # `EndDate` be 30 days from today.
46
+ # @param [Boolean] include_subaccounts The include_subaccounts
46
47
  # @param [Integer] limit Upper limit for the number of records to return. stream()
47
48
  # guarantees to never return more than limit. Default is no limit
48
49
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -50,11 +51,12 @@ module Twilio
50
51
  # but a limit is defined, stream() will attempt to read the limit with the most
51
52
  # efficient page size, i.e. min(limit, 1000)
52
53
  # @return [Array] Array of up to limit results
53
- def list(category: :unset, start_date: :unset, end_date: :unset, limit: nil, page_size: nil)
54
+ def list(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, limit: nil, page_size: nil)
54
55
  self.stream(
55
56
  category: category,
56
57
  start_date: start_date,
57
58
  end_date: end_date,
59
+ include_subaccounts: include_subaccounts,
58
60
  limit: limit,
59
61
  page_size: page_size
60
62
  ).entries
@@ -75,6 +77,7 @@ module Twilio
75
77
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
76
78
  # also specify offsets to today. For example, `EndDate=+30days` will make
77
79
  # `EndDate` be 30 days from today.
80
+ # @param [Boolean] include_subaccounts The include_subaccounts
78
81
  # @param [Integer] limit Upper limit for the number of records to return. stream()
79
82
  # guarantees to never return more than limit. Default is no limit.
80
83
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -82,13 +85,14 @@ module Twilio
82
85
  # but a limit is defined, stream() will attempt to read the limit with the most
83
86
  # efficient page size, i.e. min(limit, 1000)
84
87
  # @return [Enumerable] Enumerable that will yield up to limit results
85
- def stream(category: :unset, start_date: :unset, end_date: :unset, limit: nil, page_size: nil)
88
+ def stream(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, limit: nil, page_size: nil)
86
89
  limits = @version.read_limits(limit, page_size)
87
90
 
88
91
  page = self.page(
89
92
  category: category,
90
93
  start_date: start_date,
91
94
  end_date: end_date,
95
+ include_subaccounts: include_subaccounts,
92
96
  page_size: limits[:page_size],
93
97
  )
94
98
 
@@ -123,15 +127,17 @@ module Twilio
123
127
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
124
128
  # also specify offsets to today. For example, `EndDate=+30days` will make
125
129
  # `EndDate` be 30 days from today.
130
+ # @param [Boolean] include_subaccounts The include_subaccounts
126
131
  # @param [String] page_token PageToken provided by the API
127
132
  # @param [Integer] page_number Page Number, this value is simply for client state
128
133
  # @param [Integer] page_size Number of records to return, defaults to 50
129
134
  # @return [Page] Page of LastMonthInstance
130
- def page(category: :unset, start_date: :unset, end_date: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
135
+ def page(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
131
136
  params = Twilio::Values.of({
132
137
  'Category' => category,
133
138
  'StartDate' => Twilio.serialize_iso8601_date(start_date),
134
139
  'EndDate' => Twilio.serialize_iso8601_date(end_date),
140
+ 'IncludeSubaccounts' => include_subaccounts,
135
141
  'PageToken' => page_token,
136
142
  'Page' => page_number,
137
143
  'PageSize' => page_size,
@@ -42,6 +42,7 @@ module Twilio
42
42
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
43
43
  # also specify offsets to today. For example, `EndDate=+30days` will make
44
44
  # `EndDate` be 30 days from today.
45
+ # @param [Boolean] include_subaccounts The include_subaccounts
45
46
  # @param [Integer] limit Upper limit for the number of records to return. stream()
46
47
  # guarantees to never return more than limit. Default is no limit
47
48
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -49,11 +50,12 @@ module Twilio
49
50
  # but a limit is defined, stream() will attempt to read the limit with the most
50
51
  # efficient page size, i.e. min(limit, 1000)
51
52
  # @return [Array] Array of up to limit results
52
- def list(category: :unset, start_date: :unset, end_date: :unset, limit: nil, page_size: nil)
53
+ def list(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, limit: nil, page_size: nil)
53
54
  self.stream(
54
55
  category: category,
55
56
  start_date: start_date,
56
57
  end_date: end_date,
58
+ include_subaccounts: include_subaccounts,
57
59
  limit: limit,
58
60
  page_size: page_size
59
61
  ).entries
@@ -73,6 +75,7 @@ module Twilio
73
75
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
74
76
  # also specify offsets to today. For example, `EndDate=+30days` will make
75
77
  # `EndDate` be 30 days from today.
78
+ # @param [Boolean] include_subaccounts The include_subaccounts
76
79
  # @param [Integer] limit Upper limit for the number of records to return. stream()
77
80
  # guarantees to never return more than limit. Default is no limit.
78
81
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -80,13 +83,14 @@ module Twilio
80
83
  # but a limit is defined, stream() will attempt to read the limit with the most
81
84
  # efficient page size, i.e. min(limit, 1000)
82
85
  # @return [Enumerable] Enumerable that will yield up to limit results
83
- def stream(category: :unset, start_date: :unset, end_date: :unset, limit: nil, page_size: nil)
86
+ def stream(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, limit: nil, page_size: nil)
84
87
  limits = @version.read_limits(limit, page_size)
85
88
 
86
89
  page = self.page(
87
90
  category: category,
88
91
  start_date: start_date,
89
92
  end_date: end_date,
93
+ include_subaccounts: include_subaccounts,
90
94
  page_size: limits[:page_size],
91
95
  )
92
96
 
@@ -120,15 +124,17 @@ module Twilio
120
124
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
121
125
  # also specify offsets to today. For example, `EndDate=+30days` will make
122
126
  # `EndDate` be 30 days from today.
127
+ # @param [Boolean] include_subaccounts The include_subaccounts
123
128
  # @param [String] page_token PageToken provided by the API
124
129
  # @param [Integer] page_number Page Number, this value is simply for client state
125
130
  # @param [Integer] page_size Number of records to return, defaults to 50
126
131
  # @return [Page] Page of MonthlyInstance
127
- def page(category: :unset, start_date: :unset, end_date: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
132
+ def page(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
128
133
  params = Twilio::Values.of({
129
134
  'Category' => category,
130
135
  'StartDate' => Twilio.serialize_iso8601_date(start_date),
131
136
  'EndDate' => Twilio.serialize_iso8601_date(end_date),
137
+ 'IncludeSubaccounts' => include_subaccounts,
132
138
  'PageToken' => page_token,
133
139
  'Page' => page_number,
134
140
  'PageSize' => page_size,
@@ -42,6 +42,7 @@ module Twilio
42
42
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
43
43
  # also specify offsets to today. For example, `EndDate=+30days` will make
44
44
  # `EndDate` be 30 days from today.
45
+ # @param [Boolean] include_subaccounts The include_subaccounts
45
46
  # @param [Integer] limit Upper limit for the number of records to return. stream()
46
47
  # guarantees to never return more than limit. Default is no limit
47
48
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -49,11 +50,12 @@ module Twilio
49
50
  # but a limit is defined, stream() will attempt to read the limit with the most
50
51
  # efficient page size, i.e. min(limit, 1000)
51
52
  # @return [Array] Array of up to limit results
52
- def list(category: :unset, start_date: :unset, end_date: :unset, limit: nil, page_size: nil)
53
+ def list(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, limit: nil, page_size: nil)
53
54
  self.stream(
54
55
  category: category,
55
56
  start_date: start_date,
56
57
  end_date: end_date,
58
+ include_subaccounts: include_subaccounts,
57
59
  limit: limit,
58
60
  page_size: page_size
59
61
  ).entries
@@ -73,6 +75,7 @@ module Twilio
73
75
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
74
76
  # also specify offsets to today. For example, `EndDate=+30days` will make
75
77
  # `EndDate` be 30 days from today.
78
+ # @param [Boolean] include_subaccounts The include_subaccounts
76
79
  # @param [Integer] limit Upper limit for the number of records to return. stream()
77
80
  # guarantees to never return more than limit. Default is no limit.
78
81
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -80,13 +83,14 @@ module Twilio
80
83
  # but a limit is defined, stream() will attempt to read the limit with the most
81
84
  # efficient page size, i.e. min(limit, 1000)
82
85
  # @return [Enumerable] Enumerable that will yield up to limit results
83
- def stream(category: :unset, start_date: :unset, end_date: :unset, limit: nil, page_size: nil)
86
+ def stream(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, limit: nil, page_size: nil)
84
87
  limits = @version.read_limits(limit, page_size)
85
88
 
86
89
  page = self.page(
87
90
  category: category,
88
91
  start_date: start_date,
89
92
  end_date: end_date,
93
+ include_subaccounts: include_subaccounts,
90
94
  page_size: limits[:page_size],
91
95
  )
92
96
 
@@ -120,15 +124,17 @@ module Twilio
120
124
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
121
125
  # also specify offsets to today. For example, `EndDate=+30days` will make
122
126
  # `EndDate` be 30 days from today.
127
+ # @param [Boolean] include_subaccounts The include_subaccounts
123
128
  # @param [String] page_token PageToken provided by the API
124
129
  # @param [Integer] page_number Page Number, this value is simply for client state
125
130
  # @param [Integer] page_size Number of records to return, defaults to 50
126
131
  # @return [Page] Page of ThisMonthInstance
127
- def page(category: :unset, start_date: :unset, end_date: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
132
+ def page(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
128
133
  params = Twilio::Values.of({
129
134
  'Category' => category,
130
135
  'StartDate' => Twilio.serialize_iso8601_date(start_date),
131
136
  'EndDate' => Twilio.serialize_iso8601_date(end_date),
137
+ 'IncludeSubaccounts' => include_subaccounts,
132
138
  'PageToken' => page_token,
133
139
  'Page' => page_number,
134
140
  'PageSize' => page_size,
@@ -42,6 +42,7 @@ module Twilio
42
42
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
43
43
  # also specify offsets to today. For example, `EndDate=+30days` will make
44
44
  # `EndDate` be 30 days from today.
45
+ # @param [Boolean] include_subaccounts The include_subaccounts
45
46
  # @param [Integer] limit Upper limit for the number of records to return. stream()
46
47
  # guarantees to never return more than limit. Default is no limit
47
48
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -49,11 +50,12 @@ module Twilio
49
50
  # but a limit is defined, stream() will attempt to read the limit with the most
50
51
  # efficient page size, i.e. min(limit, 1000)
51
52
  # @return [Array] Array of up to limit results
52
- def list(category: :unset, start_date: :unset, end_date: :unset, limit: nil, page_size: nil)
53
+ def list(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, limit: nil, page_size: nil)
53
54
  self.stream(
54
55
  category: category,
55
56
  start_date: start_date,
56
57
  end_date: end_date,
58
+ include_subaccounts: include_subaccounts,
57
59
  limit: limit,
58
60
  page_size: page_size
59
61
  ).entries
@@ -73,6 +75,7 @@ module Twilio
73
75
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
74
76
  # also specify offsets to today. For example, `EndDate=+30days` will make
75
77
  # `EndDate` be 30 days from today.
78
+ # @param [Boolean] include_subaccounts The include_subaccounts
76
79
  # @param [Integer] limit Upper limit for the number of records to return. stream()
77
80
  # guarantees to never return more than limit. Default is no limit.
78
81
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -80,13 +83,14 @@ module Twilio
80
83
  # but a limit is defined, stream() will attempt to read the limit with the most
81
84
  # efficient page size, i.e. min(limit, 1000)
82
85
  # @return [Enumerable] Enumerable that will yield up to limit results
83
- def stream(category: :unset, start_date: :unset, end_date: :unset, limit: nil, page_size: nil)
86
+ def stream(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, limit: nil, page_size: nil)
84
87
  limits = @version.read_limits(limit, page_size)
85
88
 
86
89
  page = self.page(
87
90
  category: category,
88
91
  start_date: start_date,
89
92
  end_date: end_date,
93
+ include_subaccounts: include_subaccounts,
90
94
  page_size: limits[:page_size],
91
95
  )
92
96
 
@@ -120,15 +124,17 @@ module Twilio
120
124
  # date. Format is YYYY-MM-DD. All dates are in GMT. As a convenience, you can
121
125
  # also specify offsets to today. For example, `EndDate=+30days` will make
122
126
  # `EndDate` be 30 days from today.
127
+ # @param [Boolean] include_subaccounts The include_subaccounts
123
128
  # @param [String] page_token PageToken provided by the API
124
129
  # @param [Integer] page_number Page Number, this value is simply for client state
125
130
  # @param [Integer] page_size Number of records to return, defaults to 50
126
131
  # @return [Page] Page of TodayInstance
127
- def page(category: :unset, start_date: :unset, end_date: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
132
+ def page(category: :unset, start_date: :unset, end_date: :unset, include_subaccounts: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
128
133
  params = Twilio::Values.of({
129
134
  'Category' => category,
130
135
  'StartDate' => Twilio.serialize_iso8601_date(start_date),
131
136
  'EndDate' => Twilio.serialize_iso8601_date(end_date),
137
+ 'IncludeSubaccounts' => include_subaccounts,
132
138
  'PageToken' => page_token,
133
139
  'Page' => page_number,
134
140
  'PageSize' => page_size,