twilio-ruby 7.3.0 → 7.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,38 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # NOTE: This class is auto generated by OpenAPI Generator.
8
+ # https://openapi-generator.tech
9
+ # Do not edit the class manually.
10
+ # frozen_string_literal: true
11
+ module Twilio
12
+ module REST
13
+ class AssistantsBase < Domain
14
+ ##
15
+ # Initialize assistants domain
16
+ #
17
+ # @param twilio - The twilio client
18
+ #
19
+ def initialize(twilio)
20
+ super(twilio)
21
+ @base_url = "https://assistants.twilio.com"
22
+ @host = "assistants.twilio.com"
23
+ @port = 443
24
+ @v1 = nil
25
+ end
26
+
27
+ def v1
28
+ @v1 ||= Assistants::V1.new self
29
+ end
30
+
31
+ ##
32
+ # Provide a user friendly representation
33
+ def to_s
34
+ '<Twilio::REST::Assistants::V1>';
35
+ end
36
+ end
37
+ end
38
+ end
@@ -27,6 +27,11 @@ module Twilio
27
27
  @api ||= Api.new self
28
28
  end
29
29
  ##
30
+ # Access the Assistants Twilio Domain
31
+ def assistants
32
+ @assistants ||= Assistants.new self
33
+ end
34
+ ##
30
35
  # Access the Bulkexports Twilio Domain
31
36
  def bulkexports
32
37
  @bulkexports ||= Bulkexports.new self
@@ -25,10 +25,10 @@ module Twilio
25
25
  # Initialize the ApprovalFetchList
26
26
  # @param [Version] version Version that contains the resource
27
27
  # @return [ApprovalFetchList] ApprovalFetchList
28
- def initialize(version, content_sid: nil)
28
+ def initialize(version, sid: nil)
29
29
  super(version)
30
30
  # Path Solution
31
- @solution = { content_sid: content_sid }
31
+ @solution = { sid: sid }
32
32
 
33
33
 
34
34
  end
@@ -46,14 +46,14 @@ module Twilio
46
46
  ##
47
47
  # Initialize the ApprovalFetchContext
48
48
  # @param [Version] version Version that contains the resource
49
- # @param [String] content_sid The Twilio-provided string that uniquely identifies the Content resource whose approval information to fetch.
49
+ # @param [String] sid The Twilio-provided string that uniquely identifies the Content resource whose approval information to fetch.
50
50
  # @return [ApprovalFetchContext] ApprovalFetchContext
51
- def initialize(version, content_sid)
51
+ def initialize(version, sid)
52
52
  super(version)
53
53
 
54
54
  # Path Solution
55
- @solution = { content_sid: content_sid, }
56
- @uri = "/Content/#{@solution[:content_sid]}/ApprovalRequests"
55
+ @solution = { sid: sid, }
56
+ @uri = "/Content/#{@solution[:sid]}/ApprovalRequests"
57
57
 
58
58
 
59
59
  end
@@ -68,7 +68,7 @@ module Twilio
68
68
  ApprovalFetchInstance.new(
69
69
  @version,
70
70
  payload,
71
- content_sid: @solution[:content_sid],
71
+ sid: @solution[:sid],
72
72
  )
73
73
  end
74
74
 
@@ -107,7 +107,7 @@ module Twilio
107
107
  # @param [Hash] payload Payload response from the API
108
108
  # @return [ApprovalFetchInstance] ApprovalFetchInstance
109
109
  def get_instance(payload)
110
- ApprovalFetchInstance.new(@version, payload, content_sid: @solution[:content_sid])
110
+ ApprovalFetchInstance.new(@version, payload, sid: @solution[:sid])
111
111
  end
112
112
 
113
113
  ##
@@ -126,7 +126,7 @@ module Twilio
126
126
  # resource.
127
127
  # @param [String] sid The SID of the Call resource to fetch.
128
128
  # @return [ApprovalFetchInstance] ApprovalFetchInstance
129
- def initialize(version, payload , content_sid: nil)
129
+ def initialize(version, payload , sid: nil)
130
130
  super(version)
131
131
 
132
132
  # Marshaled Properties
@@ -139,7 +139,7 @@ module Twilio
139
139
 
140
140
  # Context
141
141
  @instance_context = nil
142
- @params = { 'content_sid' => content_sid || @properties['content_sid'] , }
142
+ @params = { 'sid' => sid || @properties['sid'] , }
143
143
  end
144
144
 
145
145
  ##
@@ -148,7 +148,7 @@ module Twilio
148
148
  # @return [ApprovalFetchContext] CallContext for this CallInstance
149
149
  def context
150
150
  unless @instance_context
151
- @instance_context = ApprovalFetchContext.new(@version , @params['content_sid'])
151
+ @instance_context = ApprovalFetchContext.new(@version , @params['sid'])
152
152
  end
153
153
  @instance_context
154
154
  end
@@ -22,34 +22,21 @@ module Twilio
22
22
  class InstalledAddOnUsageList < ListResource
23
23
 
24
24
  class MarketplaceV1InstalledAddOnInstalledAddOnUsage
25
+ # @param [total_submitted]: [Float] Total amount in local currency that was billed in this request. Aggregates all billable_items that were successfully submitted.
25
26
  # @param [billable_items]: [Array<InstalledAddOnUsageList.MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems>]
26
- attr_accessor :billable_items
27
+ attr_accessor :total_submitted, :billable_items
27
28
  def initialize(payload)
29
+ @total_submitted = payload["total_submitted"]
28
30
  @billable_items = payload["billable_items"]
29
31
  end
30
32
  def to_json(options = {})
31
33
  {
34
+ total_submitted: @total_submitted,
32
35
  billable_items: @billable_items,
33
36
  }.to_json(options)
34
37
  end
35
38
  end
36
39
 
37
- class MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems
38
- # @param [quantity]: [Float] Any floating number greater than 0.
39
- # @param [sid]: [String] BillingSid to use for billing.
40
- attr_accessor :quantity, :sid
41
- def initialize(payload)
42
- @quantity = payload["quantity"]
43
- @sid = payload["sid"]
44
- end
45
- def to_json(options = {})
46
- {
47
- quantity: @quantity,
48
- sid: @sid,
49
- }.to_json(options)
50
- end
51
- end
52
-
53
40
  ##
54
41
  # Initialize the InstalledAddOnUsageList
55
42
  # @param [Version] version Version that contains the resource
@@ -130,22 +117,22 @@ module Twilio
130
117
 
131
118
  # Marshaled Properties
132
119
  @properties = {
133
- 'billable_items' => payload['billable_items'],
134
120
  'total_submitted' => payload['total_submitted'],
121
+ 'billable_items' => payload['billable_items'],
135
122
  }
136
123
  end
137
124
 
138
125
 
139
126
  ##
140
- # @return [Array<MarketplaceV1InstalledAddOnBillingUsageResponseBillableItems>]
141
- def billable_items
142
- @properties['billable_items']
127
+ # @return [Float] Total amount in local currency that was billed in this request. Aggregates all billable_items that were successfully submitted.
128
+ def total_submitted
129
+ @properties['total_submitted']
143
130
  end
144
131
 
145
132
  ##
146
- # @return [Float] Represents the total quantity submitted.
147
- def total_submitted
148
- @properties['total_submitted']
133
+ # @return [Array<InstalledAddOnUsageList.MarketplaceV1InstalledAddOnInstalledAddOnUsageBillableItems>]
134
+ def billable_items
135
+ @properties['billable_items']
149
136
  end
150
137
 
151
138
  ##
@@ -44,7 +44,7 @@ module Twilio
44
44
  ##
45
45
  # Initialize the ModuleDataManagementContext
46
46
  # @param [Version] version Version that contains the resource
47
- # @param [String] sid
47
+ # @param [String] sid SID that uniquely identifies the Listing.
48
48
  # @return [ModuleDataManagementContext] ModuleDataManagementContext
49
49
  def initialize(version, sid)
50
50
  super(version)
@@ -72,12 +72,13 @@ module Twilio
72
72
 
73
73
  ##
74
74
  # Update the ModuleDataManagementInstance
75
- # @param [String] module_info
76
- # @param [String] description
77
- # @param [String] documentation
78
- # @param [String] policies
79
- # @param [String] support
80
- # @param [String] configuration
75
+ # @param [String] module_info A JSON object containing essential attributes that define a Listing.
76
+ # @param [String] description A JSON object describing the Listing. You can define the main body of the description, highlight key features or aspects of the Listing, and provide code samples for developers if applicable.
77
+ # @param [String] documentation A JSON object for providing comprehensive information, instructions, and resources related to the Listing.
78
+ # @param [String] policies A JSON object describing the Listing's privacy and legal policies. The maximum file size for Policies is 5MB.
79
+ # @param [String] support A JSON object containing information on how Marketplace users can obtain support for the Listing. Use this parameter to provide details such as contact information and support description.
80
+ # @param [String] configuration A JSON object for providing Listing-specific configuration. Contains button setup, notification URL, and more.
81
+ # @param [String] pricing A JSON object for providing Listing's purchase options.
81
82
  # @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
82
83
  def update(
83
84
  module_info: :unset,
@@ -85,7 +86,8 @@ module Twilio
85
86
  documentation: :unset,
86
87
  policies: :unset,
87
88
  support: :unset,
88
- configuration: :unset
89
+ configuration: :unset,
90
+ pricing: :unset
89
91
  )
90
92
 
91
93
  data = Twilio::Values.of({
@@ -95,6 +97,7 @@ module Twilio
95
97
  'Policies' => policies,
96
98
  'Support' => support,
97
99
  'Configuration' => configuration,
100
+ 'Pricing' => pricing,
98
101
  })
99
102
 
100
103
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -174,6 +177,7 @@ module Twilio
174
177
  'module_info' => payload['module_info'],
175
178
  'documentation' => payload['documentation'],
176
179
  'configuration' => payload['configuration'],
180
+ 'pricing' => payload['pricing'],
177
181
  }
178
182
 
179
183
  # Context
@@ -240,6 +244,12 @@ module Twilio
240
244
  @properties['configuration']
241
245
  end
242
246
 
247
+ ##
248
+ # @return [Hash] A JSON object for providing Listing specific pricing information.
249
+ def pricing
250
+ @properties['pricing']
251
+ end
252
+
243
253
  ##
244
254
  # Fetch the ModuleDataManagementInstance
245
255
  # @return [ModuleDataManagementInstance] Fetched ModuleDataManagementInstance
@@ -250,12 +260,13 @@ module Twilio
250
260
 
251
261
  ##
252
262
  # Update the ModuleDataManagementInstance
253
- # @param [String] module_info
254
- # @param [String] description
255
- # @param [String] documentation
256
- # @param [String] policies
257
- # @param [String] support
258
- # @param [String] configuration
263
+ # @param [String] module_info A JSON object containing essential attributes that define a Listing.
264
+ # @param [String] description A JSON object describing the Listing. You can define the main body of the description, highlight key features or aspects of the Listing, and provide code samples for developers if applicable.
265
+ # @param [String] documentation A JSON object for providing comprehensive information, instructions, and resources related to the Listing.
266
+ # @param [String] policies A JSON object describing the Listing's privacy and legal policies. The maximum file size for Policies is 5MB.
267
+ # @param [String] support A JSON object containing information on how Marketplace users can obtain support for the Listing. Use this parameter to provide details such as contact information and support description.
268
+ # @param [String] configuration A JSON object for providing Listing-specific configuration. Contains button setup, notification URL, and more.
269
+ # @param [String] pricing A JSON object for providing Listing's purchase options.
259
270
  # @return [ModuleDataManagementInstance] Updated ModuleDataManagementInstance
260
271
  def update(
261
272
  module_info: :unset,
@@ -263,7 +274,8 @@ module Twilio
263
274
  documentation: :unset,
264
275
  policies: :unset,
265
276
  support: :unset,
266
- configuration: :unset
277
+ configuration: :unset,
278
+ pricing: :unset
267
279
  )
268
280
 
269
281
  context.update(
@@ -273,6 +285,7 @@ module Twilio
273
285
  policies: policies,
274
286
  support: support,
275
287
  configuration: configuration,
288
+ pricing: pricing,
276
289
  )
277
290
  end
278
291
 
@@ -58,7 +58,7 @@ module Twilio
58
58
  ##
59
59
  # Create the BundleCloneInstance
60
60
  # @param [String] target_account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned.
61
- # @param [Boolean] move_to_draft This is to determine whether the cloned bundle needs to be in draft state or not.
61
+ # @param [Boolean] move_to_draft If set to true, the cloned bundle will be in the DRAFT state, else it will be twilio-approved
62
62
  # @param [String] friendly_name The string that you assigned to describe the cloned bundle.
63
63
  # @return [BundleCloneInstance] Created BundleCloneInstance
64
64
  def create(
@@ -240,7 +240,7 @@ module Twilio
240
240
  ##
241
241
  # Create the BundleCloneInstance
242
242
  # @param [String] target_account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned.
243
- # @param [Boolean] move_to_draft This is to determine whether the cloned bundle needs to be in draft state or not.
243
+ # @param [Boolean] move_to_draft If set to true, the cloned bundle will be in the DRAFT state, else it will be twilio-approved
244
244
  # @param [String] friendly_name The string that you assigned to describe the cloned bundle.
245
245
  # @return [BundleCloneInstance] Created BundleCloneInstance
246
246
  def create(
@@ -40,7 +40,7 @@ module Twilio
40
40
  # @param [String] regulation_sid The unique string of a regulation that is associated to the Bundle resource.
41
41
  # @param [String] iso_country The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
42
42
  # @param [EndUserType] end_user_type
43
- # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll free`.
43
+ # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
44
44
  # @param [Boolean] is_test Indicates that Bundle is a Test Bundle and will be Auto-Rejected
45
45
  # @return [BundleInstance] Created BundleInstance
46
46
  def create(
@@ -83,7 +83,7 @@ module Twilio
83
83
  # @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
84
84
  # @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
85
85
  # @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
86
- # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `tollfree`.
86
+ # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
87
87
  # @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
88
88
  # @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
89
89
  # @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
@@ -123,7 +123,7 @@ module Twilio
123
123
  # @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
124
124
  # @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
125
125
  # @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
126
- # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `tollfree`.
126
+ # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
127
127
  # @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
128
128
  # @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
129
129
  # @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
@@ -178,7 +178,7 @@ module Twilio
178
178
  # @param [String] friendly_name The string that you assigned to describe the resource. The column can contain 255 variable characters.
179
179
  # @param [String] regulation_sid The unique string of a [Regulation resource](https://www.twilio.com/docs/phone-numbers/regulatory/api/regulations) that is associated to the Bundle resource.
180
180
  # @param [String] iso_country The 2-digit [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the Bundle's phone number country ownership request.
181
- # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `tollfree`.
181
+ # @param [String] number_type The type of phone number of the Bundle's ownership request. Can be `local`, `mobile`, `national`, or `toll-free`.
182
182
  # @param [Boolean] has_valid_until_date Indicates that the Bundle is a valid Bundle until a specified expiration date.
183
183
  # @param [SortBy] sort_by Can be `valid-until` or `date-updated`. Defaults to `date-created`.
184
184
  # @param [SortDirection] sort_direction Default is `DESC`. Can be `ASC` or `DESC`.
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '7.3.0'
2
+ VERSION = '7.3.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twilio-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.3.0
4
+ version: 7.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twilio API Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-05 00:00:00.000000000 Z
11
+ date: 2024-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -334,6 +334,17 @@ files:
334
334
  - lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb
335
335
  - lib/twilio-ruby/rest/api/v2010/account/validation_request.rb
336
336
  - lib/twilio-ruby/rest/api_base.rb
337
+ - lib/twilio-ruby/rest/assistants.rb
338
+ - lib/twilio-ruby/rest/assistants/v1.rb
339
+ - lib/twilio-ruby/rest/assistants/v1/assistant.rb
340
+ - lib/twilio-ruby/rest/assistants/v1/assistant/feedback.rb
341
+ - lib/twilio-ruby/rest/assistants/v1/knowledge.rb
342
+ - lib/twilio-ruby/rest/assistants/v1/knowledge/chunk.rb
343
+ - lib/twilio-ruby/rest/assistants/v1/policy.rb
344
+ - lib/twilio-ruby/rest/assistants/v1/session.rb
345
+ - lib/twilio-ruby/rest/assistants/v1/session/message.rb
346
+ - lib/twilio-ruby/rest/assistants/v1/tool.rb
347
+ - lib/twilio-ruby/rest/assistants_base.rb
337
348
  - lib/twilio-ruby/rest/bulkexports.rb
338
349
  - lib/twilio-ruby/rest/bulkexports/v1.rb
339
350
  - lib/twilio-ruby/rest/bulkexports/v1/export.rb