stripe_shared/
issuing_card_spending_limit.rs

1#[derive(Clone, Debug)]
2#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
3#[cfg_attr(feature = "deserialize", derive(serde::Deserialize))]
4pub struct IssuingCardSpendingLimit {
5    /// Maximum amount allowed to spend per interval.
6    /// This amount is in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
7    pub amount: i64,
8    /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) this limit applies to.
9    /// Omitting this field will apply the limit to all categories.
10    pub categories: Option<Vec<IssuingCardSpendingLimitCategories>>,
11    /// Interval (or event) to which the amount applies.
12    pub interval: IssuingCardSpendingLimitInterval,
13}
14#[doc(hidden)]
15pub struct IssuingCardSpendingLimitBuilder {
16    amount: Option<i64>,
17    categories: Option<Option<Vec<IssuingCardSpendingLimitCategories>>>,
18    interval: Option<IssuingCardSpendingLimitInterval>,
19}
20
21#[allow(
22    unused_variables,
23    irrefutable_let_patterns,
24    clippy::let_unit_value,
25    clippy::match_single_binding,
26    clippy::single_match
27)]
28const _: () = {
29    use miniserde::de::{Map, Visitor};
30    use miniserde::json::Value;
31    use miniserde::{Deserialize, Result, make_place};
32    use stripe_types::miniserde_helpers::FromValueOpt;
33    use stripe_types::{MapBuilder, ObjectDeser};
34
35    make_place!(Place);
36
37    impl Deserialize for IssuingCardSpendingLimit {
38        fn begin(out: &mut Option<Self>) -> &mut dyn Visitor {
39            Place::new(out)
40        }
41    }
42
43    struct Builder<'a> {
44        out: &'a mut Option<IssuingCardSpendingLimit>,
45        builder: IssuingCardSpendingLimitBuilder,
46    }
47
48    impl Visitor for Place<IssuingCardSpendingLimit> {
49        fn map(&mut self) -> Result<Box<dyn Map + '_>> {
50            Ok(Box::new(Builder {
51                out: &mut self.out,
52                builder: IssuingCardSpendingLimitBuilder::deser_default(),
53            }))
54        }
55    }
56
57    impl MapBuilder for IssuingCardSpendingLimitBuilder {
58        type Out = IssuingCardSpendingLimit;
59        fn key(&mut self, k: &str) -> Result<&mut dyn Visitor> {
60            Ok(match k {
61                "amount" => Deserialize::begin(&mut self.amount),
62                "categories" => Deserialize::begin(&mut self.categories),
63                "interval" => Deserialize::begin(&mut self.interval),
64                _ => <dyn Visitor>::ignore(),
65            })
66        }
67
68        fn deser_default() -> Self {
69            Self {
70                amount: Deserialize::default(),
71                categories: Deserialize::default(),
72                interval: Deserialize::default(),
73            }
74        }
75
76        fn take_out(&mut self) -> Option<Self::Out> {
77            let (Some(amount), Some(categories), Some(interval)) =
78                (self.amount, self.categories.take(), self.interval)
79            else {
80                return None;
81            };
82            Some(Self::Out { amount, categories, interval })
83        }
84    }
85
86    impl Map for Builder<'_> {
87        fn key(&mut self, k: &str) -> Result<&mut dyn Visitor> {
88            self.builder.key(k)
89        }
90
91        fn finish(&mut self) -> Result<()> {
92            *self.out = self.builder.take_out();
93            Ok(())
94        }
95    }
96
97    impl ObjectDeser for IssuingCardSpendingLimit {
98        type Builder = IssuingCardSpendingLimitBuilder;
99    }
100
101    impl FromValueOpt for IssuingCardSpendingLimit {
102        fn from_value(v: Value) -> Option<Self> {
103            let Value::Object(obj) = v else {
104                return None;
105            };
106            let mut b = IssuingCardSpendingLimitBuilder::deser_default();
107            for (k, v) in obj {
108                match k.as_str() {
109                    "amount" => b.amount = FromValueOpt::from_value(v),
110                    "categories" => b.categories = FromValueOpt::from_value(v),
111                    "interval" => b.interval = FromValueOpt::from_value(v),
112                    _ => {}
113                }
114            }
115            b.take_out()
116        }
117    }
118};
119/// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) this limit applies to.
120/// Omitting this field will apply the limit to all categories.
121#[derive(Clone, Eq, PartialEq)]
122#[non_exhaustive]
123pub enum IssuingCardSpendingLimitCategories {
124    AcRefrigerationRepair,
125    AccountingBookkeepingServices,
126    AdvertisingServices,
127    AgriculturalCooperative,
128    AirlinesAirCarriers,
129    AirportsFlyingFields,
130    AmbulanceServices,
131    AmusementParksCarnivals,
132    AntiqueReproductions,
133    AntiqueShops,
134    Aquariums,
135    ArchitecturalSurveyingServices,
136    ArtDealersAndGalleries,
137    ArtistsSupplyAndCraftShops,
138    AutoAndHomeSupplyStores,
139    AutoBodyRepairShops,
140    AutoPaintShops,
141    AutoServiceShops,
142    AutomatedCashDisburse,
143    AutomatedFuelDispensers,
144    AutomobileAssociations,
145    AutomotivePartsAndAccessoriesStores,
146    AutomotiveTireStores,
147    BailAndBondPayments,
148    Bakeries,
149    BandsOrchestras,
150    BarberAndBeautyShops,
151    BettingCasinoGambling,
152    BicycleShops,
153    BilliardPoolEstablishments,
154    BoatDealers,
155    BoatRentalsAndLeases,
156    BookStores,
157    BooksPeriodicalsAndNewspapers,
158    BowlingAlleys,
159    BusLines,
160    BusinessSecretarialSchools,
161    BuyingShoppingServices,
162    CableSatelliteAndOtherPayTelevisionAndRadio,
163    CameraAndPhotographicSupplyStores,
164    CandyNutAndConfectioneryStores,
165    CarAndTruckDealersNewUsed,
166    CarAndTruckDealersUsedOnly,
167    CarRentalAgencies,
168    CarWashes,
169    CarpentryServices,
170    CarpetUpholsteryCleaning,
171    Caterers,
172    CharitableAndSocialServiceOrganizationsFundraising,
173    ChemicalsAndAlliedProducts,
174    ChildCareServices,
175    ChildrensAndInfantsWearStores,
176    ChiropodistsPodiatrists,
177    Chiropractors,
178    CigarStoresAndStands,
179    CivicSocialFraternalAssociations,
180    CleaningAndMaintenance,
181    ClothingRental,
182    CollegesUniversities,
183    CommercialEquipment,
184    CommercialFootwear,
185    CommercialPhotographyArtAndGraphics,
186    CommuterTransportAndFerries,
187    ComputerNetworkServices,
188    ComputerProgramming,
189    ComputerRepair,
190    ComputerSoftwareStores,
191    ComputersPeripheralsAndSoftware,
192    ConcreteWorkServices,
193    ConstructionMaterials,
194    ConsultingPublicRelations,
195    CorrespondenceSchools,
196    CosmeticStores,
197    CounselingServices,
198    CountryClubs,
199    CourierServices,
200    CourtCosts,
201    CreditReportingAgencies,
202    CruiseLines,
203    DairyProductsStores,
204    DanceHallStudiosSchools,
205    DatingEscortServices,
206    DentistsOrthodontists,
207    DepartmentStores,
208    DetectiveAgencies,
209    DigitalGoodsApplications,
210    DigitalGoodsGames,
211    DigitalGoodsLargeVolume,
212    DigitalGoodsMedia,
213    DirectMarketingCatalogMerchant,
214    DirectMarketingCombinationCatalogAndRetailMerchant,
215    DirectMarketingInboundTelemarketing,
216    DirectMarketingInsuranceServices,
217    DirectMarketingOther,
218    DirectMarketingOutboundTelemarketing,
219    DirectMarketingSubscription,
220    DirectMarketingTravel,
221    DiscountStores,
222    Doctors,
223    DoorToDoorSales,
224    DraperyWindowCoveringAndUpholsteryStores,
225    DrinkingPlaces,
226    DrugStoresAndPharmacies,
227    DrugsDrugProprietariesAndDruggistSundries,
228    DryCleaners,
229    DurableGoods,
230    DutyFreeStores,
231    EatingPlacesRestaurants,
232    EducationalServices,
233    ElectricRazorStores,
234    ElectricVehicleCharging,
235    ElectricalPartsAndEquipment,
236    ElectricalServices,
237    ElectronicsRepairShops,
238    ElectronicsStores,
239    ElementarySecondarySchools,
240    EmergencyServicesGcasVisaUseOnly,
241    EmploymentTempAgencies,
242    EquipmentRental,
243    ExterminatingServices,
244    FamilyClothingStores,
245    FastFoodRestaurants,
246    FinancialInstitutions,
247    FinesGovernmentAdministrativeEntities,
248    FireplaceFireplaceScreensAndAccessoriesStores,
249    FloorCoveringStores,
250    Florists,
251    FloristsSuppliesNurseryStockAndFlowers,
252    FreezerAndLockerMeatProvisioners,
253    FuelDealersNonAutomotive,
254    FuneralServicesCrematories,
255    FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances,
256    FurnitureRepairRefinishing,
257    FurriersAndFurShops,
258    GeneralServices,
259    GiftCardNoveltyAndSouvenirShops,
260    GlassPaintAndWallpaperStores,
261    GlasswareCrystalStores,
262    GolfCoursesPublic,
263    GovernmentLicensedHorseDogRacingUsRegionOnly,
264    GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly,
265    GovernmentOwnedLotteriesNonUsRegion,
266    GovernmentOwnedLotteriesUsRegionOnly,
267    GovernmentServices,
268    GroceryStoresSupermarkets,
269    HardwareEquipmentAndSupplies,
270    HardwareStores,
271    HealthAndBeautySpas,
272    HearingAidsSalesAndSupplies,
273    HeatingPlumbingAC,
274    HobbyToyAndGameShops,
275    HomeSupplyWarehouseStores,
276    Hospitals,
277    HotelsMotelsAndResorts,
278    HouseholdApplianceStores,
279    IndustrialSupplies,
280    InformationRetrievalServices,
281    InsuranceDefault,
282    InsuranceUnderwritingPremiums,
283    IntraCompanyPurchases,
284    JewelryStoresWatchesClocksAndSilverwareStores,
285    LandscapingServices,
286    Laundries,
287    LaundryCleaningServices,
288    LegalServicesAttorneys,
289    LuggageAndLeatherGoodsStores,
290    LumberBuildingMaterialsStores,
291    ManualCashDisburse,
292    MarinasServiceAndSupplies,
293    Marketplaces,
294    MasonryStoneworkAndPlaster,
295    MassageParlors,
296    MedicalAndDentalLabs,
297    MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies,
298    MedicalServices,
299    MembershipOrganizations,
300    MensAndBoysClothingAndAccessoriesStores,
301    MensWomensClothingStores,
302    MetalServiceCenters,
303    Miscellaneous,
304    MiscellaneousApparelAndAccessoryShops,
305    MiscellaneousAutoDealers,
306    MiscellaneousBusinessServices,
307    MiscellaneousFoodStores,
308    MiscellaneousGeneralMerchandise,
309    MiscellaneousGeneralServices,
310    MiscellaneousHomeFurnishingSpecialtyStores,
311    MiscellaneousPublishingAndPrinting,
312    MiscellaneousRecreationServices,
313    MiscellaneousRepairShops,
314    MiscellaneousSpecialtyRetail,
315    MobileHomeDealers,
316    MotionPictureTheaters,
317    MotorFreightCarriersAndTrucking,
318    MotorHomesDealers,
319    MotorVehicleSuppliesAndNewParts,
320    MotorcycleShopsAndDealers,
321    MotorcycleShopsDealers,
322    MusicStoresMusicalInstrumentsPianosAndSheetMusic,
323    NewsDealersAndNewsstands,
324    NonFiMoneyOrders,
325    NonFiStoredValueCardPurchaseLoad,
326    NondurableGoods,
327    NurseriesLawnAndGardenSupplyStores,
328    NursingPersonalCare,
329    OfficeAndCommercialFurniture,
330    OpticiansEyeglasses,
331    OptometristsOphthalmologist,
332    OrthopedicGoodsProstheticDevices,
333    Osteopaths,
334    PackageStoresBeerWineAndLiquor,
335    PaintsVarnishesAndSupplies,
336    ParkingLotsGarages,
337    PassengerRailways,
338    PawnShops,
339    PetShopsPetFoodAndSupplies,
340    PetroleumAndPetroleumProducts,
341    PhotoDeveloping,
342    PhotographicPhotocopyMicrofilmEquipmentAndSupplies,
343    PhotographicStudios,
344    PictureVideoProduction,
345    PieceGoodsNotionsAndOtherDryGoods,
346    PlumbingHeatingEquipmentAndSupplies,
347    PoliticalOrganizations,
348    PostalServicesGovernmentOnly,
349    PreciousStonesAndMetalsWatchesAndJewelry,
350    ProfessionalServices,
351    PublicWarehousingAndStorage,
352    QuickCopyReproAndBlueprint,
353    Railroads,
354    RealEstateAgentsAndManagersRentals,
355    RecordStores,
356    RecreationalVehicleRentals,
357    ReligiousGoodsStores,
358    ReligiousOrganizations,
359    RoofingSidingSheetMetal,
360    SecretarialSupportServices,
361    SecurityBrokersDealers,
362    ServiceStations,
363    SewingNeedleworkFabricAndPieceGoodsStores,
364    ShoeRepairHatCleaning,
365    ShoeStores,
366    SmallApplianceRepair,
367    SnowmobileDealers,
368    SpecialTradeServices,
369    SpecialtyCleaning,
370    SportingGoodsStores,
371    SportingRecreationCamps,
372    SportsAndRidingApparelStores,
373    SportsClubsFields,
374    StampAndCoinStores,
375    StationaryOfficeSuppliesPrintingAndWritingPaper,
376    StationeryStoresOfficeAndSchoolSupplyStores,
377    SwimmingPoolsSales,
378    TUiTravelGermany,
379    TailorsAlterations,
380    TaxPaymentsGovernmentAgencies,
381    TaxPreparationServices,
382    TaxicabsLimousines,
383    TelecommunicationEquipmentAndTelephoneSales,
384    TelecommunicationServices,
385    TelegraphServices,
386    TentAndAwningShops,
387    TestingLaboratories,
388    TheatricalTicketAgencies,
389    Timeshares,
390    TireRetreadingAndRepair,
391    TollsBridgeFees,
392    TouristAttractionsAndExhibits,
393    TowingServices,
394    TrailerParksCampgrounds,
395    TransportationServices,
396    TravelAgenciesTourOperators,
397    TruckStopIteration,
398    TruckUtilityTrailerRentals,
399    TypesettingPlateMakingAndRelatedServices,
400    TypewriterStores,
401    USFederalGovernmentAgenciesOrDepartments,
402    UniformsCommercialClothing,
403    UsedMerchandiseAndSecondhandStores,
404    Utilities,
405    VarietyStores,
406    VeterinaryServices,
407    VideoAmusementGameSupplies,
408    VideoGameArcades,
409    VideoTapeRentalStores,
410    VocationalTradeSchools,
411    WatchJewelryRepair,
412    WeldingRepair,
413    WholesaleClubs,
414    WigAndToupeeStores,
415    WiresMoneyOrders,
416    WomensAccessoryAndSpecialtyShops,
417    WomensReadyToWearStores,
418    WreckingAndSalvageYards,
419    /// An unrecognized value from Stripe. Should not be used as a request parameter.
420    Unknown(String),
421}
422impl IssuingCardSpendingLimitCategories {
423    pub fn as_str(&self) -> &str {
424        use IssuingCardSpendingLimitCategories::*;
425        match self {
426            AcRefrigerationRepair => "ac_refrigeration_repair",
427            AccountingBookkeepingServices => "accounting_bookkeeping_services",
428            AdvertisingServices => "advertising_services",
429            AgriculturalCooperative => "agricultural_cooperative",
430            AirlinesAirCarriers => "airlines_air_carriers",
431            AirportsFlyingFields => "airports_flying_fields",
432            AmbulanceServices => "ambulance_services",
433            AmusementParksCarnivals => "amusement_parks_carnivals",
434            AntiqueReproductions => "antique_reproductions",
435            AntiqueShops => "antique_shops",
436            Aquariums => "aquariums",
437            ArchitecturalSurveyingServices => "architectural_surveying_services",
438            ArtDealersAndGalleries => "art_dealers_and_galleries",
439            ArtistsSupplyAndCraftShops => "artists_supply_and_craft_shops",
440            AutoAndHomeSupplyStores => "auto_and_home_supply_stores",
441            AutoBodyRepairShops => "auto_body_repair_shops",
442            AutoPaintShops => "auto_paint_shops",
443            AutoServiceShops => "auto_service_shops",
444            AutomatedCashDisburse => "automated_cash_disburse",
445            AutomatedFuelDispensers => "automated_fuel_dispensers",
446            AutomobileAssociations => "automobile_associations",
447            AutomotivePartsAndAccessoriesStores => "automotive_parts_and_accessories_stores",
448            AutomotiveTireStores => "automotive_tire_stores",
449            BailAndBondPayments => "bail_and_bond_payments",
450            Bakeries => "bakeries",
451            BandsOrchestras => "bands_orchestras",
452            BarberAndBeautyShops => "barber_and_beauty_shops",
453            BettingCasinoGambling => "betting_casino_gambling",
454            BicycleShops => "bicycle_shops",
455            BilliardPoolEstablishments => "billiard_pool_establishments",
456            BoatDealers => "boat_dealers",
457            BoatRentalsAndLeases => "boat_rentals_and_leases",
458            BookStores => "book_stores",
459            BooksPeriodicalsAndNewspapers => "books_periodicals_and_newspapers",
460            BowlingAlleys => "bowling_alleys",
461            BusLines => "bus_lines",
462            BusinessSecretarialSchools => "business_secretarial_schools",
463            BuyingShoppingServices => "buying_shopping_services",
464            CableSatelliteAndOtherPayTelevisionAndRadio => {
465                "cable_satellite_and_other_pay_television_and_radio"
466            }
467            CameraAndPhotographicSupplyStores => "camera_and_photographic_supply_stores",
468            CandyNutAndConfectioneryStores => "candy_nut_and_confectionery_stores",
469            CarAndTruckDealersNewUsed => "car_and_truck_dealers_new_used",
470            CarAndTruckDealersUsedOnly => "car_and_truck_dealers_used_only",
471            CarRentalAgencies => "car_rental_agencies",
472            CarWashes => "car_washes",
473            CarpentryServices => "carpentry_services",
474            CarpetUpholsteryCleaning => "carpet_upholstery_cleaning",
475            Caterers => "caterers",
476            CharitableAndSocialServiceOrganizationsFundraising => {
477                "charitable_and_social_service_organizations_fundraising"
478            }
479            ChemicalsAndAlliedProducts => "chemicals_and_allied_products",
480            ChildCareServices => "child_care_services",
481            ChildrensAndInfantsWearStores => "childrens_and_infants_wear_stores",
482            ChiropodistsPodiatrists => "chiropodists_podiatrists",
483            Chiropractors => "chiropractors",
484            CigarStoresAndStands => "cigar_stores_and_stands",
485            CivicSocialFraternalAssociations => "civic_social_fraternal_associations",
486            CleaningAndMaintenance => "cleaning_and_maintenance",
487            ClothingRental => "clothing_rental",
488            CollegesUniversities => "colleges_universities",
489            CommercialEquipment => "commercial_equipment",
490            CommercialFootwear => "commercial_footwear",
491            CommercialPhotographyArtAndGraphics => "commercial_photography_art_and_graphics",
492            CommuterTransportAndFerries => "commuter_transport_and_ferries",
493            ComputerNetworkServices => "computer_network_services",
494            ComputerProgramming => "computer_programming",
495            ComputerRepair => "computer_repair",
496            ComputerSoftwareStores => "computer_software_stores",
497            ComputersPeripheralsAndSoftware => "computers_peripherals_and_software",
498            ConcreteWorkServices => "concrete_work_services",
499            ConstructionMaterials => "construction_materials",
500            ConsultingPublicRelations => "consulting_public_relations",
501            CorrespondenceSchools => "correspondence_schools",
502            CosmeticStores => "cosmetic_stores",
503            CounselingServices => "counseling_services",
504            CountryClubs => "country_clubs",
505            CourierServices => "courier_services",
506            CourtCosts => "court_costs",
507            CreditReportingAgencies => "credit_reporting_agencies",
508            CruiseLines => "cruise_lines",
509            DairyProductsStores => "dairy_products_stores",
510            DanceHallStudiosSchools => "dance_hall_studios_schools",
511            DatingEscortServices => "dating_escort_services",
512            DentistsOrthodontists => "dentists_orthodontists",
513            DepartmentStores => "department_stores",
514            DetectiveAgencies => "detective_agencies",
515            DigitalGoodsApplications => "digital_goods_applications",
516            DigitalGoodsGames => "digital_goods_games",
517            DigitalGoodsLargeVolume => "digital_goods_large_volume",
518            DigitalGoodsMedia => "digital_goods_media",
519            DirectMarketingCatalogMerchant => "direct_marketing_catalog_merchant",
520            DirectMarketingCombinationCatalogAndRetailMerchant => {
521                "direct_marketing_combination_catalog_and_retail_merchant"
522            }
523            DirectMarketingInboundTelemarketing => "direct_marketing_inbound_telemarketing",
524            DirectMarketingInsuranceServices => "direct_marketing_insurance_services",
525            DirectMarketingOther => "direct_marketing_other",
526            DirectMarketingOutboundTelemarketing => "direct_marketing_outbound_telemarketing",
527            DirectMarketingSubscription => "direct_marketing_subscription",
528            DirectMarketingTravel => "direct_marketing_travel",
529            DiscountStores => "discount_stores",
530            Doctors => "doctors",
531            DoorToDoorSales => "door_to_door_sales",
532            DraperyWindowCoveringAndUpholsteryStores => {
533                "drapery_window_covering_and_upholstery_stores"
534            }
535            DrinkingPlaces => "drinking_places",
536            DrugStoresAndPharmacies => "drug_stores_and_pharmacies",
537            DrugsDrugProprietariesAndDruggistSundries => {
538                "drugs_drug_proprietaries_and_druggist_sundries"
539            }
540            DryCleaners => "dry_cleaners",
541            DurableGoods => "durable_goods",
542            DutyFreeStores => "duty_free_stores",
543            EatingPlacesRestaurants => "eating_places_restaurants",
544            EducationalServices => "educational_services",
545            ElectricRazorStores => "electric_razor_stores",
546            ElectricVehicleCharging => "electric_vehicle_charging",
547            ElectricalPartsAndEquipment => "electrical_parts_and_equipment",
548            ElectricalServices => "electrical_services",
549            ElectronicsRepairShops => "electronics_repair_shops",
550            ElectronicsStores => "electronics_stores",
551            ElementarySecondarySchools => "elementary_secondary_schools",
552            EmergencyServicesGcasVisaUseOnly => "emergency_services_gcas_visa_use_only",
553            EmploymentTempAgencies => "employment_temp_agencies",
554            EquipmentRental => "equipment_rental",
555            ExterminatingServices => "exterminating_services",
556            FamilyClothingStores => "family_clothing_stores",
557            FastFoodRestaurants => "fast_food_restaurants",
558            FinancialInstitutions => "financial_institutions",
559            FinesGovernmentAdministrativeEntities => "fines_government_administrative_entities",
560            FireplaceFireplaceScreensAndAccessoriesStores => {
561                "fireplace_fireplace_screens_and_accessories_stores"
562            }
563            FloorCoveringStores => "floor_covering_stores",
564            Florists => "florists",
565            FloristsSuppliesNurseryStockAndFlowers => "florists_supplies_nursery_stock_and_flowers",
566            FreezerAndLockerMeatProvisioners => "freezer_and_locker_meat_provisioners",
567            FuelDealersNonAutomotive => "fuel_dealers_non_automotive",
568            FuneralServicesCrematories => "funeral_services_crematories",
569            FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances => {
570                "furniture_home_furnishings_and_equipment_stores_except_appliances"
571            }
572            FurnitureRepairRefinishing => "furniture_repair_refinishing",
573            FurriersAndFurShops => "furriers_and_fur_shops",
574            GeneralServices => "general_services",
575            GiftCardNoveltyAndSouvenirShops => "gift_card_novelty_and_souvenir_shops",
576            GlassPaintAndWallpaperStores => "glass_paint_and_wallpaper_stores",
577            GlasswareCrystalStores => "glassware_crystal_stores",
578            GolfCoursesPublic => "golf_courses_public",
579            GovernmentLicensedHorseDogRacingUsRegionOnly => {
580                "government_licensed_horse_dog_racing_us_region_only"
581            }
582            GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly => {
583                "government_licensed_online_casions_online_gambling_us_region_only"
584            }
585            GovernmentOwnedLotteriesNonUsRegion => "government_owned_lotteries_non_us_region",
586            GovernmentOwnedLotteriesUsRegionOnly => "government_owned_lotteries_us_region_only",
587            GovernmentServices => "government_services",
588            GroceryStoresSupermarkets => "grocery_stores_supermarkets",
589            HardwareEquipmentAndSupplies => "hardware_equipment_and_supplies",
590            HardwareStores => "hardware_stores",
591            HealthAndBeautySpas => "health_and_beauty_spas",
592            HearingAidsSalesAndSupplies => "hearing_aids_sales_and_supplies",
593            HeatingPlumbingAC => "heating_plumbing_a_c",
594            HobbyToyAndGameShops => "hobby_toy_and_game_shops",
595            HomeSupplyWarehouseStores => "home_supply_warehouse_stores",
596            Hospitals => "hospitals",
597            HotelsMotelsAndResorts => "hotels_motels_and_resorts",
598            HouseholdApplianceStores => "household_appliance_stores",
599            IndustrialSupplies => "industrial_supplies",
600            InformationRetrievalServices => "information_retrieval_services",
601            InsuranceDefault => "insurance_default",
602            InsuranceUnderwritingPremiums => "insurance_underwriting_premiums",
603            IntraCompanyPurchases => "intra_company_purchases",
604            JewelryStoresWatchesClocksAndSilverwareStores => {
605                "jewelry_stores_watches_clocks_and_silverware_stores"
606            }
607            LandscapingServices => "landscaping_services",
608            Laundries => "laundries",
609            LaundryCleaningServices => "laundry_cleaning_services",
610            LegalServicesAttorneys => "legal_services_attorneys",
611            LuggageAndLeatherGoodsStores => "luggage_and_leather_goods_stores",
612            LumberBuildingMaterialsStores => "lumber_building_materials_stores",
613            ManualCashDisburse => "manual_cash_disburse",
614            MarinasServiceAndSupplies => "marinas_service_and_supplies",
615            Marketplaces => "marketplaces",
616            MasonryStoneworkAndPlaster => "masonry_stonework_and_plaster",
617            MassageParlors => "massage_parlors",
618            MedicalAndDentalLabs => "medical_and_dental_labs",
619            MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies => {
620                "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"
621            }
622            MedicalServices => "medical_services",
623            MembershipOrganizations => "membership_organizations",
624            MensAndBoysClothingAndAccessoriesStores => {
625                "mens_and_boys_clothing_and_accessories_stores"
626            }
627            MensWomensClothingStores => "mens_womens_clothing_stores",
628            MetalServiceCenters => "metal_service_centers",
629            Miscellaneous => "miscellaneous",
630            MiscellaneousApparelAndAccessoryShops => "miscellaneous_apparel_and_accessory_shops",
631            MiscellaneousAutoDealers => "miscellaneous_auto_dealers",
632            MiscellaneousBusinessServices => "miscellaneous_business_services",
633            MiscellaneousFoodStores => "miscellaneous_food_stores",
634            MiscellaneousGeneralMerchandise => "miscellaneous_general_merchandise",
635            MiscellaneousGeneralServices => "miscellaneous_general_services",
636            MiscellaneousHomeFurnishingSpecialtyStores => {
637                "miscellaneous_home_furnishing_specialty_stores"
638            }
639            MiscellaneousPublishingAndPrinting => "miscellaneous_publishing_and_printing",
640            MiscellaneousRecreationServices => "miscellaneous_recreation_services",
641            MiscellaneousRepairShops => "miscellaneous_repair_shops",
642            MiscellaneousSpecialtyRetail => "miscellaneous_specialty_retail",
643            MobileHomeDealers => "mobile_home_dealers",
644            MotionPictureTheaters => "motion_picture_theaters",
645            MotorFreightCarriersAndTrucking => "motor_freight_carriers_and_trucking",
646            MotorHomesDealers => "motor_homes_dealers",
647            MotorVehicleSuppliesAndNewParts => "motor_vehicle_supplies_and_new_parts",
648            MotorcycleShopsAndDealers => "motorcycle_shops_and_dealers",
649            MotorcycleShopsDealers => "motorcycle_shops_dealers",
650            MusicStoresMusicalInstrumentsPianosAndSheetMusic => {
651                "music_stores_musical_instruments_pianos_and_sheet_music"
652            }
653            NewsDealersAndNewsstands => "news_dealers_and_newsstands",
654            NonFiMoneyOrders => "non_fi_money_orders",
655            NonFiStoredValueCardPurchaseLoad => "non_fi_stored_value_card_purchase_load",
656            NondurableGoods => "nondurable_goods",
657            NurseriesLawnAndGardenSupplyStores => "nurseries_lawn_and_garden_supply_stores",
658            NursingPersonalCare => "nursing_personal_care",
659            OfficeAndCommercialFurniture => "office_and_commercial_furniture",
660            OpticiansEyeglasses => "opticians_eyeglasses",
661            OptometristsOphthalmologist => "optometrists_ophthalmologist",
662            OrthopedicGoodsProstheticDevices => "orthopedic_goods_prosthetic_devices",
663            Osteopaths => "osteopaths",
664            PackageStoresBeerWineAndLiquor => "package_stores_beer_wine_and_liquor",
665            PaintsVarnishesAndSupplies => "paints_varnishes_and_supplies",
666            ParkingLotsGarages => "parking_lots_garages",
667            PassengerRailways => "passenger_railways",
668            PawnShops => "pawn_shops",
669            PetShopsPetFoodAndSupplies => "pet_shops_pet_food_and_supplies",
670            PetroleumAndPetroleumProducts => "petroleum_and_petroleum_products",
671            PhotoDeveloping => "photo_developing",
672            PhotographicPhotocopyMicrofilmEquipmentAndSupplies => {
673                "photographic_photocopy_microfilm_equipment_and_supplies"
674            }
675            PhotographicStudios => "photographic_studios",
676            PictureVideoProduction => "picture_video_production",
677            PieceGoodsNotionsAndOtherDryGoods => "piece_goods_notions_and_other_dry_goods",
678            PlumbingHeatingEquipmentAndSupplies => "plumbing_heating_equipment_and_supplies",
679            PoliticalOrganizations => "political_organizations",
680            PostalServicesGovernmentOnly => "postal_services_government_only",
681            PreciousStonesAndMetalsWatchesAndJewelry => {
682                "precious_stones_and_metals_watches_and_jewelry"
683            }
684            ProfessionalServices => "professional_services",
685            PublicWarehousingAndStorage => "public_warehousing_and_storage",
686            QuickCopyReproAndBlueprint => "quick_copy_repro_and_blueprint",
687            Railroads => "railroads",
688            RealEstateAgentsAndManagersRentals => "real_estate_agents_and_managers_rentals",
689            RecordStores => "record_stores",
690            RecreationalVehicleRentals => "recreational_vehicle_rentals",
691            ReligiousGoodsStores => "religious_goods_stores",
692            ReligiousOrganizations => "religious_organizations",
693            RoofingSidingSheetMetal => "roofing_siding_sheet_metal",
694            SecretarialSupportServices => "secretarial_support_services",
695            SecurityBrokersDealers => "security_brokers_dealers",
696            ServiceStations => "service_stations",
697            SewingNeedleworkFabricAndPieceGoodsStores => {
698                "sewing_needlework_fabric_and_piece_goods_stores"
699            }
700            ShoeRepairHatCleaning => "shoe_repair_hat_cleaning",
701            ShoeStores => "shoe_stores",
702            SmallApplianceRepair => "small_appliance_repair",
703            SnowmobileDealers => "snowmobile_dealers",
704            SpecialTradeServices => "special_trade_services",
705            SpecialtyCleaning => "specialty_cleaning",
706            SportingGoodsStores => "sporting_goods_stores",
707            SportingRecreationCamps => "sporting_recreation_camps",
708            SportsAndRidingApparelStores => "sports_and_riding_apparel_stores",
709            SportsClubsFields => "sports_clubs_fields",
710            StampAndCoinStores => "stamp_and_coin_stores",
711            StationaryOfficeSuppliesPrintingAndWritingPaper => {
712                "stationary_office_supplies_printing_and_writing_paper"
713            }
714            StationeryStoresOfficeAndSchoolSupplyStores => {
715                "stationery_stores_office_and_school_supply_stores"
716            }
717            SwimmingPoolsSales => "swimming_pools_sales",
718            TUiTravelGermany => "t_ui_travel_germany",
719            TailorsAlterations => "tailors_alterations",
720            TaxPaymentsGovernmentAgencies => "tax_payments_government_agencies",
721            TaxPreparationServices => "tax_preparation_services",
722            TaxicabsLimousines => "taxicabs_limousines",
723            TelecommunicationEquipmentAndTelephoneSales => {
724                "telecommunication_equipment_and_telephone_sales"
725            }
726            TelecommunicationServices => "telecommunication_services",
727            TelegraphServices => "telegraph_services",
728            TentAndAwningShops => "tent_and_awning_shops",
729            TestingLaboratories => "testing_laboratories",
730            TheatricalTicketAgencies => "theatrical_ticket_agencies",
731            Timeshares => "timeshares",
732            TireRetreadingAndRepair => "tire_retreading_and_repair",
733            TollsBridgeFees => "tolls_bridge_fees",
734            TouristAttractionsAndExhibits => "tourist_attractions_and_exhibits",
735            TowingServices => "towing_services",
736            TrailerParksCampgrounds => "trailer_parks_campgrounds",
737            TransportationServices => "transportation_services",
738            TravelAgenciesTourOperators => "travel_agencies_tour_operators",
739            TruckStopIteration => "truck_stop_iteration",
740            TruckUtilityTrailerRentals => "truck_utility_trailer_rentals",
741            TypesettingPlateMakingAndRelatedServices => {
742                "typesetting_plate_making_and_related_services"
743            }
744            TypewriterStores => "typewriter_stores",
745            USFederalGovernmentAgenciesOrDepartments => {
746                "u_s_federal_government_agencies_or_departments"
747            }
748            UniformsCommercialClothing => "uniforms_commercial_clothing",
749            UsedMerchandiseAndSecondhandStores => "used_merchandise_and_secondhand_stores",
750            Utilities => "utilities",
751            VarietyStores => "variety_stores",
752            VeterinaryServices => "veterinary_services",
753            VideoAmusementGameSupplies => "video_amusement_game_supplies",
754            VideoGameArcades => "video_game_arcades",
755            VideoTapeRentalStores => "video_tape_rental_stores",
756            VocationalTradeSchools => "vocational_trade_schools",
757            WatchJewelryRepair => "watch_jewelry_repair",
758            WeldingRepair => "welding_repair",
759            WholesaleClubs => "wholesale_clubs",
760            WigAndToupeeStores => "wig_and_toupee_stores",
761            WiresMoneyOrders => "wires_money_orders",
762            WomensAccessoryAndSpecialtyShops => "womens_accessory_and_specialty_shops",
763            WomensReadyToWearStores => "womens_ready_to_wear_stores",
764            WreckingAndSalvageYards => "wrecking_and_salvage_yards",
765            Unknown(v) => v,
766        }
767    }
768}
769
770impl std::str::FromStr for IssuingCardSpendingLimitCategories {
771    type Err = std::convert::Infallible;
772    fn from_str(s: &str) -> Result<Self, Self::Err> {
773        use IssuingCardSpendingLimitCategories::*;
774        match s {
775            "ac_refrigeration_repair" => Ok(AcRefrigerationRepair),
776            "accounting_bookkeeping_services" => Ok(AccountingBookkeepingServices),
777            "advertising_services" => Ok(AdvertisingServices),
778            "agricultural_cooperative" => Ok(AgriculturalCooperative),
779            "airlines_air_carriers" => Ok(AirlinesAirCarriers),
780            "airports_flying_fields" => Ok(AirportsFlyingFields),
781            "ambulance_services" => Ok(AmbulanceServices),
782            "amusement_parks_carnivals" => Ok(AmusementParksCarnivals),
783            "antique_reproductions" => Ok(AntiqueReproductions),
784            "antique_shops" => Ok(AntiqueShops),
785            "aquariums" => Ok(Aquariums),
786            "architectural_surveying_services" => Ok(ArchitecturalSurveyingServices),
787            "art_dealers_and_galleries" => Ok(ArtDealersAndGalleries),
788            "artists_supply_and_craft_shops" => Ok(ArtistsSupplyAndCraftShops),
789            "auto_and_home_supply_stores" => Ok(AutoAndHomeSupplyStores),
790            "auto_body_repair_shops" => Ok(AutoBodyRepairShops),
791            "auto_paint_shops" => Ok(AutoPaintShops),
792            "auto_service_shops" => Ok(AutoServiceShops),
793            "automated_cash_disburse" => Ok(AutomatedCashDisburse),
794            "automated_fuel_dispensers" => Ok(AutomatedFuelDispensers),
795            "automobile_associations" => Ok(AutomobileAssociations),
796            "automotive_parts_and_accessories_stores" => Ok(AutomotivePartsAndAccessoriesStores),
797            "automotive_tire_stores" => Ok(AutomotiveTireStores),
798            "bail_and_bond_payments" => Ok(BailAndBondPayments),
799            "bakeries" => Ok(Bakeries),
800            "bands_orchestras" => Ok(BandsOrchestras),
801            "barber_and_beauty_shops" => Ok(BarberAndBeautyShops),
802            "betting_casino_gambling" => Ok(BettingCasinoGambling),
803            "bicycle_shops" => Ok(BicycleShops),
804            "billiard_pool_establishments" => Ok(BilliardPoolEstablishments),
805            "boat_dealers" => Ok(BoatDealers),
806            "boat_rentals_and_leases" => Ok(BoatRentalsAndLeases),
807            "book_stores" => Ok(BookStores),
808            "books_periodicals_and_newspapers" => Ok(BooksPeriodicalsAndNewspapers),
809            "bowling_alleys" => Ok(BowlingAlleys),
810            "bus_lines" => Ok(BusLines),
811            "business_secretarial_schools" => Ok(BusinessSecretarialSchools),
812            "buying_shopping_services" => Ok(BuyingShoppingServices),
813            "cable_satellite_and_other_pay_television_and_radio" => {
814                Ok(CableSatelliteAndOtherPayTelevisionAndRadio)
815            }
816            "camera_and_photographic_supply_stores" => Ok(CameraAndPhotographicSupplyStores),
817            "candy_nut_and_confectionery_stores" => Ok(CandyNutAndConfectioneryStores),
818            "car_and_truck_dealers_new_used" => Ok(CarAndTruckDealersNewUsed),
819            "car_and_truck_dealers_used_only" => Ok(CarAndTruckDealersUsedOnly),
820            "car_rental_agencies" => Ok(CarRentalAgencies),
821            "car_washes" => Ok(CarWashes),
822            "carpentry_services" => Ok(CarpentryServices),
823            "carpet_upholstery_cleaning" => Ok(CarpetUpholsteryCleaning),
824            "caterers" => Ok(Caterers),
825            "charitable_and_social_service_organizations_fundraising" => {
826                Ok(CharitableAndSocialServiceOrganizationsFundraising)
827            }
828            "chemicals_and_allied_products" => Ok(ChemicalsAndAlliedProducts),
829            "child_care_services" => Ok(ChildCareServices),
830            "childrens_and_infants_wear_stores" => Ok(ChildrensAndInfantsWearStores),
831            "chiropodists_podiatrists" => Ok(ChiropodistsPodiatrists),
832            "chiropractors" => Ok(Chiropractors),
833            "cigar_stores_and_stands" => Ok(CigarStoresAndStands),
834            "civic_social_fraternal_associations" => Ok(CivicSocialFraternalAssociations),
835            "cleaning_and_maintenance" => Ok(CleaningAndMaintenance),
836            "clothing_rental" => Ok(ClothingRental),
837            "colleges_universities" => Ok(CollegesUniversities),
838            "commercial_equipment" => Ok(CommercialEquipment),
839            "commercial_footwear" => Ok(CommercialFootwear),
840            "commercial_photography_art_and_graphics" => Ok(CommercialPhotographyArtAndGraphics),
841            "commuter_transport_and_ferries" => Ok(CommuterTransportAndFerries),
842            "computer_network_services" => Ok(ComputerNetworkServices),
843            "computer_programming" => Ok(ComputerProgramming),
844            "computer_repair" => Ok(ComputerRepair),
845            "computer_software_stores" => Ok(ComputerSoftwareStores),
846            "computers_peripherals_and_software" => Ok(ComputersPeripheralsAndSoftware),
847            "concrete_work_services" => Ok(ConcreteWorkServices),
848            "construction_materials" => Ok(ConstructionMaterials),
849            "consulting_public_relations" => Ok(ConsultingPublicRelations),
850            "correspondence_schools" => Ok(CorrespondenceSchools),
851            "cosmetic_stores" => Ok(CosmeticStores),
852            "counseling_services" => Ok(CounselingServices),
853            "country_clubs" => Ok(CountryClubs),
854            "courier_services" => Ok(CourierServices),
855            "court_costs" => Ok(CourtCosts),
856            "credit_reporting_agencies" => Ok(CreditReportingAgencies),
857            "cruise_lines" => Ok(CruiseLines),
858            "dairy_products_stores" => Ok(DairyProductsStores),
859            "dance_hall_studios_schools" => Ok(DanceHallStudiosSchools),
860            "dating_escort_services" => Ok(DatingEscortServices),
861            "dentists_orthodontists" => Ok(DentistsOrthodontists),
862            "department_stores" => Ok(DepartmentStores),
863            "detective_agencies" => Ok(DetectiveAgencies),
864            "digital_goods_applications" => Ok(DigitalGoodsApplications),
865            "digital_goods_games" => Ok(DigitalGoodsGames),
866            "digital_goods_large_volume" => Ok(DigitalGoodsLargeVolume),
867            "digital_goods_media" => Ok(DigitalGoodsMedia),
868            "direct_marketing_catalog_merchant" => Ok(DirectMarketingCatalogMerchant),
869            "direct_marketing_combination_catalog_and_retail_merchant" => {
870                Ok(DirectMarketingCombinationCatalogAndRetailMerchant)
871            }
872            "direct_marketing_inbound_telemarketing" => Ok(DirectMarketingInboundTelemarketing),
873            "direct_marketing_insurance_services" => Ok(DirectMarketingInsuranceServices),
874            "direct_marketing_other" => Ok(DirectMarketingOther),
875            "direct_marketing_outbound_telemarketing" => Ok(DirectMarketingOutboundTelemarketing),
876            "direct_marketing_subscription" => Ok(DirectMarketingSubscription),
877            "direct_marketing_travel" => Ok(DirectMarketingTravel),
878            "discount_stores" => Ok(DiscountStores),
879            "doctors" => Ok(Doctors),
880            "door_to_door_sales" => Ok(DoorToDoorSales),
881            "drapery_window_covering_and_upholstery_stores" => {
882                Ok(DraperyWindowCoveringAndUpholsteryStores)
883            }
884            "drinking_places" => Ok(DrinkingPlaces),
885            "drug_stores_and_pharmacies" => Ok(DrugStoresAndPharmacies),
886            "drugs_drug_proprietaries_and_druggist_sundries" => {
887                Ok(DrugsDrugProprietariesAndDruggistSundries)
888            }
889            "dry_cleaners" => Ok(DryCleaners),
890            "durable_goods" => Ok(DurableGoods),
891            "duty_free_stores" => Ok(DutyFreeStores),
892            "eating_places_restaurants" => Ok(EatingPlacesRestaurants),
893            "educational_services" => Ok(EducationalServices),
894            "electric_razor_stores" => Ok(ElectricRazorStores),
895            "electric_vehicle_charging" => Ok(ElectricVehicleCharging),
896            "electrical_parts_and_equipment" => Ok(ElectricalPartsAndEquipment),
897            "electrical_services" => Ok(ElectricalServices),
898            "electronics_repair_shops" => Ok(ElectronicsRepairShops),
899            "electronics_stores" => Ok(ElectronicsStores),
900            "elementary_secondary_schools" => Ok(ElementarySecondarySchools),
901            "emergency_services_gcas_visa_use_only" => Ok(EmergencyServicesGcasVisaUseOnly),
902            "employment_temp_agencies" => Ok(EmploymentTempAgencies),
903            "equipment_rental" => Ok(EquipmentRental),
904            "exterminating_services" => Ok(ExterminatingServices),
905            "family_clothing_stores" => Ok(FamilyClothingStores),
906            "fast_food_restaurants" => Ok(FastFoodRestaurants),
907            "financial_institutions" => Ok(FinancialInstitutions),
908            "fines_government_administrative_entities" => Ok(FinesGovernmentAdministrativeEntities),
909            "fireplace_fireplace_screens_and_accessories_stores" => {
910                Ok(FireplaceFireplaceScreensAndAccessoriesStores)
911            }
912            "floor_covering_stores" => Ok(FloorCoveringStores),
913            "florists" => Ok(Florists),
914            "florists_supplies_nursery_stock_and_flowers" => {
915                Ok(FloristsSuppliesNurseryStockAndFlowers)
916            }
917            "freezer_and_locker_meat_provisioners" => Ok(FreezerAndLockerMeatProvisioners),
918            "fuel_dealers_non_automotive" => Ok(FuelDealersNonAutomotive),
919            "funeral_services_crematories" => Ok(FuneralServicesCrematories),
920            "furniture_home_furnishings_and_equipment_stores_except_appliances" => {
921                Ok(FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances)
922            }
923            "furniture_repair_refinishing" => Ok(FurnitureRepairRefinishing),
924            "furriers_and_fur_shops" => Ok(FurriersAndFurShops),
925            "general_services" => Ok(GeneralServices),
926            "gift_card_novelty_and_souvenir_shops" => Ok(GiftCardNoveltyAndSouvenirShops),
927            "glass_paint_and_wallpaper_stores" => Ok(GlassPaintAndWallpaperStores),
928            "glassware_crystal_stores" => Ok(GlasswareCrystalStores),
929            "golf_courses_public" => Ok(GolfCoursesPublic),
930            "government_licensed_horse_dog_racing_us_region_only" => {
931                Ok(GovernmentLicensedHorseDogRacingUsRegionOnly)
932            }
933            "government_licensed_online_casions_online_gambling_us_region_only" => {
934                Ok(GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly)
935            }
936            "government_owned_lotteries_non_us_region" => Ok(GovernmentOwnedLotteriesNonUsRegion),
937            "government_owned_lotteries_us_region_only" => Ok(GovernmentOwnedLotteriesUsRegionOnly),
938            "government_services" => Ok(GovernmentServices),
939            "grocery_stores_supermarkets" => Ok(GroceryStoresSupermarkets),
940            "hardware_equipment_and_supplies" => Ok(HardwareEquipmentAndSupplies),
941            "hardware_stores" => Ok(HardwareStores),
942            "health_and_beauty_spas" => Ok(HealthAndBeautySpas),
943            "hearing_aids_sales_and_supplies" => Ok(HearingAidsSalesAndSupplies),
944            "heating_plumbing_a_c" => Ok(HeatingPlumbingAC),
945            "hobby_toy_and_game_shops" => Ok(HobbyToyAndGameShops),
946            "home_supply_warehouse_stores" => Ok(HomeSupplyWarehouseStores),
947            "hospitals" => Ok(Hospitals),
948            "hotels_motels_and_resorts" => Ok(HotelsMotelsAndResorts),
949            "household_appliance_stores" => Ok(HouseholdApplianceStores),
950            "industrial_supplies" => Ok(IndustrialSupplies),
951            "information_retrieval_services" => Ok(InformationRetrievalServices),
952            "insurance_default" => Ok(InsuranceDefault),
953            "insurance_underwriting_premiums" => Ok(InsuranceUnderwritingPremiums),
954            "intra_company_purchases" => Ok(IntraCompanyPurchases),
955            "jewelry_stores_watches_clocks_and_silverware_stores" => {
956                Ok(JewelryStoresWatchesClocksAndSilverwareStores)
957            }
958            "landscaping_services" => Ok(LandscapingServices),
959            "laundries" => Ok(Laundries),
960            "laundry_cleaning_services" => Ok(LaundryCleaningServices),
961            "legal_services_attorneys" => Ok(LegalServicesAttorneys),
962            "luggage_and_leather_goods_stores" => Ok(LuggageAndLeatherGoodsStores),
963            "lumber_building_materials_stores" => Ok(LumberBuildingMaterialsStores),
964            "manual_cash_disburse" => Ok(ManualCashDisburse),
965            "marinas_service_and_supplies" => Ok(MarinasServiceAndSupplies),
966            "marketplaces" => Ok(Marketplaces),
967            "masonry_stonework_and_plaster" => Ok(MasonryStoneworkAndPlaster),
968            "massage_parlors" => Ok(MassageParlors),
969            "medical_and_dental_labs" => Ok(MedicalAndDentalLabs),
970            "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" => {
971                Ok(MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies)
972            }
973            "medical_services" => Ok(MedicalServices),
974            "membership_organizations" => Ok(MembershipOrganizations),
975            "mens_and_boys_clothing_and_accessories_stores" => {
976                Ok(MensAndBoysClothingAndAccessoriesStores)
977            }
978            "mens_womens_clothing_stores" => Ok(MensWomensClothingStores),
979            "metal_service_centers" => Ok(MetalServiceCenters),
980            "miscellaneous" => Ok(Miscellaneous),
981            "miscellaneous_apparel_and_accessory_shops" => {
982                Ok(MiscellaneousApparelAndAccessoryShops)
983            }
984            "miscellaneous_auto_dealers" => Ok(MiscellaneousAutoDealers),
985            "miscellaneous_business_services" => Ok(MiscellaneousBusinessServices),
986            "miscellaneous_food_stores" => Ok(MiscellaneousFoodStores),
987            "miscellaneous_general_merchandise" => Ok(MiscellaneousGeneralMerchandise),
988            "miscellaneous_general_services" => Ok(MiscellaneousGeneralServices),
989            "miscellaneous_home_furnishing_specialty_stores" => {
990                Ok(MiscellaneousHomeFurnishingSpecialtyStores)
991            }
992            "miscellaneous_publishing_and_printing" => Ok(MiscellaneousPublishingAndPrinting),
993            "miscellaneous_recreation_services" => Ok(MiscellaneousRecreationServices),
994            "miscellaneous_repair_shops" => Ok(MiscellaneousRepairShops),
995            "miscellaneous_specialty_retail" => Ok(MiscellaneousSpecialtyRetail),
996            "mobile_home_dealers" => Ok(MobileHomeDealers),
997            "motion_picture_theaters" => Ok(MotionPictureTheaters),
998            "motor_freight_carriers_and_trucking" => Ok(MotorFreightCarriersAndTrucking),
999            "motor_homes_dealers" => Ok(MotorHomesDealers),
1000            "motor_vehicle_supplies_and_new_parts" => Ok(MotorVehicleSuppliesAndNewParts),
1001            "motorcycle_shops_and_dealers" => Ok(MotorcycleShopsAndDealers),
1002            "motorcycle_shops_dealers" => Ok(MotorcycleShopsDealers),
1003            "music_stores_musical_instruments_pianos_and_sheet_music" => {
1004                Ok(MusicStoresMusicalInstrumentsPianosAndSheetMusic)
1005            }
1006            "news_dealers_and_newsstands" => Ok(NewsDealersAndNewsstands),
1007            "non_fi_money_orders" => Ok(NonFiMoneyOrders),
1008            "non_fi_stored_value_card_purchase_load" => Ok(NonFiStoredValueCardPurchaseLoad),
1009            "nondurable_goods" => Ok(NondurableGoods),
1010            "nurseries_lawn_and_garden_supply_stores" => Ok(NurseriesLawnAndGardenSupplyStores),
1011            "nursing_personal_care" => Ok(NursingPersonalCare),
1012            "office_and_commercial_furniture" => Ok(OfficeAndCommercialFurniture),
1013            "opticians_eyeglasses" => Ok(OpticiansEyeglasses),
1014            "optometrists_ophthalmologist" => Ok(OptometristsOphthalmologist),
1015            "orthopedic_goods_prosthetic_devices" => Ok(OrthopedicGoodsProstheticDevices),
1016            "osteopaths" => Ok(Osteopaths),
1017            "package_stores_beer_wine_and_liquor" => Ok(PackageStoresBeerWineAndLiquor),
1018            "paints_varnishes_and_supplies" => Ok(PaintsVarnishesAndSupplies),
1019            "parking_lots_garages" => Ok(ParkingLotsGarages),
1020            "passenger_railways" => Ok(PassengerRailways),
1021            "pawn_shops" => Ok(PawnShops),
1022            "pet_shops_pet_food_and_supplies" => Ok(PetShopsPetFoodAndSupplies),
1023            "petroleum_and_petroleum_products" => Ok(PetroleumAndPetroleumProducts),
1024            "photo_developing" => Ok(PhotoDeveloping),
1025            "photographic_photocopy_microfilm_equipment_and_supplies" => {
1026                Ok(PhotographicPhotocopyMicrofilmEquipmentAndSupplies)
1027            }
1028            "photographic_studios" => Ok(PhotographicStudios),
1029            "picture_video_production" => Ok(PictureVideoProduction),
1030            "piece_goods_notions_and_other_dry_goods" => Ok(PieceGoodsNotionsAndOtherDryGoods),
1031            "plumbing_heating_equipment_and_supplies" => Ok(PlumbingHeatingEquipmentAndSupplies),
1032            "political_organizations" => Ok(PoliticalOrganizations),
1033            "postal_services_government_only" => Ok(PostalServicesGovernmentOnly),
1034            "precious_stones_and_metals_watches_and_jewelry" => {
1035                Ok(PreciousStonesAndMetalsWatchesAndJewelry)
1036            }
1037            "professional_services" => Ok(ProfessionalServices),
1038            "public_warehousing_and_storage" => Ok(PublicWarehousingAndStorage),
1039            "quick_copy_repro_and_blueprint" => Ok(QuickCopyReproAndBlueprint),
1040            "railroads" => Ok(Railroads),
1041            "real_estate_agents_and_managers_rentals" => Ok(RealEstateAgentsAndManagersRentals),
1042            "record_stores" => Ok(RecordStores),
1043            "recreational_vehicle_rentals" => Ok(RecreationalVehicleRentals),
1044            "religious_goods_stores" => Ok(ReligiousGoodsStores),
1045            "religious_organizations" => Ok(ReligiousOrganizations),
1046            "roofing_siding_sheet_metal" => Ok(RoofingSidingSheetMetal),
1047            "secretarial_support_services" => Ok(SecretarialSupportServices),
1048            "security_brokers_dealers" => Ok(SecurityBrokersDealers),
1049            "service_stations" => Ok(ServiceStations),
1050            "sewing_needlework_fabric_and_piece_goods_stores" => {
1051                Ok(SewingNeedleworkFabricAndPieceGoodsStores)
1052            }
1053            "shoe_repair_hat_cleaning" => Ok(ShoeRepairHatCleaning),
1054            "shoe_stores" => Ok(ShoeStores),
1055            "small_appliance_repair" => Ok(SmallApplianceRepair),
1056            "snowmobile_dealers" => Ok(SnowmobileDealers),
1057            "special_trade_services" => Ok(SpecialTradeServices),
1058            "specialty_cleaning" => Ok(SpecialtyCleaning),
1059            "sporting_goods_stores" => Ok(SportingGoodsStores),
1060            "sporting_recreation_camps" => Ok(SportingRecreationCamps),
1061            "sports_and_riding_apparel_stores" => Ok(SportsAndRidingApparelStores),
1062            "sports_clubs_fields" => Ok(SportsClubsFields),
1063            "stamp_and_coin_stores" => Ok(StampAndCoinStores),
1064            "stationary_office_supplies_printing_and_writing_paper" => {
1065                Ok(StationaryOfficeSuppliesPrintingAndWritingPaper)
1066            }
1067            "stationery_stores_office_and_school_supply_stores" => {
1068                Ok(StationeryStoresOfficeAndSchoolSupplyStores)
1069            }
1070            "swimming_pools_sales" => Ok(SwimmingPoolsSales),
1071            "t_ui_travel_germany" => Ok(TUiTravelGermany),
1072            "tailors_alterations" => Ok(TailorsAlterations),
1073            "tax_payments_government_agencies" => Ok(TaxPaymentsGovernmentAgencies),
1074            "tax_preparation_services" => Ok(TaxPreparationServices),
1075            "taxicabs_limousines" => Ok(TaxicabsLimousines),
1076            "telecommunication_equipment_and_telephone_sales" => {
1077                Ok(TelecommunicationEquipmentAndTelephoneSales)
1078            }
1079            "telecommunication_services" => Ok(TelecommunicationServices),
1080            "telegraph_services" => Ok(TelegraphServices),
1081            "tent_and_awning_shops" => Ok(TentAndAwningShops),
1082            "testing_laboratories" => Ok(TestingLaboratories),
1083            "theatrical_ticket_agencies" => Ok(TheatricalTicketAgencies),
1084            "timeshares" => Ok(Timeshares),
1085            "tire_retreading_and_repair" => Ok(TireRetreadingAndRepair),
1086            "tolls_bridge_fees" => Ok(TollsBridgeFees),
1087            "tourist_attractions_and_exhibits" => Ok(TouristAttractionsAndExhibits),
1088            "towing_services" => Ok(TowingServices),
1089            "trailer_parks_campgrounds" => Ok(TrailerParksCampgrounds),
1090            "transportation_services" => Ok(TransportationServices),
1091            "travel_agencies_tour_operators" => Ok(TravelAgenciesTourOperators),
1092            "truck_stop_iteration" => Ok(TruckStopIteration),
1093            "truck_utility_trailer_rentals" => Ok(TruckUtilityTrailerRentals),
1094            "typesetting_plate_making_and_related_services" => {
1095                Ok(TypesettingPlateMakingAndRelatedServices)
1096            }
1097            "typewriter_stores" => Ok(TypewriterStores),
1098            "u_s_federal_government_agencies_or_departments" => {
1099                Ok(USFederalGovernmentAgenciesOrDepartments)
1100            }
1101            "uniforms_commercial_clothing" => Ok(UniformsCommercialClothing),
1102            "used_merchandise_and_secondhand_stores" => Ok(UsedMerchandiseAndSecondhandStores),
1103            "utilities" => Ok(Utilities),
1104            "variety_stores" => Ok(VarietyStores),
1105            "veterinary_services" => Ok(VeterinaryServices),
1106            "video_amusement_game_supplies" => Ok(VideoAmusementGameSupplies),
1107            "video_game_arcades" => Ok(VideoGameArcades),
1108            "video_tape_rental_stores" => Ok(VideoTapeRentalStores),
1109            "vocational_trade_schools" => Ok(VocationalTradeSchools),
1110            "watch_jewelry_repair" => Ok(WatchJewelryRepair),
1111            "welding_repair" => Ok(WeldingRepair),
1112            "wholesale_clubs" => Ok(WholesaleClubs),
1113            "wig_and_toupee_stores" => Ok(WigAndToupeeStores),
1114            "wires_money_orders" => Ok(WiresMoneyOrders),
1115            "womens_accessory_and_specialty_shops" => Ok(WomensAccessoryAndSpecialtyShops),
1116            "womens_ready_to_wear_stores" => Ok(WomensReadyToWearStores),
1117            "wrecking_and_salvage_yards" => Ok(WreckingAndSalvageYards),
1118            v => Ok(Unknown(v.to_owned())),
1119        }
1120    }
1121}
1122impl std::fmt::Display for IssuingCardSpendingLimitCategories {
1123    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1124        f.write_str(self.as_str())
1125    }
1126}
1127
1128impl std::fmt::Debug for IssuingCardSpendingLimitCategories {
1129    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1130        f.write_str(self.as_str())
1131    }
1132}
1133#[cfg(feature = "serialize")]
1134impl serde::Serialize for IssuingCardSpendingLimitCategories {
1135    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
1136    where
1137        S: serde::Serializer,
1138    {
1139        serializer.serialize_str(self.as_str())
1140    }
1141}
1142impl miniserde::Deserialize for IssuingCardSpendingLimitCategories {
1143    fn begin(out: &mut Option<Self>) -> &mut dyn miniserde::de::Visitor {
1144        crate::Place::new(out)
1145    }
1146}
1147
1148impl miniserde::de::Visitor for crate::Place<IssuingCardSpendingLimitCategories> {
1149    fn string(&mut self, s: &str) -> miniserde::Result<()> {
1150        use std::str::FromStr;
1151        self.out = Some(IssuingCardSpendingLimitCategories::from_str(s).unwrap());
1152        Ok(())
1153    }
1154}
1155
1156stripe_types::impl_from_val_with_from_str!(IssuingCardSpendingLimitCategories);
1157#[cfg(feature = "deserialize")]
1158impl<'de> serde::Deserialize<'de> for IssuingCardSpendingLimitCategories {
1159    fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
1160        use std::str::FromStr;
1161        let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
1162        Ok(Self::from_str(&s).unwrap())
1163    }
1164}
1165/// Interval (or event) to which the amount applies.
1166#[derive(Copy, Clone, Eq, PartialEq)]
1167pub enum IssuingCardSpendingLimitInterval {
1168    AllTime,
1169    Daily,
1170    Monthly,
1171    PerAuthorization,
1172    Weekly,
1173    Yearly,
1174}
1175impl IssuingCardSpendingLimitInterval {
1176    pub fn as_str(self) -> &'static str {
1177        use IssuingCardSpendingLimitInterval::*;
1178        match self {
1179            AllTime => "all_time",
1180            Daily => "daily",
1181            Monthly => "monthly",
1182            PerAuthorization => "per_authorization",
1183            Weekly => "weekly",
1184            Yearly => "yearly",
1185        }
1186    }
1187}
1188
1189impl std::str::FromStr for IssuingCardSpendingLimitInterval {
1190    type Err = stripe_types::StripeParseError;
1191    fn from_str(s: &str) -> Result<Self, Self::Err> {
1192        use IssuingCardSpendingLimitInterval::*;
1193        match s {
1194            "all_time" => Ok(AllTime),
1195            "daily" => Ok(Daily),
1196            "monthly" => Ok(Monthly),
1197            "per_authorization" => Ok(PerAuthorization),
1198            "weekly" => Ok(Weekly),
1199            "yearly" => Ok(Yearly),
1200            _ => Err(stripe_types::StripeParseError),
1201        }
1202    }
1203}
1204impl std::fmt::Display for IssuingCardSpendingLimitInterval {
1205    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1206        f.write_str(self.as_str())
1207    }
1208}
1209
1210impl std::fmt::Debug for IssuingCardSpendingLimitInterval {
1211    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1212        f.write_str(self.as_str())
1213    }
1214}
1215#[cfg(feature = "serialize")]
1216impl serde::Serialize for IssuingCardSpendingLimitInterval {
1217    fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
1218    where
1219        S: serde::Serializer,
1220    {
1221        serializer.serialize_str(self.as_str())
1222    }
1223}
1224impl miniserde::Deserialize for IssuingCardSpendingLimitInterval {
1225    fn begin(out: &mut Option<Self>) -> &mut dyn miniserde::de::Visitor {
1226        crate::Place::new(out)
1227    }
1228}
1229
1230impl miniserde::de::Visitor for crate::Place<IssuingCardSpendingLimitInterval> {
1231    fn string(&mut self, s: &str) -> miniserde::Result<()> {
1232        use std::str::FromStr;
1233        self.out =
1234            Some(IssuingCardSpendingLimitInterval::from_str(s).map_err(|_| miniserde::Error)?);
1235        Ok(())
1236    }
1237}
1238
1239stripe_types::impl_from_val_with_from_str!(IssuingCardSpendingLimitInterval);
1240#[cfg(feature = "deserialize")]
1241impl<'de> serde::Deserialize<'de> for IssuingCardSpendingLimitInterval {
1242    fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
1243        use std::str::FromStr;
1244        let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
1245        Self::from_str(&s).map_err(|_| {
1246            serde::de::Error::custom("Unknown value for IssuingCardSpendingLimitInterval")
1247        })
1248    }
1249}