Class: Twilio::REST::Trusthub::V1::ComplianceRegistrationInquiriesList

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

Instance Method Summary collapse

Constructor Details

#initialize(version) ⇒ ComplianceRegistrationInquiriesList

Initialize the ComplianceRegistrationInquiriesList



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

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

Instance Method Details

#create(end_user_type: nil, phone_number_type: nil, business_identity_type: :unset, business_registration_authority: :unset, business_legal_name: :unset, notification_email: :unset, accepted_notification_receipt: :unset, business_registration_number: :unset, business_website_url: :unset, friendly_name: :unset, authorized_representative1_first_name: :unset, authorized_representative1_last_name: :unset, authorized_representative1_phone: :unset, authorized_representative1_email: :unset, authorized_representative1_date_of_birth: :unset, address_street: :unset, address_street_secondary: :unset, address_city: :unset, address_subdivision: :unset, address_postal_code: :unset, address_country_code: :unset, emergency_address_street: :unset, emergency_address_street_secondary: :unset, emergency_address_city: :unset, emergency_address_subdivision: :unset, emergency_address_postal_code: :unset, emergency_address_country_code: :unset, use_address_as_emergency_address: :unset, file_name: :unset, file: :unset, first_name: :unset, last_name: :unset, date_of_birth: :unset, individual_email: :unset, individual_phone: :unset, is_isv_embed: :unset, isv_registering_for_self_or_tenant: :unset, status_callback_url: :unset, theme_set_id: :unset) ⇒ ComplianceRegistrationInquiriesInstance

Create the ComplianceRegistrationInquiriesInstance



75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb', line 75

def create(
    end_user_type: nil, 
    phone_number_type: nil, 
    business_identity_type: :unset, 
    business_registration_authority: :unset, 
    business_legal_name: :unset, 
    notification_email: :unset, 
    accepted_notification_receipt: :unset, 
    business_registration_number: :unset, 
    business_website_url: :unset, 
    friendly_name: :unset, 
    authorized_representative1_first_name: :unset, 
    authorized_representative1_last_name: :unset, 
    authorized_representative1_phone: :unset, 
    authorized_representative1_email: :unset, 
    authorized_representative1_date_of_birth: :unset, 
    address_street: :unset, 
    address_street_secondary: :unset, 
    address_city: :unset, 
    address_subdivision: :unset, 
    address_postal_code: :unset, 
    address_country_code: :unset, 
    emergency_address_street: :unset, 
    emergency_address_street_secondary: :unset, 
    emergency_address_city: :unset, 
    emergency_address_subdivision: :unset, 
    emergency_address_postal_code: :unset, 
    emergency_address_country_code: :unset, 
    use_address_as_emergency_address: :unset, 
    file_name: :unset, 
    file: :unset, 
    first_name: :unset, 
    last_name: :unset, 
    date_of_birth: :unset, 
    individual_email: :unset, 
    individual_phone: :unset, 
    is_isv_embed: :unset, 
    isv_registering_for_self_or_tenant: :unset, 
    status_callback_url: :unset, 
    theme_set_id: :unset
)

    data = Twilio::Values.of({
        'EndUserType' => end_user_type,
        'PhoneNumberType' => phone_number_type,
        'BusinessIdentityType' => business_identity_type,
        'BusinessRegistrationAuthority' => business_registration_authority,
        'BusinessLegalName' => business_legal_name,
        'NotificationEmail' => notification_email,
        'AcceptedNotificationReceipt' => accepted_notification_receipt,
        'BusinessRegistrationNumber' => business_registration_number,
        'BusinessWebsiteUrl' => business_website_url,
        'FriendlyName' => friendly_name,
        'AuthorizedRepresentative1FirstName' => authorized_representative1_first_name,
        'AuthorizedRepresentative1LastName' => authorized_representative1_last_name,
        'AuthorizedRepresentative1Phone' => authorized_representative1_phone,
        'AuthorizedRepresentative1Email' => authorized_representative1_email,
        'AuthorizedRepresentative1DateOfBirth' => authorized_representative1_date_of_birth,
        'AddressStreet' => address_street,
        'AddressStreetSecondary' => address_street_secondary,
        'AddressCity' => address_city,
        'AddressSubdivision' => address_subdivision,
        'AddressPostalCode' => address_postal_code,
        'AddressCountryCode' => address_country_code,
        'EmergencyAddressStreet' => emergency_address_street,
        'EmergencyAddressStreetSecondary' => emergency_address_street_secondary,
        'EmergencyAddressCity' => emergency_address_city,
        'EmergencyAddressSubdivision' => emergency_address_subdivision,
        'EmergencyAddressPostalCode' => emergency_address_postal_code,
        'EmergencyAddressCountryCode' => emergency_address_country_code,
        'UseAddressAsEmergencyAddress' => use_address_as_emergency_address,
        'FileName' => file_name,
        'File' => file,
        'FirstName' => first_name,
        'LastName' => last_name,
        'DateOfBirth' => date_of_birth,
        'IndividualEmail' => individual_email,
        'IndividualPhone' => individual_phone,
        'IsIsvEmbed' => is_isv_embed,
        'IsvRegisteringForSelfOrTenant' => isv_registering_for_self_or_tenant,
        'StatusCallbackUrl' => status_callback_url,
        'ThemeSetId' => theme_set_id,
    })

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

#to_sObject

Provide a user friendly representation



176
177
178
# File 'lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb', line 176

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