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 => Ok(Unknown(v.to_owned())),
1181        }
1182    }
1183}
1184impl std::fmt::Display for IssuingCardAuthorizationControlsAllowedCategories {
1185    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1186        f.write_str(self.as_str())
1187    }
1188}
1189
1190impl std::fmt::Debug for IssuingCardAuthorizationControlsAllowedCategories {
1191    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1192        f.write_str(self.as_str())
1193    }
1194}
1195#[cfg(feature = "serialize")]
1196impl serde::Serialize for IssuingCardAuthorizationControlsAllowedCategories {
1197    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
1198    where
1199        S: serde::Serializer,
1200    {
1201        serializer.serialize_str(self.as_str())
1202    }
1203}
1204impl miniserde::Deserialize for IssuingCardAuthorizationControlsAllowedCategories {
1205    fn begin(out: &mut Option<Self>) -> &mut dyn miniserde::de::Visitor {
1206        crate::Place::new(out)
1207    }
1208}
1209
1210impl miniserde::de::Visitor for crate::Place<IssuingCardAuthorizationControlsAllowedCategories> {
1211    fn string(&mut self, s: &str) -> miniserde::Result<()> {
1212        use std::str::FromStr;
1213        self.out = Some(IssuingCardAuthorizationControlsAllowedCategories::from_str(s).unwrap());
1214        Ok(())
1215    }
1216}
1217
1218stripe_types::impl_from_val_with_from_str!(IssuingCardAuthorizationControlsAllowedCategories);
1219#[cfg(feature = "deserialize")]
1220impl<'de> serde::Deserialize<'de> for IssuingCardAuthorizationControlsAllowedCategories {
1221    fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
1222        use std::str::FromStr;
1223        let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
1224        Ok(Self::from_str(&s).unwrap())
1225    }
1226}
1227/// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to decline.
1228/// All other categories will be allowed.
1229/// Cannot be set with `allowed_categories`.
1230#[derive(Clone, Eq, PartialEq)]
1231#[non_exhaustive]
1232pub enum IssuingCardAuthorizationControlsBlockedCategories {
1233    AcRefrigerationRepair,
1234    AccountingBookkeepingServices,
1235    AdvertisingServices,
1236    AgriculturalCooperative,
1237    AirlinesAirCarriers,
1238    AirportsFlyingFields,
1239    AmbulanceServices,
1240    AmusementParksCarnivals,
1241    AntiqueReproductions,
1242    AntiqueShops,
1243    Aquariums,
1244    ArchitecturalSurveyingServices,
1245    ArtDealersAndGalleries,
1246    ArtistsSupplyAndCraftShops,
1247    AutoAndHomeSupplyStores,
1248    AutoBodyRepairShops,
1249    AutoPaintShops,
1250    AutoServiceShops,
1251    AutomatedCashDisburse,
1252    AutomatedFuelDispensers,
1253    AutomobileAssociations,
1254    AutomotivePartsAndAccessoriesStores,
1255    AutomotiveTireStores,
1256    BailAndBondPayments,
1257    Bakeries,
1258    BandsOrchestras,
1259    BarberAndBeautyShops,
1260    BettingCasinoGambling,
1261    BicycleShops,
1262    BilliardPoolEstablishments,
1263    BoatDealers,
1264    BoatRentalsAndLeases,
1265    BookStores,
1266    BooksPeriodicalsAndNewspapers,
1267    BowlingAlleys,
1268    BusLines,
1269    BusinessSecretarialSchools,
1270    BuyingShoppingServices,
1271    CableSatelliteAndOtherPayTelevisionAndRadio,
1272    CameraAndPhotographicSupplyStores,
1273    CandyNutAndConfectioneryStores,
1274    CarAndTruckDealersNewUsed,
1275    CarAndTruckDealersUsedOnly,
1276    CarRentalAgencies,
1277    CarWashes,
1278    CarpentryServices,
1279    CarpetUpholsteryCleaning,
1280    Caterers,
1281    CharitableAndSocialServiceOrganizationsFundraising,
1282    ChemicalsAndAlliedProducts,
1283    ChildCareServices,
1284    ChildrensAndInfantsWearStores,
1285    ChiropodistsPodiatrists,
1286    Chiropractors,
1287    CigarStoresAndStands,
1288    CivicSocialFraternalAssociations,
1289    CleaningAndMaintenance,
1290    ClothingRental,
1291    CollegesUniversities,
1292    CommercialEquipment,
1293    CommercialFootwear,
1294    CommercialPhotographyArtAndGraphics,
1295    CommuterTransportAndFerries,
1296    ComputerNetworkServices,
1297    ComputerProgramming,
1298    ComputerRepair,
1299    ComputerSoftwareStores,
1300    ComputersPeripheralsAndSoftware,
1301    ConcreteWorkServices,
1302    ConstructionMaterials,
1303    ConsultingPublicRelations,
1304    CorrespondenceSchools,
1305    CosmeticStores,
1306    CounselingServices,
1307    CountryClubs,
1308    CourierServices,
1309    CourtCosts,
1310    CreditReportingAgencies,
1311    CruiseLines,
1312    DairyProductsStores,
1313    DanceHallStudiosSchools,
1314    DatingEscortServices,
1315    DentistsOrthodontists,
1316    DepartmentStores,
1317    DetectiveAgencies,
1318    DigitalGoodsApplications,
1319    DigitalGoodsGames,
1320    DigitalGoodsLargeVolume,
1321    DigitalGoodsMedia,
1322    DirectMarketingCatalogMerchant,
1323    DirectMarketingCombinationCatalogAndRetailMerchant,
1324    DirectMarketingInboundTelemarketing,
1325    DirectMarketingInsuranceServices,
1326    DirectMarketingOther,
1327    DirectMarketingOutboundTelemarketing,
1328    DirectMarketingSubscription,
1329    DirectMarketingTravel,
1330    DiscountStores,
1331    Doctors,
1332    DoorToDoorSales,
1333    DraperyWindowCoveringAndUpholsteryStores,
1334    DrinkingPlaces,
1335    DrugStoresAndPharmacies,
1336    DrugsDrugProprietariesAndDruggistSundries,
1337    DryCleaners,
1338    DurableGoods,
1339    DutyFreeStores,
1340    EatingPlacesRestaurants,
1341    EducationalServices,
1342    ElectricRazorStores,
1343    ElectricVehicleCharging,
1344    ElectricalPartsAndEquipment,
1345    ElectricalServices,
1346    ElectronicsRepairShops,
1347    ElectronicsStores,
1348    ElementarySecondarySchools,
1349    EmergencyServicesGcasVisaUseOnly,
1350    EmploymentTempAgencies,
1351    EquipmentRental,
1352    ExterminatingServices,
1353    FamilyClothingStores,
1354    FastFoodRestaurants,
1355    FinancialInstitutions,
1356    FinesGovernmentAdministrativeEntities,
1357    FireplaceFireplaceScreensAndAccessoriesStores,
1358    FloorCoveringStores,
1359    Florists,
1360    FloristsSuppliesNurseryStockAndFlowers,
1361    FreezerAndLockerMeatProvisioners,
1362    FuelDealersNonAutomotive,
1363    FuneralServicesCrematories,
1364    FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances,
1365    FurnitureRepairRefinishing,
1366    FurriersAndFurShops,
1367    GeneralServices,
1368    GiftCardNoveltyAndSouvenirShops,
1369    GlassPaintAndWallpaperStores,
1370    GlasswareCrystalStores,
1371    GolfCoursesPublic,
1372    GovernmentLicensedHorseDogRacingUsRegionOnly,
1373    GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly,
1374    GovernmentOwnedLotteriesNonUsRegion,
1375    GovernmentOwnedLotteriesUsRegionOnly,
1376    GovernmentServices,
1377    GroceryStoresSupermarkets,
1378    HardwareEquipmentAndSupplies,
1379    HardwareStores,
1380    HealthAndBeautySpas,
1381    HearingAidsSalesAndSupplies,
1382    HeatingPlumbingAC,
1383    HobbyToyAndGameShops,
1384    HomeSupplyWarehouseStores,
1385    Hospitals,
1386    HotelsMotelsAndResorts,
1387    HouseholdApplianceStores,
1388    IndustrialSupplies,
1389    InformationRetrievalServices,
1390    InsuranceDefault,
1391    InsuranceUnderwritingPremiums,
1392    IntraCompanyPurchases,
1393    JewelryStoresWatchesClocksAndSilverwareStores,
1394    LandscapingServices,
1395    Laundries,
1396    LaundryCleaningServices,
1397    LegalServicesAttorneys,
1398    LuggageAndLeatherGoodsStores,
1399    LumberBuildingMaterialsStores,
1400    ManualCashDisburse,
1401    MarinasServiceAndSupplies,
1402    Marketplaces,
1403    MasonryStoneworkAndPlaster,
1404    MassageParlors,
1405    MedicalAndDentalLabs,
1406    MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies,
1407    MedicalServices,
1408    MembershipOrganizations,
1409    MensAndBoysClothingAndAccessoriesStores,
1410    MensWomensClothingStores,
1411    MetalServiceCenters,
1412    Miscellaneous,
1413    MiscellaneousApparelAndAccessoryShops,
1414    MiscellaneousAutoDealers,
1415    MiscellaneousBusinessServices,
1416    MiscellaneousFoodStores,
1417    MiscellaneousGeneralMerchandise,
1418    MiscellaneousGeneralServices,
1419    MiscellaneousHomeFurnishingSpecialtyStores,
1420    MiscellaneousPublishingAndPrinting,
1421    MiscellaneousRecreationServices,
1422    MiscellaneousRepairShops,
1423    MiscellaneousSpecialtyRetail,
1424    MobileHomeDealers,
1425    MotionPictureTheaters,
1426    MotorFreightCarriersAndTrucking,
1427    MotorHomesDealers,
1428    MotorVehicleSuppliesAndNewParts,
1429    MotorcycleShopsAndDealers,
1430    MotorcycleShopsDealers,
1431    MusicStoresMusicalInstrumentsPianosAndSheetMusic,
1432    NewsDealersAndNewsstands,
1433    NonFiMoneyOrders,
1434    NonFiStoredValueCardPurchaseLoad,
1435    NondurableGoods,
1436    NurseriesLawnAndGardenSupplyStores,
1437    NursingPersonalCare,
1438    OfficeAndCommercialFurniture,
1439    OpticiansEyeglasses,
1440    OptometristsOphthalmologist,
1441    OrthopedicGoodsProstheticDevices,
1442    Osteopaths,
1443    PackageStoresBeerWineAndLiquor,
1444    PaintsVarnishesAndSupplies,
1445    ParkingLotsGarages,
1446    PassengerRailways,
1447    PawnShops,
1448    PetShopsPetFoodAndSupplies,
1449    PetroleumAndPetroleumProducts,
1450    PhotoDeveloping,
1451    PhotographicPhotocopyMicrofilmEquipmentAndSupplies,
1452    PhotographicStudios,
1453    PictureVideoProduction,
1454    PieceGoodsNotionsAndOtherDryGoods,
1455    PlumbingHeatingEquipmentAndSupplies,
1456    PoliticalOrganizations,
1457    PostalServicesGovernmentOnly,
1458    PreciousStonesAndMetalsWatchesAndJewelry,
1459    ProfessionalServices,
1460    PublicWarehousingAndStorage,
1461    QuickCopyReproAndBlueprint,
1462    Railroads,
1463    RealEstateAgentsAndManagersRentals,
1464    RecordStores,
1465    RecreationalVehicleRentals,
1466    ReligiousGoodsStores,
1467    ReligiousOrganizations,
1468    RoofingSidingSheetMetal,
1469    SecretarialSupportServices,
1470    SecurityBrokersDealers,
1471    ServiceStations,
1472    SewingNeedleworkFabricAndPieceGoodsStores,
1473    ShoeRepairHatCleaning,
1474    ShoeStores,
1475    SmallApplianceRepair,
1476    SnowmobileDealers,
1477    SpecialTradeServices,
1478    SpecialtyCleaning,
1479    SportingGoodsStores,
1480    SportingRecreationCamps,
1481    SportsAndRidingApparelStores,
1482    SportsClubsFields,
1483    StampAndCoinStores,
1484    StationaryOfficeSuppliesPrintingAndWritingPaper,
1485    StationeryStoresOfficeAndSchoolSupplyStores,
1486    SwimmingPoolsSales,
1487    TUiTravelGermany,
1488    TailorsAlterations,
1489    TaxPaymentsGovernmentAgencies,
1490    TaxPreparationServices,
1491    TaxicabsLimousines,
1492    TelecommunicationEquipmentAndTelephoneSales,
1493    TelecommunicationServices,
1494    TelegraphServices,
1495    TentAndAwningShops,
1496    TestingLaboratories,
1497    TheatricalTicketAgencies,
1498    Timeshares,
1499    TireRetreadingAndRepair,
1500    TollsBridgeFees,
1501    TouristAttractionsAndExhibits,
1502    TowingServices,
1503    TrailerParksCampgrounds,
1504    TransportationServices,
1505    TravelAgenciesTourOperators,
1506    TruckStopIteration,
1507    TruckUtilityTrailerRentals,
1508    TypesettingPlateMakingAndRelatedServices,
1509    TypewriterStores,
1510    USFederalGovernmentAgenciesOrDepartments,
1511    UniformsCommercialClothing,
1512    UsedMerchandiseAndSecondhandStores,
1513    Utilities,
1514    VarietyStores,
1515    VeterinaryServices,
1516    VideoAmusementGameSupplies,
1517    VideoGameArcades,
1518    VideoTapeRentalStores,
1519    VocationalTradeSchools,
1520    WatchJewelryRepair,
1521    WeldingRepair,
1522    WholesaleClubs,
1523    WigAndToupeeStores,
1524    WiresMoneyOrders,
1525    WomensAccessoryAndSpecialtyShops,
1526    WomensReadyToWearStores,
1527    WreckingAndSalvageYards,
1528    /// An unrecognized value from Stripe. Should not be used as a request parameter.
1529    Unknown(String),
1530}
1531impl IssuingCardAuthorizationControlsBlockedCategories {
1532    pub fn as_str(&self) -> &str {
1533        use IssuingCardAuthorizationControlsBlockedCategories::*;
1534        match self {
1535            AcRefrigerationRepair => "ac_refrigeration_repair",
1536            AccountingBookkeepingServices => "accounting_bookkeeping_services",
1537            AdvertisingServices => "advertising_services",
1538            AgriculturalCooperative => "agricultural_cooperative",
1539            AirlinesAirCarriers => "airlines_air_carriers",
1540            AirportsFlyingFields => "airports_flying_fields",
1541            AmbulanceServices => "ambulance_services",
1542            AmusementParksCarnivals => "amusement_parks_carnivals",
1543            AntiqueReproductions => "antique_reproductions",
1544            AntiqueShops => "antique_shops",
1545            Aquariums => "aquariums",
1546            ArchitecturalSurveyingServices => "architectural_surveying_services",
1547            ArtDealersAndGalleries => "art_dealers_and_galleries",
1548            ArtistsSupplyAndCraftShops => "artists_supply_and_craft_shops",
1549            AutoAndHomeSupplyStores => "auto_and_home_supply_stores",
1550            AutoBodyRepairShops => "auto_body_repair_shops",
1551            AutoPaintShops => "auto_paint_shops",
1552            AutoServiceShops => "auto_service_shops",
1553            AutomatedCashDisburse => "automated_cash_disburse",
1554            AutomatedFuelDispensers => "automated_fuel_dispensers",
1555            AutomobileAssociations => "automobile_associations",
1556            AutomotivePartsAndAccessoriesStores => "automotive_parts_and_accessories_stores",
1557            AutomotiveTireStores => "automotive_tire_stores",
1558            BailAndBondPayments => "bail_and_bond_payments",
1559            Bakeries => "bakeries",
1560            BandsOrchestras => "bands_orchestras",
1561            BarberAndBeautyShops => "barber_and_beauty_shops",
1562            BettingCasinoGambling => "betting_casino_gambling",
1563            BicycleShops => "bicycle_shops",
1564            BilliardPoolEstablishments => "billiard_pool_establishments",
1565            BoatDealers => "boat_dealers",
1566            BoatRentalsAndLeases => "boat_rentals_and_leases",
1567            BookStores => "book_stores",
1568            BooksPeriodicalsAndNewspapers => "books_periodicals_and_newspapers",
1569            BowlingAlleys => "bowling_alleys",
1570            BusLines => "bus_lines",
1571            BusinessSecretarialSchools => "business_secretarial_schools",
1572            BuyingShoppingServices => "buying_shopping_services",
1573            CableSatelliteAndOtherPayTelevisionAndRadio => {
1574                "cable_satellite_and_other_pay_television_and_radio"
1575            }
1576            CameraAndPhotographicSupplyStores => "camera_and_photographic_supply_stores",
1577            CandyNutAndConfectioneryStores => "candy_nut_and_confectionery_stores",
1578            CarAndTruckDealersNewUsed => "car_and_truck_dealers_new_used",
1579            CarAndTruckDealersUsedOnly => "car_and_truck_dealers_used_only",
1580            CarRentalAgencies => "car_rental_agencies",
1581            CarWashes => "car_washes",
1582            CarpentryServices => "carpentry_services",
1583            CarpetUpholsteryCleaning => "carpet_upholstery_cleaning",
1584            Caterers => "caterers",
1585            CharitableAndSocialServiceOrganizationsFundraising => {
1586                "charitable_and_social_service_organizations_fundraising"
1587            }
1588            ChemicalsAndAlliedProducts => "chemicals_and_allied_products",
1589            ChildCareServices => "child_care_services",
1590            ChildrensAndInfantsWearStores => "childrens_and_infants_wear_stores",
1591            ChiropodistsPodiatrists => "chiropodists_podiatrists",
1592            Chiropractors => "chiropractors",
1593            CigarStoresAndStands => "cigar_stores_and_stands",
1594            CivicSocialFraternalAssociations => "civic_social_fraternal_associations",
1595            CleaningAndMaintenance => "cleaning_and_maintenance",
1596            ClothingRental => "clothing_rental",
1597            CollegesUniversities => "colleges_universities",
1598            CommercialEquipment => "commercial_equipment",
1599            CommercialFootwear => "commercial_footwear",
1600            CommercialPhotographyArtAndGraphics => "commercial_photography_art_and_graphics",
1601            CommuterTransportAndFerries => "commuter_transport_and_ferries",
1602            ComputerNetworkServices => "computer_network_services",
1603            ComputerProgramming => "computer_programming",
1604            ComputerRepair => "computer_repair",
1605            ComputerSoftwareStores => "computer_software_stores",
1606            ComputersPeripheralsAndSoftware => "computers_peripherals_and_software",
1607            ConcreteWorkServices => "concrete_work_services",
1608            ConstructionMaterials => "construction_materials",
1609            ConsultingPublicRelations => "consulting_public_relations",
1610            CorrespondenceSchools => "correspondence_schools",
1611            CosmeticStores => "cosmetic_stores",
1612            CounselingServices => "counseling_services",
1613            CountryClubs => "country_clubs",
1614            CourierServices => "courier_services",
1615            CourtCosts => "court_costs",
1616            CreditReportingAgencies => "credit_reporting_agencies",
1617            CruiseLines => "cruise_lines",
1618            DairyProductsStores => "dairy_products_stores",
1619            DanceHallStudiosSchools => "dance_hall_studios_schools",
1620            DatingEscortServices => "dating_escort_services",
1621            DentistsOrthodontists => "dentists_orthodontists",
1622            DepartmentStores => "department_stores",
1623            DetectiveAgencies => "detective_agencies",
1624            DigitalGoodsApplications => "digital_goods_applications",
1625            DigitalGoodsGames => "digital_goods_games",
1626            DigitalGoodsLargeVolume => "digital_goods_large_volume",
1627            DigitalGoodsMedia => "digital_goods_media",
1628            DirectMarketingCatalogMerchant => "direct_marketing_catalog_merchant",
1629            DirectMarketingCombinationCatalogAndRetailMerchant => {
1630                "direct_marketing_combination_catalog_and_retail_merchant"
1631            }
1632            DirectMarketingInboundTelemarketing => "direct_marketing_inbound_telemarketing",
1633            DirectMarketingInsuranceServices => "direct_marketing_insurance_services",
1634            DirectMarketingOther => "direct_marketing_other",
1635            DirectMarketingOutboundTelemarketing => "direct_marketing_outbound_telemarketing",
1636            DirectMarketingSubscription => "direct_marketing_subscription",
1637            DirectMarketingTravel => "direct_marketing_travel",
1638            DiscountStores => "discount_stores",
1639            Doctors => "doctors",
1640            DoorToDoorSales => "door_to_door_sales",
1641            DraperyWindowCoveringAndUpholsteryStores => {
1642                "drapery_window_covering_and_upholstery_stores"
1643            }
1644            DrinkingPlaces => "drinking_places",
1645            DrugStoresAndPharmacies => "drug_stores_and_pharmacies",
1646            DrugsDrugProprietariesAndDruggistSundries => {
1647                "drugs_drug_proprietaries_and_druggist_sundries"
1648            }
1649            DryCleaners => "dry_cleaners",
1650            DurableGoods => "durable_goods",
1651            DutyFreeStores => "duty_free_stores",
1652            EatingPlacesRestaurants => "eating_places_restaurants",
1653            EducationalServices => "educational_services",
1654            ElectricRazorStores => "electric_razor_stores",
1655            ElectricVehicleCharging => "electric_vehicle_charging",
1656            ElectricalPartsAndEquipment => "electrical_parts_and_equipment",
1657            ElectricalServices => "electrical_services",
1658            ElectronicsRepairShops => "electronics_repair_shops",
1659            ElectronicsStores => "electronics_stores",
1660            ElementarySecondarySchools => "elementary_secondary_schools",
1661            EmergencyServicesGcasVisaUseOnly => "emergency_services_gcas_visa_use_only",
1662            EmploymentTempAgencies => "employment_temp_agencies",
1663            EquipmentRental => "equipment_rental",
1664            ExterminatingServices => "exterminating_services",
1665            FamilyClothingStores => "family_clothing_stores",
1666            FastFoodRestaurants => "fast_food_restaurants",
1667            FinancialInstitutions => "financial_institutions",
1668            FinesGovernmentAdministrativeEntities => "fines_government_administrative_entities",
1669            FireplaceFireplaceScreensAndAccessoriesStores => {
1670                "fireplace_fireplace_screens_and_accessories_stores"
1671            }
1672            FloorCoveringStores => "floor_covering_stores",
1673            Florists => "florists",
1674            FloristsSuppliesNurseryStockAndFlowers => "florists_supplies_nursery_stock_and_flowers",
1675            FreezerAndLockerMeatProvisioners => "freezer_and_locker_meat_provisioners",
1676            FuelDealersNonAutomotive => "fuel_dealers_non_automotive",
1677            FuneralServicesCrematories => "funeral_services_crematories",
1678            FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances => {
1679                "furniture_home_furnishings_and_equipment_stores_except_appliances"
1680            }
1681            FurnitureRepairRefinishing => "furniture_repair_refinishing",
1682            FurriersAndFurShops => "furriers_and_fur_shops",
1683            GeneralServices => "general_services",
1684            GiftCardNoveltyAndSouvenirShops => "gift_card_novelty_and_souvenir_shops",
1685            GlassPaintAndWallpaperStores => "glass_paint_and_wallpaper_stores",
1686            GlasswareCrystalStores => "glassware_crystal_stores",
1687            GolfCoursesPublic => "golf_courses_public",
1688            GovernmentLicensedHorseDogRacingUsRegionOnly => {
1689                "government_licensed_horse_dog_racing_us_region_only"
1690            }
1691            GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly => {
1692                "government_licensed_online_casions_online_gambling_us_region_only"
1693            }
1694            GovernmentOwnedLotteriesNonUsRegion => "government_owned_lotteries_non_us_region",
1695            GovernmentOwnedLotteriesUsRegionOnly => "government_owned_lotteries_us_region_only",
1696            GovernmentServices => "government_services",
1697            GroceryStoresSupermarkets => "grocery_stores_supermarkets",
1698            HardwareEquipmentAndSupplies => "hardware_equipment_and_supplies",
1699            HardwareStores => "hardware_stores",
1700            HealthAndBeautySpas => "health_and_beauty_spas",
1701            HearingAidsSalesAndSupplies => "hearing_aids_sales_and_supplies",
1702            HeatingPlumbingAC => "heating_plumbing_a_c",
1703            HobbyToyAndGameShops => "hobby_toy_and_game_shops",
1704            HomeSupplyWarehouseStores => "home_supply_warehouse_stores",
1705            Hospitals => "hospitals",
1706            HotelsMotelsAndResorts => "hotels_motels_and_resorts",
1707            HouseholdApplianceStores => "household_appliance_stores",
1708            IndustrialSupplies => "industrial_supplies",
1709            InformationRetrievalServices => "information_retrieval_services",
1710            InsuranceDefault => "insurance_default",
1711            InsuranceUnderwritingPremiums => "insurance_underwriting_premiums",
1712            IntraCompanyPurchases => "intra_company_purchases",
1713            JewelryStoresWatchesClocksAndSilverwareStores => {
1714                "jewelry_stores_watches_clocks_and_silverware_stores"
1715            }
1716            LandscapingServices => "landscaping_services",
1717            Laundries => "laundries",
1718            LaundryCleaningServices => "laundry_cleaning_services",
1719            LegalServicesAttorneys => "legal_services_attorneys",
1720            LuggageAndLeatherGoodsStores => "luggage_and_leather_goods_stores",
1721            LumberBuildingMaterialsStores => "lumber_building_materials_stores",
1722            ManualCashDisburse => "manual_cash_disburse",
1723            MarinasServiceAndSupplies => "marinas_service_and_supplies",
1724            Marketplaces => "marketplaces",
1725            MasonryStoneworkAndPlaster => "masonry_stonework_and_plaster",
1726            MassageParlors => "massage_parlors",
1727            MedicalAndDentalLabs => "medical_and_dental_labs",
1728            MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies => {
1729                "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"
1730            }
1731            MedicalServices => "medical_services",
1732            MembershipOrganizations => "membership_organizations",
1733            MensAndBoysClothingAndAccessoriesStores => {
1734                "mens_and_boys_clothing_and_accessories_stores"
1735            }
1736            MensWomensClothingStores => "mens_womens_clothing_stores",
1737            MetalServiceCenters => "metal_service_centers",
1738            Miscellaneous => "miscellaneous",
1739            MiscellaneousApparelAndAccessoryShops => "miscellaneous_apparel_and_accessory_shops",
1740            MiscellaneousAutoDealers => "miscellaneous_auto_dealers",
1741            MiscellaneousBusinessServices => "miscellaneous_business_services",
1742            MiscellaneousFoodStores => "miscellaneous_food_stores",
1743            MiscellaneousGeneralMerchandise => "miscellaneous_general_merchandise",
1744            MiscellaneousGeneralServices => "miscellaneous_general_services",
1745            MiscellaneousHomeFurnishingSpecialtyStores => {
1746                "miscellaneous_home_furnishing_specialty_stores"
1747            }
1748            MiscellaneousPublishingAndPrinting => "miscellaneous_publishing_and_printing",
1749            MiscellaneousRecreationServices => "miscellaneous_recreation_services",
1750            MiscellaneousRepairShops => "miscellaneous_repair_shops",
1751            MiscellaneousSpecialtyRetail => "miscellaneous_specialty_retail",
1752            MobileHomeDealers => "mobile_home_dealers",
1753            MotionPictureTheaters => "motion_picture_theaters",
1754            MotorFreightCarriersAndTrucking => "motor_freight_carriers_and_trucking",
1755            MotorHomesDealers => "motor_homes_dealers",
1756            MotorVehicleSuppliesAndNewParts => "motor_vehicle_supplies_and_new_parts",
1757            MotorcycleShopsAndDealers => "motorcycle_shops_and_dealers",
1758            MotorcycleShopsDealers => "motorcycle_shops_dealers",
1759            MusicStoresMusicalInstrumentsPianosAndSheetMusic => {
1760                "music_stores_musical_instruments_pianos_and_sheet_music"
1761            }
1762            NewsDealersAndNewsstands => "news_dealers_and_newsstands",
1763            NonFiMoneyOrders => "non_fi_money_orders",
1764            NonFiStoredValueCardPurchaseLoad => "non_fi_stored_value_card_purchase_load",
1765            NondurableGoods => "nondurable_goods",
1766            NurseriesLawnAndGardenSupplyStores => "nurseries_lawn_and_garden_supply_stores",
1767            NursingPersonalCare => "nursing_personal_care",
1768            OfficeAndCommercialFurniture => "office_and_commercial_furniture",
1769            OpticiansEyeglasses => "opticians_eyeglasses",
1770            OptometristsOphthalmologist => "optometrists_ophthalmologist",
1771            OrthopedicGoodsProstheticDevices => "orthopedic_goods_prosthetic_devices",
1772            Osteopaths => "osteopaths",
1773            PackageStoresBeerWineAndLiquor => "package_stores_beer_wine_and_liquor",
1774            PaintsVarnishesAndSupplies => "paints_varnishes_and_supplies",
1775            ParkingLotsGarages => "parking_lots_garages",
1776            PassengerRailways => "passenger_railways",
1777            PawnShops => "pawn_shops",
1778            PetShopsPetFoodAndSupplies => "pet_shops_pet_food_and_supplies",
1779            PetroleumAndPetroleumProducts => "petroleum_and_petroleum_products",
1780            PhotoDeveloping => "photo_developing",
1781            PhotographicPhotocopyMicrofilmEquipmentAndSupplies => {
1782                "photographic_photocopy_microfilm_equipment_and_supplies"
1783            }
1784            PhotographicStudios => "photographic_studios",
1785            PictureVideoProduction => "picture_video_production",
1786            PieceGoodsNotionsAndOtherDryGoods => "piece_goods_notions_and_other_dry_goods",
1787            PlumbingHeatingEquipmentAndSupplies => "plumbing_heating_equipment_and_supplies",
1788            PoliticalOrganizations => "political_organizations",
1789            PostalServicesGovernmentOnly => "postal_services_government_only",
1790            PreciousStonesAndMetalsWatchesAndJewelry => {
1791                "precious_stones_and_metals_watches_and_jewelry"
1792            }
1793            ProfessionalServices => "professional_services",
1794            PublicWarehousingAndStorage => "public_warehousing_and_storage",
1795            QuickCopyReproAndBlueprint => "quick_copy_repro_and_blueprint",
1796            Railroads => "railroads",
1797            RealEstateAgentsAndManagersRentals => "real_estate_agents_and_managers_rentals",
1798            RecordStores => "record_stores",
1799            RecreationalVehicleRentals => "recreational_vehicle_rentals",
1800            ReligiousGoodsStores => "religious_goods_stores",
1801            ReligiousOrganizations => "religious_organizations",
1802            RoofingSidingSheetMetal => "roofing_siding_sheet_metal",
1803            SecretarialSupportServices => "secretarial_support_services",
1804            SecurityBrokersDealers => "security_brokers_dealers",
1805            ServiceStations => "service_stations",
1806            SewingNeedleworkFabricAndPieceGoodsStores => {
1807                "sewing_needlework_fabric_and_piece_goods_stores"
1808            }
1809            ShoeRepairHatCleaning => "shoe_repair_hat_cleaning",
1810            ShoeStores => "shoe_stores",
1811            SmallApplianceRepair => "small_appliance_repair",
1812            SnowmobileDealers => "snowmobile_dealers",
1813            SpecialTradeServices => "special_trade_services",
1814            SpecialtyCleaning => "specialty_cleaning",
1815            SportingGoodsStores => "sporting_goods_stores",
1816            SportingRecreationCamps => "sporting_recreation_camps",
1817            SportsAndRidingApparelStores => "sports_and_riding_apparel_stores",
1818            SportsClubsFields => "sports_clubs_fields",
1819            StampAndCoinStores => "stamp_and_coin_stores",
1820            StationaryOfficeSuppliesPrintingAndWritingPaper => {
1821                "stationary_office_supplies_printing_and_writing_paper"
1822            }
1823            StationeryStoresOfficeAndSchoolSupplyStores => {
1824                "stationery_stores_office_and_school_supply_stores"
1825            }
1826            SwimmingPoolsSales => "swimming_pools_sales",
1827            TUiTravelGermany => "t_ui_travel_germany",
1828            TailorsAlterations => "tailors_alterations",
1829            TaxPaymentsGovernmentAgencies => "tax_payments_government_agencies",
1830            TaxPreparationServices => "tax_preparation_services",
1831            TaxicabsLimousines => "taxicabs_limousines",
1832            TelecommunicationEquipmentAndTelephoneSales => {
1833                "telecommunication_equipment_and_telephone_sales"
1834            }
1835            TelecommunicationServices => "telecommunication_services",
1836            TelegraphServices => "telegraph_services",
1837            TentAndAwningShops => "tent_and_awning_shops",
1838            TestingLaboratories => "testing_laboratories",
1839            TheatricalTicketAgencies => "theatrical_ticket_agencies",
1840            Timeshares => "timeshares",
1841            TireRetreadingAndRepair => "tire_retreading_and_repair",
1842            TollsBridgeFees => "tolls_bridge_fees",
1843            TouristAttractionsAndExhibits => "tourist_attractions_and_exhibits",
1844            TowingServices => "towing_services",
1845            TrailerParksCampgrounds => "trailer_parks_campgrounds",
1846            TransportationServices => "transportation_services",
1847            TravelAgenciesTourOperators => "travel_agencies_tour_operators",
1848            TruckStopIteration => "truck_stop_iteration",
1849            TruckUtilityTrailerRentals => "truck_utility_trailer_rentals",
1850            TypesettingPlateMakingAndRelatedServices => {
1851                "typesetting_plate_making_and_related_services"
1852            }
1853            TypewriterStores => "typewriter_stores",
1854            USFederalGovernmentAgenciesOrDepartments => {
1855                "u_s_federal_government_agencies_or_departments"
1856            }
1857            UniformsCommercialClothing => "uniforms_commercial_clothing",
1858            UsedMerchandiseAndSecondhandStores => "used_merchandise_and_secondhand_stores",
1859            Utilities => "utilities",
1860            VarietyStores => "variety_stores",
1861            VeterinaryServices => "veterinary_services",
1862            VideoAmusementGameSupplies => "video_amusement_game_supplies",
1863            VideoGameArcades => "video_game_arcades",
1864            VideoTapeRentalStores => "video_tape_rental_stores",
1865            VocationalTradeSchools => "vocational_trade_schools",
1866            WatchJewelryRepair => "watch_jewelry_repair",
1867            WeldingRepair => "welding_repair",
1868            WholesaleClubs => "wholesale_clubs",
1869            WigAndToupeeStores => "wig_and_toupee_stores",
1870            WiresMoneyOrders => "wires_money_orders",
1871            WomensAccessoryAndSpecialtyShops => "womens_accessory_and_specialty_shops",
1872            WomensReadyToWearStores => "womens_ready_to_wear_stores",
1873            WreckingAndSalvageYards => "wrecking_and_salvage_yards",
1874            Unknown(v) => v,
1875        }
1876    }
1877}
1878
1879impl std::str::FromStr for IssuingCardAuthorizationControlsBlockedCategories {
1880    type Err = std::convert::Infallible;
1881    fn from_str(s: &str) -> Result<Self, Self::Err> {
1882        use IssuingCardAuthorizationControlsBlockedCategories::*;
1883        match s {
1884            "ac_refrigeration_repair" => Ok(AcRefrigerationRepair),
1885            "accounting_bookkeeping_services" => Ok(AccountingBookkeepingServices),
1886            "advertising_services" => Ok(AdvertisingServices),
1887            "agricultural_cooperative" => Ok(AgriculturalCooperative),
1888            "airlines_air_carriers" => Ok(AirlinesAirCarriers),
1889            "airports_flying_fields" => Ok(AirportsFlyingFields),
1890            "ambulance_services" => Ok(AmbulanceServices),
1891            "amusement_parks_carnivals" => Ok(AmusementParksCarnivals),
1892            "antique_reproductions" => Ok(AntiqueReproductions),
1893            "antique_shops" => Ok(AntiqueShops),
1894            "aquariums" => Ok(Aquariums),
1895            "architectural_surveying_services" => Ok(ArchitecturalSurveyingServices),
1896            "art_dealers_and_galleries" => Ok(ArtDealersAndGalleries),
1897            "artists_supply_and_craft_shops" => Ok(ArtistsSupplyAndCraftShops),
1898            "auto_and_home_supply_stores" => Ok(AutoAndHomeSupplyStores),
1899            "auto_body_repair_shops" => Ok(AutoBodyRepairShops),
1900            "auto_paint_shops" => Ok(AutoPaintShops),
1901            "auto_service_shops" => Ok(AutoServiceShops),
1902            "automated_cash_disburse" => Ok(AutomatedCashDisburse),
1903            "automated_fuel_dispensers" => Ok(AutomatedFuelDispensers),
1904            "automobile_associations" => Ok(AutomobileAssociations),
1905            "automotive_parts_and_accessories_stores" => Ok(AutomotivePartsAndAccessoriesStores),
1906            "automotive_tire_stores" => Ok(AutomotiveTireStores),
1907            "bail_and_bond_payments" => Ok(BailAndBondPayments),
1908            "bakeries" => Ok(Bakeries),
1909            "bands_orchestras" => Ok(BandsOrchestras),
1910            "barber_and_beauty_shops" => Ok(BarberAndBeautyShops),
1911            "betting_casino_gambling" => Ok(BettingCasinoGambling),
1912            "bicycle_shops" => Ok(BicycleShops),
1913            "billiard_pool_establishments" => Ok(BilliardPoolEstablishments),
1914            "boat_dealers" => Ok(BoatDealers),
1915            "boat_rentals_and_leases" => Ok(BoatRentalsAndLeases),
1916            "book_stores" => Ok(BookStores),
1917            "books_periodicals_and_newspapers" => Ok(BooksPeriodicalsAndNewspapers),
1918            "bowling_alleys" => Ok(BowlingAlleys),
1919            "bus_lines" => Ok(BusLines),
1920            "business_secretarial_schools" => Ok(BusinessSecretarialSchools),
1921            "buying_shopping_services" => Ok(BuyingShoppingServices),
1922            "cable_satellite_and_other_pay_television_and_radio" => {
1923                Ok(CableSatelliteAndOtherPayTelevisionAndRadio)
1924            }
1925            "camera_and_photographic_supply_stores" => Ok(CameraAndPhotographicSupplyStores),
1926            "candy_nut_and_confectionery_stores" => Ok(CandyNutAndConfectioneryStores),
1927            "car_and_truck_dealers_new_used" => Ok(CarAndTruckDealersNewUsed),
1928            "car_and_truck_dealers_used_only" => Ok(CarAndTruckDealersUsedOnly),
1929            "car_rental_agencies" => Ok(CarRentalAgencies),
1930            "car_washes" => Ok(CarWashes),
1931            "carpentry_services" => Ok(CarpentryServices),
1932            "carpet_upholstery_cleaning" => Ok(CarpetUpholsteryCleaning),
1933            "caterers" => Ok(Caterers),
1934            "charitable_and_social_service_organizations_fundraising" => {
1935                Ok(CharitableAndSocialServiceOrganizationsFundraising)
1936            }
1937            "chemicals_and_allied_products" => Ok(ChemicalsAndAlliedProducts),
1938            "child_care_services" => Ok(ChildCareServices),
1939            "childrens_and_infants_wear_stores" => Ok(ChildrensAndInfantsWearStores),
1940            "chiropodists_podiatrists" => Ok(ChiropodistsPodiatrists),
1941            "chiropractors" => Ok(Chiropractors),
1942            "cigar_stores_and_stands" => Ok(CigarStoresAndStands),
1943            "civic_social_fraternal_associations" => Ok(CivicSocialFraternalAssociations),
1944            "cleaning_and_maintenance" => Ok(CleaningAndMaintenance),
1945            "clothing_rental" => Ok(ClothingRental),
1946            "colleges_universities" => Ok(CollegesUniversities),
1947            "commercial_equipment" => Ok(CommercialEquipment),
1948            "commercial_footwear" => Ok(CommercialFootwear),
1949            "commercial_photography_art_and_graphics" => Ok(CommercialPhotographyArtAndGraphics),
1950            "commuter_transport_and_ferries" => Ok(CommuterTransportAndFerries),
1951            "computer_network_services" => Ok(ComputerNetworkServices),
1952            "computer_programming" => Ok(ComputerProgramming),
1953            "computer_repair" => Ok(ComputerRepair),
1954            "computer_software_stores" => Ok(ComputerSoftwareStores),
1955            "computers_peripherals_and_software" => Ok(ComputersPeripheralsAndSoftware),
1956            "concrete_work_services" => Ok(ConcreteWorkServices),
1957            "construction_materials" => Ok(ConstructionMaterials),
1958            "consulting_public_relations" => Ok(ConsultingPublicRelations),
1959            "correspondence_schools" => Ok(CorrespondenceSchools),
1960            "cosmetic_stores" => Ok(CosmeticStores),
1961            "counseling_services" => Ok(CounselingServices),
1962            "country_clubs" => Ok(CountryClubs),
1963            "courier_services" => Ok(CourierServices),
1964            "court_costs" => Ok(CourtCosts),
1965            "credit_reporting_agencies" => Ok(CreditReportingAgencies),
1966            "cruise_lines" => Ok(CruiseLines),
1967            "dairy_products_stores" => Ok(DairyProductsStores),
1968            "dance_hall_studios_schools" => Ok(DanceHallStudiosSchools),
1969            "dating_escort_services" => Ok(DatingEscortServices),
1970            "dentists_orthodontists" => Ok(DentistsOrthodontists),
1971            "department_stores" => Ok(DepartmentStores),
1972            "detective_agencies" => Ok(DetectiveAgencies),
1973            "digital_goods_applications" => Ok(DigitalGoodsApplications),
1974            "digital_goods_games" => Ok(DigitalGoodsGames),
1975            "digital_goods_large_volume" => Ok(DigitalGoodsLargeVolume),
1976            "digital_goods_media" => Ok(DigitalGoodsMedia),
1977            "direct_marketing_catalog_merchant" => Ok(DirectMarketingCatalogMerchant),
1978            "direct_marketing_combination_catalog_and_retail_merchant" => {
1979                Ok(DirectMarketingCombinationCatalogAndRetailMerchant)
1980            }
1981            "direct_marketing_inbound_telemarketing" => Ok(DirectMarketingInboundTelemarketing),
1982            "direct_marketing_insurance_services" => Ok(DirectMarketingInsuranceServices),
1983            "direct_marketing_other" => Ok(DirectMarketingOther),
1984            "direct_marketing_outbound_telemarketing" => Ok(DirectMarketingOutboundTelemarketing),
1985            "direct_marketing_subscription" => Ok(DirectMarketingSubscription),
1986            "direct_marketing_travel" => Ok(DirectMarketingTravel),
1987            "discount_stores" => Ok(DiscountStores),
1988            "doctors" => Ok(Doctors),
1989            "door_to_door_sales" => Ok(DoorToDoorSales),
1990            "drapery_window_covering_and_upholstery_stores" => {
1991                Ok(DraperyWindowCoveringAndUpholsteryStores)
1992            }
1993            "drinking_places" => Ok(DrinkingPlaces),
1994            "drug_stores_and_pharmacies" => Ok(DrugStoresAndPharmacies),
1995            "drugs_drug_proprietaries_and_druggist_sundries" => {
1996                Ok(DrugsDrugProprietariesAndDruggistSundries)
1997            }
1998            "dry_cleaners" => Ok(DryCleaners),
1999            "durable_goods" => Ok(DurableGoods),
2000            "duty_free_stores" => Ok(DutyFreeStores),
2001            "eating_places_restaurants" => Ok(EatingPlacesRestaurants),
2002            "educational_services" => Ok(EducationalServices),
2003            "electric_razor_stores" => Ok(ElectricRazorStores),
2004            "electric_vehicle_charging" => Ok(ElectricVehicleCharging),
2005            "electrical_parts_and_equipment" => Ok(ElectricalPartsAndEquipment),
2006            "electrical_services" => Ok(ElectricalServices),
2007            "electronics_repair_shops" => Ok(ElectronicsRepairShops),
2008            "electronics_stores" => Ok(ElectronicsStores),
2009            "elementary_secondary_schools" => Ok(ElementarySecondarySchools),
2010            "emergency_services_gcas_visa_use_only" => Ok(EmergencyServicesGcasVisaUseOnly),
2011            "employment_temp_agencies" => Ok(EmploymentTempAgencies),
2012            "equipment_rental" => Ok(EquipmentRental),
2013            "exterminating_services" => Ok(ExterminatingServices),
2014            "family_clothing_stores" => Ok(FamilyClothingStores),
2015            "fast_food_restaurants" => Ok(FastFoodRestaurants),
2016            "financial_institutions" => Ok(FinancialInstitutions),
2017            "fines_government_administrative_entities" => Ok(FinesGovernmentAdministrativeEntities),
2018            "fireplace_fireplace_screens_and_accessories_stores" => {
2019                Ok(FireplaceFireplaceScreensAndAccessoriesStores)
2020            }
2021            "floor_covering_stores" => Ok(FloorCoveringStores),
2022            "florists" => Ok(Florists),
2023            "florists_supplies_nursery_stock_and_flowers" => {
2024                Ok(FloristsSuppliesNurseryStockAndFlowers)
2025            }
2026            "freezer_and_locker_meat_provisioners" => Ok(FreezerAndLockerMeatProvisioners),
2027            "fuel_dealers_non_automotive" => Ok(FuelDealersNonAutomotive),
2028            "funeral_services_crematories" => Ok(FuneralServicesCrematories),
2029            "furniture_home_furnishings_and_equipment_stores_except_appliances" => {
2030                Ok(FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances)
2031            }
2032            "furniture_repair_refinishing" => Ok(FurnitureRepairRefinishing),
2033            "furriers_and_fur_shops" => Ok(FurriersAndFurShops),
2034            "general_services" => Ok(GeneralServices),
2035            "gift_card_novelty_and_souvenir_shops" => Ok(GiftCardNoveltyAndSouvenirShops),
2036            "glass_paint_and_wallpaper_stores" => Ok(GlassPaintAndWallpaperStores),
2037            "glassware_crystal_stores" => Ok(GlasswareCrystalStores),
2038            "golf_courses_public" => Ok(GolfCoursesPublic),
2039            "government_licensed_horse_dog_racing_us_region_only" => {
2040                Ok(GovernmentLicensedHorseDogRacingUsRegionOnly)
2041            }
2042            "government_licensed_online_casions_online_gambling_us_region_only" => {
2043                Ok(GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly)
2044            }
2045            "government_owned_lotteries_non_us_region" => Ok(GovernmentOwnedLotteriesNonUsRegion),
2046            "government_owned_lotteries_us_region_only" => Ok(GovernmentOwnedLotteriesUsRegionOnly),
2047            "government_services" => Ok(GovernmentServices),
2048            "grocery_stores_supermarkets" => Ok(GroceryStoresSupermarkets),
2049            "hardware_equipment_and_supplies" => Ok(HardwareEquipmentAndSupplies),
2050            "hardware_stores" => Ok(HardwareStores),
2051            "health_and_beauty_spas" => Ok(HealthAndBeautySpas),
2052            "hearing_aids_sales_and_supplies" => Ok(HearingAidsSalesAndSupplies),
2053            "heating_plumbing_a_c" => Ok(HeatingPlumbingAC),
2054            "hobby_toy_and_game_shops" => Ok(HobbyToyAndGameShops),
2055            "home_supply_warehouse_stores" => Ok(HomeSupplyWarehouseStores),
2056            "hospitals" => Ok(Hospitals),
2057            "hotels_motels_and_resorts" => Ok(HotelsMotelsAndResorts),
2058            "household_appliance_stores" => Ok(HouseholdApplianceStores),
2059            "industrial_supplies" => Ok(IndustrialSupplies),
2060            "information_retrieval_services" => Ok(InformationRetrievalServices),
2061            "insurance_default" => Ok(InsuranceDefault),
2062            "insurance_underwriting_premiums" => Ok(InsuranceUnderwritingPremiums),
2063            "intra_company_purchases" => Ok(IntraCompanyPurchases),
2064            "jewelry_stores_watches_clocks_and_silverware_stores" => {
2065                Ok(JewelryStoresWatchesClocksAndSilverwareStores)
2066            }
2067            "landscaping_services" => Ok(LandscapingServices),
2068            "laundries" => Ok(Laundries),
2069            "laundry_cleaning_services" => Ok(LaundryCleaningServices),
2070            "legal_services_attorneys" => Ok(LegalServicesAttorneys),
2071            "luggage_and_leather_goods_stores" => Ok(LuggageAndLeatherGoodsStores),
2072            "lumber_building_materials_stores" => Ok(LumberBuildingMaterialsStores),
2073            "manual_cash_disburse" => Ok(ManualCashDisburse),
2074            "marinas_service_and_supplies" => Ok(MarinasServiceAndSupplies),
2075            "marketplaces" => Ok(Marketplaces),
2076            "masonry_stonework_and_plaster" => Ok(MasonryStoneworkAndPlaster),
2077            "massage_parlors" => Ok(MassageParlors),
2078            "medical_and_dental_labs" => Ok(MedicalAndDentalLabs),
2079            "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" => {
2080                Ok(MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies)
2081            }
2082            "medical_services" => Ok(MedicalServices),
2083            "membership_organizations" => Ok(MembershipOrganizations),
2084            "mens_and_boys_clothing_and_accessories_stores" => {
2085                Ok(MensAndBoysClothingAndAccessoriesStores)
2086            }
2087            "mens_womens_clothing_stores" => Ok(MensWomensClothingStores),
2088            "metal_service_centers" => Ok(MetalServiceCenters),
2089            "miscellaneous" => Ok(Miscellaneous),
2090            "miscellaneous_apparel_and_accessory_shops" => {
2091                Ok(MiscellaneousApparelAndAccessoryShops)
2092            }
2093            "miscellaneous_auto_dealers" => Ok(MiscellaneousAutoDealers),
2094            "miscellaneous_business_services" => Ok(MiscellaneousBusinessServices),
2095            "miscellaneous_food_stores" => Ok(MiscellaneousFoodStores),
2096            "miscellaneous_general_merchandise" => Ok(MiscellaneousGeneralMerchandise),
2097            "miscellaneous_general_services" => Ok(MiscellaneousGeneralServices),
2098            "miscellaneous_home_furnishing_specialty_stores" => {
2099                Ok(MiscellaneousHomeFurnishingSpecialtyStores)
2100            }
2101            "miscellaneous_publishing_and_printing" => Ok(MiscellaneousPublishingAndPrinting),
2102            "miscellaneous_recreation_services" => Ok(MiscellaneousRecreationServices),
2103            "miscellaneous_repair_shops" => Ok(MiscellaneousRepairShops),
2104            "miscellaneous_specialty_retail" => Ok(MiscellaneousSpecialtyRetail),
2105            "mobile_home_dealers" => Ok(MobileHomeDealers),
2106            "motion_picture_theaters" => Ok(MotionPictureTheaters),
2107            "motor_freight_carriers_and_trucking" => Ok(MotorFreightCarriersAndTrucking),
2108            "motor_homes_dealers" => Ok(MotorHomesDealers),
2109            "motor_vehicle_supplies_and_new_parts" => Ok(MotorVehicleSuppliesAndNewParts),
2110            "motorcycle_shops_and_dealers" => Ok(MotorcycleShopsAndDealers),
2111            "motorcycle_shops_dealers" => Ok(MotorcycleShopsDealers),
2112            "music_stores_musical_instruments_pianos_and_sheet_music" => {
2113                Ok(MusicStoresMusicalInstrumentsPianosAndSheetMusic)
2114            }
2115            "news_dealers_and_newsstands" => Ok(NewsDealersAndNewsstands),
2116            "non_fi_money_orders" => Ok(NonFiMoneyOrders),
2117            "non_fi_stored_value_card_purchase_load" => Ok(NonFiStoredValueCardPurchaseLoad),
2118            "nondurable_goods" => Ok(NondurableGoods),
2119            "nurseries_lawn_and_garden_supply_stores" => Ok(NurseriesLawnAndGardenSupplyStores),
2120            "nursing_personal_care" => Ok(NursingPersonalCare),
2121            "office_and_commercial_furniture" => Ok(OfficeAndCommercialFurniture),
2122            "opticians_eyeglasses" => Ok(OpticiansEyeglasses),
2123            "optometrists_ophthalmologist" => Ok(OptometristsOphthalmologist),
2124            "orthopedic_goods_prosthetic_devices" => Ok(OrthopedicGoodsProstheticDevices),
2125            "osteopaths" => Ok(Osteopaths),
2126            "package_stores_beer_wine_and_liquor" => Ok(PackageStoresBeerWineAndLiquor),
2127            "paints_varnishes_and_supplies" => Ok(PaintsVarnishesAndSupplies),
2128            "parking_lots_garages" => Ok(ParkingLotsGarages),
2129            "passenger_railways" => Ok(PassengerRailways),
2130            "pawn_shops" => Ok(PawnShops),
2131            "pet_shops_pet_food_and_supplies" => Ok(PetShopsPetFoodAndSupplies),
2132            "petroleum_and_petroleum_products" => Ok(PetroleumAndPetroleumProducts),
2133            "photo_developing" => Ok(PhotoDeveloping),
2134            "photographic_photocopy_microfilm_equipment_and_supplies" => {
2135                Ok(PhotographicPhotocopyMicrofilmEquipmentAndSupplies)
2136            }
2137            "photographic_studios" => Ok(PhotographicStudios),
2138            "picture_video_production" => Ok(PictureVideoProduction),
2139            "piece_goods_notions_and_other_dry_goods" => Ok(PieceGoodsNotionsAndOtherDryGoods),
2140            "plumbing_heating_equipment_and_supplies" => Ok(PlumbingHeatingEquipmentAndSupplies),
2141            "political_organizations" => Ok(PoliticalOrganizations),
2142            "postal_services_government_only" => Ok(PostalServicesGovernmentOnly),
2143            "precious_stones_and_metals_watches_and_jewelry" => {
2144                Ok(PreciousStonesAndMetalsWatchesAndJewelry)
2145            }
2146            "professional_services" => Ok(ProfessionalServices),
2147            "public_warehousing_and_storage" => Ok(PublicWarehousingAndStorage),
2148            "quick_copy_repro_and_blueprint" => Ok(QuickCopyReproAndBlueprint),
2149            "railroads" => Ok(Railroads),
2150            "real_estate_agents_and_managers_rentals" => Ok(RealEstateAgentsAndManagersRentals),
2151            "record_stores" => Ok(RecordStores),
2152            "recreational_vehicle_rentals" => Ok(RecreationalVehicleRentals),
2153            "religious_goods_stores" => Ok(ReligiousGoodsStores),
2154            "religious_organizations" => Ok(ReligiousOrganizations),
2155            "roofing_siding_sheet_metal" => Ok(RoofingSidingSheetMetal),
2156            "secretarial_support_services" => Ok(SecretarialSupportServices),
2157            "security_brokers_dealers" => Ok(SecurityBrokersDealers),
2158            "service_stations" => Ok(ServiceStations),
2159            "sewing_needlework_fabric_and_piece_goods_stores" => {
2160                Ok(SewingNeedleworkFabricAndPieceGoodsStores)
2161            }
2162            "shoe_repair_hat_cleaning" => Ok(ShoeRepairHatCleaning),
2163            "shoe_stores" => Ok(ShoeStores),
2164            "small_appliance_repair" => Ok(SmallApplianceRepair),
2165            "snowmobile_dealers" => Ok(SnowmobileDealers),
2166            "special_trade_services" => Ok(SpecialTradeServices),
2167            "specialty_cleaning" => Ok(SpecialtyCleaning),
2168            "sporting_goods_stores" => Ok(SportingGoodsStores),
2169            "sporting_recreation_camps" => Ok(SportingRecreationCamps),
2170            "sports_and_riding_apparel_stores" => Ok(SportsAndRidingApparelStores),
2171            "sports_clubs_fields" => Ok(SportsClubsFields),
2172            "stamp_and_coin_stores" => Ok(StampAndCoinStores),
2173            "stationary_office_supplies_printing_and_writing_paper" => {
2174                Ok(StationaryOfficeSuppliesPrintingAndWritingPaper)
2175            }
2176            "stationery_stores_office_and_school_supply_stores" => {
2177                Ok(StationeryStoresOfficeAndSchoolSupplyStores)
2178            }
2179            "swimming_pools_sales" => Ok(SwimmingPoolsSales),
2180            "t_ui_travel_germany" => Ok(TUiTravelGermany),
2181            "tailors_alterations" => Ok(TailorsAlterations),
2182            "tax_payments_government_agencies" => Ok(TaxPaymentsGovernmentAgencies),
2183            "tax_preparation_services" => Ok(TaxPreparationServices),
2184            "taxicabs_limousines" => Ok(TaxicabsLimousines),
2185            "telecommunication_equipment_and_telephone_sales" => {
2186                Ok(TelecommunicationEquipmentAndTelephoneSales)
2187            }
2188            "telecommunication_services" => Ok(TelecommunicationServices),
2189            "telegraph_services" => Ok(TelegraphServices),
2190            "tent_and_awning_shops" => Ok(TentAndAwningShops),
2191            "testing_laboratories" => Ok(TestingLaboratories),
2192            "theatrical_ticket_agencies" => Ok(TheatricalTicketAgencies),
2193            "timeshares" => Ok(Timeshares),
2194            "tire_retreading_and_repair" => Ok(TireRetreadingAndRepair),
2195            "tolls_bridge_fees" => Ok(TollsBridgeFees),
2196            "tourist_attractions_and_exhibits" => Ok(TouristAttractionsAndExhibits),
2197            "towing_services" => Ok(TowingServices),
2198            "trailer_parks_campgrounds" => Ok(TrailerParksCampgrounds),
2199            "transportation_services" => Ok(TransportationServices),
2200            "travel_agencies_tour_operators" => Ok(TravelAgenciesTourOperators),
2201            "truck_stop_iteration" => Ok(TruckStopIteration),
2202            "truck_utility_trailer_rentals" => Ok(TruckUtilityTrailerRentals),
2203            "typesetting_plate_making_and_related_services" => {
2204                Ok(TypesettingPlateMakingAndRelatedServices)
2205            }
2206            "typewriter_stores" => Ok(TypewriterStores),
2207            "u_s_federal_government_agencies_or_departments" => {
2208                Ok(USFederalGovernmentAgenciesOrDepartments)
2209            }
2210            "uniforms_commercial_clothing" => Ok(UniformsCommercialClothing),
2211            "used_merchandise_and_secondhand_stores" => Ok(UsedMerchandiseAndSecondhandStores),
2212            "utilities" => Ok(Utilities),
2213            "variety_stores" => Ok(VarietyStores),
2214            "veterinary_services" => Ok(VeterinaryServices),
2215            "video_amusement_game_supplies" => Ok(VideoAmusementGameSupplies),
2216            "video_game_arcades" => Ok(VideoGameArcades),
2217            "video_tape_rental_stores" => Ok(VideoTapeRentalStores),
2218            "vocational_trade_schools" => Ok(VocationalTradeSchools),
2219            "watch_jewelry_repair" => Ok(WatchJewelryRepair),
2220            "welding_repair" => Ok(WeldingRepair),
2221            "wholesale_clubs" => Ok(WholesaleClubs),
2222            "wig_and_toupee_stores" => Ok(WigAndToupeeStores),
2223            "wires_money_orders" => Ok(WiresMoneyOrders),
2224            "womens_accessory_and_specialty_shops" => Ok(WomensAccessoryAndSpecialtyShops),
2225            "womens_ready_to_wear_stores" => Ok(WomensReadyToWearStores),
2226            "wrecking_and_salvage_yards" => Ok(WreckingAndSalvageYards),
2227            v => Ok(Unknown(v.to_owned())),
2228        }
2229    }
2230}
2231impl std::fmt::Display for IssuingCardAuthorizationControlsBlockedCategories {
2232    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
2233        f.write_str(self.as_str())
2234    }
2235}
2236
2237impl std::fmt::Debug for IssuingCardAuthorizationControlsBlockedCategories {
2238    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
2239        f.write_str(self.as_str())
2240    }
2241}
2242#[cfg(feature = "serialize")]
2243impl serde::Serialize for IssuingCardAuthorizationControlsBlockedCategories {
2244    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
2245    where
2246        S: serde::Serializer,
2247    {
2248        serializer.serialize_str(self.as_str())
2249    }
2250}
2251impl miniserde::Deserialize for IssuingCardAuthorizationControlsBlockedCategories {
2252    fn begin(out: &mut Option<Self>) -> &mut dyn miniserde::de::Visitor {
2253        crate::Place::new(out)
2254    }
2255}
2256
2257impl miniserde::de::Visitor for crate::Place<IssuingCardAuthorizationControlsBlockedCategories> {
2258    fn string(&mut self, s: &str) -> miniserde::Result<()> {
2259        use std::str::FromStr;
2260        self.out = Some(IssuingCardAuthorizationControlsBlockedCategories::from_str(s).unwrap());
2261        Ok(())
2262    }
2263}
2264
2265stripe_types::impl_from_val_with_from_str!(IssuingCardAuthorizationControlsBlockedCategories);
2266#[cfg(feature = "deserialize")]
2267impl<'de> serde::Deserialize<'de> for IssuingCardAuthorizationControlsBlockedCategories {
2268    fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
2269        use std::str::FromStr;
2270        let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
2271        Ok(Self::from_str(&s).unwrap())
2272    }
2273}