o
    1_Wc
  ã                   @   sn   d dl Z d dlZd dlZd dlZd dlmZ ejr-d dlmZmZm	Z	m
Z
mZ d dlmZ G dd„ deƒZdS )é    N)ÚEnum)ÚDictÚListÚOptionalÚUnionÚAny)Údatetimec                   @   sL   e Zd ZdZdZdZdZdZdZdd„ Z	d	d
„ Z
dd„ Zdd„ Zdd„ ZdS )ÚStatusaÉ  
    Transaction status for in skill product purchases. * &#39;PENDING_APPROVAL_BY_PARENT&#39; - The transaction is pending approval from parent. * &#39;APPROVED_BY_PARENT&#39; - The transaction was approved by parent and fulfilled successfully.. * &#39;DENIED_BY_PARENT&#39; - The transaction was declined by parent and hence not fulfilled. * &#39;EXPIRED_NO_ACTION_BY_PARENT&#39; - The transaction was expired due to no response from parent and hence not fulfilled. * &#39;ERROR&#39; - The transaction was not fullfiled as there was an error while processing the transaction.



    Allowed enum values: [PENDING_APPROVAL_BY_PARENT, APPROVED_BY_PARENT, DENIED_BY_PARENT, EXPIRED_NO_ACTION_BY_PARENT, ERROR]
    ÚPENDING_APPROVAL_BY_PARENTÚAPPROVED_BY_PARENTÚDENIED_BY_PARENTÚEXPIRED_NO_ACTION_BY_PARENTÚERRORc                 C   s   | j | ji}|S )z&Returns the model properties as a dict)ÚnameÚvalue)ÚselfÚresult© r   úLD:\Flask\env\Lib\site-packages\ask_sdk_model/services/monetization/status.pyÚto_dict*   s   zStatus.to_dictc                 C   s   t  | j¡S )z.Returns the string representation of the model)ÚpprintÚpformatr   ©r   r   r   r   Úto_str0   s   zStatus.to_strc                 C   s   |   ¡ S )zFor `print` and `pprint`)r   r   r   r   r   Ú__repr__5   s   zStatus.__repr__c                 C   s   t |tƒsdS | j|jkS )z&Returns true if both objects are equalF)Ú
isinstancer	   Ú__dict__©r   Úotherr   r   r   Ú__eq__:   s   
zStatus.__eq__c                 C   s
   | |k S )z*Returns true if both objects are not equalr   r   r   r   r   Ú__ne__B   s   
zStatus.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r
   r   r   r   r   r   r   r   r   r    r   r   r   r   r	      s    r	   )r   ÚreÚsixÚtypingÚenumr   ÚTYPE_CHECKINGr   r   r   r   r   r   r	   r   r   r   r   Ú<module>   s   