
    <@g                    .   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	 d dl
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mZmZ d d
lmZmZmZmZmZmZ er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d   ed         Z)e)e)jT                  _+        y)    )ExpandableField)
ListObject)ListableAPIResource)RequestOptions)StripeObject)APIResourceTestHelpers)UpdateableAPIResource)class_method_variantsanitize_id)ClassVarDictListOptionalcastoverload)LiteralNotRequiredType	TypedDictUnpackTYPE_CHECKING)BalanceTransaction)Card)
Cardholder)Token)Transactionc                   Z
   e Zd ZU dZdZeed      ed<    G d de      Z	 G d de      Z
 G d d	e      Z G d
 de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d de      Z G d  d!e      Z G d" d#e      Z G d$ d%e      Z G d& d'e      Z G d( d)e      Z G d* d+e      Z G d, d-e      Z G d. d/e      Z  G d0 d1e      Z! G d2 d3e      Z" G d4 d5e      Z# G d6 d7e      Z$ G d8 d9e      Z% G d: d;e      Z& G d< d=e      Z' G d> d?e      Z( G d@ dAe      Z) G dB dCe      Z* G dD dEe      Z+ G dF dGe      Z, G dH dIe      Z- G dJ dKe      Z. G dL dMe      Z/ G dN dOe      Z0 G dP dQe      Z1 G dR dSe      Z2 G dT dUe      Z3 G dV dWe      Z4 G dX dYe      Z5 G dZ d[e      Z6 G d\ d]e      Z7 G d^ d_e      Z8 G d` dae      Z9 G db dce      Z: G dd dee      Z; G df dge      Z< G dh die      Z= G dj dke      Z> G dl dme      Z? G dn doe      Z@ G dp dqe      ZAeBedr<   	 eCe	   eds<   	 eDedt<   	 edu   edv<   	 eEdw   edx<   	 dyedz<   	 eCeFd{      ed|<   	 eBed}<   	 eGed~<   	 eCe
   ed<   	 eCeEe      ed<   	 eCe   ed<   	 eGed<   	 eDed<   	 eBed<   	 eGed<   	 eed<   eHeGeGf   ed<   	 eCe   ed<   	 ed   ed<   	 eCe   ed<   	 eEe   ed<   	 ed   ed<   	 eCeFd      ed<   	 eEd   ed<   	 eCe   ed<   	 eed<   eCeD   ed<   	 eCeG   ed<   	 eIdeGdeJd   dd fd       ZKeLeMdeGdeJd   dd fd              ZNeLdeJd   dd fd       ZN eOd      deJd   dd fd       ZNeIdeGdeJd   dd fd       ZPeLeMdeGdeJd   dd fd              ZQeLdeJd   dd fd       ZQ eOd      deJd   dd fd       ZQeIdeGdeJd   dd fd       ZReLeMdeGdeJd   dd fd              ZSeLdeJd   dd fd       ZS eOd      deJd   dd fd       ZSeIdeGdeJd   dd fd       ZTeLeMdeGdeJd   dd fd              ZUeLdeJd   dd fd       ZU eOd      deJd   dd fd       ZUeIdeJd   deVd    fd       ZWeIdeJd   deVd    fd       ZXeIdeGdeJd   dd fd       ZYeIdeGdeJd   dd fd       ZZeIdeGdeJd   dd fd       Z[eIdeGdeJd   dd fd       Z\ G d de]d          Z^e_d        Z`e	e
eeeeeeeed
Zay)Authorizationa  
    When an [issued card](https://stripe.com/docs/issuing) is used to make a purchase, an Issuing `Authorization`
    object is created. [Authorizations](https://stripe.com/docs/issuing/purchases/authorizations) must be approved for the
    purchase to be completed successfully.

    Related guide: [Issued card authorizations](https://stripe.com/docs/issuing/purchases/authorizations)
    zissuing.authorizationOBJECT_NAMEc                   0    e Zd ZU ee   ed<   	 ee   ed<   y)Authorization.AmountDetailsatm_feecashback_amountN__name__
__module____qualname__r   int__annotations__     \/var/www/html/AdoubleTech/venv/lib/python3.12/site-packages/stripe/issuing/_authorization.pyAmountDetailsr!   -   s"    #	 "#&	r+   r-   c                       e Zd ZU  G d de      Z G d de      Zee   ed<   	 eed      ed<   	 ee   ed<   	 eed	      ed
<   	 eedZ	y)Authorization.Fleetc                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)(Authorization.Fleet.CardholderPromptDataalphanumeric_id	driver_idodometerunspecified_iduser_idvehicle_numberN)r%   r&   r'   r   strr)   r(   r*   r+   r,   CardholderPromptDatar1   8   sf    %c]*  }$ sm# %SM) c]" %SM)r+   r9   c                       e Zd ZU  G d de      Z G d de      Z G d de      Zee   ed<   	 ee   ed<   	 ee   ed	<   	 eeed
Z	y)%Authorization.Fleet.ReportedBreakdownc                       e Zd ZU ee   ed<   y)*Authorization.Fleet.ReportedBreakdown.Fuelgross_amount_decimalNr%   r&   r'   r   r8   r)   r*   r+   r,   Fuelr=   S       &.sm3r+   r@   c                       e Zd ZU ee   ed<   y)-Authorization.Fleet.ReportedBreakdown.NonFuelr>   Nr?   r*   r+   r,   NonFuelrC   Y   rA   r+   rD   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y))Authorization.Fleet.ReportedBreakdown.Taxlocal_amount_decimalnational_amount_decimalNr?   r*   r+   r,   TaxrF   _   s"    &.sm3 *2#6r+   rI   fuelnon_fueltax)rJ   rK   rL   N)
r%   r&   r'   r   r@   rD   rI   r   r)   _inner_class_typesr*   r+   r,   ReportedBreakdownr;   R   sm    | , l  4.  w'' # #"r+   rN   cardholder_prompt_datafuel_and_non_fuel_purchasefuel_purchasenon_fuel_purchasepurchase_typereported_breakdownfull_servicenon_fuel_transactionself_serviceservice_type)rO   rU   N)
r%   r&   r'   r   r9   rN   r   r)   r   rM   r*   r+   r,   Fleetr/   7   s    	< 	4'	 '	R !))= >>	  %
 	
	 %%677	 JK
 	
	 ';"3
r+   r[   c                   H    e Zd ZU ed   ed<   	 ed   ed<   	 eed      ed<   y)Authorization.FraudChallengesmschannel)expiredpendingrejectedundeliverableverifiedstatus)no_phone_numberunsupported_phone_numberundeliverable_reasonN)r%   r&   r'   r   r)   r   r*   r+   r,   FraudChallenger]      sE    	 I
 	
	 'AB
 	
	r+   ri   c                   r    e Zd ZU ee   ed<   	 ee   ed<   	 eed      ed<   	 eed      ed<   	 ee   ed<   y)	Authorization.Fuelindustry_product_codequantity_decimaldieselotherunleaded_plusunleaded_regularunleaded_supertypecharging_minuteimperial_gallonkilogramkilowatt_hourliterrp   pound	us_gallonunitunit_cost_decimalN)r%   r&   r'   r   r8   r)   r   r*   r+   r,   r@   rk      su    '},	 #3-'	 "
 	
	 	
 	
	 $C=(	r+   r@   c                       e Zd ZU eed<   	 eed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 eed<   	 ee   ed<   	 ee   ed<   	 ee   ed	<   	 ee   ed
<   	 ee   ed<   y)Authorization.MerchantDatacategorycategory_codecitycountryname
network_idpostal_codestatetax_idterminal_idurlN)r%   r&   r'   r8   r)   r   r*   r+   r,   MerchantDatar      s    	 	 sm	 #	 sm	 	 c]"	 }	 	 c]"	 c]	r+   r   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)Authorization.NetworkDataacquiring_institution_idsystem_trace_audit_numbertransaction_idNr?   r*   r+   r,   NetworkDatar     s3    "*3-/	 $,C=0	 !%	r+   r   c                       e Zd ZU  G d de      Zeed<   	 ee   ed<   	 eed<   	 e	ed<   	 eed<   	 eed<   	 ee   ed	<   	 deiZ
y
)Authorization.PendingRequestc                   0    e Zd ZU ee   ed<   	 ee   ed<   y)*Authorization.PendingRequest.AmountDetailsr"   r#   Nr$   r*   r+   r,   r-   r     "    c]" &c]*r+   r-   amountamount_detailscurrencyis_amount_controllablemerchant_amountmerchant_currencynetwork_risk_scoreN)r%   r&   r'   r   r-   r(   r)   r   r8   boolrM   r*   r+   r,   PendingRequestr     s}    	L 	 	 !//	 	 !%$	 	 	 %SM)	 />r+   r   c                       e Zd ZU  G d de      Zeed<   	 ee   ed<   	 eed<   	 ee	   ed<   	 eed<   	 e	ed<   	 eed	<   	 e	ed
<   	 ee   ed<   	 e
d   ed<   	 ee	   ed<   	 ee   ed<   	 deiZy)Authorization.RequestHistoryc                   0    e Zd ZU ee   ed<   	 ee   ed<   y)*Authorization.RequestHistory.AmountDetailsr"   r#   Nr$   r*   r+   r,   r-   r   9  r   r+   r-   r   r   approvedauthorization_codecreatedr   r   r   r   )account_disabledcard_activecard_canceledcard_expiredcard_inactivecardholder_blockedcardholder_inactive cardholder_verification_requiredinsecure_authorization_methodinsufficient_fundsnot_allowedpin_blockedspending_controlssuspected_fraudverification_failedwebhook_approvedwebhook_declinedwebhook_errorwebhook_timeoutreasonreason_messagerequested_atN)r%   r&   r'   r   r-   r(   r)   r   r   r8   r   rM   r*   r+   r,   RequestHistoryr   8  s    	L 	 	 !//	 	 %SM)	 	 	 	 	 %SM)	 
 	
*	 !%	 sm#	 />r+   r   c                   B    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   y)Authorization.Treasuryreceived_creditsreceived_debitstransactionN)r%   r&   r'   r   r8   r)   r   r*   r+   r,   Treasuryr     s3    s)#	 c"	 c]"	r+   r   c                       e Zd ZU  G d de      Z G d de      Zed   ed<   	 ed   ed<   	 ee   ed<   	 ed   ed	<   	 ed   ed
<   	 ee	   ed<   	 ee   ed<   	 eedZ
y)Authorization.VerificationDatac                   0    e Zd ZU ed   ed<   	 ed   ed<   y)6Authorization.VerificationData.AuthenticationExemptionacquirerissuer
claimed_bylow_value_transactiontransaction_risk_analysisunknownrt   Nr%   r&   r'   r   r)   r*   r+   r,   AuthenticationExemptionr     s*     455 O r+   r   c                       e Zd ZU ed   ed<   y)+Authorization.VerificationData.ThreeDSecureattempt_acknowledgedauthenticatedfailedrequiredresultNr   r*   r+   r,   ThreeDSecurer     s    M r+   r   matchmismatchnot_providedaddress_line1_checkaddress_postal_code_checkauthentication_exemption	cvc_checkexpiry_checkr   three_d_secure)r   r   N)r%   r&   r'   r   r   r   r   r)   r   r8   rM   r*   r+   r,   VerificationDatar     s    
	l 
		< 	 %%HII	 $++N#OO	 #++B"CC	 >??	 ABB	 c]"	 !..	 )@*
r+   r   c                   H    e Zd ZU ee   ed<   	 eee      ed<   	 ed   ed<   y)Authorization.ApproveParamsr   expandLiteral['']|Dict[str, str]metadataN)r%   r&   r'   r   r(   r)   r   r8   r*   r+   r,   ApproveParamsr     s;    C  	 DI&&	 :;;	r+   r   c                   Z    e Zd ZU ee   ed<   	 ee   ed<   	 eee      ed<   	 ed   ed<   y)Authorization.CaptureParamscapture_amountclose_authorizationr   *Authorization.CaptureParamsPurchaseDetailspurchase_detailsN)	r%   r&   r'   r   r(   r)   r   r   r8   r*   r+   r,   CaptureParamsr     sQ    #C((	 )..	 DI&&	 &8
 	
	r+   r   c                   ~    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 eed	      ed
<   	 ee   ed<   y)r   /Authorization.CaptureParamsPurchaseDetailsFleetfleet0Authorization.CaptureParamsPurchaseDetailsFlightflight.Authorization.CaptureParamsPurchaseDetailsFuelrJ   1Authorization.CaptureParamsPurchaseDetailsLodginglodging1Authorization.CaptureParamsPurchaseDetailsReceiptreceipt	referenceN)r%   r&   r'   r   r)   r   r8   r*   r+   r,   CaptureParamsPurchaseDetailsz*Authorization.CaptureParamsPurchaseDetails  s    LMM	 NOO	 JKK	 ?
 	
	 DE
 	
	 s##	r+   r   c                   `    e Zd ZU ed   ed<   	 eed      ed<   	 ed   ed<   	 eed      ed<   y	)
r   CAuthorization.CaptureParamsPurchaseDetailsFleetCardholderPromptDatarO   rP   rT   @Authorization.CaptureParamsPurchaseDetailsFleetReportedBreakdownrU   rV   rZ   Nr%   r&   r'   r   r)   r   r*   r+   r,   !CaptureParamsPurchaseDetailsFleetz/Authorization.CaptureParamsPurchaseDetailsFleet  sl     +Q!
 	
	 #%
 	
	 (N
 	
	 "JK
 	
	r+   r  c                   f    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)r  r3   r4   r5   r6   r7   Nr%   r&   r'   r   r8   r)   r(   r*   r+   r,   5CaptureParamsPurchaseDetailsFleetCardholderPromptDatazCAuthorization.CaptureParamsPurchaseDetailsFleetCardholderPromptData+  Z    s##	 c""	 $C((	 S!!	 $C((	r+   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  DAuthorization.CaptureParamsPurchaseDetailsFleetReportedBreakdownFuelrJ   GAuthorization.CaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuelrK   CAuthorization.CaptureParamsPurchaseDetailsFleetReportedBreakdownTaxrL   Nr%   r&   r'   r   r)   r*   r+   r,   2CaptureParamsPurchaseDetailsFleetReportedBreakdownz@Authorization.CaptureParamsPurchaseDetailsFleetReportedBreakdownA  sE    R
 	
	 U
 	
	 Q
 	
	r+   r  c                       e Zd ZU ee   ed<   y)r
  r>   Nr%   r&   r'   r   r8   r)   r*   r+   r,   6CaptureParamsPurchaseDetailsFleetReportedBreakdownFuelzDAuthorization.CaptureParamsPurchaseDetailsFleetReportedBreakdownFuelU      )#..	r+   r  c                       e Zd ZU ee   ed<   y)r  r>   Nr  r*   r+   r,   9CaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuelzGAuthorization.CaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuel[  r  r+   r  c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r  rG   rH   Nr  r*   r+   r,   5CaptureParamsPurchaseDetailsFleetReportedBreakdownTaxzCAuthorization.CaptureParamsPurchaseDetailsFleetReportedBreakdownTaxa  $    )#..	 "-S!11	r+   r  c                   l    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 eed      ed<   	 ee   ed<   y)r   departure_atpassenger_name
refundable7Authorization.CaptureParamsPurchaseDetailsFlightSegmentsegmentstravel_agencyN)	r%   r&   r'   r   r(   r)   r8   r   r   r*   r+   r,   "CaptureParamsPurchaseDetailsFlightz0Authorization.CaptureParamsPurchaseDetailsFlightk  se    !#&&	 $C((	  %%	 JK
 	
	 #3''	r+   r  c                   x    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)r  arrival_airport_codecarrierdeparture_airport_codeflight_numberservice_classstopover_allowedN)r%   r&   r'   r   r8   r)   r   r*   r+   r,   )CaptureParamsPurchaseDetailsFlightSegmentz7Authorization.CaptureParamsPurchaseDetailsFlightSegment  sl    )#..	 S!!	 !,C 00	 #3''	 #3''	 &d++	r+   r'  c                   r    e Zd ZU ee   ed<   	 ee   ed<   	 eed      ed<   	 eed      ed<   	 ee   ed<   y)	r   rl   rm   rn   rt   ru   r}   r~   Nr%   r&   r'   r   r8   r)   r   r*   r+   r,    CaptureParamsPurchaseDetailsFuelz.Authorization.CaptureParamsPurchaseDetailsFuel  x    *3//	 &c**	 "
 	
	 	
 	
	 's++	r+   r*  c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r   check_in_atnightsNr%   r&   r'   r   r(   r)   r*   r+   r,   #CaptureParamsPurchaseDetailsLodgingz1Authorization.CaptureParamsPurchaseDetailsLodging  s$     %%	 C  	r+   r0  c                   N    e Zd ZU ee   ed<   ee   ed<   ee   ed<   ee   ed<   y)r   descriptionquantitytotal	unit_costNr  r*   r+   r,   #CaptureParamsPurchaseDetailsReceiptz1Authorization.CaptureParamsPurchaseDetailsReceipt  s.     %%c""3s##r+   r6  c                   &   e Zd ZU ee   ed<   	 ed   ed<   	 eed      ed<   	 eed<   	 ee   ed<   	 eee      ed<   	 ed	   ed
<   	 ed   ed<   	 ee	   ed<   	 ee   ed<   	 ee   ed<   	 ed   ed<   	 ed   ed<   	 ed   ed<   	 eed      ed<   y)Authorization.CreateParamsr   'Authorization.CreateParamsAmountDetailsr   chipcontactlesskeyed_inonlineswipeauthorization_methodcardr   r   Authorization.CreateParamsFleetr   Authorization.CreateParamsFuelrJ   r   r   r   &Authorization.CreateParamsMerchantDatamerchant_data%Authorization.CreateParamsNetworkDatanetwork_data*Authorization.CreateParamsVerificationDataverification_data)	apple_pay
google_paysamsung_paywalletN)
r%   r&   r'   r   r(   r)   r   r8   r   r   r*   r+   r,   CreateParamsr8    s'   C  	 $$MNN	 *HI
 	
	 		 c""	 DI&&	 <==	 :;;	 !,D 11	 %S))	 's++	 ##KLL	 ""IJJ	 '8
 	
	 G$LMNN	r+   rN  c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r9  r"   r#   Nr/  r*   r+   r,   CreateParamsAmountDetailsz'Authorization.CreateParamsAmountDetails  s$    S!!	 %S))	r+   rP  c                   `    e Zd ZU ed   ed<   	 eed      ed<   	 ed   ed<   	 eed      ed<   y	)
rB  3Authorization.CreateParamsFleetCardholderPromptDatarO   rP   rT   0Authorization.CreateParamsFleetReportedBreakdownrU   rV   rZ   Nr  r*   r+   r,   CreateParamsFleetzAuthorization.CreateParamsFleet"  sl     +A!
 	
	 #%
 	
	 (>
 	
	 "JK
 	
	r+   rT  c                   f    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)rR  r3   r4   r5   r6   r7   Nr  r*   r+   r,   %CreateParamsFleetCardholderPromptDataz3Authorization.CreateParamsFleetCardholderPromptData@  r  r+   rV  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)rS  4Authorization.CreateParamsFleetReportedBreakdownFuelrJ   7Authorization.CreateParamsFleetReportedBreakdownNonFuelrK   3Authorization.CreateParamsFleetReportedBreakdownTaxrL   Nr  r*   r+   r,   "CreateParamsFleetReportedBreakdownz0Authorization.CreateParamsFleetReportedBreakdownV  sA    B
 	
	 E
 	
	 NOO	r+   r[  c                       e Zd ZU ee   ed<   y)rX  r>   Nr  r*   r+   r,   &CreateParamsFleetReportedBreakdownFuelz4Authorization.CreateParamsFleetReportedBreakdownFuelh  r  r+   r]  c                       e Zd ZU ee   ed<   y)rY  r>   Nr  r*   r+   r,   )CreateParamsFleetReportedBreakdownNonFuelz7Authorization.CreateParamsFleetReportedBreakdownNonFueln  r  r+   r_  c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)rZ  rG   rH   Nr  r*   r+   r,   %CreateParamsFleetReportedBreakdownTaxz3Authorization.CreateParamsFleetReportedBreakdownTaxt  r  r+   ra  c                   r    e Zd ZU ee   ed<   	 ee   ed<   	 eed      ed<   	 eed      ed<   	 ee   ed<   y)	rC  rl   rm   rn   rt   ru   r}   r~   Nr)  r*   r+   r,   CreateParamsFuelzAuthorization.CreateParamsFuel~  r+  r+   rc  c                       e Zd ZU eed      ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed	<   	 ee   ed
<   y)rD  (&  ac_refrigeration_repairaccounting_bookkeeping_servicesadvertising_servicesagricultural_cooperativeairlines_air_carriersairports_flying_fieldsambulance_servicesamusement_parks_carnivalsantique_reproductionsantique_shops	aquariums architectural_surveying_servicesart_dealers_and_galleriesartists_supply_and_craft_shopsauto_and_home_supply_storesauto_body_repair_shopsauto_paint_shopsauto_service_shopsautomated_cash_disburseautomated_fuel_dispensersautomobile_associations'automotive_parts_and_accessories_storesautomotive_tire_storesbail_and_bond_paymentsbakeriesbands_orchestrasbarber_and_beauty_shopsbetting_casino_gamblingbicycle_shopsbilliard_pool_establishmentsboat_dealersboat_rentals_and_leasesbook_stores books_periodicals_and_newspapersbowling_alleys	bus_linesbusiness_secretarial_schoolsbuying_shopping_services2cable_satellite_and_other_pay_television_and_radio%camera_and_photographic_supply_stores"candy_nut_and_confectionery_storescar_and_truck_dealers_new_usedcar_and_truck_dealers_used_onlycar_rental_agencies
car_washescarpentry_servicescarpet_upholstery_cleaningcaterers7charitable_and_social_service_organizations_fundraisingchemicals_and_allied_productschild_care_services!childrens_and_infants_wear_storeschiropodists_podiatristschiropractorscigar_stores_and_stands#civic_social_fraternal_associationscleaning_and_maintenanceclothing_rentalcolleges_universitiescommercial_equipmentcommercial_footwear'commercial_photography_art_and_graphicscommuter_transport_and_ferriescomputer_network_servicescomputer_programmingcomputer_repaircomputer_software_stores"computers_peripherals_and_softwareconcrete_work_servicesconstruction_materialsconsulting_public_relationscorrespondence_schoolscosmetic_storescounseling_servicescountry_clubscourier_servicescourt_costscredit_reporting_agenciescruise_linesdairy_products_storesdance_hall_studios_schoolsdating_escort_servicesdentists_orthodontistsdepartment_storesdetective_agenciesdigital_goods_applicationsdigital_goods_gamesdigital_goods_large_volumedigital_goods_media!direct_marketing_catalog_merchant8direct_marketing_combination_catalog_and_retail_merchant&direct_marketing_inbound_telemarketing#direct_marketing_insurance_servicesdirect_marketing_other'direct_marketing_outbound_telemarketingdirect_marketing_subscriptiondirect_marketing_traveldiscount_storesdoctorsdoor_to_door_sales-drapery_window_covering_and_upholstery_storesdrinking_placesdrug_stores_and_pharmacies.drugs_drug_proprietaries_and_druggist_sundriesdry_cleanersdurable_goodsduty_free_storeseating_places_restaurantseducational_serviceselectric_razor_storeselectric_vehicle_chargingelectrical_parts_and_equipmentelectrical_serviceselectronics_repair_shopselectronics_storeselementary_secondary_schools%emergency_services_gcas_visa_use_onlyemployment_temp_agenciesequipment_rentalexterminating_servicesfamily_clothing_storesfast_food_restaurantsfinancial_institutions(fines_government_administrative_entities2fireplace_fireplace_screens_and_accessories_storesfloor_covering_storesflorists+florists_supplies_nursery_stock_and_flowers$freezer_and_locker_meat_provisionersfuel_dealers_non_automotivefuneral_services_crematoriesAfurniture_home_furnishings_and_equipment_stores_except_appliancesfurniture_repair_refinishingfurriers_and_fur_shopsgeneral_services$gift_card_novelty_and_souvenir_shops glass_paint_and_wallpaper_storesglassware_crystal_storesgolf_courses_public3government_licensed_horse_dog_racing_us_region_onlyAgovernment_licensed_online_casions_online_gambling_us_region_only(government_owned_lotteries_non_us_region)government_owned_lotteries_us_region_onlygovernment_servicesgrocery_stores_supermarketshardware_equipment_and_supplieshardware_storeshealth_and_beauty_spashearing_aids_sales_and_suppliesheating_plumbing_a_chobby_toy_and_game_shopshome_supply_warehouse_stores	hospitalshotels_motels_and_resortshousehold_appliance_storesindustrial_suppliesinformation_retrieval_servicesinsurance_defaultinsurance_underwriting_premiumsintra_company_purchases3jewelry_stores_watches_clocks_and_silverware_storeslandscaping_services	laundrieslaundry_cleaning_serviceslegal_services_attorneys luggage_and_leather_goods_stores lumber_building_materials_storesmanual_cash_disbursemarinas_service_and_suppliesmarketplacesmasonry_stonework_and_plastermassage_parlorsmedical_and_dental_labs=medical_dental_ophthalmic_and_hospital_equipment_and_suppliesmedical_servicesmembership_organizations-mens_and_boys_clothing_and_accessories_storesmens_womens_clothing_storesmetal_service_centers)miscellaneous_apparel_and_accessory_shopsmiscellaneous_auto_dealersmiscellaneous_business_servicesmiscellaneous_food_stores!miscellaneous_general_merchandisemiscellaneous_general_services.miscellaneous_home_furnishing_specialty_stores%miscellaneous_publishing_and_printing!miscellaneous_recreation_servicesmiscellaneous_repair_shopsmiscellaneous_specialty_retailmobile_home_dealersmotion_picture_theaters#motor_freight_carriers_and_truckingmotor_homes_dealers$motor_vehicle_supplies_and_new_partsmotorcycle_shops_and_dealersmotorcycle_shops_dealers7music_stores_musical_instruments_pianos_and_sheet_musicnews_dealers_and_newsstandsnon_fi_money_orders&non_fi_stored_value_card_purchase_loadnondurable_goods'nurseries_lawn_and_garden_supply_storesnursing_personal_careoffice_and_commercial_furnitureopticians_eyeglassesoptometrists_ophthalmologist#orthopedic_goods_prosthetic_devices
osteopaths#package_stores_beer_wine_and_liquorpaints_varnishes_and_suppliesparking_lots_garagespassenger_railways
pawn_shopspet_shops_pet_food_and_supplies petroleum_and_petroleum_productsphoto_developing7photographic_photocopy_microfilm_equipment_and_suppliesphotographic_studiospicture_video_production'piece_goods_notions_and_other_dry_goods'plumbing_heating_equipment_and_suppliespolitical_organizationspostal_services_government_only.precious_stones_and_metals_watches_and_jewelryprofessional_servicespublic_warehousing_and_storagequick_copy_repro_and_blueprint	railroads'real_estate_agents_and_managers_rentalsrecord_storesrecreational_vehicle_rentalsreligious_goods_storesreligious_organizationsroofing_siding_sheet_metalsecretarial_support_servicessecurity_brokers_dealersservice_stations/sewing_needlework_fabric_and_piece_goods_storesshoe_repair_hat_cleaningshoe_storessmall_appliance_repairsnowmobile_dealersspecial_trade_servicesspecialty_cleaningsporting_goods_storessporting_recreation_camps sports_and_riding_apparel_storessports_clubs_fieldsstamp_and_coin_stores5stationary_office_supplies_printing_and_writing_paper1stationery_stores_office_and_school_supply_storesswimming_pools_salest_ui_travel_germanytailors_alterations tax_payments_government_agenciestax_preparation_servicestaxicabs_limousines/telecommunication_equipment_and_telephone_salestelecommunication_servicestelegraph_servicestent_and_awning_shopstesting_laboratoriestheatrical_ticket_agencies
timesharestire_retreading_and_repairtolls_bridge_fees tourist_attractions_and_exhibitstowing_servicestrailer_parks_campgroundstransportation_servicestravel_agencies_tour_operatorstruck_stop_iterationtruck_utility_trailer_rentals-typesetting_plate_making_and_related_servicestypewriter_stores.u_s_federal_government_agencies_or_departmentsuniforms_commercial_clothing&used_merchandise_and_secondhand_stores	utilitiesvariety_storesveterinary_servicesvideo_amusement_game_suppliesvideo_game_arcadesvideo_tape_rental_storesvocational_trade_schoolswatch_jewelry_repairwelding_repairwholesale_clubswig_and_toupee_storeswires_money_orders$womens_accessory_and_specialty_shopswomens_ready_to_wear_storeswrecking_and_salvage_yardsr   r   r   r   r   r   r   r   r   N)r%   r&   r'   r   r   r)   r8   r*   r+   r,   CreateParamsMerchantDataz&Authorization.CreateParamsMerchantData  s    e.gi
 i	
T		 #	 S!!	 #	  $$	 !%%	 3	 !%%	 	r+   r  c                       e Zd ZU ee   ed<   y)rF  r   Nr  r*   r+   r,   CreateParamsNetworkDataz%Authorization.CreateParamsNetworkData  s    "-c"22	r+   r  c                       e Zd ZU eed      ed<   	 eed      ed<   	 ed   ed<   	 eed      ed<   	 eed      ed<   	 ed   ed	<   y
)rH  r   r   r   AAuthorization.CreateParamsVerificationDataAuthenticationExemptionr   r   r   6Authorization.CreateParamsVerificationDataThreeDSecurer   N)r%   r&   r'   r   r   r)   r*   r+   r,   CreateParamsVerificationDataz*Authorization.CreateParamsVerificationData  s    (78
 	
	 $/78$
 	
	 #.O#
 	
	 w'JKLL	 "'*M"NOO	 $D
 	
	r+   r  c                   0    e Zd ZU ed   ed<   	 ed   ed<   y)r  r   r   r   rt   Nr   r*   r+   r,   3CreateParamsVerificationDataAuthenticationExemptionzAAuthorization.CreateParamsVerificationDataAuthenticationExemption  s*    011	 K
 	
	r+   r  c                       e Zd ZU ed   ed<   y)r  r   r   Nr   r*   r+   r,   (CreateParamsVerificationDataThreeDSecurez6Authorization.CreateParamsVerificationDataThreeDSecure*  s    I
 	
	r+   r  c                   6    e Zd ZU eee      ed<   	 ed   ed<   y)Authorization.DeclineParamsr   r   r   Nr%   r&   r'   r   r   r8   r)   r*   r+   r,   DeclineParamsr  2  )    DI&&	 :;;	r+   r  c                   $    e Zd ZU eee      ed<   y)Authorization.ExpireParamsr   Nr  r*   r+   r,   ExpireParamsr  <      DI&&	r+   r  c                   T    e Zd ZU eee      ed<   	 eed<   	 ed   ed<   	 ed   ed<   y)"Authorization.FinalizeAmountParamsr   final_amount'Authorization.FinalizeAmountParamsFleetr   &Authorization.FinalizeAmountParamsFuelrJ   Nr%   r&   r'   r   r   r8   r)   r(   r*   r+   r,   FinalizeAmountParamsr  B  sI    DI&&	 	 DEE	 BCC	r+   r  c                   `    e Zd ZU ed   ed<   	 eed      ed<   	 ed   ed<   	 eed      ed<   y	)
r  ;Authorization.FinalizeAmountParamsFleetCardholderPromptDatarO   rP   rT   8Authorization.FinalizeAmountParamsFleetReportedBreakdownrU   rV   rZ   Nr  r*   r+   r,   FinalizeAmountParamsFleetz'Authorization.FinalizeAmountParamsFleetT  sl     +I!
 	
	 #%
 	
	 (F
 	
	 "JK
 	
	r+   r  c                   f    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)r  r3   r4   r5   r6   r7   Nr  r*   r+   r,   -FinalizeAmountParamsFleetCardholderPromptDataz;Authorization.FinalizeAmountParamsFleetCardholderPromptDatar  r  r+   r  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r  <Authorization.FinalizeAmountParamsFleetReportedBreakdownFuelrJ   ?Authorization.FinalizeAmountParamsFleetReportedBreakdownNonFuelrK   ;Authorization.FinalizeAmountParamsFleetReportedBreakdownTaxrL   Nr  r*   r+   r,   *FinalizeAmountParamsFleetReportedBreakdownz8Authorization.FinalizeAmountParamsFleetReportedBreakdown  sE    J
 	
	 M
 	
	 I
 	
	r+   r  c                       e Zd ZU ee   ed<   y)r  r>   Nr  r*   r+   r,   .FinalizeAmountParamsFleetReportedBreakdownFuelz<Authorization.FinalizeAmountParamsFleetReportedBreakdownFuel  r  r+   r  c                       e Zd ZU ee   ed<   y)r  r>   Nr  r*   r+   r,   1FinalizeAmountParamsFleetReportedBreakdownNonFuelz?Authorization.FinalizeAmountParamsFleetReportedBreakdownNonFuel  r  r+   r  c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r  rG   rH   Nr  r*   r+   r,   -FinalizeAmountParamsFleetReportedBreakdownTaxz;Authorization.FinalizeAmountParamsFleetReportedBreakdownTax  r  r+   r  c                   r    e Zd ZU ee   ed<   	 ee   ed<   	 eed      ed<   	 eed      ed<   	 ee   ed<   y)	r  rl   rm   rn   rt   ru   r}   r~   Nr)  r*   r+   r,   FinalizeAmountParamsFuelz&Authorization.FinalizeAmountParamsFuel  r+  r+   r  c                   B    e Zd ZU eee      ed<   	 eed<   	 ee   ed<   y)Authorization.IncrementParamsr   increment_amountr   N)	r%   r&   r'   r   r   r8   r)   r(   r   r*   r+   r,   IncrementParamsr    s5    DI&&	 	 !,D 11	r+   r  c                       e Zd ZU ee   ed<   	 ee   ed<   	 ed   ed<   	 ee   ed<   	 eee      ed<   	 ee   ed<   	 ee   ed<   	 eed	      ed
<   y)Authorization.ListParamsrA  
cardholderz#Authorization.ListParamsCreated|intr   ending_beforer   limitstarting_afterclosedra   reversedre   N)	r%   r&   r'   r   r8   r)   r   r(   r   r*   r+   r,   
ListParamsr    s    #	  $$	 BCC	 #3''	 DI&&	 3	 $C((	 G$CDEE	r+   r  c                   T    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)Authorization.ListParamsCreatedgtgteltlteNr/  r*   r+   r,   ListParamsCreatedr    sH    	 	 	 	r+   r  c                   6    e Zd ZU eee      ed<   	 ed   ed<   y)Authorization.ModifyParamsr   r   r   Nr  r*   r+   r,   ModifyParamsr    r  r+   r  c                   0    e Zd ZU eed<   	 eee      ed<   y)Authorization.RespondParams	confirmedr   N)r%   r&   r'   r   r)   r   r   r8   r*   r+   r,   RespondParamsr  '  s"    	 DI&&	r+   r  c                   $    e Zd ZU eee      ed<   y)Authorization.RetrieveParamsr   Nr  r*   r+   r,   RetrieveParamsr  1  r  r+   r  c                   6    e Zd ZU eee      ed<   	 ee   ed<   y)Authorization.ReverseParamsr   reverse_amountNr  r*   r+   r,   ReverseParamsr  7  s(    DI&&	 $C((	r+   r  r   r   r   r:  r@  r   balance_transactionsr   rA  r   r  r   r   r   fraud_challengesrJ   idlivemoder   r   rE  r   rG  objectpending_requestrequest_historyr  re   r   tokenr   transactionstreasuryrI  verified_by_fraud_challengerM  authorizationparamsr   returnc                 p    t        d| j                  ddj                  t        |            |            S )  
        [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
        This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
        r   post2/v1/issuing/authorizations/{authorization}/approver  r  r   _static_requestformatr   clsr  r  s      r,   _cls_approvezAuthorization._cls_approve  K     DKK"-m"< L     	
 		
r+   c                      yr  Nr*   r  r  s     r,   approvezAuthorization.approve       	r+   c                      yr  r*   selfr  s     r,   r  zAuthorization.approve       	r+   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r   r  r  r  r  r  r   _requestr  r   getr  s     r,   r  zAuthorization.approve  Q     MMDKK"-dhhtn"= L    	
 		
r+   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r   r  r  r  r  Nr   _static_request_asyncr  r   r  s      r,   _cls_approve_asyncz Authorization._cls_approve_async  Y      ++DKK"-m"< L   ,  	
 		
   7AA
	Ac                    K   ywr  r*   r  s     r,   approve_asynczAuthorization.approve_async        	   c                    K   ywr  r*   r  s     r,   r  zAuthorization.approve_async        	r  r  c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r   r  r  r  r  r  Nr   _request_asyncr  r   r  r  s     r,   r  zAuthorization.approve_async  a      %%DKK"-dhhtn"= L   &  	
 		
   AAA
		Ar  c                 p    t        d| j                  ddj                  t        |            |            S )  
        [Deprecated] Declines a pending Issuing Authorization object. This request should be made within the timeout window of the [real time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
        This method is deprecated. Instead, [respond directly to the webhook request to decline an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
        r   r  2/v1/issuing/authorizations/{authorization}/decliner  r  r  r  s      r,   _cls_declinezAuthorization._cls_decline,  r  r+   c                      yr  Nr*   r  s     r,   declinezAuthorization.declineA  r  r+   c                      yr  r*   r  s     r,   r  zAuthorization.declineL  r  r+   r  c                     t        d| j                  ddj                  t        | j	                  d                  |            S )r  r   r  r  r  r  r  r  r  s     r,   r  zAuthorization.declineV  r  r+   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r   r  r  r  r  Nr  r  s      r,   _cls_decline_asyncz Authorization._cls_decline_asynci  r	  r
  c                    K   ywr  r*   r  s     r,   decline_asynczAuthorization.decline_async~  r  r  c                    K   ywr  r*   r  s     r,   r"  zAuthorization.decline_async  r  r  r   c                    K   t        d| j                  ddj                  t        | j	                  d                  |       d{         S 7 w)r  r   r  r  r  r  r  Nr  r  s     r,   r"  zAuthorization.decline_async  r  r  r  c                     | j                  d| j                         |      }t        |t              s!t	        dt        |      j                  z        |S )
        Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
        r  r  %Expected list object from API, got %s)r  	class_url
isinstancer   	TypeErrorrt   r%   r  r  r   s      r,   listzAuthorization.list  s]     $$MMO % 

 &*-7<((* 
 r+   c                    K   | j                  d| j                         |       d{   }t        |t              s!t	        dt        |      j                  z        |S 7 7w)r&  r  r  Nr'  )r  r(  r)  r   r*  rt   r%   r+  s      r,   
list_asynczAuthorization.list_async  sk      00MMO 1 
 

 &*-7<((* 
 
s   &A"A 8A"r  c                 z    | j                         dt        |      }t        d| j                  d||            S )
        Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
        /r   r  r  )r(  r   r   r  r  r  r  r   s       r,   modifyzAuthorization.modify  sD     +b/:   
 	
r+   c                    K   | j                         dt        |      }t        d| j                  d||       d{         S 7 w)r0  r1  r   r  r  N)r(  r   r   r  r2  s       r,   modify_asynczAuthorization.modify_async  sR      +b/:++ ,  
 	
s   <A	A
	A	r  c                 8     | |fi |}|j                          |S )<
        Retrieves an Issuing Authorization object.
        )refreshr  r  r  instances       r,   retrievezAuthorization.retrieve  s$     r$V$r+   c                 T   K    | |fi |}|j                          d{    |S 7 w)r7  N)refresh_asyncr9  s       r,   retrieve_asynczAuthorization.retrieve_async  s3      r$V$$$&&& 	's   (&(c                      e Zd ZU ed   ed<   ededed   ddfd       Ze	e
deded   ddfd              Ze	ded   ddfd	       Z ed
      ded   ddfd       Zededed   ddfd       Ze	e
deded   ddfd              Ze	ded   ddfd       Z ed      ded   ddfd       Zeded   ddfd       Zeded   ddfd       Zededed   ddfd       Ze	e
deded   ddfd              Ze	ded   ddfd       Z ed      ded   ddfd       Zededed   ddfd       Ze	e
deded   ddfd              Ze	ded   ddfd       Z ed      ded   ddfd       Zededed   ddfd        Ze	e
deded   ddfd!              Ze	ded   ddfd"       Z ed#      ded   ddfd$       Zededed   ddfd%       Ze	e
deded   ddfd&              Ze	ded   ddfd'       Z ed(      ded   ddfd)       Zededed*   ddfd+       Ze	e
deded*   ddfd,              Ze	ded*   ddfd-       Z ed.      ded*   ddfd/       Zededed*   ddfd0       Ze	e
deded*   ddfd1              Ze	ded*   ddfd2       Z ed3      ded*   ddfd4       Zededed5   ddfd6       Ze	e
deded5   ddfd7              Ze	ded5   ddfd8       Z ed9      ded5   ddfd:       Zededed5   ddfd;       Ze	e
deded5   ddfd<              Z e	ded5   ddfd=       Z  ed>      ded5   ddfd?       Z ededed@   ddfdA       Z!e	e
deded@   ddfdB              Z"e	ded@   ddfdC       Z" edD      ded@   ddfdE       Z"ededed@   ddfdF       Z#e	e
deded@   ddfdG              Z$e	ded@   ddfdH       Z$ edI      ded@   ddfdJ       Z$yK)LAuthorization.TestHelpersr   _resource_clsr  r  r   r  c                 p    t        d| j                  ddj                  t        |            |            S )<
            Capture a test-mode authorization.
            r   r  ?/v1/test_helpers/issuing/authorizations/{authorization}/capturer  r  r  r  s      r,   _cls_capturez&Authorization.TestHelpers._cls_capture	  K     ##U\\&1-&@ ]  " $ 	 	r+   c                      yrC  Nr*   r  s     r,   capturez!Authorization.TestHelpers.capture       r+   c                      yrH  r*   r  s     r,   rI  z!Authorization.TestHelpers.capture'       r+   rE  c                     t        d| j                  j                  ddj                  t	        | j                  j                  d                  |            S )rC  r   r  rD  r  r  r  r   resourcer  r  r   r  r  s     r,   rI  z!Authorization.TestHelpers.capture0  ^     &&U\\&1$--2C2CD2I&J ]  " ' 	 	r+   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)rC  r   r  rD  r  r  Nr  r  s      r,   _cls_capture_asyncz,Authorization.TestHelpers._cls_capture_asyncB  Y      //U\\&1-&@ ]  " 0  	 	r
  c                    K   ywrH  r*   r  s     r,   capture_asyncz'Authorization.TestHelpers.capture_asyncV        r  c                    K   ywrH  r*   r  s     r,   rU  z'Authorization.TestHelpers.capture_async`        r  rR  c                    K   t        d| j                  j                  ddj                  t	        | j                  j                  d                  |       d{         S 7 w)rC  r   r  rD  r  r  r  Nr   rO  r  r  r   r  r  s     r,   rU  z'Authorization.TestHelpers.capture_asynci  l      mm22U\\&1$--2C2CD2I&J ]  " 3  	 	   AA'A%
	A'r8  c                 >    t        d| j                  dd|            S );
            Create a test-mode authorization.
            r   r  '/v1/test_helpers/issuing/authorizationsr  )r   r  r  r  s     r,   createz Authorization.TestHelpers.create{  s0     ##=! $  r+   c                 Z   K   t        d| j                  dd|       d{         S 7 w)r^  r   r  r_  r  N)r   r  r`  s     r,   create_asyncz&Authorization.TestHelpers.create_async  s>      //=! 0   s   +)
	+r  c                 p    t        d| j                  ddj                  t        |            |            S );
            Expire a test-mode Authorization.
            r   r  >/v1/test_helpers/issuing/authorizations/{authorization}/expirer  r  r  r  s      r,   _cls_expirez%Authorization.TestHelpers._cls_expire  sK     ##T[[&1-&@ \  " $ 	 	r+   c                      yre  Nr*   r  s     r,   expirez Authorization.TestHelpers.expire  rJ  r+   c                      yri  r*   r  s     r,   rj  z Authorization.TestHelpers.expire  rL  r+   rg  c                     t        d| j                  j                  ddj                  t	        | j                  j                  d                  |            S )re  r   r  rf  r  r  r  rN  r  s     r,   rj  z Authorization.TestHelpers.expire  s^     &&T[[&1$--2C2CD2I&J \  " ' 	 	r+   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)re  r   r  rf  r  r  Nr  r  s      r,   _cls_expire_asyncz+Authorization.TestHelpers._cls_expire_async  sY      //T[[&1-&@ \  " 0  	 	r
  c                    K   ywri  r*   r  s     r,   expire_asyncz&Authorization.TestHelpers.expire_async  rV  r  c                    K   ywri  r*   r  s     r,   rp  z&Authorization.TestHelpers.expire_async  rX  r  rn  c                    K   t        d| j                  j                  ddj                  t	        | j                  j                  d                  |       d{         S 7 w)re  r   r  rf  r  r  r  NrZ  r  s     r,   rp  z&Authorization.TestHelpers.expire_async  sl      mm22T[[&1$--2C2CD2I&J \  " 3  	 	r\  r  c                 p    t        d| j                  ddj                  t        |            |            S )
            Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount.
            r   r  G/v1/test_helpers/issuing/authorizations/{authorization}/finalize_amountr  r  r  r  s      r,   _cls_finalize_amountz.Authorization.TestHelpers._cls_finalize_amount	  sK     ##]dd&1-&@ e  " $ 	 	r+   c                      yrt  Nr*   r  s     r,   finalize_amountz)Authorization.TestHelpers.finalize_amount!	       r+   c                      yrx  r*   r  s     r,   ry  z)Authorization.TestHelpers.finalize_amount,	  rL  r+   rv  c                     t        d| j                  j                  ddj                  t	        | j                  j                  d                  |            S )rt  r   r  ru  r  r  r  rN  r  s     r,   ry  z)Authorization.TestHelpers.finalize_amount5	  s^     &&]dd&1$--2C2CD2I&J e  " ' 	 	r+   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)rt  r   r  ru  r  r  Nr  r  s      r,   _cls_finalize_amount_asyncz4Authorization.TestHelpers._cls_finalize_amount_asyncG	  sY      //]dd&1-&@ e  " 0  	 	r
  c                    K   ywrx  r*   r  s     r,   finalize_amount_asyncz/Authorization.TestHelpers.finalize_amount_async[	        r  c                    K   ywrx  r*   r  s     r,   r  z/Authorization.TestHelpers.finalize_amount_asyncf	  rX  r  r~  c                    K   t        d| j                  j                  ddj                  t	        | j                  j                  d                  |       d{         S 7 w)rt  r   r  ru  r  r  r  NrZ  r  s     r,   r  z/Authorization.TestHelpers.finalize_amount_asynco	  sl      mm22]dd&1$--2C2CD2I&J e  " 3  	 	r\  r  c                 p    t        d| j                  ddj                  t        |            |            S )>
            Increment a test-mode Authorization.
            r   r  A/v1/test_helpers/issuing/authorizations/{authorization}/incrementr  r  r  r  s      r,   _cls_incrementz(Authorization.TestHelpers._cls_increment	  sK     ##W^^&1-&@ _  " $ 	 	r+   c                      yr  Nr*   r  s     r,   	incrementz#Authorization.TestHelpers.increment	  rz  r+   c                      yr  r*   r  s     r,   r  z#Authorization.TestHelpers.increment	  rL  r+   r  c                     t        d| j                  j                  ddj                  t	        | j                  j                  d                  |            S )r  r   r  r  r  r  r  rN  r  s     r,   r  z#Authorization.TestHelpers.increment	  s^     &&W^^&1$--2C2CD2I&J _  " ' 	 	r+   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r   r  r  r  r  Nr  r  s      r,   _cls_increment_asyncz.Authorization.TestHelpers._cls_increment_async	  sY      //W^^&1-&@ _  " 0  	 	r
  c                    K   ywr  r*   r  s     r,   increment_asyncz)Authorization.TestHelpers.increment_async	  r  r  c                    K   ywr  r*   r  s     r,   r  z)Authorization.TestHelpers.increment_async	  rX  r  r  c                    K   t        d| j                  j                  ddj                  t	        | j                  j                  d                  |       d{         S 7 w)r  r   r  r  r  r  r  NrZ  r  s     r,   r  z)Authorization.TestHelpers.increment_async	  sl      mm22W^^&1$--2C2CD2I&J _  " 3  	 	r\  r  c                 p    t        d| j                  ddj                  t        |            |            S )
            Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy.
            r   r  P/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respondr  r  r  r  s      r,   _cls_respondz&Authorization.TestHelpers._cls_respond	  sK     ##fmm&1-&@ n  " $ 	 	r+   c                      yr  Nr*   r  s     r,   respondz!Authorization.TestHelpers.respond	
  rJ  r+   c                      yr  r*   r  s     r,   r  z!Authorization.TestHelpers.respond
  rL  r+   r  c                     t        d| j                  j                  ddj                  t	        | j                  j                  d                  |            S )r  r   r  r  r  r  r  rN  r  s     r,   r  z!Authorization.TestHelpers.respond
  s^     &&fmm&1$--2C2CD2I&J n  " ' 	 	r+   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r   r  r  r  r  Nr  r  s      r,   _cls_respond_asyncz,Authorization.TestHelpers._cls_respond_async.
  sY      //fmm&1-&@ n  " 0  	 	r
  c                    K   ywr  r*   r  s     r,   respond_asyncz'Authorization.TestHelpers.respond_asyncB
  rV  r  c                    K   ywr  r*   r  s     r,   r  z'Authorization.TestHelpers.respond_asyncL
  rX  r  r  c                    K   t        d| j                  j                  ddj                  t	        | j                  j                  d                  |       d{         S 7 w)r  r   r  r  r  r  r  NrZ  r  s     r,   r  z'Authorization.TestHelpers.respond_asyncU
  sl      mm22fmm&1$--2C2CD2I&J n  " 3  	 	r\  r  c                 p    t        d| j                  ddj                  t        |            |            S )<
            Reverse a test-mode Authorization.
            r   r  ?/v1/test_helpers/issuing/authorizations/{authorization}/reverser  r  r  r  s      r,   _cls_reversez&Authorization.TestHelpers._cls_reverseg
  rF  r+   c                      yr  Nr*   r  s     r,   reversez!Authorization.TestHelpers.reverse{
  rJ  r+   c                      yr  r*   r  s     r,   r  z!Authorization.TestHelpers.reverse
  rL  r+   r  c                     t        d| j                  j                  ddj                  t	        | j                  j                  d                  |            S )r  r   r  r  r  r  r  rN  r  s     r,   r  z!Authorization.TestHelpers.reverse
  rP  r+   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r   r  r  r  r  Nr  r  s      r,   _cls_reverse_asyncz,Authorization.TestHelpers._cls_reverse_async
  rS  r
  c                    K   ywr  r*   r  s     r,   reverse_asyncz'Authorization.TestHelpers.reverse_async
  rV  r  c                    K   ywr  r*   r  s     r,   r  z'Authorization.TestHelpers.reverse_async
  rX  r  r  c                    K   t        d| j                  j                  ddj                  t	        | j                  j                  d                  |       d{         S 7 w)r  r   r  r  r  r  r  NrZ  r  s     r,   r  z'Authorization.TestHelpers.reverse_async
  r[  r\  N)%r%   r&   r'   r   r)   classmethodr8   r   rE  r   staticmethodrI  r
   rR  rU  ra  rc  rg  rj  rn  rp  rv  ry  r~  r  r  r  r  r  r  r  r  r  r  r  r  r  r*   r+   r,   TestHelpersr@    s	   O,,			 :;	 		 
	& 
			*01N*O		 
 
	 
	"#@A		 
	 
n	-	"#@A		 
.	" 
		 :;	 		 
	& 
			*01N*O		 
 
	 
	"#@A		 
	 
2	3	"#@A		 
4	" 
	!">?		 
	 
	!">?		 
	 
		 9:	 		 
	& 
			*01M*N		 
 
	 
	"#?@		 
	 
m	,	"#?@		 
-	" 
		 9:	 		 
	& 
			*01M*N		 
 
	 
	"#?@		 
	 
1	2	"#?@		 
3	" 
		 AB	 		 
	& 
			AB	 	 
 
	 
	"#GH		 
	 
4	5	"#GH		 
6	" 
		 AB	 		 
	& 
			AB	 	 
 
	 
	"#GH		 
	 
:	;	"#GH		 
<	" 
		 <=	 		 
	& 
			<=	 	 
 
	 
	"#BC		 
	 
.	/	"#BC		 
0	" 
		 <=	 		 
	& 
			<=	 	 
 
	 
	"#BC		 
	 
4	5	"#BC		 
6	" 
		 :;	 		 
	& 
			*01N*O		 
 
	 
	"#@A		 
	 
n	-	"#@A		 
.	" 
		 :;	 		 
	& 
			*01N*O		 
 
	 
	"#@A		 
	 
2	3	"#@A		 
4	" 
		 :;	 		 
	& 
			*01N*O		 
 
	 
	"#@A		 
	 
n	-	"#@A		 
.	" 
		 :;	 		 
	& 
			*01N*O		 
 
	 
	"#@A		 
	 
2	3	"#@A		 
4	r+   r  c                 $    | j                  |       S )N)r  )r  s    r,   test_helperszAuthorization.test_helpers
  s    %%r+   )
r   r   r  rJ   rE  rG  r  r  r  rI  N)br%   r&   r'   __doc__r   r   r   r)   r   r-   r[   ri   r@   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r  r  r  r'  r*  r0  r6  rN  rP  rT  rV  r[  r]  r_  ra  rc  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   r   r8   r   r  r   r  r   r  r  r
   r  r  r  r  r   r"  r   r,  r.  r3  r5  r;  r>  r   r  propertyr  rM   r*   r+   r,   r   r      s=	    	  '"9:;  _
 _
B $'| 'R,| ,\l '? '?RO? O?b< 4
< 4
l  (y <I <	 ,Y ( I 	 Y 0I 4'9 'Ri $i $@~ @DI I <	 ,Y $ I 	 '9 'RM9 M^
)  y  D
i 
9  ~ ~ $I <	 ,Y ( I 	 '9 'R.  ^  DI $~     K ]++ N "<  344 L 677 L M E? tN344 4. 	G N    38n ;'' +,, n-- .)) 344 OG,-- }%% x   ('!)$/ SM 

 67
 
	
 
( &,-J&K	   <=	  .)
<=
	
 *
$ 

 67
 
	
 
( &,-J&K	   <=	  ./
<=
	
 0
$ 

 67
 
	
 
( &,-J&K	   <=	  .)
<=
	
 *
$ 

 67
 
	
 
( &,-J&K	   <=	  ./
<=
	
 0
$ 89	O	$ & 89	O	$ & 

 &'C D
	
 
  

 &'C D
	
 
   &'E F	   &'E F	 Q,_= Qf & & (*%#))-r+   r   N),stripe._expandable_fieldr   stripe._list_objectr   stripe._listable_api_resourcer   stripe._request_optionsr   stripe._stripe_objectr   stripe._test_helpersr   stripe._updateable_api_resourcer	   stripe._utilr
   r   typingr   r   r   r   r   r   typing_extensionsr   r   r   r   r   r   stripe._balance_transactionr   stripe.issuing._cardr   stripe.issuing._cardholderr   stripe.issuing._tokenr   stripe.issuing._transactionr   r   r  rA  r*   r+   r,   <module>r     sq    5 * = 2 . 7 A : A A  >)5+7K+(/*K+\V +8   'r+   