
    <@g
                         d dl mZ d dlmZmZmZmZmZ d dlm	Z	m
Z
  G d de
      Zdedee   defd	Zd
eeeef      deeeeef   f   fdZy)    )RequestorOptions)MappingOptionalDictTupleAny)NotRequired	TypedDictc                       e Zd ZU ed   ed<   ed   ed<   ed   ed<   ed   ed<   ed   ed<   ed   ed<   ed   ed	<   ed
   ed<   y)RequestOptionszstr|Noneapi_keystripe_versionstripe_accountstripe_contextzint|Nonemax_network_retriesidempotency_keycontent_typezMapping[str, str]|NoneheadersN)__name__
__module____qualname__r	   __annotations__     V/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/_request_options.pyr   r      s[    $$
++
++
++$Z00 ,,j))122r   r   	requestorrequestreturnc           
      0   |=| j                   | j                  | j                  | j                  | j                  ddddS |j                  d      xs | j                   |j                  d      xs | j                  |j                  d      xs | j                  |j                  d      xs | j                  |j                  d      |j                  d      n| j                  |j                  d      |j                  d	      |j                  d
      dS )zi
    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                 p    | si i fS i }t        |       }dD ]  }||v s|j                  |      ||<    ||fS )z
    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   sU     2v G!WF	 + &=!::c?GCL+ F?r   N)stripe._requestor_optionsr   typingr   r   r   r   r   typing_extensionsr	   r
   r   r!   strr)   r   r   r   <module>r.      sw    6 6 6 43Y 3""n%" "JS!"
>4S>)*r   