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