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
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class BrandCreateParams < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
7
|
-
include Sentdm::Internal::Type::RequestParameters
|
|
8
|
-
|
|
9
|
-
OrHash =
|
|
10
|
-
T.type_alias do
|
|
11
|
-
T.any(Sentdm::BrandCreateParams, Sentdm::Internal::AnyHash)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
# Brand and KYC information
|
|
15
|
-
sig { returns(Sentdm::BrandData) }
|
|
16
|
-
attr_reader :brand
|
|
17
|
-
|
|
18
|
-
sig { params(brand: Sentdm::BrandData::OrHash).void }
|
|
19
|
-
attr_writer :brand
|
|
20
|
-
|
|
21
|
-
# Test mode flag - when true, the operation is simulated without side effects
|
|
22
|
-
# Useful for testing integrations without actual execution
|
|
23
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
24
|
-
attr_reader :test_mode
|
|
25
|
-
|
|
26
|
-
sig { params(test_mode: T::Boolean).void }
|
|
27
|
-
attr_writer :test_mode
|
|
28
|
-
|
|
29
|
-
sig { returns(T.nilable(String)) }
|
|
30
|
-
attr_reader :idempotency_key
|
|
31
|
-
|
|
32
|
-
sig { params(idempotency_key: String).void }
|
|
33
|
-
attr_writer :idempotency_key
|
|
34
|
-
|
|
35
|
-
sig do
|
|
36
|
-
params(
|
|
37
|
-
brand: Sentdm::BrandData::OrHash,
|
|
38
|
-
test_mode: T::Boolean,
|
|
39
|
-
idempotency_key: String,
|
|
40
|
-
request_options: Sentdm::RequestOptions::OrHash
|
|
41
|
-
).returns(T.attached_class)
|
|
42
|
-
end
|
|
43
|
-
def self.new(
|
|
44
|
-
# Brand and KYC information
|
|
45
|
-
brand:,
|
|
46
|
-
# Test mode flag - when true, the operation is simulated without side effects
|
|
47
|
-
# Useful for testing integrations without actual execution
|
|
48
|
-
test_mode: nil,
|
|
49
|
-
idempotency_key: nil,
|
|
50
|
-
request_options: {}
|
|
51
|
-
)
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
sig do
|
|
55
|
-
override.returns(
|
|
56
|
-
{
|
|
57
|
-
brand: Sentdm::BrandData,
|
|
58
|
-
test_mode: T::Boolean,
|
|
59
|
-
idempotency_key: String,
|
|
60
|
-
request_options: Sentdm::RequestOptions
|
|
61
|
-
}
|
|
62
|
-
)
|
|
63
|
-
end
|
|
64
|
-
def to_hash
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class BrandData < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias { T.any(Sentdm::BrandData, Sentdm::Internal::AnyHash) }
|
|
8
|
-
|
|
9
|
-
# Brand relationship level with TCR (required for TCR)
|
|
10
|
-
sig { returns(Sentdm::TcrBrandRelationship::OrSymbol) }
|
|
11
|
-
attr_accessor :brand_relationship
|
|
12
|
-
|
|
13
|
-
# Primary contact name (required)
|
|
14
|
-
sig { returns(String) }
|
|
15
|
-
attr_accessor :contact_name
|
|
16
|
-
|
|
17
|
-
# Business vertical/industry category (required for TCR)
|
|
18
|
-
sig { returns(Sentdm::TcrVertical::OrSymbol) }
|
|
19
|
-
attr_accessor :vertical
|
|
20
|
-
|
|
21
|
-
# Brand name for KYC submission
|
|
22
|
-
sig { returns(T.nilable(String)) }
|
|
23
|
-
attr_accessor :brand_name
|
|
24
|
-
|
|
25
|
-
# Legal business name
|
|
26
|
-
sig { returns(T.nilable(String)) }
|
|
27
|
-
attr_accessor :business_legal_name
|
|
28
|
-
|
|
29
|
-
# Business/brand name
|
|
30
|
-
sig { returns(T.nilable(String)) }
|
|
31
|
-
attr_accessor :business_name
|
|
32
|
-
|
|
33
|
-
# Contact's role in the business
|
|
34
|
-
sig { returns(T.nilable(String)) }
|
|
35
|
-
attr_accessor :business_role
|
|
36
|
-
|
|
37
|
-
# Business website URL
|
|
38
|
-
sig { returns(T.nilable(String)) }
|
|
39
|
-
attr_accessor :business_url
|
|
40
|
-
|
|
41
|
-
# City
|
|
42
|
-
sig { returns(T.nilable(String)) }
|
|
43
|
-
attr_accessor :city
|
|
44
|
-
|
|
45
|
-
# Contact email address
|
|
46
|
-
sig { returns(T.nilable(String)) }
|
|
47
|
-
attr_accessor :contact_email
|
|
48
|
-
|
|
49
|
-
# Contact phone number in E.164 format
|
|
50
|
-
sig { returns(T.nilable(String)) }
|
|
51
|
-
attr_accessor :contact_phone
|
|
52
|
-
|
|
53
|
-
# Contact phone country code (e.g., "1" for US)
|
|
54
|
-
sig { returns(T.nilable(String)) }
|
|
55
|
-
attr_accessor :contact_phone_country_code
|
|
56
|
-
|
|
57
|
-
# Country code (e.g., US, CA)
|
|
58
|
-
sig { returns(T.nilable(String)) }
|
|
59
|
-
attr_accessor :country
|
|
60
|
-
|
|
61
|
-
# Country where the business is registered
|
|
62
|
-
sig { returns(T.nilable(String)) }
|
|
63
|
-
attr_accessor :country_of_registration
|
|
64
|
-
|
|
65
|
-
# List of destination countries for messaging
|
|
66
|
-
sig { returns(T.nilable(T::Array[Sentdm::DestinationCountry])) }
|
|
67
|
-
attr_accessor :destination_countries
|
|
68
|
-
|
|
69
|
-
# Business entity type
|
|
70
|
-
sig { returns(T.nilable(Sentdm::BrandData::EntityType::OrSymbol)) }
|
|
71
|
-
attr_accessor :entity_type
|
|
72
|
-
|
|
73
|
-
# Expected daily messaging volume
|
|
74
|
-
sig { returns(T.nilable(String)) }
|
|
75
|
-
attr_accessor :expected_messaging_volume
|
|
76
|
-
|
|
77
|
-
# Whether this is a TCR (Campaign Registry) application
|
|
78
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
79
|
-
attr_accessor :is_tcr_application
|
|
80
|
-
|
|
81
|
-
# Additional notes about the business or use case
|
|
82
|
-
sig { returns(T.nilable(String)) }
|
|
83
|
-
attr_accessor :notes
|
|
84
|
-
|
|
85
|
-
# Phone number prefix for messaging (e.g., "+1")
|
|
86
|
-
sig { returns(T.nilable(String)) }
|
|
87
|
-
attr_accessor :phone_number_prefix
|
|
88
|
-
|
|
89
|
-
# Postal/ZIP code
|
|
90
|
-
sig { returns(T.nilable(String)) }
|
|
91
|
-
attr_accessor :postal_code
|
|
92
|
-
|
|
93
|
-
# Primary messaging use case description
|
|
94
|
-
sig { returns(T.nilable(String)) }
|
|
95
|
-
attr_accessor :primary_use_case
|
|
96
|
-
|
|
97
|
-
# State/province code
|
|
98
|
-
sig { returns(T.nilable(String)) }
|
|
99
|
-
attr_accessor :state
|
|
100
|
-
|
|
101
|
-
# Street address
|
|
102
|
-
sig { returns(T.nilable(String)) }
|
|
103
|
-
attr_accessor :street
|
|
104
|
-
|
|
105
|
-
# Tax ID/EIN number
|
|
106
|
-
sig { returns(T.nilable(String)) }
|
|
107
|
-
attr_accessor :tax_id
|
|
108
|
-
|
|
109
|
-
# Type of tax ID (e.g., us_ein, ca_bn)
|
|
110
|
-
sig { returns(T.nilable(String)) }
|
|
111
|
-
attr_accessor :tax_id_type
|
|
112
|
-
|
|
113
|
-
# Brand and KYC data
|
|
114
|
-
sig do
|
|
115
|
-
params(
|
|
116
|
-
brand_relationship: Sentdm::TcrBrandRelationship::OrSymbol,
|
|
117
|
-
contact_name: String,
|
|
118
|
-
vertical: Sentdm::TcrVertical::OrSymbol,
|
|
119
|
-
brand_name: T.nilable(String),
|
|
120
|
-
business_legal_name: T.nilable(String),
|
|
121
|
-
business_name: T.nilable(String),
|
|
122
|
-
business_role: T.nilable(String),
|
|
123
|
-
business_url: T.nilable(String),
|
|
124
|
-
city: T.nilable(String),
|
|
125
|
-
contact_email: T.nilable(String),
|
|
126
|
-
contact_phone: T.nilable(String),
|
|
127
|
-
contact_phone_country_code: T.nilable(String),
|
|
128
|
-
country: T.nilable(String),
|
|
129
|
-
country_of_registration: T.nilable(String),
|
|
130
|
-
destination_countries:
|
|
131
|
-
T.nilable(T::Array[Sentdm::DestinationCountry::OrHash]),
|
|
132
|
-
entity_type: T.nilable(Sentdm::BrandData::EntityType::OrSymbol),
|
|
133
|
-
expected_messaging_volume: T.nilable(String),
|
|
134
|
-
is_tcr_application: T.nilable(T::Boolean),
|
|
135
|
-
notes: T.nilable(String),
|
|
136
|
-
phone_number_prefix: T.nilable(String),
|
|
137
|
-
postal_code: T.nilable(String),
|
|
138
|
-
primary_use_case: T.nilable(String),
|
|
139
|
-
state: T.nilable(String),
|
|
140
|
-
street: T.nilable(String),
|
|
141
|
-
tax_id: T.nilable(String),
|
|
142
|
-
tax_id_type: T.nilable(String)
|
|
143
|
-
).returns(T.attached_class)
|
|
144
|
-
end
|
|
145
|
-
def self.new(
|
|
146
|
-
# Brand relationship level with TCR (required for TCR)
|
|
147
|
-
brand_relationship:,
|
|
148
|
-
# Primary contact name (required)
|
|
149
|
-
contact_name:,
|
|
150
|
-
# Business vertical/industry category (required for TCR)
|
|
151
|
-
vertical:,
|
|
152
|
-
# Brand name for KYC submission
|
|
153
|
-
brand_name: nil,
|
|
154
|
-
# Legal business name
|
|
155
|
-
business_legal_name: nil,
|
|
156
|
-
# Business/brand name
|
|
157
|
-
business_name: nil,
|
|
158
|
-
# Contact's role in the business
|
|
159
|
-
business_role: nil,
|
|
160
|
-
# Business website URL
|
|
161
|
-
business_url: nil,
|
|
162
|
-
# City
|
|
163
|
-
city: nil,
|
|
164
|
-
# Contact email address
|
|
165
|
-
contact_email: nil,
|
|
166
|
-
# Contact phone number in E.164 format
|
|
167
|
-
contact_phone: nil,
|
|
168
|
-
# Contact phone country code (e.g., "1" for US)
|
|
169
|
-
contact_phone_country_code: nil,
|
|
170
|
-
# Country code (e.g., US, CA)
|
|
171
|
-
country: nil,
|
|
172
|
-
# Country where the business is registered
|
|
173
|
-
country_of_registration: nil,
|
|
174
|
-
# List of destination countries for messaging
|
|
175
|
-
destination_countries: nil,
|
|
176
|
-
# Business entity type
|
|
177
|
-
entity_type: nil,
|
|
178
|
-
# Expected daily messaging volume
|
|
179
|
-
expected_messaging_volume: nil,
|
|
180
|
-
# Whether this is a TCR (Campaign Registry) application
|
|
181
|
-
is_tcr_application: nil,
|
|
182
|
-
# Additional notes about the business or use case
|
|
183
|
-
notes: nil,
|
|
184
|
-
# Phone number prefix for messaging (e.g., "+1")
|
|
185
|
-
phone_number_prefix: nil,
|
|
186
|
-
# Postal/ZIP code
|
|
187
|
-
postal_code: nil,
|
|
188
|
-
# Primary messaging use case description
|
|
189
|
-
primary_use_case: nil,
|
|
190
|
-
# State/province code
|
|
191
|
-
state: nil,
|
|
192
|
-
# Street address
|
|
193
|
-
street: nil,
|
|
194
|
-
# Tax ID/EIN number
|
|
195
|
-
tax_id: nil,
|
|
196
|
-
# Type of tax ID (e.g., us_ein, ca_bn)
|
|
197
|
-
tax_id_type: nil
|
|
198
|
-
)
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
sig do
|
|
202
|
-
override.returns(
|
|
203
|
-
{
|
|
204
|
-
brand_relationship: Sentdm::TcrBrandRelationship::OrSymbol,
|
|
205
|
-
contact_name: String,
|
|
206
|
-
vertical: Sentdm::TcrVertical::OrSymbol,
|
|
207
|
-
brand_name: T.nilable(String),
|
|
208
|
-
business_legal_name: T.nilable(String),
|
|
209
|
-
business_name: T.nilable(String),
|
|
210
|
-
business_role: T.nilable(String),
|
|
211
|
-
business_url: T.nilable(String),
|
|
212
|
-
city: T.nilable(String),
|
|
213
|
-
contact_email: T.nilable(String),
|
|
214
|
-
contact_phone: T.nilable(String),
|
|
215
|
-
contact_phone_country_code: T.nilable(String),
|
|
216
|
-
country: T.nilable(String),
|
|
217
|
-
country_of_registration: T.nilable(String),
|
|
218
|
-
destination_countries:
|
|
219
|
-
T.nilable(T::Array[Sentdm::DestinationCountry]),
|
|
220
|
-
entity_type: T.nilable(Sentdm::BrandData::EntityType::OrSymbol),
|
|
221
|
-
expected_messaging_volume: T.nilable(String),
|
|
222
|
-
is_tcr_application: T.nilable(T::Boolean),
|
|
223
|
-
notes: T.nilable(String),
|
|
224
|
-
phone_number_prefix: T.nilable(String),
|
|
225
|
-
postal_code: T.nilable(String),
|
|
226
|
-
primary_use_case: T.nilable(String),
|
|
227
|
-
state: T.nilable(String),
|
|
228
|
-
street: T.nilable(String),
|
|
229
|
-
tax_id: T.nilable(String),
|
|
230
|
-
tax_id_type: T.nilable(String)
|
|
231
|
-
}
|
|
232
|
-
)
|
|
233
|
-
end
|
|
234
|
-
def to_hash
|
|
235
|
-
end
|
|
236
|
-
|
|
237
|
-
# Business entity type
|
|
238
|
-
module EntityType
|
|
239
|
-
extend Sentdm::Internal::Type::Enum
|
|
240
|
-
|
|
241
|
-
TaggedSymbol =
|
|
242
|
-
T.type_alias { T.all(Symbol, Sentdm::BrandData::EntityType) }
|
|
243
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
244
|
-
|
|
245
|
-
PRIVATE_PROFIT =
|
|
246
|
-
T.let(:PRIVATE_PROFIT, Sentdm::BrandData::EntityType::TaggedSymbol)
|
|
247
|
-
PUBLIC_PROFIT =
|
|
248
|
-
T.let(:PUBLIC_PROFIT, Sentdm::BrandData::EntityType::TaggedSymbol)
|
|
249
|
-
NON_PROFIT =
|
|
250
|
-
T.let(:NON_PROFIT, Sentdm::BrandData::EntityType::TaggedSymbol)
|
|
251
|
-
SOLE_PROPRIETOR =
|
|
252
|
-
T.let(:SOLE_PROPRIETOR, Sentdm::BrandData::EntityType::TaggedSymbol)
|
|
253
|
-
GOVERNMENT =
|
|
254
|
-
T.let(:GOVERNMENT, Sentdm::BrandData::EntityType::TaggedSymbol)
|
|
255
|
-
|
|
256
|
-
sig do
|
|
257
|
-
override.returns(
|
|
258
|
-
T::Array[Sentdm::BrandData::EntityType::TaggedSymbol]
|
|
259
|
-
)
|
|
260
|
-
end
|
|
261
|
-
def self.values
|
|
262
|
-
end
|
|
263
|
-
end
|
|
264
|
-
end
|
|
265
|
-
end
|
|
266
|
-
end
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class BrandDeleteParams < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
7
|
-
include Sentdm::Internal::Type::RequestParameters
|
|
8
|
-
|
|
9
|
-
OrHash =
|
|
10
|
-
T.type_alias do
|
|
11
|
-
T.any(Sentdm::BrandDeleteParams, Sentdm::Internal::AnyHash)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
sig { returns(String) }
|
|
15
|
-
attr_accessor :brand_id
|
|
16
|
-
|
|
17
|
-
# Request to delete a brand
|
|
18
|
-
sig { returns(Sentdm::BrandDeleteParams::Body) }
|
|
19
|
-
attr_reader :body
|
|
20
|
-
|
|
21
|
-
sig { params(body: Sentdm::BrandDeleteParams::Body::OrHash).void }
|
|
22
|
-
attr_writer :body
|
|
23
|
-
|
|
24
|
-
sig do
|
|
25
|
-
params(
|
|
26
|
-
brand_id: String,
|
|
27
|
-
body: Sentdm::BrandDeleteParams::Body::OrHash,
|
|
28
|
-
request_options: Sentdm::RequestOptions::OrHash
|
|
29
|
-
).returns(T.attached_class)
|
|
30
|
-
end
|
|
31
|
-
def self.new(
|
|
32
|
-
brand_id:,
|
|
33
|
-
# Request to delete a brand
|
|
34
|
-
body:,
|
|
35
|
-
request_options: {}
|
|
36
|
-
)
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
sig do
|
|
40
|
-
override.returns(
|
|
41
|
-
{
|
|
42
|
-
brand_id: String,
|
|
43
|
-
body: Sentdm::BrandDeleteParams::Body,
|
|
44
|
-
request_options: Sentdm::RequestOptions
|
|
45
|
-
}
|
|
46
|
-
)
|
|
47
|
-
end
|
|
48
|
-
def to_hash
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
class Body < Sentdm::Models::MutationRequest
|
|
52
|
-
OrHash =
|
|
53
|
-
T.type_alias do
|
|
54
|
-
T.any(Sentdm::BrandDeleteParams::Body, Sentdm::Internal::AnyHash)
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# Request to delete a brand
|
|
58
|
-
sig { returns(T.attached_class) }
|
|
59
|
-
def self.new
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
sig { override.returns({}) }
|
|
63
|
-
def to_hash
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|
|
68
|
-
end
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class BrandListParams < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
7
|
-
include Sentdm::Internal::Type::RequestParameters
|
|
8
|
-
|
|
9
|
-
OrHash =
|
|
10
|
-
T.type_alias do
|
|
11
|
-
T.any(Sentdm::BrandListParams, Sentdm::Internal::AnyHash)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
sig do
|
|
15
|
-
params(request_options: Sentdm::RequestOptions::OrHash).returns(
|
|
16
|
-
T.attached_class
|
|
17
|
-
)
|
|
18
|
-
end
|
|
19
|
-
def self.new(request_options: {})
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
sig { override.returns({ request_options: Sentdm::RequestOptions }) }
|
|
23
|
-
def to_hash
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class BrandListResponse < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Sentdm::Models::BrandListResponse, Sentdm::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# The response data (null if error)
|
|
12
|
-
sig { returns(T.nilable(T::Array[Sentdm::BrandWithKYC])) }
|
|
13
|
-
attr_accessor :data
|
|
14
|
-
|
|
15
|
-
# Error details (null if successful)
|
|
16
|
-
sig { returns(T.nilable(Sentdm::APIError)) }
|
|
17
|
-
attr_reader :error
|
|
18
|
-
|
|
19
|
-
sig { params(error: T.nilable(Sentdm::APIError::OrHash)).void }
|
|
20
|
-
attr_writer :error
|
|
21
|
-
|
|
22
|
-
# Metadata about the request and response
|
|
23
|
-
sig { returns(T.nilable(Sentdm::APIMeta)) }
|
|
24
|
-
attr_reader :meta
|
|
25
|
-
|
|
26
|
-
sig { params(meta: Sentdm::APIMeta::OrHash).void }
|
|
27
|
-
attr_writer :meta
|
|
28
|
-
|
|
29
|
-
# Indicates whether the request was successful
|
|
30
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
31
|
-
attr_reader :success
|
|
32
|
-
|
|
33
|
-
sig { params(success: T::Boolean).void }
|
|
34
|
-
attr_writer :success
|
|
35
|
-
|
|
36
|
-
# Standard API response envelope for all v3 endpoints
|
|
37
|
-
sig do
|
|
38
|
-
params(
|
|
39
|
-
data: T.nilable(T::Array[Sentdm::BrandWithKYC::OrHash]),
|
|
40
|
-
error: T.nilable(Sentdm::APIError::OrHash),
|
|
41
|
-
meta: Sentdm::APIMeta::OrHash,
|
|
42
|
-
success: T::Boolean
|
|
43
|
-
).returns(T.attached_class)
|
|
44
|
-
end
|
|
45
|
-
def self.new(
|
|
46
|
-
# The response data (null if error)
|
|
47
|
-
data: nil,
|
|
48
|
-
# Error details (null if successful)
|
|
49
|
-
error: nil,
|
|
50
|
-
# Metadata about the request and response
|
|
51
|
-
meta: nil,
|
|
52
|
-
# Indicates whether the request was successful
|
|
53
|
-
success: nil
|
|
54
|
-
)
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
sig do
|
|
58
|
-
override.returns(
|
|
59
|
-
{
|
|
60
|
-
data: T.nilable(T::Array[Sentdm::BrandWithKYC]),
|
|
61
|
-
error: T.nilable(Sentdm::APIError),
|
|
62
|
-
meta: Sentdm::APIMeta,
|
|
63
|
-
success: T::Boolean
|
|
64
|
-
}
|
|
65
|
-
)
|
|
66
|
-
end
|
|
67
|
-
def to_hash
|
|
68
|
-
end
|
|
69
|
-
end
|
|
70
|
-
end
|
|
71
|
-
end
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Sentdm
|
|
4
|
-
module Models
|
|
5
|
-
class BrandUpdateParams < Sentdm::Internal::Type::BaseModel
|
|
6
|
-
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
7
|
-
include Sentdm::Internal::Type::RequestParameters
|
|
8
|
-
|
|
9
|
-
OrHash =
|
|
10
|
-
T.type_alias do
|
|
11
|
-
T.any(Sentdm::BrandUpdateParams, Sentdm::Internal::AnyHash)
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
sig { returns(String) }
|
|
15
|
-
attr_accessor :brand_id
|
|
16
|
-
|
|
17
|
-
# Brand and KYC information
|
|
18
|
-
sig { returns(Sentdm::BrandData) }
|
|
19
|
-
attr_reader :brand
|
|
20
|
-
|
|
21
|
-
sig { params(brand: Sentdm::BrandData::OrHash).void }
|
|
22
|
-
attr_writer :brand
|
|
23
|
-
|
|
24
|
-
# Test mode flag - when true, the operation is simulated without side effects
|
|
25
|
-
# Useful for testing integrations without actual execution
|
|
26
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
27
|
-
attr_reader :test_mode
|
|
28
|
-
|
|
29
|
-
sig { params(test_mode: T::Boolean).void }
|
|
30
|
-
attr_writer :test_mode
|
|
31
|
-
|
|
32
|
-
sig { returns(T.nilable(String)) }
|
|
33
|
-
attr_reader :idempotency_key
|
|
34
|
-
|
|
35
|
-
sig { params(idempotency_key: String).void }
|
|
36
|
-
attr_writer :idempotency_key
|
|
37
|
-
|
|
38
|
-
sig do
|
|
39
|
-
params(
|
|
40
|
-
brand_id: String,
|
|
41
|
-
brand: Sentdm::BrandData::OrHash,
|
|
42
|
-
test_mode: T::Boolean,
|
|
43
|
-
idempotency_key: String,
|
|
44
|
-
request_options: Sentdm::RequestOptions::OrHash
|
|
45
|
-
).returns(T.attached_class)
|
|
46
|
-
end
|
|
47
|
-
def self.new(
|
|
48
|
-
brand_id:,
|
|
49
|
-
# Brand and KYC information
|
|
50
|
-
brand:,
|
|
51
|
-
# Test mode flag - when true, the operation is simulated without side effects
|
|
52
|
-
# Useful for testing integrations without actual execution
|
|
53
|
-
test_mode: nil,
|
|
54
|
-
idempotency_key: nil,
|
|
55
|
-
request_options: {}
|
|
56
|
-
)
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
sig do
|
|
60
|
-
override.returns(
|
|
61
|
-
{
|
|
62
|
-
brand_id: String,
|
|
63
|
-
brand: Sentdm::BrandData,
|
|
64
|
-
test_mode: T::Boolean,
|
|
65
|
-
idempotency_key: String,
|
|
66
|
-
request_options: Sentdm::RequestOptions
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
end
|
|
70
|
-
def to_hash
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
end
|