sentdm 0.21.0 → 0.22.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47c89b928b93f624fed6e94bb2a4a2834b9e2a831e1f0b9c2959807e0ba7306a
4
- data.tar.gz: 5cb35051a6dd0ca4257d393e9ad0615942710d169fe97bb5ef1d528cb65b2cc3
3
+ metadata.gz: ff3976ba33fd23b5531e560bc78424189ced5c29a0e311c0fe4214003df4dda7
4
+ data.tar.gz: 04e1dce22f3aec94855dfc8e63d32ecd3be6eec176db69d84c701d7a309e069c
5
5
  SHA512:
6
- metadata.gz: a9a2bea046a03cef7726a11d21f992b6be451739e243fe6730ede7e0bb607f2d8fc9c6451dce01fac53733f0dd93a595b2a5933def3669a5059cc8e338db008a
7
- data.tar.gz: 0b84b732decdb0ae84544121e56d74936701a354fb8d9186ab4222a5e2b4f05d4f790157d6e5ba1005a52662b2e8d44ca5d417aad160b15f6ffafc61c8339a98
6
+ metadata.gz: a0917d1b6e4889e3d1e4b20b7c47e6db020638ee938aa9bf27648a43186dabe1802a304d45033f7159282c852996e764b5763c63196b5369c05d4accd8897416
7
+ data.tar.gz: a6c46edaf0fd2b6e5ad69460f2c2d19fbcea7fb89c8eefdb50ce30137b23a11b9ecd927519f83f571c3abee86f52ef13164d40ad161fdd6ffcd37d21535861fc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.22.0 (2026-05-21)
4
+
5
+ Full Changelog: [v0.21.0...v0.22.0](https://github.com/sentdm/sent-dm-ruby/compare/v0.21.0...v0.22.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([519290b](https://github.com/sentdm/sent-dm-ruby/commit/519290b8037e9687700578e964b7647a3a144673))
10
+ * **api:** api update ([f0bb49f](https://github.com/sentdm/sent-dm-ruby/commit/f0bb49f1b22a80e21f4d8ad19e2d7590b180239e))
11
+
3
12
  ## 0.21.0 (2026-05-14)
4
13
 
5
14
  Full Changelog: [v0.20.0...v0.21.0](https://github.com/sentdm/sent-dm-ruby/compare/v0.20.0...v0.21.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "sentdm", "~> 0.21.0"
20
+ gem "sentdm", "~> 0.22.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -91,7 +91,8 @@ module Sentdm
91
91
  optional :price, String, nil?: true
92
92
 
93
93
  # @!attribute status
94
- # Activity status (e.g., QUEUED, PROCESSED, ROUTED, SENT, DELIVERED, FAILED)
94
+ # Activity status. Outbound: QUEUED, PROCESSED, ROUTED, SENT, DELIVERED, READ,
95
+ # FAILED. Inbound (from contact): RECEIVED (terminal).
95
96
  #
96
97
  # @return [String, nil]
97
98
  optional :status, String
@@ -117,7 +118,7 @@ module Sentdm
117
118
  #
118
119
  # @param price [String, nil] Channel cost for this activity (e.g., SMS/WhatsApp provider cost), formatted to
119
120
  #
120
- # @param status [String] Activity status (e.g., QUEUED, PROCESSED, ROUTED, SENT, DELIVERED, FAILED)
121
+ # @param status [String] Activity status. Outbound: QUEUED, PROCESSED, ROUTED, SENT, DELIVERED, READ, FAI
121
122
  #
122
123
  # @param timestamp [Time] When this activity occurred
123
124
  end
@@ -32,7 +32,10 @@ module Sentdm
32
32
  # @!attribute dca_elections_complete
33
33
  #
34
34
  # @return [Boolean, nil]
35
- optional :dca_elections_complete, Sentdm::Internal::Type::Boolean, api_name: :dcaElectionsComplete
35
+ optional :dca_elections_complete,
36
+ Sentdm::Internal::Type::Boolean,
37
+ api_name: :dcaElectionsComplete,
38
+ nil?: true
36
39
 
37
40
  # @!attribute dca_elections_completed_at
38
41
  #
@@ -165,7 +168,7 @@ module Sentdm
165
168
  # @param cost [Float, nil]
166
169
  # @param csp_id [String, nil]
167
170
  # @param customer_id [String]
168
- # @param dca_elections_complete [Boolean]
171
+ # @param dca_elections_complete [Boolean, nil]
169
172
  # @param dca_elections_completed_at [Time, nil]
170
173
  # @param description [String]
171
174
  # @param help_keywords [String, nil]
@@ -43,6 +43,14 @@ module Sentdm
43
43
  # @return [String]
44
44
  required :url_type, String, api_name: :urlType
45
45
 
46
+ # @!attribute variables
47
+ # Variables embedded in a dynamic URL button (only when UrlType = dynamic). Count
48
+ # is capped by TemplateContentLimits.MaxUrlButtonVariables; the placeholder must
49
+ # appear at the end of Url (validated in TemplateDefinitionValidator).
50
+ #
51
+ # @return [Array<Sentdm::Models::TemplateVariable>]
52
+ required :variables, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::TemplateVariable] }
53
+
46
54
  # @!attribute autofill_text
47
55
  #
48
56
  # @return [String, nil]
@@ -63,18 +71,35 @@ module Sentdm
63
71
  # @return [String, nil]
64
72
  optional :signature_hash, String, api_name: :signatureHash, nil?: true
65
73
 
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)
74
+ # @!method initialize(active_for:, country_code:, offer_code:, phone_number:, quick_reply_type:, text:, url:, url_type:, variables:, autofill_text: nil, otp_type: nil, package_name: nil, signature_hash: nil)
75
+ # Some parameter documentations has been truncated, see
76
+ # {Sentdm::Models::SentDmServicesCommonContractsPocOsTemplateButtonProps} for more
77
+ # details.
78
+ #
67
79
  # @param active_for [Integer]
80
+ #
68
81
  # @param country_code [String]
82
+ #
69
83
  # @param offer_code [String]
84
+ #
70
85
  # @param phone_number [String]
86
+ #
71
87
  # @param quick_reply_type [String]
88
+ #
72
89
  # @param text [String]
90
+ #
73
91
  # @param url [String]
92
+ #
74
93
  # @param url_type [String]
94
+ #
95
+ # @param variables [Array<Sentdm::Models::TemplateVariable>] Variables embedded in a dynamic URL button (only when UrlType = dynamic).
96
+ #
75
97
  # @param autofill_text [String, nil]
98
+ #
76
99
  # @param otp_type [String, nil]
100
+ #
77
101
  # @param package_name [String, nil]
102
+ #
78
103
  # @param signature_hash [String, nil]
79
104
  end
80
105
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sentdm
4
- VERSION = "0.21.0"
4
+ VERSION = "0.22.0"
5
5
  end
@@ -192,7 +192,8 @@ module Sentdm
192
192
  sig { returns(T.nilable(String)) }
193
193
  attr_accessor :price
194
194
 
195
- # Activity status (e.g., QUEUED, PROCESSED, ROUTED, SENT, DELIVERED, FAILED)
195
+ # Activity status. Outbound: QUEUED, PROCESSED, ROUTED, SENT, DELIVERED, READ,
196
+ # FAILED. Inbound (from contact): RECEIVED (terminal).
196
197
  sig { returns(T.nilable(String)) }
197
198
  attr_reader :status
198
199
 
@@ -230,7 +231,8 @@ module Sentdm
230
231
  # Channel cost for this activity (e.g., SMS/WhatsApp provider cost), formatted to
231
232
  # 4 decimal places.
232
233
  price: nil,
233
- # Activity status (e.g., QUEUED, PROCESSED, ROUTED, SENT, DELIVERED, FAILED)
234
+ # Activity status. Outbound: QUEUED, PROCESSED, ROUTED, SENT, DELIVERED, READ,
235
+ # FAILED. Inbound (from contact): RECEIVED (terminal).
234
236
  status: nil,
235
237
  # When this activity occurred
236
238
  timestamp: nil
@@ -31,10 +31,7 @@ module Sentdm
31
31
  attr_writer :customer_id
32
32
 
33
33
  sig { returns(T.nilable(T::Boolean)) }
34
- attr_reader :dca_elections_complete
35
-
36
- sig { params(dca_elections_complete: T::Boolean).void }
37
- attr_writer :dca_elections_complete
34
+ attr_accessor :dca_elections_complete
38
35
 
39
36
  sig { returns(T.nilable(Time)) }
40
37
  attr_accessor :dca_elections_completed_at
@@ -155,7 +152,7 @@ module Sentdm
155
152
  cost: T.nilable(Float),
156
153
  csp_id: T.nilable(String),
157
154
  customer_id: String,
158
- dca_elections_complete: T::Boolean,
155
+ dca_elections_complete: T.nilable(T::Boolean),
159
156
  dca_elections_completed_at: T.nilable(Time),
160
157
  description: String,
161
158
  help_keywords: T.nilable(String),
@@ -233,7 +230,7 @@ module Sentdm
233
230
  cost: T.nilable(Float),
234
231
  csp_id: T.nilable(String),
235
232
  customer_id: String,
236
- dca_elections_complete: T::Boolean,
233
+ dca_elections_complete: T.nilable(T::Boolean),
237
234
  dca_elections_completed_at: T.nilable(Time),
238
235
  description: String,
239
236
  help_keywords: T.nilable(String),
@@ -35,6 +35,12 @@ module Sentdm
35
35
  sig { returns(String) }
36
36
  attr_accessor :url_type
37
37
 
38
+ # Variables embedded in a dynamic URL button (only when UrlType = dynamic). Count
39
+ # is capped by TemplateContentLimits.MaxUrlButtonVariables; the placeholder must
40
+ # appear at the end of Url (validated in TemplateDefinitionValidator).
41
+ sig { returns(T::Array[Sentdm::TemplateVariable]) }
42
+ attr_accessor :variables
43
+
38
44
  sig { returns(T.nilable(String)) }
39
45
  attr_accessor :autofill_text
40
46
 
@@ -57,6 +63,7 @@ module Sentdm
57
63
  text: String,
58
64
  url: String,
59
65
  url_type: String,
66
+ variables: T::Array[Sentdm::TemplateVariable::OrHash],
60
67
  autofill_text: T.nilable(String),
61
68
  otp_type: T.nilable(String),
62
69
  package_name: T.nilable(String),
@@ -72,6 +79,10 @@ module Sentdm
72
79
  text:,
73
80
  url:,
74
81
  url_type:,
82
+ # Variables embedded in a dynamic URL button (only when UrlType = dynamic). Count
83
+ # is capped by TemplateContentLimits.MaxUrlButtonVariables; the placeholder must
84
+ # appear at the end of Url (validated in TemplateDefinitionValidator).
85
+ variables:,
75
86
  autofill_text: nil,
76
87
  otp_type: nil,
77
88
  package_name: nil,
@@ -90,6 +101,7 @@ module Sentdm
90
101
  text: String,
91
102
  url: String,
92
103
  url_type: String,
104
+ variables: T::Array[Sentdm::TemplateVariable],
93
105
  autofill_text: T.nilable(String),
94
106
  otp_type: T.nilable(String),
95
107
  package_name: T.nilable(String),
@@ -8,7 +8,7 @@ module Sentdm
8
8
  cost: Float?,
9
9
  csp_id: String?,
10
10
  customer_id: String,
11
- dca_elections_complete: bool,
11
+ dca_elections_complete: bool?,
12
12
  dca_elections_completed_at: Time?,
13
13
  description: String,
14
14
  help_keywords: String?,
@@ -58,7 +58,7 @@ module Sentdm
58
58
 
59
59
  def dca_elections_complete: -> bool?
60
60
 
61
- def dca_elections_complete=: (bool _) -> bool
61
+ def dca_elections_complete=: (bool? _) -> bool?
62
62
 
63
63
  def dca_elections_completed_at: -> Time?
64
64
 
@@ -168,7 +168,7 @@ module Sentdm
168
168
  ?cost: Float?,
169
169
  ?csp_id: String?,
170
170
  ?customer_id: String,
171
- ?dca_elections_complete: bool,
171
+ ?dca_elections_complete: bool?,
172
172
  ?dca_elections_completed_at: Time?,
173
173
  ?description: String,
174
174
  ?help_keywords: String?,
@@ -201,7 +201,7 @@ module Sentdm
201
201
  cost: Float?,
202
202
  csp_id: String?,
203
203
  customer_id: String,
204
- dca_elections_complete: bool,
204
+ dca_elections_complete: bool?,
205
205
  dca_elections_completed_at: Time?,
206
206
  description: String,
207
207
  help_keywords: String?,
@@ -10,6 +10,7 @@ module Sentdm
10
10
  text: String,
11
11
  url: String,
12
12
  url_type: String,
13
+ variables: ::Array[Sentdm::TemplateVariable],
13
14
  autofill_text: String?,
14
15
  otp_type: String?,
15
16
  package_name: String?,
@@ -33,6 +34,8 @@ module Sentdm
33
34
 
34
35
  attr_accessor url_type: String
35
36
 
37
+ attr_accessor variables: ::Array[Sentdm::TemplateVariable]
38
+
36
39
  attr_accessor autofill_text: String?
37
40
 
38
41
  attr_accessor otp_type: String?
@@ -50,6 +53,7 @@ module Sentdm
50
53
  text: String,
51
54
  url: String,
52
55
  url_type: String,
56
+ variables: ::Array[Sentdm::TemplateVariable],
53
57
  ?autofill_text: String?,
54
58
  ?otp_type: String?,
55
59
  ?package_name: String?,
@@ -65,6 +69,7 @@ module Sentdm
65
69
  text: String,
66
70
  url: String,
67
71
  url_type: String,
72
+ variables: ::Array[Sentdm::TemplateVariable],
68
73
  autofill_text: String?,
69
74
  otp_type: String?,
70
75
  package_name: String?,
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.21.0
4
+ version: 0.22.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-05-14 00:00:00.000000000 Z
11
+ date: 2026-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi