
    h,0                    :   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+jX                  _-        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)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|ZDy})~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                   0    e Zd ZU ee   ed<   	 ee   ed<   y)Transaction.AmountDetailsatm_feecashback_amountN__name__
__module____qualname__r   int__annotations__     [/var/www/api/v1/venv_getwork_v1/lib/python3.12/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
<   	 ee   ed<   y)Transaction.MerchantDatacategorycategory_codecitycountryname
network_idpostal_codestatetax_idterminal_idurlN)r&   r'   r(   strr*   r   r+   r,   r-   MerchantDatar0   8   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)Transaction.NetworkDataauthorization_codeprocessing_datetransaction_idNr&   r'   r(   r   r<   r*   r+   r,   r-   NetworkDatar?   f   s3    $SM)	 "#&	 !%	r,   rD   c                       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y)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	y
)!Transaction.PurchaseDetails.Fleetc                   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)6Transaction.PurchaseDetails.Fleet.CardholderPromptData	driver_idodometerunspecified_iduser_idvehicle_numberN)r&   r'   r(   r   r<   r*   r)   r+   r,   r-   CardholderPromptDatarJ   v   sU    #C=( #3-' !)- "#& !)-r,   rP   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)3Transaction.PurchaseDetails.Fleet.ReportedBreakdownc                       e Zd ZU ee   ed<   y)8Transaction.PurchaseDetails.Fleet.ReportedBreakdown.Fuelgross_amount_decimalNrC   r+   r,   r-   FuelrT          *23-7r,   rV   c                       e Zd ZU ee   ed<   y);Transaction.PurchaseDetails.Fleet.ReportedBreakdown.NonFuelrU   NrC   r+   r,   r-   NonFuelrY      rW   r,   rZ   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)7Transaction.PurchaseDetails.Fleet.ReportedBreakdown.Taxlocal_amount_decimalnational_amount_decimalNrC   r+   r,   r-   Taxr\      s"    *23-7 .6c]:r,   r_   fuelnon_fueltax)r`   ra   rb   N)
r&   r'   r(   r   rV   rZ   r_   r   r*   _inner_class_typesr+   r,   r-   ReportedBreakdownrR      sm    < l ,  tn$ #7++ c]" ! '&"r,   rd   cardholder_prompt_datapurchase_typereported_breakdownservice_type)re   rg   N)
r&   r'   r(   r   rP   rd   r   r*   r<   rc   r+   r,   r-   FleetrH   u   ss    | ,'L 'R %--A$BB $C=( !)): ;; #3-' +?&7"r,   ri   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y)	"Transaction.PurchaseDetails.Flightc                   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)*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-   Segmentrm      sf    &.sm3 "#& )15  (},  (}, #+4.0r,   ru   departure_atpassenger_name
refundablesegmentstravel_agencyN)r&   r'   r(   r   ru   r   r)   r*   r<   rt   r   rc   r+   r,   r-   Flightrk      su    , 4 #3-' %SM) !& tG}-- $C=( #-g!6r,   r{   c                   T    e Zd ZU ee   ed<   	 ee   ed<   	 eed<   	 eed<   	 eed<   y) Transaction.PurchaseDetails.Fuelindustry_product_codequantity_decimaltypeunitunit_cost_decimalNrC   r+   r,   r-   rV   r}      sG    #+C=0 'sm+ I I  #"r,   rV   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)#Transaction.PurchaseDetails.Lodgingcheck_in_atnightsNr%   r+   r,   r-   Lodgingr     s"    !#& SM!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)#Transaction.PurchaseDetails.Receiptdescriptionquantitytotal	unit_costN)r&   r'   r(   r   r<   r*   floatr)   r+   r,   r-   Receiptr     sD    !#& uo% C=   }$r,   r   fleetflightr`   lodgingreceipt	reference)r   r   r`   r   r   N)r&   r'   r(   r   ri   r{   rV   r   r   r   r*   r   r<   rc   r+   r,   r-   PurchaseDetailsrF   t   s    S	L S	j/	7\ /	7b	< 	,	l 		l 	$ 	   	 tn	 '""	 $w-((	 C= 	 
r,   r   c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)Transaction.Treasuryreceived_creditreceived_debitNrC   r+   r,   r-   Treasuryr   M  s"    !#&	 !%	r,   r   c                   r    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<   y	)
$Transaction.CreateForceCaptureParamsamountcardcurrencyexpand0Transaction.CreateForceCaptureParamsMerchantDatamerchant_data3Transaction.CreateForceCaptureParamsPurchaseDetailspurchase_detailsNr&   r'   r(   r)   r*   r<   r   r   r+   r,   r-   CreateForceCaptureParamsr   W  sn    	 		 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
<   y)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   r:   r;   Nr&   r'   r(   r   r   r*   r<   r+   r,   r-   $CreateForceCaptureParamsMerchantDataz0Transaction.CreateForceCaptureParamsMerchantDatau      e.g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<   y)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<   y	)
r  LTransaction.CreateForceCaptureParamsPurchaseDetailsFleetCardholderPromptDatare   fuel_and_non_fuel_purchasefuel_purchasenon_fuel_purchaserf   ITransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownrg   full_servicenon_fuel_transactionself_servicerh   Nr&   r'   r(   r   r*   r   r+   r,   r-   ,CreateForceCaptureParamsPurchaseDetailsFleetz8Transaction.CreateForceCaptureParamsPurchaseDetailsFleet  sl     +Z!
 	
	 #%
 	
	 (W
 	
	 "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  rK   rL   rM   rN   rO   Nr&   r'   r(   r   r<   r*   r)   r+   r,   r-   @CreateForceCaptureParamsPurchaseDetailsFleetCardholderPromptDatazLTransaction.CreateForceCaptureParamsPurchaseDetailsFleetCardholderPromptData  \     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  MTransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownFuelr`   PTransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuelra   LTransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownTaxrb   Nr&   r'   r(   r   r*   r+   r,   r-   =CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownzITransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdown  sG     [
 	
	 ^
 	
	 Z
 	
	r,   r  c                       e Zd ZU ee   ed<   y)r  rU   Nr&   r'   r(   r   r<   r*   r+   r,   r-   ACreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownFuelzMTransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownFuel4       *#..	r,   r  c                       e Zd ZU ee   ed<   y)r  rU   Nr  r+   r,   r-   DCreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuelzPTransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuel<  r  r,   r  c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r  r]   r^   Nr  r+   r,   r-   @CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownTaxzLTransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownTaxD  &     *#..	 "-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  rv   rw   rx   @Transaction.CreateForceCaptureParamsPurchaseDetailsFlightSegmentry   rz   N	r&   r'   r(   r   r)   r*   r<   rt   r   r+   r,   r-   -CreateForceCaptureParamsPurchaseDetailsFlightz9Transaction.CreateForceCaptureParamsPurchaseDetailsFlightP  sg    !#&&	 $C((	  %%	 R
 	

	 #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  rn   ro   rp   rq   rr   rs   Nr&   r'   r(   r   r<   r*   rt   r+   r,   r-   4CreateForceCaptureParamsPurchaseDetailsFlightSegmentz@Transaction.CreateForceCaptureParamsPurchaseDetailsFlightSegmentj  l    )#..	 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  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  x    *3//	 &c**	 "
 	
	 	
 	
	 's++	r,   r  c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r  r   r   Nr&   r'   r(   r   r)   r*   r+   r,   r-   .CreateForceCaptureParamsPurchaseDetailsLodgingz:Transaction.CreateForceCaptureParamsPurchaseDetailsLodging  $     %%	 C  	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<   y)r  r   r   r   r   Nr  r+   r,   r-   .CreateForceCaptureParamsPurchaseDetailsReceiptz:Transaction.CreateForceCaptureParamsPurchaseDetailsReceipt  .     %%c""3s##r,   r  c                   r    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<   y	)
&Transaction.CreateUnlinkedRefundParamsr   r   r   r   2Transaction.CreateUnlinkedRefundParamsMerchantDatar   5Transaction.CreateUnlinkedRefundParamsPurchaseDetailsr   Nr   r+   r,   r-   CreateUnlinkedRefundParamsr    sn    	 		 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
<   y)r  r   r1   r3   r4   r5   r6   r7   r8   r:   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<   y)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<   y	)
r#  NTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetCardholderPromptDatare   r  rf   KTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownrg   r  rh   Nr  r+   r,   r-   .CreateUnlinkedRefundParamsPurchaseDetailsFleetz:Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetP  sl     +\!
 	
	 #%
 	
	 (Y
 	
	 "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*  rK   rL   rM   rN   rO   Nr  r+   r,   r-   BCreateUnlinkedRefundParamsPurchaseDetailsFleetCardholderPromptDatazNTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetCardholderPromptDatan  r  r,   r.  c                   B    e Zd ZU ed   ed<   	 ed   ed<   	 ed   ed<   y)r+  OTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownFuelr`   RTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownNonFuelra   NTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownTaxrb   Nr  r+   r,   r-   ?CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownzKTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdown  sG     ]
 	
	 `
 	
	 \
 	
	r,   r3  c                       e Zd ZU ee   ed<   y)r0  rU   Nr  r+   r,   r-   CCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownFuelzOTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownFuel  r  r,   r5  c                       e Zd ZU ee   ed<   y)r1  rU   Nr  r+   r,   r-   FCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownNonFuelzRTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownNonFuel  r  r,   r7  c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r2  r]   r^   Nr  r+   r,   r-   BCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownTaxzNTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownTax  r  r,   r9  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$  rv   rw   rx   BTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFlightSegmentry   rz   Nr  r+   r,   r-   /CreateUnlinkedRefundParamsPurchaseDetailsFlightz;Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFlight  sg    !#&&	 $C((	  %%	 T
 	

	 #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;  rn   ro   rp   rq   rr   rs   Nr  r+   r,   r-   6CreateUnlinkedRefundParamsPurchaseDetailsFlightSegmentzBTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFlightSegment  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%  r~   r   r  r   r	  r   r   Nr  r+   r,   r-   -CreateUnlinkedRefundParamsPurchaseDetailsFuelz9Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuel  r  r,   r@  c                   0    e Zd ZU ee   ed<   	 ee   ed<   y)r&  r   r   Nr  r+   r,   r-   0CreateUnlinkedRefundParamsPurchaseDetailsLodgingz<Transaction.CreateUnlinkedRefundParamsPurchaseDetailsLodging  r  r,   rB  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'  r   r   r   r   Nr  r+   r,   r-   0CreateUnlinkedRefundParamsPurchaseDetailsReceiptz<Transaction.CreateUnlinkedRefundParamsPurchaseDetailsReceipt  r  r,   rD  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)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-   
ListParamsrF  %  s    #	  $$	 @AA	 #3''	 DI&&	 3	 $C((	 '"5677	r,   rO  c                   T    e Zd ZU ee   ed<   	 ee   ed<   	 ee   ed<   	 ee   ed<   y)Transaction.ListParamsCreatedgtgteltlteNr  r+   r,   r-   ListParamsCreatedrQ  G  sH    	 	 	 	r,   rV  c                   6    e Zd ZU eee      ed<   	 ed   ed<   y)Transaction.ModifyParamsr   zLiteral['']|Dict[str, str]metadataNr&   r'   r(   r   r   r<   r*   r+   r,   r-   ModifyParamsrX  Y  s)    DI&&	 :;;	r,   r[  c                   6    e Zd ZU eee      ed<   	 ee   ed<   y)Transaction.RefundParamsr   refund_amountN)r&   r'   r(   r   r   r<   r*   r)   r+   r,   r-   RefundParamsr]  c  s(    DI&&	 #3''	r,   r_  c                   $    e Zd ZU eee      ed<   y)Transaction.RetrieveParamsr   NrZ  r+   r,   r-   RetrieveParamsra  m  s    DI&&	r,   rb  r   amount_detailsr   authorizationr   balance_transactionr   r   r   rG  rH  r   r   disputeidlivemodemerchant_amountmerchant_currencyr   rY  network_dataobjectr   r   tokentreasuryrL  r   )	apple_pay
google_paysamsung_paywalletparamsrF  returnc                     | j                  d| j                         |      }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rs  %Expected list object from API, got %s)_static_request	class_url
isinstancer   	TypeErrorr   r&   clsrs  results      r-   listzTransaction.list  s]     $$MMO % 

 &*-7<((* 
 r,   c                    K   | j                  d| j                         |       d{   }t        |t              s!t	        dt        |      j                  z        |S 7 7w)rv  rw  rx  Nry  )_static_request_asyncr{  r|  r   r}  r   r&   r~  s      r-   
list_asynczTransaction.list_async  sk      00MMO 1 
 

 &*-7<((* 
 
s   &A"A 8A"rX  c                 z    | j                         dt        |      }t        d| j                  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   postrx  )r{  r   r   rz  r  rg  rs  r;   s       r-   modifyzTransaction.modify  sD     +b/:   
 	
r,   c                    K   | j                         dt        |      }t        d| j                  d||       d{         S 7 w)r  r  r   r  rx  N)r{  r   r   r  r  s       r-   modify_asynczTransaction.modify_async  sR      +b/:++ ,  
 	
s   <A	A
	A	ra  c                 8     | |fi |}|j                          |S ):
        Retrieves an Issuing Transaction object.
        )refreshr  rg  rs  instances       r-   retrievezTransaction.retrieve  s$     r$V$r,   c                 T   K    | |fi |}|j                          d{    |S 7 w)r  N)refresh_asyncr  s       r-   retrieve_asynczTransaction.retrieve_async  s3      r$V$$$&&& 	's   (&(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y)Transaction.TestHelpersr   _resource_clsrs  r   rt  c                 >    t        d| j                  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_capturerx  r   rz  r  rs  s     r-   create_force_capturez,Transaction.TestHelpers.create_force_capture,  s0     ##P! $  r,   c                 Z   K   t        d| j                  dd|       d{         S 7 w)r  r   r  r  rx  Nr   r  r  s     r-   create_force_capture_asyncz2Transaction.TestHelpers.create_force_capture_async<  s>      //P! 0      +)
	+r  c                 >    t        d| j                  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_refundrx  r  r  s     r-   create_unlinked_refundz.Transaction.TestHelpers.create_unlinked_refundL  s0     ##R! $  r,   c                 Z   K   t        d| j                  dd|       d{         S 7 w)r  r   r  r  rx  Nr  r  s     r-   create_unlinked_refund_asyncz4Transaction.TestHelpers.create_unlinked_refund_async\  s>      //R! 0   r  transactionr]  c                 p    t        d| j                  ddj                  t        |            |            S )9
            Refund a test-mode Transaction.
            r   r  :/v1/test_helpers/issuing/transactions/{transaction}/refundr  rx  )r   rz  formatr   r  r  rs  s      r-   _cls_refundz#Transaction.TestHelpers._cls_refundl  sK     ##PWW$/$< X  " $ 	 	r,   c                      yr  Nr+   r  rs  s     r-   rN  zTransaction.TestHelpers.refund~  s     r,   c                      yr  r+   selfrs  s     r-   rN  zTransaction.TestHelpers.refund  s     r,   r  c                     t        d| j                  j                  ddj                  t	        | j                  j                  d                  |            S )r  r   r  r  rg  r  rx  )r   resource_requestr  r   rw  r  s     r-   rN  zTransaction.TestHelpers.refund  s^     &&PWW$/0A0A$0G$H X  " ' 	 	r,   c                    K   t        d| j                  ddj                  t        |            |       d{         S 7 w)r  r   r  r  r  rx  N)r   r  r  r   r  s      r-   _cls_refund_asyncz)Transaction.TestHelpers._cls_refund_async  sY      //PWW$/$< X  " 0  	 	s   7AA
	Ac                    K   ywr  r+   r  s     r-   refund_asyncz$Transaction.TestHelpers.refund_async  s         c                    K   ywr  r+   r  s     r-   r  z$Transaction.TestHelpers.refund_async  s      r  r  c                    K   t        d| j                  j                  ddj                  t	        | j                  j                  d                  |       d{         S 7 w)r  r   r  r  rg  r  rx  N)r   r  _request_asyncr  r   rw  r  s     r-   r  z$Transaction.TestHelpers.refund_async  sl      mm22PWW$/0A0A$0G$H X  " 3  	 	s   AA'A%
	A'N)r&   r'   r(   r   r*   classmethodr   r  r  r  r  r<   r  r   staticmethodrN  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	"#=>		 
3	r,   r  c                 $    | j                  |       S )N)r  )r  s    r-   test_helperszTransaction.test_helpers  s    %%r,   )rc  r   rk  r   rn  N)Er&   r'   r(   __doc__r    r   r   r*   r   r.   r=   rD   r   r   r   r   r   r  r  r  r  r  r  r  r  r  r   r  r  r  r  r!  r(  r,  r.  r3  r5  r7  r9  r<  r>  r@  rB  rD  rO  rV  r[  r_  rb  r)   r   r   r<   rt   r   r  r   r   r  r  r  r  r  r  r   r  propertyr  rc   r+   r,   r-   r   r      s    	 '"789  ,| ,\l W
, W
r< > <My M^
") "Hy <0,

	 4y 4'i 'R $ $^ <M M^
$I $L <0,

) 4 4'	 'R9 $9 $ ^  DI $~ ~   K ]++ OO<== "/2F"GHH &
!! 677 L M oi011 	G N    38n ;'' )** // OG,-- x   %
&& WEFGG 67	M	" & 67	M	" & 

 &'A B
	
 
  

 &'A B
	
 
   &'C D	   &'C D	 o,]; ob & & (%#+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     ss    5 * = 2 . 7 A : A A  >;)5/+F&-(FR> )4   %r,   