
    PIi                     X    d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 	  G d de      Z
y)	    )AbstractObject)AbstractCrudObject)ObjectParser)FacebookRequest)TypeCheckerc            	            e Zd Zd fd	Z G d dej
                        Zd dZi dddddd	d
dddddddddddddddddddddddddddddddddddZed        Z	 xZ
S )!PaymentSubscriptionc                 >    d| _         t        t        |   |||       y )NT)_isPaymentSubscriptionsuperr	   __init__)selffbid	parent_idapi	__class__s       }/var/www/webhook.estador.de/web/meta/bot/venv/lib/python3.12/site-packages/facebook_business/adobjects/paymentsubscription.pyr   zPaymentSubscription.__init__   s    &*#!41$	3G    c                   l    e Zd ZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZy)PaymentSubscription.Fieldamountapp_param_dataapplicationbilling_periodcanceled_reasoncreated_timecurrencyidlast_paymentnext_bill_timenext_period_amountnext_period_currencynext_period_productpayment_statuspending_cancelperiod_start_timeproductstatustesttrial_amounttrial_currencytrial_expiry_timeupdated_timeuserN)__name__
__module____qualname__r   r   r   r   r   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   r.    r   r   Fieldr      s    )#)+%%)153))/%)/%r   r3   c                 p   ddl m} ||||j                  d       i }i }	t        | d   dd| j                  t        ||	      t        dt        |       	      }
|
j                  |       |
j                  |       ||
j                  |||
       |
S |r|
S | j                          |
j                         S )Nr   )	api_utilsz:`success` and `failure` callback only work for batch call.r   GET/NODE)reuse_object)node_idmethodendpointr   param_checkertarget_classapi_typeresponse_parser)successfailure)facebook_business.utilsr5   warningr   _apir   r	   r   
add_params
add_fieldsadd_to_batchassure_callexecute)r   fieldsparamsbatchrA   rB   pendingr5   param_typesenumsrequests              r   api_getzPaymentSubscription.api_get7   s    5=g1W5H


X
Y

!J		%k59,(d;	
 	6"6"   INN??$$r   r   stringr   r   Applicationr   r   r   datetimer   r   r   PaymentEnginePaymentr    r!   r"   r#   r$   r%   boolr&   r'   zunsigned intUser)r(   r)   r*   r+   r,   r-   r.   c                 
    i }|S )Nr2   )clsfield_enum_infos     r   _get_field_enum_infoz(PaymentSubscription._get_field_enum_infoo   s    r   )NNN)NNNNNF)r/   r0   r1   r   r   r3   rR   _field_typesclassmethodr\   __classcell__)r   s   @r   r	   r	      s    H$$ 4%<(( 	} 	(	
 	8 	
 	H 	h 	. 	* 	h 	 	x 	( 	&  	Z!" 	8#$  "'"1L4  r   r	   N)*facebook_business.adobjects.abstractobjectr   .facebook_business.adobjects.abstractcrudobjectr   (facebook_business.adobjects.objectparserr   facebook_business.apir   facebook_business.typecheckerr   r	   r2   r   r   <module>re      s+    F M A 1 5]]r   