Debian Codegraph @

stripe/issuing/_cardholder.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from stripe._createable_api_resource import CreateableAPIResource
4 from stripe._expandable_field import ExpandableField
5 from stripe._list_object import ListObject
6 from stripe._listable_api_resource import ListableAPIResource
7 from stripe._stripe_object import StripeObject
8 from stripe._updateable_api_resource import UpdateableAPIResource
9 from stripe._util import sanitize_id
10 from typing import ClassVar, Dict, List, Optional, cast
11 from typing_extensions import Literal, Unpack, TYPE_CHECKING
12
13 if TYPE_CHECKING:
14 from stripe._file import File
15 from stripe.params.issuing._cardholder_create_params import (
16 CardholderCreateParams,
17 )
18 from stripe.params.issuing._cardholder_list_params import (
19 CardholderListParams,
20 )
21 from stripe.params.issuing._cardholder_modify_params import (
22 CardholderModifyParams,
23 )
24 from stripe.params.issuing._cardholder_retrieve_params import (
25 CardholderRetrieveParams,
26 )
27
28
29 class Cardholder(
30 CreateableAPIResource["Cardholder"],
31 ListableAPIResource["Cardholder"],
32 UpdateableAPIResource["Cardholder"],
33 ):
34 """
35 An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://docs.stripe.com/issuing) cards.
36
37 Related guide: [How to create a cardholder](https://docs.stripe.com/issuing/cards/virtual/issue-cards#create-cardholder)
38 """
39
40 OBJECT_NAME: ClassVar[Literal["issuing.cardholder"]] = "issuing.cardholder"
41
42 class Billing(StripeObject):
43 class Address(StripeObject):
44 city: Optional[str]
45 """
46 City, district, suburb, town, or village.
47 """
48 country: Optional[str]
49 """
50 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
51 """
52 line1: Optional[str]
53 """
54 Address line 1, such as the street, PO Box, or company name.
55 """
56 line2: Optional[str]
57 """
58 Address line 2, such as the apartment, suite, unit, or building.
59 """
60 postal_code: Optional[str]
61 """
62 ZIP or postal code.
63 """
64 state: Optional[str]
65 """
66 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
67 """
68
69 address: Address
70 _inner_class_types = {"address": Address}
71
72 class Company(StripeObject):
73 tax_id_provided: bool
74 """
75 Whether the company's business ID number was provided.
76 """
77
78 class Individual(StripeObject):
79 class CardIssuing(StripeObject):
80 class UserTermsAcceptance(StripeObject):
81 date: Optional[int]
82 """
83 The Unix timestamp marking when the cardholder accepted the Authorized User Terms.
84 """
85 ip: Optional[str]
86 """
87 The IP address from which the cardholder accepted the Authorized User Terms.
88 """
89 user_agent: Optional[str]
90 """
91 The user agent of the browser from which the cardholder accepted the Authorized User Terms.
92 """
93
94 user_terms_acceptance: Optional[UserTermsAcceptance]
95 """
96 Information about cardholder acceptance of Celtic [Authorized User Terms](https://stripe.com/docs/issuing/cards#accept-authorized-user-terms). Required for cards backed by a Celtic program.
97 """
98 _inner_class_types = {"user_terms_acceptance": UserTermsAcceptance}
99
100 class Dob(StripeObject):
101 day: Optional[int]
102 """
103 The day of birth, between 1 and 31.
104 """
105 month: Optional[int]
106 """
107 The month of birth, between 1 and 12.
108 """
109 year: Optional[int]
110 """
111 The four-digit year of birth.
112 """
113
114 class Verification(StripeObject):
115 class Document(StripeObject):
116 back: Optional[ExpandableField["File"]]
117 """
118 The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`.
119 """
120 front: Optional[ExpandableField["File"]]
121 """
122 The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`.
123 """
124
125 document: Optional[Document]
126 """
127 An identifying document, either a passport or local ID card.
128 """
129 _inner_class_types = {"document": Document}
130
131 card_issuing: Optional[CardIssuing]
132 """
133 Information related to the card_issuing program for this cardholder.
134 """
135 dob: Optional[Dob]
136 """
137 The date of birth of this cardholder.
138 """
139 first_name: Optional[str]
140 """
141 The first name of this cardholder. Required before activating Cards. This field cannot contain any numbers, special characters (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters.
142 """
143 last_name: Optional[str]
144 """
145 The last name of this cardholder. Required before activating Cards. This field cannot contain any numbers, special characters (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters.
146 """
147 verification: Optional[Verification]
148 """
149 Government-issued ID document for this cardholder.
150 """
151 _inner_class_types = {
152 "card_issuing": CardIssuing,
153 "dob": Dob,
154 "verification": Verification,
155 }
156
157 class Requirements(StripeObject):
158 disabled_reason: Optional[
159 Literal[
160 "listed",
161 "rejected.listed",
162 "requirements.past_due",
163 "under_review",
164 ]
165 ]
166 """
167 If `disabled_reason` is present, all cards will decline authorizations with `cardholder_verification_required` reason.
168 """
169 past_due: Optional[
170 List[
171 Literal[
172 "company.tax_id",
173 "individual.card_issuing.user_terms_acceptance.date",
174 "individual.card_issuing.user_terms_acceptance.ip",
175 "individual.dob.day",
176 "individual.dob.month",
177 "individual.dob.year",
178 "individual.first_name",
179 "individual.last_name",
180 "individual.verification.document",
181 ]
182 ]
183 ]
184 """
185 Array of fields that need to be collected in order to verify and re-enable the cardholder.
186 """
187
188 class SpendingControls(StripeObject):
189 class SpendingLimit(StripeObject):
190 amount: int
191 """
192 Maximum amount allowed to spend per interval. This amount is in the card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
193 """
194 categories: Optional[
195 List[
196 Literal[
197 "ac_refrigeration_repair",
198 "accounting_bookkeeping_services",
199 "advertising_services",
200 "agricultural_cooperative",
201 "airlines_air_carriers",
202 "airports_flying_fields",
203 "ambulance_services",
204 "amusement_parks_carnivals",
205 "antique_reproductions",
206 "antique_shops",
207 "aquariums",
208 "architectural_surveying_services",
209 "art_dealers_and_galleries",
210 "artists_supply_and_craft_shops",
211 "auto_and_home_supply_stores",
212 "auto_body_repair_shops",
213 "auto_paint_shops",
214 "auto_service_shops",
215 "automated_cash_disburse",
216 "automated_fuel_dispensers",
217 "automobile_associations",
218 "automotive_parts_and_accessories_stores",
219 "automotive_tire_stores",
220 "bail_and_bond_payments",
221 "bakeries",
222 "bands_orchestras",
223 "barber_and_beauty_shops",
224 "betting_casino_gambling",
225 "bicycle_shops",
226 "billiard_pool_establishments",
227 "boat_dealers",
228 "boat_rentals_and_leases",
229 "book_stores",
230 "books_periodicals_and_newspapers",
231 "bowling_alleys",
232 "bus_lines",
233 "business_secretarial_schools",
234 "buying_shopping_services",
235 "cable_satellite_and_other_pay_television_and_radio",
236 "camera_and_photographic_supply_stores",
237 "candy_nut_and_confectionery_stores",
238 "car_and_truck_dealers_new_used",
239 "car_and_truck_dealers_used_only",
240 "car_rental_agencies",
241 "car_washes",
242 "carpentry_services",
243 "carpet_upholstery_cleaning",
244 "caterers",
245 "charitable_and_social_service_organizations_fundraising",
246 "chemicals_and_allied_products",
247 "child_care_services",
248 "childrens_and_infants_wear_stores",
249 "chiropodists_podiatrists",
250 "chiropractors",
251 "cigar_stores_and_stands",
252 "civic_social_fraternal_associations",
253 "cleaning_and_maintenance",
254 "clothing_rental",
255 "colleges_universities",
256 "commercial_equipment",
257 "commercial_footwear",
258 "commercial_photography_art_and_graphics",
259 "commuter_transport_and_ferries",
260 "computer_network_services",
261 "computer_programming",
262 "computer_repair",
263 "computer_software_stores",
264 "computers_peripherals_and_software",
265 "concrete_work_services",
266 "construction_materials",
267 "consulting_public_relations",
268 "correspondence_schools",
269 "cosmetic_stores",
270 "counseling_services",
271 "country_clubs",
272 "courier_services",
273 "court_costs",
274 "credit_reporting_agencies",
275 "cruise_lines",
276 "dairy_products_stores",
277 "dance_hall_studios_schools",
278 "dating_escort_services",
279 "dentists_orthodontists",
280 "department_stores",
281 "detective_agencies",
282 "digital_goods_applications",
283 "digital_goods_games",
284 "digital_goods_large_volume",
285 "digital_goods_media",
286 "direct_marketing_catalog_merchant",
287 "direct_marketing_combination_catalog_and_retail_merchant",
288 "direct_marketing_inbound_telemarketing",
289 "direct_marketing_insurance_services",
290 "direct_marketing_other",
291 "direct_marketing_outbound_telemarketing",
292 "direct_marketing_subscription",
293 "direct_marketing_travel",
294 "discount_stores",
295 "doctors",
296 "door_to_door_sales",
297 "drapery_window_covering_and_upholstery_stores",
298 "drinking_places",
299 "drug_stores_and_pharmacies",
300 "drugs_drug_proprietaries_and_druggist_sundries",
301 "dry_cleaners",
302 "durable_goods",
303 "duty_free_stores",
304 "eating_places_restaurants",
305 "educational_services",
306 "electric_razor_stores",
307 "electric_vehicle_charging",
308 "electrical_parts_and_equipment",
309 "electrical_services",
310 "electronics_repair_shops",
311 "electronics_stores",
312 "elementary_secondary_schools",
313 "emergency_services_gcas_visa_use_only",
314 "employment_temp_agencies",
315 "equipment_rental",
316 "exterminating_services",
317 "family_clothing_stores",
318 "fast_food_restaurants",
319 "financial_institutions",
320 "fines_government_administrative_entities",
321 "fireplace_fireplace_screens_and_accessories_stores",
322 "floor_covering_stores",
323 "florists",
324 "florists_supplies_nursery_stock_and_flowers",
325 "freezer_and_locker_meat_provisioners",
326 "fuel_dealers_non_automotive",
327 "funeral_services_crematories",
328 "furniture_home_furnishings_and_equipment_stores_except_appliances",
329 "furniture_repair_refinishing",
330 "furriers_and_fur_shops",
331 "general_services",
332 "gift_card_novelty_and_souvenir_shops",
333 "glass_paint_and_wallpaper_stores",
334 "glassware_crystal_stores",
335 "golf_courses_public",
336 "government_licensed_horse_dog_racing_us_region_only",
337 "government_licensed_online_casions_online_gambling_us_region_only",
338 "government_owned_lotteries_non_us_region",
339 "government_owned_lotteries_us_region_only",
340 "government_services",
341 "grocery_stores_supermarkets",
342 "hardware_equipment_and_supplies",
343 "hardware_stores",
344 "health_and_beauty_spas",
345 "hearing_aids_sales_and_supplies",
346 "heating_plumbing_a_c",
347 "hobby_toy_and_game_shops",
348 "home_supply_warehouse_stores",
349 "hospitals",
350 "hotels_motels_and_resorts",
351 "household_appliance_stores",
352 "industrial_supplies",
353 "information_retrieval_services",
354 "insurance_default",
355 "insurance_underwriting_premiums",
356 "intra_company_purchases",
357 "jewelry_stores_watches_clocks_and_silverware_stores",
358 "landscaping_services",
359 "laundries",
360 "laundry_cleaning_services",
361 "legal_services_attorneys",
362 "luggage_and_leather_goods_stores",
363 "lumber_building_materials_stores",
364 "manual_cash_disburse",
365 "marinas_service_and_supplies",
366 "marketplaces",
367 "masonry_stonework_and_plaster",
368 "massage_parlors",
369 "medical_and_dental_labs",
370 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
371 "medical_services",
372 "membership_organizations",
373 "mens_and_boys_clothing_and_accessories_stores",
374 "mens_womens_clothing_stores",
375 "metal_service_centers",
376 "miscellaneous",
377 "miscellaneous_apparel_and_accessory_shops",
378 "miscellaneous_auto_dealers",
379 "miscellaneous_business_services",
380 "miscellaneous_food_stores",
381 "miscellaneous_general_merchandise",
382 "miscellaneous_general_services",
383 "miscellaneous_home_furnishing_specialty_stores",
384 "miscellaneous_publishing_and_printing",
385 "miscellaneous_recreation_services",
386 "miscellaneous_repair_shops",
387 "miscellaneous_specialty_retail",
388 "mobile_home_dealers",
389 "motion_picture_theaters",
390 "motor_freight_carriers_and_trucking",
391 "motor_homes_dealers",
392 "motor_vehicle_supplies_and_new_parts",
393 "motorcycle_shops_and_dealers",
394 "motorcycle_shops_dealers",
395 "music_stores_musical_instruments_pianos_and_sheet_music",
396 "news_dealers_and_newsstands",
397 "non_fi_money_orders",
398 "non_fi_stored_value_card_purchase_load",
399 "nondurable_goods",
400 "nurseries_lawn_and_garden_supply_stores",
401 "nursing_personal_care",
402 "office_and_commercial_furniture",
403 "opticians_eyeglasses",
404 "optometrists_ophthalmologist",
405 "orthopedic_goods_prosthetic_devices",
406 "osteopaths",
407 "package_stores_beer_wine_and_liquor",
408 "paints_varnishes_and_supplies",
409 "parking_lots_garages",
410 "passenger_railways",
411 "pawn_shops",
412 "pet_shops_pet_food_and_supplies",
413 "petroleum_and_petroleum_products",
414 "photo_developing",
415 "photographic_photocopy_microfilm_equipment_and_supplies",
416 "photographic_studios",
417 "picture_video_production",
418 "piece_goods_notions_and_other_dry_goods",
419 "plumbing_heating_equipment_and_supplies",
420 "political_organizations",
421 "postal_services_government_only",
422 "precious_stones_and_metals_watches_and_jewelry",
423 "professional_services",
424 "public_warehousing_and_storage",
425 "quick_copy_repro_and_blueprint",
426 "railroads",
427 "real_estate_agents_and_managers_rentals",
428 "record_stores",
429 "recreational_vehicle_rentals",
430 "religious_goods_stores",
431 "religious_organizations",
432 "roofing_siding_sheet_metal",
433 "secretarial_support_services",
434 "security_brokers_dealers",
435 "service_stations",
436 "sewing_needlework_fabric_and_piece_goods_stores",
437 "shoe_repair_hat_cleaning",
438 "shoe_stores",
439 "small_appliance_repair",
440 "snowmobile_dealers",
441 "special_trade_services",
442 "specialty_cleaning",
443 "sporting_goods_stores",
444 "sporting_recreation_camps",
445 "sports_and_riding_apparel_stores",
446 "sports_clubs_fields",
447 "stamp_and_coin_stores",
448 "stationary_office_supplies_printing_and_writing_paper",
449 "stationery_stores_office_and_school_supply_stores",
450 "swimming_pools_sales",
451 "t_ui_travel_germany",
452 "tailors_alterations",
453 "tax_payments_government_agencies",
454 "tax_preparation_services",
455 "taxicabs_limousines",
456 "telecommunication_equipment_and_telephone_sales",
457 "telecommunication_services",
458 "telegraph_services",
459 "tent_and_awning_shops",
460 "testing_laboratories",
461 "theatrical_ticket_agencies",
462 "timeshares",
463 "tire_retreading_and_repair",
464 "tolls_bridge_fees",
465 "tourist_attractions_and_exhibits",
466 "towing_services",
467 "trailer_parks_campgrounds",
468 "transportation_services",
469 "travel_agencies_tour_operators",
470 "truck_stop_iteration",
471 "truck_utility_trailer_rentals",
472 "typesetting_plate_making_and_related_services",
473 "typewriter_stores",
474 "u_s_federal_government_agencies_or_departments",
475 "uniforms_commercial_clothing",
476 "used_merchandise_and_secondhand_stores",
477 "utilities",
478 "variety_stores",
479 "veterinary_services",
480 "video_amusement_game_supplies",
481 "video_game_arcades",
482 "video_tape_rental_stores",
483 "vocational_trade_schools",
484 "watch_jewelry_repair",
485 "welding_repair",
486 "wholesale_clubs",
487 "wig_and_toupee_stores",
488 "wires_money_orders",
489 "womens_accessory_and_specialty_shops",
490 "womens_ready_to_wear_stores",
491 "wrecking_and_salvage_yards",
492 ]
493 ]
494 ]
495 """
496 Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories.
497 """
498 interval: Literal[
499 "all_time",
500 "daily",
501 "monthly",
502 "per_authorization",
503 "weekly",
504 "yearly",
505 ]
506 """
507 Interval (or event) to which the amount applies.
508 """
509
510 allowed_categories: Optional[
511 List[
512 Literal[
513 "ac_refrigeration_repair",
514 "accounting_bookkeeping_services",
515 "advertising_services",
516 "agricultural_cooperative",
517 "airlines_air_carriers",
518 "airports_flying_fields",
519 "ambulance_services",
520 "amusement_parks_carnivals",
521 "antique_reproductions",
522 "antique_shops",
523 "aquariums",
524 "architectural_surveying_services",
525 "art_dealers_and_galleries",
526 "artists_supply_and_craft_shops",
527 "auto_and_home_supply_stores",
528 "auto_body_repair_shops",
529 "auto_paint_shops",
530 "auto_service_shops",
531 "automated_cash_disburse",
532 "automated_fuel_dispensers",
533 "automobile_associations",
534 "automotive_parts_and_accessories_stores",
535 "automotive_tire_stores",
536 "bail_and_bond_payments",
537 "bakeries",
538 "bands_orchestras",
539 "barber_and_beauty_shops",
540 "betting_casino_gambling",
541 "bicycle_shops",
542 "billiard_pool_establishments",
543 "boat_dealers",
544 "boat_rentals_and_leases",
545 "book_stores",
546 "books_periodicals_and_newspapers",
547 "bowling_alleys",
548 "bus_lines",
549 "business_secretarial_schools",
550 "buying_shopping_services",
551 "cable_satellite_and_other_pay_television_and_radio",
552 "camera_and_photographic_supply_stores",
553 "candy_nut_and_confectionery_stores",
554 "car_and_truck_dealers_new_used",
555 "car_and_truck_dealers_used_only",
556 "car_rental_agencies",
557 "car_washes",
558 "carpentry_services",
559 "carpet_upholstery_cleaning",
560 "caterers",
561 "charitable_and_social_service_organizations_fundraising",
562 "chemicals_and_allied_products",
563 "child_care_services",
564 "childrens_and_infants_wear_stores",
565 "chiropodists_podiatrists",
566 "chiropractors",
567 "cigar_stores_and_stands",
568 "civic_social_fraternal_associations",
569 "cleaning_and_maintenance",
570 "clothing_rental",
571 "colleges_universities",
572 "commercial_equipment",
573 "commercial_footwear",
574 "commercial_photography_art_and_graphics",
575 "commuter_transport_and_ferries",
576 "computer_network_services",
577 "computer_programming",
578 "computer_repair",
579 "computer_software_stores",
580 "computers_peripherals_and_software",
581 "concrete_work_services",
582 "construction_materials",
583 "consulting_public_relations",
584 "correspondence_schools",
585 "cosmetic_stores",
586 "counseling_services",
587 "country_clubs",
588 "courier_services",
589 "court_costs",
590 "credit_reporting_agencies",
591 "cruise_lines",
592 "dairy_products_stores",
593 "dance_hall_studios_schools",
594 "dating_escort_services",
595 "dentists_orthodontists",
596 "department_stores",
597 "detective_agencies",
598 "digital_goods_applications",
599 "digital_goods_games",
600 "digital_goods_large_volume",
601 "digital_goods_media",
602 "direct_marketing_catalog_merchant",
603 "direct_marketing_combination_catalog_and_retail_merchant",
604 "direct_marketing_inbound_telemarketing",
605 "direct_marketing_insurance_services",
606 "direct_marketing_other",
607 "direct_marketing_outbound_telemarketing",
608 "direct_marketing_subscription",
609 "direct_marketing_travel",
610 "discount_stores",
611 "doctors",
612 "door_to_door_sales",
613 "drapery_window_covering_and_upholstery_stores",
614 "drinking_places",
615 "drug_stores_and_pharmacies",
616 "drugs_drug_proprietaries_and_druggist_sundries",
617 "dry_cleaners",
618 "durable_goods",
619 "duty_free_stores",
620 "eating_places_restaurants",
621 "educational_services",
622 "electric_razor_stores",
623 "electric_vehicle_charging",
624 "electrical_parts_and_equipment",
625 "electrical_services",
626 "electronics_repair_shops",
627 "electronics_stores",
628 "elementary_secondary_schools",
629 "emergency_services_gcas_visa_use_only",
630 "employment_temp_agencies",
631 "equipment_rental",
632 "exterminating_services",
633 "family_clothing_stores",
634 "fast_food_restaurants",
635 "financial_institutions",
636 "fines_government_administrative_entities",
637 "fireplace_fireplace_screens_and_accessories_stores",
638 "floor_covering_stores",
639 "florists",
640 "florists_supplies_nursery_stock_and_flowers",
641 "freezer_and_locker_meat_provisioners",
642 "fuel_dealers_non_automotive",
643 "funeral_services_crematories",
644 "furniture_home_furnishings_and_equipment_stores_except_appliances",
645 "furniture_repair_refinishing",
646 "furriers_and_fur_shops",
647 "general_services",
648 "gift_card_novelty_and_souvenir_shops",
649 "glass_paint_and_wallpaper_stores",
650 "glassware_crystal_stores",
651 "golf_courses_public",
652 "government_licensed_horse_dog_racing_us_region_only",
653 "government_licensed_online_casions_online_gambling_us_region_only",
654 "government_owned_lotteries_non_us_region",
655 "government_owned_lotteries_us_region_only",
656 "government_services",
657 "grocery_stores_supermarkets",
658 "hardware_equipment_and_supplies",
659 "hardware_stores",
660 "health_and_beauty_spas",
661 "hearing_aids_sales_and_supplies",
662 "heating_plumbing_a_c",
663 "hobby_toy_and_game_shops",
664 "home_supply_warehouse_stores",
665 "hospitals",
666 "hotels_motels_and_resorts",
667 "household_appliance_stores",
668 "industrial_supplies",
669 "information_retrieval_services",
670 "insurance_default",
671 "insurance_underwriting_premiums",
672 "intra_company_purchases",
673 "jewelry_stores_watches_clocks_and_silverware_stores",
674 "landscaping_services",
675 "laundries",
676 "laundry_cleaning_services",
677 "legal_services_attorneys",
678 "luggage_and_leather_goods_stores",
679 "lumber_building_materials_stores",
680 "manual_cash_disburse",
681 "marinas_service_and_supplies",
682 "marketplaces",
683 "masonry_stonework_and_plaster",
684 "massage_parlors",
685 "medical_and_dental_labs",
686 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
687 "medical_services",
688 "membership_organizations",
689 "mens_and_boys_clothing_and_accessories_stores",
690 "mens_womens_clothing_stores",
691 "metal_service_centers",
692 "miscellaneous",
693 "miscellaneous_apparel_and_accessory_shops",
694 "miscellaneous_auto_dealers",
695 "miscellaneous_business_services",
696 "miscellaneous_food_stores",
697 "miscellaneous_general_merchandise",
698 "miscellaneous_general_services",
699 "miscellaneous_home_furnishing_specialty_stores",
700 "miscellaneous_publishing_and_printing",
701 "miscellaneous_recreation_services",
702 "miscellaneous_repair_shops",
703 "miscellaneous_specialty_retail",
704 "mobile_home_dealers",
705 "motion_picture_theaters",
706 "motor_freight_carriers_and_trucking",
707 "motor_homes_dealers",
708 "motor_vehicle_supplies_and_new_parts",
709 "motorcycle_shops_and_dealers",
710 "motorcycle_shops_dealers",
711 "music_stores_musical_instruments_pianos_and_sheet_music",
712 "news_dealers_and_newsstands",
713 "non_fi_money_orders",
714 "non_fi_stored_value_card_purchase_load",
715 "nondurable_goods",
716 "nurseries_lawn_and_garden_supply_stores",
717 "nursing_personal_care",
718 "office_and_commercial_furniture",
719 "opticians_eyeglasses",
720 "optometrists_ophthalmologist",
721 "orthopedic_goods_prosthetic_devices",
722 "osteopaths",
723 "package_stores_beer_wine_and_liquor",
724 "paints_varnishes_and_supplies",
725 "parking_lots_garages",
726 "passenger_railways",
727 "pawn_shops",
728 "pet_shops_pet_food_and_supplies",
729 "petroleum_and_petroleum_products",
730 "photo_developing",
731 "photographic_photocopy_microfilm_equipment_and_supplies",
732 "photographic_studios",
733 "picture_video_production",
734 "piece_goods_notions_and_other_dry_goods",
735 "plumbing_heating_equipment_and_supplies",
736 "political_organizations",
737 "postal_services_government_only",
738 "precious_stones_and_metals_watches_and_jewelry",
739 "professional_services",
740 "public_warehousing_and_storage",
741 "quick_copy_repro_and_blueprint",
742 "railroads",
743 "real_estate_agents_and_managers_rentals",
744 "record_stores",
745 "recreational_vehicle_rentals",
746 "religious_goods_stores",
747 "religious_organizations",
748 "roofing_siding_sheet_metal",
749 "secretarial_support_services",
750 "security_brokers_dealers",
751 "service_stations",
752 "sewing_needlework_fabric_and_piece_goods_stores",
753 "shoe_repair_hat_cleaning",
754 "shoe_stores",
755 "small_appliance_repair",
756 "snowmobile_dealers",
757 "special_trade_services",
758 "specialty_cleaning",
759 "sporting_goods_stores",
760 "sporting_recreation_camps",
761 "sports_and_riding_apparel_stores",
762 "sports_clubs_fields",
763 "stamp_and_coin_stores",
764 "stationary_office_supplies_printing_and_writing_paper",
765 "stationery_stores_office_and_school_supply_stores",
766 "swimming_pools_sales",
767 "t_ui_travel_germany",
768 "tailors_alterations",
769 "tax_payments_government_agencies",
770 "tax_preparation_services",
771 "taxicabs_limousines",
772 "telecommunication_equipment_and_telephone_sales",
773 "telecommunication_services",
774 "telegraph_services",
775 "tent_and_awning_shops",
776 "testing_laboratories",
777 "theatrical_ticket_agencies",
778 "timeshares",
779 "tire_retreading_and_repair",
780 "tolls_bridge_fees",
781 "tourist_attractions_and_exhibits",
782 "towing_services",
783 "trailer_parks_campgrounds",
784 "transportation_services",
785 "travel_agencies_tour_operators",
786 "truck_stop_iteration",
787 "truck_utility_trailer_rentals",
788 "typesetting_plate_making_and_related_services",
789 "typewriter_stores",
790 "u_s_federal_government_agencies_or_departments",
791 "uniforms_commercial_clothing",
792 "used_merchandise_and_secondhand_stores",
793 "utilities",
794 "variety_stores",
795 "veterinary_services",
796 "video_amusement_game_supplies",
797 "video_game_arcades",
798 "video_tape_rental_stores",
799 "vocational_trade_schools",
800 "watch_jewelry_repair",
801 "welding_repair",
802 "wholesale_clubs",
803 "wig_and_toupee_stores",
804 "wires_money_orders",
805 "womens_accessory_and_specialty_shops",
806 "womens_ready_to_wear_stores",
807 "wrecking_and_salvage_yards",
808 ]
809 ]
810 ]
811 """
812 Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. All other categories will be blocked. Cannot be set with `blocked_categories`.
813 """
814 allowed_merchant_countries: Optional[List[str]]
815 """
816 Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `blocked_merchant_countries`. Provide an empty value to unset this control.
817 """
818 blocked_categories: Optional[
819 List[
820 Literal[
821 "ac_refrigeration_repair",
822 "accounting_bookkeeping_services",
823 "advertising_services",
824 "agricultural_cooperative",
825 "airlines_air_carriers",
826 "airports_flying_fields",
827 "ambulance_services",
828 "amusement_parks_carnivals",
829 "antique_reproductions",
830 "antique_shops",
831 "aquariums",
832 "architectural_surveying_services",
833 "art_dealers_and_galleries",
834 "artists_supply_and_craft_shops",
835 "auto_and_home_supply_stores",
836 "auto_body_repair_shops",
837 "auto_paint_shops",
838 "auto_service_shops",
839 "automated_cash_disburse",
840 "automated_fuel_dispensers",
841 "automobile_associations",
842 "automotive_parts_and_accessories_stores",
843 "automotive_tire_stores",
844 "bail_and_bond_payments",
845 "bakeries",
846 "bands_orchestras",
847 "barber_and_beauty_shops",
848 "betting_casino_gambling",
849 "bicycle_shops",
850 "billiard_pool_establishments",
851 "boat_dealers",
852 "boat_rentals_and_leases",
853 "book_stores",
854 "books_periodicals_and_newspapers",
855 "bowling_alleys",
856 "bus_lines",
857 "business_secretarial_schools",
858 "buying_shopping_services",
859 "cable_satellite_and_other_pay_television_and_radio",
860 "camera_and_photographic_supply_stores",
861 "candy_nut_and_confectionery_stores",
862 "car_and_truck_dealers_new_used",
863 "car_and_truck_dealers_used_only",
864 "car_rental_agencies",
865 "car_washes",
866 "carpentry_services",
867 "carpet_upholstery_cleaning",
868 "caterers",
869 "charitable_and_social_service_organizations_fundraising",
870 "chemicals_and_allied_products",
871 "child_care_services",
872 "childrens_and_infants_wear_stores",
873 "chiropodists_podiatrists",
874 "chiropractors",
875 "cigar_stores_and_stands",
876 "civic_social_fraternal_associations",
877 "cleaning_and_maintenance",
878 "clothing_rental",
879 "colleges_universities",
880 "commercial_equipment",
881 "commercial_footwear",
882 "commercial_photography_art_and_graphics",
883 "commuter_transport_and_ferries",
884 "computer_network_services",
885 "computer_programming",
886 "computer_repair",
887 "computer_software_stores",
888 "computers_peripherals_and_software",
889 "concrete_work_services",
890 "construction_materials",
891 "consulting_public_relations",
892 "correspondence_schools",
893 "cosmetic_stores",
894 "counseling_services",
895 "country_clubs",
896 "courier_services",
897 "court_costs",
898 "credit_reporting_agencies",
899 "cruise_lines",
900 "dairy_products_stores",
901 "dance_hall_studios_schools",
902 "dating_escort_services",
903 "dentists_orthodontists",
904 "department_stores",
905 "detective_agencies",
906 "digital_goods_applications",
907 "digital_goods_games",
908 "digital_goods_large_volume",
909 "digital_goods_media",
910 "direct_marketing_catalog_merchant",
911 "direct_marketing_combination_catalog_and_retail_merchant",
912 "direct_marketing_inbound_telemarketing",
913 "direct_marketing_insurance_services",
914 "direct_marketing_other",
915 "direct_marketing_outbound_telemarketing",
916 "direct_marketing_subscription",
917 "direct_marketing_travel",
918 "discount_stores",
919 "doctors",
920 "door_to_door_sales",
921 "drapery_window_covering_and_upholstery_stores",
922 "drinking_places",
923 "drug_stores_and_pharmacies",
924 "drugs_drug_proprietaries_and_druggist_sundries",
925 "dry_cleaners",
926 "durable_goods",
927 "duty_free_stores",
928 "eating_places_restaurants",
929 "educational_services",
930 "electric_razor_stores",
931 "electric_vehicle_charging",
932 "electrical_parts_and_equipment",
933 "electrical_services",
934 "electronics_repair_shops",
935 "electronics_stores",
936 "elementary_secondary_schools",
937 "emergency_services_gcas_visa_use_only",
938 "employment_temp_agencies",
939 "equipment_rental",
940 "exterminating_services",
941 "family_clothing_stores",
942 "fast_food_restaurants",
943 "financial_institutions",
944 "fines_government_administrative_entities",
945 "fireplace_fireplace_screens_and_accessories_stores",
946 "floor_covering_stores",
947 "florists",
948 "florists_supplies_nursery_stock_and_flowers",
949 "freezer_and_locker_meat_provisioners",
950 "fuel_dealers_non_automotive",
951 "funeral_services_crematories",
952 "furniture_home_furnishings_and_equipment_stores_except_appliances",
953 "furniture_repair_refinishing",
954 "furriers_and_fur_shops",
955 "general_services",
956 "gift_card_novelty_and_souvenir_shops",
957 "glass_paint_and_wallpaper_stores",
958 "glassware_crystal_stores",
959 "golf_courses_public",
960 "government_licensed_horse_dog_racing_us_region_only",
961 "government_licensed_online_casions_online_gambling_us_region_only",
962 "government_owned_lotteries_non_us_region",
963 "government_owned_lotteries_us_region_only",
964 "government_services",
965 "grocery_stores_supermarkets",
966 "hardware_equipment_and_supplies",
967 "hardware_stores",
968 "health_and_beauty_spas",
969 "hearing_aids_sales_and_supplies",
970 "heating_plumbing_a_c",
971 "hobby_toy_and_game_shops",
972 "home_supply_warehouse_stores",
973 "hospitals",
974 "hotels_motels_and_resorts",
975 "household_appliance_stores",
976 "industrial_supplies",
977 "information_retrieval_services",
978 "insurance_default",
979 "insurance_underwriting_premiums",
980 "intra_company_purchases",
981 "jewelry_stores_watches_clocks_and_silverware_stores",
982 "landscaping_services",
983 "laundries",
984 "laundry_cleaning_services",
985 "legal_services_attorneys",
986 "luggage_and_leather_goods_stores",
987 "lumber_building_materials_stores",
988 "manual_cash_disburse",
989 "marinas_service_and_supplies",
990 "marketplaces",
991 "masonry_stonework_and_plaster",
992 "massage_parlors",
993 "medical_and_dental_labs",
994 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
995 "medical_services",
996 "membership_organizations",
997 "mens_and_boys_clothing_and_accessories_stores",
998 "mens_womens_clothing_stores",
999 "metal_service_centers",
1000 "miscellaneous",
1001 "miscellaneous_apparel_and_accessory_shops",
1002 "miscellaneous_auto_dealers",
1003 "miscellaneous_business_services",
1004 "miscellaneous_food_stores",
1005 "miscellaneous_general_merchandise",
1006 "miscellaneous_general_services",
1007 "miscellaneous_home_furnishing_specialty_stores",
1008 "miscellaneous_publishing_and_printing",
1009 "miscellaneous_recreation_services",
1010 "miscellaneous_repair_shops",
1011 "miscellaneous_specialty_retail",
1012 "mobile_home_dealers",
1013 "motion_picture_theaters",
1014 "motor_freight_carriers_and_trucking",
1015 "motor_homes_dealers",
1016 "motor_vehicle_supplies_and_new_parts",
1017 "motorcycle_shops_and_dealers",
1018 "motorcycle_shops_dealers",
1019 "music_stores_musical_instruments_pianos_and_sheet_music",
1020 "news_dealers_and_newsstands",
1021 "non_fi_money_orders",
1022 "non_fi_stored_value_card_purchase_load",
1023 "nondurable_goods",
1024 "nurseries_lawn_and_garden_supply_stores",
1025 "nursing_personal_care",
1026 "office_and_commercial_furniture",
1027 "opticians_eyeglasses",
1028 "optometrists_ophthalmologist",
1029 "orthopedic_goods_prosthetic_devices",
1030 "osteopaths",
1031 "package_stores_beer_wine_and_liquor",
1032 "paints_varnishes_and_supplies",
1033 "parking_lots_garages",
1034 "passenger_railways",
1035 "pawn_shops",
1036 "pet_shops_pet_food_and_supplies",
1037 "petroleum_and_petroleum_products",
1038 "photo_developing",
1039 "photographic_photocopy_microfilm_equipment_and_supplies",
1040 "photographic_studios",
1041 "picture_video_production",
1042 "piece_goods_notions_and_other_dry_goods",
1043 "plumbing_heating_equipment_and_supplies",
1044 "political_organizations",
1045 "postal_services_government_only",
1046 "precious_stones_and_metals_watches_and_jewelry",
1047 "professional_services",
1048 "public_warehousing_and_storage",
1049 "quick_copy_repro_and_blueprint",
1050 "railroads",
1051 "real_estate_agents_and_managers_rentals",
1052 "record_stores",
1053 "recreational_vehicle_rentals",
1054 "religious_goods_stores",
1055 "religious_organizations",
1056 "roofing_siding_sheet_metal",
1057 "secretarial_support_services",
1058 "security_brokers_dealers",
1059 "service_stations",
1060 "sewing_needlework_fabric_and_piece_goods_stores",
1061 "shoe_repair_hat_cleaning",
1062 "shoe_stores",
1063 "small_appliance_repair",
1064 "snowmobile_dealers",
1065 "special_trade_services",
1066 "specialty_cleaning",
1067 "sporting_goods_stores",
1068 "sporting_recreation_camps",
1069 "sports_and_riding_apparel_stores",
1070 "sports_clubs_fields",
1071 "stamp_and_coin_stores",
1072 "stationary_office_supplies_printing_and_writing_paper",
1073 "stationery_stores_office_and_school_supply_stores",
1074 "swimming_pools_sales",
1075 "t_ui_travel_germany",
1076 "tailors_alterations",
1077 "tax_payments_government_agencies",
1078 "tax_preparation_services",
1079 "taxicabs_limousines",
1080 "telecommunication_equipment_and_telephone_sales",
1081 "telecommunication_services",
1082 "telegraph_services",
1083 "tent_and_awning_shops",
1084 "testing_laboratories",
1085 "theatrical_ticket_agencies",
1086 "timeshares",
1087 "tire_retreading_and_repair",
1088 "tolls_bridge_fees",
1089 "tourist_attractions_and_exhibits",
1090 "towing_services",
1091 "trailer_parks_campgrounds",
1092 "transportation_services",
1093 "travel_agencies_tour_operators",
1094 "truck_stop_iteration",
1095 "truck_utility_trailer_rentals",
1096 "typesetting_plate_making_and_related_services",
1097 "typewriter_stores",
1098 "u_s_federal_government_agencies_or_departments",
1099 "uniforms_commercial_clothing",
1100 "used_merchandise_and_secondhand_stores",
1101 "utilities",
1102 "variety_stores",
1103 "veterinary_services",
1104 "video_amusement_game_supplies",
1105 "video_game_arcades",
1106 "video_tape_rental_stores",
1107 "vocational_trade_schools",
1108 "watch_jewelry_repair",
1109 "welding_repair",
1110 "wholesale_clubs",
1111 "wig_and_toupee_stores",
1112 "wires_money_orders",
1113 "womens_accessory_and_specialty_shops",
1114 "womens_ready_to_wear_stores",
1115 "wrecking_and_salvage_yards",
1116 ]
1117 ]
1118 ]
1119 """
1120 Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to decline. All other categories will be allowed. Cannot be set with `allowed_categories`.
1121 """
1122 blocked_merchant_countries: Optional[List[str]]
1123 """
1124 Array of strings containing representing countries from which authorizations will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `allowed_merchant_countries`. Provide an empty value to unset this control.
1125 """
1126 spending_limits: Optional[List[SpendingLimit]]
1127 """
1128 Limit spending with amount-based rules that apply across this cardholder's cards.
1129 """
1130 spending_limits_currency: Optional[str]
1131 """
1132 Currency of the amounts within `spending_limits`.
1133 """
1134 _inner_class_types = {"spending_limits": SpendingLimit}
1135
1136 billing: Billing
1137 company: Optional[Company]
1138 """
1139 Additional information about a `company` cardholder.
1140 """
1141 created: int
1142 """
1143 Time at which the object was created. Measured in seconds since the Unix epoch.
1144 """
1145 email: Optional[str]
1146 """
1147 The cardholder's email address.
1148 """
1149 id: str
1150 """
1151 Unique identifier for the object.
1152 """
1153 individual: Optional[Individual]
1154 """
1155 Additional information about an `individual` cardholder.
1156 """
1157 livemode: bool
1158 """
1159 Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
1160 """
1161 metadata: Dict[str, str]
1162 """
1163 Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
1164 """
1165 name: str
1166 """
1167 The cardholder's name. This will be printed on cards issued to them.
1168 """
1169 object: Literal["issuing.cardholder"]
1170 """
1171 String representing the object's type. Objects of the same type share the same value.
1172 """
1173 phone_number: Optional[str]
1174 """
1175 The cardholder's phone number. This is required for all cardholders who will be creating EU cards. See the [3D Secure documentation](https://docs.stripe.com/issuing/3d-secure#when-is-3d-secure-applied) for more details.
1176 """
1177 preferred_locales: Optional[List[Literal["de", "en", "es", "fr", "it"]]]
1178 """
1179 The cardholder's preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`.
1180 This changes the language of the [3D Secure flow](https://docs.stripe.com/issuing/3d-secure) and one-time password messages sent to the cardholder.
1181 """
1182 requirements: Requirements
1183 spending_controls: Optional[SpendingControls]
1184 """
1185 Rules that control spending across this cardholder's cards. Refer to our [documentation](https://docs.stripe.com/issuing/controls/spending-controls) for more details.
1186 """
1187 status: Literal["active", "blocked", "inactive"]
1188 """
1189 Specifies whether to permit authorizations on this cardholder's cards.
1190 """
1191 type: Literal["company", "individual"]
1192 """
1193 One of `individual` or `company`. See [Choose a cardholder type](https://docs.stripe.com/issuing/other/choose-cardholder) for more details.
1194 """
1195
1196 @classmethod
1197 def create(
1198 cls, **params: Unpack["CardholderCreateParams"]
1199 ) -> "Cardholder":
1200 """
1201 Creates a new Issuing Cardholder object that can be issued cards.
1202 """
1203 return cast(
1204 "Cardholder",
1205 cls._static_request(
1206 "post",
1207 cls.class_url(),
1208 params=params,
1209 ),
1210 )
1211
1212 @classmethod
1213 async def create_async(
1214 cls, **params: Unpack["CardholderCreateParams"]
1215 ) -> "Cardholder":
1216 """
1217 Creates a new Issuing Cardholder object that can be issued cards.
1218 """
1219 return cast(
1220 "Cardholder",
1221 await cls._static_request_async(
1222 "post",
1223 cls.class_url(),
1224 params=params,
1225 ),
1226 )
1227
1228 @classmethod
1229 def list(
1230 cls, **params: Unpack["CardholderListParams"]
1231 ) -> ListObject["Cardholder"]:
1232 """
1233 Returns a list of Issuing Cardholder objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
1234 """
1235 result = cls._static_request(
1236 "get",
1237 cls.class_url(),
1238 params=params,
1239 )
1240 if not isinstance(result, ListObject):
1241 raise TypeError(
1242 "Expected list object from API, got %s"
1243 % (type(result).__name__)
1244 )
1245
1246 return result
1247
1248 @classmethod
1249 async def list_async(
1250 cls, **params: Unpack["CardholderListParams"]
1251 ) -> ListObject["Cardholder"]:
1252 """
1253 Returns a list of Issuing Cardholder objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
1254 """
1255 result = await cls._static_request_async(
1256 "get",
1257 cls.class_url(),
1258 params=params,
1259 )
1260 if not isinstance(result, ListObject):
1261 raise TypeError(
1262 "Expected list object from API, got %s"
1263 % (type(result).__name__)
1264 )
1265
1266 return result
1267
1268 @classmethod
1269 def modify(
1270 cls, id: str, **params: Unpack["CardholderModifyParams"]
1271 ) -> "Cardholder":
1272 """
1273 Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1274 """
1275 url = "%s/%s" % (cls.class_url(), sanitize_id(id))
1276 return cast(
1277 "Cardholder",
1278 cls._static_request(
1279 "post",
1280 url,
1281 params=params,
1282 ),
1283 )
1284
1285 @classmethod
1286 async def modify_async(
1287 cls, id: str, **params: Unpack["CardholderModifyParams"]
1288 ) -> "Cardholder":
1289 """
1290 Updates the specified Issuing Cardholder object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
1291 """
1292 url = "%s/%s" % (cls.class_url(), sanitize_id(id))
1293 return cast(
1294 "Cardholder",
1295 await cls._static_request_async(
1296 "post",
1297 url,
1298 params=params,
1299 ),
1300 )
1301
1302 @classmethod
1303 def retrieve(
1304 cls, id: str, **params: Unpack["CardholderRetrieveParams"]
1305 ) -> "Cardholder":
1306 """
1307 Retrieves an Issuing Cardholder object.
1308 """
1309 instance = cls(id, **params)
1310 instance.refresh()
1311 return instance
1312
1313 @classmethod
1314 async def retrieve_async(
1315 cls, id: str, **params: Unpack["CardholderRetrieveParams"]
1316 ) -> "Cardholder":
1317 """
1318 Retrieves an Issuing Cardholder object.
1319 """
1320 instance = cls(id, **params)
1321 await instance.refresh_async()
1322 return instance
1323
1324 _inner_class_types = {
1325 "billing": Billing,
1326 "company": Company,
1327 "individual": Individual,
1328 "requirements": Requirements,
1329 "spending_controls": SpendingControls,
1330 }