+
    rpÐjY/  ã                  óú   € R t ^ RIHt ^ RIHtHtHt ^ RIHt ^RIH	t	 ^RI
HtHtHt ^RIHt ^RIHt ^RIHt ]'       d#   ^R	IHtHt ^R
IHt ^RIHt ^RIHtHt ^RI H!t! Rt" ! R R4      t ! R R4      tR# )a:  
The MIT License (MIT)

Copyright (c) 2015-present Rapptz

Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
)Úannotations)ÚAsyncIteratorÚOptionalÚTYPE_CHECKING)Údatetime)Úutils)Útry_enumÚSKUTypeÚEntitlementType)ÚSKUFlags)ÚObject)ÚSubscription)ÚSnowflakeTimeÚ	Snowflake)ÚGuild)ÚConnectionState)ÚSKUÚEntitlement)ÚUserr   r   c                  óŠ   € ] tR t^5tRtRtR R ltR R lt]R R l4       t	]R R	 l4       t
R
 R ltR^2RRRR/R R lltRtR# )r   a¦  Represents a premium offering as a stock-keeping unit (SKU).

.. versionadded:: 2.4

Attributes
-----------
id: :class:`int`
    The SKU's ID.
type: :class:`SKUType`
    The type of the SKU.
application_id: :class:`int`
    The ID of the application that the SKU belongs to.
name: :class:`str`
    The consumer-facing name of the premium offering.
slug: :class:`str`
    A system-generated URL slug based on the SKU name.
c               ó    € V ^8„  d   QhRRRR/# )é   Ústater   ÚdataÚ
SKUPayload© )Úformats   "Ú=/opt/hermes/.venv/lib/python3.14/site-packages/discord/sku.pyÚ__annotate__ÚSKU.__annotate__R   s   € ÷ )ñ ) ð )¸
ñ )ó    c               	óú   € Wn         \        VR ,          4      V n        \        \        VR,          4      V n        \        VR,          4      V n        VR,          V n        VR,          V n        VR,          V n	        R# )ÚidÚtypeÚapplication_idÚnameÚslugÚflagsN)
Ú_stateÚintr"   r   r	   r#   r$   r%   r&   Ú_flags©Úselfr   r   s   &$$r   Ú__init__ÚSKU.__init__R   s\   € Ø',ŒÜ˜4 �:“ˆŒÜ%¤g¨t°F­|Ó<ˆŒ	Ü#& tÐ,<Õ'=Ó#>ˆÔØ˜f�ˆŒ	Ø˜f�ˆŒ	Ø �=ˆŽr    c               ó   € V ^8„  d   QhRR/# ©r   ÚreturnÚstrr   )r   s   "r   r   r   [   s   € ÷ Kñ K˜#ñ Kr    c                	óZ   € R V P                    RV P                  : RV P                  : R2# )z<SKU id=z name=z slug=Ú>)r"   r%   r&   ©r,   s   &r   Ú__repr__ÚSKU.__repr__[   s)   € Ø˜$Ÿ'™'˜ &¨¯©©°V¸D¿I¹I¹=ÈÐJÐJr    c               ó   € V ^8„  d   QhRR/# )r   r1   r   r   )r   s   "r   r   r   _   s   € ÷ 1ñ 1�xñ 1r    c                óB   € \         P                  ! V P                  4      # )z0:class:`SKUFlags`: Returns the flags of the SKU.)r   Ú_from_valuer*   r5   s   &r   r'   Ú	SKU.flags^   s   € ô ×#Ò# D§K¡KÓ0Ð0r    c               ó   € V ^8„  d   QhRR/# ©r   r1   r   r   )r   s   "r   r   r   d   ó   € ÷ -ñ -˜Hñ -r    c                óB   € \         P                  ! V P                  4      # )zC:class:`datetime.datetime`: Returns the sku's creation time in UTC.©r   Úsnowflake_timer"   r5   s   &r   Ú
created_atÚSKU.created_atc   ó   € ô ×#Ò# D§G¡GÓ,Ð,r    c               ó    € V ^8„  d   QhRRRR/# )r   Úsubscription_idr)   r1   r   r   )r   s   "r   r   r   h   s   € ÷ :ñ :¸ð :À<ñ :r    c             ƒ  óª   "  € V P                   P                  P                  V P                  V4      G Rj  x€L
 p\	        W P                   R7      #  L5i)aƒ  |coro|

Retrieves a :class:`.Subscription` with the specified ID.

.. versionadded:: 2.5

Parameters
-----------
subscription_id: :class:`int`
    The subscription's ID to fetch from.

Raises
-------
NotFound
    An subscription with this ID does not exist.
HTTPException
    Fetching the subscription failed.

Returns
--------
:class:`.Subscription`
    The subscription you requested.
N©r   r   )r(   ÚhttpÚget_sku_subscriptionr"   r   )r,   rF   r   s   "" r   Úfetch_subscriptionÚSKU.fetch_subscriptionh   s?   é € ð0 —[‘[×%Ñ%×:Ñ:¸4¿7¹7ÀOÓT×TˆÜ ¯[©[Ô9Ð9ñ Uùs   ‚4A¶A·AÚlimitÚbeforeNÚafterc          
     ó,   € V ^8„  d   QhRRRRRRRRRR	/# )
r   rM   úOptional[int]rN   zOptional[SnowflakeTime]rO   Úuserr   r1   zAsyncIterator[Subscription]r   )r   s   "r   r   r   ƒ   sE   € ÷ r>ñ r>ð ðr>ð (ð	r>ð
 'ðr>ð ðr>ð 
%ñr>r    c              ón  a aa"  € Ve   Ve   \        R4      hS P                  P                  P                  oR VV V3R llpR VV V3R llp\	        V\
        4      '       d#   \        \        P                  ! VRR7      R	7      p\	        V\
        4      '       d#   \        \        P                  ! VR
R7      R	7      pV'       d   YRr‡MYcr‡ Vf   ^dM\        V^d4      p	V	^8  d   R# V! W˜V4      G Rj  x€L
 w  r¨p\        V
4      ^d8  d   ^ pV
 F  p\        VS P                  R7      5x € K  	  Kg   L>5i)aZ  Retrieves an :term:`asynchronous iterator` of the :class:`.Subscription` that SKU has.

.. versionadded:: 2.5

Examples
---------

Usage ::

    async for subscription in sku.subscriptions(limit=100, user=user):
        print(subscription.user_id, subscription.current_period_end)

Flattening into a list ::

    subscriptions = [subscription async for subscription in sku.subscriptions(limit=100, user=user)]
    # subscriptions is now a list of Subscription...

All parameters are optional.

Parameters
-----------
limit: Optional[:class:`int`]
    The number of subscriptions to retrieve. If ``None``, it retrieves every subscription for this SKU.
    Note, however, that this would make it a slow operation. Defaults to ``100``.
before: Optional[Union[:class:`~discord.abc.Snowflake`, :class:`datetime.datetime`]]
    Retrieve subscriptions before this date or entitlement.
    If a datetime is provided, it is recommended to use a UTC aware datetime.
    If the datetime is naive, it is assumed to be local time.
after: Optional[Union[:class:`~discord.abc.Snowflake`, :class:`datetime.datetime`]]
    Retrieve subscriptions after this date or entitlement.
    If a datetime is provided, it is recommended to use a UTC aware datetime.
    If the datetime is naive, it is assumed to be local time.
user: :class:`~discord.abc.Snowflake`
    The user to filter by.

Raises
-------
HTTPException
    Fetching the subscriptions failed.
TypeError
    Both ``after`` and ``before`` were provided, as Discord does not
    support this type of pagination.

Yields
--------
:class:`.Subscription`
    The subscription with the SKU.
Nz?subscriptions pagination does not support both before and afterc               ó$   € V ^8„  d   QhRRRRRR/# )r   Úretriever)   rN   úOptional[Snowflake]rM   rQ   r   )r   s   "r   r   Ú'SKU.subscriptions.<locals>.__annotate__Â   s#   € ÷ 
	'ñ 
	'¨Sð 
	'Ð:Mð 
	'ÐVcñ 
	'r    c              “  ó  <"  € V'       d   VP                   MR pS! SP                   W0SP                   R7      G R j  x€L
 pV'       d:   Ve   V\        V4      ,          p\        \        V^ ,          R,          4      R7      pWAV3#  LI5i)N)rN   rM   Úuser_idr"   ©r"   ©r"   Úlenr   r)   )rU   rN   rM   Ú	before_idr   Úendpointr,   rR   s   &&&  €€€r   Ú_before_strategyÚ+SKU.subscriptions.<locals>._before_strategyÂ   sn   øé € ß%+˜Ÿ	š	°ˆIÙ! $§'¡'°)ÐUY×U\ÑU\Ô]×]ˆDçØÒ$ØœS ›YÕ&�Eä¤3 t¨A¥w¨t¥}Ó#5Ô6�à Ð&Ð&ñ ^ùs   ƒ9B¼B½BÁ	>Bc               ó$   € V ^8„  d   QhRRRRRR/# )r   rU   r)   rO   rV   rM   rQ   r   )r   s   "r   r   rW   Î   s#   € ÷ 	&ñ 	&¨Cð 	&Ð8Kð 	&ÐTañ 	&r    c              “  ó  <"  € V'       d   VP                   MR pS! SP                   VV SP                   R7      G R j  x€L
 pV'       d:   Ve   V\        V4      ,          p\        \        VR,          R,          4      R7      pWAV3#  LI5i)N)rO   rM   rY   r"   rZ   éÿÿÿÿr[   )rU   rO   rM   Úafter_idr   r^   r,   rR   s   &&&  €€€r   Ú_after_strategyÚ*SKU.subscriptions.<locals>._after_strategyÎ   sv   øé € ß#(�u—x’x¨dˆHÙ!Ø—‘ØØØŸ™ô	÷ ˆD÷ ØÒ$ØœS ›YÕ&�Eä¤# d¨2¥h¨t¥nÓ"5Ô6�à Ð%Ð%ñùs   ƒ:B	½B¾B	Á
>B	F)ÚhighrZ   TrH   )Ú	TypeErrorr(   rI   Úlist_sku_subscriptionsÚ
isinstancer   r   r   Útime_snowflakeÚminr\   r   )r,   rM   rN   rO   rR   r_   re   Ústrategyr   rU   r   Úer^   s   f$$$d       @r   ÚsubscriptionsÚSKU.subscriptionsƒ   s  úé € ðr Ò %Ò"3ÜÐ]Ó^Ð^ð —;‘;×#Ñ#×:Ñ:ˆ÷
	'ò 
	'÷	&ò 	&ô" �fœh×'Ò'Üœu×3Ò3°FÀÔGÔHˆFÜ�eœX×&Ò&Üœe×2Ò2°5¸tÔDÔEˆEçØ.‘eà-�eàØ#šm‘s´°U¸C³ˆHØ˜!Œ|Ùá'/°ÀÓ'G×!GÑˆD˜ô �4‹y˜3ŒØ�ã�Ü"¨°·±Ô=Õ=ó ñ "Hùs   …CD5Ã-D5Ã4D3Ã5?D5)r*   r(   r$   r"   r%   r&   r#   )r(   r"   r#   r$   r%   r&   r*   )Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ú	__slots__r-   r6   Úpropertyr'   rB   rK   ro   Ú__static_attributes__r   r    r   r   r   5   ss   † ñð$€Iõ)õKð ô1ó ð1ð ô-ó ð-õ:ð6r>ð  "ðr>ð +/ð	r>ð
 *.÷r>ó r>r    c                  óœ   € ] tR t^øtRtRtR R ltR R lt]R R l4       t	]R R	 l4       t
]R
 R l4       tR R ltR R ltR R ltRtR# )r   a'  Represents an entitlement from user or guild which has been granted access to a premium offering.

.. versionadded:: 2.4

Attributes
-----------
id: :class:`int`
    The entitlement's ID.
sku_id: :class:`int`
    The ID of the SKU that the entitlement belongs to.
application_id: :class:`int`
    The ID of the application that the entitlement belongs to.
user_id: Optional[:class:`int`]
    The ID of the user that is granted access to the entitlement.
type: :class:`EntitlementType`
    The type of the entitlement.
deleted: :class:`bool`
    Whether the entitlement has been deleted.
starts_at: Optional[:class:`datetime.datetime`]
    A UTC start date which the entitlement is valid. Not present when using test entitlements.
ends_at: Optional[:class:`datetime.datetime`]
    A UTC date which entitlement is no longer valid. Not present when using test entitlements.
guild_id: Optional[:class:`int`]
    The ID of the guild that is granted access to the entitlement
consumed: :class:`bool`
    For consumable items, whether the entitlement has been consumed.
c               ó    € V ^8„  d   QhRRRR/# )r   r   r   r   ÚEntitlementPayloadr   )r   s   "r   r   ÚEntitlement.__annotate__#  s   € ÷ :ñ :˜oð :Ð5Gñ :r    c                	ó:  € Wn         \        VR ,          4      V n        \        VR,          4      V n        \        VR,          4      V n        \
        P                  ! VR4      V n        \        \        VR,          4      V n
        VR,          V n        \
        P                  ! VP                  RR4      4      V n        \
        P                  ! VP                  RR4      4      V n        \
        P                  ! VR	4      V n        VP                  R
R4      V n        R# )r"   Úsku_idr$   rY   r#   ÚdeletedÚ	starts_atNÚends_atÚguild_idÚconsumedF)r(   r)   r"   r~   r$   r   Ú_get_as_snowflakerY   r   r
   r#   r   Ú
parse_timeÚgetr€   r�   r‚   rƒ   r+   s   &&&r   r-   ÚEntitlement.__init__#  sÌ   € Ø',ŒÜ˜4 �:“ˆŒÜ˜t H�~Ó.ˆŒÜ#& tÐ,<Õ'=Ó#>ˆÔÜ&+×&=Ò&=¸dÀIÓ&NˆŒÜ%-¬o¸tÀF½|Ó%LˆŒ	Ø! )�_ˆŒÜ-2×-=Ò-=¸d¿h¹hÀ{ÐTXÓ>YÓ-ZˆŒÜ+0×+;Ò+;¸D¿H¹HÀYÐPTÓ<UÓ+VˆŒÜ',×'>Ò'>¸tÀZÓ'PˆŒØ"Ÿh™h z°5Ó9ˆŽr    c               ó   € V ^8„  d   QhRR/# r0   r   )r   s   "r   r   r|   0  s   € ÷ Wñ W˜#ñ Wr    c                	óX   € R V P                    RV P                  : RV P                   R2# )z<Entitlement id=z type=z	 user_id=r4   )r"   r#   rY   r5   s   &r   r6   ÚEntitlement.__repr__0  s*   € Ø! $§'¡' ¨&°·±±¸YÀtÇ|Á|ÀnÐTUÐVÐVr    c               ó   € V ^8„  d   QhRR/# )r   r1   zOptional[User]r   )r   s   "r   r   r|   4  s   € ÷ 2ñ 2�nñ 2r    c                ól   € V P                   f   R# V P                  P                  V P                   4      # )zLOptional[:class:`User`]: The user that is granted access to the entitlement.N)rY   r(   Úget_userr5   s   &r   rR   ÚEntitlement.user3  s*   € ð �<‰<ÒÙØ�{‰{×#Ñ# D§L¡LÓ1Ð1r    c               ó   € V ^8„  d   QhRR/# )r   r1   zOptional[Guild]r   )r   s   "r   r   r|   ;  s   € ÷ 5ñ 5�ñ 5r    c                óL   € V P                   P                  V P                  4      # )zNOptional[:class:`Guild`]: The guild that is granted access to the entitlement.)r(   Ú
_get_guildr‚   r5   s   &r   ÚguildÚEntitlement.guild:  s   € ð �{‰{×%Ñ% d§m¡mÓ4Ð4r    c               ó   € V ^8„  d   QhRR/# r=   r   )r   s   "r   r   r|   @  r>   r    c                óB   € \         P                  ! V P                  4      # )zK:class:`datetime.datetime`: Returns the entitlement's creation time in UTC.r@   r5   s   &r   rB   ÚEntitlement.created_at?  rD   r    c               ó   € V ^8„  d   QhRR/# )r   r1   Úboolr   )r   s   "r   r   r|   D  s   € ÷ .ñ .˜Dñ .r    c                óf   € V P                   f   R# \        P                  ! 4       V P                   8¬  # )zj:class:`bool`: Returns ``True`` if the entitlement is expired. Will be always False for test entitlements.F)r�   r   Úutcnowr5   s   &r   Ú
is_expiredÚEntitlement.is_expiredD  s$   € à�<‰<ÒÙÜ�|Š|‹~ §¡Ñ-Ð-r    c               ó   € V ^8„  d   QhRR/# ©r   r1   ÚNoner   )r   s   "r   r   r|   J  s   € ÷ Qñ Q˜tñ Qr    c              ƒ  ó–   "  € V P                   P                  P                  V P                  V P                  4      G Rj  x€L
  R#  L5i)z°|coro|

Marks a one-time purchase entitlement as consumed.

Raises
-------
NotFound
    The entitlement could not be found.
HTTPException
    Consuming the entitlement failed.
N)r(   rI   Úconsume_entitlementr$   r"   r5   s   &r   ÚconsumeÚEntitlement.consumeJ  s1   é € ð �k‰k×Ñ×2Ñ2°4×3FÑ3FÈÏÉÓP×PÔPùó   ‚>A	Á AÁA	c               ó   € V ^8„  d   QhRR/# rž   r   )r   s   "r   r   r|   Y  s   € ÷ Pñ P˜dñ Pr    c              ƒ  ó–   "  € V P                   P                  P                  V P                  V P                  4      G Rj  x€L
  R#  L5i)z•|coro|

Deletes the entitlement.

Raises
-------
NotFound
    The entitlement could not be found.
HTTPException
    Deleting the entitlement failed.
N)r(   rI   Údelete_entitlementr$   r"   r5   s   &r   ÚdeleteÚEntitlement.deleteY  s1   é € ð �k‰k×Ñ×1Ñ1°$×2EÑ2EÀtÇwÁwÓO×OÔOùr¤   )r(   r$   rƒ   r   r�   r‚   r"   r~   r€   r#   rY   N)r(   r"   r~   r$   rY   r#   r   r€   r�   r‚   rƒ   )rq   rr   rs   rt   ru   rv   r-   r6   rw   rR   r’   rB   r›   r¢   r¨   rx   r   r    r   r   r   ø   sl   † ñð8€Iõ:õWð ô2ó ð2ð ô5ó ð5ð ô-ó ð-õ.õQ÷Pñ Pr    N)#ru   Ú
__future__r   Útypingr   r   r   r   Ú r   Úenumsr   r	   r
   r'   r   Úobjectr   Úsubscriptionr   Úabcr   r   r’   r   r   r   Ú	types.skur   r   r   r{   rR   r   Ú__all__r   r    r   Ú<module>r³      sb   ðñõ0 #ç 9Ñ 9å å ß 5Ñ 5Ý Ý Ý &çß-ÝÝ&÷õ ð€÷@>ñ @>÷FnPó nPr    