a
    g                    @   s
  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rd 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 ded ed Z)e)e)j*_+dS )    )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                   @   s`  e Zd ZU dZdZeed  ed< G dd deZ	G dd deZ
G dd	 d	eZG d
d deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG dd deZG d d! d!eZG d"d# d#eZG d$d% d%eZG d&d' d'eZG d(d) d)eZG d*d+ d+eZG d,d- d-eZG d.d/ d/eZ G d0d1 d1eZ!G d2d3 d3eZ"G d4d5 d5eZ#G d6d7 d7eZ$G d8d9 d9eZ%G d:d; d;eZ&G d<d= d=eZ'G d>d? d?eZ(G d@dA dAeZ)G dBdC dCeZ*G dDdE dEeZ+G dFdG dGeZ,G dHdI dIeZ-G dJdK dKeZ.G dLdM dMeZ/G dNdO dOeZ0G dPdQ dQeZ1G dRdS dSeZ2G dTdU dUeZ3G dVdW dWeZ4G dXdY dYeZ5G dZd[ d[eZ6G d\d] d]eZ7G d^d_ d_eZ8G d`da daeZ9G dbdc dceZ:G ddde deeZ;G dfdg dgeZ<G dhdi dieZ=G djdk dkeZ>G dldm dmeZ?G dndo doeZ@G dpdq 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< eIeGeJd d dddZKeLeMeGeJd d dddZNeLeJd d dddZNeOdeJd d dddZNeIeGeJd d dddZPeLeMeGeJd d dddZQeLeJd d dddZQeOdeJd d dddZQeIeGeJd d dddZReLeMeGeJd d dddZSeLeJd d dddZSeOdeJd d dddZSeIeGeJd d dddZTeLeMeGeJd d dddZUeLeJd d dddZUeOdeJd d dddZUeIeJd eVd  dddZWeIeJd eVd  dddZXeIeGeJd d dddZYeIeGeJd d dddZZeIeGeJd d dddÄZ[eIeGeJd d dddńZ\G ddǄ de]d  Z^e_ddɄ Z`e	e
eeeeeeeedʜ
ZadS )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                   @   s&   e Zd ZU ee ed< ee ed< dS )zAuthorization.AmountDetailsatm_feecashback_amountN__name__
__module____qualname__r   int__annotations__ r&   r&   k/var/www/staging/api/virtual_environments/venv/lib/python3.9/site-packages/stripe/issuing/_authorization.pyAmountDetails-   s   
r(   c                   @   sp   e Zd ZU G dd deZG d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	dS )zAuthorization.Fleetc                   @   sV   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< dS )z(Authorization.Fleet.CardholderPromptDataZalphanumeric_id	driver_idodometerunspecified_iduser_idvehicle_numberN)r!   r"   r#   r   strr%   r$   r&   r&   r&   r'   CardholderPromptData8   s   
r/   c                   @   sn   e Zd ZU G dd deZG dd deZG dd deZee ed< ee ed< ee ed	< eeed
Z	dS )z%Authorization.Fleet.ReportedBreakdownc                   @   s   e Zd ZU ee ed< dS )z*Authorization.Fleet.ReportedBreakdown.Fuelgross_amount_decimalNr!   r"   r#   r   r.   r%   r&   r&   r&   r'   FuelS   s   
r2   c                   @   s   e Zd ZU ee ed< dS )z-Authorization.Fleet.ReportedBreakdown.NonFuelr0   Nr1   r&   r&   r&   r'   NonFuelY   s   
r3   c                   @   s&   e Zd ZU ee ed< ee ed< dS )z)Authorization.Fleet.ReportedBreakdown.Taxlocal_amount_decimalnational_amount_decimalNr1   r&   r&   r&   r'   Tax_   s   
r6   fuelnon_fueltax)r7   r8   r9   N)
r!   r"   r#   r   r2   r3   r6   r   r%   _inner_class_typesr&   r&   r&   r'   ReportedBreakdownR   s   

r;   cardholder_prompt_dataZfuel_and_non_fuel_purchaseZfuel_purchaseZnon_fuel_purchasepurchase_typereported_breakdownZfull_serviceZnon_fuel_transactionZself_serviceservice_type)r<   r?   N)
r!   r"   r#   r   r/   r;   r   r%   r   r:   r&   r&   r&   r'   Fleet7   s   
)
rB   c                   @   s6   e Zd ZU ed ed< ed ed< eed  ed< dS )zAuthorization.FraudChallengeZsmsZchannel)ZexpiredpendingZrejectedZundeliverableZverifiedstatus)Zno_phone_numberZunsupported_phone_numberZundeliverable_reasonN)r!   r"   r#   r   r%   r   r&   r&   r&   r'   FraudChallenge   s   
rE   c                   @   sR   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< dS )	zAuthorization.Fuelindustry_product_codequantity_decimalZdieselotherZunleaded_plusZunleaded_regularZunleaded_supertypeZcharging_minuteZimperial_gallonZkilogramZkilowatt_hourZliterrI   poundZ	us_gallonunitunit_cost_decimalN)r!   r"   r#   r   r.   r%   r   r&   r&   r&   r'   r2      s   
r2   c                   @   s   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< dS )zAuthorization.MerchantDatacategoryZcategory_codecitycountryname
network_idpostal_codestateZtax_idterminal_idurlN)r!   r"   r#   r.   r%   r   r&   r&   r&   r'   MerchantData   s   
rX   c                   @   s2   e Zd ZU ee ed< ee ed< ee ed< dS )zAuthorization.NetworkDataacquiring_institution_idZsystem_trace_audit_numberZtransaction_idNr1   r&   r&   r&   r'   NetworkData  s   
rZ   c                   @   sf   e Zd ZU G d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
d
S )zAuthorization.PendingRequestc                   @   s&   e Zd ZU ee ed< ee ed< dS )z*Authorization.PendingRequest.AmountDetailsr   r   Nr    r&   r&   r&   r'   r(     s   
r(   amountamount_detailscurrencyis_amount_controllablemerchant_amountmerchant_currencynetwork_risk_scoreN)r!   r"   r#   r   r(   r$   r%   r   r.   boolr:   r&   r&   r&   r'   PendingRequest  s   

rc   c                   @   s   e Zd ZU G d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dS )zAuthorization.RequestHistoryc                   @   s&   e Zd ZU ee ed< ee ed< dS )z*Authorization.RequestHistory.AmountDetailsr   r   Nr    r&   r&   r&   r'   r(   9  s   
r(   r[   r\   approvedZauthorization_codecreatedr]   r_   r`   ra   )Zaccount_disabledZcard_activeZcard_canceledZcard_expiredZcard_inactiveZcardholder_blockedZcardholder_inactiveZ cardholder_verification_requiredZinsecure_authorization_methodZinsufficient_fundsnot_allowedZpin_blockedZspending_controlsZsuspected_fraudZverification_failedZwebhook_approvedZwebhook_declinedZwebhook_errorZwebhook_timeoutreasonZreason_messageZrequested_atN)r!   r"   r#   r   r(   r$   r%   r   rb   r.   r   r:   r&   r&   r&   r'   RequestHistory8  s    

rh   c                   @   s2   e Zd ZU ee ed< ee ed< ee ed< dS )zAuthorization.TreasuryZreceived_creditsZreceived_debitsZtransactionN)r!   r"   r#   r   r.   r%   r   r&   r&   r&   r'   Treasury  s   
ri   c                   @   s   e Zd ZU G dd deZG d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
dS )zAuthorization.VerificationDatac                   @   s&   e Zd ZU ed ed< ed ed< dS )z6Authorization.VerificationData.AuthenticationExemptionZacquirerZissuer
claimed_byZlow_value_transactionZtransaction_risk_analysisunknownrJ   Nr!   r"   r#   r   r%   r&   r&   r&   r'   AuthenticationExemption  s
   
ro   c                   @   s   e Zd ZU ed ed< dS )z+Authorization.VerificationData.ThreeDSecureZattempt_acknowledgedauthenticatedfailedrequiredresultNrn   r&   r&   r&   r'   ThreeDSecure  s   
ru   matchZmismatchZnot_providedaddress_line1_checkaddress_postal_code_checkauthentication_exemption	cvc_checkexpiry_checkrT   three_d_secure)rz   r}   N)r!   r"   r#   r   ro   ru   r   r%   r   r.   r:   r&   r&   r&   r'   VerificationData  s   
r~   c                   @   s6   e Zd ZU ee ed< eee  ed< ed ed< dS )Authorization.ApproveParamsr[   expandLiteral['']|Dict[str, str]metadataN)r!   r"   r#   r   r$   r%   r   r.   r&   r&   r&   r'   ApproveParams  s   
r   c                   @   sB   e Zd ZU ee ed< ee ed< eee  ed< ed ed< dS )Authorization.CaptureParamsZcapture_amountZclose_authorizationr   *Authorization.CaptureParamsPurchaseDetailsZpurchase_detailsN)	r!   r"   r#   r   r$   r%   rb   r   r.   r&   r&   r&   r'   CaptureParams  s   
r   c                   @   sZ   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< dS )r   /Authorization.CaptureParamsPurchaseDetailsFleetfleet0Authorization.CaptureParamsPurchaseDetailsFlightZflight.Authorization.CaptureParamsPurchaseDetailsFuelr7   1Authorization.CaptureParamsPurchaseDetailsLodgingZlodging1Authorization.CaptureParamsPurchaseDetailsReceiptreceipt	referenceN)r!   r"   r#   r   r%   r   r.   r&   r&   r&   r'   CaptureParamsPurchaseDetails  s   
r   c                   @   sF   e Zd ZU ed ed< eed  ed< ed ed< eed  ed< d	S )
r   CAuthorization.CaptureParamsPurchaseDetailsFleetCardholderPromptDatar<   r=   r>   @Authorization.CaptureParamsPurchaseDetailsFleetReportedBreakdownr?   r@   rA   Nr!   r"   r#   r   r%   r   r&   r&   r&   r'   !CaptureParamsPurchaseDetailsFleet  s   

r   c                   @   sJ   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< dS )r   r)   r*   r+   r,   r-   Nr!   r"   r#   r   r.   r%   r$   r&   r&   r&   r'   5CaptureParamsPurchaseDetailsFleetCardholderPromptData+  s   
r   c                   @   s2   e Zd ZU ed ed< ed ed< ed ed< dS )r   DAuthorization.CaptureParamsPurchaseDetailsFleetReportedBreakdownFuelr7   GAuthorization.CaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuelr8   CAuthorization.CaptureParamsPurchaseDetailsFleetReportedBreakdownTaxr9   Nr!   r"   r#   r   r%   r&   r&   r&   r'   2CaptureParamsPurchaseDetailsFleetReportedBreakdownA  s   
r   c                   @   s   e Zd ZU ee ed< dS )r   r0   Nr!   r"   r#   r   r.   r%   r&   r&   r&   r'   6CaptureParamsPurchaseDetailsFleetReportedBreakdownFuelU  s   
r   c                   @   s   e Zd ZU ee ed< dS )r   r0   Nr   r&   r&   r&   r'   9CaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuel[  s   
r   c                   @   s&   e Zd ZU ee ed< ee ed< dS )r   r4   r5   Nr   r&   r&   r&   r'   5CaptureParamsPurchaseDetailsFleetReportedBreakdownTaxa  s   
r   c                   @   sN   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< dS )r   Zdeparture_atZpassenger_nameZ
refundable7Authorization.CaptureParamsPurchaseDetailsFlightSegmentsegmentsZtravel_agencyN)	r!   r"   r#   r   r$   r%   r.   rb   r   r&   r&   r&   r'   "CaptureParamsPurchaseDetailsFlightk  s   
r   c                   @   sV   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< dS )r   Zarrival_airport_codeZcarrierZdeparture_airport_codeZflight_numberZservice_classZstopover_allowedN)r!   r"   r#   r   r.   r%   rb   r&   r&   r&   r'   )CaptureParamsPurchaseDetailsFlightSegment  s   
r   c                   @   sR   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< dS )	r   rF   rG   rH   rJ   rK   rM   rN   Nr!   r"   r#   r   r.   r%   r   r&   r&   r&   r'    CaptureParamsPurchaseDetailsFuel  s   
r   c                   @   s&   e Zd ZU ee ed< ee ed< dS )r   Zcheck_in_atZnightsNr!   r"   r#   r   r$   r%   r&   r&   r&   r'   #CaptureParamsPurchaseDetailsLodging  s   
r   c                   @   s>   e Zd ZU ee ed< ee ed< ee ed< ee ed< dS )r   descriptionZquantitytotalZ	unit_costNr   r&   r&   r&   r'   #CaptureParamsPurchaseDetailsReceipt  s   
r   c                   @   s   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< dS )Authorization.CreateParamsr[   'Authorization.CreateParamsAmountDetailsr\   ZchipZcontactlessZkeyed_inZonlineZswipeauthorization_methodcardr]   r   Authorization.CreateParamsFleetr   Authorization.CreateParamsFuelr7   r^   r_   r`   &Authorization.CreateParamsMerchantDatamerchant_data%Authorization.CreateParamsNetworkDatanetwork_data*Authorization.CreateParamsVerificationDataverification_data)Z	apple_payZ
google_payZsamsung_paywalletN)
r!   r"   r#   r   r$   r%   r   r.   r   rb   r&   r&   r&   r'   CreateParams  s(   
r   c                   @   s&   e Zd ZU ee ed< ee ed< dS )r   r   r   Nr   r&   r&   r&   r'   CreateParamsAmountDetails  s   
r   c                   @   sF   e Zd ZU ed ed< eed  ed< ed ed< eed  ed< d	S )
r   3Authorization.CreateParamsFleetCardholderPromptDatar<   r=   r>   0Authorization.CreateParamsFleetReportedBreakdownr?   r@   rA   Nr   r&   r&   r&   r'   CreateParamsFleet"  s   

r   c                   @   sJ   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< dS )r   r)   r*   r+   r,   r-   Nr   r&   r&   r&   r'   %CreateParamsFleetCardholderPromptData@  s   
r   c                   @   s2   e Zd ZU ed ed< ed ed< ed ed< dS )r   4Authorization.CreateParamsFleetReportedBreakdownFuelr7   7Authorization.CreateParamsFleetReportedBreakdownNonFuelr8   3Authorization.CreateParamsFleetReportedBreakdownTaxr9   Nr   r&   r&   r&   r'   "CreateParamsFleetReportedBreakdownV  s   
r   c                   @   s   e Zd ZU ee ed< dS )r   r0   Nr   r&   r&   r&   r'   &CreateParamsFleetReportedBreakdownFuelh  s   
r   c                   @   s   e Zd ZU ee ed< dS )r   r0   Nr   r&   r&   r&   r'   )CreateParamsFleetReportedBreakdownNonFueln  s   
r   c                   @   s&   e Zd ZU ee ed< ee ed< dS )r   r4   r5   Nr   r&   r&   r&   r'   %CreateParamsFleetReportedBreakdownTaxt  s   
r   c                   @   sR   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< dS )	r   rF   rG   rH   rJ   rK   rM   rN   Nr   r&   r&   r&   r'   CreateParamsFuel~  s   
r   c                   @   s~   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
< dS )r   (&  Zac_refrigeration_repairZaccounting_bookkeeping_servicesZadvertising_servicesZagricultural_cooperativeZairlines_air_carriersZairports_flying_fieldsZambulance_servicesZamusement_parks_carnivalsZantique_reproductionsZantique_shopsZ	aquariumsZ architectural_surveying_servicesZart_dealers_and_galleriesZartists_supply_and_craft_shopsZauto_and_home_supply_storesZauto_body_repair_shopsZauto_paint_shopsZauto_service_shopsZautomated_cash_disburseZautomated_fuel_dispensersZautomobile_associationsZ'automotive_parts_and_accessories_storesZautomotive_tire_storesZbail_and_bond_paymentsZbakeriesZbands_orchestrasZbarber_and_beauty_shopsZbetting_casino_gamblingZbicycle_shopsZbilliard_pool_establishmentsZboat_dealersZboat_rentals_and_leasesZbook_storesZ books_periodicals_and_newspapersZbowling_alleysZ	bus_linesZbusiness_secretarial_schoolsZbuying_shopping_servicesZ2cable_satellite_and_other_pay_television_and_radioZ%camera_and_photographic_supply_storesZ"candy_nut_and_confectionery_storesZcar_and_truck_dealers_new_usedZcar_and_truck_dealers_used_onlyZcar_rental_agenciesZ
car_washesZcarpentry_servicesZcarpet_upholstery_cleaningZcaterersZ7charitable_and_social_service_organizations_fundraisingZchemicals_and_allied_productsZchild_care_servicesZ!childrens_and_infants_wear_storesZchiropodists_podiatristsZchiropractorsZcigar_stores_and_standsZ#civic_social_fraternal_associationsZcleaning_and_maintenanceZclothing_rentalZcolleges_universitiesZcommercial_equipmentZcommercial_footwearZ'commercial_photography_art_and_graphicsZcommuter_transport_and_ferriesZcomputer_network_servicesZcomputer_programmingZcomputer_repairZcomputer_software_storesZ"computers_peripherals_and_softwareZconcrete_work_servicesZconstruction_materialsZconsulting_public_relationsZcorrespondence_schoolsZcosmetic_storesZcounseling_servicesZcountry_clubsZcourier_servicesZcourt_costsZcredit_reporting_agenciesZcruise_linesZdairy_products_storesZdance_hall_studios_schoolsZdating_escort_servicesZdentists_orthodontistsZdepartment_storesZdetective_agenciesZdigital_goods_applicationsZdigital_goods_gamesZdigital_goods_large_volumeZdigital_goods_mediaZ!direct_marketing_catalog_merchantZ8direct_marketing_combination_catalog_and_retail_merchantZ&direct_marketing_inbound_telemarketingZ#direct_marketing_insurance_servicesZdirect_marketing_otherZ'direct_marketing_outbound_telemarketingZdirect_marketing_subscriptionZdirect_marketing_travelZdiscount_storesZdoctorsZdoor_to_door_salesZ-drapery_window_covering_and_upholstery_storesZdrinking_placesZdrug_stores_and_pharmaciesZ.drugs_drug_proprietaries_and_druggist_sundriesZdry_cleanersZdurable_goodsZduty_free_storesZeating_places_restaurantsZeducational_servicesZelectric_razor_storesZelectric_vehicle_chargingZelectrical_parts_and_equipmentZelectrical_servicesZelectronics_repair_shopsZelectronics_storesZelementary_secondary_schoolsZ%emergency_services_gcas_visa_use_onlyZemployment_temp_agenciesZequipment_rentalZexterminating_servicesZfamily_clothing_storesZfast_food_restaurantsZfinancial_institutionsZ(fines_government_administrative_entitiesZ2fireplace_fireplace_screens_and_accessories_storesZfloor_covering_storesZfloristsZ+florists_supplies_nursery_stock_and_flowersZ$freezer_and_locker_meat_provisionersZfuel_dealers_non_automotiveZfuneral_services_crematoriesZAfurniture_home_furnishings_and_equipment_stores_except_appliancesZfurniture_repair_refinishingZfurriers_and_fur_shopsZgeneral_servicesZ$gift_card_novelty_and_souvenir_shopsZ glass_paint_and_wallpaper_storesZglassware_crystal_storesZgolf_courses_publicZ3government_licensed_horse_dog_racing_us_region_onlyZAgovernment_licensed_online_casions_online_gambling_us_region_onlyZ(government_owned_lotteries_non_us_regionZ)government_owned_lotteries_us_region_onlyZgovernment_servicesZgrocery_stores_supermarketsZhardware_equipment_and_suppliesZhardware_storesZhealth_and_beauty_spasZhearing_aids_sales_and_suppliesZheating_plumbing_a_cZhobby_toy_and_game_shopsZhome_supply_warehouse_storesZ	hospitalsZhotels_motels_and_resortsZhousehold_appliance_storesZindustrial_suppliesZinformation_retrieval_servicesZinsurance_defaultZinsurance_underwriting_premiumsZintra_company_purchasesZ3jewelry_stores_watches_clocks_and_silverware_storesZlandscaping_servicesZ	laundriesZlaundry_cleaning_servicesZlegal_services_attorneysZ luggage_and_leather_goods_storesZ lumber_building_materials_storesZmanual_cash_disburseZmarinas_service_and_suppliesZmarketplacesZmasonry_stonework_and_plasterZmassage_parlorsZmedical_and_dental_labsZ=medical_dental_ophthalmic_and_hospital_equipment_and_suppliesZmedical_servicesZmembership_organizationsZ-mens_and_boys_clothing_and_accessories_storesZmens_womens_clothing_storesZmetal_service_centersZ)miscellaneous_apparel_and_accessory_shopsZmiscellaneous_auto_dealersZmiscellaneous_business_servicesZmiscellaneous_food_storesZ!miscellaneous_general_merchandiseZmiscellaneous_general_servicesZ.miscellaneous_home_furnishing_specialty_storesZ%miscellaneous_publishing_and_printingZ!miscellaneous_recreation_servicesZmiscellaneous_repair_shopsZmiscellaneous_specialty_retailZmobile_home_dealersZmotion_picture_theatersZ#motor_freight_carriers_and_truckingZmotor_homes_dealersZ$motor_vehicle_supplies_and_new_partsZmotorcycle_shops_and_dealersZmotorcycle_shops_dealersZ7music_stores_musical_instruments_pianos_and_sheet_musicZnews_dealers_and_newsstandsZnon_fi_money_ordersZ&non_fi_stored_value_card_purchase_loadZnondurable_goodsZ'nurseries_lawn_and_garden_supply_storesZnursing_personal_careZoffice_and_commercial_furnitureZopticians_eyeglassesZoptometrists_ophthalmologistZ#orthopedic_goods_prosthetic_devicesZ
osteopathsZ#package_stores_beer_wine_and_liquorZpaints_varnishes_and_suppliesZparking_lots_garagesZpassenger_railwaysZ
pawn_shopsZpet_shops_pet_food_and_suppliesZ petroleum_and_petroleum_productsZphoto_developingZ7photographic_photocopy_microfilm_equipment_and_suppliesZphotographic_studiosZpicture_video_productionZ'piece_goods_notions_and_other_dry_goodsZ'plumbing_heating_equipment_and_suppliesZpolitical_organizationsZpostal_services_government_onlyZ.precious_stones_and_metals_watches_and_jewelryZprofessional_servicesZpublic_warehousing_and_storageZquick_copy_repro_and_blueprintZ	railroadsZ'real_estate_agents_and_managers_rentalsZrecord_storesZrecreational_vehicle_rentalsZreligious_goods_storesZreligious_organizationsZroofing_siding_sheet_metalZsecretarial_support_servicesZsecurity_brokers_dealersZservice_stationsZ/sewing_needlework_fabric_and_piece_goods_storesZshoe_repair_hat_cleaningZshoe_storesZsmall_appliance_repairZsnowmobile_dealersZspecial_trade_servicesZspecialty_cleaningZsporting_goods_storesZsporting_recreation_campsZ sports_and_riding_apparel_storesZsports_clubs_fieldsZstamp_and_coin_storesZ5stationary_office_supplies_printing_and_writing_paperZ1stationery_stores_office_and_school_supply_storesZswimming_pools_salesZt_ui_travel_germanyZtailors_alterationsZ tax_payments_government_agenciesZtax_preparation_servicesZtaxicabs_limousinesZ/telecommunication_equipment_and_telephone_salesZtelecommunication_servicesZtelegraph_servicesZtent_and_awning_shopsZtesting_laboratoriesZtheatrical_ticket_agenciesZ
timesharesZtire_retreading_and_repairZtolls_bridge_feesZ tourist_attractions_and_exhibitsZtowing_servicesZtrailer_parks_campgroundsZtransportation_servicesZtravel_agencies_tour_operatorsZtruck_stop_iterationZtruck_utility_trailer_rentalsZ-typesetting_plate_making_and_related_servicesZtypewriter_storesZ.u_s_federal_government_agencies_or_departmentsZuniforms_commercial_clothingZ&used_merchandise_and_secondhand_storesZ	utilitiesZvariety_storesZveterinary_servicesZvideo_amusement_game_suppliesZvideo_game_arcadesZvideo_tape_rental_storesZvocational_trade_schoolsZwatch_jewelry_repairZwelding_repairZwholesale_clubsZwig_and_toupee_storesZwires_money_ordersZ$womens_accessory_and_specialty_shopsZwomens_ready_to_wear_storesZwrecking_and_salvage_yardsrO   rP   rQ   rR   rS   rT   rU   rV   rW   N)r!   r"   r#   r   r   r%   r.   r&   r&   r&   r'   CreateParamsMerchantData  s    
  /r   c                   @   s   e Zd ZU ee ed< dS )r   rY   Nr   r&   r&   r&   r'   CreateParamsNetworkData  s   
r   c                   @   sf   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	< d
S )r   rv   rx   ry   AAuthorization.CreateParamsVerificationDataAuthenticationExemptionrz   r{   r|   6Authorization.CreateParamsVerificationDataThreeDSecurer}   N)r!   r"   r#   r   r   r%   r&   r&   r&   r'   CreateParamsVerificationData  s   
r   c                   @   s&   e Zd ZU ed ed< ed ed< dS )r   rj   rk   rl   rJ   Nrn   r&   r&   r&   r'   3CreateParamsVerificationDataAuthenticationExemption  s
   
r   c                   @   s   e Zd ZU ed ed< dS )r   rp   rt   Nrn   r&   r&   r&   r'   (CreateParamsVerificationDataThreeDSecure*  s   
r   c                   @   s*   e Zd ZU eee  ed< ed ed< dS )Authorization.DeclineParamsr   r   r   Nr!   r"   r#   r   r   r.   r%   r&   r&   r&   r'   DeclineParams2  s   
r   c                   @   s   e Zd ZU eee  ed< dS )Authorization.ExpireParamsr   Nr   r&   r&   r&   r'   ExpireParams<  s   
r   c                   @   s>   e Zd ZU eee  ed< eed< ed ed< ed ed< dS )"Authorization.FinalizeAmountParamsr   Zfinal_amount'Authorization.FinalizeAmountParamsFleetr   &Authorization.FinalizeAmountParamsFuelr7   Nr!   r"   r#   r   r   r.   r%   r$   r&   r&   r&   r'   FinalizeAmountParamsB  s
   
r   c                   @   sF   e Zd ZU ed ed< eed  ed< ed ed< eed  ed< d	S )
r   ;Authorization.FinalizeAmountParamsFleetCardholderPromptDatar<   r=   r>   8Authorization.FinalizeAmountParamsFleetReportedBreakdownr?   r@   rA   Nr   r&   r&   r&   r'   FinalizeAmountParamsFleetT  s   

r   c                   @   sJ   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< dS )r   r)   r*   r+   r,   r-   Nr   r&   r&   r&   r'   -FinalizeAmountParamsFleetCardholderPromptDatar  s   
r   c                   @   s2   e Zd ZU ed ed< ed ed< ed ed< dS )r   <Authorization.FinalizeAmountParamsFleetReportedBreakdownFuelr7   ?Authorization.FinalizeAmountParamsFleetReportedBreakdownNonFuelr8   ;Authorization.FinalizeAmountParamsFleetReportedBreakdownTaxr9   Nr   r&   r&   r&   r'   *FinalizeAmountParamsFleetReportedBreakdown  s   
r   c                   @   s   e Zd ZU ee ed< dS )r   r0   Nr   r&   r&   r&   r'   .FinalizeAmountParamsFleetReportedBreakdownFuel  s   
r   c                   @   s   e Zd ZU ee ed< dS )r   r0   Nr   r&   r&   r&   r'   1FinalizeAmountParamsFleetReportedBreakdownNonFuel  s   
r   c                   @   s&   e Zd ZU ee ed< ee ed< dS )r   r4   r5   Nr   r&   r&   r&   r'   -FinalizeAmountParamsFleetReportedBreakdownTax  s   
r   c                   @   sR   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< dS )	r   rF   rG   rH   rJ   rK   rM   rN   Nr   r&   r&   r&   r'   FinalizeAmountParamsFuel  s   
r   c                   @   s2   e Zd ZU eee  ed< eed< ee ed< dS )Authorization.IncrementParamsr   Zincrement_amountr^   N)	r!   r"   r#   r   r   r.   r%   r$   rb   r&   r&   r&   r'   IncrementParams  s   
r   c                   @   sv   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
< dS )Authorization.ListParamsr   
cardholderz#Authorization.ListParamsCreated|intre   Zending_beforer   limitZstarting_afterclosedrC   reversedrD   N)	r!   r"   r#   r   r.   r%   r   r$   r   r&   r&   r&   r'   
ListParams  s   
r   c                   @   s>   e Zd ZU ee ed< ee ed< ee ed< ee ed< dS )zAuthorization.ListParamsCreatedgtZgteltZlteNr   r&   r&   r&   r'   ListParamsCreated  s
   
r   c                   @   s*   e Zd ZU eee  ed< ed ed< dS )Authorization.ModifyParamsr   r   r   Nr   r&   r&   r&   r'   ModifyParams  s   
r   c                   @   s&   e Zd ZU eed< eee  ed< dS )Authorization.RespondParamsZ	confirmedr   N)r!   r"   r#   rb   r%   r   r   r.   r&   r&   r&   r'   RespondParams'  s   
r   c                   @   s   e Zd ZU eee  ed< dS )Authorization.RetrieveParamsr   Nr   r&   r&   r&   r'   RetrieveParams1  s   
r   c                   @   s*   e Zd ZU eee  ed< ee ed< dS )Authorization.ReverseParamsr   Zreverse_amountNr   r&   r&   r&   r'   ReverseParams7  s   
r   r[   r\   rd   r   r   r   Zbalance_transactionsr   r   r   r   re   r]   r   fraud_challengesr7   idZlivemoder_   r`   r   r   r   objectpending_requestrequest_historyr   rD   r   tokenr   Ztransactionstreasuryr   Zverified_by_fraud_challenger   r   authorizationparamsreturnc                 K   s"   t d| jddjt|d|d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   r&   r&   r'   _cls_approve  s    
zAuthorization._cls_approvec                 K   s   dS r  Nr&   r   r   r&   r&   r'   approve  s    	zAuthorization.approver   r  c                 K   s   dS r  r&   selfr   r&   r&   r'   r    s    r  c              	   K   s(   t d| jddjt| dd|dS )r  r   r  r  r   r  r  r   _requestr	  r
   getr  r&   r&   r'   r    s    c                    s(   t d| jddjt|d|dI dH S )r  r   r  r  r  r  Nr   _static_request_asyncr	  r
   r
  r&   r&   r'   _cls_approve_async  s    

z Authorization._cls_approve_asyncc                    s   dS r  r&   r  r&   r&   r'   approve_async  s    	zAuthorization.approve_asyncc                    s   dS r  r&   r  r&   r&   r'   r    s    r  c              	      s.   t d| jddjt| dd|dI dH S )r  r   r  r  r   r  r  Nr   _request_asyncr	  r
   r  r  r&   r&   r'   r    s    
r   c                 K   s"   t d| jddjt|d|d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
  r&   r&   r'   _cls_decline,  s    
zAuthorization._cls_declinec                 K   s   dS r  Nr&   r  r&   r&   r'   declineA  s    	zAuthorization.declinec                 K   s   dS r  r&   r  r&   r&   r'   r   L  s    r  c              	   K   s(   t d| jddjt| dd|dS )r  r   r  r  r   r  r  r  r  r&   r&   r'   r   V  s    c                    s(   t d| jddjt|d|dI dH S )r  r   r  r  r  r  Nr  r
  r&   r&   r'   _cls_decline_asynci  s    

z Authorization._cls_decline_asyncc                    s   dS r  r&   r  r&   r&   r'   decline_async~  s    	zAuthorization.decline_asyncc                    s   dS r  r&   r  r&   r&   r'   r"    s    r!  c              	      s.   t d| jddjt| dd|dI dH S )r  r   r  r  r   r  r  Nr  r  r&   r&   r'   r"    s    
r   c                 K   s4   | j d|  |d}t|ts0tdt|j |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   	TypeErrorrJ   r!   r  r   rt   r&   r&   r'   list  s    
zAuthorization.listc                    s:   | j d|  |dI dH }t|ts6tdt|j |S )r#  r  r  Nr$  )r  r%  r&  r   r'  rJ   r!   r(  r&   r&   r'   
list_async  s    
zAuthorization.list_asyncr   )r   r   r  c                 K   s*   d|   t|f }td| jd||dS )
        Updates the specified Issuing Authorization object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
        %s/%sr   r  r  )r%  r
   r   r  r  r   r   rW   r&   r&   r'   modify  s    zAuthorization.modifyc                    s0   d|   t|f }td| jd||dI dH S )r+  r,  r   r  r  N)r%  r
   r   r  r-  r&   r&   r'   modify_async  s    
zAuthorization.modify_asyncr   c                 K   s   | |fi |}|   |S )<
        Retrieves an Issuing Authorization object.
        )refreshr  r   r   instancer&   r&   r'   retrieve  s    zAuthorization.retrievec                    s"   | |fi |}|  I dH  |S )r0  N)Zrefresh_asyncr2  r&   r&   r'   retrieve_async  s    zAuthorization.retrieve_asyncc                   @   sZ  e Zd ZU ed ed< eeed ddddZe	e
eed ddddZe	ed dd	d
dZeded dd	ddZeeed ddddZe	e
eed ddddZe	ed dd	ddZeded dd	ddZeed dd	ddZeed dd	ddZeeed ddddZe	e
eed ddddZe	ed dd	ddZeded dd	d dZeeed ddd!d"Ze	e
eed ddd#d$Ze	ed dd	d%d$Zed&ed dd	d'd$Zeeed( ddd)d*Ze	e
eed( ddd+d,Ze	ed( dd	d-d,Zed.ed( dd	d/d,Zeeed( ddd0d1Ze	e
eed( ddd2d3Ze	ed( dd	d4d3Zed5ed( dd	d6d3Zeeed7 ddd8d9Ze	e
eed7 ddd:d;Ze	ed7 dd	d<d;Zed=ed7 dd	d>d;Zeeed7 ddd?d@Ze	e
eed7 dddAdBZe	ed7 dd	dCdBZedDed7 dd	dEdBZeeedF dddGdHZe	e
eedF dddIdJZe	edF dd	dKdJZedLedF dd	dMdJZeeedF dddNdOZe	e
eedF dddPdQZ e	edF dd	dRdQZ edSedF dd	dTdQZ eeedU dddVdWZ!e	e
eedU dddXdYZ"e	edU dd	dZdYZ"ed[edU dd	d\dYZ"eeedU ddd]d^Z#e	e
eedU ddd_d`Z$e	edU dd	dad`Z$edbedU dd	dcd`Z$ddS )ezAuthorization.TestHelpersr   _resource_clsr   r   c                 K   s"   t d| jddjt|d|dS )<
            Capture a test-mode authorization.
            r   r  ?/v1/test_helpers/issuing/authorizations/{authorization}/capturer  r  r  r
  r&   r&   r'   _cls_capture	  s    	z&Authorization.TestHelpers._cls_capturec                 K   s   dS r7  Nr&   r  r&   r&   r'   capture  s    z!Authorization.TestHelpers.capturer  c                 K   s   dS r:  r&   r  r&   r&   r'   r;  '  s    r9  c              	   K   s,   t d| jjddjt| jdd|dS )r7  r   r  r8  r   r  r  r   resourcer  r	  r
   r  r  r&   r&   r'   r;  0  s    c                    s(   t d| jddjt|d|dI dH S )r7  r   r  r8  r  r  Nr  r
  r&   r&   r'   _cls_capture_asyncB  s    	
z,Authorization.TestHelpers._cls_capture_asyncc                    s   dS r:  r&   r  r&   r&   r'   capture_asyncV  s    z'Authorization.TestHelpers.capture_asyncc                    s   dS r:  r&   r  r&   r&   r'   r?  `  s    r>  c              	      s2   t d| jjddjt| jdd|dI dH S )r7  r   r  r8  r   r  r  Nr   r=  r  r	  r
   r  r  r&   r&   r'   r?  i  s    
r   c                 K   s   t d| jdd|dS );
            Create a test-mode authorization.
            r   r  '/v1/test_helpers/issuing/authorizationsr  )r   r  r  r   r&   r&   r'   create{  s    z Authorization.TestHelpers.createc                    s   t d| jdd|dI dH S )rA  r   r  rB  r  N)r   r  rC  r&   r&   r'   create_async  s    
z&Authorization.TestHelpers.create_asyncr   c                 K   s"   t d| jddjt|d|dS );
            Expire a test-mode Authorization.
            r   r  >/v1/test_helpers/issuing/authorizations/{authorization}/expirer  r  r  r
  r&   r&   r'   _cls_expire  s    	z%Authorization.TestHelpers._cls_expirec                 K   s   dS rF  Nr&   r  r&   r&   r'   expire  s    z Authorization.TestHelpers.expirec                 K   s   dS rI  r&   r  r&   r&   r'   rJ    s    rH  c              	   K   s,   t d| jjddjt| jdd|dS )rF  r   r  rG  r   r  r  r<  r  r&   r&   r'   rJ    s    c                    s(   t d| jddjt|d|dI dH S )rF  r   r  rG  r  r  Nr  r
  r&   r&   r'   _cls_expire_async  s    	
z+Authorization.TestHelpers._cls_expire_asyncc                    s   dS rI  r&   r  r&   r&   r'   expire_async  s    z&Authorization.TestHelpers.expire_asyncc                    s   dS rI  r&   r  r&   r&   r'   rL    s    rK  c              	      s2   t d| jjddjt| jdd|dI dH S )rF  r   r  rG  r   r  r  Nr@  r  r&   r&   r'   rL    s    
r   c                 K   s"   t d| jddjt|d|d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
  r&   r&   r'   _cls_finalize_amount	  s    	z.Authorization.TestHelpers._cls_finalize_amountc                 K   s   dS rM  Nr&   r  r&   r&   r'   finalize_amount!	  s    	z)Authorization.TestHelpers.finalize_amountc                 K   s   dS rP  r&   r  r&   r&   r'   rQ  ,	  s    rO  c              	   K   s,   t d| jjddjt| jdd|dS )rM  r   r  rN  r   r  r  r<  r  r&   r&   r'   rQ  5	  s    c                    s(   t d| jddjt|d|dI dH S )rM  r   r  rN  r  r  Nr  r
  r&   r&   r'   _cls_finalize_amount_asyncG	  s    	
z4Authorization.TestHelpers._cls_finalize_amount_asyncc                    s   dS rP  r&   r  r&   r&   r'   finalize_amount_async[	  s    	z/Authorization.TestHelpers.finalize_amount_asyncc                    s   dS rP  r&   r  r&   r&   r'   rS  f	  s    rR  c              	      s2   t d| jjddjt| jdd|dI dH S )rM  r   r  rN  r   r  r  Nr@  r  r&   r&   r'   rS  o	  s    
r   c                 K   s"   t d| jddjt|d|dS )>
            Increment a test-mode Authorization.
            r   r  A/v1/test_helpers/issuing/authorizations/{authorization}/incrementr  r  r  r
  r&   r&   r'   _cls_increment	  s    	z(Authorization.TestHelpers._cls_incrementc                 K   s   dS rT  Nr&   r  r&   r&   r'   	increment	  s    	z#Authorization.TestHelpers.incrementc                 K   s   dS rW  r&   r  r&   r&   r'   rX  	  s    rV  c              	   K   s,   t d| jjddjt| jdd|dS )rT  r   r  rU  r   r  r  r<  r  r&   r&   r'   rX  	  s    c                    s(   t d| jddjt|d|dI dH S )rT  r   r  rU  r  r  Nr  r
  r&   r&   r'   _cls_increment_async	  s    	
z.Authorization.TestHelpers._cls_increment_asyncc                    s   dS rW  r&   r  r&   r&   r'   increment_async	  s    	z)Authorization.TestHelpers.increment_asyncc                    s   dS rW  r&   r  r&   r&   r'   rZ  	  s    rY  c              	      s2   t d| jjddjt| jdd|dI dH S )rT  r   r  rU  r   r  r  Nr@  r  r&   r&   r'   rZ  	  s    
r   c                 K   s"   t d| jddjt|d|d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
  r&   r&   r'   _cls_respond	  s    	z&Authorization.TestHelpers._cls_respondc                 K   s   dS r[  Nr&   r  r&   r&   r'   respond	
  s    z!Authorization.TestHelpers.respondc                 K   s   dS r^  r&   r  r&   r&   r'   r_  
  s    r]  c              	   K   s,   t d| jjddjt| jdd|dS )r[  r   r  r\  r   r  r  r<  r  r&   r&   r'   r_  
  s    c                    s(   t d| jddjt|d|dI dH S )r[  r   r  r\  r  r  Nr  r
  r&   r&   r'   _cls_respond_async.
  s    	
z,Authorization.TestHelpers._cls_respond_asyncc                    s   dS r^  r&   r  r&   r&   r'   respond_asyncB
  s    z'Authorization.TestHelpers.respond_asyncc                    s   dS r^  r&   r  r&   r&   r'   ra  L
  s    r`  c              	      s2   t d| jjddjt| jdd|dI dH S )r[  r   r  r\  r   r  r  Nr@  r  r&   r&   r'   ra  U
  s    
r   c                 K   s"   t d| jddjt|d|dS )<
            Reverse a test-mode Authorization.
            r   r  ?/v1/test_helpers/issuing/authorizations/{authorization}/reverser  r  r  r
  r&   r&   r'   _cls_reverseg
  s    	z&Authorization.TestHelpers._cls_reversec                 K   s   dS rb  Nr&   r  r&   r&   r'   reverse{
  s    z!Authorization.TestHelpers.reversec                 K   s   dS re  r&   r  r&   r&   r'   rf  
  s    rd  c              	   K   s,   t d| jjddjt| jdd|dS )rb  r   r  rc  r   r  r  r<  r  r&   r&   r'   rf  
  s    c                    s(   t d| jddjt|d|dI dH S )rb  r   r  rc  r  r  Nr  r
  r&   r&   r'   _cls_reverse_async
  s    	
z,Authorization.TestHelpers._cls_reverse_asyncc                    s   dS re  r&   r  r&   r&   r'   reverse_async
  s    z'Authorization.TestHelpers.reverse_asyncc                    s   dS re  r&   r  r&   r&   r'   rh  
  s    rg  c              	      s2   t d| jjddjt| jdd|dI dH S )rb  r   r  rc  r   r  r  Nr@  r  r&   r&   r'   rh  
  s    
N)%r!   r"   r#   r   r%   classmethodr.   r   r9  r   staticmethodr;  r	   r>  r?  rD  rE  rH  rJ  rK  rL  rO  rQ  rR  rS  rV  rX  rY  rZ  r]  r_  r`  ra  rd  rf  rg  rh  r&   r&   r&   r'   TestHelpers  s  
				rk  c                 C   s
   |  | S )N)rk  )r  r&   r&   r'   test_helpers
  s    zAuthorization.test_helpers)
r\   r   r   r7   r   r   r   r   r   r   N)br!   r"   r#   __doc__r   r   r   r%   r   r(   rB   rE   r2   rX   rZ   rc   rh   ri   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   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r$   r   rb   r   r   r.   r   ri  r   r  r   rj  r  r	   r  r  r  r   r!  r"  r   r)  r*  r.  r/  r4  r5  r   rk  propertyrl  r:   r&   r&   r&   r'   r      s  
	
a).)Q6
)
B

)  Q"

)"


								

     X
r   N),Zstripe._expandable_fieldr   Zstripe._list_objectr   Zstripe._listable_api_resourcer   Zstripe._request_optionsr   Zstripe._stripe_objectr   Zstripe._test_helpersr   Zstripe._updateable_api_resourcer   Zstripe._utilr	   r
   typingr   r   r   r   r   r   Ztyping_extensionsr   r   r   r   r   r   Zstripe._balance_transactionr   Zstripe.issuing._cardr   Zstripe.issuing._cardholderr   Zstripe.issuing._tokenr   Zstripe.issuing._transactionr   r   rk  r6  r&   r&   r&   r'   <module>   sR     	
                     c