python-amcards 1.7.3__tar.gz → 1.7.4__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-amcards
3
- Version: 1.7.3
3
+ Version: 1.7.4
4
4
  Summary: A wrapper for the AMcards API.
5
5
  Home-page: https://github.com/simonesestili/python-amcards
6
6
  Author: Simone Sestili
@@ -902,6 +902,7 @@ class AMcardsClient:
902
902
  return_address: dict = None,
903
903
  send_date: str = None,
904
904
  extra_data: dict = None,
905
+ bypass_duplicate_check: bool = False,
905
906
  ) -> CampaignResponse:
906
907
  """Attempt to send a drip campaign.
907
908
 
@@ -978,6 +979,7 @@ class AMcardsClient:
978
979
  'carMake': 'Honda', # OPTIONAL
979
980
  }
980
981
 
982
+ :param bool bypass_duplicate_check: When ``True``, instruct AMcards to bypass duplicate detection for the campaign send; defaults to ``False``.
981
983
  :return: AMcards' :py:class:`response <amcards.models.CampaignResponse>` for sending a single drip campaign.
982
984
  :rtype: :py:class:`CampaignResponse <amcards.models.CampaignResponse>`
983
985
 
@@ -1039,6 +1041,9 @@ class AMcardsClient:
1039
1041
  if extra_data is not None:
1040
1042
  body |= {'extra_data': extra_data}
1041
1043
 
1044
+ if bypass_duplicate_check:
1045
+ body |= {'bypass_duplicate_check': True}
1046
+
1042
1047
  res = requests.post(f'{DOMAIN}/campaigns/open-campaign-form/', json=body, headers=self._HEADERS)
1043
1048
 
1044
1049
  # Check for errors
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-amcards
3
- Version: 1.7.3
3
+ Version: 1.7.4
4
4
  Summary: A wrapper for the AMcards API.
5
5
  Home-page: https://github.com/simonesestili/python-amcards
6
6
  Author: Simone Sestili
@@ -7,7 +7,7 @@ def README():
7
7
 
8
8
  setup(
9
9
  name='python-amcards',
10
- version='1.7.3',
10
+ version='1.7.4',
11
11
  description='A wrapper for the AMcards API.',
12
12
  long_description=README(),
13
13
  long_description_content_type='text/x-rst',
File without changes
File without changes