Class: Twilio::REST::Trusthub::V1::ComplianceInquiriesList

Inherits:
ListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ ComplianceInquiriesList

Initialize the ComplianceInquiriesList

Parameters:

  • version (Version)

    Version that contains the resource



26
27
28
29
30
31
32
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 26

def initialize(version)
    super(version)
    # Path Solution
    @solution = {  }
    @uri = "/ComplianceInquiries/Customers/Initialize"
    
end

Instance Method Details

#create(primary_profile_sid: nil, notification_email: :unset, theme_set_id: :unset) ⇒ ComplianceInquiriesInstance

Create the ComplianceInquiriesInstance

Parameters:

  • primary_profile_sid (String) (defaults to: nil)

    The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile.

  • notification_email (String) (defaults to: :unset)

    The email address that approval status updates will be sent to. If not specified, the email address associated with your primary customer profile will be used.

  • theme_set_id (String) (defaults to: :unset)

    Theme id for styling the inquiry form.

Returns:



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 39

def create(
    primary_profile_sid: nil, 
    notification_email: :unset, 
    theme_set_id: :unset
)

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

    headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
    
    
    
    
    
    payload = @version.create('POST', @uri, data: data, headers: headers)
    ComplianceInquiriesInstance.new(
        @version,
        payload,
    )
end

#to_sObject

Provide a user friendly representation



68
69
70
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb', line 68

def to_s
    '#<Twilio.Trusthub.V1.ComplianceInquiriesList>'
end