
    Ru8h                     .   S SK JrJrJr  S SKJr  S SKJr  S SKJ	r
  \" 5       r\R                  S\S9\" \R                  5      4S\R                  4S jj5       r\R!                  S	\S9\" \R                  5      4S
\S\S\R                  4S jj5       rg)    )	APIRouterDependsHTTPException)database)SubscriptionSettings)subscription/)response_modeldbc                 z     [         R                  " U 5      $ ! [         a  n[        S[	        U5      S9eS nAff = fNi  )status_codedetail)subscription_serviceget_subscription_settings	Exceptionr   str)r   es     RC:\Suresh\moveshuttle\MDcreated\moveengine\app\v1\routers\platform\subscription.pyget_settingsr      s9    <#==bAA <CF;;<s    
:5:z/{account_id}
account_idsettingsc                      [         R                  " XR                  5       U5      $ ! [         a  n[	        S[        U5      S9eS nAff = fr   )r   update_subscription_settingsdictr   r   r   )r   r   r   r   s       r   update_settingsr      sB    <#@@]]_^`aa <CF;;<s   $' 
A	AA	N)fastapir   r   r   app.dbr   #app.v1.models.platform.subscriptionr   app.v1.services.platformr   r   routergetget_mongo_dbMongoDBr   postr   r        r   <module>r(      s    5 5  D I	C 45(/0E0E(F <X%% < 6< _-AB\cdldydy\z < </C <IYIY < C<r'   