Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,4 @@ venv.bak/
.vscode/
/.vs
/runtests.bat
*.pem
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="target365_sdk",
version="1.5.3",
version="1.7.0",
author="Target365",
author_email="support@target365.no",
description="Target365 SDK",
Expand Down
1 change: 1 addition & 0 deletions target365_sdk/models/delivery_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class DeliveryReport(Model):
def _accepted_params(self):
return [
'correlationId',
'sessionId',
'transactionId',
'price',
'sender',
Expand Down
12 changes: 12 additions & 0 deletions target365_sdk/models/detailed_status_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class DetailedStatusCodes:
EXPIRED = "Expired"
UNDELIVERED = "Undelivered"
UNKNOWN_ERROR = "UnknownError"
OTHER_ERROR = "OtherError"
REJECTED = "Rejected"
UNKNOWN_SUBSCRIBER = "UnknownSubscriber"
SUBSCRIBER_UNAVAILABLE = "SubscriberUnavailable"
Expand All @@ -18,3 +19,14 @@ class DetailedStatusCodes:
ONE_TIME_PASSWORD_EXPIRED = "OneTimePasswordExpired"
ONE_TIME_PASSWORD_FAILED = "OneTimePasswordFailed"
SUBSCRIBER_TOO_YOUNG = "SubscriberTooYoung"
TIMEOUT_ERROR = "TimeoutError"
PENDING = "Pending"
TEMPORARY_ERROR = "TemporaryError"
MISSING_PREAUTH = "MissingPreAuth"
MISSING_DELIVERY_REPORT = "MissingDeliveryReport"
USER_IN_TRANSACTION = "UserInTransaction"
CONNECTION_OFFLINE = "ConnectionOffline"
INVALID_CREDENTIALS = "InvalidCredentials"
INVALID_OTP = "InvalidOtp"
CARD_PSP_ERROR = "CardPspError"
MNO_ERROR = "MnoError"
1 change: 1 addition & 0 deletions target365_sdk/models/keyword.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ def _accepted_params(self):
'lastModified',
'tags',
'customProperties',
'aliases',
]
2 changes: 2 additions & 0 deletions target365_sdk/models/out_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def _init_preprocess(self, args):
def _accepted_params(self):
return [
'transactionId',
'sessionId',
'correlationId',
'keywordId',
'sender',
Expand All @@ -37,6 +38,7 @@ def _accepted_params(self):
'smscTransactionId',
'detailedStatusCode',
'delivered',
'operatorId',
'smscMessageParts',
'tags',
'properties',
Expand Down
2 changes: 1 addition & 1 deletion target365_sdk/tests/test_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def test_user_validity(client):
assert validity == UserValidity.Full

def test_get_server_public_key(client):
public_key = client.get_server_public_key('2017-11-17')
public_key = client.get_server_public_key('2021-07-27')

assert public_key.accountId == 8

Expand Down