o
    Bi/                    @   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rxd 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 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                   @   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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dqdrZ:e7dne8do dpe9d  fdsdtZ;e7d^e4dne8du dpd fdvdwZ<e7d^e4dne8du dpd fdxdyZ=e7d^e4dne8dz dpd fd{d|Z>e7d^e4dne8dz dpd fd}d~Z?G dd de@d  ZAeBdd ZCe	e
eeedZDdS )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 )zTransaction.AmountDetailsatm_feecashback_amountN__name__
__module____qualname__r   int__annotations__ r(   r(   [/var/www/html/Trade-python/venv/lib/python3.10/site-packages/stripe/issuing/_transaction.pyAmountDetails.   
   
 r*   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
< dS )zTransaction.MerchantDatacategorycategory_codecitycountryname
network_idpostal_codestateterminal_idurlN)r#   r$   r%   strr'   r   r(   r(   r(   r)   MerchantData8   s*   
 r7   c                   @   s6   e Zd ZU ee ed< 	 ee ed< 	 ee ed< dS )zTransaction.NetworkDataauthorization_codeprocessing_datetransaction_idNr#   r$   r%   r   r6   r'   r(   r(   r(   r)   NetworkDatab   s   
 r<   c                   @   s   e Zd ZU 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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 )zTransaction.PurchaseDetailsc                   @   sp   e Zd ZU 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< 	 eed	Z	d
S )z!Transaction.PurchaseDetails.Fleetc                   @   R   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 )z6Transaction.PurchaseDetails.Fleet.CardholderPromptData	driver_idodometerunspecified_iduser_idvehicle_numberN)r#   r$   r%   r   r6   r'   r&   r(   r(   r(   r)   CardholderPromptDatar   s   
 rC   c                   @   st   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 )z3Transaction.PurchaseDetails.Fleet.ReportedBreakdownc                   @      e Zd ZU ee ed< dS )z8Transaction.PurchaseDetails.Fleet.ReportedBreakdown.Fuelgross_amount_decimalNr;   r(   r(   r(   r)   Fuel      
 rF   c                   @   rD   )z;Transaction.PurchaseDetails.Fleet.ReportedBreakdown.NonFuelrE   Nr;   r(   r(   r(   r)   NonFuel   rG   rH   c                   @   r   )z7Transaction.PurchaseDetails.Fleet.ReportedBreakdown.Taxlocal_amount_decimalnational_amount_decimalNr;   r(   r(   r(   r)   Tax   r+   rK   fuelnon_fueltax)rL   rM   rN   N)
r#   r$   r%   r   rF   rH   rK   r   r'   _inner_class_typesr(   r(   r(   r)   ReportedBreakdown   s   
 

rP   cardholder_prompt_datapurchase_typereported_breakdownservice_type)rQ   rS   N)
r#   r$   r%   r   rC   rP   r   r'   r6   rO   r(   r(   r(   r)   Fleetq   s   
 )
rU   c                   @   sp   e Zd ZU G d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 )	z"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 )z*Transaction.PurchaseDetails.Flight.Segmentarrival_airport_codecarrierdeparture_airport_codeflight_numberservice_classstopover_allowedN)r#   r$   r%   r   r6   r'   boolr(   r(   r(   r)   Segment      
 r^   departure_atpassenger_name
refundablesegmentstravel_agencyN)r#   r$   r%   r   r^   r   r&   r'   r6   r]   r   rO   r(   r(   r(   r)   Flight   s   
 re   c                   @   sF   e Zd ZU ee ed< 	 ee ed< 	 eed< 	 eed< 	 eed< dS )z Transaction.PurchaseDetails.Fuelindustry_product_codequantity_decimaltypeunitunit_cost_decimalNr;   r(   r(   r(   r)   rF      s   
 rF   c                   @   r   )z#Transaction.PurchaseDetails.Lodgingcheck_in_atnightsNr"   r(   r(   r(   r)   Lodging  r+   rm   c                   @   sD   e Zd ZU ee ed< 	 ee ed< 	 ee ed< 	 ee ed< dS )z#Transaction.PurchaseDetails.Receiptdescriptionquantitytotal	unit_costN)r#   r$   r%   r   r6   r'   floatr&   r(   r(   r(   r)   Receipt     
 rs   fleetflightrL   lodgingreceipt	reference)ru   rv   rL   rw   rx   N)r#   r$   r%   r   rU   re   rF   rm   rs   r   r'   r   r6   rO   r(   r(   r(   r)   PurchaseDetailsp   s0   
 U1

rz   c                   @   r   )zTransaction.Treasuryreceived_creditreceived_debitNr;   r(   r(   r(   r)   TreasuryI  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'   r6   r   r   r(   r(   r(   r)   CreateForceCaptureParamsS  "   
 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_yardsr,   r.   r/   r0   r1   r2   r3   r4   r5   Nr#   r$   r%   r   r   r'   r6   r(   r(   r(   r)   $CreateForceCaptureParamsMerchantDataq  2   
   ,r  c                   @   d   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.CreateForceCaptureParamsPurchaseDetailsFleetru   9Transaction.CreateForceCaptureParamsPurchaseDetailsFlightrv   7Transaction.CreateForceCaptureParamsPurchaseDetailsFuelrL   :Transaction.CreateForceCaptureParamsPurchaseDetailsLodgingrw   :Transaction.CreateForceCaptureParamsPurchaseDetailsReceiptrx   ry   Nr#   r$   r%   r   r'   r   r6   r(   r(   r(   r)   'CreateForceCaptureParamsPurchaseDetails  s.   
 r  c                   @   L   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.CreateForceCaptureParamsPurchaseDetailsFleetCardholderPromptDatarQ   fuel_and_non_fuel_purchasefuel_purchasenon_fuel_purchaserR   ITransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownrS   full_servicenon_fuel_transactionself_servicerT   Nr#   r$   r%   r   r'   r   r(   r(   r(   r)   ,CreateForceCaptureParamsPurchaseDetailsFleet  &   
 r  c                   @   r=   )r  r>   r?   r@   rA   rB   Nr#   r$   r%   r   r6   r'   r&   r(   r(   r(   r)   @CreateForceCaptureParamsPurchaseDetailsFleetCardholderPromptData     
 r  c                   @   6   e Zd ZU ed ed< 	 ed ed< 	 ed ed< dS )r  MTransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownFuelrL   PTransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuelrM   LTransaction.CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownTaxrN   Nr#   r$   r%   r   r'   r(   r(   r(   r)   =CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdown     
 r  c                   @   rD   )r  rE   Nr#   r$   r%   r   r6   r'   r(   r(   r(   r)   ACreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownFuel0     
 r  c                   @   rD   )r  rE   Nr  r(   r(   r(   r)   DCreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuel8  r  r  c                   @   r   )r  rI   rJ   Nr  r(   r(   r(   r)   @CreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownTax@  
   
 r  c                   @   V   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  r`   ra   rb   @Transaction.CreateForceCaptureParamsPurchaseDetailsFlightSegmentrc   rd   N	r#   r$   r%   r   r&   r'   r6   r]   r   r(   r(   r(   r)   -CreateForceCaptureParamsPurchaseDetailsFlightL     
 r  c                   @   rV   )r  rW   rX   rY   rZ   r[   r\   Nr#   r$   r%   r   r6   r'   r]   r(   r(   r(   r)   4CreateForceCaptureParamsPurchaseDetailsFlightSegmentf  r_   r  c                   @   Z   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   dieselotherunleaded_plusunleaded_regularunleaded_superrh   charging_minuteimperial_gallonkilogramkilowatt_hourliterr  pound	us_gallonri   rj   Nr#   r$   r%   r   r6   r'   r   r(   r(   r(   r)   +CreateForceCaptureParamsPurchaseDetailsFuel  &   
 	r  c                   @   r   )r  rk   rl   Nr#   r$   r%   r   r&   r'   r(   r(   r(   r)   .CreateForceCaptureParamsPurchaseDetailsLodging  r+   r  c                   @   >   e Zd ZU ee ed< ee ed< ee ed< ee ed< dS )r  rn   ro   rp   rq   Nr  r(   r(   r(   r)   .CreateForceCaptureParamsPurchaseDetailsReceipt  
   
 r  c                   @   r~   )
&Transaction.CreateUnlinkedRefundParamsr   r   r   r   2Transaction.CreateUnlinkedRefundParamsMerchantDatar   5Transaction.CreateUnlinkedRefundParamsPurchaseDetailsr   Nr   r(   r(   r(   r)   CreateUnlinkedRefundParams  r   r  c                   @   r   )r  r   r,   r.   r/   r0   r1   r2   r3   r4   r5   Nr  r(   r(   r(   r)   &CreateUnlinkedRefundParamsMerchantData  r  r  c                   @   r  )r  :Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetru   ;Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFlightrv   9Transaction.CreateUnlinkedRefundParamsPurchaseDetailsFuelrL   <Transaction.CreateUnlinkedRefundParamsPurchaseDetailsLodgingrw   <Transaction.CreateUnlinkedRefundParamsPurchaseDetailsReceiptrx   ry   Nr  r(   r(   r(   r)   )CreateUnlinkedRefundParamsPurchaseDetails&  s2   
 r  c                   @   r  )
r  NTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetCardholderPromptDatarQ   r  rR   KTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownrS   r  rT   Nr  r(   r(   r(   r)   .CreateUnlinkedRefundParamsPurchaseDetailsFleetL  r  r  c                   @   r=   )r  r>   r?   r@   rA   rB   Nr  r(   r(   r(   r)   BCreateUnlinkedRefundParamsPurchaseDetailsFleetCardholderPromptDataj  r  r  c                   @   r  )r  OTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownFuelrL   RTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownNonFuelrM   NTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownTaxrN   Nr  r(   r(   r(   r)   ?CreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdown  r  r  c                   @   rD   )r	  rE   Nr  r(   r(   r(   r)   CCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownFuel  r  r  c                   @   rD   )r
  rE   Nr  r(   r(   r(   r)   FCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownNonFuel  r  r  c                   @   r   )r  rI   rJ   Nr  r(   r(   r(   r)   BCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownTax  r  r  c                   @   r  )r   r`   ra   rb   BTransaction.CreateUnlinkedRefundParamsPurchaseDetailsFlightSegmentrc   rd   Nr  r(   r(   r(   r)   /CreateUnlinkedRefundParamsPurchaseDetailsFlight  r  r  c                   @   rV   )r  rW   rX   rY   rZ   r[   r\   Nr  r(   r(   r(   r)   6CreateUnlinkedRefundParamsPurchaseDetailsFlightSegment  r_   r  c                   @   r  )	r  rf   rg   r  rh   r  ri   rj   Nr  r(   r(   r(   r)   -CreateUnlinkedRefundParamsPurchaseDetailsFuel  r  r  c                   @   r   )r  rk   rl   Nr  r(   r(   r(   r)   0CreateUnlinkedRefundParamsPurchaseDetailsLodging  r+   r  c                   @   r  )r  rn   ro   rp   rq   Nr  r(   r(   r(   r)   0CreateUnlinkedRefundParamsPurchaseDetailsReceipt  r  r  c                   @   s   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refundrh   N)	r#   r$   r%   r   r6   r'   r   r&   r   r(   r(   r(   r)   
ListParams!  s"   
 r  c                   @   sD   e Zd ZU ee ed< 	 ee ed< 	 ee ed< 	 ee ed< dS )zTransaction.ListParamsCreatedgtgteltlteNr  r(   r(   r(   r)   ListParamsCreatedC  rt   r$  c                   @   s,   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   r6   r'   r(   r(   r(   r)   ModifyParamsU  
   
 r(  c                   @   s,   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   r6   r'   r&   r(   r(   r(   r)   RefundParams_  r)  r,  c                   @   s   e Zd ZU eee  ed< dS )Transaction.RetrieveParamsr   Nr'  r(   r(   r(   r)   RetrieveParamsi  s   
 r.  r   amount_detailsr   authorizationr   balance_transactionr   r   r   r  r  r   r   disputeidlivemodemerchant_amountmerchant_currencyr   r&  network_dataobjectr   r   tokentreasuryr  rh   )	apple_pay
google_paysamsung_paywalletparamsr  returnc                 K   s4   | j d|  |d}t|tstdt|j |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r?  %Expected list object from API, got %s)_static_request	class_url
isinstancer   	TypeErrorrh   r#   clsr?  resultr(   r(   r)   list  s   
zTransaction.listc                    s<   | j d|  |dI dH }t|tstdt|j |S )rA  rB  rC  NrD  )_static_request_asyncrF  rG  r   rH  rh   r#   rI  r(   r(   r)   
list_async  s   
zTransaction.list_asyncr%  c                 K   s*   d|   t|f }td| j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.
        %s/%sr   postrC  )rF  r
   r   rE  rJ  r3  r?  r5   r(   r(   r)   modify  s   zTransaction.modifyc                    s2   d|   t|f }td| jd||dI dH S )rO  rP  r   rQ  rC  N)rF  r
   r   rM  rR  r(   r(   r)   modify_async  s   
zTransaction.modify_asyncr-  c                 K   s   | |fi |}|   |S ):
        Retrieves an Issuing Transaction object.
        )refreshrJ  r3  r?  instancer(   r(   r)   retrieve  s   zTransaction.retrievec                    s$   | |fi |}|  I dH  |S )rU  N)refresh_asyncrW  r(   r(   r)   retrieve_async  s   zTransaction.retrieve_asyncc                   @   sr  e Zd ZU ed ed< eded ddfddZeded ddfdd	Zeded
 ddfddZ	eded
 ddfddZ
ededed ddfddZeededed ddfddZeded ddfddZedded ddfddZededed ddfddZeededed ddfddZeded ddfddZedded ddfddZdS ) zTransaction.TestHelpersr   _resource_clsr?  r   r@  c                 K      t d| jdd|dS )i
            Allows the user to capture an arbitrary amount, also known as a forced capture.
            r   rQ  :/v1/test_helpers/issuing/transactions/create_force_capturerC  r   rE  rJ  r?  r(   r(   r)   create_force_capture(     z,Transaction.TestHelpers.create_force_capturec                       t d| jdd|dI dH S )r^  r   rQ  r_  rC  Nr   rM  ra  r(   r(   r)   create_force_capture_async8     
z2Transaction.TestHelpers.create_force_capture_asyncr  c                 K   r]  )i
            Allows the user to refund an arbitrary amount, also known as a unlinked refund.
            r   rQ  </v1/test_helpers/issuing/transactions/create_unlinked_refundrC  r`  ra  r(   r(   r)   create_unlinked_refundH  rc  z.Transaction.TestHelpers.create_unlinked_refundc                    rd  )rh  r   rQ  ri  rC  Nre  ra  r(   r(   r)   create_unlinked_refund_asyncX  rg  z4Transaction.TestHelpers.create_unlinked_refund_asynctransactionr*  c                 K   s"   t d| jddjt|d|dS )9
            Refund a test-mode Transaction.
            r   rQ  :/v1/test_helpers/issuing/transactions/{transaction}/refundrl  rC  )r   rE  formatr
   rJ  rl  r?  r(   r(   r)   _cls_refundh  s   z#Transaction.TestHelpers._cls_refundc                 K      dS rm  Nr(   rl  r?  r(   r(   r)   r  z  s   zTransaction.TestHelpers.refundc                 K   rs  rt  r(   selfr?  r(   r(   r)   r    s   rr  c              	   K   s,   t d| jjddjt| jdd|dS )rm  r   rQ  rn  r3  ro  rC  )r   resource_requestrp  r
   rB  rv  r(   r(   r)   r    s   c                    s*   t d| jddjt|d|dI dH S )rm  r   rQ  rn  ro  rC  N)r   rM  rp  r
   rq  r(   r(   r)   _cls_refund_async  s   
z)Transaction.TestHelpers._cls_refund_asyncc                       dS rt  r(   ru  r(   r(   r)   refund_async  s   z$Transaction.TestHelpers.refund_asyncc                    r{  rt  r(   rv  r(   r(   r)   r|    s   rz  c              	      s4   t d| jjddjt| jdd|dI dH S )rm  r   rQ  rn  r3  ro  rC  N)r   rx  _request_asyncrp  r
   rB  rv  r(   r(   r)   r|    s   
N)r#   r$   r%   r   r'   classmethodr   rb  rf  rj  rk  r6   rr  r   staticmethodr  r	   rz  r|  r(   r(   r(   r)   TestHelpers%  s   
 r  c                 C   s
   |  | S )N)r  )rw  r(   r(   r)   test_helpers  s   
zTransaction.test_helpers)r/  r   r7  r   r:  N)Er#   r$   r%   __doc__r   r   r   r'   r   r*   r7   r<   rz   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   r6   r]   r   r~  r   r   rL  rN  rS  rT  rY  r[  r   r  propertyr  rO   r(   r(   r(   r)   r      sH  
 	
* Z
  Q$




)
  Q&




)
"



 2

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(   r)   <module>   sJ     	
               T