a
    g                    @   sx   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mZ d dlmZmZmZ G dd	 d	eZd
S )    )
ListObject)RequestOptions)StripeService)sanitize_id)Card)DictListcast)LiteralNotRequired	TypedDictc                   @   s  e Zd 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i i fd'eee d(d)d*Zi i fd'eee d(d+d,Zi fd-eed(d.d/Zi fd-eed(d0d1Zi i fed2eed3d4d5Zi i fed2eed3d6d7Z i i fed8eed3d9d:Z!i i fed8eed3d;d<Z"d=S )>CardServicec                   @   s   e Zd ZU ee ed< eed< eee  ed< ee ed< eeeef  ed< ee ed< ed ed< ee ed	< eed
  ed< ed ed< ed ed< ed ed< eed  ed< ed ed< dS )CardService.CreateParams
cardholdercurrencyexpandZfinancial_accountmetadatapersonalization_designCardService.CreateParamsPinpinZreplacement_for)ZdamagedZexpiredloststolenZreplacement_reasonzLiteral['']|strZsecond_line CardService.CreateParamsShippingshipping(CardService.CreateParamsSpendingControlsspending_controls)activeinactivestatusZphysicalZvirtualtypeN)	__name__
__module____qualname__r   str__annotations__r   r   r
    r&   r&   j/var/www/staging/api/virtual_environments/venv/lib/python3.9/site-packages/stripe/issuing/_card_service.pyCreateParams   s&   
r(   c                   @   s   e Zd ZU ee ed< dS )r   encrypted_numberNr!   r"   r#   r   r$   r%   r&   r&   r&   r'   CreateParamsPinH   s   
r+   c                   @   sn   e Zd ZU ded< ed ed< ed ed< eed< ee ed< ee ed	< eed
  ed< eed  ed< dS )r   'CardService.CreateParamsShippingAddressaddress1CardService.CreateParamsShippingAddressValidationaddress_validation'CardService.CreateParamsShippingCustomscustomsnamephone_numberrequire_signatureZexpressprioritystandardserviceZbulkZ
individualr    Nr!   r"   r#   r%   r   r$   boolr
   r&   r&   r&   r'   CreateParamsShippingN   s   
r<   c                   @   sF   e Zd ZU eed< eed< eed< ee ed< eed< ee ed< dS )r,   citycountryline1line2postal_codestateNr!   r"   r#   r$   r%   r   r&   r&   r&   r'   CreateParamsShippingAddressr   s   
rD   c                   @   s   e Zd ZU ed ed< dS )r.   disabledZnormalization_onlyZvalidation_and_normalizationmodeNr!   r"   r#   r
   r%   r&   r&   r&   r'   %CreateParamsShippingAddressValidation   s   
rI   c                   @   s   e Zd ZU ee ed< dS )r0   eori_numberNr*   r&   r&   r&   r'   CreateParamsShippingCustoms   s   
rK   c                   @   sf   e Zd ZU eeed   ed< eee  ed< eeed   ed< eee  ed< eed  ed< dS )	r   '  Zac_refrigeration_repairZaccounting_bookkeeping_servicesZadvertising_servicesZagricultural_cooperativeZairlines_air_carriersZairports_flying_fieldsZambulance_servicesZamusement_parks_carnivalsZantique_reproductionsZantique_shopsZ	aquariumsZ architectural_surveying_servicesZart_dealers_and_galleriesZartists_supply_and_craft_shopsZauto_and_home_supply_storesZauto_body_repair_shopsZauto_paint_shopsZauto_service_shopsZautomated_cash_disburseZautomated_fuel_dispensersZautomobile_associationsZ'automotive_parts_and_accessories_storesZautomotive_tire_storesZbail_and_bond_paymentsZbakeriesZbands_orchestrasZbarber_and_beauty_shopsZbetting_casino_gamblingZbicycle_shopsZbilliard_pool_establishmentsZboat_dealersZboat_rentals_and_leasesZbook_storesZ books_periodicals_and_newspapersZbowling_alleysZ	bus_linesZbusiness_secretarial_schoolsZbuying_shopping_servicesZ2cable_satellite_and_other_pay_television_and_radioZ%camera_and_photographic_supply_storesZ"candy_nut_and_confectionery_storesZcar_and_truck_dealers_new_usedZcar_and_truck_dealers_used_onlyZcar_rental_agenciesZ
car_washesZcarpentry_servicesZcarpet_upholstery_cleaningZcaterersZ7charitable_and_social_service_organizations_fundraisingZchemicals_and_allied_productsZchild_care_servicesZ!childrens_and_infants_wear_storesZchiropodists_podiatristsZchiropractorsZcigar_stores_and_standsZ#civic_social_fraternal_associationsZcleaning_and_maintenanceZclothing_rentalZcolleges_universitiesZcommercial_equipmentZcommercial_footwearZ'commercial_photography_art_and_graphicsZcommuter_transport_and_ferriesZcomputer_network_servicesZcomputer_programmingZcomputer_repairZcomputer_software_storesZ"computers_peripherals_and_softwareZconcrete_work_servicesZconstruction_materialsZconsulting_public_relationsZcorrespondence_schoolsZcosmetic_storesZcounseling_servicesZcountry_clubsZcourier_servicesZcourt_costsZcredit_reporting_agenciesZcruise_linesZdairy_products_storesZdance_hall_studios_schoolsZdating_escort_servicesZdentists_orthodontistsZdepartment_storesZdetective_agenciesZdigital_goods_applicationsZdigital_goods_gamesZdigital_goods_large_volumeZdigital_goods_mediaZ!direct_marketing_catalog_merchantZ8direct_marketing_combination_catalog_and_retail_merchantZ&direct_marketing_inbound_telemarketingZ#direct_marketing_insurance_servicesZdirect_marketing_otherZ'direct_marketing_outbound_telemarketingZdirect_marketing_subscriptionZdirect_marketing_travelZdiscount_storesZdoctorsZdoor_to_door_salesZ-drapery_window_covering_and_upholstery_storesZdrinking_placesZdrug_stores_and_pharmaciesZ.drugs_drug_proprietaries_and_druggist_sundriesZdry_cleanersZdurable_goodsZduty_free_storesZeating_places_restaurantsZeducational_servicesZelectric_razor_storesZelectric_vehicle_chargingZelectrical_parts_and_equipmentZelectrical_servicesZelectronics_repair_shopsZelectronics_storesZelementary_secondary_schoolsZ%emergency_services_gcas_visa_use_onlyZemployment_temp_agenciesZequipment_rentalZexterminating_servicesZfamily_clothing_storesZfast_food_restaurantsZfinancial_institutionsZ(fines_government_administrative_entitiesZ2fireplace_fireplace_screens_and_accessories_storesZfloor_covering_storesZfloristsZ+florists_supplies_nursery_stock_and_flowersZ$freezer_and_locker_meat_provisionersZfuel_dealers_non_automotiveZfuneral_services_crematoriesZAfurniture_home_furnishings_and_equipment_stores_except_appliancesZfurniture_repair_refinishingZfurriers_and_fur_shopsZgeneral_servicesZ$gift_card_novelty_and_souvenir_shopsZ glass_paint_and_wallpaper_storesZglassware_crystal_storesZgolf_courses_publicZ3government_licensed_horse_dog_racing_us_region_onlyZAgovernment_licensed_online_casions_online_gambling_us_region_onlyZ(government_owned_lotteries_non_us_regionZ)government_owned_lotteries_us_region_onlyZgovernment_servicesZgrocery_stores_supermarketsZhardware_equipment_and_suppliesZhardware_storesZhealth_and_beauty_spasZhearing_aids_sales_and_suppliesZheating_plumbing_a_cZhobby_toy_and_game_shopsZhome_supply_warehouse_storesZ	hospitalsZhotels_motels_and_resortsZhousehold_appliance_storesZindustrial_suppliesZinformation_retrieval_servicesZinsurance_defaultZinsurance_underwriting_premiumsZintra_company_purchasesZ3jewelry_stores_watches_clocks_and_silverware_storesZlandscaping_servicesZ	laundriesZlaundry_cleaning_servicesZlegal_services_attorneysZ luggage_and_leather_goods_storesZ lumber_building_materials_storesZmanual_cash_disburseZmarinas_service_and_suppliesZmarketplacesZmasonry_stonework_and_plasterZmassage_parlorsZmedical_and_dental_labsZ=medical_dental_ophthalmic_and_hospital_equipment_and_suppliesZmedical_servicesZmembership_organizationsZ-mens_and_boys_clothing_and_accessories_storesZmens_womens_clothing_storesZmetal_service_centersZmiscellaneousZ)miscellaneous_apparel_and_accessory_shopsZmiscellaneous_auto_dealersZmiscellaneous_business_servicesZmiscellaneous_food_storesZ!miscellaneous_general_merchandiseZmiscellaneous_general_servicesZ.miscellaneous_home_furnishing_specialty_storesZ%miscellaneous_publishing_and_printingZ!miscellaneous_recreation_servicesZmiscellaneous_repair_shopsZmiscellaneous_specialty_retailZmobile_home_dealersZmotion_picture_theatersZ#motor_freight_carriers_and_truckingZmotor_homes_dealersZ$motor_vehicle_supplies_and_new_partsZmotorcycle_shops_and_dealersZmotorcycle_shops_dealersZ7music_stores_musical_instruments_pianos_and_sheet_musicZnews_dealers_and_newsstandsZnon_fi_money_ordersZ&non_fi_stored_value_card_purchase_loadZnondurable_goodsZ'nurseries_lawn_and_garden_supply_storesZnursing_personal_careZoffice_and_commercial_furnitureZopticians_eyeglassesZoptometrists_ophthalmologistZ#orthopedic_goods_prosthetic_devicesZ
osteopathsZ#package_stores_beer_wine_and_liquorZpaints_varnishes_and_suppliesZparking_lots_garagesZpassenger_railwaysZ
pawn_shopsZpet_shops_pet_food_and_suppliesZ petroleum_and_petroleum_productsZphoto_developingZ7photographic_photocopy_microfilm_equipment_and_suppliesZphotographic_studiosZpicture_video_productionZ'piece_goods_notions_and_other_dry_goodsZ'plumbing_heating_equipment_and_suppliesZpolitical_organizationsZpostal_services_government_onlyZ.precious_stones_and_metals_watches_and_jewelryZprofessional_servicesZpublic_warehousing_and_storageZquick_copy_repro_and_blueprintZ	railroadsZ'real_estate_agents_and_managers_rentalsZrecord_storesZrecreational_vehicle_rentalsZreligious_goods_storesZreligious_organizationsZroofing_siding_sheet_metalZsecretarial_support_servicesZsecurity_brokers_dealersZservice_stationsZ/sewing_needlework_fabric_and_piece_goods_storesZshoe_repair_hat_cleaningZshoe_storesZsmall_appliance_repairZsnowmobile_dealersZspecial_trade_servicesZspecialty_cleaningZsporting_goods_storesZsporting_recreation_campsZ sports_and_riding_apparel_storesZsports_clubs_fieldsZstamp_and_coin_storesZ5stationary_office_supplies_printing_and_writing_paperZ1stationery_stores_office_and_school_supply_storesZswimming_pools_salesZt_ui_travel_germanyZtailors_alterationsZ tax_payments_government_agenciesZtax_preparation_servicesZtaxicabs_limousinesZ/telecommunication_equipment_and_telephone_salesZtelecommunication_servicesZtelegraph_servicesZtent_and_awning_shopsZtesting_laboratoriesZtheatrical_ticket_agenciesZ
timesharesZtire_retreading_and_repairZtolls_bridge_feesZ tourist_attractions_and_exhibitsZtowing_servicesZtrailer_parks_campgroundsZtransportation_servicesZtravel_agencies_tour_operatorsZtruck_stop_iterationZtruck_utility_trailer_rentalsZ-typesetting_plate_making_and_related_servicesZtypewriter_storesZ.u_s_federal_government_agencies_or_departmentsZuniforms_commercial_clothingZ&used_merchandise_and_secondhand_storesZ	utilitiesZvariety_storesZveterinary_servicesZvideo_amusement_game_suppliesZvideo_game_arcadesZvideo_tape_rental_storesZvocational_trade_schoolsZwatch_jewelry_repairZwelding_repairZwholesale_clubsZwig_and_toupee_storesZwires_money_ordersZ$womens_accessory_and_specialty_shopsZwomens_ready_to_wear_storesZwrecking_and_salvage_yardsallowed_categoriesallowed_merchant_countriesblocked_categoriesblocked_merchant_countries5CardService.CreateParamsSpendingControlsSpendingLimitspending_limitsNr!   r"   r#   r   r   r
   r%   r$   r&   r&   r&   r'   CreateParamsSpendingControls   s0   
  2  2rT   c                   @   s6   e Zd ZU eed< eeed   ed< ed ed< dS )rQ   amountrL   
categoriesZall_timeZdailyZmonthlyZper_authorizationZweeklyZyearlyintervalNr!   r"   r#   intr%   r   r   r
   r&   r&   r&   r'   )CreateParamsSpendingControlsSpendingLimit
  s   
  2r[   c                   @   s   e Zd ZU ee ed< ed 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d	< ee ed
< ee ed< eed  ed< eed  ed< dS )CardService.ListParamsr   z!CardService.ListParamsCreated|intcreatedZending_beforeZ	exp_monthZexp_yearr   Zlast4limitr   Zstarting_afterr   canceledr   r   r   r    N)	r!   r"   r#   r   r$   r%   rZ   r   r
   r&   r&   r&   r'   
ListParamsK  s   
ra   c                   @   s>   e Zd ZU ee ed< ee ed< ee ed< ee ed< dS )zCardService.ListParamsCreatedgtZgteltZlteN)r!   r"   r#   r   rZ   r%   r&   r&   r&   r'   ListParamsCreatedz  s
   
rd   c                   @   s   e Zd ZU eee  ed< dS )CardService.RetrieveParamsr   N)r!   r"   r#   r   r   r$   r%   r&   r&   r&   r'   RetrieveParams  s   
rf   c                   @   sz   e Zd ZU eed  ed< eee  ed< ed ed< ee ed< ed ed< ed	 ed
< ed ed< eed  ed< dS )CardService.UpdateParams)r   r   Zcancellation_reasonr   zLiteral['']|Dict[str, str]r   r   CardService.UpdateParamsPinr    CardService.UpdateParamsShippingr   (CardService.UpdateParamsSpendingControlsr   r_   r   N)r!   r"   r#   r   r
   r%   r   r$   r&   r&   r&   r'   UpdateParams  s   
rk   c                   @   s   e Zd ZU ee ed< dS )rh   r)   Nr*   r&   r&   r&   r'   UpdateParamsPin  s   
rl   c                   @   sn   e Zd ZU ded< ed ed< ed ed< eed< ee ed< ee ed	< eed
  ed< eed  ed< dS )ri   'CardService.UpdateParamsShippingAddressr-   1CardService.UpdateParamsShippingAddressValidationr/   'CardService.UpdateParamsShippingCustomsr1   r2   r3   r4   r5   r8   r9   r    Nr:   r&   r&   r&   r'   UpdateParamsShipping  s   
rp   c                   @   sF   e Zd ZU eed< eed< eed< ee ed< eed< ee ed< dS )rm   r=   r>   r?   r@   rA   rB   NrC   r&   r&   r&   r'   UpdateParamsShippingAddress  s   
rq   c                   @   s   e Zd ZU ed ed< dS )rn   rE   rG   NrH   r&   r&   r&   r'   %UpdateParamsShippingAddressValidation  s   
rr   c                   @   s   e Zd ZU ee ed< dS )ro   rJ   Nr*   r&   r&   r&   r'   UpdateParamsShippingCustoms  s   
rs   c                   @   sf   e Zd ZU eeed   ed< eee  ed< eeed   ed< eee  ed< eed  ed< dS )	rj   rL   rM   rN   rO   rP   5CardService.UpdateParamsSpendingControlsSpendingLimitrR   NrS   r&   r&   r&   r'   UpdateParamsSpendingControls  s0   
  2  2ru   c                   @   s6   e Zd ZU eed< eeed   ed< ed ed< dS )rt   rU   rL   rV   rW   rX   NrY   r&   r&   r&   r'   )UpdateParamsSpendingControlsSpendingLimitu  s   
  2rv   r\   )paramsoptionsreturnc              	   C   s   t tt | jddd||dS )
        Returns a list of Issuing Card objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
        get/v1/issuing/cardsapiZbase_addressrw   rx   )r	   r   r   _requestselfrw   rx   r&   r&   r'   list  s    zCardService.listc              	      s$   t tt | jddd||dI dH S )rz   r{   r|   r}   r~   N)r	   r   r   _request_asyncr   r&   r&   r'   
list_async  s    
zCardService.list_asyncr   c              	   C   s   t t| jddd||dS )1
        Creates an Issuing Card object.
        postr|   r}   r~   )r	   r   r   r   r&   r&   r'   create  s    zCardService.createc              	      s    t t| jddd||dI dH S )r   r   r|   r}   r~   N)r	   r   r   r   r&   r&   r'   create_async  s    
zCardService.create_asyncre   )cardrw   rx   ry   c              	   C   s&   t t| jddjt|dd||dS )3
        Retrieves an Issuing Card object.
        r{   /v1/issuing/cards/{card}r   r}   r~   r	   r   r   formatr   r   r   rw   rx   r&   r&   r'   retrieve  s    	zCardService.retrievec              	      s,   t t| jddjt|dd||dI dH S )r   r{   r   r   r}   r~   Nr	   r   r   r   r   r   r&   r&   r'   retrieve_async	  s    	
zCardService.retrieve_asyncrg   c              	   C   s&   t t| jddjt|dd||dS )
        Updates the specified Issuing Card object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
        r   r   r   r}   r~   r   r   r&   r&   r'   update&	  s    	zCardService.updatec              	      s,   t t| jddjt|dd||dI dH S )r   r   r   r   r}   r~   Nr   r   r&   r&   r'   update_async:	  s    	
zCardService.update_asyncN)#r!   r"   r#   r   r(   r+   r<   rD   rI   rK   rT   r[   ra   rd   rf   rk   rl   rp   rq   rr   rs   ru   rv   r   r   r   r   r   r   r   r$   r   r   r   r   r&   r&   r&   r'   r      s   ;$    t  C/!$    t  Er   N)Zstripe._list_objectr   Zstripe._request_optionsr   Zstripe._stripe_servicer   Zstripe._utilr   Zstripe.issuing._cardr   typingr   r   r	   Ztyping_extensionsr
   r   r   r   r&   r&   r&   r'   <module>   s   