
    jof/                    D   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( d dl)m*Z*  G 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)Authorization)Card)
Cardholder)Dispute)Tokenc                      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          Z0e1edP<   	 e2e	         edQ<   	 e2e3dR                  edS<   	 e2e3dT                  edU<   	 e3dV         edW<   	 e2e3dX                  edY<   	 e1edZ<   	 e4ed[<   	 e2e3d\                  ed]<   	 e4ed^<   	 e5ed_<   	 e1ed`<   	 e4eda<   	 e
edb<   e6e4e4f         edc<   	 e2e         edd<   	 ed         ede<   	 e2e         edf<   	 e2e3dg                  edh<   	 e2e         edi<   	 edj         edk<   	 e2edl                  edm<   	 e7dne8do         dpe9d          fdq            Z:e7dne8do         dpe9d          fdr            Z;e7d^e4dne8ds         dpd fdt            Z<e7d^e4dne8ds         dpd fdu            Z=e7d^e4dne8dv         dpd fdw            Z>e7d^e4dne8dv         dpd fdx            Z? G dy dze@d                    ZAeBd{             ZCe	e
eeed|ZDd}S )~TransactionaO  
    Any use of an [issued card](https://stripe.com/docs/issuing) that results in funds entering or leaving
    your Stripe account, such as a completed purchase or refund, is represented by an Issuing
    `Transaction` object.

    Related guide: [Issued card transactions](https://stripe.com/docs/issuing/purchases/transactions)
    zissuing.transactionOBJECT_NAMEc                   >    e Zd ZU ee         ed<   	 ee         ed<   dS )Transaction.AmountDetailsatm_feecashback_amountN__name__
__module____qualname__r   int__annotations__     U/var/www/html/Alfredo/env/lib/python3.11/site-packages/stripe/issuing/_transaction.pyAmountDetailsr"   .   s=         #	 "#&&&	 	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
<   dS )Transaction.MerchantDatacategorycategory_codecitycountryname
network_idpostal_codestateterminal_idurlN)r&   r'   r(   strr*   r   r+   r,   r-   MerchantDatar0   8   s         	 	 sm	 #	 sm	 	 c]"""	 }	 c]"""	 c]	 	r,   r<   c                   V    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   dS )Transaction.NetworkDataauthorization_codeprocessing_datetransaction_idNr&   r'   r(   r   r;   r*   r+   r,   r-   NetworkDatar>   b   sT         $SM)))	 "#&&&	 !%%%	 	r,   rC   c                   H   e Zd ZU  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e	e         e
d<   	 e	e         e
d<   	 e	e         e
d<   	 e	e         e
d<   	 e	ee                  e
d<   	 e	e         e
d<   	 eeeeedZdS )Transaction.PurchaseDetailsc                       e Zd ZU  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<   	 eed	Z	d
S )!Transaction.PurchaseDetails.Fleetc                       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 )6Transaction.PurchaseDetails.Fleet.CardholderPromptData	driver_idodometerunspecified_iduser_idvehicle_numberN)r&   r'   r(   r   r;   r*   r)   r+   r,   r-   CardholderPromptDatarI   r   s         #C=((( #3-''' !)--- "#&&& !)--- r,   rO   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	dS )3Transaction.PurchaseDetails.Fleet.ReportedBreakdownc                   &    e Zd ZU ee         ed<   dS )8Transaction.PurchaseDetails.Fleet.ReportedBreakdown.Fuelgross_amount_decimalNrB   r+   r,   r-   FuelrS      &         *23-777 r,   rU   c                   &    e Zd ZU ee         ed<   dS );Transaction.PurchaseDetails.Fleet.ReportedBreakdown.NonFuelrT   NrB   r+   r,   r-   NonFuelrX      rV   r,   rY   c                   >    e Zd ZU ee         ed<   	 ee         ed<   dS )7Transaction.PurchaseDetails.Fleet.ReportedBreakdown.Taxlocal_amount_decimalnational_amount_decimalNrB   r+   r,   r-   Taxr[      s=         *23-777 .6c]::: r,   r^   fuelnon_fueltax)r_   r`   ra   N)
r&   r'   r(   r   rU   rY   r^   r   r*   _inner_class_typesr+   r,   r-   ReportedBreakdownrQ      s             <       l       ,    tn$$$ #7++++ c]""" ! '& &"""r,   rc   cardholder_prompt_datapurchase_typereported_breakdownservice_type)rd   rf   N)
r&   r'   r(   r   rO   rc   r   r*   r;   rb   r+   r,   r-   FleetrG   q   s             |   ,' ' ' ' 'L ' ' 'R %--A$BBBB $C=((( !)): ;;;; #3-''' +?&7" "r,   rh   c                       e Zd ZU  G d de          Zee         ed<   	 ee         ed<   	 ee	         ed<   	 ee
e                  ed<   	 ee         ed<   	 deiZdS )	"Transaction.PurchaseDetails.Flightc                       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 )*Transaction.PurchaseDetails.Flight.Segmentarrival_airport_codecarrierdeparture_airport_codeflight_numberservice_classstopover_allowedN)r&   r'   r(   r   r;   r*   boolr+   r,   r-   Segmentrl      s         &.sm333 "#&&& )1555  (},,,  (},,, #+4.000 r,   rt   departure_atpassenger_name
refundablesegmentstravel_agencyN)r&   r'   r(   r   rt   r   r)   r*   r;   rs   r   rb   r+   r,   r-   Flightrj      s             ,   4 #3-''' %SM))) !&&& tG}---- $C=((( #-g!6r,   rz   c                   b    e Zd ZU ee         ed<   	 ee         ed<   	 eed<   	 eed<   	 eed<   dS ) Transaction.PurchaseDetails.Fuelindustry_product_codequantity_decimaltypeunitunit_cost_decimalNrB   r+   r,   r-   rU   r|      sp         #+C=000 'sm+++ III III  #""" r,   rU   c                   >    e Zd ZU ee         ed<   	 ee         ed<   dS )#Transaction.PurchaseDetails.Lodgingcheck_in_atnightsNr%   r+   r,   r-   Lodgingr     s=         !#&&& SM!!! r,   r   c                   n    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   dS )#Transaction.PurchaseDetails.Receiptdescriptionquantitytotal	unit_costN)r&   r'   r(   r   r;   r*   floatr)   r+   r,   r-   Receiptr     sk         !#&&& uo%%% C=     }$$$ r,   r   fleetflightr_   lodgingreceipt	reference)r   r   r_   r   r   N)r&   r'   r(   r   rh   rz   rU   r   r   r   r*   r   r;   rb   r+   r,   r-   PurchaseDetailsrE   p   s        S	 S	 S	 S	 S	L S	 S	 S	j/	7 /	7 /	7 /	7 /	7\ /	7 /	7 /	7b	 	 	 	 	< 	 	 	,	 	 	 	 	l 	 	 		 	 	 	 	l 	 	 	$ 	     	 tn	 '""""	 $w-((((	 C=   	 
 
r,   r   c                   >    e Zd ZU ee         ed<   	 ee         ed<   dS )Transaction.Treasuryreceived_creditreceived_debitNrB   r+   r,   r-   Treasuryr   I  s=         !#&&&	 !%%%	 	r,   r   c                       e Zd ZU eed<   	 eed<   	 ee         ed<   	 eee                  ed<   	 ed         ed<   	 ed         ed<   d	S )
$Transaction.CreateForceCaptureParamsamountcardcurrencyexpand0Transaction.CreateForceCaptureParamsMerchantDatamerchant_data3Transaction.CreateForceCaptureParamsPurchaseDetailspurchase_detailsNr&   r'   r(   r)   r*   r;   r   r   r+   r,   r-   CreateForceCaptureParamsr   S  s         	 				 c""""	 DI&&&&	 #>
 	
 	
 	
	 &A
 	
 	
 	
	 	r,   r   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
<   dS )r   &  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_yardsr1   r3   r4   r5   r6   r7   r8   r9   r:   Nr&   r'   r(   r   r   r*   r;   r+   r,   r-   $CreateForceCaptureParamsMerchantDataz0Transaction.CreateForceCaptureParamsMerchantDataq          e.gi
 i	
 i	
 i	
T		 #	 S!!!!	 #	  $$$$	 !%%%%	 3	 !%%%%	 	 	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<   dS )r   8Transaction.CreateForceCaptureParamsPurchaseDetailsFleetr   9Transaction.CreateForceCaptureParamsPurchaseDetailsFlightr   7Transaction.CreateForceCaptureParamsPurchaseDetailsFuelr_   :Transaction.CreateForceCaptureParamsPurchaseDetailsLodgingr   :Transaction.CreateForceCaptureParamsPurchaseDetailsReceiptr   r   Nr&   r'   r(   r   r*   r   r;   r+   r,   r-   'CreateForceCaptureParamsPurchaseDetailsz3Transaction.CreateForceCaptureParamsPurchaseDetails  s         F
 	
 	
 	
	 G
 	
 	
 	
	 E
 	
 	
 	
	 H
 	
 	
 	
	 MN
 	
 	
 	
	 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<   d	S )
r  LTransaction.CreateForceCaptureParamsPurchaseDetailsFleetCardholderPromptDatard   fuel_and_non_fuel_purchasefuel_purchasenon_fuel_purchasere   ITransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownrf   full_servicenon_fuel_transactionself_servicerg   Nr&   r'   r(   r   r*   r   r+   r,   r-   ,CreateForceCaptureParamsPurchaseDetailsFleetz8Transaction.CreateForceCaptureParamsPurchaseDetailsFleet  s          +Z!
 	
 	
 	
	 #%
 	
 	
 	
	 (W
 	
 	
 	
	 "JK
 	
 	
 	
	 	r,   r  c                       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  rJ   rK   rL   rM   rN   Nr&   r'   r(   r   r;   r*   r)   r+   r,   r-   @CreateForceCaptureParamsPurchaseDetailsFleetCardholderPromptDatazLTransaction.CreateForceCaptureParamsPurchaseDetailsFleetCardholderPromptData            s####	 c""""	 $C((((	 S!!!!	 $C((((	 	r,   r  c                   V    e Zd ZU ed         ed<   	 ed         ed<   	 ed         ed<   dS )r  MTransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownFuelr_   PTransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuelr`   LTransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownTaxra   Nr&   r'   r(   r   r*   r+   r,   r-   =CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownzITransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdown  st          [
 	
 	
 	
	 ^
 	
 	
 	
	 Z
 	
 	
 	
	 	r,   r  c                   &    e Zd ZU ee         ed<   dS )r  rT   Nr&   r'   r(   r   r;   r*   r+   r,   r-   ACreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownFuelzMTransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownFuel0  )          *#....	 	r,   r  c                   &    e Zd ZU ee         ed<   dS )r  rT   Nr  r+   r,   r-   DCreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuelzPTransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuel8  r  r,   r  c                   >    e Zd ZU ee         ed<   	 ee         ed<   dS )r  r\   r]   Nr  r+   r,   r-   @CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownTaxzLTransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownTax@  A          *#....	 "-S!1111	 	r,   r  c                       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  ru   rv   rw   @Transaction.CreateForceCaptureParamsPurchaseDetailsFlightSegmentrx   ry   N	r&   r'   r(   r   r)   r*   r;   rs   r   r+   r,   r-   -CreateForceCaptureParamsPurchaseDetailsFlightz9Transaction.CreateForceCaptureParamsPurchaseDetailsFlightL  s         !#&&&&	 $C((((	  %%%%	 R
 	
 	
 	

	 #3''''	 	r,   r  c                       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  rm   rn   ro   rp   rq   rr   Nr&   r'   r(   r   r;   r*   rs   r+   r,   r-   4CreateForceCaptureParamsPurchaseDetailsFlightSegmentz@Transaction.CreateForceCaptureParamsPurchaseDetailsFlightSegmentf           )#....	 S!!!!	 !,C 0000	 #3''''	 #3''''	 &d++++	 	r,   r  c                       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  r}   r~   dieselotherunleaded_plusunleaded_regularunleaded_superr   charging_minuteimperial_gallonkilogramkilowatt_hourliterr  pound	us_gallonr   r   Nr&   r'   r(   r   r;   r*   r   r+   r,   r-   +CreateForceCaptureParamsPurchaseDetailsFuelz7Transaction.CreateForceCaptureParamsPurchaseDetailsFuel           *3////	 &c****	 "
 	
 	
 	
	 	
 	
 	
 	
	 's++++	 	r,   r  c                   >    e Zd ZU ee         ed<   	 ee         ed<   dS )r  r   r   Nr&   r'   r(   r   r)   r*   r+   r,   r-   .CreateForceCaptureParamsPurchaseDetailsLodgingz:Transaction.CreateForceCaptureParamsPurchaseDetailsLodging  ?          %%%%	 C    	 	r,   r  c                   h    e Zd ZU ee         ed<   ee         ed<   ee         ed<   ee         ed<   dS )r  r   r   r   r   Nr  r+   r,   r-   .CreateForceCaptureParamsPurchaseDetailsReceiptz:Transaction.CreateForceCaptureParamsPurchaseDetailsReceipt  V          %%%%c""""3s######r,   r  c                       e Zd ZU eed<   	 eed<   	 ee         ed<   	 eee                  ed<   	 ed         ed<   	 ed         ed<   d	S )
&Transaction.CreateUnlinkedRefundParamsr   r   r   r   2Transaction.CreateUnlinkedRefundParamsMerchantDatar   5Transaction.CreateUnlinkedRefundParamsPurchaseDetailsr   Nr   r+   r,   r-   CreateUnlinkedRefundParamsr    s         	 				 c""""	 DI&&&&	 #@
 	
 	
 	
	 &C
 	
 	
 	
	 	r,   r  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
<   dS )r  r   r1   r3   r4   r5   r6   r7   r8   r9   r:   Nr  r+   r,   r-   &CreateUnlinkedRefundParamsMerchantDataz2Transaction.CreateUnlinkedRefundParamsMerchantData  r  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<   dS )r  :Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetr   ;Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFlightr   9Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuelr_   <Transaction.CreateUnlinkedRefundParamsPurchaseDetailsLodgingr   <Transaction.CreateUnlinkedRefundParamsPurchaseDetailsReceiptr   r   Nr  r+   r,   r-   )CreateUnlinkedRefundParamsPurchaseDetailsz5Transaction.CreateUnlinkedRefundParamsPurchaseDetails&  s         H
 	
 	
 	
	 I
 	
 	
 	
	 G
 	
 	
 	
	 J
 	
 	
 	
	 N
 	
 	
 	

	 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<   d	S )
r"  NTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetCardholderPromptDatard   r  re   KTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownrf   r  rg   Nr  r+   r,   r-   .CreateUnlinkedRefundParamsPurchaseDetailsFleetz:Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetL  s          +\!
 	
 	
 	
	 #%
 	
 	
 	
	 (Y
 	
 	
 	
	 "JK
 	
 	
 	
	 	r,   r+  c                       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)  rJ   rK   rL   rM   rN   Nr  r+   r,   r-   BCreateUnlinkedRefundParamsPurchaseDetailsFleetCardholderPromptDatazNTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetCardholderPromptDataj  r  r,   r-  c                   V    e Zd ZU ed         ed<   	 ed         ed<   	 ed         ed<   dS )r*  OTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownFuelr_   RTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownNonFuelr`   NTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownTaxra   Nr  r+   r,   r-   ?CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownzKTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdown  st          ]
 	
 	
 	
	 `
 	
 	
 	
	 \
 	
 	
 	
	 	r,   r2  c                   &    e Zd ZU ee         ed<   dS )r/  rT   Nr  r+   r,   r-   CCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownFuelzOTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownFuel  r  r,   r4  c                   &    e Zd ZU ee         ed<   dS )r0  rT   Nr  r+   r,   r-   FCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownNonFuelzRTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownNonFuel  r  r,   r6  c                   >    e Zd ZU ee         ed<   	 ee         ed<   dS )r1  r\   r]   Nr  r+   r,   r-   BCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownTaxzNTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownTax  r  r,   r8  c                       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#  ru   rv   rw   BTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFlightSegmentrx   ry   Nr  r+   r,   r-   /CreateUnlinkedRefundParamsPurchaseDetailsFlightz;Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFlight  s         !#&&&&	 $C((((	  %%%%	 T
 	
 	
 	

	 #3''''	 	r,   r;  c                       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:  rm   rn   ro   rp   rq   rr   Nr  r+   r,   r-   6CreateUnlinkedRefundParamsPurchaseDetailsFlightSegmentzBTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFlightSegment  r   r,   r=  c                       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$  r}   r~   r  r   r  r   r   Nr  r+   r,   r-   -CreateUnlinkedRefundParamsPurchaseDetailsFuelz9Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel  r  r,   r?  c                   >    e Zd ZU ee         ed<   	 ee         ed<   dS )r%  r   r   Nr  r+   r,   r-   0CreateUnlinkedRefundParamsPurchaseDetailsLodgingz<Transaction.CreateUnlinkedRefundParamsPurchaseDetailsLodging  r  r,   rA  c                   h    e Zd ZU ee         ed<   ee         ed<   ee         ed<   ee         ed<   dS )r&  r   r   r   r   Nr  r+   r,   r-   0CreateUnlinkedRefundParamsPurchaseDetailsReceiptz<Transaction.CreateUnlinkedRefundParamsPurchaseDetailsReceipt  r  r,   rC  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
<   dS )Transaction.ListParamsr   
cardholderz!Transaction.ListParamsCreated|intcreatedending_beforer   limitstarting_aftercapturerefundr   N)	r&   r'   r(   r   r;   r*   r   r)   r   r+   r,   r-   
ListParamsrE  !  s         #	  $$$$	 @AAAA	 #3''''	 DI&&&&	 3	 $C((((	 '"567777	 	r,   rN  c                   n    e Zd ZU ee         ed<   	 ee         ed<   	 ee         ed<   	 ee         ed<   dS )Transaction.ListParamsCreatedgtgteltlteNr  r+   r,   r-   ListParamsCreatedrP  C  so         	 	 	 	 	r,   rU  c                   J    e Zd ZU eee                  ed<   	 ed         ed<   dS )Transaction.ModifyParamsr   zLiteral['']|Dict[str, str]metadataNr&   r'   r(   r   r   r;   r*   r+   r,   r-   ModifyParamsrW  U  sD         DI&&&&	 :;;;;	 	r,   rZ  c                   J    e Zd ZU eee                  ed<   	 ee         ed<   dS )Transaction.RefundParamsr   refund_amountN)r&   r'   r(   r   r   r;   r*   r)   r+   r,   r-   RefundParamsr\  _  sC         DI&&&&	 #3''''	 	r,   r^  c                   2    e Zd ZU eee                  ed<   dS )Transaction.RetrieveParamsr   NrY  r+   r,   r-   RetrieveParamsr`  i  s+         DI&&&&	 	r,   ra  r   amount_detailsr   authorizationr   balance_transactionr   r   r   rF  rG  r   r   disputeidlivemodemerchant_amountmerchant_currencyr   rX  network_dataobjectr   r   tokentreasuryrK  r   )	apple_pay
google_paysamsung_paywalletparamsrE  returnc                     |                      d|                                 |          }t          |t                    s$t	          dt          |          j        z            |S )
        Returns a list of Issuing Transaction objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
        getrr  %Expected list object from API, got %s)_static_request	class_url
isinstancer   	TypeErrorr   r&   clsrr  results      r-   listzTransaction.list  sp     $$MMOO % 
 

 &*-- 	7<<(*  
 r,   c                    K   |                      d|                                 |           d{V }t          |t                    s$t	          dt          |          j        z            |S )ru  rv  rw  Nrx  )_static_request_asyncrz  r{  r   r|  r   r&   r}  s      r-   
list_asynczTransaction.list_async  s       00MMOO 1 
 
 
 
 
 
 
 

 &*-- 	7<<(*  
 r,   rW  c                     |                                  dt          |          }t          d|                     d||                    S )
        Updates the specified Issuing Transaction object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
        /r   postrw  )rz  r   r   ry  r~  rf  rr  r:   s       r-   modifyzTransaction.modify  sX     +b///:    
 
 	
r,   c                    K   |                                  dt          |          }t          d|                     d||           d{V           S )r  r  r   r  rw  N)rz  r   r   r  r  s       r-   modify_asynczTransaction.modify_async  sz       +b///:++ ,        
 
 	
r,   r`  c                 @     | |fi |}|                                  |S ):
        Retrieves an Issuing Transaction object.
        )refreshr~  rf  rr  instances       r-   retrievezTransaction.retrieve  s2     3r$$V$$r,   c                 P   K    | |fi |}|                                  d{V  |S )r  N)refresh_asyncr  s       r-   retrieve_asynczTransaction.retrieve_async  sH       3r$$V$$$$&&&&&&&&&r,   c                      e Zd ZU ed         ed<   e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         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dS )Transaction.TestHelpersr   _resource_clsrr  r   rs  c                 N    t          d|                     dd|                    S )i
            Allows the user to capture an arbitrary amount, also known as a forced capture.
            r   r  :/v1/test_helpers/issuing/transactions/create_force_capturerw  r   ry  r~  rr  s     r-   create_force_capturez,Transaction.TestHelpers.create_force_capture(  s:     ##P! $    r,   c                 ^   K   t          d|                     dd|           d{V           S )r  r   r  r  rw  Nr   r  r  s     r-   create_force_capture_asyncz2Transaction.TestHelpers.create_force_capture_async8  s\       //P! 0          r,   r  c                 N    t          d|                     dd|                    S )i
            Allows the user to refund an arbitrary amount, also known as a unlinked refund.
            r   r  </v1/test_helpers/issuing/transactions/create_unlinked_refundrw  r  r  s     r-   create_unlinked_refundz.Transaction.TestHelpers.create_unlinked_refundH  s:     ##R! $    r,   c                 ^   K   t          d|                     dd|           d{V           S )r  r   r  r  rw  Nr  r  s     r-   create_unlinked_refund_asyncz4Transaction.TestHelpers.create_unlinked_refund_asyncX  s\       //R! 0          r,   transactionr\  c                     t          d|                     dd                    t          |                    |                    S )9
            Refund a test-mode Transaction.
            r   r  :/v1/test_helpers/issuing/transactions/{transaction}/refundr  rw  )r   ry  formatr   r~  r  rr  s      r-   _cls_refundz#Transaction.TestHelpers._cls_refundh  s]     ##PWW$/$<$< X   " $  	 	 	r,   c                     dS r  Nr+   r  rr  s     r-   rM  zTransaction.TestHelpers.refundz  s	     Cr,   c                     dS r  r+   selfrr  s     r-   rM  zTransaction.TestHelpers.refund  s	     Cr,   r  c                     t          d| j                            dd                    t	          | j                            d                              |                    S )r  r   r  r  rf  r  rw  )r   resource_requestr  r   rv  r  s     r-   rM  zTransaction.TestHelpers.refund  so     &&PWW$/0A0A$0G0G$H$H X   " '  	 	 	r,   c                    K   t          d|                     dd                    t          |                    |           d{V           S )r  r   r  r  r  rw  N)r   r  r  r   r  s      r-   _cls_refund_asyncz)Transaction.TestHelpers._cls_refund_async  s       //PWW$/$<$< X   " 0        	 	 	r,   c                 
   K   dS r  r+   r  s     r-   refund_asyncz$Transaction.TestHelpers.refund_async  s       Cr,   c                 
   K   dS r  r+   r  s     r-   r  z$Transaction.TestHelpers.refund_async  s       Cr,   r  c                    K   t          d| j                            dd                    t	          | j                            d                              |           d{V           S )r  r   r  r  rf  r  rw  N)r   r  _request_asyncr  r   rv  r  s     r-   r  z$Transaction.TestHelpers.refund_async  s       m22PWW$/0A0A$0G0G$H$H X   " 3        	 	 	r,   N)r&   r'   r(   r   r*   classmethodr   r  r  r  r  r;   r  r   staticmethodrM  r
   r  r  r+   r,   r-   TestHelpersr  %  s        M****		!"HI		 	 	 
	 
	!"HI		 	 	 
	 
	!"JK		 	 	 
	 
	!"JK		 	 	 
	 
	!	-34N-O		 	 	 
	" 
			(./I(J		 	 	 
 
	 
	"#=>		 	 	 
	 
	m	,	,	"#=>		 	 	 
-	,	" 
	!	-34N-O		 	 	 
	" 
			(./I(J		 	 	 
 
	 
	"#=>		 	 	 
	 
	1	2	2	"#=>		 	 	 
3	2	 	 	r,   r  c                 ,    |                      |           S )N)r  )r  s    r-   test_helperszTransaction.test_helpers  s    %%%r,   )rb  r   rj  r   rm  N)Er&   r'   r(   __doc__r    r   r   r*   r   r.   r<   rC   r   r   r   r   r   r  r  r  r  r  r  r  r  r  r  r  r  r  r  r   r'  r+  r-  r2  r4  r6  r8  r;  r=  r?  rA  rC  rN  rU  rZ  r^  ra  r)   r   r   r;   rs   r   r  r   r   r  r  r  r  r  r  r   r  propertyr  rb   r+   r,   r-   r   r      s
          	 '"789          ( ( ( ( (| ( ( (T    l   W
 W
 W
 W
 W
, W
 W
 W
r    <       >   <M M M M My M M M^
" " " " ") " " "H    y   <      0      ,            
 
 
 
 

 
 
    	   4    y   4' ' ' ' 'i ' ' 'R       $ $ $ $ $ $ $ $    ^   <M M M M M M M M^
$ $ $ $ $I $ $ $L       <      0      ,            
 
 
 
 

 
 
    )   4       4' ' ' ' '	 ' ' 'R    9   $ $ $ $ $9 $ $ $         ^      D    I   $    ~       ~           KKK ]++++ OO<==== "/2F"GHHHH &
!!!! 67777 LLL MMM oi01111 	GGG NNN    38n ;'''' )**** //// OG,---- x     %
&&&& WEFGGGG 67	M	"   [& 67	M	"   [& 

 &'A B
	
 
 
 [
  

 &'A B
	
 
 
 [
   &'C D	   [  &'C D	   [o o o o o,]; o o ob & & X& (%#+ 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._authorizationr   stripe.issuing._cardr   stripe.issuing._cardholderr   stripe.issuing._disputer   stripe.issuing._tokenr   r   r  r  r+   r,   r-   <module>r     s   5 4 4 4 4 4 * * * * * * = = = = = = 2 2 2 2 2 2 . . . . . . 7 7 7 7 7 7 A A A A A A : : : : : : : : A A A A A A A A A A A A A A A A                 ,>>>>>>;;;;;;))))))555555//////++++++B B B B B&-(B B BJ> )4  % % %r,   