Skip to content

Commit 67da4cc

Browse files
author
klaviyo-sdk
committed
version 5.1.1
1 parent e248b11 commit 67da4cc

File tree

8 files changed

+37
-16
lines changed

8 files changed

+37
-16
lines changed

CHANGELOG.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
NOTE: For more granular API-specific changes, please see our [API Changelog](https://developers.klaviyo.com/en/docs/changelog_)
99

10+
## [5.1.1] - revision 2023-08-15
11+
12+
### Fixed
13+
14+
- Fixed a bug that was impacting the `unset` functionality for `update_profile`
15+
1016
## [5.1.0] - revision 2023-08-15
1117

1218
### Added
@@ -79,7 +85,7 @@ NOTE: For more granular API-specific changes, please see our [API Changelog](htt
7985
- `create_client_profile`
8086
- `create_client_subscription`
8187

82-
## [2.0.0] - 2023-04-06
88+
## [2.0.0] - revision 2023-04-06
8389

8490
### Added
8591

@@ -94,18 +100,18 @@ NOTE: For more granular API-specific changes, please see our [API Changelog](htt
94100
- To migrate to this latest version, all calls to relationship endpoints need to be updated, as in the following example:
95101
- `get_campaign_relationships(campaign_id, "tags")` will become `get_campaign_relationships_tags(campaign_id)`.
96102

97-
## [1.3.1] - 2023-03-09
103+
## [1.3.1] - revision 2023-03-09
98104

99105
### Added
100106

101107
- Added `page_size` support for paging through endpoints that return profiles.
102108

103-
## [1.2.1] - 2023-02-23
109+
## [1.2.1] - revision 2023-02-23
104110

105111
### Fixed
106112
- Fixed a bug that caused paging through events to periodically fail.
107113

108-
## [1.2.0] - 2023-02-23
114+
## [1.2.0] - revision 2023-02-23
109115

110116
### Added
111117

@@ -115,7 +121,7 @@ NOTE: For more granular API-specific changes, please see our [API Changelog](htt
115121

116122
- Pagination for Flows changed from page offset to cursor.
117123

118-
## [1.1.0] - 2023-01-25
124+
## [1.1.0] - revision 2023-01-25
119125

120126
### Added
121127

@@ -126,7 +132,7 @@ NOTE: For more granular API-specific changes, please see our [API Changelog](htt
126132
- Get List Tags
127133
- Get Segment Tags
128134

129-
## [1.0.0] - 2022-10-19
135+
## [1.0.0] - revision 2022-10-19
130136

131137
### Added
132138

@@ -140,4 +146,4 @@ NOTE: For more granular API-specific changes, please see our [API Changelog](htt
140146
- client name: `Client``KlaviyoAPI`
141147
- Client variable name in readme examples: `client``klaviyo`
142148
- Some functions have changed name
143-
- New resources and endpoints: see [API Changelog](https://developers.klaviyo.com/en/docs/changelog_) for full details
149+
- New resources and endpoints: see [API Changelog](https://developers.klaviyo.com/en/docs/changelog_) for full details

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Klaviyo Python SDK
22

3-
- SDK version: 5.1.0
3+
- SDK version: 5.1.1
44
- API revision: 2023-08-15
55

66
## Helpful Resources

openapi_client/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"""
1616

1717

18-
__version__ = "5.1.0"
18+
__version__ = "5.1.1"
1919

2020
# import apis into sdk package
2121
from openapi_client.api.accounts_api import AccountsApi

openapi_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7777
self.default_headers[header_name] = header_value
7878
self.cookie = cookie
7979
# Set default User-Agent.
80-
self.user_agent = 'klaviyo-api-python/5.1.0'
80+
self.user_agent = 'klaviyo-api-python/5.1.1'
8181
self.client_side_validation = configuration.client_side_validation
8282

8383
def __enter__(self):

openapi_client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def to_debug_report(self):
398398
"OS: {env}\n"\
399399
"Python Version: {pyversion}\n"\
400400
"Version of the API: 2023-08-15\n"\
401-
"SDK Package Version: 5.1.0".\
401+
"SDK Package Version: 5.1.1".\
402402
format(env=sys.platform, pyversion=sys.version)
403403

404404
def get_host_settings(self):

openapi_client/models/profile_location.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import json
2020

2121

22-
from typing import Any, Dict, Optional
22+
from typing import Any, Optional
2323
from pydantic import BaseModel, Field, StrictStr
2424

2525
class ProfileLocation(BaseModel):
@@ -30,8 +30,8 @@ class ProfileLocation(BaseModel):
3030
address2: Optional[StrictStr] = Field(None, description="Second line of street address")
3131
city: Optional[StrictStr] = Field(None, description="City name")
3232
country: Optional[StrictStr] = Field(None, description="Country name")
33-
latitude: Optional[Dict[str, Any]] = Field(None, description="Latitude coordinate. We recommend providing a precision of four decimal places.")
34-
longitude: Optional[Dict[str, Any]] = Field(None, description="Longitude coordinate. We recommend providing a precision of four decimal places.")
33+
latitude: Optional[Any] = Field(None, description="Latitude coordinate. We recommend providing a precision of four decimal places.")
34+
longitude: Optional[Any] = Field(None, description="Longitude coordinate. We recommend providing a precision of four decimal places.")
3535
region: Optional[StrictStr] = Field(None, description="Region within a country, such as state or province")
3636
zip: Optional[StrictStr] = Field(None, description="Zip code")
3737
timezone: Optional[StrictStr] = Field(None, description="Time zone name. We recommend using time zones from the IANA Time Zone Database.")
@@ -61,6 +61,16 @@ def to_dict(self):
6161
exclude={
6262
},
6363
exclude_none=True)
64+
# set to None if latitude (nullable) is None
65+
# and __fields_set__ contains the field
66+
if self.latitude is None and "latitude" in self.__fields_set__:
67+
_dict['latitude'] = None
68+
69+
# set to None if longitude (nullable) is None
70+
# and __fields_set__ contains the field
71+
if self.longitude is None and "longitude" in self.__fields_set__:
72+
_dict['longitude'] = None
73+
6474
return _dict
6575

6676
@classmethod

openapi_client/models/profile_meta_patch_properties.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ProfileMetaPatchProperties(BaseModel):
2828
"""
2929
append: Optional[Dict[str, Any]] = Field(None, description="Append a simple value or values to this property array")
3030
unappend: Optional[Dict[str, Any]] = Field(None, description="Remove a simple value or values from this property array")
31-
unset: Optional[Dict[str, Any]] = Field(None, description="Remove a key or keys (and their values) completely from properties")
31+
unset: Optional[Any] = Field(None, description="Remove a key or keys (and their values) completely from properties")
3232
__properties = ["append", "unappend", "unset"]
3333

3434
class Config:
@@ -55,6 +55,11 @@ def to_dict(self):
5555
exclude={
5656
},
5757
exclude_none=True)
58+
# set to None if unset (nullable) is None
59+
# and __fields_set__ contains the field
60+
if self.unset is None and "unset" in self.__fields_set__:
61+
_dict['unset'] = None
62+
5863
return _dict
5964

6065
@classmethod

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openapi_client"
3-
version = "5.1.0"
3+
version = "5.1.1"
44
description = "Klaviyo API"
55
authors = ["Klaviyo Developer Experience Team <[email protected]>"]
66
license = "License"

0 commit comments

Comments
 (0)