stripe_shared/
issuing_cardholder_authorization_controls.rs

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