python-amcards 1.2.32__py3-none-any.whl → 1.2.34__py3-none-any.whl

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.
amcards/models.py CHANGED
@@ -266,12 +266,14 @@ class Campaign:
266
266
  self,
267
267
  id: int,
268
268
  name: str,
269
+ drip_count: int,
269
270
  send_if_duplicate: bool,
270
271
  has_anniversary_drip: bool = False,
271
272
  has_birthday_drip: bool = False,
272
273
  ) -> None:
273
274
  self._id = id
274
275
  self._name = name
276
+ self._drip_count = drip_count
275
277
  self._send_if_duplicate = send_if_duplicate
276
278
  self._has_anniversary_drip = has_anniversary_drip
277
279
  self._has_birthday_drip = has_birthday_drip
@@ -288,6 +290,11 @@ class Campaign:
288
290
  """Drip campaign's name."""
289
291
  return self._name
290
292
 
293
+ @property
294
+ def drip_count(self) -> int:
295
+ """Drip campaign's drip count."""
296
+ return self._drip_count
297
+
291
298
  @property
292
299
  def send_if_duplicate(self) -> bool:
293
300
  """If True, AMcards will not attempt to detect and prevent duplicates. Otherwise, if this campaign has been previously sent to a contact, further campaign send attempts to the same contact will be prevented."""
@@ -308,6 +315,7 @@ class Campaign:
308
315
  return cls(
309
316
  id=json['id'],
310
317
  name=json['title'],
318
+ drip_count=json['drip_count'],
311
319
  send_if_duplicate=json['send_even_if_duplicate'],
312
320
  has_anniversary_drip=json['has_anniversary_drip'],
313
321
  has_birthday_drip=json['has_birthday_drip'],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-amcards
3
- Version: 1.2.32
3
+ Version: 1.2.34
4
4
  Summary: A wrapper for the AMcards API.
5
5
  Home-page: https://github.com/simonesestili/python-amcards
6
6
  Author: Simone Sestili
@@ -0,0 +1,10 @@
1
+ amcards/__helpers.py,sha256=iQ3L-79XyDBoE8ZsenCac7xii-1LN86Go3w_yu95VaE,5466
2
+ amcards/__init__.py,sha256=nl-oq4BKdYSQZPNbtraEMHFf_8MU8gSOlJZIYxKudcM,34
3
+ amcards/amcards.py,sha256=xuL68Qu23fj9zv_NxdAiutDWzbAV0y_rQWlQH46KgpI,59157
4
+ amcards/exceptions.py,sha256=wPu5lipT4oTJ2h-NY82jO_AjG68flmbFpcA-0xy0t_w,1978
5
+ amcards/models.py,sha256=0upN9pX65121XrX9nZGQbU3kLFM6fs1OT6XDH_S4jEU,27951
6
+ python_amcards-1.2.34.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
7
+ python_amcards-1.2.34.dist-info/METADATA,sha256=des1lsXof80dO7rD71wLivbm1Ubd0qiDlY61VqBI6hQ,3078
8
+ python_amcards-1.2.34.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
9
+ python_amcards-1.2.34.dist-info/top_level.txt,sha256=xst-AU0pzvWXz3DQR-QICIruzgcf4Bkt6FF_GldcIck,8
10
+ python_amcards-1.2.34.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- amcards/__helpers.py,sha256=iQ3L-79XyDBoE8ZsenCac7xii-1LN86Go3w_yu95VaE,5466
2
- amcards/__init__.py,sha256=nl-oq4BKdYSQZPNbtraEMHFf_8MU8gSOlJZIYxKudcM,34
3
- amcards/amcards.py,sha256=xuL68Qu23fj9zv_NxdAiutDWzbAV0y_rQWlQH46KgpI,59157
4
- amcards/exceptions.py,sha256=wPu5lipT4oTJ2h-NY82jO_AjG68flmbFpcA-0xy0t_w,1978
5
- amcards/models.py,sha256=AZdr_L1uKfFgoDtcSFZE7od9CQdveAuZxXpFHKNQwIg,27723
6
- python_amcards-1.2.32.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
7
- python_amcards-1.2.32.dist-info/METADATA,sha256=Rrr-at-Y3pmA-OOpkiGegTtKl2jP9UbZKQTBnoD6c0k,3078
8
- python_amcards-1.2.32.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
9
- python_amcards-1.2.32.dist-info/top_level.txt,sha256=xst-AU0pzvWXz3DQR-QICIruzgcf4Bkt6FF_GldcIck,8
10
- python_amcards-1.2.32.dist-info/RECORD,,