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