sentdm 0.4.0 → 0.7.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 +39 -0
- data/README.md +13 -9
- data/lib/sentdm/client.rb +5 -8
- data/lib/sentdm/internal/type/base_model.rb +5 -5
- 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 +38 -0
- data/lib/sentdm/models/contact_delete_params.rb +1 -1
- 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/{mutation_request.rb → mutation_request_base.rb} +2 -2
- data/lib/sentdm/models/number_lookup_params.rb +26 -0
- data/lib/sentdm/models/number_lookup_response.rb +104 -0
- data/lib/sentdm/models/payment_details.rb +44 -0
- data/lib/sentdm/models/{profile_complete_params.rb → profile_complete_setup_params.rb} +3 -3
- data/lib/sentdm/models/{profile_complete_response.rb → profile_complete_setup_response.rb} +1 -1
- data/lib/sentdm/models/profile_create_params.rb +9 -91
- data/lib/sentdm/models/profile_delete_params.rb +1 -1
- data/lib/sentdm/models/profile_detail.rb +369 -3
- data/lib/sentdm/models/profile_update_params.rb +9 -91
- data/lib/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rb → profiles/api_response_of_tcr_campaign_with_use_cases.rb} +6 -5
- data/lib/sentdm/models/profiles/campaign_create_params.rb +57 -0
- data/lib/sentdm/models/{brands → profiles}/campaign_data.rb +5 -5
- 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/profiles/campaign_list_response.rb +47 -0
- 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}/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rb +4 -4
- data/lib/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rb +15 -15
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rb +119 -0
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rb +77 -0
- data/lib/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rb +58 -0
- data/lib/sentdm/models/user_remove_params.rb +1 -1
- data/lib/sentdm/models/webhook_rotate_secret_params.rb +1 -1
- data/lib/sentdm/models.rb +23 -8
- data/lib/sentdm/resources/contacts.rb +6 -6
- data/lib/sentdm/resources/numbers.rb +44 -0
- data/lib/sentdm/resources/profiles/campaigns.rb +160 -0
- data/lib/sentdm/resources/profiles.rb +16 -11
- data/lib/sentdm/version.rb +1 -1
- data/lib/sentdm.rb +26 -16
- data/rbi/sentdm/client.rbi +4 -6
- data/rbi/sentdm/models/{api_response_contact.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 +104 -0
- data/rbi/sentdm/models/contact_delete_params.rbi +1 -1
- 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/{mutation_request.rbi → mutation_request_base.rbi} +2 -2
- data/rbi/sentdm/models/number_lookup_params.rbi +46 -0
- data/rbi/sentdm/models/number_lookup_response.rbi +166 -0
- data/rbi/sentdm/models/payment_details.rbi +59 -0
- data/rbi/sentdm/models/{profile_complete_params.rbi → profile_complete_setup_params.rbi} +2 -2
- data/rbi/sentdm/models/{profile_complete_response.rbi → profile_complete_setup_response.rbi} +1 -1
- data/rbi/sentdm/models/profile_create_params.rbi +12 -146
- data/rbi/sentdm/models/profile_delete_params.rbi +1 -1
- data/rbi/sentdm/models/profile_detail.rbi +562 -4
- data/rbi/sentdm/models/profile_update_params.rbi +12 -146
- 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/profiles/campaign_create_params.rbi +88 -0
- data/rbi/sentdm/models/{brands → profiles}/campaign_data.rbi +5 -5
- data/rbi/sentdm/models/profiles/campaign_delete_params.rbi +95 -0
- data/rbi/sentdm/models/profiles/campaign_list_params.rbi +51 -0
- data/rbi/sentdm/models/profiles/campaign_list_response.rbi +84 -0
- data/rbi/sentdm/models/profiles/campaign_update_params.rbi +94 -0
- data/rbi/sentdm/models/{brands → profiles}/messaging_use_case_us.rbi +20 -16
- data/rbi/sentdm/models/{brands → profiles}/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbi +6 -5
- data/rbi/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rbi +37 -29
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbi +183 -0
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbi +99 -0
- data/rbi/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbi +81 -0
- data/rbi/sentdm/models/user_remove_params.rbi +1 -1
- data/rbi/sentdm/models/webhook_rotate_secret_params.rbi +1 -1
- data/rbi/sentdm/models.rbi +23 -8
- data/rbi/sentdm/resources/contacts.rbi +3 -3
- data/rbi/sentdm/resources/numbers.rbi +32 -0
- data/rbi/sentdm/resources/profiles/campaigns.rbi +127 -0
- data/rbi/sentdm/resources/profiles.rbi +11 -11
- data/sig/sentdm/client.rbs +2 -4
- 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 +30 -0
- data/sig/sentdm/models/contact_delete_params.rbs +1 -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/{mutation_request.rbs → mutation_request_base.rbs} +2 -2
- data/sig/sentdm/models/number_lookup_params.rbs +30 -0
- data/sig/sentdm/models/number_lookup_response.rbs +100 -0
- data/sig/sentdm/models/payment_details.rbs +30 -0
- data/sig/sentdm/models/{profile_complete_params.rbs → profile_complete_setup_params.rbs} +2 -2
- data/sig/sentdm/models/profile_complete_setup_response.rbs +5 -0
- data/sig/sentdm/models/profile_create_params.rbs +12 -66
- data/sig/sentdm/models/profile_delete_params.rbs +1 -1
- data/sig/sentdm/models/profile_detail.rbs +289 -4
- data/sig/sentdm/models/profile_update_params.rbs +12 -66
- data/sig/sentdm/models/profiles/api_response_of_tcr_campaign_with_use_cases.rbs +41 -0
- data/sig/sentdm/models/profiles/campaign_create_params.rbs +54 -0
- data/sig/sentdm/models/{brands → profiles}/campaign_data.rbs +5 -5
- data/sig/sentdm/models/profiles/campaign_delete_params.rbs +53 -0
- data/sig/sentdm/models/profiles/campaign_list_params.rbs +32 -0
- data/sig/sentdm/models/{brands/api_response_tcr_campaign_with_use_cases.rbs → profiles/campaign_list_response.rbs} +7 -7
- data/sig/sentdm/models/profiles/campaign_update_params.rbs +59 -0
- data/sig/sentdm/models/{brands → profiles}/messaging_use_case_us.rbs +2 -2
- data/sig/sentdm/models/{brands → profiles}/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data.rbs +5 -5
- data/sig/sentdm/models/{brands → profiles}/tcr_campaign_with_use_cases.rbs +29 -29
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info.rbs +89 -0
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info.rbs +55 -0
- data/sig/sentdm/models/sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info.rbs +45 -0
- data/sig/sentdm/models/user_remove_params.rbs +1 -1
- data/sig/sentdm/models/webhook_rotate_secret_params.rbs +1 -1
- data/sig/sentdm/models.rbs +20 -8
- data/sig/sentdm/resources/contacts.rbs +3 -3
- data/sig/sentdm/resources/numbers.rbs +13 -0
- data/sig/sentdm/resources/profiles/campaigns.rbs +42 -0
- data/sig/sentdm/resources/profiles.rbs +9 -7
- metadata +79 -49
- data/lib/sentdm/models/brand_data.rb +0 -274
- data/lib/sentdm/models/brand_with_kyc.rb +0 -370
- data/lib/sentdm/models/brands/base_dto.rb +0 -32
- data/lib/sentdm/resources/brands/campaigns.rb +0 -16
- data/lib/sentdm/resources/brands.rb +0 -18
- data/lib/sentdm/resources/lookup.rb +0 -14
- data/rbi/sentdm/models/brand_data.rbi +0 -389
- data/rbi/sentdm/models/brand_with_kyc.rbi +0 -516
- data/rbi/sentdm/models/brands/base_dto.rbi +0 -53
- data/rbi/sentdm/resources/brands/campaigns.rbi +0 -14
- data/rbi/sentdm/resources/brands.rbi +0 -15
- data/rbi/sentdm/resources/lookup.rbi +0 -12
- data/sig/sentdm/models/brand_data.rbs +0 -210
- data/sig/sentdm/models/brand_with_kyc.rbs +0 -288
- data/sig/sentdm/models/brands/base_dto.rbs +0 -27
- data/sig/sentdm/models/profile_complete_response.rbs +0 -5
- data/sig/sentdm/resources/brands/campaigns.rbs +0 -9
- data/sig/sentdm/resources/brands.rbs +0 -9
- data/sig/sentdm/resources/lookup.rbs +0 -7
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
module
|
|
4
|
-
type
|
|
3
|
+
module Profiles
|
|
4
|
+
type campaign_list_response =
|
|
5
5
|
{
|
|
6
|
-
data: Sentdm::
|
|
6
|
+
data: ::Array[Sentdm::Profiles::TcrCampaignWithUseCases]?,
|
|
7
7
|
error: Sentdm::APIError?,
|
|
8
8
|
meta: Sentdm::APIMeta,
|
|
9
9
|
success: bool
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
class
|
|
13
|
-
attr_accessor data: Sentdm::
|
|
12
|
+
class CampaignListResponse < Sentdm::Internal::Type::BaseModel
|
|
13
|
+
attr_accessor data: ::Array[Sentdm::Profiles::TcrCampaignWithUseCases]?
|
|
14
14
|
|
|
15
15
|
attr_accessor error: Sentdm::APIError?
|
|
16
16
|
|
|
@@ -23,14 +23,14 @@ module Sentdm
|
|
|
23
23
|
def success=: (bool) -> bool
|
|
24
24
|
|
|
25
25
|
def initialize: (
|
|
26
|
-
?data: Sentdm::
|
|
26
|
+
?data: ::Array[Sentdm::Profiles::TcrCampaignWithUseCases]?,
|
|
27
27
|
?error: Sentdm::APIError?,
|
|
28
28
|
?meta: Sentdm::APIMeta,
|
|
29
29
|
?success: bool
|
|
30
30
|
) -> void
|
|
31
31
|
|
|
32
32
|
def to_hash: -> {
|
|
33
|
-
data: Sentdm::
|
|
33
|
+
data: ::Array[Sentdm::Profiles::TcrCampaignWithUseCases]?,
|
|
34
34
|
error: Sentdm::APIError?,
|
|
35
35
|
meta: Sentdm::APIMeta,
|
|
36
36
|
success: bool
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
module Profiles
|
|
4
|
+
type campaign_update_params =
|
|
5
|
+
{
|
|
6
|
+
profile_id: String,
|
|
7
|
+
campaign_id: String,
|
|
8
|
+
campaign: Sentdm::Profiles::CampaignData,
|
|
9
|
+
sandbox: bool,
|
|
10
|
+
idempotency_key: String,
|
|
11
|
+
x_profile_id: String
|
|
12
|
+
}
|
|
13
|
+
& Sentdm::Internal::Type::request_parameters
|
|
14
|
+
|
|
15
|
+
class CampaignUpdateParams < Sentdm::Internal::Type::BaseModel
|
|
16
|
+
extend Sentdm::Internal::Type::RequestParameters::Converter
|
|
17
|
+
include Sentdm::Internal::Type::RequestParameters
|
|
18
|
+
|
|
19
|
+
attr_accessor profile_id: String
|
|
20
|
+
|
|
21
|
+
attr_accessor campaign_id: String
|
|
22
|
+
|
|
23
|
+
attr_accessor campaign: Sentdm::Profiles::CampaignData
|
|
24
|
+
|
|
25
|
+
attr_reader sandbox: bool?
|
|
26
|
+
|
|
27
|
+
def sandbox=: (bool) -> bool
|
|
28
|
+
|
|
29
|
+
attr_reader idempotency_key: String?
|
|
30
|
+
|
|
31
|
+
def idempotency_key=: (String) -> String
|
|
32
|
+
|
|
33
|
+
attr_reader x_profile_id: String?
|
|
34
|
+
|
|
35
|
+
def x_profile_id=: (String) -> String
|
|
36
|
+
|
|
37
|
+
def initialize: (
|
|
38
|
+
profile_id: String,
|
|
39
|
+
campaign_id: String,
|
|
40
|
+
campaign: Sentdm::Profiles::CampaignData,
|
|
41
|
+
?sandbox: bool,
|
|
42
|
+
?idempotency_key: String,
|
|
43
|
+
?x_profile_id: String,
|
|
44
|
+
?request_options: Sentdm::request_opts
|
|
45
|
+
) -> void
|
|
46
|
+
|
|
47
|
+
def to_hash: -> {
|
|
48
|
+
profile_id: String,
|
|
49
|
+
campaign_id: String,
|
|
50
|
+
campaign: Sentdm::Profiles::CampaignData,
|
|
51
|
+
sandbox: bool,
|
|
52
|
+
idempotency_key: String,
|
|
53
|
+
x_profile_id: String,
|
|
54
|
+
request_options: Sentdm::RequestOptions
|
|
55
|
+
}
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
module
|
|
3
|
+
module Profiles
|
|
4
4
|
type messaging_use_case_us =
|
|
5
5
|
:MARKETING
|
|
6
6
|
| :ACCOUNT_NOTIFICATION
|
|
@@ -33,7 +33,7 @@ module Sentdm
|
|
|
33
33
|
PUBLIC_SERVICE_ANNOUNCEMENT: :PUBLIC_SERVICE_ANNOUNCEMENT
|
|
34
34
|
LOW_VOLUME: :LOW_VOLUME
|
|
35
35
|
|
|
36
|
-
def self?.values: -> ::Array[Sentdm::Models::
|
|
36
|
+
def self?.values: -> ::Array[Sentdm::Models::Profiles::messaging_use_case_us]
|
|
37
37
|
end
|
|
38
38
|
end
|
|
39
39
|
end
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
module
|
|
3
|
+
module Profiles
|
|
4
4
|
type sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_campaigns_campaign_use_case_data =
|
|
5
5
|
{
|
|
6
|
-
messaging_use_case_us: Sentdm::Models::
|
|
6
|
+
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
7
7
|
sample_messages: ::Array[String]
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsCampaignsCampaignUseCaseData < Sentdm::Internal::Type::BaseModel
|
|
11
|
-
attr_accessor messaging_use_case_us: Sentdm::Models::
|
|
11
|
+
attr_accessor messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us
|
|
12
12
|
|
|
13
13
|
attr_accessor sample_messages: ::Array[String]
|
|
14
14
|
|
|
15
15
|
def initialize: (
|
|
16
|
-
messaging_use_case_us: Sentdm::Models::
|
|
16
|
+
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
17
17
|
sample_messages: ::Array[String]
|
|
18
18
|
) -> void
|
|
19
19
|
|
|
20
20
|
def to_hash: -> {
|
|
21
|
-
messaging_use_case_us: Sentdm::Models::
|
|
21
|
+
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
22
22
|
sample_messages: ::Array[String]
|
|
23
23
|
}
|
|
24
24
|
end
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module Sentdm
|
|
2
2
|
module Models
|
|
3
|
-
module
|
|
3
|
+
module Profiles
|
|
4
4
|
type tcr_campaign_with_use_cases =
|
|
5
5
|
{
|
|
6
6
|
billed_date: Time?,
|
|
@@ -20,8 +20,8 @@ module Sentdm
|
|
|
20
20
|
optout_message: String?,
|
|
21
21
|
privacy_policy_link: String?,
|
|
22
22
|
reseller_id: String?,
|
|
23
|
-
sharing_status: Sentdm::Models::
|
|
24
|
-
status: Sentdm::Models::
|
|
23
|
+
sharing_status: Sentdm::Models::Profiles::TcrCampaignWithUseCases::sharing_status?,
|
|
24
|
+
status: Sentdm::Models::Profiles::TcrCampaignWithUseCases::status?,
|
|
25
25
|
submitted_at: Time?,
|
|
26
26
|
submitted_to_tcr: bool,
|
|
27
27
|
tcr_campaign_id: String?,
|
|
@@ -30,10 +30,10 @@ module Sentdm
|
|
|
30
30
|
terms_and_conditions_link: String?,
|
|
31
31
|
type: String,
|
|
32
32
|
upstream_cnp_id: String?,
|
|
33
|
-
use_cases: ::Array[Sentdm::
|
|
33
|
+
use_cases: ::Array[Sentdm::Profiles::TcrCampaignWithUseCases::UseCase]
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
class TcrCampaignWithUseCases < Sentdm::Models::
|
|
36
|
+
class TcrCampaignWithUseCases < Sentdm::Models::BaseDto
|
|
37
37
|
def billed_date: -> Time?
|
|
38
38
|
|
|
39
39
|
def billed_date=: (Time? _) -> Time?
|
|
@@ -102,17 +102,17 @@ module Sentdm
|
|
|
102
102
|
|
|
103
103
|
def reseller_id=: (String? _) -> String?
|
|
104
104
|
|
|
105
|
-
def sharing_status: -> Sentdm::Models::
|
|
105
|
+
def sharing_status: -> Sentdm::Models::Profiles::TcrCampaignWithUseCases::sharing_status?
|
|
106
106
|
|
|
107
107
|
def sharing_status=: (
|
|
108
|
-
Sentdm::Models::
|
|
109
|
-
) -> Sentdm::Models::
|
|
108
|
+
Sentdm::Models::Profiles::TcrCampaignWithUseCases::sharing_status? _
|
|
109
|
+
) -> Sentdm::Models::Profiles::TcrCampaignWithUseCases::sharing_status?
|
|
110
110
|
|
|
111
|
-
def status: -> Sentdm::Models::
|
|
111
|
+
def status: -> Sentdm::Models::Profiles::TcrCampaignWithUseCases::status?
|
|
112
112
|
|
|
113
113
|
def status=: (
|
|
114
|
-
Sentdm::Models::
|
|
115
|
-
) -> Sentdm::Models::
|
|
114
|
+
Sentdm::Models::Profiles::TcrCampaignWithUseCases::status? _
|
|
115
|
+
) -> Sentdm::Models::Profiles::TcrCampaignWithUseCases::status?
|
|
116
116
|
|
|
117
117
|
def submitted_at: -> Time?
|
|
118
118
|
|
|
@@ -146,11 +146,11 @@ module Sentdm
|
|
|
146
146
|
|
|
147
147
|
def upstream_cnp_id=: (String? _) -> String?
|
|
148
148
|
|
|
149
|
-
def use_cases: -> ::Array[Sentdm::
|
|
149
|
+
def use_cases: -> ::Array[Sentdm::Profiles::TcrCampaignWithUseCases::UseCase]?
|
|
150
150
|
|
|
151
151
|
def use_cases=: (
|
|
152
|
-
::Array[Sentdm::
|
|
153
|
-
) -> ::Array[Sentdm::
|
|
152
|
+
::Array[Sentdm::Profiles::TcrCampaignWithUseCases::UseCase] _
|
|
153
|
+
) -> ::Array[Sentdm::Profiles::TcrCampaignWithUseCases::UseCase]
|
|
154
154
|
|
|
155
155
|
def initialize: (
|
|
156
156
|
?billed_date: Time?,
|
|
@@ -170,8 +170,8 @@ module Sentdm
|
|
|
170
170
|
?optout_message: String?,
|
|
171
171
|
?privacy_policy_link: String?,
|
|
172
172
|
?reseller_id: String?,
|
|
173
|
-
?sharing_status: Sentdm::Models::
|
|
174
|
-
?status: Sentdm::Models::
|
|
173
|
+
?sharing_status: Sentdm::Models::Profiles::TcrCampaignWithUseCases::sharing_status?,
|
|
174
|
+
?status: Sentdm::Models::Profiles::TcrCampaignWithUseCases::status?,
|
|
175
175
|
?submitted_at: Time?,
|
|
176
176
|
?submitted_to_tcr: bool,
|
|
177
177
|
?tcr_campaign_id: String?,
|
|
@@ -180,7 +180,7 @@ module Sentdm
|
|
|
180
180
|
?terms_and_conditions_link: String?,
|
|
181
181
|
?type: String,
|
|
182
182
|
?upstream_cnp_id: String?,
|
|
183
|
-
?use_cases: ::Array[Sentdm::
|
|
183
|
+
?use_cases: ::Array[Sentdm::Profiles::TcrCampaignWithUseCases::UseCase]
|
|
184
184
|
) -> void
|
|
185
185
|
|
|
186
186
|
def to_hash: -> {
|
|
@@ -201,8 +201,8 @@ module Sentdm
|
|
|
201
201
|
optout_message: String?,
|
|
202
202
|
privacy_policy_link: String?,
|
|
203
203
|
reseller_id: String?,
|
|
204
|
-
sharing_status: Sentdm::Models::
|
|
205
|
-
status: Sentdm::Models::
|
|
204
|
+
sharing_status: Sentdm::Models::Profiles::TcrCampaignWithUseCases::sharing_status?,
|
|
205
|
+
status: Sentdm::Models::Profiles::TcrCampaignWithUseCases::status?,
|
|
206
206
|
submitted_at: Time?,
|
|
207
207
|
submitted_to_tcr: bool,
|
|
208
208
|
tcr_campaign_id: String?,
|
|
@@ -211,7 +211,7 @@ module Sentdm
|
|
|
211
211
|
terms_and_conditions_link: String?,
|
|
212
212
|
type: String,
|
|
213
213
|
upstream_cnp_id: String?,
|
|
214
|
-
use_cases: ::Array[Sentdm::
|
|
214
|
+
use_cases: ::Array[Sentdm::Profiles::TcrCampaignWithUseCases::UseCase]
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
type sharing_status = :PENDING | :ACCEPTED | :DECLINED
|
|
@@ -223,7 +223,7 @@ module Sentdm
|
|
|
223
223
|
ACCEPTED: :ACCEPTED
|
|
224
224
|
DECLINED: :DECLINED
|
|
225
225
|
|
|
226
|
-
def self?.values: -> ::Array[Sentdm::Models::
|
|
226
|
+
def self?.values: -> ::Array[Sentdm::Models::Profiles::TcrCampaignWithUseCases::sharing_status]
|
|
227
227
|
end
|
|
228
228
|
|
|
229
229
|
type status = :SENT_CREATED | :ACTIVE | :EXPIRED
|
|
@@ -235,18 +235,18 @@ module Sentdm
|
|
|
235
235
|
ACTIVE: :ACTIVE
|
|
236
236
|
EXPIRED: :EXPIRED
|
|
237
237
|
|
|
238
|
-
def self?.values: -> ::Array[Sentdm::Models::
|
|
238
|
+
def self?.values: -> ::Array[Sentdm::Models::Profiles::TcrCampaignWithUseCases::status]
|
|
239
239
|
end
|
|
240
240
|
|
|
241
241
|
type use_case =
|
|
242
242
|
{
|
|
243
243
|
campaign_id: String,
|
|
244
244
|
customer_id: String,
|
|
245
|
-
messaging_use_case_us: Sentdm::Models::
|
|
245
|
+
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
246
246
|
sample_messages: ::Array[String]
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
class UseCase < Sentdm::Models::
|
|
249
|
+
class UseCase < Sentdm::Models::BaseDto
|
|
250
250
|
def campaign_id: -> String?
|
|
251
251
|
|
|
252
252
|
def campaign_id=: (String _) -> String
|
|
@@ -255,11 +255,11 @@ module Sentdm
|
|
|
255
255
|
|
|
256
256
|
def customer_id=: (String _) -> String
|
|
257
257
|
|
|
258
|
-
def messaging_use_case_us: -> Sentdm::Models::
|
|
258
|
+
def messaging_use_case_us: -> Sentdm::Models::Profiles::messaging_use_case_us?
|
|
259
259
|
|
|
260
260
|
def messaging_use_case_us=: (
|
|
261
|
-
Sentdm::Models::
|
|
262
|
-
) -> Sentdm::Models::
|
|
261
|
+
Sentdm::Models::Profiles::messaging_use_case_us _
|
|
262
|
+
) -> Sentdm::Models::Profiles::messaging_use_case_us
|
|
263
263
|
|
|
264
264
|
def sample_messages: -> ::Array[String]?
|
|
265
265
|
|
|
@@ -268,14 +268,14 @@ module Sentdm
|
|
|
268
268
|
def initialize: (
|
|
269
269
|
?campaign_id: String,
|
|
270
270
|
?customer_id: String,
|
|
271
|
-
?messaging_use_case_us: Sentdm::Models::
|
|
271
|
+
?messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
272
272
|
?sample_messages: ::Array[String]
|
|
273
273
|
) -> void
|
|
274
274
|
|
|
275
275
|
def to_hash: -> {
|
|
276
276
|
campaign_id: String,
|
|
277
277
|
customer_id: String,
|
|
278
|
-
messaging_use_case_us: Sentdm::Models::
|
|
278
|
+
messaging_use_case_us: Sentdm::Models::Profiles::messaging_use_case_us,
|
|
279
279
|
sample_messages: ::Array[String]
|
|
280
280
|
}
|
|
281
281
|
end
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_business_info =
|
|
4
|
+
{
|
|
5
|
+
city: String?,
|
|
6
|
+
country: String?,
|
|
7
|
+
country_of_registration: String?,
|
|
8
|
+
entity_type: Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::entity_type?,
|
|
9
|
+
legal_name: String?,
|
|
10
|
+
postal_code: String?,
|
|
11
|
+
state: String?,
|
|
12
|
+
street: String?,
|
|
13
|
+
tax_id: String?,
|
|
14
|
+
tax_id_type: String?,
|
|
15
|
+
url: String?
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo < Sentdm::Internal::Type::BaseModel
|
|
19
|
+
attr_accessor city: String?
|
|
20
|
+
|
|
21
|
+
attr_accessor country: String?
|
|
22
|
+
|
|
23
|
+
attr_accessor country_of_registration: String?
|
|
24
|
+
|
|
25
|
+
attr_accessor entity_type: Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::entity_type?
|
|
26
|
+
|
|
27
|
+
attr_accessor legal_name: String?
|
|
28
|
+
|
|
29
|
+
attr_accessor postal_code: String?
|
|
30
|
+
|
|
31
|
+
attr_accessor state: String?
|
|
32
|
+
|
|
33
|
+
attr_accessor street: String?
|
|
34
|
+
|
|
35
|
+
attr_accessor tax_id: String?
|
|
36
|
+
|
|
37
|
+
attr_accessor tax_id_type: String?
|
|
38
|
+
|
|
39
|
+
attr_accessor url: String?
|
|
40
|
+
|
|
41
|
+
def initialize: (
|
|
42
|
+
?city: String?,
|
|
43
|
+
?country: String?,
|
|
44
|
+
?country_of_registration: String?,
|
|
45
|
+
?entity_type: Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::entity_type?,
|
|
46
|
+
?legal_name: String?,
|
|
47
|
+
?postal_code: String?,
|
|
48
|
+
?state: String?,
|
|
49
|
+
?street: String?,
|
|
50
|
+
?tax_id: String?,
|
|
51
|
+
?tax_id_type: String?,
|
|
52
|
+
?url: String?
|
|
53
|
+
) -> void
|
|
54
|
+
|
|
55
|
+
def to_hash: -> {
|
|
56
|
+
city: String?,
|
|
57
|
+
country: String?,
|
|
58
|
+
country_of_registration: String?,
|
|
59
|
+
entity_type: Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::entity_type?,
|
|
60
|
+
legal_name: String?,
|
|
61
|
+
postal_code: String?,
|
|
62
|
+
state: String?,
|
|
63
|
+
street: String?,
|
|
64
|
+
tax_id: String?,
|
|
65
|
+
tax_id_type: String?,
|
|
66
|
+
url: String?
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
type entity_type =
|
|
70
|
+
:PRIVATE_PROFIT
|
|
71
|
+
| :PUBLIC_PROFIT
|
|
72
|
+
| :NON_PROFIT
|
|
73
|
+
| :SOLE_PROPRIETOR
|
|
74
|
+
| :GOVERNMENT
|
|
75
|
+
|
|
76
|
+
module EntityType
|
|
77
|
+
extend Sentdm::Internal::Type::Enum
|
|
78
|
+
|
|
79
|
+
PRIVATE_PROFIT: :PRIVATE_PROFIT
|
|
80
|
+
PUBLIC_PROFIT: :PUBLIC_PROFIT
|
|
81
|
+
NON_PROFIT: :NON_PROFIT
|
|
82
|
+
SOLE_PROPRIETOR: :SOLE_PROPRIETOR
|
|
83
|
+
GOVERNMENT: :GOVERNMENT
|
|
84
|
+
|
|
85
|
+
def self?.values: -> ::Array[Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo::entity_type]
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_compliance_info =
|
|
4
|
+
{
|
|
5
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
6
|
+
vertical: Sentdm::Models::tcr_vertical,
|
|
7
|
+
destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
8
|
+
expected_messaging_volume: String?,
|
|
9
|
+
is_tcr_application: bool?,
|
|
10
|
+
notes: String?,
|
|
11
|
+
phone_number_prefix: String?,
|
|
12
|
+
primary_use_case: String?
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo < Sentdm::Internal::Type::BaseModel
|
|
16
|
+
attr_accessor brand_relationship: Sentdm::Models::tcr_brand_relationship
|
|
17
|
+
|
|
18
|
+
attr_accessor vertical: Sentdm::Models::tcr_vertical
|
|
19
|
+
|
|
20
|
+
attr_accessor destination_countries: ::Array[Sentdm::DestinationCountry]?
|
|
21
|
+
|
|
22
|
+
attr_accessor expected_messaging_volume: String?
|
|
23
|
+
|
|
24
|
+
attr_accessor is_tcr_application: bool?
|
|
25
|
+
|
|
26
|
+
attr_accessor notes: String?
|
|
27
|
+
|
|
28
|
+
attr_accessor phone_number_prefix: String?
|
|
29
|
+
|
|
30
|
+
attr_accessor primary_use_case: String?
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
34
|
+
vertical: Sentdm::Models::tcr_vertical,
|
|
35
|
+
?destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
36
|
+
?expected_messaging_volume: String?,
|
|
37
|
+
?is_tcr_application: bool?,
|
|
38
|
+
?notes: String?,
|
|
39
|
+
?phone_number_prefix: String?,
|
|
40
|
+
?primary_use_case: String?
|
|
41
|
+
) -> void
|
|
42
|
+
|
|
43
|
+
def to_hash: -> {
|
|
44
|
+
brand_relationship: Sentdm::Models::tcr_brand_relationship,
|
|
45
|
+
vertical: Sentdm::Models::tcr_vertical,
|
|
46
|
+
destination_countries: ::Array[Sentdm::DestinationCountry]?,
|
|
47
|
+
expected_messaging_volume: String?,
|
|
48
|
+
is_tcr_application: bool?,
|
|
49
|
+
notes: String?,
|
|
50
|
+
phone_number_prefix: String?,
|
|
51
|
+
primary_use_case: String?
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Models
|
|
3
|
+
type sent_dm_services_endpoints_customer_ap_iv3_contracts_requests_brands_brand_contact_info =
|
|
4
|
+
{
|
|
5
|
+
name: String,
|
|
6
|
+
business_name: String?,
|
|
7
|
+
email: String?,
|
|
8
|
+
phone: String?,
|
|
9
|
+
phone_country_code: String?,
|
|
10
|
+
role: String?
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo < Sentdm::Internal::Type::BaseModel
|
|
14
|
+
attr_accessor name: String
|
|
15
|
+
|
|
16
|
+
attr_accessor business_name: String?
|
|
17
|
+
|
|
18
|
+
attr_accessor email: String?
|
|
19
|
+
|
|
20
|
+
attr_accessor phone: String?
|
|
21
|
+
|
|
22
|
+
attr_accessor phone_country_code: String?
|
|
23
|
+
|
|
24
|
+
attr_accessor role: String?
|
|
25
|
+
|
|
26
|
+
def initialize: (
|
|
27
|
+
name: String,
|
|
28
|
+
?business_name: String?,
|
|
29
|
+
?email: String?,
|
|
30
|
+
?phone: String?,
|
|
31
|
+
?phone_country_code: String?,
|
|
32
|
+
?role: String?
|
|
33
|
+
) -> void
|
|
34
|
+
|
|
35
|
+
def to_hash: -> {
|
|
36
|
+
name: String,
|
|
37
|
+
business_name: String?,
|
|
38
|
+
email: String?,
|
|
39
|
+
phone: String?,
|
|
40
|
+
phone_country_code: String?,
|
|
41
|
+
role: String?
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
data/sig/sentdm/models.rbs
CHANGED
|
@@ -3,7 +3,7 @@ module Sentdm
|
|
|
3
3
|
|
|
4
4
|
class APIMeta = Sentdm::Models::APIMeta
|
|
5
5
|
|
|
6
|
-
class
|
|
6
|
+
class APIResponseOfContact = Sentdm::Models::APIResponseOfContact
|
|
7
7
|
|
|
8
8
|
class APIResponseOfProfileDetail = Sentdm::Models::APIResponseOfProfileDetail
|
|
9
9
|
|
|
@@ -13,13 +13,11 @@ module Sentdm
|
|
|
13
13
|
|
|
14
14
|
class APIResponseWebhook = Sentdm::Models::APIResponseWebhook
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class BaseDto = Sentdm::Models::BaseDto
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
class BillingContactInfo = Sentdm::Models::BillingContactInfo
|
|
19
19
|
|
|
20
|
-
class
|
|
21
|
-
|
|
22
|
-
class Contact = Sentdm::Models::Contact
|
|
20
|
+
class BrandsBrandData = Sentdm::Models::BrandsBrandData
|
|
23
21
|
|
|
24
22
|
class ContactCreateParams = Sentdm::Models::ContactCreateParams
|
|
25
23
|
|
|
@@ -27,6 +25,8 @@ module Sentdm
|
|
|
27
25
|
|
|
28
26
|
class ContactListParams = Sentdm::Models::ContactListParams
|
|
29
27
|
|
|
28
|
+
class ContactResponse = Sentdm::Models::ContactResponse
|
|
29
|
+
|
|
30
30
|
class ContactRetrieveParams = Sentdm::Models::ContactRetrieveParams
|
|
31
31
|
|
|
32
32
|
class ContactUpdateParams = Sentdm::Models::ContactUpdateParams
|
|
@@ -41,11 +41,15 @@ module Sentdm
|
|
|
41
41
|
|
|
42
42
|
class MessageSendParams = Sentdm::Models::MessageSendParams
|
|
43
43
|
|
|
44
|
-
class
|
|
44
|
+
class MutationRequestBase = Sentdm::Models::MutationRequestBase
|
|
45
|
+
|
|
46
|
+
class NumberLookupParams = Sentdm::Models::NumberLookupParams
|
|
45
47
|
|
|
46
48
|
class PaginationMeta = Sentdm::Models::PaginationMeta
|
|
47
49
|
|
|
48
|
-
class
|
|
50
|
+
class PaymentDetails = Sentdm::Models::PaymentDetails
|
|
51
|
+
|
|
52
|
+
class ProfileCompleteSetupParams = Sentdm::Models::ProfileCompleteSetupParams
|
|
49
53
|
|
|
50
54
|
class ProfileCreateParams = Sentdm::Models::ProfileCreateParams
|
|
51
55
|
|
|
@@ -57,6 +61,8 @@ module Sentdm
|
|
|
57
61
|
|
|
58
62
|
class ProfileRetrieveParams = Sentdm::Models::ProfileRetrieveParams
|
|
59
63
|
|
|
64
|
+
module Profiles = Sentdm::Models::Profiles
|
|
65
|
+
|
|
60
66
|
class ProfileSettings = Sentdm::Models::ProfileSettings
|
|
61
67
|
|
|
62
68
|
class ProfileUpdateParams = Sentdm::Models::ProfileUpdateParams
|
|
@@ -73,6 +79,12 @@ module Sentdm
|
|
|
73
79
|
|
|
74
80
|
class SentDmServicesCommonContractsPocOsTemplateHeader = Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader
|
|
75
81
|
|
|
82
|
+
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo = Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandBusinessInfo
|
|
83
|
+
|
|
84
|
+
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo = Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandComplianceInfo
|
|
85
|
+
|
|
86
|
+
class SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo = Sentdm::Models::SentDmServicesEndpointsCustomerApIv3ContractsRequestsBrandsBrandContactInfo
|
|
87
|
+
|
|
76
88
|
module TcrBrandRelationship = Sentdm::Models::TcrBrandRelationship
|
|
77
89
|
|
|
78
90
|
module TcrVertical = Sentdm::Models::TcrVertical
|
|
@@ -7,13 +7,13 @@ module Sentdm
|
|
|
7
7
|
?idempotency_key: String,
|
|
8
8
|
?x_profile_id: String,
|
|
9
9
|
?request_options: Sentdm::request_opts
|
|
10
|
-
) -> Sentdm::
|
|
10
|
+
) -> Sentdm::APIResponseOfContact
|
|
11
11
|
|
|
12
12
|
def retrieve: (
|
|
13
13
|
String id,
|
|
14
14
|
?x_profile_id: String,
|
|
15
15
|
?request_options: Sentdm::request_opts
|
|
16
|
-
) -> Sentdm::
|
|
16
|
+
) -> Sentdm::APIResponseOfContact
|
|
17
17
|
|
|
18
18
|
def update: (
|
|
19
19
|
String id,
|
|
@@ -23,7 +23,7 @@ module Sentdm
|
|
|
23
23
|
?idempotency_key: String,
|
|
24
24
|
?x_profile_id: String,
|
|
25
25
|
?request_options: Sentdm::request_opts
|
|
26
|
-
) -> Sentdm::
|
|
26
|
+
) -> Sentdm::APIResponseOfContact
|
|
27
27
|
|
|
28
28
|
def list: (
|
|
29
29
|
page: Integer,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
module Sentdm
|
|
2
|
+
module Resources
|
|
3
|
+
class Numbers
|
|
4
|
+
def lookup: (
|
|
5
|
+
String phone_number,
|
|
6
|
+
?x_profile_id: String,
|
|
7
|
+
?request_options: Sentdm::request_opts
|
|
8
|
+
) -> Sentdm::Models::NumberLookupResponse
|
|
9
|
+
|
|
10
|
+
def initialize: (client: Sentdm::Client) -> void
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|