Skip to content

Commit 8bb4fdb

Browse files
committed
Minor version 1.1.0 release
- Models for “Consumables” in In-Skill Products. - APIs for Amazon Pay V2 that includes : - No consent token requirement in request. - Have billing address details for eligible Amazon Pay merchants in Response. - Permission scope addition to Permissions object. - Update Skill Event Models to include additional attributes like ‘eventPublishingTime’ etc.
1 parent 8efe008 commit 8bb4fdb

File tree

69 files changed

+3442
-289
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+3442
-289
lines changed

ask-sdk-model/CHANGELOG.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,16 @@ CHANGELOG
3232

3333
* Production release of ASK Models Package.
3434

35+
1.1.0
36+
~~~~~
37+
38+
* Models for "Consumables" in In-Skill Products.
39+
40+
* APIs for Amazon Pay V2 that includes :
41+
42+
- No consent token requirement in request.
43+
- Have billing address details for eligible Amazon Pay merchants in Response.
44+
- Permission scope addition to Permissions object.
45+
46+
* Update Skill Event Models to include additional attributes like 'eventPublishingTime' etc.
47+

ask-sdk-model/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ The model definitions in this package are auto-generated. The issues and pull re
1414
on the repository are not monitored and may get closed without investigation. Please use
1515
these community resources for getting help:
1616

17-
* Use the `ASK SDK <https://github.com/alexa/alexa-skills-kit-sdk-for-python>`_ for building skills and filing bugs.
17+
* Use the `ASK SDK <https://github.com/alexa-labs/alexa-skills-kit-sdk-for-python>`_ for building skills and filing bugs.
1818
* Request and vote for `Alexa features <https://alexa.uservoice.com/forums/906892-alexa-skills-developer-voice-and-vote>`_!

ask-sdk-model/ask_sdk_model/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@
2323
from .intent_confirmation_status import IntentConfirmationStatus
2424
from .intent_request import IntentRequest
2525
from .launch_request import LaunchRequest
26+
from .permission_status import PermissionStatus
2627
from .permissions import Permissions
2728
from .request import Request
2829
from .request_envelope import RequestEnvelope
2930
from .response import Response
3031
from .response_envelope import ResponseEnvelope
32+
from .scope import Scope
3133
from .session import Session
3234
from .session_ended_error import SessionEndedError
3335
from .session_ended_error_type import SessionEndedErrorType

ask-sdk-model/ask_sdk_model/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
__pip_package_name__ = 'ask-sdk-model'
1515
__description__ = 'The ASK SDK Model package provides model definitions, for building Alexa Skills.'
1616
__url__ = 'https://github.com/alexa/alexa-apis-for-python'
17-
__version__ = '1.0.0'
17+
__version__ = '1.1.0'
1818
__author__ = 'Alexa Skills Kit'
1919
__author_email__ = 'ask-sdk-dynamic@amazon.com'
2020
__license__ = 'Apache 2.0'

ask-sdk-model/ask_sdk_model/events/skillevents/account_linked_request.py

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -36,46 +36,54 @@ class AccountLinkedRequest(Request):
3636
:type request_id: (optional) str
3737
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
3838
:type timestamp: (optional) datetime
39-
:param locale: A string indicating the user’s locale. For example: en-US.
40-
:type locale: (optional) str
4139
:param body:
4240
:type body: (optional) ask_sdk_model.events.skillevents.account_linked_body.AccountLinkedBody
41+
:param event_creation_time:
42+
:type event_creation_time: (optional) datetime
43+
:param event_publishing_time:
44+
:type event_publishing_time: (optional) datetime
4345
4446
"""
4547
deserialized_types = {
4648
'object_type': 'str',
4749
'request_id': 'str',
4850
'timestamp': 'datetime',
49-
'locale': 'str',
50-
'body': 'ask_sdk_model.events.skillevents.account_linked_body.AccountLinkedBody'
51+
'body': 'ask_sdk_model.events.skillevents.account_linked_body.AccountLinkedBody',
52+
'event_creation_time': 'datetime',
53+
'event_publishing_time': 'datetime'
5154
}
5255

5356
attribute_map = {
5457
'object_type': 'type',
5558
'request_id': 'requestId',
5659
'timestamp': 'timestamp',
57-
'locale': 'locale',
58-
'body': 'body'
60+
'body': 'body',
61+
'event_creation_time': 'eventCreationTime',
62+
'event_publishing_time': 'eventPublishingTime'
5963
}
6064

61-
def __init__(self, request_id=None, timestamp=None, locale=None, body=None):
62-
# type: (Optional[str], Optional[datetime], Optional[str], Optional[AccountLinkedBody]) -> None
65+
def __init__(self, request_id=None, timestamp=None, body=None, event_creation_time=None, event_publishing_time=None):
66+
# type: (Optional[str], Optional[datetime], Optional[AccountLinkedBody], Optional[datetime], Optional[datetime]) -> None
6367
"""This event indicates that a customer has linked an account in a third-party application with the Alexa app. This event is useful for an application that support out-of-session (non-voice) user interactions so that this application can be notified when the internal customer can be associated with the Alexa customer. This event is required for many applications that synchronize customer Alexa lists with application lists. During the account linking process, the Alexa app directs the user to the skill website where the customer logs in. When the customer logs in, the skill then provides an access token and a consent token to Alexa. The event includes the same access token and consent token.
6468
6569
:param request_id: Represents the unique identifier for the specific request.
6670
:type request_id: (optional) str
6771
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
6872
:type timestamp: (optional) datetime
69-
:param locale: A string indicating the user’s locale. For example: en-US.
70-
:type locale: (optional) str
7173
:param body:
7274
:type body: (optional) ask_sdk_model.events.skillevents.account_linked_body.AccountLinkedBody
75+
:param event_creation_time:
76+
:type event_creation_time: (optional) datetime
77+
:param event_publishing_time:
78+
:type event_publishing_time: (optional) datetime
7379
"""
7480
self.__discriminator_value = "AlexaSkillEvent.SkillAccountLinked"
7581

7682
self.object_type = self.__discriminator_value
77-
super(AccountLinkedRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale)
83+
super(AccountLinkedRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp)
7884
self.body = body
85+
self.event_creation_time = event_creation_time
86+
self.event_publishing_time = event_publishing_time
7987

8088
def to_dict(self):
8189
# type: () -> Dict[str, object]

ask-sdk-model/ask_sdk_model/events/skillevents/permission_accepted_request.py

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,46 +34,54 @@ class PermissionAcceptedRequest(Request):
3434
:type request_id: (optional) str
3535
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
3636
:type timestamp: (optional) datetime
37-
:param locale: A string indicating the user’s locale. For example: en-US.
38-
:type locale: (optional) str
3937
:param body:
4038
:type body: (optional) ask_sdk_model.events.skillevents.permission_body.PermissionBody
39+
:param event_creation_time:
40+
:type event_creation_time: (optional) datetime
41+
:param event_publishing_time:
42+
:type event_publishing_time: (optional) datetime
4143
4244
"""
4345
deserialized_types = {
4446
'object_type': 'str',
4547
'request_id': 'str',
4648
'timestamp': 'datetime',
47-
'locale': 'str',
48-
'body': 'ask_sdk_model.events.skillevents.permission_body.PermissionBody'
49+
'body': 'ask_sdk_model.events.skillevents.permission_body.PermissionBody',
50+
'event_creation_time': 'datetime',
51+
'event_publishing_time': 'datetime'
4952
}
5053

5154
attribute_map = {
5255
'object_type': 'type',
5356
'request_id': 'requestId',
5457
'timestamp': 'timestamp',
55-
'locale': 'locale',
56-
'body': 'body'
58+
'body': 'body',
59+
'event_creation_time': 'eventCreationTime',
60+
'event_publishing_time': 'eventPublishingTime'
5761
}
5862

59-
def __init__(self, request_id=None, timestamp=None, locale=None, body=None):
60-
# type: (Optional[str], Optional[datetime], Optional[str], Optional[PermissionBody]) -> None
63+
def __init__(self, request_id=None, timestamp=None, body=None, event_creation_time=None, event_publishing_time=None):
64+
# type: (Optional[str], Optional[datetime], Optional[PermissionBody], Optional[datetime], Optional[datetime]) -> None
6165
"""
6266
6367
:param request_id: Represents the unique identifier for the specific request.
6468
:type request_id: (optional) str
6569
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
6670
:type timestamp: (optional) datetime
67-
:param locale: A string indicating the user’s locale. For example: en-US.
68-
:type locale: (optional) str
6971
:param body:
7072
:type body: (optional) ask_sdk_model.events.skillevents.permission_body.PermissionBody
73+
:param event_creation_time:
74+
:type event_creation_time: (optional) datetime
75+
:param event_publishing_time:
76+
:type event_publishing_time: (optional) datetime
7177
"""
7278
self.__discriminator_value = "AlexaSkillEvent.SkillPermissionAccepted"
7379

7480
self.object_type = self.__discriminator_value
75-
super(PermissionAcceptedRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale)
81+
super(PermissionAcceptedRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp)
7682
self.body = body
83+
self.event_creation_time = event_creation_time
84+
self.event_publishing_time = event_publishing_time
7785

7886
def to_dict(self):
7987
# type: () -> Dict[str, object]

ask-sdk-model/ask_sdk_model/events/skillevents/permission_changed_request.py

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,46 +34,54 @@ class PermissionChangedRequest(Request):
3434
:type request_id: (optional) str
3535
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
3636
:type timestamp: (optional) datetime
37-
:param locale: A string indicating the user’s locale. For example: en-US.
38-
:type locale: (optional) str
3937
:param body:
4038
:type body: (optional) ask_sdk_model.events.skillevents.permission_body.PermissionBody
39+
:param event_creation_time:
40+
:type event_creation_time: (optional) datetime
41+
:param event_publishing_time:
42+
:type event_publishing_time: (optional) datetime
4143
4244
"""
4345
deserialized_types = {
4446
'object_type': 'str',
4547
'request_id': 'str',
4648
'timestamp': 'datetime',
47-
'locale': 'str',
48-
'body': 'ask_sdk_model.events.skillevents.permission_body.PermissionBody'
49+
'body': 'ask_sdk_model.events.skillevents.permission_body.PermissionBody',
50+
'event_creation_time': 'datetime',
51+
'event_publishing_time': 'datetime'
4952
}
5053

5154
attribute_map = {
5255
'object_type': 'type',
5356
'request_id': 'requestId',
5457
'timestamp': 'timestamp',
55-
'locale': 'locale',
56-
'body': 'body'
58+
'body': 'body',
59+
'event_creation_time': 'eventCreationTime',
60+
'event_publishing_time': 'eventPublishingTime'
5761
}
5862

59-
def __init__(self, request_id=None, timestamp=None, locale=None, body=None):
60-
# type: (Optional[str], Optional[datetime], Optional[str], Optional[PermissionBody]) -> None
63+
def __init__(self, request_id=None, timestamp=None, body=None, event_creation_time=None, event_publishing_time=None):
64+
# type: (Optional[str], Optional[datetime], Optional[PermissionBody], Optional[datetime], Optional[datetime]) -> None
6165
"""
6266
6367
:param request_id: Represents the unique identifier for the specific request.
6468
:type request_id: (optional) str
6569
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
6670
:type timestamp: (optional) datetime
67-
:param locale: A string indicating the user’s locale. For example: en-US.
68-
:type locale: (optional) str
6971
:param body:
7072
:type body: (optional) ask_sdk_model.events.skillevents.permission_body.PermissionBody
73+
:param event_creation_time:
74+
:type event_creation_time: (optional) datetime
75+
:param event_publishing_time:
76+
:type event_publishing_time: (optional) datetime
7177
"""
7278
self.__discriminator_value = "AlexaSkillEvent.SkillPermissionChanged"
7379

7480
self.object_type = self.__discriminator_value
75-
super(PermissionChangedRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale)
81+
super(PermissionChangedRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp)
7682
self.body = body
83+
self.event_creation_time = event_creation_time
84+
self.event_publishing_time = event_publishing_time
7785

7886
def to_dict(self):
7987
# type: () -> Dict[str, object]

ask-sdk-model/ask_sdk_model/events/skillevents/skill_disabled_request.py

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,39 +33,47 @@ class SkillDisabledRequest(Request):
3333
:type request_id: (optional) str
3434
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
3535
:type timestamp: (optional) datetime
36-
:param locale: A string indicating the user’s locale. For example: en-US.
37-
:type locale: (optional) str
36+
:param event_creation_time:
37+
:type event_creation_time: (optional) datetime
38+
:param event_publishing_time:
39+
:type event_publishing_time: (optional) datetime
3840
3941
"""
4042
deserialized_types = {
4143
'object_type': 'str',
4244
'request_id': 'str',
4345
'timestamp': 'datetime',
44-
'locale': 'str'
46+
'event_creation_time': 'datetime',
47+
'event_publishing_time': 'datetime'
4548
}
4649

4750
attribute_map = {
4851
'object_type': 'type',
4952
'request_id': 'requestId',
5053
'timestamp': 'timestamp',
51-
'locale': 'locale'
54+
'event_creation_time': 'eventCreationTime',
55+
'event_publishing_time': 'eventPublishingTime'
5256
}
5357

54-
def __init__(self, request_id=None, timestamp=None, locale=None):
55-
# type: (Optional[str], Optional[datetime], Optional[str]) -> None
58+
def __init__(self, request_id=None, timestamp=None, event_creation_time=None, event_publishing_time=None):
59+
# type: (Optional[str], Optional[datetime], Optional[datetime], Optional[datetime]) -> None
5660
"""
5761
5862
:param request_id: Represents the unique identifier for the specific request.
5963
:type request_id: (optional) str
6064
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
6165
:type timestamp: (optional) datetime
62-
:param locale: A string indicating the user’s locale. For example: en-US.
63-
:type locale: (optional) str
66+
:param event_creation_time:
67+
:type event_creation_time: (optional) datetime
68+
:param event_publishing_time:
69+
:type event_publishing_time: (optional) datetime
6470
"""
6571
self.__discriminator_value = "AlexaSkillEvent.SkillDisabled"
6672

6773
self.object_type = self.__discriminator_value
68-
super(SkillDisabledRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale)
74+
super(SkillDisabledRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp)
75+
self.event_creation_time = event_creation_time
76+
self.event_publishing_time = event_publishing_time
6977

7078
def to_dict(self):
7179
# type: () -> Dict[str, object]

ask-sdk-model/ask_sdk_model/events/skillevents/skill_enabled_request.py

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,39 +33,47 @@ class SkillEnabledRequest(Request):
3333
:type request_id: (optional) str
3434
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
3535
:type timestamp: (optional) datetime
36-
:param locale: A string indicating the user’s locale. For example: en-US.
37-
:type locale: (optional) str
36+
:param event_creation_time:
37+
:type event_creation_time: (optional) datetime
38+
:param event_publishing_time:
39+
:type event_publishing_time: (optional) datetime
3840
3941
"""
4042
deserialized_types = {
4143
'object_type': 'str',
4244
'request_id': 'str',
4345
'timestamp': 'datetime',
44-
'locale': 'str'
46+
'event_creation_time': 'datetime',
47+
'event_publishing_time': 'datetime'
4548
}
4649

4750
attribute_map = {
4851
'object_type': 'type',
4952
'request_id': 'requestId',
5053
'timestamp': 'timestamp',
51-
'locale': 'locale'
54+
'event_creation_time': 'eventCreationTime',
55+
'event_publishing_time': 'eventPublishingTime'
5256
}
5357

54-
def __init__(self, request_id=None, timestamp=None, locale=None):
55-
# type: (Optional[str], Optional[datetime], Optional[str]) -> None
58+
def __init__(self, request_id=None, timestamp=None, event_creation_time=None, event_publishing_time=None):
59+
# type: (Optional[str], Optional[datetime], Optional[datetime], Optional[datetime]) -> None
5660
"""
5761
5862
:param request_id: Represents the unique identifier for the specific request.
5963
:type request_id: (optional) str
6064
:param timestamp: Provides the date and time when Alexa sent the request as an ISO 8601 formatted string. Used to verify the request when hosting your skill as a web service.
6165
:type timestamp: (optional) datetime
62-
:param locale: A string indicating the user’s locale. For example: en-US.
63-
:type locale: (optional) str
66+
:param event_creation_time:
67+
:type event_creation_time: (optional) datetime
68+
:param event_publishing_time:
69+
:type event_publishing_time: (optional) datetime
6470
"""
6571
self.__discriminator_value = "AlexaSkillEvent.SkillEnabled"
6672

6773
self.object_type = self.__discriminator_value
68-
super(SkillEnabledRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp, locale=locale)
74+
super(SkillEnabledRequest, self).__init__(object_type=self.__discriminator_value, request_id=request_id, timestamp=timestamp)
75+
self.event_creation_time = event_creation_time
76+
self.event_publishing_time = event_publishing_time
6977

7078
def to_dict(self):
7179
# type: () -> Dict[str, object]

0 commit comments

Comments
 (0)