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