Skip to main content

stripe_shared/
issuing_card_authorization_controls.rs

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