Skip to content

Commit 2f50701

Browse files
authored
Transactional - amp_body prop to body_amp for consistency
2 parents 3af8945 + c34b18f commit 2f50701

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [2.0]
4+
### Changed
5+
- Updated transactional email request optional argument `amp_body` to `body_amp` for consistency across APIs ([#93](https://github.com/customerio/customerio-python/pull/93))
6+
37
## [1.6.1]
48
### Added
59
- Added the `disable_css_preprocessing` and `language` optional fields to send request
@@ -16,7 +20,6 @@
1620
### Added
1721
- Support for EU region
1822

19-
### Removed
2023
### Changed
2124
- `customerio.CustomerIO` and `customerio.APIClient` have a new keyword parameter `region` that can be set to either `Regions.US` or `Regions.EU`
2225

customerio/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = (1, 6, 1, 'final', 0)
1+
VERSION = (2, 0, 0, 'final', 0)
22

33
def get_version():
44
version = '%s.%s' % (VERSION[0], VERSION[1])

customerio/api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def __init__(self,
4242
subject=None,
4343
preheader=None,
4444
body=None,
45-
plaintext_body=None,
46-
amp_body=None,
45+
body_plain=None,
46+
body_amp=None,
4747
fake_bcc=None,
4848
disable_message_retention=None,
4949
send_to_unsubscribed=None,
@@ -66,8 +66,8 @@ def __init__(self,
6666
self.subject = subject
6767
self.preheader = preheader
6868
self.body = body
69-
self.plaintext_body = plaintext_body
70-
self.amp_body = amp_body
69+
self.body_plain = body_plain
70+
self.body_amp = body_amp
7171
self.fake_bcc = fake_bcc
7272
self.disable_message_retention = disable_message_retention
7373
self.send_to_unsubscribed = send_to_unsubscribed
@@ -111,8 +111,8 @@ def _to_dict(self):
111111
subject="subject",
112112
preheader="preheader",
113113
body="body",
114-
plaintext_body="plaintext_body",
115-
amp_body="amp_body",
114+
body_plain="body_plain",
115+
body_amp="body_amp",
116116
fake_bcc="fake_bcc",
117117
disable_message_retention="disable_message_retention",
118118
send_to_unsubscribed="send_to_unsubscribed",

0 commit comments

Comments
 (0)