sentdm 0.12.1 → 0.13.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.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rb +13 -13
  5. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rb +40 -40
  6. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rb +3 -3
  7. data/lib/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rb +3 -3
  8. data/lib/sentdm/models/template_body_content.rb +3 -3
  9. data/lib/sentdm/models/template_variable.rb +36 -36
  10. data/lib/sentdm/version.rb +1 -1
  11. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbi +17 -24
  12. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbi +45 -45
  13. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbi +3 -6
  14. data/rbi/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbi +3 -6
  15. data/rbi/sentdm/models/template_body_content.rbi +3 -6
  16. data/rbi/sentdm/models/template_variable.rbi +41 -47
  17. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button.rbs +11 -17
  18. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_button_props.rbs +39 -39
  19. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_footer.rbs +2 -4
  20. data/sig/sentdm/models/sent_dm_services_common_contracts_poc_os_template_header.rbs +2 -4
  21. data/sig/sentdm/models/template_body_content.rbs +2 -4
  22. data/sig/sentdm/models/template_variable.rbs +35 -43
  23. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d1d4d3ef9991b4a66644197f2547ea4f508e017a55e096283f110332fbdb976
4
- data.tar.gz: 41870ccb3080ae84039f3dcbc6818a2940b94fe573066c112704196277623af7
3
+ metadata.gz: 43bbab886800ced529d1f8335feabe2d569df50d2890a24fd5aeafde87613e5f
4
+ data.tar.gz: a4067d5bd234fd8992f7b366d77b9e4f3b0eb8f00c5e1c37b5f5ddcbddbffba0
5
5
  SHA512:
6
- metadata.gz: 274bc0e1615cf24c291712c081b75d44601c8d323d795ff574aa31f49f7a770ddb989601828d9c71b08725719d75a52cbb45c13d14b39372355d9ba7f9e84326
7
- data.tar.gz: f4639f9229cf6fd6b8360bf7e662237ad1da7a88a4dc7410389085a7738a6890296336bd7cb2cea068452a4a661413ae0dd83fa89955011a181e1d7fb9fe8260
6
+ metadata.gz: 8d65ef660d6e5aab3544f6cdfae66f61ef5de56b1510cdaf46ec98389294582536ce12b8da14676e87191c6e19d7fee5fce82284e37179f227966295bdc5fb07
7
+ data.tar.gz: be78f41364416afd861673bffa5362ddac453c04fd405ab4c6b3e0a2d15c022eebadbc9ee4c8f5fa78e269a9d30bd3c22dc71826880b07eb86ac0ff852ccd9e5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.13.0 (2026-04-07)
4
+
5
+ Full Changelog: [v0.12.1...v0.13.0](https://github.com/sentdm/sent-dm-ruby/compare/v0.12.1...v0.13.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([a5d4400](https://github.com/sentdm/sent-dm-ruby/commit/a5d440003671bb86cc0a0df1bdf9589b6ffa96f1))
10
+
3
11
  ## 0.12.1 (2026-04-03)
4
12
 
5
13
  Full Changelog: [v0.12.0...v0.12.1](https://github.com/sentdm/sent-dm-ruby/compare/v0.12.0...v0.12.1)
data/README.md CHANGED
@@ -26,7 +26,7 @@ To use this gem, install via Bundler by adding the following to your application
26
26
  <!-- x-release-please-start-version -->
27
27
 
28
28
  ```ruby
29
- gem "sentdm", "~> 0.12.1"
29
+ gem "sentdm", "~> 0.13.0"
30
30
  ```
31
31
 
32
32
  <!-- x-release-please-end -->
@@ -3,36 +3,36 @@
3
3
  module Sentdm
4
4
  module Models
5
5
  class SentDmServicesCommonContractsPocOsTemplateButton < Sentdm::Internal::Type::BaseModel
6
- # @!attribute id
7
- # The unique identifier of the button (1-based index)
8
- #
9
- # @return [Integer, nil]
10
- optional :id, Integer
11
-
12
6
  # @!attribute props
13
7
  # Properties specific to the button type
14
8
  #
15
- # @return [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps, nil]
16
- optional :props, -> { Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps }
9
+ # @return [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps]
10
+ required :props, -> { Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps }
17
11
 
18
12
  # @!attribute type
19
13
  # The type of button (e.g., QUICK_REPLY, URL, PHONE_NUMBER, VOICE_CALL, COPY_CODE)
20
14
  #
21
- # @return [String, nil]
22
- optional :type, String
15
+ # @return [String]
16
+ required :type, String
17
+
18
+ # @!attribute id
19
+ # The unique identifier of the button (1-based index)
20
+ #
21
+ # @return [Integer, nil]
22
+ optional :id, Integer
23
23
 
24
- # @!method initialize(id: nil, props: nil, type: nil)
24
+ # @!method initialize(props:, type:, id: nil)
25
25
  # Some parameter documentations has been truncated, see
26
26
  # {Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButton} for more
27
27
  # details.
28
28
  #
29
29
  # Interactive button in a message template
30
30
  #
31
- # @param id [Integer] The unique identifier of the button (1-based index)
32
- #
33
31
  # @param props [Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps] Properties specific to the button type
34
32
  #
35
33
  # @param type [String] The type of button (e.g., QUICK_REPLY, URL, PHONE_NUMBER, VOICE_CALL, COPY_CODE)
34
+ #
35
+ # @param id [Integer] The unique identifier of the button (1-based index)
36
36
  end
37
37
  end
38
38
  end
@@ -5,77 +5,77 @@ module Sentdm
5
5
  class SentDmServicesCommonContractsPocOsTemplateButtonProps < Sentdm::Internal::Type::BaseModel
6
6
  # @!attribute active_for
7
7
  #
8
- # @return [Integer, nil]
9
- optional :active_for, Integer, api_name: :activeFor, nil?: true
10
-
11
- # @!attribute autofill_text
12
- #
13
- # @return [String, nil]
14
- optional :autofill_text, String, api_name: :autofillText, nil?: true
8
+ # @return [Integer]
9
+ required :active_for, Integer, api_name: :activeFor
15
10
 
16
11
  # @!attribute country_code
17
12
  #
18
- # @return [String, nil]
19
- optional :country_code, String, api_name: :countryCode, nil?: true
13
+ # @return [String]
14
+ required :country_code, String, api_name: :countryCode
20
15
 
21
16
  # @!attribute offer_code
22
17
  #
23
- # @return [String, nil]
24
- optional :offer_code, String, api_name: :offerCode, nil?: true
18
+ # @return [String]
19
+ required :offer_code, String, api_name: :offerCode
25
20
 
26
- # @!attribute otp_type
21
+ # @!attribute phone_number
27
22
  #
28
- # @return [String, nil]
29
- optional :otp_type, String, api_name: :otpType, nil?: true
23
+ # @return [String]
24
+ required :phone_number, String, api_name: :phoneNumber
30
25
 
31
- # @!attribute package_name
26
+ # @!attribute quick_reply_type
32
27
  #
33
- # @return [String, nil]
34
- optional :package_name, String, api_name: :packageName, nil?: true
28
+ # @return [String]
29
+ required :quick_reply_type, String, api_name: :quickReplyType
35
30
 
36
- # @!attribute phone_number
31
+ # @!attribute text
37
32
  #
38
- # @return [String, nil]
39
- optional :phone_number, String, api_name: :phoneNumber, nil?: true
33
+ # @return [String]
34
+ required :text, String
40
35
 
41
- # @!attribute quick_reply_type
36
+ # @!attribute url
42
37
  #
43
- # @return [String, nil]
44
- optional :quick_reply_type, String, api_name: :quickReplyType, nil?: true
38
+ # @return [String]
39
+ required :url, String
45
40
 
46
- # @!attribute signature_hash
41
+ # @!attribute url_type
42
+ #
43
+ # @return [String]
44
+ required :url_type, String, api_name: :urlType
45
+
46
+ # @!attribute autofill_text
47
47
  #
48
48
  # @return [String, nil]
49
- optional :signature_hash, String, api_name: :signatureHash, nil?: true
49
+ optional :autofill_text, String, api_name: :autofillText, nil?: true
50
50
 
51
- # @!attribute text
51
+ # @!attribute otp_type
52
52
  #
53
53
  # @return [String, nil]
54
- optional :text, String, nil?: true
54
+ optional :otp_type, String, api_name: :otpType, nil?: true
55
55
 
56
- # @!attribute url
56
+ # @!attribute package_name
57
57
  #
58
58
  # @return [String, nil]
59
- optional :url, String, nil?: true
59
+ optional :package_name, String, api_name: :packageName, nil?: true
60
60
 
61
- # @!attribute url_type
61
+ # @!attribute signature_hash
62
62
  #
63
63
  # @return [String, nil]
64
- optional :url_type, String, api_name: :urlType, nil?: true
64
+ optional :signature_hash, String, api_name: :signatureHash, nil?: true
65
65
 
66
- # @!method initialize(active_for: nil, autofill_text: nil, country_code: nil, offer_code: nil, otp_type: nil, package_name: nil, phone_number: nil, quick_reply_type: nil, signature_hash: nil, text: nil, url: nil, url_type: nil)
67
- # @param active_for [Integer, nil]
66
+ # @!method initialize(active_for:, country_code:, offer_code:, phone_number:, quick_reply_type:, text:, url:, url_type:, autofill_text: nil, otp_type: nil, package_name: nil, signature_hash: nil)
67
+ # @param active_for [Integer]
68
+ # @param country_code [String]
69
+ # @param offer_code [String]
70
+ # @param phone_number [String]
71
+ # @param quick_reply_type [String]
72
+ # @param text [String]
73
+ # @param url [String]
74
+ # @param url_type [String]
68
75
  # @param autofill_text [String, nil]
69
- # @param country_code [String, nil]
70
- # @param offer_code [String, nil]
71
76
  # @param otp_type [String, nil]
72
77
  # @param package_name [String, nil]
73
- # @param phone_number [String, nil]
74
- # @param quick_reply_type [String, nil]
75
78
  # @param signature_hash [String, nil]
76
- # @param text [String, nil]
77
- # @param url [String, nil]
78
- # @param url_type [String, nil]
79
79
  end
80
80
  end
81
81
  end
@@ -6,8 +6,8 @@ module Sentdm
6
6
  # @!attribute template
7
7
  # The footer template text with optional variable placeholders
8
8
  #
9
- # @return [String, nil]
10
- optional :template, String
9
+ # @return [String]
10
+ required :template, String
11
11
 
12
12
  # @!attribute type
13
13
  # The type of footer (typically "text")
@@ -21,7 +21,7 @@ module Sentdm
21
21
  # @return [Array<Sentdm::Models::TemplateVariable>, nil]
22
22
  optional :variables, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::TemplateVariable] }, nil?: true
23
23
 
24
- # @!method initialize(template: nil, type: nil, variables: nil)
24
+ # @!method initialize(template:, type: nil, variables: nil)
25
25
  # Footer section of a message template
26
26
  #
27
27
  # @param template [String] The footer template text with optional variable placeholders
@@ -7,8 +7,8 @@ module Sentdm
7
7
  # The header template text with optional variable placeholders (e.g., "Welcome to
8
8
  # {{0:variable}}")
9
9
  #
10
- # @return [String, nil]
11
- optional :template, String
10
+ # @return [String]
11
+ required :template, String
12
12
 
13
13
  # @!attribute type
14
14
  # The type of header (e.g., "text", "image", "video", "document")
@@ -22,7 +22,7 @@ module Sentdm
22
22
  # @return [Array<Sentdm::Models::TemplateVariable>, nil]
23
23
  optional :variables, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::TemplateVariable] }, nil?: true
24
24
 
25
- # @!method initialize(template: nil, type: nil, variables: nil)
25
+ # @!method initialize(template:, type: nil, variables: nil)
26
26
  # Some parameter documentations has been truncated, see
27
27
  # {Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateHeader} for more
28
28
  # details.
@@ -5,8 +5,8 @@ module Sentdm
5
5
  class TemplateBodyContent < Sentdm::Internal::Type::BaseModel
6
6
  # @!attribute template
7
7
  #
8
- # @return [String, nil]
9
- optional :template, String
8
+ # @return [String]
9
+ required :template, String
10
10
 
11
11
  # @!attribute type
12
12
  #
@@ -18,7 +18,7 @@ module Sentdm
18
18
  # @return [Array<Sentdm::Models::TemplateVariable>, nil]
19
19
  optional :variables, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::TemplateVariable] }, nil?: true
20
20
 
21
- # @!method initialize(template: nil, type: nil, variables: nil)
21
+ # @!method initialize(template:, type: nil, variables: nil)
22
22
  # @param template [String]
23
23
  # @param type [String, nil]
24
24
  # @param variables [Array<Sentdm::Models::TemplateVariable>, nil]
@@ -3,77 +3,77 @@
3
3
  module Sentdm
4
4
  module Models
5
5
  class TemplateVariable < Sentdm::Internal::Type::BaseModel
6
- # @!attribute id
7
- #
8
- # @return [Integer, nil]
9
- optional :id, Integer
10
-
11
6
  # @!attribute name
12
7
  #
13
- # @return [String, nil]
14
- optional :name, String
8
+ # @return [String]
9
+ required :name, String
15
10
 
16
11
  # @!attribute props
17
12
  #
18
- # @return [Sentdm::Models::TemplateVariable::Props, nil]
19
- optional :props, -> { Sentdm::TemplateVariable::Props }
13
+ # @return [Sentdm::Models::TemplateVariable::Props]
14
+ required :props, -> { Sentdm::TemplateVariable::Props }
20
15
 
21
16
  # @!attribute type
22
17
  #
23
- # @return [String, nil]
24
- optional :type, String
18
+ # @return [String]
19
+ required :type, String
25
20
 
26
- # @!method initialize(id: nil, name: nil, props: nil, type: nil)
27
- # @param id [Integer]
21
+ # @!attribute id
22
+ #
23
+ # @return [Integer, nil]
24
+ optional :id, Integer
25
+
26
+ # @!method initialize(name:, props:, type:, id: nil)
28
27
  # @param name [String]
29
28
  # @param props [Sentdm::Models::TemplateVariable::Props]
30
29
  # @param type [String]
30
+ # @param id [Integer]
31
31
 
32
32
  # @see Sentdm::Models::TemplateVariable#props
33
33
  class Props < Sentdm::Internal::Type::BaseModel
34
- # @!attribute alt
34
+ # @!attribute media_type
35
35
  #
36
- # @return [String, nil]
37
- optional :alt, String, nil?: true
36
+ # @return [String]
37
+ required :media_type, String, api_name: :mediaType
38
38
 
39
- # @!attribute media_type
39
+ # @!attribute sample
40
40
  #
41
- # @return [String, nil]
42
- optional :media_type, String, api_name: :mediaType, nil?: true
41
+ # @return [String]
42
+ required :sample, String
43
43
 
44
- # @!attribute regex
44
+ # @!attribute url
45
45
  #
46
- # @return [String, nil]
47
- optional :regex, String, nil?: true
46
+ # @return [String]
47
+ required :url, String
48
48
 
49
- # @!attribute sample
49
+ # @!attribute variable_type
50
50
  #
51
- # @return [String, nil]
52
- optional :sample, String, nil?: true
51
+ # @return [String]
52
+ required :variable_type, String, api_name: :variableType
53
53
 
54
- # @!attribute short_url
54
+ # @!attribute alt
55
55
  #
56
56
  # @return [String, nil]
57
- optional :short_url, String, api_name: :shortUrl, nil?: true
57
+ optional :alt, String, nil?: true
58
58
 
59
- # @!attribute url
59
+ # @!attribute regex
60
60
  #
61
61
  # @return [String, nil]
62
- optional :url, String, nil?: true
62
+ optional :regex, String, nil?: true
63
63
 
64
- # @!attribute variable_type
64
+ # @!attribute short_url
65
65
  #
66
66
  # @return [String, nil]
67
- optional :variable_type, String, api_name: :variableType, nil?: true
67
+ optional :short_url, String, api_name: :shortUrl, nil?: true
68
68
 
69
- # @!method initialize(alt: nil, media_type: nil, regex: nil, sample: nil, short_url: nil, url: nil, variable_type: nil)
69
+ # @!method initialize(media_type:, sample:, url:, variable_type:, alt: nil, regex: nil, short_url: nil)
70
+ # @param media_type [String]
71
+ # @param sample [String]
72
+ # @param url [String]
73
+ # @param variable_type [String]
70
74
  # @param alt [String, nil]
71
- # @param media_type [String, nil]
72
75
  # @param regex [String, nil]
73
- # @param sample [String, nil]
74
76
  # @param short_url [String, nil]
75
- # @param url [String, nil]
76
- # @param variable_type [String, nil]
77
77
  end
78
78
  end
79
79
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sentdm
4
- VERSION = "0.12.1"
4
+ VERSION = "0.13.0"
5
5
  end
@@ -11,20 +11,9 @@ module Sentdm
11
11
  )
12
12
  end
13
13
 
14
- # The unique identifier of the button (1-based index)
15
- sig { returns(T.nilable(Integer)) }
16
- attr_reader :id
17
-
18
- sig { params(id: Integer).void }
19
- attr_writer :id
20
-
21
14
  # Properties specific to the button type
22
15
  sig do
23
- returns(
24
- T.nilable(
25
- Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps
26
- )
27
- )
16
+ returns(Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps)
28
17
  end
29
18
  attr_reader :props
30
19
 
@@ -37,38 +26,42 @@ module Sentdm
37
26
  attr_writer :props
38
27
 
39
28
  # The type of button (e.g., QUICK_REPLY, URL, PHONE_NUMBER, VOICE_CALL, COPY_CODE)
40
- sig { returns(T.nilable(String)) }
41
- attr_reader :type
29
+ sig { returns(String) }
30
+ attr_accessor :type
42
31
 
43
- sig { params(type: String).void }
44
- attr_writer :type
32
+ # The unique identifier of the button (1-based index)
33
+ sig { returns(T.nilable(Integer)) }
34
+ attr_reader :id
35
+
36
+ sig { params(id: Integer).void }
37
+ attr_writer :id
45
38
 
46
39
  # Interactive button in a message template
47
40
  sig do
48
41
  params(
49
- id: Integer,
50
42
  props:
51
43
  Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps::OrHash,
52
- type: String
44
+ type: String,
45
+ id: Integer
53
46
  ).returns(T.attached_class)
54
47
  end
55
48
  def self.new(
56
- # The unique identifier of the button (1-based index)
57
- id: nil,
58
49
  # Properties specific to the button type
59
- props: nil,
50
+ props:,
60
51
  # The type of button (e.g., QUICK_REPLY, URL, PHONE_NUMBER, VOICE_CALL, COPY_CODE)
61
- type: nil
52
+ type:,
53
+ # The unique identifier of the button (1-based index)
54
+ id: nil
62
55
  )
63
56
  end
64
57
 
65
58
  sig do
66
59
  override.returns(
67
60
  {
68
- id: Integer,
69
61
  props:
70
62
  Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps,
71
- type: String
63
+ type: String,
64
+ id: Integer
72
65
  }
73
66
  )
74
67
  end
@@ -11,89 +11,89 @@ module Sentdm
11
11
  )
12
12
  end
13
13
 
14
- sig { returns(T.nilable(Integer)) }
14
+ sig { returns(Integer) }
15
15
  attr_accessor :active_for
16
16
 
17
- sig { returns(T.nilable(String)) }
18
- attr_accessor :autofill_text
19
-
20
- sig { returns(T.nilable(String)) }
17
+ sig { returns(String) }
21
18
  attr_accessor :country_code
22
19
 
23
- sig { returns(T.nilable(String)) }
20
+ sig { returns(String) }
24
21
  attr_accessor :offer_code
25
22
 
26
- sig { returns(T.nilable(String)) }
27
- attr_accessor :otp_type
28
-
29
- sig { returns(T.nilable(String)) }
30
- attr_accessor :package_name
31
-
32
- sig { returns(T.nilable(String)) }
23
+ sig { returns(String) }
33
24
  attr_accessor :phone_number
34
25
 
35
- sig { returns(T.nilable(String)) }
26
+ sig { returns(String) }
36
27
  attr_accessor :quick_reply_type
37
28
 
29
+ sig { returns(String) }
30
+ attr_accessor :text
31
+
32
+ sig { returns(String) }
33
+ attr_accessor :url
34
+
35
+ sig { returns(String) }
36
+ attr_accessor :url_type
37
+
38
38
  sig { returns(T.nilable(String)) }
39
- attr_accessor :signature_hash
39
+ attr_accessor :autofill_text
40
40
 
41
41
  sig { returns(T.nilable(String)) }
42
- attr_accessor :text
42
+ attr_accessor :otp_type
43
43
 
44
44
  sig { returns(T.nilable(String)) }
45
- attr_accessor :url
45
+ attr_accessor :package_name
46
46
 
47
47
  sig { returns(T.nilable(String)) }
48
- attr_accessor :url_type
48
+ attr_accessor :signature_hash
49
49
 
50
50
  sig do
51
51
  params(
52
- active_for: T.nilable(Integer),
52
+ active_for: Integer,
53
+ country_code: String,
54
+ offer_code: String,
55
+ phone_number: String,
56
+ quick_reply_type: String,
57
+ text: String,
58
+ url: String,
59
+ url_type: String,
53
60
  autofill_text: T.nilable(String),
54
- country_code: T.nilable(String),
55
- offer_code: T.nilable(String),
56
61
  otp_type: T.nilable(String),
57
62
  package_name: T.nilable(String),
58
- phone_number: T.nilable(String),
59
- quick_reply_type: T.nilable(String),
60
- signature_hash: T.nilable(String),
61
- text: T.nilable(String),
62
- url: T.nilable(String),
63
- url_type: T.nilable(String)
63
+ signature_hash: T.nilable(String)
64
64
  ).returns(T.attached_class)
65
65
  end
66
66
  def self.new(
67
- active_for: nil,
67
+ active_for:,
68
+ country_code:,
69
+ offer_code:,
70
+ phone_number:,
71
+ quick_reply_type:,
72
+ text:,
73
+ url:,
74
+ url_type:,
68
75
  autofill_text: nil,
69
- country_code: nil,
70
- offer_code: nil,
71
76
  otp_type: nil,
72
77
  package_name: nil,
73
- phone_number: nil,
74
- quick_reply_type: nil,
75
- signature_hash: nil,
76
- text: nil,
77
- url: nil,
78
- url_type: nil
78
+ signature_hash: nil
79
79
  )
80
80
  end
81
81
 
82
82
  sig do
83
83
  override.returns(
84
84
  {
85
- active_for: T.nilable(Integer),
85
+ active_for: Integer,
86
+ country_code: String,
87
+ offer_code: String,
88
+ phone_number: String,
89
+ quick_reply_type: String,
90
+ text: String,
91
+ url: String,
92
+ url_type: String,
86
93
  autofill_text: T.nilable(String),
87
- country_code: T.nilable(String),
88
- offer_code: T.nilable(String),
89
94
  otp_type: T.nilable(String),
90
95
  package_name: T.nilable(String),
91
- phone_number: T.nilable(String),
92
- quick_reply_type: T.nilable(String),
93
- signature_hash: T.nilable(String),
94
- text: T.nilable(String),
95
- url: T.nilable(String),
96
- url_type: T.nilable(String)
96
+ signature_hash: T.nilable(String)
97
97
  }
98
98
  )
99
99
  end
@@ -12,11 +12,8 @@ module Sentdm
12
12
  end
13
13
 
14
14
  # The footer template text with optional variable placeholders
15
- sig { returns(T.nilable(String)) }
16
- attr_reader :template
17
-
18
- sig { params(template: String).void }
19
- attr_writer :template
15
+ sig { returns(String) }
16
+ attr_accessor :template
20
17
 
21
18
  # The type of footer (typically "text")
22
19
  sig { returns(T.nilable(String)) }
@@ -36,7 +33,7 @@ module Sentdm
36
33
  end
37
34
  def self.new(
38
35
  # The footer template text with optional variable placeholders
39
- template: nil,
36
+ template:,
40
37
  # The type of footer (typically "text")
41
38
  type: nil,
42
39
  # List of variables used in the footer template
@@ -13,11 +13,8 @@ module Sentdm
13
13
 
14
14
  # The header template text with optional variable placeholders (e.g., "Welcome to
15
15
  # {{0:variable}}")
16
- sig { returns(T.nilable(String)) }
17
- attr_reader :template
18
-
19
- sig { params(template: String).void }
20
- attr_writer :template
16
+ sig { returns(String) }
17
+ attr_accessor :template
21
18
 
22
19
  # The type of header (e.g., "text", "image", "video", "document")
23
20
  sig { returns(T.nilable(String)) }
@@ -38,7 +35,7 @@ module Sentdm
38
35
  def self.new(
39
36
  # The header template text with optional variable placeholders (e.g., "Welcome to
40
37
  # {{0:variable}}")
41
- template: nil,
38
+ template:,
42
39
  # The type of header (e.g., "text", "image", "video", "document")
43
40
  type: nil,
44
41
  # List of variables used in the header template
@@ -8,11 +8,8 @@ module Sentdm
8
8
  T.any(Sentdm::TemplateBodyContent, Sentdm::Internal::AnyHash)
9
9
  end
10
10
 
11
- sig { returns(T.nilable(String)) }
12
- attr_reader :template
13
-
14
- sig { params(template: String).void }
15
- attr_writer :template
11
+ sig { returns(String) }
12
+ attr_accessor :template
16
13
 
17
14
  sig { returns(T.nilable(String)) }
18
15
  attr_accessor :type
@@ -27,7 +24,7 @@ module Sentdm
27
24
  variables: T.nilable(T::Array[Sentdm::TemplateVariable::OrHash])
28
25
  ).returns(T.attached_class)
29
26
  end
30
- def self.new(template: nil, type: nil, variables: nil)
27
+ def self.new(template:, type: nil, variables: nil)
31
28
  end
32
29
 
33
30
  sig do
@@ -8,48 +8,42 @@ module Sentdm
8
8
  T.any(Sentdm::TemplateVariable, Sentdm::Internal::AnyHash)
9
9
  end
10
10
 
11
- sig { returns(T.nilable(Integer)) }
12
- attr_reader :id
13
-
14
- sig { params(id: Integer).void }
15
- attr_writer :id
16
-
17
- sig { returns(T.nilable(String)) }
18
- attr_reader :name
11
+ sig { returns(String) }
12
+ attr_accessor :name
19
13
 
20
- sig { params(name: String).void }
21
- attr_writer :name
22
-
23
- sig { returns(T.nilable(Sentdm::TemplateVariable::Props)) }
14
+ sig { returns(Sentdm::TemplateVariable::Props) }
24
15
  attr_reader :props
25
16
 
26
17
  sig { params(props: Sentdm::TemplateVariable::Props::OrHash).void }
27
18
  attr_writer :props
28
19
 
29
- sig { returns(T.nilable(String)) }
30
- attr_reader :type
20
+ sig { returns(String) }
21
+ attr_accessor :type
31
22
 
32
- sig { params(type: String).void }
33
- attr_writer :type
23
+ sig { returns(T.nilable(Integer)) }
24
+ attr_reader :id
25
+
26
+ sig { params(id: Integer).void }
27
+ attr_writer :id
34
28
 
35
29
  sig do
36
30
  params(
37
- id: Integer,
38
31
  name: String,
39
32
  props: Sentdm::TemplateVariable::Props::OrHash,
40
- type: String
33
+ type: String,
34
+ id: Integer
41
35
  ).returns(T.attached_class)
42
36
  end
43
- def self.new(id: nil, name: nil, props: nil, type: nil)
37
+ def self.new(name:, props:, type:, id: nil)
44
38
  end
45
39
 
46
40
  sig do
47
41
  override.returns(
48
42
  {
49
- id: Integer,
50
43
  name: String,
51
44
  props: Sentdm::TemplateVariable::Props,
52
- type: String
45
+ type: String,
46
+ id: Integer
53
47
  }
54
48
  )
55
49
  end
@@ -62,59 +56,59 @@ module Sentdm
62
56
  T.any(Sentdm::TemplateVariable::Props, Sentdm::Internal::AnyHash)
63
57
  end
64
58
 
65
- sig { returns(T.nilable(String)) }
66
- attr_accessor :alt
67
-
68
- sig { returns(T.nilable(String)) }
59
+ sig { returns(String) }
69
60
  attr_accessor :media_type
70
61
 
71
- sig { returns(T.nilable(String)) }
72
- attr_accessor :regex
73
-
74
- sig { returns(T.nilable(String)) }
62
+ sig { returns(String) }
75
63
  attr_accessor :sample
76
64
 
65
+ sig { returns(String) }
66
+ attr_accessor :url
67
+
68
+ sig { returns(String) }
69
+ attr_accessor :variable_type
70
+
77
71
  sig { returns(T.nilable(String)) }
78
- attr_accessor :short_url
72
+ attr_accessor :alt
79
73
 
80
74
  sig { returns(T.nilable(String)) }
81
- attr_accessor :url
75
+ attr_accessor :regex
82
76
 
83
77
  sig { returns(T.nilable(String)) }
84
- attr_accessor :variable_type
78
+ attr_accessor :short_url
85
79
 
86
80
  sig do
87
81
  params(
82
+ media_type: String,
83
+ sample: String,
84
+ url: String,
85
+ variable_type: String,
88
86
  alt: T.nilable(String),
89
- media_type: T.nilable(String),
90
87
  regex: T.nilable(String),
91
- sample: T.nilable(String),
92
- short_url: T.nilable(String),
93
- url: T.nilable(String),
94
- variable_type: T.nilable(String)
88
+ short_url: T.nilable(String)
95
89
  ).returns(T.attached_class)
96
90
  end
97
91
  def self.new(
92
+ media_type:,
93
+ sample:,
94
+ url:,
95
+ variable_type:,
98
96
  alt: nil,
99
- media_type: nil,
100
97
  regex: nil,
101
- sample: nil,
102
- short_url: nil,
103
- url: nil,
104
- variable_type: nil
98
+ short_url: nil
105
99
  )
106
100
  end
107
101
 
108
102
  sig do
109
103
  override.returns(
110
104
  {
105
+ media_type: String,
106
+ sample: String,
107
+ url: String,
108
+ variable_type: String,
111
109
  alt: T.nilable(String),
112
- media_type: T.nilable(String),
113
110
  regex: T.nilable(String),
114
- sample: T.nilable(String),
115
- short_url: T.nilable(String),
116
- url: T.nilable(String),
117
- variable_type: T.nilable(String)
111
+ short_url: T.nilable(String)
118
112
  }
119
113
  )
120
114
  end
@@ -2,36 +2,30 @@ module Sentdm
2
2
  module Models
3
3
  type sent_dm_services_common_contracts_poc_os_template_button =
4
4
  {
5
- id: Integer,
6
5
  props: Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps,
7
- type: String
6
+ type: String,
7
+ id: Integer
8
8
  }
9
9
 
10
10
  class SentDmServicesCommonContractsPocOsTemplateButton < Sentdm::Internal::Type::BaseModel
11
- attr_reader id: Integer?
12
-
13
- def id=: (Integer) -> Integer
14
-
15
- attr_reader props: Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps?
11
+ attr_accessor props: Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps
16
12
 
17
- def props=: (
18
- Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps
19
- ) -> Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps
13
+ attr_accessor type: String
20
14
 
21
- attr_reader type: String?
15
+ attr_reader id: Integer?
22
16
 
23
- def type=: (String) -> String
17
+ def id=: (Integer) -> Integer
24
18
 
25
19
  def initialize: (
26
- ?id: Integer,
27
- ?props: Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps,
28
- ?type: String
20
+ props: Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps,
21
+ type: String,
22
+ ?id: Integer
29
23
  ) -> void
30
24
 
31
25
  def to_hash: -> {
32
- id: Integer,
33
26
  props: Sentdm::SentDmServicesCommonContractsPocOsTemplateButtonProps,
34
- type: String
27
+ type: String,
28
+ id: Integer
35
29
  }
36
30
  end
37
31
  end
@@ -2,73 +2,73 @@ module Sentdm
2
2
  module Models
3
3
  type sent_dm_services_common_contracts_poc_os_template_button_props =
4
4
  {
5
- active_for: Integer?,
5
+ active_for: Integer,
6
+ country_code: String,
7
+ offer_code: String,
8
+ phone_number: String,
9
+ quick_reply_type: String,
10
+ text: String,
11
+ url: String,
12
+ url_type: String,
6
13
  autofill_text: String?,
7
- country_code: String?,
8
- offer_code: String?,
9
14
  otp_type: String?,
10
15
  package_name: String?,
11
- phone_number: String?,
12
- quick_reply_type: String?,
13
- signature_hash: String?,
14
- text: String?,
15
- url: String?,
16
- url_type: String?
16
+ signature_hash: String?
17
17
  }
18
18
 
19
19
  class SentDmServicesCommonContractsPocOsTemplateButtonProps < Sentdm::Internal::Type::BaseModel
20
- attr_accessor active_for: Integer?
20
+ attr_accessor active_for: Integer
21
21
 
22
- attr_accessor autofill_text: String?
22
+ attr_accessor country_code: String
23
23
 
24
- attr_accessor country_code: String?
24
+ attr_accessor offer_code: String
25
25
 
26
- attr_accessor offer_code: String?
26
+ attr_accessor phone_number: String
27
27
 
28
- attr_accessor otp_type: String?
28
+ attr_accessor quick_reply_type: String
29
29
 
30
- attr_accessor package_name: String?
30
+ attr_accessor text: String
31
31
 
32
- attr_accessor phone_number: String?
32
+ attr_accessor url: String
33
33
 
34
- attr_accessor quick_reply_type: String?
34
+ attr_accessor url_type: String
35
35
 
36
- attr_accessor signature_hash: String?
36
+ attr_accessor autofill_text: String?
37
37
 
38
- attr_accessor text: String?
38
+ attr_accessor otp_type: String?
39
39
 
40
- attr_accessor url: String?
40
+ attr_accessor package_name: String?
41
41
 
42
- attr_accessor url_type: String?
42
+ attr_accessor signature_hash: String?
43
43
 
44
44
  def initialize: (
45
- ?active_for: Integer?,
45
+ active_for: Integer,
46
+ country_code: String,
47
+ offer_code: String,
48
+ phone_number: String,
49
+ quick_reply_type: String,
50
+ text: String,
51
+ url: String,
52
+ url_type: String,
46
53
  ?autofill_text: String?,
47
- ?country_code: String?,
48
- ?offer_code: String?,
49
54
  ?otp_type: String?,
50
55
  ?package_name: String?,
51
- ?phone_number: String?,
52
- ?quick_reply_type: String?,
53
- ?signature_hash: String?,
54
- ?text: String?,
55
- ?url: String?,
56
- ?url_type: String?
56
+ ?signature_hash: String?
57
57
  ) -> void
58
58
 
59
59
  def to_hash: -> {
60
- active_for: Integer?,
60
+ active_for: Integer,
61
+ country_code: String,
62
+ offer_code: String,
63
+ phone_number: String,
64
+ quick_reply_type: String,
65
+ text: String,
66
+ url: String,
67
+ url_type: String,
61
68
  autofill_text: String?,
62
- country_code: String?,
63
- offer_code: String?,
64
69
  otp_type: String?,
65
70
  package_name: String?,
66
- phone_number: String?,
67
- quick_reply_type: String?,
68
- signature_hash: String?,
69
- text: String?,
70
- url: String?,
71
- url_type: String?
71
+ signature_hash: String?
72
72
  }
73
73
  end
74
74
  end
@@ -8,16 +8,14 @@ module Sentdm
8
8
  }
9
9
 
10
10
  class SentDmServicesCommonContractsPocOsTemplateFooter < Sentdm::Internal::Type::BaseModel
11
- attr_reader template: String?
12
-
13
- def template=: (String) -> String
11
+ attr_accessor template: String
14
12
 
15
13
  attr_accessor type: String?
16
14
 
17
15
  attr_accessor variables: ::Array[Sentdm::TemplateVariable]?
18
16
 
19
17
  def initialize: (
20
- ?template: String,
18
+ template: String,
21
19
  ?type: String?,
22
20
  ?variables: ::Array[Sentdm::TemplateVariable]?
23
21
  ) -> void
@@ -8,16 +8,14 @@ module Sentdm
8
8
  }
9
9
 
10
10
  class SentDmServicesCommonContractsPocOsTemplateHeader < Sentdm::Internal::Type::BaseModel
11
- attr_reader template: String?
12
-
13
- def template=: (String) -> String
11
+ attr_accessor template: String
14
12
 
15
13
  attr_accessor type: String?
16
14
 
17
15
  attr_accessor variables: ::Array[Sentdm::TemplateVariable]?
18
16
 
19
17
  def initialize: (
20
- ?template: String,
18
+ template: String,
21
19
  ?type: String?,
22
20
  ?variables: ::Array[Sentdm::TemplateVariable]?
23
21
  ) -> void
@@ -8,16 +8,14 @@ module Sentdm
8
8
  }
9
9
 
10
10
  class TemplateBodyContent < Sentdm::Internal::Type::BaseModel
11
- attr_reader template: String?
12
-
13
- def template=: (String) -> String
11
+ attr_accessor template: String
14
12
 
15
13
  attr_accessor type: String?
16
14
 
17
15
  attr_accessor variables: ::Array[Sentdm::TemplateVariable]?
18
16
 
19
17
  def initialize: (
20
- ?template: String,
18
+ template: String,
21
19
  ?type: String?,
22
20
  ?variables: ::Array[Sentdm::TemplateVariable]?
23
21
  ) -> void
@@ -2,89 +2,81 @@ module Sentdm
2
2
  module Models
3
3
  type template_variable =
4
4
  {
5
- id: Integer,
6
5
  name: String,
7
6
  props: Sentdm::TemplateVariable::Props,
8
- type: String
7
+ type: String,
8
+ id: Integer
9
9
  }
10
10
 
11
11
  class TemplateVariable < Sentdm::Internal::Type::BaseModel
12
- attr_reader id: Integer?
13
-
14
- def id=: (Integer) -> Integer
15
-
16
- attr_reader name: String?
12
+ attr_accessor name: String
17
13
 
18
- def name=: (String) -> String
14
+ attr_accessor props: Sentdm::TemplateVariable::Props
19
15
 
20
- attr_reader props: Sentdm::TemplateVariable::Props?
16
+ attr_accessor type: String
21
17
 
22
- def props=: (
23
- Sentdm::TemplateVariable::Props
24
- ) -> Sentdm::TemplateVariable::Props
25
-
26
- attr_reader type: String?
18
+ attr_reader id: Integer?
27
19
 
28
- def type=: (String) -> String
20
+ def id=: (Integer) -> Integer
29
21
 
30
22
  def initialize: (
31
- ?id: Integer,
32
- ?name: String,
33
- ?props: Sentdm::TemplateVariable::Props,
34
- ?type: String
23
+ name: String,
24
+ props: Sentdm::TemplateVariable::Props,
25
+ type: String,
26
+ ?id: Integer
35
27
  ) -> void
36
28
 
37
29
  def to_hash: -> {
38
- id: Integer,
39
30
  name: String,
40
31
  props: Sentdm::TemplateVariable::Props,
41
- type: String
32
+ type: String,
33
+ id: Integer
42
34
  }
43
35
 
44
36
  type props =
45
37
  {
38
+ media_type: String,
39
+ sample: String,
40
+ url: String,
41
+ variable_type: String,
46
42
  alt: String?,
47
- media_type: String?,
48
43
  regex: String?,
49
- sample: String?,
50
- short_url: String?,
51
- url: String?,
52
- variable_type: String?
44
+ short_url: String?
53
45
  }
54
46
 
55
47
  class Props < Sentdm::Internal::Type::BaseModel
56
- attr_accessor alt: String?
48
+ attr_accessor media_type: String
57
49
 
58
- attr_accessor media_type: String?
50
+ attr_accessor sample: String
59
51
 
60
- attr_accessor regex: String?
52
+ attr_accessor url: String
61
53
 
62
- attr_accessor sample: String?
54
+ attr_accessor variable_type: String
63
55
 
64
- attr_accessor short_url: String?
56
+ attr_accessor alt: String?
65
57
 
66
- attr_accessor url: String?
58
+ attr_accessor regex: String?
67
59
 
68
- attr_accessor variable_type: String?
60
+ attr_accessor short_url: String?
69
61
 
70
62
  def initialize: (
63
+ media_type: String,
64
+ sample: String,
65
+ url: String,
66
+ variable_type: String,
71
67
  ?alt: String?,
72
- ?media_type: String?,
73
68
  ?regex: String?,
74
- ?sample: String?,
75
- ?short_url: String?,
76
- ?url: String?,
77
- ?variable_type: String?
69
+ ?short_url: String?
78
70
  ) -> void
79
71
 
80
72
  def to_hash: -> {
73
+ media_type: String,
74
+ sample: String,
75
+ url: String,
76
+ variable_type: String,
81
77
  alt: String?,
82
- media_type: String?,
83
78
  regex: String?,
84
- sample: String?,
85
- short_url: String?,
86
- url: String?,
87
- variable_type: String?
79
+ short_url: String?
88
80
  }
89
81
  end
90
82
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sentdm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.1
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sent
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-04-03 00:00:00.000000000 Z
11
+ date: 2026-04-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi