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