
    Ch
                         S SK Jr  S SKJrJrJrJrJr  S SKJ	r	J
r
   " S S\
5      rS\S\\   S\4S	 jrS
\\\\4      S\\\\\4   4   4S jrg)    )RequestorOptions)MappingOptionalDictTupleAny)NotRequired	TypedDictc                       \ rS rSr% \S   \S'   \S   \S'   \S   \S'   \S   \S'   \S   \S'   \S   \S	'   \S   \S
'   \S   \S'   Srg)RequestOptions   zstr|Noneapi_keystripe_versionstripe_accountstripe_contextzint|Nonemax_network_retriesidempotency_keycontent_typezMapping[str, str]|Noneheaders N)__name__
__module____qualname____firstlineno__r	   __annotations____static_attributes__r       Z/home/kali/devsecops-assessor/venv/lib/python3.13/site-packages/stripe/_request_options.pyr   r      s[    $$
++
++
++$Z00 ,,j))122r   r   	requestorrequestreturnc           
      \   Uc=  U R                   U R                  U R                  U R                  U R                  SSSS.$ UR                  S5      =(       d    U R                   UR                  S5      =(       d    U R                  UR                  S5      =(       d    U R                  UR                  S5      =(       d    U R                  UR                  S5      b  UR                  S5      OU R                  UR                  S5      UR                  S	5      UR                  S
5      S.$ )z]
Merge a client and request object, giving precedence to the values from
the request object.
N)r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   )r   r   r   r   r   get)r   r    s     r   merge_optionsr$      s
     (('66'66'66#,#@#@# 	
 		
 ;;y)>Y->->!++&67 $##!++&67 $##!++&67 $##;;,-9  '{{+@A**";;'89N3;;y) r   dc                 ~    U (       d  0 0 4$ 0 n[        U 5      nS H  nX2;   d  M
  UR                  U5      X'   M     X4$ )zx
Extracts a RequestOptions object from a dict, and returns a tuple of
the RequestOptions object and the remaining dict.
)r   r   r   r   r   r   r   r   )dictpop)r%   optionsd_copykeys       r   extract_options_from_dictr,   6   sJ     2v G!WF	 =!::c?GL	 ?r   N)stripe._requestor_optionsr   typingr   r   r   r   r   typing_extensionsr	   r
   r   r$   strr,   r   r   r   <module>r1      sw    6 6 6 43Y 3""n%" "JS!"
>4S>)*r   