
    k)i                         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	 G d d	e	      Z
 G d
 de	      Z G d de	      Zy)    )datetime)Optional)Field)
BaseSchema)SplitPaymentTypesc                       e Zd ZU  ed      Zee   ed<    ed      Zee	   ed<    ed      Z
ee   ed<    ed      Zee   ed	<    ed
      Zee   ed<   y)SplitPaymentRequestBasezQuantity of line itemdescriptionsequence4A split could be done in two ways, percent or amount
split_typeValue of the split being donesplit_value0Billing date and time of split as unix timestampbilling_date,Due date and time of split as unix timestampdue_dateN)__name__
__module____qualname__r   r   r   int__annotations__r   r   r   floatr   r   r        u/var/www/html/hwPaymentPortal-be-dev/hw-payment-portal-api/src/apps/payment_requests/schemas/split_payment_request.pyr	   r	      sz    #0GHHhsmH.3J/J*+  $)5T#UK%U',F(L(8$  $)B$Hhx  r   r	   c                   n    e Zd ZU  ed      Zeed<    ed      Zee	   ed<    ed      Z
ee   ed<   y)	SplitPaymentRequestSchemazId of Line Item resourcer
   idz-Paid date and time of split as unix timestamp	paid_datez%Calculated final payable split amount
due_amountN)r   r   r   r   r    r   r   r!   r   r   r"   r   r   r   r   r   r      sE     :;B;$)C%Ix!  #(;#J r   r   c                       e Zd ZU  ed      Zeed<    ed      Zeed<    ed      Z	e
ed<    ed      Ze
ed	<    ed
      Zeed<   y)SplitPaymentRequestCreater   r
   r   r   r   r   r   r   r   (Calculated amount of this split in centscalculated_valueN)r   r   r   r   r   r   r   r   r   r   r   r   r&   r   r   r   r$   r$       sj    $)J%J!  +JKKK"FL(  BHh  $>e r   r$   c                   L    e Zd ZU  ed      Zee   ed<    ed      Ze	ed<   y)SplitPaymentRequestUpdatezID of the splitr
   	object_idr%   r&   N)
r   r   r   r   r)   r   r   r   r&   r   r   r   r   r(   r(   0   s+    $1BCIx}C#>e r   r(   N)r   typingr   pydanticr   src.apps.base.schemas.commonr   src.apps.payment_requests.enumsr   r	   r   r$   r(   r   r   r   <module>r.      sG       3 =j  7  7   7 r   