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