ask_sdk_model.interfaces.monetization.v1 package¶
Submodules¶
Note
Canonical imports have been added in the __init__.py
of the package.
This helps in importing the class directly from the package, than
through the module.
For eg: if package a
has module b
with
class C
, you can do from a import C
instead of
from a.b import C
.
ask_sdk_model.interfaces.monetization.v1.in_skill_product module¶
-
class
ask_sdk_model.interfaces.monetization.v1.in_skill_product.
InSkillProduct
(product_id=None)¶ Bases:
object
Entity to define In Skill Product over which actions will be performed.
Parameters: product_id ((optional) str) – The product ID of In Skill Product. -
attribute_map
= {'product_id': 'productId'}¶
-
deserialized_types
= {'product_id': 'str'}¶
-
supports_multiple_types
= False¶
-
to_dict
()¶ Returns the model properties as a dict
-
to_str
()¶ Returns the string representation of the model
-
ask_sdk_model.interfaces.monetization.v1.purchase_result module¶
-
class
ask_sdk_model.interfaces.monetization.v1.purchase_result.
PurchaseResult
¶ Bases:
enum.Enum
Response from purchase directives: * ACCEPTED - User have accepted the offer to purchase the product * DECLINED - User have declined the offer to purchase the product * NOT_ENTITLED - User tries to cancel/return a product he/she is not entitled to. * ALREADY_PURCHASED - User has already purchased the product * ERROR - An internal error occurred
Allowed enum values: [ACCEPTED, DECLINED, NOT_ENTITLED, ERROR, ALREADY_PURCHASED]
-
ACCEPTED
= 'ACCEPTED'¶
-
ALREADY_PURCHASED
= 'ALREADY_PURCHASED'¶
-
DECLINED
= 'DECLINED'¶
-
ERROR
= 'ERROR'¶
-
NOT_ENTITLED
= 'NOT_ENTITLED'¶
-
to_dict
()¶ Returns the model properties as a dict
-
to_str
()¶ Returns the string representation of the model
-