# coding: utf-8

"""
    IDX API

    Welcome to the IDX API.  # noqa: E501

    The version of the OpenAPI document: v2
    Contact: support@idx.us
    Generated by: https://openapi-generator.tech
"""

from datetime import date, datetime  # noqa: F401
import decimal  # noqa: F401
import functools  # noqa: F401
import io  # noqa: F401
import re  # noqa: F401
import typing  # noqa: F401
import typing_extensions  # noqa: F401
import uuid  # noqa: F401

import frozendict  # noqa: F401

from openapi_client import schemas  # noqa: F401


class MemberSubscriptionGetDto(
    schemas.DictSchema
):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """


    class MetaOapg:
        
        class properties:
            
            
            class type(
                schemas.EnumBase,
                schemas.StrSchema
            ):
            
            
                class MetaOapg:
                    enum_value_to_name = {
                        "Default": "DEFAULT",
                        "Other": "OTHER",
                        "Free": "FREE",
                        "Tier1": "TIER1",
                        "Tier2": "TIER2",
                    }
                
                @schemas.classproperty
                def DEFAULT(cls):
                    return cls("Default")
                
                @schemas.classproperty
                def OTHER(cls):
                    return cls("Other")
                
                @schemas.classproperty
                def FREE(cls):
                    return cls("Free")
                
                @schemas.classproperty
                def TIER1(cls):
                    return cls("Tier1")
                
                @schemas.classproperty
                def TIER2(cls):
                    return cls("Tier2")
            
            
            class serviceStatus(
                schemas.DictSchema
            ):
            
            
                class MetaOapg:
                    
                    class properties:
                        service = schemas.StrSchema
                        
                        
                        class status(
                            schemas.EnumBase,
                            schemas.StrSchema
                        ):
                        
                        
                            class MetaOapg:
                                enum_value_to_name = {
                                    "NEW": "NEW",
                                    "DEACTIVATED": "DEACTIVATED",
                                    "ACTIVE": "ACTIVE",
                                    "EXPIRED": "EXPIRED",
                                }
                            
                            @schemas.classproperty
                            def NEW(cls):
                                return cls("NEW")
                            
                            @schemas.classproperty
                            def DEACTIVATED(cls):
                                return cls("DEACTIVATED")
                            
                            @schemas.classproperty
                            def ACTIVE(cls):
                                return cls("ACTIVE")
                            
                            @schemas.classproperty
                            def EXPIRED(cls):
                                return cls("EXPIRED")
                        __annotations__ = {
                            "service": service,
                            "status": status,
                        }
                
                @typing.overload
                def __getitem__(self, name: typing_extensions.Literal["service"]) -> MetaOapg.properties.service: ...
                
                @typing.overload
                def __getitem__(self, name: typing_extensions.Literal["status"]) -> MetaOapg.properties.status: ...
                
                @typing.overload
                def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
                
                def __getitem__(self, name: typing.Union[typing_extensions.Literal["service", "status", ], str]):
                    # dict_instance[name] accessor
                    return super().__getitem__(name)
                
                
                @typing.overload
                def get_item_oapg(self, name: typing_extensions.Literal["service"]) -> typing.Union[MetaOapg.properties.service, schemas.Unset]: ...
                
                @typing.overload
                def get_item_oapg(self, name: typing_extensions.Literal["status"]) -> typing.Union[MetaOapg.properties.status, schemas.Unset]: ...
                
                @typing.overload
                def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
                
                def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["service", "status", ], str]):
                    return super().get_item_oapg(name)
                
            
                def __new__(
                    cls,
                    *args: typing.Union[dict, frozendict.frozendict, ],
                    service: typing.Union[MetaOapg.properties.service, str, schemas.Unset] = schemas.unset,
                    status: typing.Union[MetaOapg.properties.status, str, schemas.Unset] = schemas.unset,
                    _configuration: typing.Optional[schemas.Configuration] = None,
                    **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
                ) -> 'serviceStatus':
                    return super().__new__(
                        cls,
                        *args,
                        service=service,
                        status=status,
                        _configuration=_configuration,
                        **kwargs,
                    )
            __annotations__ = {
                "type": type,
                "serviceStatus": serviceStatus,
            }
    
    @typing.overload
    def __getitem__(self, name: typing_extensions.Literal["type"]) -> MetaOapg.properties.type: ...
    
    @typing.overload
    def __getitem__(self, name: typing_extensions.Literal["serviceStatus"]) -> MetaOapg.properties.serviceStatus: ...
    
    @typing.overload
    def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
    
    def __getitem__(self, name: typing.Union[typing_extensions.Literal["type", "serviceStatus", ], str]):
        # dict_instance[name] accessor
        return super().__getitem__(name)
    
    
    @typing.overload
    def get_item_oapg(self, name: typing_extensions.Literal["type"]) -> typing.Union[MetaOapg.properties.type, schemas.Unset]: ...
    
    @typing.overload
    def get_item_oapg(self, name: typing_extensions.Literal["serviceStatus"]) -> typing.Union[MetaOapg.properties.serviceStatus, schemas.Unset]: ...
    
    @typing.overload
    def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
    
    def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["type", "serviceStatus", ], str]):
        return super().get_item_oapg(name)
    

    def __new__(
        cls,
        *args: typing.Union[dict, frozendict.frozendict, ],
        type: typing.Union[MetaOapg.properties.type, str, schemas.Unset] = schemas.unset,
        serviceStatus: typing.Union[MetaOapg.properties.serviceStatus, dict, frozendict.frozendict, schemas.Unset] = schemas.unset,
        _configuration: typing.Optional[schemas.Configuration] = None,
        **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes],
    ) -> 'MemberSubscriptionGetDto':
        return super().__new__(
            cls,
            *args,
            type=type,
            serviceStatus=serviceStatus,
            _configuration=_configuration,
            **kwargs,
        )
