sentdm 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -27
- data/lib/sentdm/client.rb +5 -9
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- data/lib/sentdm/models/api_meta.rb +1 -9
- data/lib/sentdm/models/{api_response_contact.rb → api_response_of_contact.rb} +4 -4
- data/lib/sentdm/models/base_dto.rb +30 -0
- data/lib/sentdm/models/billing_contact_info.rb +47 -0
- data/lib/sentdm/models/brands_brand_data.rb +274 -0
- data/lib/sentdm/models/contact_create_params.rb +13 -6
- data/lib/sentdm/models/contact_delete_params.rb +9 -2
- data/lib/sentdm/models/contact_list_params.rb +10 -2
- data/lib/sentdm/models/contact_list_response.rb +3 -3
- data/lib/sentdm/models/{contact.rb → contact_response.rb} +1 -1
- data/lib/sentdm/models/contact_retrieve_params.rb +7 -1
- data/lib/sentdm/models/contact_update_params.rb +13 -6
- data/lib/sentdm/models/me_retrieve_params.rb +7 -1
- data/lib/sentdm/models/me_retrieve_response.rb +152 -7
- data/lib/sentdm/models/message_retrieve_activities_params.rb +7 -1
- data/lib/sentdm/models/message_retrieve_activities_response.rb +19 -5
- data/lib/sentdm/models/message_retrieve_status_params.rb +7 -1
- data/lib/sentdm/models/message_retrieve_status_response.rb +8 -1
- data/lib/sentdm/models/message_send_params.rb +17 -10
- data/lib/sentdm/models/mutation_request_base.rb +20 -0
- data/lib/sentdm/models/{lookup_retrieve_phone_info_params.rb → number_lookup_params.rb} +9 -3
- data/lib/sentdm/models/{lookup_retrieve_phone_info_response.rb → number_lookup_response.rb} +21 -21
- data/lib/sentdm/models/payment_details.rb +44 -0
- data/lib/sentdm/models/{profile_complete_params.rb → profile_complete_setup_params.rb} +16 -9
- data/lib/sentdm/models/{profile_complete_response.rb → profile_complete_setup_response.rb} +1 -1
- data/lib/sentdm/models/profile_create_params.rb +111 -11
- data/lib/sentdm/models/profile_delete_params.rb +18 -18
- data/lib/sentdm/models/profile_detail.rb +483 -68
- data/lib/sentdm/models/profile_list_params.rb +7 -1
- data/lib/sentdm/models/profile_retrieve_params.rb +7 -1
- data/lib/sentdm/models/profile_update_params.rb +60 -22
- data/lib/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rb → profiles/api_response_of_tcr_campaign_with_use_cases.rb} +6 -6
- data/lib/sentdm/models/profiles/campaign_create_params.rb +57 -0
- data/lib/sentdm/models/{brands → profiles}/campaign_data.rb +28 -7
- data/lib/sentdm/models/profiles/campaign_delete_params.rb +50 -0
- data/lib/sentdm/models/profiles/campaign_list_params.rb +28 -0
- data/lib/sentdm/models/{brands → profiles}/campaign_list_response.rb +5 -5
- data/lib/sentdm/models/profiles/campaign_update_params.rb +64 -0
- data/lib/sentdm/models/{brands → profiles}/messaging_use_case_us.rb +1 -1
- data/lib/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rb +15 -15
- data/lib/sentdm/models/template_create_params.rb +17 -10
- data/lib/sentdm/models/template_definition.rb +255 -15
- data/lib/sentdm/models/template_delete_params.rb +13 -6
- data/lib/sentdm/models/template_list_params.rb +18 -2
- data/lib/sentdm/models/template_retrieve_params.rb +7 -1
- data/lib/sentdm/models/template_update_params.rb +17 -10
- data/lib/sentdm/models/template_variable.rb +7 -1
- data/lib/sentdm/models/user_invite_params.rb +13 -6
- data/lib/sentdm/models/user_list_params.rb +7 -1
- data/lib/sentdm/models/user_remove_params.rb +17 -17
- data/lib/sentdm/models/user_retrieve_params.rb +7 -1
- data/lib/sentdm/models/user_update_role_params.rb +15 -16
- data/lib/sentdm/models/webhook_create_params.rb +13 -6
- data/lib/sentdm/models/webhook_delete_params.rb +7 -1
- data/lib/sentdm/models/webhook_list_event_types_params.rb +7 -1
- data/lib/sentdm/models/webhook_list_events_params.rb +7 -1
- data/lib/sentdm/models/webhook_list_params.rb +7 -1
- data/lib/sentdm/models/webhook_retrieve_params.rb +7 -1
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +8 -2
- data/lib/sentdm/models/webhook_test_params.rb +13 -6
- data/lib/sentdm/models/webhook_toggle_status_params.rb +13 -6
- data/lib/sentdm/models/webhook_update_params.rb +13 -6
- data/lib/sentdm/models.rb +14 -38
- data/lib/sentdm/resources/contacts.rb +49 -26
- data/lib/sentdm/resources/me.rb +24 -5
- data/lib/sentdm/resources/messages.rb +24 -8
- data/lib/sentdm/resources/numbers.rb +44 -0
- data/lib/sentdm/resources/profiles/campaigns.rb +160 -0
- data/lib/sentdm/resources/profiles.rb +125 -36
- data/lib/sentdm/resources/templates.rb +47 -24
- data/lib/sentdm/resources/users.rb +40 -23
- data/lib/sentdm/resources/webhooks.rb +92 -34
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +22 -35
- data/rbi/sentdm/client.rbi +4 -7
- data/rbi/sentdm/models/api_meta.rbi +4 -18
- data/rbi/sentdm/models/{api_response_brand_with_kyc.rbi → api_response_of_contact.rbi} +6 -6
- data/rbi/sentdm/models/base_dto.rbi +49 -0
- data/rbi/sentdm/models/billing_contact_info.rbi +65 -0
- data/rbi/sentdm/models/brands_brand_data.rbi +406 -0
- data/rbi/sentdm/models/contact_create_params.rbi +19 -10
- data/rbi/sentdm/models/contact_delete_params.rbi +10 -1
- data/rbi/sentdm/models/contact_list_params.rbi +11 -0
- data/rbi/sentdm/models/contact_list_response.rbi +4 -4
- data/rbi/sentdm/models/{contact.rbi → contact_response.rbi} +4 -2
- data/rbi/sentdm/models/contact_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/contact_update_params.rbi +19 -10
- data/rbi/sentdm/models/me_retrieve_params.rbi +16 -5
- data/rbi/sentdm/models/me_retrieve_response.rbi +316 -16
- data/rbi/sentdm/models/message_retrieve_activities_params.rbi +13 -2
- data/rbi/sentdm/models/message_retrieve_activities_response.rbi +18 -6
- data/rbi/sentdm/models/message_retrieve_status_params.rbi +13 -2
- data/rbi/sentdm/models/message_retrieve_status_response.rbi +6 -0
- data/rbi/sentdm/models/message_send_params.rbi +22 -13
- data/rbi/sentdm/models/mutation_request_base.rbi +32 -0
- data/rbi/sentdm/models/{lookup_retrieve_phone_info_params.rbi → number_lookup_params.rbi} +15 -7
- data/rbi/sentdm/models/{lookup_retrieve_phone_info_response.rbi → number_lookup_response.rbi} +16 -33
- data/rbi/sentdm/models/payment_details.rbi +59 -0
- data/rbi/sentdm/models/{profile_complete_params.rbi → profile_complete_setup_params.rbi} +21 -12
- data/rbi/sentdm/models/{profile_complete_response.rbi → profile_complete_setup_response.rbi} +1 -1
- data/rbi/sentdm/models/profile_create_params.rbi +189 -15
- data/rbi/sentdm/models/profile_delete_params.rbi +36 -24
- data/rbi/sentdm/models/profile_detail.rbi +725 -111
- data/rbi/sentdm/models/profile_list_params.rbi +16 -5
- data/rbi/sentdm/models/profile_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/profile_update_params.rbi +97 -30
- data/rbi/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rbi → profiles/api_response_of_tcr_campaign_with_use_cases.rbi} +7 -7
- data/rbi/sentdm/models/{brands → profiles}/campaign_create_params.rbi +29 -20
- data/rbi/sentdm/models/{brands → profiles}/campaign_data.rbi +51 -16
- data/rbi/sentdm/models/{brands → profiles}/campaign_delete_params.rbi +23 -12
- data/rbi/sentdm/models/profiles/campaign_list_params.rbi +51 -0
- data/rbi/sentdm/models/{brands → profiles}/campaign_list_response.rbi +7 -5
- data/rbi/sentdm/models/{brands → profiles}/campaign_update_params.rbi +29 -20
- data/rbi/sentdm/models/{brands → profiles}/messaging_use_case_us.rbi +20 -16
- data/rbi/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rbi +35 -29
- data/rbi/sentdm/models/template_create_params.rbi +22 -13
- data/rbi/sentdm/models/template_definition.rbi +405 -74
- data/rbi/sentdm/models/template_delete_params.rbi +19 -10
- data/rbi/sentdm/models/template_list_params.rbi +19 -0
- data/rbi/sentdm/models/template_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/template_update_params.rbi +22 -13
- data/rbi/sentdm/models/template_variable.rbi +6 -0
- data/rbi/sentdm/models/user_invite_params.rbi +19 -10
- data/rbi/sentdm/models/user_list_params.rbi +16 -5
- data/rbi/sentdm/models/user_remove_params.rbi +35 -23
- data/rbi/sentdm/models/user_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/user_update_role_params.rbi +23 -25
- data/rbi/sentdm/models/webhook_create_params.rbi +19 -10
- data/rbi/sentdm/models/webhook_delete_params.rbi +13 -2
- data/rbi/sentdm/models/webhook_list_event_types_params.rbi +16 -5
- data/rbi/sentdm/models/webhook_list_events_params.rbi +16 -1
- data/rbi/sentdm/models/webhook_list_params.rbi +9 -0
- data/rbi/sentdm/models/webhook_retrieve_params.rbi +13 -2
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +16 -2
- data/rbi/sentdm/models/webhook_test_params.rbi +19 -10
- data/rbi/sentdm/models/webhook_toggle_status_params.rbi +19 -10
- data/rbi/sentdm/models/webhook_update_params.rbi +19 -10
- data/rbi/sentdm/models.rbi +14 -38
- data/rbi/sentdm/resources/contacts.rbi +40 -15
- data/rbi/sentdm/resources/me.rbi +25 -7
- data/rbi/sentdm/resources/messages.rbi +17 -4
- data/rbi/sentdm/resources/numbers.rbi +32 -0
- data/rbi/sentdm/resources/profiles/campaigns.rbi +127 -0
- data/rbi/sentdm/resources/profiles.rbi +179 -39
- data/rbi/sentdm/resources/templates.rbi +47 -19
- data/rbi/sentdm/resources/users.rbi +47 -25
- data/rbi/sentdm/resources/webhooks.rbi +92 -20
- data/sig/sentdm/client.rbs +2 -4
- data/sig/sentdm/models/api_meta.rbs +2 -16
- data/sig/sentdm/models/{api_response_contact.rbs → api_response_of_contact.rbs} +6 -6
- data/sig/sentdm/models/base_dto.rbs +25 -0
- data/sig/sentdm/models/billing_contact_info.rbs +30 -0
- data/sig/sentdm/models/brands_brand_data.rbs +210 -0
- data/sig/sentdm/models/contact_create_params.rbs +16 -5
- data/sig/sentdm/models/contact_delete_params.rbs +12 -2
- data/sig/sentdm/models/contact_list_params.rbs +8 -1
- data/sig/sentdm/models/contact_list_response.rbs +7 -5
- data/sig/sentdm/models/{contact.rbs → contact_response.rbs} +2 -2
- data/sig/sentdm/models/contact_retrieve_params.rbs +12 -2
- data/sig/sentdm/models/contact_update_params.rbs +13 -6
- data/sig/sentdm/models/me_retrieve_params.rbs +14 -3
- data/sig/sentdm/models/me_retrieve_response.rbs +134 -7
- data/sig/sentdm/models/message_retrieve_activities_params.rbs +12 -2
- data/sig/sentdm/models/message_retrieve_activities_response.rbs +9 -4
- data/sig/sentdm/models/message_retrieve_status_params.rbs +12 -2
- data/sig/sentdm/models/message_retrieve_status_response.rbs +5 -0
- data/sig/sentdm/models/message_send_params.rbs +15 -8
- data/sig/sentdm/models/mutation_request_base.rbs +15 -0
- data/sig/sentdm/models/{lookup_retrieve_phone_info_params.rbs → number_lookup_params.rbs} +10 -3
- data/sig/sentdm/models/{lookup_retrieve_phone_info_response.rbs → number_lookup_response.rbs} +14 -16
- data/sig/sentdm/models/payment_details.rbs +30 -0
- data/sig/sentdm/models/{profile_complete_params.rbs → profile_complete_setup_params.rbs} +15 -8
- data/sig/sentdm/models/profile_complete_setup_response.rbs +5 -0
- data/sig/sentdm/models/profile_create_params.rbs +57 -7
- data/sig/sentdm/models/profile_delete_params.rbs +23 -13
- data/sig/sentdm/models/profile_detail.rbs +374 -68
- data/sig/sentdm/models/profile_list_params.rbs +14 -3
- data/sig/sentdm/models/profile_retrieve_params.rbs +8 -1
- data/sig/sentdm/models/profile_update_params.rbs +32 -17
- data/sig/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rbs → profiles/api_response_of_tcr_campaign_with_use_cases.rbs} +7 -7
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +54 -0
- data/sig/sentdm/models/{brands → profiles}/campaign_data.rbs +27 -5
- data/sig/sentdm/models/{brands → profiles}/campaign_delete_params.rbs +17 -10
- data/sig/sentdm/models/{brands → profiles}/campaign_list_params.rbs +12 -5
- data/sig/sentdm/models/{brands → profiles}/campaign_list_response.rbs +5 -5
- data/sig/sentdm/models/{brands → profiles}/campaign_update_params.rbs +22 -15
- data/sig/sentdm/models/{brands → profiles}/messaging_use_case_us.rbs +2 -2
- data/sig/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rbs +29 -29
- data/sig/sentdm/models/template_create_params.rbs +15 -8
- data/sig/sentdm/models/template_definition.rbs +233 -20
- data/sig/sentdm/models/template_delete_params.rbs +16 -5
- data/sig/sentdm/models/template_list_params.rbs +13 -1
- data/sig/sentdm/models/template_retrieve_params.rbs +12 -2
- data/sig/sentdm/models/template_update_params.rbs +15 -8
- data/sig/sentdm/models/template_variable.rbs +5 -0
- data/sig/sentdm/models/user_invite_params.rbs +13 -6
- data/sig/sentdm/models/user_list_params.rbs +14 -3
- data/sig/sentdm/models/user_remove_params.rbs +23 -13
- data/sig/sentdm/models/user_retrieve_params.rbs +8 -1
- data/sig/sentdm/models/user_update_role_params.rbs +17 -17
- data/sig/sentdm/models/webhook_create_params.rbs +13 -6
- data/sig/sentdm/models/webhook_delete_params.rbs +12 -2
- data/sig/sentdm/models/webhook_list_event_types_params.rbs +13 -3
- data/sig/sentdm/models/webhook_list_events_params.rbs +13 -1
- data/sig/sentdm/models/webhook_list_params.rbs +13 -1
- data/sig/sentdm/models/webhook_retrieve_params.rbs +12 -2
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +9 -2
- data/sig/sentdm/models/webhook_test_params.rbs +13 -6
- data/sig/sentdm/models/webhook_toggle_status_params.rbs +17 -5
- data/sig/sentdm/models/webhook_update_params.rbs +13 -6
- data/sig/sentdm/models.rbs +14 -32
- data/sig/sentdm/resources/contacts.rbs +10 -5
- data/sig/sentdm/resources/me.rbs +1 -0
- data/sig/sentdm/resources/messages.rbs +4 -1
- data/sig/sentdm/resources/{lookup.rbs → numbers.rbs} +4 -3
- data/sig/sentdm/resources/profiles/campaigns.rbs +42 -0
- data/sig/sentdm/resources/profiles.rbs +22 -9
- data/sig/sentdm/resources/templates.rbs +9 -3
- data/sig/sentdm/resources/users.rbs +10 -7
- data/sig/sentdm/resources/webhooks.rbs +18 -5
- metadata +67 -106
- data/lib/sentdm/models/api_response_brand_with_kyc.rb +0 -43
- data/lib/sentdm/models/brand_create_params.rb +0 -41
- data/lib/sentdm/models/brand_data.rb +0 -237
- data/lib/sentdm/models/brand_delete_params.rb +0 -34
- data/lib/sentdm/models/brand_list_params.rb +0 -14
- data/lib/sentdm/models/brand_list_response.rb +0 -43
- data/lib/sentdm/models/brand_update_params.rb +0 -48
- data/lib/sentdm/models/brand_with_kyc.rb +0 -335
- data/lib/sentdm/models/brands/base_dto.rb +0 -32
- data/lib/sentdm/models/brands/campaign_create_params.rb +0 -50
- data/lib/sentdm/models/brands/campaign_delete_params.rb +0 -43
- data/lib/sentdm/models/brands/campaign_list_params.rb +0 -22
- data/lib/sentdm/models/brands/campaign_update_params.rb +0 -57
- data/lib/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +0 -30
- data/lib/sentdm/models/mutation_request.rb +0 -20
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rb +0 -34
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rb +0 -40
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +0 -38
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +0 -81
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +0 -34
- data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +0 -39
- data/lib/sentdm/resources/brands/campaigns.rb +0 -145
- data/lib/sentdm/resources/brands.rb +0 -130
- data/lib/sentdm/resources/lookup.rb +0 -35
- data/rbi/sentdm/models/api_response_contact.rbi +0 -74
- data/rbi/sentdm/models/brand_create_params.rbi +0 -68
- data/rbi/sentdm/models/brand_data.rbi +0 -266
- data/rbi/sentdm/models/brand_delete_params.rbi +0 -68
- data/rbi/sentdm/models/brand_list_params.rbi +0 -27
- data/rbi/sentdm/models/brand_list_response.rbi +0 -71
- data/rbi/sentdm/models/brand_update_params.rbi +0 -74
- data/rbi/sentdm/models/brand_with_kyc.rbi +0 -398
- data/rbi/sentdm/models/brands/base_dto.rbi +0 -53
- data/rbi/sentdm/models/brands/campaign_list_params.rbi +0 -37
- data/rbi/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +0 -52
- data/rbi/sentdm/models/mutation_request.rbi +0 -32
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbi +0 -56
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbi +0 -76
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +0 -79
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +0 -104
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +0 -60
- data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +0 -62
- data/rbi/sentdm/resources/brands/campaigns.rbi +0 -109
- data/rbi/sentdm/resources/brands.rbi +0 -95
- data/rbi/sentdm/resources/lookup.rbi +0 -24
- data/sig/sentdm/models/api_response_brand_with_kyc.rbs +0 -39
- data/sig/sentdm/models/brand_create_params.rbs +0 -36
- data/sig/sentdm/models/brand_data.rbs +0 -164
- data/sig/sentdm/models/brand_delete_params.rbs +0 -36
- data/sig/sentdm/models/brand_list_params.rbs +0 -14
- data/sig/sentdm/models/brand_list_response.rbs +0 -39
- data/sig/sentdm/models/brand_update_params.rbs +0 -45
- data/sig/sentdm/models/brand_with_kyc.rbs +0 -237
- data/sig/sentdm/models/brands/base_dto.rbs +0 -27
- data/sig/sentdm/models/brands/campaign_create_params.rbs +0 -47
- data/sig/sentdm/models/brands/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +0 -27
- data/sig/sentdm/models/mutation_request.rbs +0 -15
- data/sig/sentdm/models/profile_complete_response.rbs +0 -5
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_authentication_config.rbs +0 -24
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_body.rbs +0 -30
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +0 -38
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +0 -75
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +0 -32
- data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +0 -32
- data/sig/sentdm/resources/brands/campaigns.rbs +0 -38
- data/sig/sentdm/resources/brands.rbs +0 -34
|
@@ -9,21 +9,34 @@ module Sentdm
|
|
|
9
9
|
sig do
|
|
10
10
|
params(
|
|
11
11
|
user_id: String,
|
|
12
|
+
x_profile_id: String,
|
|
12
13
|
request_options: Sentdm::RequestOptions::OrHash
|
|
13
14
|
).returns(Sentdm::APIResponseOfUser)
|
|
14
15
|
end
|
|
15
|
-
def retrieve(
|
|
16
|
+
def retrieve(
|
|
17
|
+
user_id,
|
|
18
|
+
# Profile UUID to scope the request to a child profile. Only organization API keys
|
|
19
|
+
# can use this header. The profile must belong to the calling organization.
|
|
20
|
+
x_profile_id: nil,
|
|
21
|
+
request_options: {}
|
|
22
|
+
)
|
|
16
23
|
end
|
|
17
24
|
|
|
18
25
|
# Retrieves all users who have access to the organization or profile identified by
|
|
19
26
|
# the API key, including their roles and status. Shows invited users (pending
|
|
20
27
|
# acceptance) and active users. Requires developer role or higher.
|
|
21
28
|
sig do
|
|
22
|
-
params(
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
params(
|
|
30
|
+
x_profile_id: String,
|
|
31
|
+
request_options: Sentdm::RequestOptions::OrHash
|
|
32
|
+
).returns(Sentdm::Models::UserListResponse)
|
|
25
33
|
end
|
|
26
|
-
def list(
|
|
34
|
+
def list(
|
|
35
|
+
# Profile UUID to scope the request to a child profile. Only organization API keys
|
|
36
|
+
# can use this header. The profile must belong to the calling organization.
|
|
37
|
+
x_profile_id: nil,
|
|
38
|
+
request_options: {}
|
|
39
|
+
)
|
|
27
40
|
end
|
|
28
41
|
|
|
29
42
|
# Sends an invitation to a user to join the organization or profile with a
|
|
@@ -34,8 +47,9 @@ module Sentdm
|
|
|
34
47
|
email: String,
|
|
35
48
|
name: String,
|
|
36
49
|
role: String,
|
|
37
|
-
|
|
50
|
+
sandbox: T::Boolean,
|
|
38
51
|
idempotency_key: String,
|
|
52
|
+
x_profile_id: String,
|
|
39
53
|
request_options: Sentdm::RequestOptions::OrHash
|
|
40
54
|
).returns(Sentdm::APIResponseOfUser)
|
|
41
55
|
end
|
|
@@ -46,13 +60,17 @@ module Sentdm
|
|
|
46
60
|
name: nil,
|
|
47
61
|
# Body param: User role: admin, billing, or developer (required)
|
|
48
62
|
role: nil,
|
|
49
|
-
# Body param:
|
|
63
|
+
# Body param: Sandbox flag - when true, the operation is simulated without side
|
|
50
64
|
# effects Useful for testing integrations without actual execution
|
|
51
|
-
|
|
65
|
+
sandbox: nil,
|
|
52
66
|
# Header param: Unique key to ensure idempotent request processing. Must be 1-255
|
|
53
67
|
# alphanumeric characters, hyphens, or underscores. Responses are cached for 24
|
|
54
68
|
# hours per key per customer.
|
|
55
69
|
idempotency_key: nil,
|
|
70
|
+
# Header param: Profile UUID to scope the request to a child profile. Only
|
|
71
|
+
# organization API keys can use this header. The profile must belong to the
|
|
72
|
+
# calling organization.
|
|
73
|
+
x_profile_id: nil,
|
|
56
74
|
request_options: {}
|
|
57
75
|
)
|
|
58
76
|
end
|
|
@@ -61,19 +79,21 @@ module Sentdm
|
|
|
61
79
|
# cannot remove yourself or remove the last admin.
|
|
62
80
|
sig do
|
|
63
81
|
params(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
82
|
+
user_id: String,
|
|
83
|
+
body: Sentdm::UserRemoveParams::Body::OrHash,
|
|
84
|
+
x_profile_id: String,
|
|
67
85
|
request_options: Sentdm::RequestOptions::OrHash
|
|
68
86
|
).void
|
|
69
87
|
end
|
|
70
88
|
def remove(
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
#
|
|
74
|
-
|
|
75
|
-
#
|
|
76
|
-
|
|
89
|
+
# Path param
|
|
90
|
+
user_id,
|
|
91
|
+
# Body param: Request to remove a user from an organization
|
|
92
|
+
body:,
|
|
93
|
+
# Header param: Profile UUID to scope the request to a child profile. Only
|
|
94
|
+
# organization API keys can use this header. The profile must belong to the
|
|
95
|
+
# calling organization.
|
|
96
|
+
x_profile_id: nil,
|
|
77
97
|
request_options: {}
|
|
78
98
|
)
|
|
79
99
|
end
|
|
@@ -82,28 +102,30 @@ module Sentdm
|
|
|
82
102
|
# cannot change your own role or demote the last admin.
|
|
83
103
|
sig do
|
|
84
104
|
params(
|
|
85
|
-
|
|
105
|
+
user_id: String,
|
|
86
106
|
role: String,
|
|
87
|
-
|
|
88
|
-
body_user_id: String,
|
|
107
|
+
sandbox: T::Boolean,
|
|
89
108
|
idempotency_key: String,
|
|
109
|
+
x_profile_id: String,
|
|
90
110
|
request_options: Sentdm::RequestOptions::OrHash
|
|
91
111
|
).returns(Sentdm::APIResponseOfUser)
|
|
92
112
|
end
|
|
93
113
|
def update_role(
|
|
94
114
|
# Path param
|
|
95
|
-
|
|
115
|
+
user_id,
|
|
96
116
|
# Body param: User role: admin, billing, or developer (required)
|
|
97
117
|
role: nil,
|
|
98
|
-
# Body param:
|
|
118
|
+
# Body param: Sandbox flag - when true, the operation is simulated without side
|
|
99
119
|
# effects Useful for testing integrations without actual execution
|
|
100
|
-
|
|
101
|
-
# Body param: User ID from route parameter
|
|
102
|
-
body_user_id: nil,
|
|
120
|
+
sandbox: nil,
|
|
103
121
|
# Header param: Unique key to ensure idempotent request processing. Must be 1-255
|
|
104
122
|
# alphanumeric characters, hyphens, or underscores. Responses are cached for 24
|
|
105
123
|
# hours per key per customer.
|
|
106
124
|
idempotency_key: nil,
|
|
125
|
+
# Header param: Profile UUID to scope the request to a child profile. Only
|
|
126
|
+
# organization API keys can use this header. The profile must belong to the
|
|
127
|
+
# calling organization.
|
|
128
|
+
x_profile_id: nil,
|
|
107
129
|
request_options: {}
|
|
108
130
|
)
|
|
109
131
|
end
|
|
@@ -11,9 +11,10 @@ module Sentdm
|
|
|
11
11
|
endpoint_url: String,
|
|
12
12
|
event_types: T::Array[String],
|
|
13
13
|
retry_count: Integer,
|
|
14
|
-
|
|
14
|
+
sandbox: T::Boolean,
|
|
15
15
|
timeout_seconds: Integer,
|
|
16
16
|
idempotency_key: String,
|
|
17
|
+
x_profile_id: String,
|
|
17
18
|
request_options: Sentdm::RequestOptions::OrHash
|
|
18
19
|
).returns(Sentdm::APIResponseWebhook)
|
|
19
20
|
end
|
|
@@ -26,15 +27,19 @@ module Sentdm
|
|
|
26
27
|
event_types: nil,
|
|
27
28
|
# Body param
|
|
28
29
|
retry_count: nil,
|
|
29
|
-
# Body param:
|
|
30
|
+
# Body param: Sandbox flag - when true, the operation is simulated without side
|
|
30
31
|
# effects Useful for testing integrations without actual execution
|
|
31
|
-
|
|
32
|
+
sandbox: nil,
|
|
32
33
|
# Body param
|
|
33
34
|
timeout_seconds: nil,
|
|
34
35
|
# Header param: Unique key to ensure idempotent request processing. Must be 1-255
|
|
35
36
|
# alphanumeric characters, hyphens, or underscores. Responses are cached for 24
|
|
36
37
|
# hours per key per customer.
|
|
37
38
|
idempotency_key: nil,
|
|
39
|
+
# Header param: Profile UUID to scope the request to a child profile. Only
|
|
40
|
+
# organization API keys can use this header. The profile must belong to the
|
|
41
|
+
# calling organization.
|
|
42
|
+
x_profile_id: nil,
|
|
38
43
|
request_options: {}
|
|
39
44
|
)
|
|
40
45
|
end
|
|
@@ -43,10 +48,17 @@ module Sentdm
|
|
|
43
48
|
sig do
|
|
44
49
|
params(
|
|
45
50
|
id: String,
|
|
51
|
+
x_profile_id: String,
|
|
46
52
|
request_options: Sentdm::RequestOptions::OrHash
|
|
47
53
|
).returns(Sentdm::APIResponseWebhook)
|
|
48
54
|
end
|
|
49
|
-
def retrieve(
|
|
55
|
+
def retrieve(
|
|
56
|
+
id,
|
|
57
|
+
# Profile UUID to scope the request to a child profile. Only organization API keys
|
|
58
|
+
# can use this header. The profile must belong to the calling organization.
|
|
59
|
+
x_profile_id: nil,
|
|
60
|
+
request_options: {}
|
|
61
|
+
)
|
|
50
62
|
end
|
|
51
63
|
|
|
52
64
|
# Updates an existing webhook for the authenticated customer.
|
|
@@ -57,9 +69,10 @@ module Sentdm
|
|
|
57
69
|
endpoint_url: String,
|
|
58
70
|
event_types: T::Array[String],
|
|
59
71
|
retry_count: Integer,
|
|
60
|
-
|
|
72
|
+
sandbox: T::Boolean,
|
|
61
73
|
timeout_seconds: Integer,
|
|
62
74
|
idempotency_key: String,
|
|
75
|
+
x_profile_id: String,
|
|
63
76
|
request_options: Sentdm::RequestOptions::OrHash
|
|
64
77
|
).returns(Sentdm::APIResponseWebhook)
|
|
65
78
|
end
|
|
@@ -74,15 +87,19 @@ module Sentdm
|
|
|
74
87
|
event_types: nil,
|
|
75
88
|
# Body param
|
|
76
89
|
retry_count: nil,
|
|
77
|
-
# Body param:
|
|
90
|
+
# Body param: Sandbox flag - when true, the operation is simulated without side
|
|
78
91
|
# effects Useful for testing integrations without actual execution
|
|
79
|
-
|
|
92
|
+
sandbox: nil,
|
|
80
93
|
# Body param
|
|
81
94
|
timeout_seconds: nil,
|
|
82
95
|
# Header param: Unique key to ensure idempotent request processing. Must be 1-255
|
|
83
96
|
# alphanumeric characters, hyphens, or underscores. Responses are cached for 24
|
|
84
97
|
# hours per key per customer.
|
|
85
98
|
idempotency_key: nil,
|
|
99
|
+
# Header param: Profile UUID to scope the request to a child profile. Only
|
|
100
|
+
# organization API keys can use this header. The profile must belong to the
|
|
101
|
+
# calling organization.
|
|
102
|
+
x_profile_id: nil,
|
|
86
103
|
request_options: {}
|
|
87
104
|
)
|
|
88
105
|
end
|
|
@@ -94,32 +111,57 @@ module Sentdm
|
|
|
94
111
|
page_size: Integer,
|
|
95
112
|
is_active: T.nilable(T::Boolean),
|
|
96
113
|
search: T.nilable(String),
|
|
114
|
+
x_profile_id: String,
|
|
97
115
|
request_options: Sentdm::RequestOptions::OrHash
|
|
98
116
|
).returns(Sentdm::Models::WebhookListResponse)
|
|
99
117
|
end
|
|
100
118
|
def list(
|
|
119
|
+
# Query param
|
|
101
120
|
page:,
|
|
121
|
+
# Query param
|
|
102
122
|
page_size:,
|
|
123
|
+
# Query param
|
|
103
124
|
is_active: nil,
|
|
125
|
+
# Query param
|
|
104
126
|
search: nil,
|
|
127
|
+
# Header param: Profile UUID to scope the request to a child profile. Only
|
|
128
|
+
# organization API keys can use this header. The profile must belong to the
|
|
129
|
+
# calling organization.
|
|
130
|
+
x_profile_id: nil,
|
|
105
131
|
request_options: {}
|
|
106
132
|
)
|
|
107
133
|
end
|
|
108
134
|
|
|
109
135
|
# Deletes a webhook for the authenticated customer.
|
|
110
136
|
sig do
|
|
111
|
-
params(
|
|
137
|
+
params(
|
|
138
|
+
id: String,
|
|
139
|
+
x_profile_id: String,
|
|
140
|
+
request_options: Sentdm::RequestOptions::OrHash
|
|
141
|
+
).void
|
|
112
142
|
end
|
|
113
|
-
def delete(
|
|
143
|
+
def delete(
|
|
144
|
+
id,
|
|
145
|
+
# Profile UUID to scope the request to a child profile. Only organization API keys
|
|
146
|
+
# can use this header. The profile must belong to the calling organization.
|
|
147
|
+
x_profile_id: nil,
|
|
148
|
+
request_options: {}
|
|
149
|
+
)
|
|
114
150
|
end
|
|
115
151
|
|
|
116
152
|
# Retrieves all available webhook event types that can be subscribed to.
|
|
117
153
|
sig do
|
|
118
|
-
params(
|
|
119
|
-
|
|
120
|
-
|
|
154
|
+
params(
|
|
155
|
+
x_profile_id: String,
|
|
156
|
+
request_options: Sentdm::RequestOptions::OrHash
|
|
157
|
+
).returns(Sentdm::Models::WebhookListEventTypesResponse)
|
|
121
158
|
end
|
|
122
|
-
def list_event_types(
|
|
159
|
+
def list_event_types(
|
|
160
|
+
# Profile UUID to scope the request to a child profile. Only organization API keys
|
|
161
|
+
# can use this header. The profile must belong to the calling organization.
|
|
162
|
+
x_profile_id: nil,
|
|
163
|
+
request_options: {}
|
|
164
|
+
)
|
|
123
165
|
end
|
|
124
166
|
|
|
125
167
|
# Retrieves a paginated list of delivery events for the specified webhook.
|
|
@@ -129,10 +171,25 @@ module Sentdm
|
|
|
129
171
|
page: Integer,
|
|
130
172
|
page_size: Integer,
|
|
131
173
|
search: T.nilable(String),
|
|
174
|
+
x_profile_id: String,
|
|
132
175
|
request_options: Sentdm::RequestOptions::OrHash
|
|
133
176
|
).returns(Sentdm::Models::WebhookListEventsResponse)
|
|
134
177
|
end
|
|
135
|
-
def list_events(
|
|
178
|
+
def list_events(
|
|
179
|
+
# Path param
|
|
180
|
+
id,
|
|
181
|
+
# Query param
|
|
182
|
+
page:,
|
|
183
|
+
# Query param
|
|
184
|
+
page_size:,
|
|
185
|
+
# Query param
|
|
186
|
+
search: nil,
|
|
187
|
+
# Header param: Profile UUID to scope the request to a child profile. Only
|
|
188
|
+
# organization API keys can use this header. The profile must belong to the
|
|
189
|
+
# calling organization.
|
|
190
|
+
x_profile_id: nil,
|
|
191
|
+
request_options: {}
|
|
192
|
+
)
|
|
136
193
|
end
|
|
137
194
|
|
|
138
195
|
# Generates a new signing secret for the specified webhook. The old secret is
|
|
@@ -142,6 +199,7 @@ module Sentdm
|
|
|
142
199
|
id: String,
|
|
143
200
|
body: Sentdm::WebhookRotateSecretParams::Body::OrHash,
|
|
144
201
|
idempotency_key: String,
|
|
202
|
+
x_profile_id: String,
|
|
145
203
|
request_options: Sentdm::RequestOptions::OrHash
|
|
146
204
|
).returns(Sentdm::Models::WebhookRotateSecretResponse)
|
|
147
205
|
end
|
|
@@ -154,6 +212,10 @@ module Sentdm
|
|
|
154
212
|
# alphanumeric characters, hyphens, or underscores. Responses are cached for 24
|
|
155
213
|
# hours per key per customer.
|
|
156
214
|
idempotency_key: nil,
|
|
215
|
+
# Header param: Profile UUID to scope the request to a child profile. Only
|
|
216
|
+
# organization API keys can use this header. The profile must belong to the
|
|
217
|
+
# calling organization.
|
|
218
|
+
x_profile_id: nil,
|
|
157
219
|
request_options: {}
|
|
158
220
|
)
|
|
159
221
|
end
|
|
@@ -163,8 +225,9 @@ module Sentdm
|
|
|
163
225
|
params(
|
|
164
226
|
id: String,
|
|
165
227
|
event_type: String,
|
|
166
|
-
|
|
228
|
+
sandbox: T::Boolean,
|
|
167
229
|
idempotency_key: String,
|
|
230
|
+
x_profile_id: String,
|
|
168
231
|
request_options: Sentdm::RequestOptions::OrHash
|
|
169
232
|
).returns(Sentdm::Models::WebhookTestResponse)
|
|
170
233
|
end
|
|
@@ -173,13 +236,17 @@ module Sentdm
|
|
|
173
236
|
id,
|
|
174
237
|
# Body param
|
|
175
238
|
event_type: nil,
|
|
176
|
-
# Body param:
|
|
239
|
+
# Body param: Sandbox flag - when true, the operation is simulated without side
|
|
177
240
|
# effects Useful for testing integrations without actual execution
|
|
178
|
-
|
|
241
|
+
sandbox: nil,
|
|
179
242
|
# Header param: Unique key to ensure idempotent request processing. Must be 1-255
|
|
180
243
|
# alphanumeric characters, hyphens, or underscores. Responses are cached for 24
|
|
181
244
|
# hours per key per customer.
|
|
182
245
|
idempotency_key: nil,
|
|
246
|
+
# Header param: Profile UUID to scope the request to a child profile. Only
|
|
247
|
+
# organization API keys can use this header. The profile must belong to the
|
|
248
|
+
# calling organization.
|
|
249
|
+
x_profile_id: nil,
|
|
183
250
|
request_options: {}
|
|
184
251
|
)
|
|
185
252
|
end
|
|
@@ -189,8 +256,9 @@ module Sentdm
|
|
|
189
256
|
params(
|
|
190
257
|
id: String,
|
|
191
258
|
is_active: T::Boolean,
|
|
192
|
-
|
|
259
|
+
sandbox: T::Boolean,
|
|
193
260
|
idempotency_key: String,
|
|
261
|
+
x_profile_id: String,
|
|
194
262
|
request_options: Sentdm::RequestOptions::OrHash
|
|
195
263
|
).returns(Sentdm::APIResponseWebhook)
|
|
196
264
|
end
|
|
@@ -199,13 +267,17 @@ module Sentdm
|
|
|
199
267
|
id,
|
|
200
268
|
# Body param
|
|
201
269
|
is_active: nil,
|
|
202
|
-
# Body param:
|
|
270
|
+
# Body param: Sandbox flag - when true, the operation is simulated without side
|
|
203
271
|
# effects Useful for testing integrations without actual execution
|
|
204
|
-
|
|
272
|
+
sandbox: nil,
|
|
205
273
|
# Header param: Unique key to ensure idempotent request processing. Must be 1-255
|
|
206
274
|
# alphanumeric characters, hyphens, or underscores. Responses are cached for 24
|
|
207
275
|
# hours per key per customer.
|
|
208
276
|
idempotency_key: nil,
|
|
277
|
+
# Header param: Profile UUID to scope the request to a child profile. Only
|
|
278
|
+
# organization API keys can use this header. The profile must belong to the
|
|
279
|
+
# calling organization.
|
|
280
|
+
x_profile_id: nil,
|
|
209
281
|
request_options: {}
|
|
210
282
|
)
|
|
211
283
|
end
|
data/sig/sentdm/client.rbs
CHANGED
|
@@ -18,14 +18,12 @@ module Sentdm
|
|
|
18
18
|
|
|
19
19
|
attr_reader profiles: Sentdm::Resources::Profiles
|
|
20
20
|
|
|
21
|
-
attr_reader
|
|
21
|
+
attr_reader numbers: Sentdm::Resources::Numbers
|
|
22
22
|
|
|
23
|
-
attr_reader
|
|
23
|
+
attr_reader messages: Sentdm::Resources::Messages
|
|
24
24
|
|
|
25
25
|
attr_reader contacts: Sentdm::Resources::Contacts
|
|
26
26
|
|
|
27
|
-
attr_reader brands: Sentdm::Resources::Brands
|
|
28
|
-
|
|
29
27
|
attr_reader me: Sentdm::Resources::Me
|
|
30
28
|
|
|
31
29
|
private def auth_headers: -> ::Hash[String, String]
|
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
type api_meta =
|
|
4
|
-
{
|
|
5
|
-
request_id: String,
|
|
6
|
-
response_time_ms: Integer?,
|
|
7
|
-
timestamp: Time,
|
|
8
|
-
version: String
|
|
9
|
-
}
|
|
3
|
+
type api_meta = { request_id: String, timestamp: Time, version: String }
|
|
10
4
|
|
|
11
5
|
class APIMeta < Sentdm::Internal::Type::BaseModel
|
|
12
6
|
attr_reader request_id: String?
|
|
13
7
|
|
|
14
8
|
def request_id=: (String) -> String
|
|
15
9
|
|
|
16
|
-
attr_accessor response_time_ms: Integer?
|
|
17
|
-
|
|
18
10
|
attr_reader timestamp: Time?
|
|
19
11
|
|
|
20
12
|
def timestamp=: (Time) -> Time
|
|
@@ -25,17 +17,11 @@ module Sentdm
|
|
|
25
17
|
|
|
26
18
|
def initialize: (
|
|
27
19
|
?request_id: String,
|
|
28
|
-
?response_time_ms: Integer?,
|
|
29
20
|
?timestamp: Time,
|
|
30
21
|
?version: String
|
|
31
22
|
) -> void
|
|
32
23
|
|
|
33
|
-
def to_hash: -> {
|
|
34
|
-
request_id: String,
|
|
35
|
-
response_time_ms: Integer?,
|
|
36
|
-
timestamp: Time,
|
|
37
|
-
version: String
|
|
38
|
-
}
|
|
24
|
+
def to_hash: -> { request_id: String, timestamp: Time, version: String }
|
|
39
25
|
end
|
|
40
26
|
end
|
|
41
27
|
end
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
type
|
|
3
|
+
type api_response_of_contact =
|
|
4
4
|
{
|
|
5
|
-
data: Sentdm::
|
|
5
|
+
data: Sentdm::ContactResponse?,
|
|
6
6
|
error: Sentdm::APIError?,
|
|
7
7
|
meta: Sentdm::APIMeta,
|
|
8
8
|
success: bool
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
class
|
|
12
|
-
attr_accessor data: Sentdm::
|
|
11
|
+
class APIResponseOfContact < Sentdm::Internal::Type::BaseModel
|
|
12
|
+
attr_accessor data: Sentdm::ContactResponse?
|
|
13
13
|
|
|
14
14
|
attr_accessor error: Sentdm::APIError?
|
|
15
15
|
|
|
@@ -22,14 +22,14 @@ module Sentdm
|
|
|
22
22
|
def success=: (bool) -> bool
|
|
23
23
|
|
|
24
24
|
def initialize: (
|
|
25
|
-
?data: Sentdm::
|
|
25
|
+
?data: Sentdm::ContactResponse?,
|
|
26
26
|
?error: Sentdm::APIError?,
|
|
27
27
|
?meta: Sentdm::APIMeta,
|
|
28
28
|
?success: bool
|
|
29
29
|
) -> void
|
|
30
30
|
|
|
31
31
|
def to_hash: -> {
|
|
32
|
-
data: Sentdm::
|
|
32
|
+
data: Sentdm::ContactResponse?,
|
|
33
33
|
error: Sentdm::APIError?,
|
|
34
34
|
meta: Sentdm::APIMeta,
|
|
35
35
|
success: bool
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type base_dto = { id: String, created_at: Time, updated_at: Time? }
|
|
4
|
+
|
|
5
|
+
class BaseDto < Sentdm::Internal::Type::BaseModel
|
|
6
|
+
attr_reader id: String?
|
|
7
|
+
|
|
8
|
+
def id=: (String) -> String
|
|
9
|
+
|
|
10
|
+
attr_reader created_at: Time?
|
|
11
|
+
|
|
12
|
+
def created_at=: (Time) -> Time
|
|
13
|
+
|
|
14
|
+
attr_accessor updated_at: Time?
|
|
15
|
+
|
|
16
|
+
def initialize: (
|
|
17
|
+
?id: String,
|
|
18
|
+
?created_at: Time,
|
|
19
|
+
?updated_at: Time?
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> { id: String, created_at: Time, updated_at: Time? }
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type billing_contact_info =
|
|
4
|
+
{ email: String, name: String, address: String?, phone: String? }
|
|
5
|
+
|
|
6
|
+
class BillingContactInfo < Sentdm::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor email: String
|
|
8
|
+
|
|
9
|
+
attr_accessor name: String
|
|
10
|
+
|
|
11
|
+
attr_accessor address: String?
|
|
12
|
+
|
|
13
|
+
attr_accessor phone: String?
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
email: String,
|
|
17
|
+
name: String,
|
|
18
|
+
?address: String?,
|
|
19
|
+
?phone: String?
|
|
20
|
+
) -> void
|
|
21
|
+
|
|
22
|
+
def to_hash: -> {
|
|
23
|
+
email: String,
|
|
24
|
+
name: String,
|
|
25
|
+
address: String?,
|
|
26
|
+
phone: String?
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|