
    hi)                    @   d dl mZ d dlmZ d dlZddlmZmZmZm	Z	m
Z
mZmZ ddlmZmZ ddlmZ ddlmZmZ dd	lmZmZmZmZ dd
lmZ ddlmZ ddlmZ ddl m!Z! ddgZ" G d de      Z# G d de      Z$ G d d      Z% G d d      Z& G d d      Z' G d d      Z(y)    )annotations)LiteralN   )BodyOmitQueryHeadersNotGivenomit	not_given)maybe_transformasync_maybe_transform)cached_property)SyncAPIResourceAsyncAPIResource)to_raw_response_wrapperto_streamed_response_wrapperasync_to_raw_response_wrapper"async_to_streamed_response_wrapper)make_request_options) auto_recharge_pref_update_params)AutoRechargePrefListResponse)AutoRechargePrefUpdateResponseAutoRechargePrefsResourceAsyncAutoRechargePrefsResourcec            
          e Zd Zedd       Zed	d       Zeeeeeddded		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d
dZddded	 	 	 	 	 	 	 	 	 ddZ	y)r   c                    t        |       S a  
        This property can be used as a prefix for any HTTP method call to return
        the raw response object instead of the parsed content.

        For more information, see https://www.github.com/team-telnyx/telnyx-python#accessing-raw-response-data-eg-headers
        )(AutoRechargePrefsResourceWithRawResponseselfs    o/mnt/e/genesis-system/.venv_telnyx/lib/python3.12/site-packages/telnyx/resources/payment/auto_recharge_prefs.pywith_raw_responsez+AutoRechargePrefsResource.with_raw_response   s     8==    c                    t        |       S z
        An alternative to `.with_raw_response` that doesn't eagerly read the response body.

        For more information, see https://www.github.com/team-telnyx/telnyx-python#with_streaming_response
        ).AutoRechargePrefsResourceWithStreamingResponser    s    r"   with_streaming_responsez1AutoRechargePrefsResource.with_streaming_response&   s     >dCCr$   N	enabledinvoice_enabled
preferencerecharge_amountthreshold_amountextra_headersextra_query
extra_bodytimeoutc       	            | j                  dt        |||||dt        j                        t	        ||||	      t
              S )  
        Update payment auto recharge preferences.

        Args:
          enabled: Whether auto recharge is enabled.

          preference: The payment preference for auto recharge.

          recharge_amount: The amount to recharge the account, the actual recharge amount will be the
              amount necessary to reach the threshold amount plus the recharge amount.

          threshold_amount: The threshold amount at which the account will be recharged.

          extra_headers: Send extra headers

          extra_query: Add additional query parameters to the request

          extra_body: Add additional JSON properties to the request

          timeout: Override the client-level default timeout for this request, in seconds
        /payment/auto_recharge_prefsr*   r+   r,   r-   r.   r/   r0   r1   r2   bodyoptionscast_to)_patchr   r   AutoRechargePrefUpdateParamsr   r   
r!   r*   r+   r,   r-   r.   r/   r0   r1   r2   s
             r"   updatez AutoRechargePrefsResource.update/   s_    H {{* &'6",'6(8 1MM	 )+Q[el 3  
 	
r$   r7   c          	     L    | j                  dt        ||||      t              S ).Returns the payment auto recharge preferences.r5   r7   r:   r;   _getr   r   r!   r/   r0   r1   r2   s        r"   listzAutoRechargePrefsResource.liste   s5     yy*(+Q[el 1  
 	
r$   )returnr   )rG   r'   r*   bool | Omitr+   rI   r,   z&Literal['credit_paypal', 'ach'] | Omitr-   
str | Omitr.   rJ   r/   Headers | Noner0   Query | Noner1   Body | Noner2   'float | httpx.Timeout | None | NotGivenrG   r   
r/   rK   r0   rL   r1   rM   r2   rN   rG   r   
__name__
__module____qualname__r   r#   r(   r   r   r?   rF    r$   r"   r   r      s    > > D D  $'+=A&*'+ )-$("&;D4
 4
 %	4

 ;4
 $4
 %4
 &4
 "4
  4
 94
 
(4
v )-$("&;D

 &
 "
  
 9
 
&
r$   c            
          e Zd Zedd       Zed	d       Zeeeeeddded		 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 d
dZddded	 	 	 	 	 	 	 	 	 ddZ	y)r   c                    t        |       S r   )-AsyncAutoRechargePrefsResourceWithRawResponser    s    r"   r#   z0AsyncAutoRechargePrefsResource.with_raw_responsez   s     =TBBr$   c                    t        |       S r&   )3AsyncAutoRechargePrefsResourceWithStreamingResponser    s    r"   r(   z6AsyncAutoRechargePrefsResource.with_streaming_response   s     C4HHr$   Nr)   c       	           K   | j                  dt        |||||dt        j                         d{   t	        ||||	      t
               d{   S 7 $7 w)r4   r5   r6   Nr7   r8   )r<   r   r   r=   r   r   r>   s
             r"   r?   z%AsyncAutoRechargePrefsResource.update   sx     H [[*,&'6",'6(8 1MM	 	 )+Q[el 3 ! 
 
 	
	
s!   0AA
AAAAr7   c          	     h   K   | j                  dt        ||||      t               d{   S 7 w)rA   r5   r7   rB   NrC   rE   s        r"   rF   z#AsyncAutoRechargePrefsResource.list   sC      YY*(+Q[el 1  
 
 	
 
s   )202)rG   rW   )rG   rY   rH   rO   rP   rT   r$   r"   r   r   y   s    C C I I  $'+=A&*'+ )-$("&;D4
 4
 %	4

 ;4
 $4
 %4
 &4
 "4
  4
 94
 
(4
v )-$("&;D

 &
 "
  
 9
 
&
r$   c                      e Zd ZddZy)r   c                z    || _         t        |j                        | _        t        |j                        | _        y N)_auto_recharge_prefsr   r?   rF   r!   auto_recharge_prefss     r"   __init__z1AutoRechargePrefsResourceWithRawResponse.__init__   s6    $7!-&&
 ,$$
	r$   Nra   r   rG   NonerQ   rR   rS   rb   rT   r$   r"   r   r          
r$   r   c                      e Zd ZddZy)rW   c                z    || _         t        |j                        | _        t        |j                        | _        y r^   )r_   r   r?   rF   r`   s     r"   rb   z6AsyncAutoRechargePrefsResourceWithRawResponse.__init__   s6    $7!3&&
 2$$
	r$   Nra   r   rG   rd   re   rT   r$   r"   rW   rW      rf   r$   rW   c                      e Zd ZddZy)r'   c                z    || _         t        |j                        | _        t        |j                        | _        y r^   )r_   r   r?   rF   r`   s     r"   rb   z7AutoRechargePrefsResourceWithStreamingResponse.__init__   s6    $7!2&&
 1$$
	r$   Nrc   re   rT   r$   r"   r'   r'      rf   r$   r'   c                      e Zd ZddZy)rY   c                z    || _         t        |j                        | _        t        |j                        | _        y r^   )r_   r   r?   rF   r`   s     r"   rb   z<AsyncAutoRechargePrefsResourceWithStreamingResponse.__init__   s6    $7!8&&
 7$$
	r$   Nri   re   rT   r$   r"   rY   rY      rf   r$   rY   ))
__future__r   typing_extensionsr   httpx_typesr   r   r   r	   r
   r   r   _utilsr   r   _compatr   	_resourcer   r   	_responser   r   r   r   _base_clientr   types.paymentr   .types.payment.auto_recharge_pref_list_responser   0types.payment.auto_recharge_pref_update_responser   __all__r   r   r   rW   r'   rY   rT   r$   r"   <module>r{      s    # %  K K K < & :  1 = Z ^&(H
I[
 [
|[
%5 [
|	
 	
	
 	
	
 	
	
 	
r$   