1#[derive(Clone, Debug)]
2#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
3#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))]
4pub struct IssuingCardholderAuthorizationControls {
5 pub allowed_categories: Option<Vec<IssuingCardholderAuthorizationControlsAllowedCategories>>,
9 pub allowed_merchant_countries: Option<Vec<String>>,
16 pub blocked_categories: Option<Vec<IssuingCardholderAuthorizationControlsBlockedCategories>>,
20 pub blocked_merchant_countries: Option<Vec<String>>,
26 pub spending_limits: Option<Vec<stripe_shared::IssuingCardholderSpendingLimit>>,
28 pub spending_limits_currency: Option<stripe_types::Currency>,
30}
31#[doc(hidden)]
32pub struct IssuingCardholderAuthorizationControlsBuilder {
33 allowed_categories:
34 Option<Option<Vec<IssuingCardholderAuthorizationControlsAllowedCategories>>>,
35 allowed_merchant_countries: Option<Option<Vec<String>>>,
36 blocked_categories:
37 Option<Option<Vec<IssuingCardholderAuthorizationControlsBlockedCategories>>>,
38 blocked_merchant_countries: Option<Option<Vec<String>>>,
39 spending_limits: Option<Option<Vec<stripe_shared::IssuingCardholderSpendingLimit>>>,
40 spending_limits_currency: Option<Option<stripe_types::Currency>>,
41}
42
43#[allow(
44 unused_variables,
45 irrefutable_let_patterns,
46 clippy::let_unit_value,
47 clippy::match_single_binding,
48 clippy::single_match
49)]
50const _: () = {
51 use miniserde::de::{Map, Visitor};
52 use miniserde::json::Value;
53 use miniserde::{Deserialize, Result, make_place};
54 use stripe_types::miniserde_helpers::FromValueOpt;
55 use stripe_types::{MapBuilder, ObjectDeser};
56
57 make_place!(Place);
58
59 impl Deserialize for IssuingCardholderAuthorizationControls {
60 fn begin(out: &mut Option<Self>) -> &mut dyn Visitor {
61 Place::new(out)
62 }
63 }
64
65 struct Builder<'a> {
66 out: &'a mut Option<IssuingCardholderAuthorizationControls>,
67 builder: IssuingCardholderAuthorizationControlsBuilder,
68 }
69
70 impl Visitor for Place<IssuingCardholderAuthorizationControls> {
71 fn map(&mut self) -> Result<Box<dyn Map + '_>> {
72 Ok(Box::new(Builder {
73 out: &mut self.out,
74 builder: IssuingCardholderAuthorizationControlsBuilder::deser_default(),
75 }))
76 }
77 }
78
79 impl MapBuilder for IssuingCardholderAuthorizationControlsBuilder {
80 type Out = IssuingCardholderAuthorizationControls;
81 fn key(&mut self, k: &str) -> Result<&mut dyn Visitor> {
82 Ok(match k {
83 "allowed_categories" => Deserialize::begin(&mut self.allowed_categories),
84 "allowed_merchant_countries" => {
85 Deserialize::begin(&mut self.allowed_merchant_countries)
86 }
87 "blocked_categories" => Deserialize::begin(&mut self.blocked_categories),
88 "blocked_merchant_countries" => {
89 Deserialize::begin(&mut self.blocked_merchant_countries)
90 }
91 "spending_limits" => Deserialize::begin(&mut self.spending_limits),
92 "spending_limits_currency" => {
93 Deserialize::begin(&mut self.spending_limits_currency)
94 }
95 _ => <dyn Visitor>::ignore(),
96 })
97 }
98
99 fn deser_default() -> Self {
100 Self {
101 allowed_categories: Deserialize::default(),
102 allowed_merchant_countries: Deserialize::default(),
103 blocked_categories: Deserialize::default(),
104 blocked_merchant_countries: Deserialize::default(),
105 spending_limits: Deserialize::default(),
106 spending_limits_currency: Deserialize::default(),
107 }
108 }
109
110 fn take_out(&mut self) -> Option<Self::Out> {
111 let (
112 Some(allowed_categories),
113 Some(allowed_merchant_countries),
114 Some(blocked_categories),
115 Some(blocked_merchant_countries),
116 Some(spending_limits),
117 Some(spending_limits_currency),
118 ) = (
119 self.allowed_categories.take(),
120 self.allowed_merchant_countries.take(),
121 self.blocked_categories.take(),
122 self.blocked_merchant_countries.take(),
123 self.spending_limits.take(),
124 self.spending_limits_currency.take(),
125 )
126 else {
127 return None;
128 };
129 Some(Self::Out {
130 allowed_categories,
131 allowed_merchant_countries,
132 blocked_categories,
133 blocked_merchant_countries,
134 spending_limits,
135 spending_limits_currency,
136 })
137 }
138 }
139
140 impl Map for Builder<'_> {
141 fn key(&mut self, k: &str) -> Result<&mut dyn Visitor> {
142 self.builder.key(k)
143 }
144
145 fn finish(&mut self) -> Result<()> {
146 *self.out = self.builder.take_out();
147 Ok(())
148 }
149 }
150
151 impl ObjectDeser for IssuingCardholderAuthorizationControls {
152 type Builder = IssuingCardholderAuthorizationControlsBuilder;
153 }
154
155 impl FromValueOpt for IssuingCardholderAuthorizationControls {
156 fn from_value(v: Value) -> Option<Self> {
157 let Value::Object(obj) = v else {
158 return None;
159 };
160 let mut b = IssuingCardholderAuthorizationControlsBuilder::deser_default();
161 for (k, v) in obj {
162 match k.as_str() {
163 "allowed_categories" => b.allowed_categories = FromValueOpt::from_value(v),
164 "allowed_merchant_countries" => {
165 b.allowed_merchant_countries = FromValueOpt::from_value(v)
166 }
167 "blocked_categories" => b.blocked_categories = FromValueOpt::from_value(v),
168 "blocked_merchant_countries" => {
169 b.blocked_merchant_countries = FromValueOpt::from_value(v)
170 }
171 "spending_limits" => b.spending_limits = FromValueOpt::from_value(v),
172 "spending_limits_currency" => {
173 b.spending_limits_currency = FromValueOpt::from_value(v)
174 }
175 _ => {}
176 }
177 }
178 b.take_out()
179 }
180 }
181};
182#[derive(Clone, Eq, PartialEq)]
186#[non_exhaustive]
187pub enum IssuingCardholderAuthorizationControlsAllowedCategories {
188 AcRefrigerationRepair,
189 AccountingBookkeepingServices,
190 AdvertisingServices,
191 AgriculturalCooperative,
192 AirlinesAirCarriers,
193 AirportsFlyingFields,
194 AmbulanceServices,
195 AmusementParksCarnivals,
196 AntiqueReproductions,
197 AntiqueShops,
198 Aquariums,
199 ArchitecturalSurveyingServices,
200 ArtDealersAndGalleries,
201 ArtistsSupplyAndCraftShops,
202 AutoAndHomeSupplyStores,
203 AutoBodyRepairShops,
204 AutoPaintShops,
205 AutoServiceShops,
206 AutomatedCashDisburse,
207 AutomatedFuelDispensers,
208 AutomobileAssociations,
209 AutomotivePartsAndAccessoriesStores,
210 AutomotiveTireStores,
211 BailAndBondPayments,
212 Bakeries,
213 BandsOrchestras,
214 BarberAndBeautyShops,
215 BettingCasinoGambling,
216 BicycleShops,
217 BilliardPoolEstablishments,
218 BoatDealers,
219 BoatRentalsAndLeases,
220 BookStores,
221 BooksPeriodicalsAndNewspapers,
222 BowlingAlleys,
223 BusLines,
224 BusinessSecretarialSchools,
225 BuyingShoppingServices,
226 CableSatelliteAndOtherPayTelevisionAndRadio,
227 CameraAndPhotographicSupplyStores,
228 CandyNutAndConfectioneryStores,
229 CarAndTruckDealersNewUsed,
230 CarAndTruckDealersUsedOnly,
231 CarRentalAgencies,
232 CarWashes,
233 CarpentryServices,
234 CarpetUpholsteryCleaning,
235 Caterers,
236 CharitableAndSocialServiceOrganizationsFundraising,
237 ChemicalsAndAlliedProducts,
238 ChildCareServices,
239 ChildrensAndInfantsWearStores,
240 ChiropodistsPodiatrists,
241 Chiropractors,
242 CigarStoresAndStands,
243 CivicSocialFraternalAssociations,
244 CleaningAndMaintenance,
245 ClothingRental,
246 CollegesUniversities,
247 CommercialEquipment,
248 CommercialFootwear,
249 CommercialPhotographyArtAndGraphics,
250 CommuterTransportAndFerries,
251 ComputerNetworkServices,
252 ComputerProgramming,
253 ComputerRepair,
254 ComputerSoftwareStores,
255 ComputersPeripheralsAndSoftware,
256 ConcreteWorkServices,
257 ConstructionMaterials,
258 ConsultingPublicRelations,
259 CorrespondenceSchools,
260 CosmeticStores,
261 CounselingServices,
262 CountryClubs,
263 CourierServices,
264 CourtCosts,
265 CreditReportingAgencies,
266 CruiseLines,
267 DairyProductsStores,
268 DanceHallStudiosSchools,
269 DatingEscortServices,
270 DentistsOrthodontists,
271 DepartmentStores,
272 DetectiveAgencies,
273 DigitalGoodsApplications,
274 DigitalGoodsGames,
275 DigitalGoodsLargeVolume,
276 DigitalGoodsMedia,
277 DirectMarketingCatalogMerchant,
278 DirectMarketingCombinationCatalogAndRetailMerchant,
279 DirectMarketingInboundTelemarketing,
280 DirectMarketingInsuranceServices,
281 DirectMarketingOther,
282 DirectMarketingOutboundTelemarketing,
283 DirectMarketingSubscription,
284 DirectMarketingTravel,
285 DiscountStores,
286 Doctors,
287 DoorToDoorSales,
288 DraperyWindowCoveringAndUpholsteryStores,
289 DrinkingPlaces,
290 DrugStoresAndPharmacies,
291 DrugsDrugProprietariesAndDruggistSundries,
292 DryCleaners,
293 DurableGoods,
294 DutyFreeStores,
295 EatingPlacesRestaurants,
296 EducationalServices,
297 ElectricRazorStores,
298 ElectricVehicleCharging,
299 ElectricalPartsAndEquipment,
300 ElectricalServices,
301 ElectronicsRepairShops,
302 ElectronicsStores,
303 ElementarySecondarySchools,
304 EmergencyServicesGcasVisaUseOnly,
305 EmploymentTempAgencies,
306 EquipmentRental,
307 ExterminatingServices,
308 FamilyClothingStores,
309 FastFoodRestaurants,
310 FinancialInstitutions,
311 FinesGovernmentAdministrativeEntities,
312 FireplaceFireplaceScreensAndAccessoriesStores,
313 FloorCoveringStores,
314 Florists,
315 FloristsSuppliesNurseryStockAndFlowers,
316 FreezerAndLockerMeatProvisioners,
317 FuelDealersNonAutomotive,
318 FuneralServicesCrematories,
319 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances,
320 FurnitureRepairRefinishing,
321 FurriersAndFurShops,
322 GeneralServices,
323 GiftCardNoveltyAndSouvenirShops,
324 GlassPaintAndWallpaperStores,
325 GlasswareCrystalStores,
326 GolfCoursesPublic,
327 GovernmentLicensedHorseDogRacingUsRegionOnly,
328 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly,
329 GovernmentOwnedLotteriesNonUsRegion,
330 GovernmentOwnedLotteriesUsRegionOnly,
331 GovernmentServices,
332 GroceryStoresSupermarkets,
333 HardwareEquipmentAndSupplies,
334 HardwareStores,
335 HealthAndBeautySpas,
336 HearingAidsSalesAndSupplies,
337 HeatingPlumbingAC,
338 HobbyToyAndGameShops,
339 HomeSupplyWarehouseStores,
340 Hospitals,
341 HotelsMotelsAndResorts,
342 HouseholdApplianceStores,
343 IndustrialSupplies,
344 InformationRetrievalServices,
345 InsuranceDefault,
346 InsuranceUnderwritingPremiums,
347 IntraCompanyPurchases,
348 JewelryStoresWatchesClocksAndSilverwareStores,
349 LandscapingServices,
350 Laundries,
351 LaundryCleaningServices,
352 LegalServicesAttorneys,
353 LuggageAndLeatherGoodsStores,
354 LumberBuildingMaterialsStores,
355 ManualCashDisburse,
356 MarinasServiceAndSupplies,
357 Marketplaces,
358 MasonryStoneworkAndPlaster,
359 MassageParlors,
360 MedicalAndDentalLabs,
361 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies,
362 MedicalServices,
363 MembershipOrganizations,
364 MensAndBoysClothingAndAccessoriesStores,
365 MensWomensClothingStores,
366 MetalServiceCenters,
367 Miscellaneous,
368 MiscellaneousApparelAndAccessoryShops,
369 MiscellaneousAutoDealers,
370 MiscellaneousBusinessServices,
371 MiscellaneousFoodStores,
372 MiscellaneousGeneralMerchandise,
373 MiscellaneousGeneralServices,
374 MiscellaneousHomeFurnishingSpecialtyStores,
375 MiscellaneousPublishingAndPrinting,
376 MiscellaneousRecreationServices,
377 MiscellaneousRepairShops,
378 MiscellaneousSpecialtyRetail,
379 MobileHomeDealers,
380 MotionPictureTheaters,
381 MotorFreightCarriersAndTrucking,
382 MotorHomesDealers,
383 MotorVehicleSuppliesAndNewParts,
384 MotorcycleShopsAndDealers,
385 MotorcycleShopsDealers,
386 MusicStoresMusicalInstrumentsPianosAndSheetMusic,
387 NewsDealersAndNewsstands,
388 NonFiMoneyOrders,
389 NonFiStoredValueCardPurchaseLoad,
390 NondurableGoods,
391 NurseriesLawnAndGardenSupplyStores,
392 NursingPersonalCare,
393 OfficeAndCommercialFurniture,
394 OpticiansEyeglasses,
395 OptometristsOphthalmologist,
396 OrthopedicGoodsProstheticDevices,
397 Osteopaths,
398 PackageStoresBeerWineAndLiquor,
399 PaintsVarnishesAndSupplies,
400 ParkingLotsGarages,
401 PassengerRailways,
402 PawnShops,
403 PetShopsPetFoodAndSupplies,
404 PetroleumAndPetroleumProducts,
405 PhotoDeveloping,
406 PhotographicPhotocopyMicrofilmEquipmentAndSupplies,
407 PhotographicStudios,
408 PictureVideoProduction,
409 PieceGoodsNotionsAndOtherDryGoods,
410 PlumbingHeatingEquipmentAndSupplies,
411 PoliticalOrganizations,
412 PostalServicesGovernmentOnly,
413 PreciousStonesAndMetalsWatchesAndJewelry,
414 ProfessionalServices,
415 PublicWarehousingAndStorage,
416 QuickCopyReproAndBlueprint,
417 Railroads,
418 RealEstateAgentsAndManagersRentals,
419 RecordStores,
420 RecreationalVehicleRentals,
421 ReligiousGoodsStores,
422 ReligiousOrganizations,
423 RoofingSidingSheetMetal,
424 SecretarialSupportServices,
425 SecurityBrokersDealers,
426 ServiceStations,
427 SewingNeedleworkFabricAndPieceGoodsStores,
428 ShoeRepairHatCleaning,
429 ShoeStores,
430 SmallApplianceRepair,
431 SnowmobileDealers,
432 SpecialTradeServices,
433 SpecialtyCleaning,
434 SportingGoodsStores,
435 SportingRecreationCamps,
436 SportsAndRidingApparelStores,
437 SportsClubsFields,
438 StampAndCoinStores,
439 StationaryOfficeSuppliesPrintingAndWritingPaper,
440 StationeryStoresOfficeAndSchoolSupplyStores,
441 SwimmingPoolsSales,
442 TUiTravelGermany,
443 TailorsAlterations,
444 TaxPaymentsGovernmentAgencies,
445 TaxPreparationServices,
446 TaxicabsLimousines,
447 TelecommunicationEquipmentAndTelephoneSales,
448 TelecommunicationServices,
449 TelegraphServices,
450 TentAndAwningShops,
451 TestingLaboratories,
452 TheatricalTicketAgencies,
453 Timeshares,
454 TireRetreadingAndRepair,
455 TollsBridgeFees,
456 TouristAttractionsAndExhibits,
457 TowingServices,
458 TrailerParksCampgrounds,
459 TransportationServices,
460 TravelAgenciesTourOperators,
461 TruckStopIteration,
462 TruckUtilityTrailerRentals,
463 TypesettingPlateMakingAndRelatedServices,
464 TypewriterStores,
465 USFederalGovernmentAgenciesOrDepartments,
466 UniformsCommercialClothing,
467 UsedMerchandiseAndSecondhandStores,
468 Utilities,
469 VarietyStores,
470 VeterinaryServices,
471 VideoAmusementGameSupplies,
472 VideoGameArcades,
473 VideoTapeRentalStores,
474 VocationalTradeSchools,
475 WatchJewelryRepair,
476 WeldingRepair,
477 WholesaleClubs,
478 WigAndToupeeStores,
479 WiresMoneyOrders,
480 WomensAccessoryAndSpecialtyShops,
481 WomensReadyToWearStores,
482 WreckingAndSalvageYards,
483 Unknown(String),
485}
486impl IssuingCardholderAuthorizationControlsAllowedCategories {
487 pub fn as_str(&self) -> &str {
488 use IssuingCardholderAuthorizationControlsAllowedCategories::*;
489 match self {
490 AcRefrigerationRepair => "ac_refrigeration_repair",
491 AccountingBookkeepingServices => "accounting_bookkeeping_services",
492 AdvertisingServices => "advertising_services",
493 AgriculturalCooperative => "agricultural_cooperative",
494 AirlinesAirCarriers => "airlines_air_carriers",
495 AirportsFlyingFields => "airports_flying_fields",
496 AmbulanceServices => "ambulance_services",
497 AmusementParksCarnivals => "amusement_parks_carnivals",
498 AntiqueReproductions => "antique_reproductions",
499 AntiqueShops => "antique_shops",
500 Aquariums => "aquariums",
501 ArchitecturalSurveyingServices => "architectural_surveying_services",
502 ArtDealersAndGalleries => "art_dealers_and_galleries",
503 ArtistsSupplyAndCraftShops => "artists_supply_and_craft_shops",
504 AutoAndHomeSupplyStores => "auto_and_home_supply_stores",
505 AutoBodyRepairShops => "auto_body_repair_shops",
506 AutoPaintShops => "auto_paint_shops",
507 AutoServiceShops => "auto_service_shops",
508 AutomatedCashDisburse => "automated_cash_disburse",
509 AutomatedFuelDispensers => "automated_fuel_dispensers",
510 AutomobileAssociations => "automobile_associations",
511 AutomotivePartsAndAccessoriesStores => "automotive_parts_and_accessories_stores",
512 AutomotiveTireStores => "automotive_tire_stores",
513 BailAndBondPayments => "bail_and_bond_payments",
514 Bakeries => "bakeries",
515 BandsOrchestras => "bands_orchestras",
516 BarberAndBeautyShops => "barber_and_beauty_shops",
517 BettingCasinoGambling => "betting_casino_gambling",
518 BicycleShops => "bicycle_shops",
519 BilliardPoolEstablishments => "billiard_pool_establishments",
520 BoatDealers => "boat_dealers",
521 BoatRentalsAndLeases => "boat_rentals_and_leases",
522 BookStores => "book_stores",
523 BooksPeriodicalsAndNewspapers => "books_periodicals_and_newspapers",
524 BowlingAlleys => "bowling_alleys",
525 BusLines => "bus_lines",
526 BusinessSecretarialSchools => "business_secretarial_schools",
527 BuyingShoppingServices => "buying_shopping_services",
528 CableSatelliteAndOtherPayTelevisionAndRadio => {
529 "cable_satellite_and_other_pay_television_and_radio"
530 }
531 CameraAndPhotographicSupplyStores => "camera_and_photographic_supply_stores",
532 CandyNutAndConfectioneryStores => "candy_nut_and_confectionery_stores",
533 CarAndTruckDealersNewUsed => "car_and_truck_dealers_new_used",
534 CarAndTruckDealersUsedOnly => "car_and_truck_dealers_used_only",
535 CarRentalAgencies => "car_rental_agencies",
536 CarWashes => "car_washes",
537 CarpentryServices => "carpentry_services",
538 CarpetUpholsteryCleaning => "carpet_upholstery_cleaning",
539 Caterers => "caterers",
540 CharitableAndSocialServiceOrganizationsFundraising => {
541 "charitable_and_social_service_organizations_fundraising"
542 }
543 ChemicalsAndAlliedProducts => "chemicals_and_allied_products",
544 ChildCareServices => "child_care_services",
545 ChildrensAndInfantsWearStores => "childrens_and_infants_wear_stores",
546 ChiropodistsPodiatrists => "chiropodists_podiatrists",
547 Chiropractors => "chiropractors",
548 CigarStoresAndStands => "cigar_stores_and_stands",
549 CivicSocialFraternalAssociations => "civic_social_fraternal_associations",
550 CleaningAndMaintenance => "cleaning_and_maintenance",
551 ClothingRental => "clothing_rental",
552 CollegesUniversities => "colleges_universities",
553 CommercialEquipment => "commercial_equipment",
554 CommercialFootwear => "commercial_footwear",
555 CommercialPhotographyArtAndGraphics => "commercial_photography_art_and_graphics",
556 CommuterTransportAndFerries => "commuter_transport_and_ferries",
557 ComputerNetworkServices => "computer_network_services",
558 ComputerProgramming => "computer_programming",
559 ComputerRepair => "computer_repair",
560 ComputerSoftwareStores => "computer_software_stores",
561 ComputersPeripheralsAndSoftware => "computers_peripherals_and_software",
562 ConcreteWorkServices => "concrete_work_services",
563 ConstructionMaterials => "construction_materials",
564 ConsultingPublicRelations => "consulting_public_relations",
565 CorrespondenceSchools => "correspondence_schools",
566 CosmeticStores => "cosmetic_stores",
567 CounselingServices => "counseling_services",
568 CountryClubs => "country_clubs",
569 CourierServices => "courier_services",
570 CourtCosts => "court_costs",
571 CreditReportingAgencies => "credit_reporting_agencies",
572 CruiseLines => "cruise_lines",
573 DairyProductsStores => "dairy_products_stores",
574 DanceHallStudiosSchools => "dance_hall_studios_schools",
575 DatingEscortServices => "dating_escort_services",
576 DentistsOrthodontists => "dentists_orthodontists",
577 DepartmentStores => "department_stores",
578 DetectiveAgencies => "detective_agencies",
579 DigitalGoodsApplications => "digital_goods_applications",
580 DigitalGoodsGames => "digital_goods_games",
581 DigitalGoodsLargeVolume => "digital_goods_large_volume",
582 DigitalGoodsMedia => "digital_goods_media",
583 DirectMarketingCatalogMerchant => "direct_marketing_catalog_merchant",
584 DirectMarketingCombinationCatalogAndRetailMerchant => {
585 "direct_marketing_combination_catalog_and_retail_merchant"
586 }
587 DirectMarketingInboundTelemarketing => "direct_marketing_inbound_telemarketing",
588 DirectMarketingInsuranceServices => "direct_marketing_insurance_services",
589 DirectMarketingOther => "direct_marketing_other",
590 DirectMarketingOutboundTelemarketing => "direct_marketing_outbound_telemarketing",
591 DirectMarketingSubscription => "direct_marketing_subscription",
592 DirectMarketingTravel => "direct_marketing_travel",
593 DiscountStores => "discount_stores",
594 Doctors => "doctors",
595 DoorToDoorSales => "door_to_door_sales",
596 DraperyWindowCoveringAndUpholsteryStores => {
597 "drapery_window_covering_and_upholstery_stores"
598 }
599 DrinkingPlaces => "drinking_places",
600 DrugStoresAndPharmacies => "drug_stores_and_pharmacies",
601 DrugsDrugProprietariesAndDruggistSundries => {
602 "drugs_drug_proprietaries_and_druggist_sundries"
603 }
604 DryCleaners => "dry_cleaners",
605 DurableGoods => "durable_goods",
606 DutyFreeStores => "duty_free_stores",
607 EatingPlacesRestaurants => "eating_places_restaurants",
608 EducationalServices => "educational_services",
609 ElectricRazorStores => "electric_razor_stores",
610 ElectricVehicleCharging => "electric_vehicle_charging",
611 ElectricalPartsAndEquipment => "electrical_parts_and_equipment",
612 ElectricalServices => "electrical_services",
613 ElectronicsRepairShops => "electronics_repair_shops",
614 ElectronicsStores => "electronics_stores",
615 ElementarySecondarySchools => "elementary_secondary_schools",
616 EmergencyServicesGcasVisaUseOnly => "emergency_services_gcas_visa_use_only",
617 EmploymentTempAgencies => "employment_temp_agencies",
618 EquipmentRental => "equipment_rental",
619 ExterminatingServices => "exterminating_services",
620 FamilyClothingStores => "family_clothing_stores",
621 FastFoodRestaurants => "fast_food_restaurants",
622 FinancialInstitutions => "financial_institutions",
623 FinesGovernmentAdministrativeEntities => "fines_government_administrative_entities",
624 FireplaceFireplaceScreensAndAccessoriesStores => {
625 "fireplace_fireplace_screens_and_accessories_stores"
626 }
627 FloorCoveringStores => "floor_covering_stores",
628 Florists => "florists",
629 FloristsSuppliesNurseryStockAndFlowers => "florists_supplies_nursery_stock_and_flowers",
630 FreezerAndLockerMeatProvisioners => "freezer_and_locker_meat_provisioners",
631 FuelDealersNonAutomotive => "fuel_dealers_non_automotive",
632 FuneralServicesCrematories => "funeral_services_crematories",
633 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances => {
634 "furniture_home_furnishings_and_equipment_stores_except_appliances"
635 }
636 FurnitureRepairRefinishing => "furniture_repair_refinishing",
637 FurriersAndFurShops => "furriers_and_fur_shops",
638 GeneralServices => "general_services",
639 GiftCardNoveltyAndSouvenirShops => "gift_card_novelty_and_souvenir_shops",
640 GlassPaintAndWallpaperStores => "glass_paint_and_wallpaper_stores",
641 GlasswareCrystalStores => "glassware_crystal_stores",
642 GolfCoursesPublic => "golf_courses_public",
643 GovernmentLicensedHorseDogRacingUsRegionOnly => {
644 "government_licensed_horse_dog_racing_us_region_only"
645 }
646 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly => {
647 "government_licensed_online_casions_online_gambling_us_region_only"
648 }
649 GovernmentOwnedLotteriesNonUsRegion => "government_owned_lotteries_non_us_region",
650 GovernmentOwnedLotteriesUsRegionOnly => "government_owned_lotteries_us_region_only",
651 GovernmentServices => "government_services",
652 GroceryStoresSupermarkets => "grocery_stores_supermarkets",
653 HardwareEquipmentAndSupplies => "hardware_equipment_and_supplies",
654 HardwareStores => "hardware_stores",
655 HealthAndBeautySpas => "health_and_beauty_spas",
656 HearingAidsSalesAndSupplies => "hearing_aids_sales_and_supplies",
657 HeatingPlumbingAC => "heating_plumbing_a_c",
658 HobbyToyAndGameShops => "hobby_toy_and_game_shops",
659 HomeSupplyWarehouseStores => "home_supply_warehouse_stores",
660 Hospitals => "hospitals",
661 HotelsMotelsAndResorts => "hotels_motels_and_resorts",
662 HouseholdApplianceStores => "household_appliance_stores",
663 IndustrialSupplies => "industrial_supplies",
664 InformationRetrievalServices => "information_retrieval_services",
665 InsuranceDefault => "insurance_default",
666 InsuranceUnderwritingPremiums => "insurance_underwriting_premiums",
667 IntraCompanyPurchases => "intra_company_purchases",
668 JewelryStoresWatchesClocksAndSilverwareStores => {
669 "jewelry_stores_watches_clocks_and_silverware_stores"
670 }
671 LandscapingServices => "landscaping_services",
672 Laundries => "laundries",
673 LaundryCleaningServices => "laundry_cleaning_services",
674 LegalServicesAttorneys => "legal_services_attorneys",
675 LuggageAndLeatherGoodsStores => "luggage_and_leather_goods_stores",
676 LumberBuildingMaterialsStores => "lumber_building_materials_stores",
677 ManualCashDisburse => "manual_cash_disburse",
678 MarinasServiceAndSupplies => "marinas_service_and_supplies",
679 Marketplaces => "marketplaces",
680 MasonryStoneworkAndPlaster => "masonry_stonework_and_plaster",
681 MassageParlors => "massage_parlors",
682 MedicalAndDentalLabs => "medical_and_dental_labs",
683 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies => {
684 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"
685 }
686 MedicalServices => "medical_services",
687 MembershipOrganizations => "membership_organizations",
688 MensAndBoysClothingAndAccessoriesStores => {
689 "mens_and_boys_clothing_and_accessories_stores"
690 }
691 MensWomensClothingStores => "mens_womens_clothing_stores",
692 MetalServiceCenters => "metal_service_centers",
693 Miscellaneous => "miscellaneous",
694 MiscellaneousApparelAndAccessoryShops => "miscellaneous_apparel_and_accessory_shops",
695 MiscellaneousAutoDealers => "miscellaneous_auto_dealers",
696 MiscellaneousBusinessServices => "miscellaneous_business_services",
697 MiscellaneousFoodStores => "miscellaneous_food_stores",
698 MiscellaneousGeneralMerchandise => "miscellaneous_general_merchandise",
699 MiscellaneousGeneralServices => "miscellaneous_general_services",
700 MiscellaneousHomeFurnishingSpecialtyStores => {
701 "miscellaneous_home_furnishing_specialty_stores"
702 }
703 MiscellaneousPublishingAndPrinting => "miscellaneous_publishing_and_printing",
704 MiscellaneousRecreationServices => "miscellaneous_recreation_services",
705 MiscellaneousRepairShops => "miscellaneous_repair_shops",
706 MiscellaneousSpecialtyRetail => "miscellaneous_specialty_retail",
707 MobileHomeDealers => "mobile_home_dealers",
708 MotionPictureTheaters => "motion_picture_theaters",
709 MotorFreightCarriersAndTrucking => "motor_freight_carriers_and_trucking",
710 MotorHomesDealers => "motor_homes_dealers",
711 MotorVehicleSuppliesAndNewParts => "motor_vehicle_supplies_and_new_parts",
712 MotorcycleShopsAndDealers => "motorcycle_shops_and_dealers",
713 MotorcycleShopsDealers => "motorcycle_shops_dealers",
714 MusicStoresMusicalInstrumentsPianosAndSheetMusic => {
715 "music_stores_musical_instruments_pianos_and_sheet_music"
716 }
717 NewsDealersAndNewsstands => "news_dealers_and_newsstands",
718 NonFiMoneyOrders => "non_fi_money_orders",
719 NonFiStoredValueCardPurchaseLoad => "non_fi_stored_value_card_purchase_load",
720 NondurableGoods => "nondurable_goods",
721 NurseriesLawnAndGardenSupplyStores => "nurseries_lawn_and_garden_supply_stores",
722 NursingPersonalCare => "nursing_personal_care",
723 OfficeAndCommercialFurniture => "office_and_commercial_furniture",
724 OpticiansEyeglasses => "opticians_eyeglasses",
725 OptometristsOphthalmologist => "optometrists_ophthalmologist",
726 OrthopedicGoodsProstheticDevices => "orthopedic_goods_prosthetic_devices",
727 Osteopaths => "osteopaths",
728 PackageStoresBeerWineAndLiquor => "package_stores_beer_wine_and_liquor",
729 PaintsVarnishesAndSupplies => "paints_varnishes_and_supplies",
730 ParkingLotsGarages => "parking_lots_garages",
731 PassengerRailways => "passenger_railways",
732 PawnShops => "pawn_shops",
733 PetShopsPetFoodAndSupplies => "pet_shops_pet_food_and_supplies",
734 PetroleumAndPetroleumProducts => "petroleum_and_petroleum_products",
735 PhotoDeveloping => "photo_developing",
736 PhotographicPhotocopyMicrofilmEquipmentAndSupplies => {
737 "photographic_photocopy_microfilm_equipment_and_supplies"
738 }
739 PhotographicStudios => "photographic_studios",
740 PictureVideoProduction => "picture_video_production",
741 PieceGoodsNotionsAndOtherDryGoods => "piece_goods_notions_and_other_dry_goods",
742 PlumbingHeatingEquipmentAndSupplies => "plumbing_heating_equipment_and_supplies",
743 PoliticalOrganizations => "political_organizations",
744 PostalServicesGovernmentOnly => "postal_services_government_only",
745 PreciousStonesAndMetalsWatchesAndJewelry => {
746 "precious_stones_and_metals_watches_and_jewelry"
747 }
748 ProfessionalServices => "professional_services",
749 PublicWarehousingAndStorage => "public_warehousing_and_storage",
750 QuickCopyReproAndBlueprint => "quick_copy_repro_and_blueprint",
751 Railroads => "railroads",
752 RealEstateAgentsAndManagersRentals => "real_estate_agents_and_managers_rentals",
753 RecordStores => "record_stores",
754 RecreationalVehicleRentals => "recreational_vehicle_rentals",
755 ReligiousGoodsStores => "religious_goods_stores",
756 ReligiousOrganizations => "religious_organizations",
757 RoofingSidingSheetMetal => "roofing_siding_sheet_metal",
758 SecretarialSupportServices => "secretarial_support_services",
759 SecurityBrokersDealers => "security_brokers_dealers",
760 ServiceStations => "service_stations",
761 SewingNeedleworkFabricAndPieceGoodsStores => {
762 "sewing_needlework_fabric_and_piece_goods_stores"
763 }
764 ShoeRepairHatCleaning => "shoe_repair_hat_cleaning",
765 ShoeStores => "shoe_stores",
766 SmallApplianceRepair => "small_appliance_repair",
767 SnowmobileDealers => "snowmobile_dealers",
768 SpecialTradeServices => "special_trade_services",
769 SpecialtyCleaning => "specialty_cleaning",
770 SportingGoodsStores => "sporting_goods_stores",
771 SportingRecreationCamps => "sporting_recreation_camps",
772 SportsAndRidingApparelStores => "sports_and_riding_apparel_stores",
773 SportsClubsFields => "sports_clubs_fields",
774 StampAndCoinStores => "stamp_and_coin_stores",
775 StationaryOfficeSuppliesPrintingAndWritingPaper => {
776 "stationary_office_supplies_printing_and_writing_paper"
777 }
778 StationeryStoresOfficeAndSchoolSupplyStores => {
779 "stationery_stores_office_and_school_supply_stores"
780 }
781 SwimmingPoolsSales => "swimming_pools_sales",
782 TUiTravelGermany => "t_ui_travel_germany",
783 TailorsAlterations => "tailors_alterations",
784 TaxPaymentsGovernmentAgencies => "tax_payments_government_agencies",
785 TaxPreparationServices => "tax_preparation_services",
786 TaxicabsLimousines => "taxicabs_limousines",
787 TelecommunicationEquipmentAndTelephoneSales => {
788 "telecommunication_equipment_and_telephone_sales"
789 }
790 TelecommunicationServices => "telecommunication_services",
791 TelegraphServices => "telegraph_services",
792 TentAndAwningShops => "tent_and_awning_shops",
793 TestingLaboratories => "testing_laboratories",
794 TheatricalTicketAgencies => "theatrical_ticket_agencies",
795 Timeshares => "timeshares",
796 TireRetreadingAndRepair => "tire_retreading_and_repair",
797 TollsBridgeFees => "tolls_bridge_fees",
798 TouristAttractionsAndExhibits => "tourist_attractions_and_exhibits",
799 TowingServices => "towing_services",
800 TrailerParksCampgrounds => "trailer_parks_campgrounds",
801 TransportationServices => "transportation_services",
802 TravelAgenciesTourOperators => "travel_agencies_tour_operators",
803 TruckStopIteration => "truck_stop_iteration",
804 TruckUtilityTrailerRentals => "truck_utility_trailer_rentals",
805 TypesettingPlateMakingAndRelatedServices => {
806 "typesetting_plate_making_and_related_services"
807 }
808 TypewriterStores => "typewriter_stores",
809 USFederalGovernmentAgenciesOrDepartments => {
810 "u_s_federal_government_agencies_or_departments"
811 }
812 UniformsCommercialClothing => "uniforms_commercial_clothing",
813 UsedMerchandiseAndSecondhandStores => "used_merchandise_and_secondhand_stores",
814 Utilities => "utilities",
815 VarietyStores => "variety_stores",
816 VeterinaryServices => "veterinary_services",
817 VideoAmusementGameSupplies => "video_amusement_game_supplies",
818 VideoGameArcades => "video_game_arcades",
819 VideoTapeRentalStores => "video_tape_rental_stores",
820 VocationalTradeSchools => "vocational_trade_schools",
821 WatchJewelryRepair => "watch_jewelry_repair",
822 WeldingRepair => "welding_repair",
823 WholesaleClubs => "wholesale_clubs",
824 WigAndToupeeStores => "wig_and_toupee_stores",
825 WiresMoneyOrders => "wires_money_orders",
826 WomensAccessoryAndSpecialtyShops => "womens_accessory_and_specialty_shops",
827 WomensReadyToWearStores => "womens_ready_to_wear_stores",
828 WreckingAndSalvageYards => "wrecking_and_salvage_yards",
829 Unknown(v) => v,
830 }
831 }
832}
833
834impl std::str::FromStr for IssuingCardholderAuthorizationControlsAllowedCategories {
835 type Err = std::convert::Infallible;
836 fn from_str(s: &str) -> Result<Self, Self::Err> {
837 use IssuingCardholderAuthorizationControlsAllowedCategories::*;
838 match s {
839 "ac_refrigeration_repair" => Ok(AcRefrigerationRepair),
840 "accounting_bookkeeping_services" => Ok(AccountingBookkeepingServices),
841 "advertising_services" => Ok(AdvertisingServices),
842 "agricultural_cooperative" => Ok(AgriculturalCooperative),
843 "airlines_air_carriers" => Ok(AirlinesAirCarriers),
844 "airports_flying_fields" => Ok(AirportsFlyingFields),
845 "ambulance_services" => Ok(AmbulanceServices),
846 "amusement_parks_carnivals" => Ok(AmusementParksCarnivals),
847 "antique_reproductions" => Ok(AntiqueReproductions),
848 "antique_shops" => Ok(AntiqueShops),
849 "aquariums" => Ok(Aquariums),
850 "architectural_surveying_services" => Ok(ArchitecturalSurveyingServices),
851 "art_dealers_and_galleries" => Ok(ArtDealersAndGalleries),
852 "artists_supply_and_craft_shops" => Ok(ArtistsSupplyAndCraftShops),
853 "auto_and_home_supply_stores" => Ok(AutoAndHomeSupplyStores),
854 "auto_body_repair_shops" => Ok(AutoBodyRepairShops),
855 "auto_paint_shops" => Ok(AutoPaintShops),
856 "auto_service_shops" => Ok(AutoServiceShops),
857 "automated_cash_disburse" => Ok(AutomatedCashDisburse),
858 "automated_fuel_dispensers" => Ok(AutomatedFuelDispensers),
859 "automobile_associations" => Ok(AutomobileAssociations),
860 "automotive_parts_and_accessories_stores" => Ok(AutomotivePartsAndAccessoriesStores),
861 "automotive_tire_stores" => Ok(AutomotiveTireStores),
862 "bail_and_bond_payments" => Ok(BailAndBondPayments),
863 "bakeries" => Ok(Bakeries),
864 "bands_orchestras" => Ok(BandsOrchestras),
865 "barber_and_beauty_shops" => Ok(BarberAndBeautyShops),
866 "betting_casino_gambling" => Ok(BettingCasinoGambling),
867 "bicycle_shops" => Ok(BicycleShops),
868 "billiard_pool_establishments" => Ok(BilliardPoolEstablishments),
869 "boat_dealers" => Ok(BoatDealers),
870 "boat_rentals_and_leases" => Ok(BoatRentalsAndLeases),
871 "book_stores" => Ok(BookStores),
872 "books_periodicals_and_newspapers" => Ok(BooksPeriodicalsAndNewspapers),
873 "bowling_alleys" => Ok(BowlingAlleys),
874 "bus_lines" => Ok(BusLines),
875 "business_secretarial_schools" => Ok(BusinessSecretarialSchools),
876 "buying_shopping_services" => Ok(BuyingShoppingServices),
877 "cable_satellite_and_other_pay_television_and_radio" => {
878 Ok(CableSatelliteAndOtherPayTelevisionAndRadio)
879 }
880 "camera_and_photographic_supply_stores" => Ok(CameraAndPhotographicSupplyStores),
881 "candy_nut_and_confectionery_stores" => Ok(CandyNutAndConfectioneryStores),
882 "car_and_truck_dealers_new_used" => Ok(CarAndTruckDealersNewUsed),
883 "car_and_truck_dealers_used_only" => Ok(CarAndTruckDealersUsedOnly),
884 "car_rental_agencies" => Ok(CarRentalAgencies),
885 "car_washes" => Ok(CarWashes),
886 "carpentry_services" => Ok(CarpentryServices),
887 "carpet_upholstery_cleaning" => Ok(CarpetUpholsteryCleaning),
888 "caterers" => Ok(Caterers),
889 "charitable_and_social_service_organizations_fundraising" => {
890 Ok(CharitableAndSocialServiceOrganizationsFundraising)
891 }
892 "chemicals_and_allied_products" => Ok(ChemicalsAndAlliedProducts),
893 "child_care_services" => Ok(ChildCareServices),
894 "childrens_and_infants_wear_stores" => Ok(ChildrensAndInfantsWearStores),
895 "chiropodists_podiatrists" => Ok(ChiropodistsPodiatrists),
896 "chiropractors" => Ok(Chiropractors),
897 "cigar_stores_and_stands" => Ok(CigarStoresAndStands),
898 "civic_social_fraternal_associations" => Ok(CivicSocialFraternalAssociations),
899 "cleaning_and_maintenance" => Ok(CleaningAndMaintenance),
900 "clothing_rental" => Ok(ClothingRental),
901 "colleges_universities" => Ok(CollegesUniversities),
902 "commercial_equipment" => Ok(CommercialEquipment),
903 "commercial_footwear" => Ok(CommercialFootwear),
904 "commercial_photography_art_and_graphics" => Ok(CommercialPhotographyArtAndGraphics),
905 "commuter_transport_and_ferries" => Ok(CommuterTransportAndFerries),
906 "computer_network_services" => Ok(ComputerNetworkServices),
907 "computer_programming" => Ok(ComputerProgramming),
908 "computer_repair" => Ok(ComputerRepair),
909 "computer_software_stores" => Ok(ComputerSoftwareStores),
910 "computers_peripherals_and_software" => Ok(ComputersPeripheralsAndSoftware),
911 "concrete_work_services" => Ok(ConcreteWorkServices),
912 "construction_materials" => Ok(ConstructionMaterials),
913 "consulting_public_relations" => Ok(ConsultingPublicRelations),
914 "correspondence_schools" => Ok(CorrespondenceSchools),
915 "cosmetic_stores" => Ok(CosmeticStores),
916 "counseling_services" => Ok(CounselingServices),
917 "country_clubs" => Ok(CountryClubs),
918 "courier_services" => Ok(CourierServices),
919 "court_costs" => Ok(CourtCosts),
920 "credit_reporting_agencies" => Ok(CreditReportingAgencies),
921 "cruise_lines" => Ok(CruiseLines),
922 "dairy_products_stores" => Ok(DairyProductsStores),
923 "dance_hall_studios_schools" => Ok(DanceHallStudiosSchools),
924 "dating_escort_services" => Ok(DatingEscortServices),
925 "dentists_orthodontists" => Ok(DentistsOrthodontists),
926 "department_stores" => Ok(DepartmentStores),
927 "detective_agencies" => Ok(DetectiveAgencies),
928 "digital_goods_applications" => Ok(DigitalGoodsApplications),
929 "digital_goods_games" => Ok(DigitalGoodsGames),
930 "digital_goods_large_volume" => Ok(DigitalGoodsLargeVolume),
931 "digital_goods_media" => Ok(DigitalGoodsMedia),
932 "direct_marketing_catalog_merchant" => Ok(DirectMarketingCatalogMerchant),
933 "direct_marketing_combination_catalog_and_retail_merchant" => {
934 Ok(DirectMarketingCombinationCatalogAndRetailMerchant)
935 }
936 "direct_marketing_inbound_telemarketing" => Ok(DirectMarketingInboundTelemarketing),
937 "direct_marketing_insurance_services" => Ok(DirectMarketingInsuranceServices),
938 "direct_marketing_other" => Ok(DirectMarketingOther),
939 "direct_marketing_outbound_telemarketing" => Ok(DirectMarketingOutboundTelemarketing),
940 "direct_marketing_subscription" => Ok(DirectMarketingSubscription),
941 "direct_marketing_travel" => Ok(DirectMarketingTravel),
942 "discount_stores" => Ok(DiscountStores),
943 "doctors" => Ok(Doctors),
944 "door_to_door_sales" => Ok(DoorToDoorSales),
945 "drapery_window_covering_and_upholstery_stores" => {
946 Ok(DraperyWindowCoveringAndUpholsteryStores)
947 }
948 "drinking_places" => Ok(DrinkingPlaces),
949 "drug_stores_and_pharmacies" => Ok(DrugStoresAndPharmacies),
950 "drugs_drug_proprietaries_and_druggist_sundries" => {
951 Ok(DrugsDrugProprietariesAndDruggistSundries)
952 }
953 "dry_cleaners" => Ok(DryCleaners),
954 "durable_goods" => Ok(DurableGoods),
955 "duty_free_stores" => Ok(DutyFreeStores),
956 "eating_places_restaurants" => Ok(EatingPlacesRestaurants),
957 "educational_services" => Ok(EducationalServices),
958 "electric_razor_stores" => Ok(ElectricRazorStores),
959 "electric_vehicle_charging" => Ok(ElectricVehicleCharging),
960 "electrical_parts_and_equipment" => Ok(ElectricalPartsAndEquipment),
961 "electrical_services" => Ok(ElectricalServices),
962 "electronics_repair_shops" => Ok(ElectronicsRepairShops),
963 "electronics_stores" => Ok(ElectronicsStores),
964 "elementary_secondary_schools" => Ok(ElementarySecondarySchools),
965 "emergency_services_gcas_visa_use_only" => Ok(EmergencyServicesGcasVisaUseOnly),
966 "employment_temp_agencies" => Ok(EmploymentTempAgencies),
967 "equipment_rental" => Ok(EquipmentRental),
968 "exterminating_services" => Ok(ExterminatingServices),
969 "family_clothing_stores" => Ok(FamilyClothingStores),
970 "fast_food_restaurants" => Ok(FastFoodRestaurants),
971 "financial_institutions" => Ok(FinancialInstitutions),
972 "fines_government_administrative_entities" => Ok(FinesGovernmentAdministrativeEntities),
973 "fireplace_fireplace_screens_and_accessories_stores" => {
974 Ok(FireplaceFireplaceScreensAndAccessoriesStores)
975 }
976 "floor_covering_stores" => Ok(FloorCoveringStores),
977 "florists" => Ok(Florists),
978 "florists_supplies_nursery_stock_and_flowers" => {
979 Ok(FloristsSuppliesNurseryStockAndFlowers)
980 }
981 "freezer_and_locker_meat_provisioners" => Ok(FreezerAndLockerMeatProvisioners),
982 "fuel_dealers_non_automotive" => Ok(FuelDealersNonAutomotive),
983 "funeral_services_crematories" => Ok(FuneralServicesCrematories),
984 "furniture_home_furnishings_and_equipment_stores_except_appliances" => {
985 Ok(FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances)
986 }
987 "furniture_repair_refinishing" => Ok(FurnitureRepairRefinishing),
988 "furriers_and_fur_shops" => Ok(FurriersAndFurShops),
989 "general_services" => Ok(GeneralServices),
990 "gift_card_novelty_and_souvenir_shops" => Ok(GiftCardNoveltyAndSouvenirShops),
991 "glass_paint_and_wallpaper_stores" => Ok(GlassPaintAndWallpaperStores),
992 "glassware_crystal_stores" => Ok(GlasswareCrystalStores),
993 "golf_courses_public" => Ok(GolfCoursesPublic),
994 "government_licensed_horse_dog_racing_us_region_only" => {
995 Ok(GovernmentLicensedHorseDogRacingUsRegionOnly)
996 }
997 "government_licensed_online_casions_online_gambling_us_region_only" => {
998 Ok(GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly)
999 }
1000 "government_owned_lotteries_non_us_region" => Ok(GovernmentOwnedLotteriesNonUsRegion),
1001 "government_owned_lotteries_us_region_only" => Ok(GovernmentOwnedLotteriesUsRegionOnly),
1002 "government_services" => Ok(GovernmentServices),
1003 "grocery_stores_supermarkets" => Ok(GroceryStoresSupermarkets),
1004 "hardware_equipment_and_supplies" => Ok(HardwareEquipmentAndSupplies),
1005 "hardware_stores" => Ok(HardwareStores),
1006 "health_and_beauty_spas" => Ok(HealthAndBeautySpas),
1007 "hearing_aids_sales_and_supplies" => Ok(HearingAidsSalesAndSupplies),
1008 "heating_plumbing_a_c" => Ok(HeatingPlumbingAC),
1009 "hobby_toy_and_game_shops" => Ok(HobbyToyAndGameShops),
1010 "home_supply_warehouse_stores" => Ok(HomeSupplyWarehouseStores),
1011 "hospitals" => Ok(Hospitals),
1012 "hotels_motels_and_resorts" => Ok(HotelsMotelsAndResorts),
1013 "household_appliance_stores" => Ok(HouseholdApplianceStores),
1014 "industrial_supplies" => Ok(IndustrialSupplies),
1015 "information_retrieval_services" => Ok(InformationRetrievalServices),
1016 "insurance_default" => Ok(InsuranceDefault),
1017 "insurance_underwriting_premiums" => Ok(InsuranceUnderwritingPremiums),
1018 "intra_company_purchases" => Ok(IntraCompanyPurchases),
1019 "jewelry_stores_watches_clocks_and_silverware_stores" => {
1020 Ok(JewelryStoresWatchesClocksAndSilverwareStores)
1021 }
1022 "landscaping_services" => Ok(LandscapingServices),
1023 "laundries" => Ok(Laundries),
1024 "laundry_cleaning_services" => Ok(LaundryCleaningServices),
1025 "legal_services_attorneys" => Ok(LegalServicesAttorneys),
1026 "luggage_and_leather_goods_stores" => Ok(LuggageAndLeatherGoodsStores),
1027 "lumber_building_materials_stores" => Ok(LumberBuildingMaterialsStores),
1028 "manual_cash_disburse" => Ok(ManualCashDisburse),
1029 "marinas_service_and_supplies" => Ok(MarinasServiceAndSupplies),
1030 "marketplaces" => Ok(Marketplaces),
1031 "masonry_stonework_and_plaster" => Ok(MasonryStoneworkAndPlaster),
1032 "massage_parlors" => Ok(MassageParlors),
1033 "medical_and_dental_labs" => Ok(MedicalAndDentalLabs),
1034 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" => {
1035 Ok(MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies)
1036 }
1037 "medical_services" => Ok(MedicalServices),
1038 "membership_organizations" => Ok(MembershipOrganizations),
1039 "mens_and_boys_clothing_and_accessories_stores" => {
1040 Ok(MensAndBoysClothingAndAccessoriesStores)
1041 }
1042 "mens_womens_clothing_stores" => Ok(MensWomensClothingStores),
1043 "metal_service_centers" => Ok(MetalServiceCenters),
1044 "miscellaneous" => Ok(Miscellaneous),
1045 "miscellaneous_apparel_and_accessory_shops" => {
1046 Ok(MiscellaneousApparelAndAccessoryShops)
1047 }
1048 "miscellaneous_auto_dealers" => Ok(MiscellaneousAutoDealers),
1049 "miscellaneous_business_services" => Ok(MiscellaneousBusinessServices),
1050 "miscellaneous_food_stores" => Ok(MiscellaneousFoodStores),
1051 "miscellaneous_general_merchandise" => Ok(MiscellaneousGeneralMerchandise),
1052 "miscellaneous_general_services" => Ok(MiscellaneousGeneralServices),
1053 "miscellaneous_home_furnishing_specialty_stores" => {
1054 Ok(MiscellaneousHomeFurnishingSpecialtyStores)
1055 }
1056 "miscellaneous_publishing_and_printing" => Ok(MiscellaneousPublishingAndPrinting),
1057 "miscellaneous_recreation_services" => Ok(MiscellaneousRecreationServices),
1058 "miscellaneous_repair_shops" => Ok(MiscellaneousRepairShops),
1059 "miscellaneous_specialty_retail" => Ok(MiscellaneousSpecialtyRetail),
1060 "mobile_home_dealers" => Ok(MobileHomeDealers),
1061 "motion_picture_theaters" => Ok(MotionPictureTheaters),
1062 "motor_freight_carriers_and_trucking" => Ok(MotorFreightCarriersAndTrucking),
1063 "motor_homes_dealers" => Ok(MotorHomesDealers),
1064 "motor_vehicle_supplies_and_new_parts" => Ok(MotorVehicleSuppliesAndNewParts),
1065 "motorcycle_shops_and_dealers" => Ok(MotorcycleShopsAndDealers),
1066 "motorcycle_shops_dealers" => Ok(MotorcycleShopsDealers),
1067 "music_stores_musical_instruments_pianos_and_sheet_music" => {
1068 Ok(MusicStoresMusicalInstrumentsPianosAndSheetMusic)
1069 }
1070 "news_dealers_and_newsstands" => Ok(NewsDealersAndNewsstands),
1071 "non_fi_money_orders" => Ok(NonFiMoneyOrders),
1072 "non_fi_stored_value_card_purchase_load" => Ok(NonFiStoredValueCardPurchaseLoad),
1073 "nondurable_goods" => Ok(NondurableGoods),
1074 "nurseries_lawn_and_garden_supply_stores" => Ok(NurseriesLawnAndGardenSupplyStores),
1075 "nursing_personal_care" => Ok(NursingPersonalCare),
1076 "office_and_commercial_furniture" => Ok(OfficeAndCommercialFurniture),
1077 "opticians_eyeglasses" => Ok(OpticiansEyeglasses),
1078 "optometrists_ophthalmologist" => Ok(OptometristsOphthalmologist),
1079 "orthopedic_goods_prosthetic_devices" => Ok(OrthopedicGoodsProstheticDevices),
1080 "osteopaths" => Ok(Osteopaths),
1081 "package_stores_beer_wine_and_liquor" => Ok(PackageStoresBeerWineAndLiquor),
1082 "paints_varnishes_and_supplies" => Ok(PaintsVarnishesAndSupplies),
1083 "parking_lots_garages" => Ok(ParkingLotsGarages),
1084 "passenger_railways" => Ok(PassengerRailways),
1085 "pawn_shops" => Ok(PawnShops),
1086 "pet_shops_pet_food_and_supplies" => Ok(PetShopsPetFoodAndSupplies),
1087 "petroleum_and_petroleum_products" => Ok(PetroleumAndPetroleumProducts),
1088 "photo_developing" => Ok(PhotoDeveloping),
1089 "photographic_photocopy_microfilm_equipment_and_supplies" => {
1090 Ok(PhotographicPhotocopyMicrofilmEquipmentAndSupplies)
1091 }
1092 "photographic_studios" => Ok(PhotographicStudios),
1093 "picture_video_production" => Ok(PictureVideoProduction),
1094 "piece_goods_notions_and_other_dry_goods" => Ok(PieceGoodsNotionsAndOtherDryGoods),
1095 "plumbing_heating_equipment_and_supplies" => Ok(PlumbingHeatingEquipmentAndSupplies),
1096 "political_organizations" => Ok(PoliticalOrganizations),
1097 "postal_services_government_only" => Ok(PostalServicesGovernmentOnly),
1098 "precious_stones_and_metals_watches_and_jewelry" => {
1099 Ok(PreciousStonesAndMetalsWatchesAndJewelry)
1100 }
1101 "professional_services" => Ok(ProfessionalServices),
1102 "public_warehousing_and_storage" => Ok(PublicWarehousingAndStorage),
1103 "quick_copy_repro_and_blueprint" => Ok(QuickCopyReproAndBlueprint),
1104 "railroads" => Ok(Railroads),
1105 "real_estate_agents_and_managers_rentals" => Ok(RealEstateAgentsAndManagersRentals),
1106 "record_stores" => Ok(RecordStores),
1107 "recreational_vehicle_rentals" => Ok(RecreationalVehicleRentals),
1108 "religious_goods_stores" => Ok(ReligiousGoodsStores),
1109 "religious_organizations" => Ok(ReligiousOrganizations),
1110 "roofing_siding_sheet_metal" => Ok(RoofingSidingSheetMetal),
1111 "secretarial_support_services" => Ok(SecretarialSupportServices),
1112 "security_brokers_dealers" => Ok(SecurityBrokersDealers),
1113 "service_stations" => Ok(ServiceStations),
1114 "sewing_needlework_fabric_and_piece_goods_stores" => {
1115 Ok(SewingNeedleworkFabricAndPieceGoodsStores)
1116 }
1117 "shoe_repair_hat_cleaning" => Ok(ShoeRepairHatCleaning),
1118 "shoe_stores" => Ok(ShoeStores),
1119 "small_appliance_repair" => Ok(SmallApplianceRepair),
1120 "snowmobile_dealers" => Ok(SnowmobileDealers),
1121 "special_trade_services" => Ok(SpecialTradeServices),
1122 "specialty_cleaning" => Ok(SpecialtyCleaning),
1123 "sporting_goods_stores" => Ok(SportingGoodsStores),
1124 "sporting_recreation_camps" => Ok(SportingRecreationCamps),
1125 "sports_and_riding_apparel_stores" => Ok(SportsAndRidingApparelStores),
1126 "sports_clubs_fields" => Ok(SportsClubsFields),
1127 "stamp_and_coin_stores" => Ok(StampAndCoinStores),
1128 "stationary_office_supplies_printing_and_writing_paper" => {
1129 Ok(StationaryOfficeSuppliesPrintingAndWritingPaper)
1130 }
1131 "stationery_stores_office_and_school_supply_stores" => {
1132 Ok(StationeryStoresOfficeAndSchoolSupplyStores)
1133 }
1134 "swimming_pools_sales" => Ok(SwimmingPoolsSales),
1135 "t_ui_travel_germany" => Ok(TUiTravelGermany),
1136 "tailors_alterations" => Ok(TailorsAlterations),
1137 "tax_payments_government_agencies" => Ok(TaxPaymentsGovernmentAgencies),
1138 "tax_preparation_services" => Ok(TaxPreparationServices),
1139 "taxicabs_limousines" => Ok(TaxicabsLimousines),
1140 "telecommunication_equipment_and_telephone_sales" => {
1141 Ok(TelecommunicationEquipmentAndTelephoneSales)
1142 }
1143 "telecommunication_services" => Ok(TelecommunicationServices),
1144 "telegraph_services" => Ok(TelegraphServices),
1145 "tent_and_awning_shops" => Ok(TentAndAwningShops),
1146 "testing_laboratories" => Ok(TestingLaboratories),
1147 "theatrical_ticket_agencies" => Ok(TheatricalTicketAgencies),
1148 "timeshares" => Ok(Timeshares),
1149 "tire_retreading_and_repair" => Ok(TireRetreadingAndRepair),
1150 "tolls_bridge_fees" => Ok(TollsBridgeFees),
1151 "tourist_attractions_and_exhibits" => Ok(TouristAttractionsAndExhibits),
1152 "towing_services" => Ok(TowingServices),
1153 "trailer_parks_campgrounds" => Ok(TrailerParksCampgrounds),
1154 "transportation_services" => Ok(TransportationServices),
1155 "travel_agencies_tour_operators" => Ok(TravelAgenciesTourOperators),
1156 "truck_stop_iteration" => Ok(TruckStopIteration),
1157 "truck_utility_trailer_rentals" => Ok(TruckUtilityTrailerRentals),
1158 "typesetting_plate_making_and_related_services" => {
1159 Ok(TypesettingPlateMakingAndRelatedServices)
1160 }
1161 "typewriter_stores" => Ok(TypewriterStores),
1162 "u_s_federal_government_agencies_or_departments" => {
1163 Ok(USFederalGovernmentAgenciesOrDepartments)
1164 }
1165 "uniforms_commercial_clothing" => Ok(UniformsCommercialClothing),
1166 "used_merchandise_and_secondhand_stores" => Ok(UsedMerchandiseAndSecondhandStores),
1167 "utilities" => Ok(Utilities),
1168 "variety_stores" => Ok(VarietyStores),
1169 "veterinary_services" => Ok(VeterinaryServices),
1170 "video_amusement_game_supplies" => Ok(VideoAmusementGameSupplies),
1171 "video_game_arcades" => Ok(VideoGameArcades),
1172 "video_tape_rental_stores" => Ok(VideoTapeRentalStores),
1173 "vocational_trade_schools" => Ok(VocationalTradeSchools),
1174 "watch_jewelry_repair" => Ok(WatchJewelryRepair),
1175 "welding_repair" => Ok(WeldingRepair),
1176 "wholesale_clubs" => Ok(WholesaleClubs),
1177 "wig_and_toupee_stores" => Ok(WigAndToupeeStores),
1178 "wires_money_orders" => Ok(WiresMoneyOrders),
1179 "womens_accessory_and_specialty_shops" => Ok(WomensAccessoryAndSpecialtyShops),
1180 "womens_ready_to_wear_stores" => Ok(WomensReadyToWearStores),
1181 "wrecking_and_salvage_yards" => Ok(WreckingAndSalvageYards),
1182 v => Ok(Unknown(v.to_owned())),
1183 }
1184 }
1185}
1186impl std::fmt::Display for IssuingCardholderAuthorizationControlsAllowedCategories {
1187 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1188 f.write_str(self.as_str())
1189 }
1190}
1191
1192impl std::fmt::Debug for IssuingCardholderAuthorizationControlsAllowedCategories {
1193 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1194 f.write_str(self.as_str())
1195 }
1196}
1197#[cfg(feature = "serialize")]
1198impl serde::Serialize for IssuingCardholderAuthorizationControlsAllowedCategories {
1199 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
1200 where
1201 S: serde::Serializer,
1202 {
1203 serializer.serialize_str(self.as_str())
1204 }
1205}
1206impl miniserde::Deserialize for IssuingCardholderAuthorizationControlsAllowedCategories {
1207 fn begin(out: &mut Option<Self>) -> &mut dyn miniserde::de::Visitor {
1208 crate::Place::new(out)
1209 }
1210}
1211
1212impl miniserde::de::Visitor
1213 for crate::Place<IssuingCardholderAuthorizationControlsAllowedCategories>
1214{
1215 fn string(&mut self, s: &str) -> miniserde::Result<()> {
1216 use std::str::FromStr;
1217 self.out =
1218 Some(IssuingCardholderAuthorizationControlsAllowedCategories::from_str(s).unwrap());
1219 Ok(())
1220 }
1221}
1222
1223stripe_types::impl_from_val_with_from_str!(IssuingCardholderAuthorizationControlsAllowedCategories);
1224#[cfg(feature = "deserialize")]
1225impl<'de> serde::Deserialize<'de> for IssuingCardholderAuthorizationControlsAllowedCategories {
1226 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
1227 use std::str::FromStr;
1228 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
1229 Ok(Self::from_str(&s).unwrap())
1230 }
1231}
1232#[derive(Clone, Eq, PartialEq)]
1236#[non_exhaustive]
1237pub enum IssuingCardholderAuthorizationControlsBlockedCategories {
1238 AcRefrigerationRepair,
1239 AccountingBookkeepingServices,
1240 AdvertisingServices,
1241 AgriculturalCooperative,
1242 AirlinesAirCarriers,
1243 AirportsFlyingFields,
1244 AmbulanceServices,
1245 AmusementParksCarnivals,
1246 AntiqueReproductions,
1247 AntiqueShops,
1248 Aquariums,
1249 ArchitecturalSurveyingServices,
1250 ArtDealersAndGalleries,
1251 ArtistsSupplyAndCraftShops,
1252 AutoAndHomeSupplyStores,
1253 AutoBodyRepairShops,
1254 AutoPaintShops,
1255 AutoServiceShops,
1256 AutomatedCashDisburse,
1257 AutomatedFuelDispensers,
1258 AutomobileAssociations,
1259 AutomotivePartsAndAccessoriesStores,
1260 AutomotiveTireStores,
1261 BailAndBondPayments,
1262 Bakeries,
1263 BandsOrchestras,
1264 BarberAndBeautyShops,
1265 BettingCasinoGambling,
1266 BicycleShops,
1267 BilliardPoolEstablishments,
1268 BoatDealers,
1269 BoatRentalsAndLeases,
1270 BookStores,
1271 BooksPeriodicalsAndNewspapers,
1272 BowlingAlleys,
1273 BusLines,
1274 BusinessSecretarialSchools,
1275 BuyingShoppingServices,
1276 CableSatelliteAndOtherPayTelevisionAndRadio,
1277 CameraAndPhotographicSupplyStores,
1278 CandyNutAndConfectioneryStores,
1279 CarAndTruckDealersNewUsed,
1280 CarAndTruckDealersUsedOnly,
1281 CarRentalAgencies,
1282 CarWashes,
1283 CarpentryServices,
1284 CarpetUpholsteryCleaning,
1285 Caterers,
1286 CharitableAndSocialServiceOrganizationsFundraising,
1287 ChemicalsAndAlliedProducts,
1288 ChildCareServices,
1289 ChildrensAndInfantsWearStores,
1290 ChiropodistsPodiatrists,
1291 Chiropractors,
1292 CigarStoresAndStands,
1293 CivicSocialFraternalAssociations,
1294 CleaningAndMaintenance,
1295 ClothingRental,
1296 CollegesUniversities,
1297 CommercialEquipment,
1298 CommercialFootwear,
1299 CommercialPhotographyArtAndGraphics,
1300 CommuterTransportAndFerries,
1301 ComputerNetworkServices,
1302 ComputerProgramming,
1303 ComputerRepair,
1304 ComputerSoftwareStores,
1305 ComputersPeripheralsAndSoftware,
1306 ConcreteWorkServices,
1307 ConstructionMaterials,
1308 ConsultingPublicRelations,
1309 CorrespondenceSchools,
1310 CosmeticStores,
1311 CounselingServices,
1312 CountryClubs,
1313 CourierServices,
1314 CourtCosts,
1315 CreditReportingAgencies,
1316 CruiseLines,
1317 DairyProductsStores,
1318 DanceHallStudiosSchools,
1319 DatingEscortServices,
1320 DentistsOrthodontists,
1321 DepartmentStores,
1322 DetectiveAgencies,
1323 DigitalGoodsApplications,
1324 DigitalGoodsGames,
1325 DigitalGoodsLargeVolume,
1326 DigitalGoodsMedia,
1327 DirectMarketingCatalogMerchant,
1328 DirectMarketingCombinationCatalogAndRetailMerchant,
1329 DirectMarketingInboundTelemarketing,
1330 DirectMarketingInsuranceServices,
1331 DirectMarketingOther,
1332 DirectMarketingOutboundTelemarketing,
1333 DirectMarketingSubscription,
1334 DirectMarketingTravel,
1335 DiscountStores,
1336 Doctors,
1337 DoorToDoorSales,
1338 DraperyWindowCoveringAndUpholsteryStores,
1339 DrinkingPlaces,
1340 DrugStoresAndPharmacies,
1341 DrugsDrugProprietariesAndDruggistSundries,
1342 DryCleaners,
1343 DurableGoods,
1344 DutyFreeStores,
1345 EatingPlacesRestaurants,
1346 EducationalServices,
1347 ElectricRazorStores,
1348 ElectricVehicleCharging,
1349 ElectricalPartsAndEquipment,
1350 ElectricalServices,
1351 ElectronicsRepairShops,
1352 ElectronicsStores,
1353 ElementarySecondarySchools,
1354 EmergencyServicesGcasVisaUseOnly,
1355 EmploymentTempAgencies,
1356 EquipmentRental,
1357 ExterminatingServices,
1358 FamilyClothingStores,
1359 FastFoodRestaurants,
1360 FinancialInstitutions,
1361 FinesGovernmentAdministrativeEntities,
1362 FireplaceFireplaceScreensAndAccessoriesStores,
1363 FloorCoveringStores,
1364 Florists,
1365 FloristsSuppliesNurseryStockAndFlowers,
1366 FreezerAndLockerMeatProvisioners,
1367 FuelDealersNonAutomotive,
1368 FuneralServicesCrematories,
1369 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances,
1370 FurnitureRepairRefinishing,
1371 FurriersAndFurShops,
1372 GeneralServices,
1373 GiftCardNoveltyAndSouvenirShops,
1374 GlassPaintAndWallpaperStores,
1375 GlasswareCrystalStores,
1376 GolfCoursesPublic,
1377 GovernmentLicensedHorseDogRacingUsRegionOnly,
1378 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly,
1379 GovernmentOwnedLotteriesNonUsRegion,
1380 GovernmentOwnedLotteriesUsRegionOnly,
1381 GovernmentServices,
1382 GroceryStoresSupermarkets,
1383 HardwareEquipmentAndSupplies,
1384 HardwareStores,
1385 HealthAndBeautySpas,
1386 HearingAidsSalesAndSupplies,
1387 HeatingPlumbingAC,
1388 HobbyToyAndGameShops,
1389 HomeSupplyWarehouseStores,
1390 Hospitals,
1391 HotelsMotelsAndResorts,
1392 HouseholdApplianceStores,
1393 IndustrialSupplies,
1394 InformationRetrievalServices,
1395 InsuranceDefault,
1396 InsuranceUnderwritingPremiums,
1397 IntraCompanyPurchases,
1398 JewelryStoresWatchesClocksAndSilverwareStores,
1399 LandscapingServices,
1400 Laundries,
1401 LaundryCleaningServices,
1402 LegalServicesAttorneys,
1403 LuggageAndLeatherGoodsStores,
1404 LumberBuildingMaterialsStores,
1405 ManualCashDisburse,
1406 MarinasServiceAndSupplies,
1407 Marketplaces,
1408 MasonryStoneworkAndPlaster,
1409 MassageParlors,
1410 MedicalAndDentalLabs,
1411 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies,
1412 MedicalServices,
1413 MembershipOrganizations,
1414 MensAndBoysClothingAndAccessoriesStores,
1415 MensWomensClothingStores,
1416 MetalServiceCenters,
1417 Miscellaneous,
1418 MiscellaneousApparelAndAccessoryShops,
1419 MiscellaneousAutoDealers,
1420 MiscellaneousBusinessServices,
1421 MiscellaneousFoodStores,
1422 MiscellaneousGeneralMerchandise,
1423 MiscellaneousGeneralServices,
1424 MiscellaneousHomeFurnishingSpecialtyStores,
1425 MiscellaneousPublishingAndPrinting,
1426 MiscellaneousRecreationServices,
1427 MiscellaneousRepairShops,
1428 MiscellaneousSpecialtyRetail,
1429 MobileHomeDealers,
1430 MotionPictureTheaters,
1431 MotorFreightCarriersAndTrucking,
1432 MotorHomesDealers,
1433 MotorVehicleSuppliesAndNewParts,
1434 MotorcycleShopsAndDealers,
1435 MotorcycleShopsDealers,
1436 MusicStoresMusicalInstrumentsPianosAndSheetMusic,
1437 NewsDealersAndNewsstands,
1438 NonFiMoneyOrders,
1439 NonFiStoredValueCardPurchaseLoad,
1440 NondurableGoods,
1441 NurseriesLawnAndGardenSupplyStores,
1442 NursingPersonalCare,
1443 OfficeAndCommercialFurniture,
1444 OpticiansEyeglasses,
1445 OptometristsOphthalmologist,
1446 OrthopedicGoodsProstheticDevices,
1447 Osteopaths,
1448 PackageStoresBeerWineAndLiquor,
1449 PaintsVarnishesAndSupplies,
1450 ParkingLotsGarages,
1451 PassengerRailways,
1452 PawnShops,
1453 PetShopsPetFoodAndSupplies,
1454 PetroleumAndPetroleumProducts,
1455 PhotoDeveloping,
1456 PhotographicPhotocopyMicrofilmEquipmentAndSupplies,
1457 PhotographicStudios,
1458 PictureVideoProduction,
1459 PieceGoodsNotionsAndOtherDryGoods,
1460 PlumbingHeatingEquipmentAndSupplies,
1461 PoliticalOrganizations,
1462 PostalServicesGovernmentOnly,
1463 PreciousStonesAndMetalsWatchesAndJewelry,
1464 ProfessionalServices,
1465 PublicWarehousingAndStorage,
1466 QuickCopyReproAndBlueprint,
1467 Railroads,
1468 RealEstateAgentsAndManagersRentals,
1469 RecordStores,
1470 RecreationalVehicleRentals,
1471 ReligiousGoodsStores,
1472 ReligiousOrganizations,
1473 RoofingSidingSheetMetal,
1474 SecretarialSupportServices,
1475 SecurityBrokersDealers,
1476 ServiceStations,
1477 SewingNeedleworkFabricAndPieceGoodsStores,
1478 ShoeRepairHatCleaning,
1479 ShoeStores,
1480 SmallApplianceRepair,
1481 SnowmobileDealers,
1482 SpecialTradeServices,
1483 SpecialtyCleaning,
1484 SportingGoodsStores,
1485 SportingRecreationCamps,
1486 SportsAndRidingApparelStores,
1487 SportsClubsFields,
1488 StampAndCoinStores,
1489 StationaryOfficeSuppliesPrintingAndWritingPaper,
1490 StationeryStoresOfficeAndSchoolSupplyStores,
1491 SwimmingPoolsSales,
1492 TUiTravelGermany,
1493 TailorsAlterations,
1494 TaxPaymentsGovernmentAgencies,
1495 TaxPreparationServices,
1496 TaxicabsLimousines,
1497 TelecommunicationEquipmentAndTelephoneSales,
1498 TelecommunicationServices,
1499 TelegraphServices,
1500 TentAndAwningShops,
1501 TestingLaboratories,
1502 TheatricalTicketAgencies,
1503 Timeshares,
1504 TireRetreadingAndRepair,
1505 TollsBridgeFees,
1506 TouristAttractionsAndExhibits,
1507 TowingServices,
1508 TrailerParksCampgrounds,
1509 TransportationServices,
1510 TravelAgenciesTourOperators,
1511 TruckStopIteration,
1512 TruckUtilityTrailerRentals,
1513 TypesettingPlateMakingAndRelatedServices,
1514 TypewriterStores,
1515 USFederalGovernmentAgenciesOrDepartments,
1516 UniformsCommercialClothing,
1517 UsedMerchandiseAndSecondhandStores,
1518 Utilities,
1519 VarietyStores,
1520 VeterinaryServices,
1521 VideoAmusementGameSupplies,
1522 VideoGameArcades,
1523 VideoTapeRentalStores,
1524 VocationalTradeSchools,
1525 WatchJewelryRepair,
1526 WeldingRepair,
1527 WholesaleClubs,
1528 WigAndToupeeStores,
1529 WiresMoneyOrders,
1530 WomensAccessoryAndSpecialtyShops,
1531 WomensReadyToWearStores,
1532 WreckingAndSalvageYards,
1533 Unknown(String),
1535}
1536impl IssuingCardholderAuthorizationControlsBlockedCategories {
1537 pub fn as_str(&self) -> &str {
1538 use IssuingCardholderAuthorizationControlsBlockedCategories::*;
1539 match self {
1540 AcRefrigerationRepair => "ac_refrigeration_repair",
1541 AccountingBookkeepingServices => "accounting_bookkeeping_services",
1542 AdvertisingServices => "advertising_services",
1543 AgriculturalCooperative => "agricultural_cooperative",
1544 AirlinesAirCarriers => "airlines_air_carriers",
1545 AirportsFlyingFields => "airports_flying_fields",
1546 AmbulanceServices => "ambulance_services",
1547 AmusementParksCarnivals => "amusement_parks_carnivals",
1548 AntiqueReproductions => "antique_reproductions",
1549 AntiqueShops => "antique_shops",
1550 Aquariums => "aquariums",
1551 ArchitecturalSurveyingServices => "architectural_surveying_services",
1552 ArtDealersAndGalleries => "art_dealers_and_galleries",
1553 ArtistsSupplyAndCraftShops => "artists_supply_and_craft_shops",
1554 AutoAndHomeSupplyStores => "auto_and_home_supply_stores",
1555 AutoBodyRepairShops => "auto_body_repair_shops",
1556 AutoPaintShops => "auto_paint_shops",
1557 AutoServiceShops => "auto_service_shops",
1558 AutomatedCashDisburse => "automated_cash_disburse",
1559 AutomatedFuelDispensers => "automated_fuel_dispensers",
1560 AutomobileAssociations => "automobile_associations",
1561 AutomotivePartsAndAccessoriesStores => "automotive_parts_and_accessories_stores",
1562 AutomotiveTireStores => "automotive_tire_stores",
1563 BailAndBondPayments => "bail_and_bond_payments",
1564 Bakeries => "bakeries",
1565 BandsOrchestras => "bands_orchestras",
1566 BarberAndBeautyShops => "barber_and_beauty_shops",
1567 BettingCasinoGambling => "betting_casino_gambling",
1568 BicycleShops => "bicycle_shops",
1569 BilliardPoolEstablishments => "billiard_pool_establishments",
1570 BoatDealers => "boat_dealers",
1571 BoatRentalsAndLeases => "boat_rentals_and_leases",
1572 BookStores => "book_stores",
1573 BooksPeriodicalsAndNewspapers => "books_periodicals_and_newspapers",
1574 BowlingAlleys => "bowling_alleys",
1575 BusLines => "bus_lines",
1576 BusinessSecretarialSchools => "business_secretarial_schools",
1577 BuyingShoppingServices => "buying_shopping_services",
1578 CableSatelliteAndOtherPayTelevisionAndRadio => {
1579 "cable_satellite_and_other_pay_television_and_radio"
1580 }
1581 CameraAndPhotographicSupplyStores => "camera_and_photographic_supply_stores",
1582 CandyNutAndConfectioneryStores => "candy_nut_and_confectionery_stores",
1583 CarAndTruckDealersNewUsed => "car_and_truck_dealers_new_used",
1584 CarAndTruckDealersUsedOnly => "car_and_truck_dealers_used_only",
1585 CarRentalAgencies => "car_rental_agencies",
1586 CarWashes => "car_washes",
1587 CarpentryServices => "carpentry_services",
1588 CarpetUpholsteryCleaning => "carpet_upholstery_cleaning",
1589 Caterers => "caterers",
1590 CharitableAndSocialServiceOrganizationsFundraising => {
1591 "charitable_and_social_service_organizations_fundraising"
1592 }
1593 ChemicalsAndAlliedProducts => "chemicals_and_allied_products",
1594 ChildCareServices => "child_care_services",
1595 ChildrensAndInfantsWearStores => "childrens_and_infants_wear_stores",
1596 ChiropodistsPodiatrists => "chiropodists_podiatrists",
1597 Chiropractors => "chiropractors",
1598 CigarStoresAndStands => "cigar_stores_and_stands",
1599 CivicSocialFraternalAssociations => "civic_social_fraternal_associations",
1600 CleaningAndMaintenance => "cleaning_and_maintenance",
1601 ClothingRental => "clothing_rental",
1602 CollegesUniversities => "colleges_universities",
1603 CommercialEquipment => "commercial_equipment",
1604 CommercialFootwear => "commercial_footwear",
1605 CommercialPhotographyArtAndGraphics => "commercial_photography_art_and_graphics",
1606 CommuterTransportAndFerries => "commuter_transport_and_ferries",
1607 ComputerNetworkServices => "computer_network_services",
1608 ComputerProgramming => "computer_programming",
1609 ComputerRepair => "computer_repair",
1610 ComputerSoftwareStores => "computer_software_stores",
1611 ComputersPeripheralsAndSoftware => "computers_peripherals_and_software",
1612 ConcreteWorkServices => "concrete_work_services",
1613 ConstructionMaterials => "construction_materials",
1614 ConsultingPublicRelations => "consulting_public_relations",
1615 CorrespondenceSchools => "correspondence_schools",
1616 CosmeticStores => "cosmetic_stores",
1617 CounselingServices => "counseling_services",
1618 CountryClubs => "country_clubs",
1619 CourierServices => "courier_services",
1620 CourtCosts => "court_costs",
1621 CreditReportingAgencies => "credit_reporting_agencies",
1622 CruiseLines => "cruise_lines",
1623 DairyProductsStores => "dairy_products_stores",
1624 DanceHallStudiosSchools => "dance_hall_studios_schools",
1625 DatingEscortServices => "dating_escort_services",
1626 DentistsOrthodontists => "dentists_orthodontists",
1627 DepartmentStores => "department_stores",
1628 DetectiveAgencies => "detective_agencies",
1629 DigitalGoodsApplications => "digital_goods_applications",
1630 DigitalGoodsGames => "digital_goods_games",
1631 DigitalGoodsLargeVolume => "digital_goods_large_volume",
1632 DigitalGoodsMedia => "digital_goods_media",
1633 DirectMarketingCatalogMerchant => "direct_marketing_catalog_merchant",
1634 DirectMarketingCombinationCatalogAndRetailMerchant => {
1635 "direct_marketing_combination_catalog_and_retail_merchant"
1636 }
1637 DirectMarketingInboundTelemarketing => "direct_marketing_inbound_telemarketing",
1638 DirectMarketingInsuranceServices => "direct_marketing_insurance_services",
1639 DirectMarketingOther => "direct_marketing_other",
1640 DirectMarketingOutboundTelemarketing => "direct_marketing_outbound_telemarketing",
1641 DirectMarketingSubscription => "direct_marketing_subscription",
1642 DirectMarketingTravel => "direct_marketing_travel",
1643 DiscountStores => "discount_stores",
1644 Doctors => "doctors",
1645 DoorToDoorSales => "door_to_door_sales",
1646 DraperyWindowCoveringAndUpholsteryStores => {
1647 "drapery_window_covering_and_upholstery_stores"
1648 }
1649 DrinkingPlaces => "drinking_places",
1650 DrugStoresAndPharmacies => "drug_stores_and_pharmacies",
1651 DrugsDrugProprietariesAndDruggistSundries => {
1652 "drugs_drug_proprietaries_and_druggist_sundries"
1653 }
1654 DryCleaners => "dry_cleaners",
1655 DurableGoods => "durable_goods",
1656 DutyFreeStores => "duty_free_stores",
1657 EatingPlacesRestaurants => "eating_places_restaurants",
1658 EducationalServices => "educational_services",
1659 ElectricRazorStores => "electric_razor_stores",
1660 ElectricVehicleCharging => "electric_vehicle_charging",
1661 ElectricalPartsAndEquipment => "electrical_parts_and_equipment",
1662 ElectricalServices => "electrical_services",
1663 ElectronicsRepairShops => "electronics_repair_shops",
1664 ElectronicsStores => "electronics_stores",
1665 ElementarySecondarySchools => "elementary_secondary_schools",
1666 EmergencyServicesGcasVisaUseOnly => "emergency_services_gcas_visa_use_only",
1667 EmploymentTempAgencies => "employment_temp_agencies",
1668 EquipmentRental => "equipment_rental",
1669 ExterminatingServices => "exterminating_services",
1670 FamilyClothingStores => "family_clothing_stores",
1671 FastFoodRestaurants => "fast_food_restaurants",
1672 FinancialInstitutions => "financial_institutions",
1673 FinesGovernmentAdministrativeEntities => "fines_government_administrative_entities",
1674 FireplaceFireplaceScreensAndAccessoriesStores => {
1675 "fireplace_fireplace_screens_and_accessories_stores"
1676 }
1677 FloorCoveringStores => "floor_covering_stores",
1678 Florists => "florists",
1679 FloristsSuppliesNurseryStockAndFlowers => "florists_supplies_nursery_stock_and_flowers",
1680 FreezerAndLockerMeatProvisioners => "freezer_and_locker_meat_provisioners",
1681 FuelDealersNonAutomotive => "fuel_dealers_non_automotive",
1682 FuneralServicesCrematories => "funeral_services_crematories",
1683 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances => {
1684 "furniture_home_furnishings_and_equipment_stores_except_appliances"
1685 }
1686 FurnitureRepairRefinishing => "furniture_repair_refinishing",
1687 FurriersAndFurShops => "furriers_and_fur_shops",
1688 GeneralServices => "general_services",
1689 GiftCardNoveltyAndSouvenirShops => "gift_card_novelty_and_souvenir_shops",
1690 GlassPaintAndWallpaperStores => "glass_paint_and_wallpaper_stores",
1691 GlasswareCrystalStores => "glassware_crystal_stores",
1692 GolfCoursesPublic => "golf_courses_public",
1693 GovernmentLicensedHorseDogRacingUsRegionOnly => {
1694 "government_licensed_horse_dog_racing_us_region_only"
1695 }
1696 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly => {
1697 "government_licensed_online_casions_online_gambling_us_region_only"
1698 }
1699 GovernmentOwnedLotteriesNonUsRegion => "government_owned_lotteries_non_us_region",
1700 GovernmentOwnedLotteriesUsRegionOnly => "government_owned_lotteries_us_region_only",
1701 GovernmentServices => "government_services",
1702 GroceryStoresSupermarkets => "grocery_stores_supermarkets",
1703 HardwareEquipmentAndSupplies => "hardware_equipment_and_supplies",
1704 HardwareStores => "hardware_stores",
1705 HealthAndBeautySpas => "health_and_beauty_spas",
1706 HearingAidsSalesAndSupplies => "hearing_aids_sales_and_supplies",
1707 HeatingPlumbingAC => "heating_plumbing_a_c",
1708 HobbyToyAndGameShops => "hobby_toy_and_game_shops",
1709 HomeSupplyWarehouseStores => "home_supply_warehouse_stores",
1710 Hospitals => "hospitals",
1711 HotelsMotelsAndResorts => "hotels_motels_and_resorts",
1712 HouseholdApplianceStores => "household_appliance_stores",
1713 IndustrialSupplies => "industrial_supplies",
1714 InformationRetrievalServices => "information_retrieval_services",
1715 InsuranceDefault => "insurance_default",
1716 InsuranceUnderwritingPremiums => "insurance_underwriting_premiums",
1717 IntraCompanyPurchases => "intra_company_purchases",
1718 JewelryStoresWatchesClocksAndSilverwareStores => {
1719 "jewelry_stores_watches_clocks_and_silverware_stores"
1720 }
1721 LandscapingServices => "landscaping_services",
1722 Laundries => "laundries",
1723 LaundryCleaningServices => "laundry_cleaning_services",
1724 LegalServicesAttorneys => "legal_services_attorneys",
1725 LuggageAndLeatherGoodsStores => "luggage_and_leather_goods_stores",
1726 LumberBuildingMaterialsStores => "lumber_building_materials_stores",
1727 ManualCashDisburse => "manual_cash_disburse",
1728 MarinasServiceAndSupplies => "marinas_service_and_supplies",
1729 Marketplaces => "marketplaces",
1730 MasonryStoneworkAndPlaster => "masonry_stonework_and_plaster",
1731 MassageParlors => "massage_parlors",
1732 MedicalAndDentalLabs => "medical_and_dental_labs",
1733 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies => {
1734 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"
1735 }
1736 MedicalServices => "medical_services",
1737 MembershipOrganizations => "membership_organizations",
1738 MensAndBoysClothingAndAccessoriesStores => {
1739 "mens_and_boys_clothing_and_accessories_stores"
1740 }
1741 MensWomensClothingStores => "mens_womens_clothing_stores",
1742 MetalServiceCenters => "metal_service_centers",
1743 Miscellaneous => "miscellaneous",
1744 MiscellaneousApparelAndAccessoryShops => "miscellaneous_apparel_and_accessory_shops",
1745 MiscellaneousAutoDealers => "miscellaneous_auto_dealers",
1746 MiscellaneousBusinessServices => "miscellaneous_business_services",
1747 MiscellaneousFoodStores => "miscellaneous_food_stores",
1748 MiscellaneousGeneralMerchandise => "miscellaneous_general_merchandise",
1749 MiscellaneousGeneralServices => "miscellaneous_general_services",
1750 MiscellaneousHomeFurnishingSpecialtyStores => {
1751 "miscellaneous_home_furnishing_specialty_stores"
1752 }
1753 MiscellaneousPublishingAndPrinting => "miscellaneous_publishing_and_printing",
1754 MiscellaneousRecreationServices => "miscellaneous_recreation_services",
1755 MiscellaneousRepairShops => "miscellaneous_repair_shops",
1756 MiscellaneousSpecialtyRetail => "miscellaneous_specialty_retail",
1757 MobileHomeDealers => "mobile_home_dealers",
1758 MotionPictureTheaters => "motion_picture_theaters",
1759 MotorFreightCarriersAndTrucking => "motor_freight_carriers_and_trucking",
1760 MotorHomesDealers => "motor_homes_dealers",
1761 MotorVehicleSuppliesAndNewParts => "motor_vehicle_supplies_and_new_parts",
1762 MotorcycleShopsAndDealers => "motorcycle_shops_and_dealers",
1763 MotorcycleShopsDealers => "motorcycle_shops_dealers",
1764 MusicStoresMusicalInstrumentsPianosAndSheetMusic => {
1765 "music_stores_musical_instruments_pianos_and_sheet_music"
1766 }
1767 NewsDealersAndNewsstands => "news_dealers_and_newsstands",
1768 NonFiMoneyOrders => "non_fi_money_orders",
1769 NonFiStoredValueCardPurchaseLoad => "non_fi_stored_value_card_purchase_load",
1770 NondurableGoods => "nondurable_goods",
1771 NurseriesLawnAndGardenSupplyStores => "nurseries_lawn_and_garden_supply_stores",
1772 NursingPersonalCare => "nursing_personal_care",
1773 OfficeAndCommercialFurniture => "office_and_commercial_furniture",
1774 OpticiansEyeglasses => "opticians_eyeglasses",
1775 OptometristsOphthalmologist => "optometrists_ophthalmologist",
1776 OrthopedicGoodsProstheticDevices => "orthopedic_goods_prosthetic_devices",
1777 Osteopaths => "osteopaths",
1778 PackageStoresBeerWineAndLiquor => "package_stores_beer_wine_and_liquor",
1779 PaintsVarnishesAndSupplies => "paints_varnishes_and_supplies",
1780 ParkingLotsGarages => "parking_lots_garages",
1781 PassengerRailways => "passenger_railways",
1782 PawnShops => "pawn_shops",
1783 PetShopsPetFoodAndSupplies => "pet_shops_pet_food_and_supplies",
1784 PetroleumAndPetroleumProducts => "petroleum_and_petroleum_products",
1785 PhotoDeveloping => "photo_developing",
1786 PhotographicPhotocopyMicrofilmEquipmentAndSupplies => {
1787 "photographic_photocopy_microfilm_equipment_and_supplies"
1788 }
1789 PhotographicStudios => "photographic_studios",
1790 PictureVideoProduction => "picture_video_production",
1791 PieceGoodsNotionsAndOtherDryGoods => "piece_goods_notions_and_other_dry_goods",
1792 PlumbingHeatingEquipmentAndSupplies => "plumbing_heating_equipment_and_supplies",
1793 PoliticalOrganizations => "political_organizations",
1794 PostalServicesGovernmentOnly => "postal_services_government_only",
1795 PreciousStonesAndMetalsWatchesAndJewelry => {
1796 "precious_stones_and_metals_watches_and_jewelry"
1797 }
1798 ProfessionalServices => "professional_services",
1799 PublicWarehousingAndStorage => "public_warehousing_and_storage",
1800 QuickCopyReproAndBlueprint => "quick_copy_repro_and_blueprint",
1801 Railroads => "railroads",
1802 RealEstateAgentsAndManagersRentals => "real_estate_agents_and_managers_rentals",
1803 RecordStores => "record_stores",
1804 RecreationalVehicleRentals => "recreational_vehicle_rentals",
1805 ReligiousGoodsStores => "religious_goods_stores",
1806 ReligiousOrganizations => "religious_organizations",
1807 RoofingSidingSheetMetal => "roofing_siding_sheet_metal",
1808 SecretarialSupportServices => "secretarial_support_services",
1809 SecurityBrokersDealers => "security_brokers_dealers",
1810 ServiceStations => "service_stations",
1811 SewingNeedleworkFabricAndPieceGoodsStores => {
1812 "sewing_needlework_fabric_and_piece_goods_stores"
1813 }
1814 ShoeRepairHatCleaning => "shoe_repair_hat_cleaning",
1815 ShoeStores => "shoe_stores",
1816 SmallApplianceRepair => "small_appliance_repair",
1817 SnowmobileDealers => "snowmobile_dealers",
1818 SpecialTradeServices => "special_trade_services",
1819 SpecialtyCleaning => "specialty_cleaning",
1820 SportingGoodsStores => "sporting_goods_stores",
1821 SportingRecreationCamps => "sporting_recreation_camps",
1822 SportsAndRidingApparelStores => "sports_and_riding_apparel_stores",
1823 SportsClubsFields => "sports_clubs_fields",
1824 StampAndCoinStores => "stamp_and_coin_stores",
1825 StationaryOfficeSuppliesPrintingAndWritingPaper => {
1826 "stationary_office_supplies_printing_and_writing_paper"
1827 }
1828 StationeryStoresOfficeAndSchoolSupplyStores => {
1829 "stationery_stores_office_and_school_supply_stores"
1830 }
1831 SwimmingPoolsSales => "swimming_pools_sales",
1832 TUiTravelGermany => "t_ui_travel_germany",
1833 TailorsAlterations => "tailors_alterations",
1834 TaxPaymentsGovernmentAgencies => "tax_payments_government_agencies",
1835 TaxPreparationServices => "tax_preparation_services",
1836 TaxicabsLimousines => "taxicabs_limousines",
1837 TelecommunicationEquipmentAndTelephoneSales => {
1838 "telecommunication_equipment_and_telephone_sales"
1839 }
1840 TelecommunicationServices => "telecommunication_services",
1841 TelegraphServices => "telegraph_services",
1842 TentAndAwningShops => "tent_and_awning_shops",
1843 TestingLaboratories => "testing_laboratories",
1844 TheatricalTicketAgencies => "theatrical_ticket_agencies",
1845 Timeshares => "timeshares",
1846 TireRetreadingAndRepair => "tire_retreading_and_repair",
1847 TollsBridgeFees => "tolls_bridge_fees",
1848 TouristAttractionsAndExhibits => "tourist_attractions_and_exhibits",
1849 TowingServices => "towing_services",
1850 TrailerParksCampgrounds => "trailer_parks_campgrounds",
1851 TransportationServices => "transportation_services",
1852 TravelAgenciesTourOperators => "travel_agencies_tour_operators",
1853 TruckStopIteration => "truck_stop_iteration",
1854 TruckUtilityTrailerRentals => "truck_utility_trailer_rentals",
1855 TypesettingPlateMakingAndRelatedServices => {
1856 "typesetting_plate_making_and_related_services"
1857 }
1858 TypewriterStores => "typewriter_stores",
1859 USFederalGovernmentAgenciesOrDepartments => {
1860 "u_s_federal_government_agencies_or_departments"
1861 }
1862 UniformsCommercialClothing => "uniforms_commercial_clothing",
1863 UsedMerchandiseAndSecondhandStores => "used_merchandise_and_secondhand_stores",
1864 Utilities => "utilities",
1865 VarietyStores => "variety_stores",
1866 VeterinaryServices => "veterinary_services",
1867 VideoAmusementGameSupplies => "video_amusement_game_supplies",
1868 VideoGameArcades => "video_game_arcades",
1869 VideoTapeRentalStores => "video_tape_rental_stores",
1870 VocationalTradeSchools => "vocational_trade_schools",
1871 WatchJewelryRepair => "watch_jewelry_repair",
1872 WeldingRepair => "welding_repair",
1873 WholesaleClubs => "wholesale_clubs",
1874 WigAndToupeeStores => "wig_and_toupee_stores",
1875 WiresMoneyOrders => "wires_money_orders",
1876 WomensAccessoryAndSpecialtyShops => "womens_accessory_and_specialty_shops",
1877 WomensReadyToWearStores => "womens_ready_to_wear_stores",
1878 WreckingAndSalvageYards => "wrecking_and_salvage_yards",
1879 Unknown(v) => v,
1880 }
1881 }
1882}
1883
1884impl std::str::FromStr for IssuingCardholderAuthorizationControlsBlockedCategories {
1885 type Err = std::convert::Infallible;
1886 fn from_str(s: &str) -> Result<Self, Self::Err> {
1887 use IssuingCardholderAuthorizationControlsBlockedCategories::*;
1888 match s {
1889 "ac_refrigeration_repair" => Ok(AcRefrigerationRepair),
1890 "accounting_bookkeeping_services" => Ok(AccountingBookkeepingServices),
1891 "advertising_services" => Ok(AdvertisingServices),
1892 "agricultural_cooperative" => Ok(AgriculturalCooperative),
1893 "airlines_air_carriers" => Ok(AirlinesAirCarriers),
1894 "airports_flying_fields" => Ok(AirportsFlyingFields),
1895 "ambulance_services" => Ok(AmbulanceServices),
1896 "amusement_parks_carnivals" => Ok(AmusementParksCarnivals),
1897 "antique_reproductions" => Ok(AntiqueReproductions),
1898 "antique_shops" => Ok(AntiqueShops),
1899 "aquariums" => Ok(Aquariums),
1900 "architectural_surveying_services" => Ok(ArchitecturalSurveyingServices),
1901 "art_dealers_and_galleries" => Ok(ArtDealersAndGalleries),
1902 "artists_supply_and_craft_shops" => Ok(ArtistsSupplyAndCraftShops),
1903 "auto_and_home_supply_stores" => Ok(AutoAndHomeSupplyStores),
1904 "auto_body_repair_shops" => Ok(AutoBodyRepairShops),
1905 "auto_paint_shops" => Ok(AutoPaintShops),
1906 "auto_service_shops" => Ok(AutoServiceShops),
1907 "automated_cash_disburse" => Ok(AutomatedCashDisburse),
1908 "automated_fuel_dispensers" => Ok(AutomatedFuelDispensers),
1909 "automobile_associations" => Ok(AutomobileAssociations),
1910 "automotive_parts_and_accessories_stores" => Ok(AutomotivePartsAndAccessoriesStores),
1911 "automotive_tire_stores" => Ok(AutomotiveTireStores),
1912 "bail_and_bond_payments" => Ok(BailAndBondPayments),
1913 "bakeries" => Ok(Bakeries),
1914 "bands_orchestras" => Ok(BandsOrchestras),
1915 "barber_and_beauty_shops" => Ok(BarberAndBeautyShops),
1916 "betting_casino_gambling" => Ok(BettingCasinoGambling),
1917 "bicycle_shops" => Ok(BicycleShops),
1918 "billiard_pool_establishments" => Ok(BilliardPoolEstablishments),
1919 "boat_dealers" => Ok(BoatDealers),
1920 "boat_rentals_and_leases" => Ok(BoatRentalsAndLeases),
1921 "book_stores" => Ok(BookStores),
1922 "books_periodicals_and_newspapers" => Ok(BooksPeriodicalsAndNewspapers),
1923 "bowling_alleys" => Ok(BowlingAlleys),
1924 "bus_lines" => Ok(BusLines),
1925 "business_secretarial_schools" => Ok(BusinessSecretarialSchools),
1926 "buying_shopping_services" => Ok(BuyingShoppingServices),
1927 "cable_satellite_and_other_pay_television_and_radio" => {
1928 Ok(CableSatelliteAndOtherPayTelevisionAndRadio)
1929 }
1930 "camera_and_photographic_supply_stores" => Ok(CameraAndPhotographicSupplyStores),
1931 "candy_nut_and_confectionery_stores" => Ok(CandyNutAndConfectioneryStores),
1932 "car_and_truck_dealers_new_used" => Ok(CarAndTruckDealersNewUsed),
1933 "car_and_truck_dealers_used_only" => Ok(CarAndTruckDealersUsedOnly),
1934 "car_rental_agencies" => Ok(CarRentalAgencies),
1935 "car_washes" => Ok(CarWashes),
1936 "carpentry_services" => Ok(CarpentryServices),
1937 "carpet_upholstery_cleaning" => Ok(CarpetUpholsteryCleaning),
1938 "caterers" => Ok(Caterers),
1939 "charitable_and_social_service_organizations_fundraising" => {
1940 Ok(CharitableAndSocialServiceOrganizationsFundraising)
1941 }
1942 "chemicals_and_allied_products" => Ok(ChemicalsAndAlliedProducts),
1943 "child_care_services" => Ok(ChildCareServices),
1944 "childrens_and_infants_wear_stores" => Ok(ChildrensAndInfantsWearStores),
1945 "chiropodists_podiatrists" => Ok(ChiropodistsPodiatrists),
1946 "chiropractors" => Ok(Chiropractors),
1947 "cigar_stores_and_stands" => Ok(CigarStoresAndStands),
1948 "civic_social_fraternal_associations" => Ok(CivicSocialFraternalAssociations),
1949 "cleaning_and_maintenance" => Ok(CleaningAndMaintenance),
1950 "clothing_rental" => Ok(ClothingRental),
1951 "colleges_universities" => Ok(CollegesUniversities),
1952 "commercial_equipment" => Ok(CommercialEquipment),
1953 "commercial_footwear" => Ok(CommercialFootwear),
1954 "commercial_photography_art_and_graphics" => Ok(CommercialPhotographyArtAndGraphics),
1955 "commuter_transport_and_ferries" => Ok(CommuterTransportAndFerries),
1956 "computer_network_services" => Ok(ComputerNetworkServices),
1957 "computer_programming" => Ok(ComputerProgramming),
1958 "computer_repair" => Ok(ComputerRepair),
1959 "computer_software_stores" => Ok(ComputerSoftwareStores),
1960 "computers_peripherals_and_software" => Ok(ComputersPeripheralsAndSoftware),
1961 "concrete_work_services" => Ok(ConcreteWorkServices),
1962 "construction_materials" => Ok(ConstructionMaterials),
1963 "consulting_public_relations" => Ok(ConsultingPublicRelations),
1964 "correspondence_schools" => Ok(CorrespondenceSchools),
1965 "cosmetic_stores" => Ok(CosmeticStores),
1966 "counseling_services" => Ok(CounselingServices),
1967 "country_clubs" => Ok(CountryClubs),
1968 "courier_services" => Ok(CourierServices),
1969 "court_costs" => Ok(CourtCosts),
1970 "credit_reporting_agencies" => Ok(CreditReportingAgencies),
1971 "cruise_lines" => Ok(CruiseLines),
1972 "dairy_products_stores" => Ok(DairyProductsStores),
1973 "dance_hall_studios_schools" => Ok(DanceHallStudiosSchools),
1974 "dating_escort_services" => Ok(DatingEscortServices),
1975 "dentists_orthodontists" => Ok(DentistsOrthodontists),
1976 "department_stores" => Ok(DepartmentStores),
1977 "detective_agencies" => Ok(DetectiveAgencies),
1978 "digital_goods_applications" => Ok(DigitalGoodsApplications),
1979 "digital_goods_games" => Ok(DigitalGoodsGames),
1980 "digital_goods_large_volume" => Ok(DigitalGoodsLargeVolume),
1981 "digital_goods_media" => Ok(DigitalGoodsMedia),
1982 "direct_marketing_catalog_merchant" => Ok(DirectMarketingCatalogMerchant),
1983 "direct_marketing_combination_catalog_and_retail_merchant" => {
1984 Ok(DirectMarketingCombinationCatalogAndRetailMerchant)
1985 }
1986 "direct_marketing_inbound_telemarketing" => Ok(DirectMarketingInboundTelemarketing),
1987 "direct_marketing_insurance_services" => Ok(DirectMarketingInsuranceServices),
1988 "direct_marketing_other" => Ok(DirectMarketingOther),
1989 "direct_marketing_outbound_telemarketing" => Ok(DirectMarketingOutboundTelemarketing),
1990 "direct_marketing_subscription" => Ok(DirectMarketingSubscription),
1991 "direct_marketing_travel" => Ok(DirectMarketingTravel),
1992 "discount_stores" => Ok(DiscountStores),
1993 "doctors" => Ok(Doctors),
1994 "door_to_door_sales" => Ok(DoorToDoorSales),
1995 "drapery_window_covering_and_upholstery_stores" => {
1996 Ok(DraperyWindowCoveringAndUpholsteryStores)
1997 }
1998 "drinking_places" => Ok(DrinkingPlaces),
1999 "drug_stores_and_pharmacies" => Ok(DrugStoresAndPharmacies),
2000 "drugs_drug_proprietaries_and_druggist_sundries" => {
2001 Ok(DrugsDrugProprietariesAndDruggistSundries)
2002 }
2003 "dry_cleaners" => Ok(DryCleaners),
2004 "durable_goods" => Ok(DurableGoods),
2005 "duty_free_stores" => Ok(DutyFreeStores),
2006 "eating_places_restaurants" => Ok(EatingPlacesRestaurants),
2007 "educational_services" => Ok(EducationalServices),
2008 "electric_razor_stores" => Ok(ElectricRazorStores),
2009 "electric_vehicle_charging" => Ok(ElectricVehicleCharging),
2010 "electrical_parts_and_equipment" => Ok(ElectricalPartsAndEquipment),
2011 "electrical_services" => Ok(ElectricalServices),
2012 "electronics_repair_shops" => Ok(ElectronicsRepairShops),
2013 "electronics_stores" => Ok(ElectronicsStores),
2014 "elementary_secondary_schools" => Ok(ElementarySecondarySchools),
2015 "emergency_services_gcas_visa_use_only" => Ok(EmergencyServicesGcasVisaUseOnly),
2016 "employment_temp_agencies" => Ok(EmploymentTempAgencies),
2017 "equipment_rental" => Ok(EquipmentRental),
2018 "exterminating_services" => Ok(ExterminatingServices),
2019 "family_clothing_stores" => Ok(FamilyClothingStores),
2020 "fast_food_restaurants" => Ok(FastFoodRestaurants),
2021 "financial_institutions" => Ok(FinancialInstitutions),
2022 "fines_government_administrative_entities" => Ok(FinesGovernmentAdministrativeEntities),
2023 "fireplace_fireplace_screens_and_accessories_stores" => {
2024 Ok(FireplaceFireplaceScreensAndAccessoriesStores)
2025 }
2026 "floor_covering_stores" => Ok(FloorCoveringStores),
2027 "florists" => Ok(Florists),
2028 "florists_supplies_nursery_stock_and_flowers" => {
2029 Ok(FloristsSuppliesNurseryStockAndFlowers)
2030 }
2031 "freezer_and_locker_meat_provisioners" => Ok(FreezerAndLockerMeatProvisioners),
2032 "fuel_dealers_non_automotive" => Ok(FuelDealersNonAutomotive),
2033 "funeral_services_crematories" => Ok(FuneralServicesCrematories),
2034 "furniture_home_furnishings_and_equipment_stores_except_appliances" => {
2035 Ok(FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances)
2036 }
2037 "furniture_repair_refinishing" => Ok(FurnitureRepairRefinishing),
2038 "furriers_and_fur_shops" => Ok(FurriersAndFurShops),
2039 "general_services" => Ok(GeneralServices),
2040 "gift_card_novelty_and_souvenir_shops" => Ok(GiftCardNoveltyAndSouvenirShops),
2041 "glass_paint_and_wallpaper_stores" => Ok(GlassPaintAndWallpaperStores),
2042 "glassware_crystal_stores" => Ok(GlasswareCrystalStores),
2043 "golf_courses_public" => Ok(GolfCoursesPublic),
2044 "government_licensed_horse_dog_racing_us_region_only" => {
2045 Ok(GovernmentLicensedHorseDogRacingUsRegionOnly)
2046 }
2047 "government_licensed_online_casions_online_gambling_us_region_only" => {
2048 Ok(GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly)
2049 }
2050 "government_owned_lotteries_non_us_region" => Ok(GovernmentOwnedLotteriesNonUsRegion),
2051 "government_owned_lotteries_us_region_only" => Ok(GovernmentOwnedLotteriesUsRegionOnly),
2052 "government_services" => Ok(GovernmentServices),
2053 "grocery_stores_supermarkets" => Ok(GroceryStoresSupermarkets),
2054 "hardware_equipment_and_supplies" => Ok(HardwareEquipmentAndSupplies),
2055 "hardware_stores" => Ok(HardwareStores),
2056 "health_and_beauty_spas" => Ok(HealthAndBeautySpas),
2057 "hearing_aids_sales_and_supplies" => Ok(HearingAidsSalesAndSupplies),
2058 "heating_plumbing_a_c" => Ok(HeatingPlumbingAC),
2059 "hobby_toy_and_game_shops" => Ok(HobbyToyAndGameShops),
2060 "home_supply_warehouse_stores" => Ok(HomeSupplyWarehouseStores),
2061 "hospitals" => Ok(Hospitals),
2062 "hotels_motels_and_resorts" => Ok(HotelsMotelsAndResorts),
2063 "household_appliance_stores" => Ok(HouseholdApplianceStores),
2064 "industrial_supplies" => Ok(IndustrialSupplies),
2065 "information_retrieval_services" => Ok(InformationRetrievalServices),
2066 "insurance_default" => Ok(InsuranceDefault),
2067 "insurance_underwriting_premiums" => Ok(InsuranceUnderwritingPremiums),
2068 "intra_company_purchases" => Ok(IntraCompanyPurchases),
2069 "jewelry_stores_watches_clocks_and_silverware_stores" => {
2070 Ok(JewelryStoresWatchesClocksAndSilverwareStores)
2071 }
2072 "landscaping_services" => Ok(LandscapingServices),
2073 "laundries" => Ok(Laundries),
2074 "laundry_cleaning_services" => Ok(LaundryCleaningServices),
2075 "legal_services_attorneys" => Ok(LegalServicesAttorneys),
2076 "luggage_and_leather_goods_stores" => Ok(LuggageAndLeatherGoodsStores),
2077 "lumber_building_materials_stores" => Ok(LumberBuildingMaterialsStores),
2078 "manual_cash_disburse" => Ok(ManualCashDisburse),
2079 "marinas_service_and_supplies" => Ok(MarinasServiceAndSupplies),
2080 "marketplaces" => Ok(Marketplaces),
2081 "masonry_stonework_and_plaster" => Ok(MasonryStoneworkAndPlaster),
2082 "massage_parlors" => Ok(MassageParlors),
2083 "medical_and_dental_labs" => Ok(MedicalAndDentalLabs),
2084 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" => {
2085 Ok(MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies)
2086 }
2087 "medical_services" => Ok(MedicalServices),
2088 "membership_organizations" => Ok(MembershipOrganizations),
2089 "mens_and_boys_clothing_and_accessories_stores" => {
2090 Ok(MensAndBoysClothingAndAccessoriesStores)
2091 }
2092 "mens_womens_clothing_stores" => Ok(MensWomensClothingStores),
2093 "metal_service_centers" => Ok(MetalServiceCenters),
2094 "miscellaneous" => Ok(Miscellaneous),
2095 "miscellaneous_apparel_and_accessory_shops" => {
2096 Ok(MiscellaneousApparelAndAccessoryShops)
2097 }
2098 "miscellaneous_auto_dealers" => Ok(MiscellaneousAutoDealers),
2099 "miscellaneous_business_services" => Ok(MiscellaneousBusinessServices),
2100 "miscellaneous_food_stores" => Ok(MiscellaneousFoodStores),
2101 "miscellaneous_general_merchandise" => Ok(MiscellaneousGeneralMerchandise),
2102 "miscellaneous_general_services" => Ok(MiscellaneousGeneralServices),
2103 "miscellaneous_home_furnishing_specialty_stores" => {
2104 Ok(MiscellaneousHomeFurnishingSpecialtyStores)
2105 }
2106 "miscellaneous_publishing_and_printing" => Ok(MiscellaneousPublishingAndPrinting),
2107 "miscellaneous_recreation_services" => Ok(MiscellaneousRecreationServices),
2108 "miscellaneous_repair_shops" => Ok(MiscellaneousRepairShops),
2109 "miscellaneous_specialty_retail" => Ok(MiscellaneousSpecialtyRetail),
2110 "mobile_home_dealers" => Ok(MobileHomeDealers),
2111 "motion_picture_theaters" => Ok(MotionPictureTheaters),
2112 "motor_freight_carriers_and_trucking" => Ok(MotorFreightCarriersAndTrucking),
2113 "motor_homes_dealers" => Ok(MotorHomesDealers),
2114 "motor_vehicle_supplies_and_new_parts" => Ok(MotorVehicleSuppliesAndNewParts),
2115 "motorcycle_shops_and_dealers" => Ok(MotorcycleShopsAndDealers),
2116 "motorcycle_shops_dealers" => Ok(MotorcycleShopsDealers),
2117 "music_stores_musical_instruments_pianos_and_sheet_music" => {
2118 Ok(MusicStoresMusicalInstrumentsPianosAndSheetMusic)
2119 }
2120 "news_dealers_and_newsstands" => Ok(NewsDealersAndNewsstands),
2121 "non_fi_money_orders" => Ok(NonFiMoneyOrders),
2122 "non_fi_stored_value_card_purchase_load" => Ok(NonFiStoredValueCardPurchaseLoad),
2123 "nondurable_goods" => Ok(NondurableGoods),
2124 "nurseries_lawn_and_garden_supply_stores" => Ok(NurseriesLawnAndGardenSupplyStores),
2125 "nursing_personal_care" => Ok(NursingPersonalCare),
2126 "office_and_commercial_furniture" => Ok(OfficeAndCommercialFurniture),
2127 "opticians_eyeglasses" => Ok(OpticiansEyeglasses),
2128 "optometrists_ophthalmologist" => Ok(OptometristsOphthalmologist),
2129 "orthopedic_goods_prosthetic_devices" => Ok(OrthopedicGoodsProstheticDevices),
2130 "osteopaths" => Ok(Osteopaths),
2131 "package_stores_beer_wine_and_liquor" => Ok(PackageStoresBeerWineAndLiquor),
2132 "paints_varnishes_and_supplies" => Ok(PaintsVarnishesAndSupplies),
2133 "parking_lots_garages" => Ok(ParkingLotsGarages),
2134 "passenger_railways" => Ok(PassengerRailways),
2135 "pawn_shops" => Ok(PawnShops),
2136 "pet_shops_pet_food_and_supplies" => Ok(PetShopsPetFoodAndSupplies),
2137 "petroleum_and_petroleum_products" => Ok(PetroleumAndPetroleumProducts),
2138 "photo_developing" => Ok(PhotoDeveloping),
2139 "photographic_photocopy_microfilm_equipment_and_supplies" => {
2140 Ok(PhotographicPhotocopyMicrofilmEquipmentAndSupplies)
2141 }
2142 "photographic_studios" => Ok(PhotographicStudios),
2143 "picture_video_production" => Ok(PictureVideoProduction),
2144 "piece_goods_notions_and_other_dry_goods" => Ok(PieceGoodsNotionsAndOtherDryGoods),
2145 "plumbing_heating_equipment_and_supplies" => Ok(PlumbingHeatingEquipmentAndSupplies),
2146 "political_organizations" => Ok(PoliticalOrganizations),
2147 "postal_services_government_only" => Ok(PostalServicesGovernmentOnly),
2148 "precious_stones_and_metals_watches_and_jewelry" => {
2149 Ok(PreciousStonesAndMetalsWatchesAndJewelry)
2150 }
2151 "professional_services" => Ok(ProfessionalServices),
2152 "public_warehousing_and_storage" => Ok(PublicWarehousingAndStorage),
2153 "quick_copy_repro_and_blueprint" => Ok(QuickCopyReproAndBlueprint),
2154 "railroads" => Ok(Railroads),
2155 "real_estate_agents_and_managers_rentals" => Ok(RealEstateAgentsAndManagersRentals),
2156 "record_stores" => Ok(RecordStores),
2157 "recreational_vehicle_rentals" => Ok(RecreationalVehicleRentals),
2158 "religious_goods_stores" => Ok(ReligiousGoodsStores),
2159 "religious_organizations" => Ok(ReligiousOrganizations),
2160 "roofing_siding_sheet_metal" => Ok(RoofingSidingSheetMetal),
2161 "secretarial_support_services" => Ok(SecretarialSupportServices),
2162 "security_brokers_dealers" => Ok(SecurityBrokersDealers),
2163 "service_stations" => Ok(ServiceStations),
2164 "sewing_needlework_fabric_and_piece_goods_stores" => {
2165 Ok(SewingNeedleworkFabricAndPieceGoodsStores)
2166 }
2167 "shoe_repair_hat_cleaning" => Ok(ShoeRepairHatCleaning),
2168 "shoe_stores" => Ok(ShoeStores),
2169 "small_appliance_repair" => Ok(SmallApplianceRepair),
2170 "snowmobile_dealers" => Ok(SnowmobileDealers),
2171 "special_trade_services" => Ok(SpecialTradeServices),
2172 "specialty_cleaning" => Ok(SpecialtyCleaning),
2173 "sporting_goods_stores" => Ok(SportingGoodsStores),
2174 "sporting_recreation_camps" => Ok(SportingRecreationCamps),
2175 "sports_and_riding_apparel_stores" => Ok(SportsAndRidingApparelStores),
2176 "sports_clubs_fields" => Ok(SportsClubsFields),
2177 "stamp_and_coin_stores" => Ok(StampAndCoinStores),
2178 "stationary_office_supplies_printing_and_writing_paper" => {
2179 Ok(StationaryOfficeSuppliesPrintingAndWritingPaper)
2180 }
2181 "stationery_stores_office_and_school_supply_stores" => {
2182 Ok(StationeryStoresOfficeAndSchoolSupplyStores)
2183 }
2184 "swimming_pools_sales" => Ok(SwimmingPoolsSales),
2185 "t_ui_travel_germany" => Ok(TUiTravelGermany),
2186 "tailors_alterations" => Ok(TailorsAlterations),
2187 "tax_payments_government_agencies" => Ok(TaxPaymentsGovernmentAgencies),
2188 "tax_preparation_services" => Ok(TaxPreparationServices),
2189 "taxicabs_limousines" => Ok(TaxicabsLimousines),
2190 "telecommunication_equipment_and_telephone_sales" => {
2191 Ok(TelecommunicationEquipmentAndTelephoneSales)
2192 }
2193 "telecommunication_services" => Ok(TelecommunicationServices),
2194 "telegraph_services" => Ok(TelegraphServices),
2195 "tent_and_awning_shops" => Ok(TentAndAwningShops),
2196 "testing_laboratories" => Ok(TestingLaboratories),
2197 "theatrical_ticket_agencies" => Ok(TheatricalTicketAgencies),
2198 "timeshares" => Ok(Timeshares),
2199 "tire_retreading_and_repair" => Ok(TireRetreadingAndRepair),
2200 "tolls_bridge_fees" => Ok(TollsBridgeFees),
2201 "tourist_attractions_and_exhibits" => Ok(TouristAttractionsAndExhibits),
2202 "towing_services" => Ok(TowingServices),
2203 "trailer_parks_campgrounds" => Ok(TrailerParksCampgrounds),
2204 "transportation_services" => Ok(TransportationServices),
2205 "travel_agencies_tour_operators" => Ok(TravelAgenciesTourOperators),
2206 "truck_stop_iteration" => Ok(TruckStopIteration),
2207 "truck_utility_trailer_rentals" => Ok(TruckUtilityTrailerRentals),
2208 "typesetting_plate_making_and_related_services" => {
2209 Ok(TypesettingPlateMakingAndRelatedServices)
2210 }
2211 "typewriter_stores" => Ok(TypewriterStores),
2212 "u_s_federal_government_agencies_or_departments" => {
2213 Ok(USFederalGovernmentAgenciesOrDepartments)
2214 }
2215 "uniforms_commercial_clothing" => Ok(UniformsCommercialClothing),
2216 "used_merchandise_and_secondhand_stores" => Ok(UsedMerchandiseAndSecondhandStores),
2217 "utilities" => Ok(Utilities),
2218 "variety_stores" => Ok(VarietyStores),
2219 "veterinary_services" => Ok(VeterinaryServices),
2220 "video_amusement_game_supplies" => Ok(VideoAmusementGameSupplies),
2221 "video_game_arcades" => Ok(VideoGameArcades),
2222 "video_tape_rental_stores" => Ok(VideoTapeRentalStores),
2223 "vocational_trade_schools" => Ok(VocationalTradeSchools),
2224 "watch_jewelry_repair" => Ok(WatchJewelryRepair),
2225 "welding_repair" => Ok(WeldingRepair),
2226 "wholesale_clubs" => Ok(WholesaleClubs),
2227 "wig_and_toupee_stores" => Ok(WigAndToupeeStores),
2228 "wires_money_orders" => Ok(WiresMoneyOrders),
2229 "womens_accessory_and_specialty_shops" => Ok(WomensAccessoryAndSpecialtyShops),
2230 "womens_ready_to_wear_stores" => Ok(WomensReadyToWearStores),
2231 "wrecking_and_salvage_yards" => Ok(WreckingAndSalvageYards),
2232 v => Ok(Unknown(v.to_owned())),
2233 }
2234 }
2235}
2236impl std::fmt::Display for IssuingCardholderAuthorizationControlsBlockedCategories {
2237 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
2238 f.write_str(self.as_str())
2239 }
2240}
2241
2242impl std::fmt::Debug for IssuingCardholderAuthorizationControlsBlockedCategories {
2243 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
2244 f.write_str(self.as_str())
2245 }
2246}
2247#[cfg(feature = "serialize")]
2248impl serde::Serialize for IssuingCardholderAuthorizationControlsBlockedCategories {
2249 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
2250 where
2251 S: serde::Serializer,
2252 {
2253 serializer.serialize_str(self.as_str())
2254 }
2255}
2256impl miniserde::Deserialize for IssuingCardholderAuthorizationControlsBlockedCategories {
2257 fn begin(out: &mut Option<Self>) -> &mut dyn miniserde::de::Visitor {
2258 crate::Place::new(out)
2259 }
2260}
2261
2262impl miniserde::de::Visitor
2263 for crate::Place<IssuingCardholderAuthorizationControlsBlockedCategories>
2264{
2265 fn string(&mut self, s: &str) -> miniserde::Result<()> {
2266 use std::str::FromStr;
2267 self.out =
2268 Some(IssuingCardholderAuthorizationControlsBlockedCategories::from_str(s).unwrap());
2269 Ok(())
2270 }
2271}
2272
2273stripe_types::impl_from_val_with_from_str!(IssuingCardholderAuthorizationControlsBlockedCategories);
2274#[cfg(feature = "deserialize")]
2275impl<'de> serde::Deserialize<'de> for IssuingCardholderAuthorizationControlsBlockedCategories {
2276 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
2277 use std::str::FromStr;
2278 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
2279 Ok(Self::from_str(&s).unwrap())
2280 }
2281}