Skip to content

Commit

Permalink
[Librarian] Regenerated @ a25fe2e20ee404d8f8642d6e5acceff276916c9e
Browse files Browse the repository at this point in the history
  • Loading branch information
twilio-dx committed Oct 5, 2023
1 parent c1f5792 commit 043bda5
Show file tree
Hide file tree
Showing 4 changed files with 256 additions and 10 deletions.
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
twilio-ruby changelog
=====================

[2023-10-05] Version 6.7.1
--------------------------
**Library - Chore**
- [PR #678](https://github.com/twilio/twilio-ruby/pull/678): twilio help changes. Thanks to [@kridai](https://github.com/kridai)!

**Lookups**
- Add test api support for Lookup v2


[2023-09-21] Version 6.7.0
--------------------------
**Conversations**
Expand Down
10 changes: 0 additions & 10 deletions lib/twilio-ruby/rest/api/v2010/account/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ def initialize(version, account_sid: nil)
# @param [Time] send_at The time that Twilio will send the message. Must be in ISO 8601 format.
# @param [Boolean] send_as_mms If set to `true`, Twilio delivers the message as a single MMS message, regardless of the presence of media.
# @param [String] content_variables For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used.
# @param [String] tags A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length.
# @param [RiskCheck] risk_check
# @param [String] from The sender's Twilio phone number (in [E.164](https://en.wikipedia.org/wiki/E.164) format), [alphanumeric sender ID](https://www.twilio.com/docs/sms/send-messages#use-an-alphanumeric-sender-id), [Wireless SIM](https://www.twilio.com/docs/iot/wireless/programmable-wireless-send-machine-machine-sms-commands), [short code](https://www.twilio.com/docs/sms/api/short-code), or [channel address](https://www.twilio.com/docs/messaging/channels) (e.g., `whatsapp:+15554449999`). The value of the `from` parameter must be a sender that is hosted within Twilio and belongs to the Account creating the Message. If you are using `messaging_service_sid`, this parameter can be empty (Twilio assigns a `from` value from the Messaging Service's Sender Pool) or you can provide a specific sender from your Sender Pool.
# @param [String] messaging_service_sid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) you want to associate with the Message. When this parameter is provided and the `from` parameter is omitted, Twilio selects the optimal sender from the Messaging Service's Sender Pool. You may also provide a `from` parameter if you want to use a specific Sender from the Sender Pool.
Expand All @@ -76,7 +75,6 @@ def create(
send_at: :unset,
send_as_mms: :unset,
content_variables: :unset,
tags: :unset,
risk_check: :unset,
from: :unset,
messaging_service_sid: :unset,
Expand All @@ -103,7 +101,6 @@ def create(
'SendAt' => Twilio.serialize_iso8601_datetime(send_at),
'SendAsMms' => send_as_mms,
'ContentVariables' => content_variables,
'Tags' => tags,
'RiskCheck' => risk_check,
'From' => from,
'MessagingServiceSid' => messaging_service_sid,
Expand Down Expand Up @@ -417,7 +414,6 @@ def initialize(version, payload , account_sid: nil, sid: nil)
'price_unit' => payload['price_unit'],
'api_version' => payload['api_version'],
'subresource_uris' => payload['subresource_uris'],
'tags' => payload['tags'],
}

# Context
Expand Down Expand Up @@ -556,12 +552,6 @@ def subresource_uris
@properties['subresource_uris']
end

##
# @return [Hash] A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message.
def tags
@properties['tags']
end

##
# Delete the MessageInstance
# @return [Boolean] True if delete succeeds, false otherwise
Expand Down
15 changes: 15 additions & 0 deletions lib/twilio-ruby/rest/trusthub/v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class V1 < Version
def initialize(domain)
super
@version = 'v1'
@compliance_inquiries = nil
@customer_profiles = nil
@end_users = nil
@end_user_types = nil
Expand All @@ -30,6 +31,20 @@ def initialize(domain)
@trust_products = nil
end

##
# @param [String] customer_id The unique CustomerId matching the Customer Profile/Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Inquiry creation call.
# @return [Twilio::REST::Trusthub::V1::ComplianceInquiriesContext] if customerId was passed.
# @return [Twilio::REST::Trusthub::V1::ComplianceInquiriesList]
def compliance_inquiries(customer_id=:unset)
if customer_id.nil?
raise ArgumentError, 'customer_id cannot be nil'
end
if customer_id == :unset
@compliance_inquiries ||= ComplianceInquiriesList.new self
else
ComplianceInquiriesContext.new(self, customer_id)
end
end
##
# @param [String] sid The unique string that we created to identify the Customer-Profile resource.
# @return [Twilio::REST::Trusthub::V1::CustomerProfilesContext] if sid was passed.
Expand Down
232 changes: 232 additions & 0 deletions lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,232 @@
##
# This code was generated by
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
#
# Twilio - Trusthub
# This is the public Twilio REST API.
#
# NOTE: This class is auto generated by OpenAPI Generator.
# https://openapi-generator.tech
# Do not edit the class manually.
#


module Twilio
module REST
class Trusthub < TrusthubBase
class V1 < Version
class ComplianceInquiriesList < ListResource
##
# Initialize the ComplianceInquiriesList
# @param [Version] version Version that contains the resource
# @return [ComplianceInquiriesList] ComplianceInquiriesList
def initialize(version)
super(version)
# Path Solution
@solution = { }
@uri = "/ComplianceInquiries/Customers/Initialize"

end
##
# Create the ComplianceInquiriesInstance
# @param [String] primary_profile_sid The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
# @return [ComplianceInquiriesInstance] Created ComplianceInquiriesInstance
def create(
primary_profile_sid: nil
)

data = Twilio::Values.of({
'PrimaryProfileSid' => primary_profile_sid,
})

payload = @version.create('POST', @uri, data: data)
ComplianceInquiriesInstance.new(
@version,
payload,
)
end




# Provide a user friendly representation
def to_s
'#<Twilio.Trusthub.V1.ComplianceInquiriesList>'
end
end


class ComplianceInquiriesContext < InstanceContext
##
# Initialize the ComplianceInquiriesContext
# @param [Version] version Version that contains the resource
# @param [String] customer_id The unique CustomerId matching the Customer Profile/Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Inquiry creation call.
# @return [ComplianceInquiriesContext] ComplianceInquiriesContext
def initialize(version, customer_id)
super(version)

# Path Solution
@solution = { customer_id: customer_id, }
@uri = "/ComplianceInquiries/Customers/#{@solution[:customer_id]}/Initialize"


end
##
# Update the ComplianceInquiriesInstance
# @param [String] primary_profile_sid The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
# @return [ComplianceInquiriesInstance] Updated ComplianceInquiriesInstance
def update(
primary_profile_sid: nil
)

data = Twilio::Values.of({
'PrimaryProfileSid' => primary_profile_sid,
})

payload = @version.update('POST', @uri, data: data)
ComplianceInquiriesInstance.new(
@version,
payload,
customer_id: @solution[:customer_id],
)
end


##
# Provide a user friendly representation
def to_s
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Trusthub.V1.ComplianceInquiriesContext #{context}>"
end

##
# Provide a detailed, user friendly representation
def inspect
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
"#<Twilio.Trusthub.V1.ComplianceInquiriesContext #{context}>"
end
end

class ComplianceInquiriesPage < Page
##
# Initialize the ComplianceInquiriesPage
# @param [Version] version Version that contains the resource
# @param [Response] response Response from the API
# @param [Hash] solution Path solution for the resource
# @return [ComplianceInquiriesPage] ComplianceInquiriesPage
def initialize(version, response, solution)
super(version, response)

# Path Solution
@solution = solution
end

##
# Build an instance of ComplianceInquiriesInstance
# @param [Hash] payload Payload response from the API
# @return [ComplianceInquiriesInstance] ComplianceInquiriesInstance
def get_instance(payload)
ComplianceInquiriesInstance.new(@version, payload)
end

##
# Provide a user friendly representation
def to_s
'<Twilio.Trusthub.V1.ComplianceInquiriesPage>'
end
end
class ComplianceInquiriesInstance < InstanceResource
##
# Initialize the ComplianceInquiriesInstance
# @param [Version] version Version that contains the resource
# @param [Hash] payload payload that contains response from Twilio
# @param [String] account_sid The SID of the
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ComplianceInquiries
# resource.
# @param [String] sid The SID of the Call resource to fetch.
# @return [ComplianceInquiriesInstance] ComplianceInquiriesInstance
def initialize(version, payload , customer_id: nil)
super(version)

# Marshaled Properties
@properties = {
'inquiry_id' => payload['inquiry_id'],
'inquiry_session_token' => payload['inquiry_session_token'],
'customer_id' => payload['customer_id'],
'url' => payload['url'],
}

# Context
@instance_context = nil
@params = { 'customer_id' => customer_id || @properties['customer_id'] , }
end

##
# Generate an instance context for the instance, the context is capable of
# performing various actions. All instance actions are proxied to the context
# @return [ComplianceInquiriesContext] CallContext for this CallInstance
def context
unless @instance_context
@instance_context = ComplianceInquiriesContext.new(@version , @params['customer_id'])
end
@instance_context
end

##
# @return [String] The unique ID used to start an embedded compliance registration session.
def inquiry_id
@properties['inquiry_id']
end

##
# @return [String] The session token used to start an embedded compliance registration session.
def inquiry_session_token
@properties['inquiry_session_token']
end

##
# @return [String] The CustomerID matching the Customer Profile that should be resumed or resubmitted for editing.
def customer_id
@properties['customer_id']
end

##
# @return [String] The URL of this resource.
def url
@properties['url']
end

##
# Update the ComplianceInquiriesInstance
# @param [String] primary_profile_sid The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.
# @return [ComplianceInquiriesInstance] Updated ComplianceInquiriesInstance
def update(
primary_profile_sid: nil
)

context.update(
primary_profile_sid: primary_profile_sid,
)
end

##
# Provide a user friendly representation
def to_s
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
"<Twilio.Trusthub.V1.ComplianceInquiriesInstance #{values}>"
end

##
# Provide a detailed, user friendly representation
def inspect
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
"<Twilio.Trusthub.V1.ComplianceInquiriesInstance #{values}>"
end
end

end
end
end
end

0 comments on commit 043bda5

Please sign in to comment.