stripe/resources/generated/
issuing_card.rs

1// ======================================
2// This file was automatically generated.
3// ======================================
4
5use crate::ids::IssuingCardId;
6use crate::params::{Expandable, Metadata, Object, Timestamp};
7use crate::resources::{
8    Address, CardBrand, Currency, IssuingCardShippingStatus, IssuingCardShippingType,
9    IssuingCardType, IssuingCardholder, MerchantCategory,
10};
11use serde::{Deserialize, Serialize};
12
13/// The resource representing a Stripe "IssuingCard".
14///
15/// For more details see <https://stripe.com/docs/api/issuing/cards/object>
16#[derive(Clone, Debug, Default, Deserialize, Serialize)]
17pub struct IssuingCard {
18    /// Unique identifier for the object.
19    pub id: IssuingCardId,
20
21    /// The brand of the card.
22    pub brand: CardBrand,
23
24    /// The reason why the card was canceled.
25    pub cancellation_reason: Option<IssuingCardCancellationReason>,
26
27    pub cardholder: IssuingCardholder,
28
29    /// Time at which the object was created.
30    ///
31    /// Measured in seconds since the Unix epoch.
32    pub created: Timestamp,
33
34    /// Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
35    ///
36    /// Supported currencies are `usd` in the US, `eur` in the EU, and `gbp` in the UK.
37    pub currency: Currency,
38
39    /// The card's CVC.
40    ///
41    /// For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with [the `expand` parameter](https://stripe.com/docs/api/expanding_objects).
42    /// Additionally, it's only available via the ["Retrieve a card" endpoint](https://stripe.com/docs/api/issuing/cards/retrieve), not via "List all cards" or any other endpoint.
43    #[serde(skip_serializing_if = "Option::is_none")]
44    pub cvc: Option<String>,
45
46    /// The expiration month of the card.
47    pub exp_month: i64,
48
49    /// The expiration year of the card.
50    pub exp_year: i64,
51
52    /// The financial account this card is attached to.
53    #[serde(skip_serializing_if = "Option::is_none")]
54    pub financial_account: Option<String>,
55
56    /// The last 4 digits of the card number.
57    pub last4: String,
58
59    /// Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
60    pub livemode: bool,
61
62    /// Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object.
63    ///
64    /// This can be useful for storing additional information about the object in a structured format.
65    pub metadata: Metadata,
66
67    /// The full unredacted card number.
68    ///
69    /// For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with [the `expand` parameter](https://stripe.com/docs/api/expanding_objects).
70    /// Additionally, it's only available via the ["Retrieve a card" endpoint](https://stripe.com/docs/api/issuing/cards/retrieve), not via "List all cards" or any other endpoint.
71    #[serde(skip_serializing_if = "Option::is_none")]
72    pub number: Option<String>,
73
74    /// The latest card that replaces this card, if any.
75    pub replaced_by: Option<Expandable<IssuingCard>>,
76
77    /// The card this card replaces, if any.
78    pub replacement_for: Option<Expandable<IssuingCard>>,
79
80    /// The reason why the previous card needed to be replaced.
81    pub replacement_reason: Option<IssuingCardReplacementReason>,
82
83    /// Where and how the card will be shipped.
84    pub shipping: Option<IssuingCardShipping>,
85
86    pub spending_controls: IssuingCardAuthorizationControls,
87
88    /// Whether authorizations can be approved on this card.
89    ///
90    /// May be blocked from activating cards depending on past-due Cardholder requirements.
91    /// Defaults to `inactive`.
92    pub status: IssuingCardStatus,
93
94    /// The type of the card.
95    #[serde(rename = "type")]
96    pub type_: IssuingCardType,
97
98    /// Information relating to digital wallets (like Apple Pay and Google Pay).
99    pub wallets: Option<IssuingCardWallets>,
100}
101
102impl Object for IssuingCard {
103    type Id = IssuingCardId;
104    fn id(&self) -> Self::Id {
105        self.id.clone()
106    }
107    fn object(&self) -> &'static str {
108        "issuing.card"
109    }
110}
111
112#[derive(Clone, Debug, Default, Deserialize, Serialize)]
113pub struct IssuingCardAuthorizationControls {
114    /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow.
115    ///
116    /// All other categories will be blocked.
117    /// Cannot be set with `blocked_categories`.
118    pub allowed_categories: Option<Vec<MerchantCategory>>,
119
120    /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to decline.
121    ///
122    /// All other categories will be allowed.
123    /// Cannot be set with `allowed_categories`.
124    pub blocked_categories: Option<Vec<MerchantCategory>>,
125
126    /// Limit spending with amount-based rules that apply across any cards this card replaced (i.e., its `replacement_for` card and _that_ card's `replacement_for` card, up the chain).
127    pub spending_limits: Option<Vec<IssuingCardSpendingLimit>>,
128
129    /// Currency of the amounts within `spending_limits`.
130    ///
131    /// Always the same as the currency of the card.
132    pub spending_limits_currency: Option<Currency>,
133}
134
135#[derive(Clone, Debug, Default, Deserialize, Serialize)]
136pub struct IssuingCardShipping {
137    pub address: Address,
138
139    /// The delivery company that shipped a card.
140    pub carrier: Option<IssuingCardShippingCarrier>,
141
142    /// Additional information that may be required for clearing customs.
143    pub customs: Option<IssuingCardShippingCustoms>,
144
145    /// A unix timestamp representing a best estimate of when the card will be delivered.
146    pub eta: Option<Timestamp>,
147
148    /// Recipient name.
149    pub name: String,
150
151    /// The phone number of the receiver of the shipment.
152    ///
153    /// Our courier partners will use this number to contact you in the event of card delivery issues.
154    /// For individual shipments to the EU/UK, if this field is empty, we will provide them with the phone number provided when the cardholder was initially created.
155    pub phone_number: Option<String>,
156
157    /// Whether a signature is required for card delivery.
158    ///
159    /// This feature is only supported for US users.
160    /// Standard shipping service does not support signature on delivery.
161    /// The default value for standard shipping service is false and for express and priority services is true.
162    pub require_signature: Option<bool>,
163
164    /// Shipment service, such as `standard` or `express`.
165    pub service: IssuingCardShippingService,
166
167    /// The delivery status of the card.
168    pub status: Option<IssuingCardShippingStatus>,
169
170    /// A tracking number for a card shipment.
171    pub tracking_number: Option<String>,
172
173    /// A link to the shipping carrier's site where you can view detailed information about a card shipment.
174    pub tracking_url: Option<String>,
175
176    /// Packaging options.
177    #[serde(rename = "type")]
178    pub type_: IssuingCardShippingType,
179}
180
181#[derive(Clone, Debug, Default, Deserialize, Serialize)]
182pub struct IssuingCardShippingCustoms {
183    /// A registration number used for customs in Europe.
184    ///
185    /// See [<https://www.gov.uk/eori>](https://www.gov.uk/eori) for the UK and [<https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en>](https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en) for the EU.
186    pub eori_number: Option<String>,
187}
188
189#[derive(Clone, Debug, Default, Deserialize, Serialize)]
190pub struct IssuingCardSpendingLimit {
191    /// Maximum amount allowed to spend per interval.
192    ///
193    /// This amount is in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
194    pub amount: i64,
195
196    /// Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) this limit applies to.
197    ///
198    /// Omitting this field will apply the limit to all categories.
199    pub categories: Option<Vec<IssuingCardSpendingLimitCategories>>,
200
201    /// Interval (or event) to which the amount applies.
202    pub interval: IssuingCardSpendingLimitInterval,
203}
204
205#[derive(Clone, Debug, Default, Deserialize, Serialize)]
206pub struct IssuingCardWallets {
207    pub apple_pay: IssuingCardApplePay,
208
209    pub google_pay: IssuingCardGooglePay,
210
211    /// Unique identifier for a card used with digital wallets.
212    pub primary_account_identifier: Option<String>,
213}
214
215#[derive(Clone, Debug, Default, Deserialize, Serialize)]
216pub struct IssuingCardApplePay {
217    /// Apple Pay Eligibility.
218    pub eligible: bool,
219
220    /// Reason the card is ineligible for Apple Pay.
221    pub ineligible_reason: Option<IssuingCardApplePayIneligibleReason>,
222}
223
224#[derive(Clone, Debug, Default, Deserialize, Serialize)]
225pub struct IssuingCardGooglePay {
226    /// Google Pay Eligibility.
227    pub eligible: bool,
228
229    /// Reason the card is ineligible for Google Pay.
230    pub ineligible_reason: Option<IssuingCardGooglePayIneligibleReason>,
231}
232
233/// An enum representing the possible values of an `IssuingCardApplePay`'s `ineligible_reason` field.
234#[derive(Copy, Clone, Debug, Deserialize, Serialize, Eq, PartialEq)]
235#[serde(rename_all = "snake_case")]
236pub enum IssuingCardApplePayIneligibleReason {
237    MissingAgreement,
238    MissingCardholderContact,
239    UnsupportedRegion,
240}
241
242impl IssuingCardApplePayIneligibleReason {
243    pub fn as_str(self) -> &'static str {
244        match self {
245            IssuingCardApplePayIneligibleReason::MissingAgreement => "missing_agreement",
246            IssuingCardApplePayIneligibleReason::MissingCardholderContact => {
247                "missing_cardholder_contact"
248            }
249            IssuingCardApplePayIneligibleReason::UnsupportedRegion => "unsupported_region",
250        }
251    }
252}
253
254impl AsRef<str> for IssuingCardApplePayIneligibleReason {
255    fn as_ref(&self) -> &str {
256        self.as_str()
257    }
258}
259
260impl std::fmt::Display for IssuingCardApplePayIneligibleReason {
261    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
262        self.as_str().fmt(f)
263    }
264}
265impl std::default::Default for IssuingCardApplePayIneligibleReason {
266    fn default() -> Self {
267        Self::MissingAgreement
268    }
269}
270
271/// An enum representing the possible values of an `IssuingCard`'s `cancellation_reason` field.
272#[derive(Copy, Clone, Debug, Deserialize, Serialize, Eq, PartialEq)]
273#[serde(rename_all = "snake_case")]
274pub enum IssuingCardCancellationReason {
275    DesignRejected,
276    Lost,
277    Stolen,
278}
279
280impl IssuingCardCancellationReason {
281    pub fn as_str(self) -> &'static str {
282        match self {
283            IssuingCardCancellationReason::DesignRejected => "design_rejected",
284            IssuingCardCancellationReason::Lost => "lost",
285            IssuingCardCancellationReason::Stolen => "stolen",
286        }
287    }
288}
289
290impl AsRef<str> for IssuingCardCancellationReason {
291    fn as_ref(&self) -> &str {
292        self.as_str()
293    }
294}
295
296impl std::fmt::Display for IssuingCardCancellationReason {
297    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
298        self.as_str().fmt(f)
299    }
300}
301impl std::default::Default for IssuingCardCancellationReason {
302    fn default() -> Self {
303        Self::DesignRejected
304    }
305}
306
307/// An enum representing the possible values of an `IssuingCardGooglePay`'s `ineligible_reason` field.
308#[derive(Copy, Clone, Debug, Deserialize, Serialize, Eq, PartialEq)]
309#[serde(rename_all = "snake_case")]
310pub enum IssuingCardGooglePayIneligibleReason {
311    MissingAgreement,
312    MissingCardholderContact,
313    UnsupportedRegion,
314}
315
316impl IssuingCardGooglePayIneligibleReason {
317    pub fn as_str(self) -> &'static str {
318        match self {
319            IssuingCardGooglePayIneligibleReason::MissingAgreement => "missing_agreement",
320            IssuingCardGooglePayIneligibleReason::MissingCardholderContact => {
321                "missing_cardholder_contact"
322            }
323            IssuingCardGooglePayIneligibleReason::UnsupportedRegion => "unsupported_region",
324        }
325    }
326}
327
328impl AsRef<str> for IssuingCardGooglePayIneligibleReason {
329    fn as_ref(&self) -> &str {
330        self.as_str()
331    }
332}
333
334impl std::fmt::Display for IssuingCardGooglePayIneligibleReason {
335    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
336        self.as_str().fmt(f)
337    }
338}
339impl std::default::Default for IssuingCardGooglePayIneligibleReason {
340    fn default() -> Self {
341        Self::MissingAgreement
342    }
343}
344
345/// An enum representing the possible values of an `IssuingCard`'s `replacement_reason` field.
346#[derive(Copy, Clone, Debug, Deserialize, Serialize, Eq, PartialEq)]
347#[serde(rename_all = "snake_case")]
348pub enum IssuingCardReplacementReason {
349    Damaged,
350    Expired,
351    Lost,
352    Stolen,
353}
354
355impl IssuingCardReplacementReason {
356    pub fn as_str(self) -> &'static str {
357        match self {
358            IssuingCardReplacementReason::Damaged => "damaged",
359            IssuingCardReplacementReason::Expired => "expired",
360            IssuingCardReplacementReason::Lost => "lost",
361            IssuingCardReplacementReason::Stolen => "stolen",
362        }
363    }
364}
365
366impl AsRef<str> for IssuingCardReplacementReason {
367    fn as_ref(&self) -> &str {
368        self.as_str()
369    }
370}
371
372impl std::fmt::Display for IssuingCardReplacementReason {
373    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
374        self.as_str().fmt(f)
375    }
376}
377impl std::default::Default for IssuingCardReplacementReason {
378    fn default() -> Self {
379        Self::Damaged
380    }
381}
382
383/// An enum representing the possible values of an `IssuingCardShipping`'s `carrier` field.
384#[derive(Copy, Clone, Debug, Deserialize, Serialize, Eq, PartialEq)]
385#[serde(rename_all = "snake_case")]
386pub enum IssuingCardShippingCarrier {
387    Dhl,
388    Fedex,
389    RoyalMail,
390    Usps,
391}
392
393impl IssuingCardShippingCarrier {
394    pub fn as_str(self) -> &'static str {
395        match self {
396            IssuingCardShippingCarrier::Dhl => "dhl",
397            IssuingCardShippingCarrier::Fedex => "fedex",
398            IssuingCardShippingCarrier::RoyalMail => "royal_mail",
399            IssuingCardShippingCarrier::Usps => "usps",
400        }
401    }
402}
403
404impl AsRef<str> for IssuingCardShippingCarrier {
405    fn as_ref(&self) -> &str {
406        self.as_str()
407    }
408}
409
410impl std::fmt::Display for IssuingCardShippingCarrier {
411    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
412        self.as_str().fmt(f)
413    }
414}
415impl std::default::Default for IssuingCardShippingCarrier {
416    fn default() -> Self {
417        Self::Dhl
418    }
419}
420
421/// An enum representing the possible values of an `IssuingCardShipping`'s `service` field.
422#[derive(Copy, Clone, Debug, Deserialize, Serialize, Eq, PartialEq)]
423#[serde(rename_all = "snake_case")]
424pub enum IssuingCardShippingService {
425    Express,
426    Priority,
427    Standard,
428}
429
430impl IssuingCardShippingService {
431    pub fn as_str(self) -> &'static str {
432        match self {
433            IssuingCardShippingService::Express => "express",
434            IssuingCardShippingService::Priority => "priority",
435            IssuingCardShippingService::Standard => "standard",
436        }
437    }
438}
439
440impl AsRef<str> for IssuingCardShippingService {
441    fn as_ref(&self) -> &str {
442        self.as_str()
443    }
444}
445
446impl std::fmt::Display for IssuingCardShippingService {
447    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
448        self.as_str().fmt(f)
449    }
450}
451impl std::default::Default for IssuingCardShippingService {
452    fn default() -> Self {
453        Self::Express
454    }
455}
456
457/// An enum representing the possible values of an `IssuingCardSpendingLimit`'s `categories` field.
458#[derive(Copy, Clone, Debug, Deserialize, Serialize, Eq, PartialEq)]
459#[serde(rename_all = "snake_case")]
460pub enum IssuingCardSpendingLimitCategories {
461    AcRefrigerationRepair,
462    AccountingBookkeepingServices,
463    AdvertisingServices,
464    AgriculturalCooperative,
465    AirlinesAirCarriers,
466    AirportsFlyingFields,
467    AmbulanceServices,
468    AmusementParksCarnivals,
469    AntiqueReproductions,
470    AntiqueShops,
471    Aquariums,
472    ArchitecturalSurveyingServices,
473    ArtDealersAndGalleries,
474    ArtistsSupplyAndCraftShops,
475    AutoAndHomeSupplyStores,
476    AutoBodyRepairShops,
477    AutoPaintShops,
478    AutoServiceShops,
479    AutomatedCashDisburse,
480    AutomatedFuelDispensers,
481    AutomobileAssociations,
482    AutomotivePartsAndAccessoriesStores,
483    AutomotiveTireStores,
484    BailAndBondPayments,
485    Bakeries,
486    BandsOrchestras,
487    BarberAndBeautyShops,
488    BettingCasinoGambling,
489    BicycleShops,
490    BilliardPoolEstablishments,
491    BoatDealers,
492    BoatRentalsAndLeases,
493    BookStores,
494    BooksPeriodicalsAndNewspapers,
495    BowlingAlleys,
496    BusLines,
497    BusinessSecretarialSchools,
498    BuyingShoppingServices,
499    CableSatelliteAndOtherPayTelevisionAndRadio,
500    CameraAndPhotographicSupplyStores,
501    CandyNutAndConfectioneryStores,
502    CarAndTruckDealersNewUsed,
503    CarAndTruckDealersUsedOnly,
504    CarRentalAgencies,
505    CarWashes,
506    CarpentryServices,
507    CarpetUpholsteryCleaning,
508    Caterers,
509    CharitableAndSocialServiceOrganizationsFundraising,
510    ChemicalsAndAlliedProducts,
511    ChildCareServices,
512    ChildrensAndInfantsWearStores,
513    ChiropodistsPodiatrists,
514    Chiropractors,
515    CigarStoresAndStands,
516    CivicSocialFraternalAssociations,
517    CleaningAndMaintenance,
518    ClothingRental,
519    CollegesUniversities,
520    CommercialEquipment,
521    CommercialFootwear,
522    CommercialPhotographyArtAndGraphics,
523    CommuterTransportAndFerries,
524    ComputerNetworkServices,
525    ComputerProgramming,
526    ComputerRepair,
527    ComputerSoftwareStores,
528    ComputersPeripheralsAndSoftware,
529    ConcreteWorkServices,
530    ConstructionMaterials,
531    ConsultingPublicRelations,
532    CorrespondenceSchools,
533    CosmeticStores,
534    CounselingServices,
535    CountryClubs,
536    CourierServices,
537    CourtCosts,
538    CreditReportingAgencies,
539    CruiseLines,
540    DairyProductsStores,
541    DanceHallStudiosSchools,
542    DatingEscortServices,
543    DentistsOrthodontists,
544    DepartmentStores,
545    DetectiveAgencies,
546    DigitalGoodsApplications,
547    DigitalGoodsGames,
548    DigitalGoodsLargeVolume,
549    DigitalGoodsMedia,
550    DirectMarketingCatalogMerchant,
551    DirectMarketingCombinationCatalogAndRetailMerchant,
552    DirectMarketingInboundTelemarketing,
553    DirectMarketingInsuranceServices,
554    DirectMarketingOther,
555    DirectMarketingOutboundTelemarketing,
556    DirectMarketingSubscription,
557    DirectMarketingTravel,
558    DiscountStores,
559    Doctors,
560    DoorToDoorSales,
561    DraperyWindowCoveringAndUpholsteryStores,
562    DrinkingPlaces,
563    DrugStoresAndPharmacies,
564    DrugsDrugProprietariesAndDruggistSundries,
565    DryCleaners,
566    DurableGoods,
567    DutyFreeStores,
568    EatingPlacesRestaurants,
569    EducationalServices,
570    ElectricRazorStores,
571    ElectricVehicleCharging,
572    ElectricalPartsAndEquipment,
573    ElectricalServices,
574    ElectronicsRepairShops,
575    ElectronicsStores,
576    ElementarySecondarySchools,
577    EmergencyServicesGcasVisaUseOnly,
578    EmploymentTempAgencies,
579    EquipmentRental,
580    ExterminatingServices,
581    FamilyClothingStores,
582    FastFoodRestaurants,
583    FinancialInstitutions,
584    FinesGovernmentAdministrativeEntities,
585    FireplaceFireplaceScreensAndAccessoriesStores,
586    FloorCoveringStores,
587    Florists,
588    FloristsSuppliesNurseryStockAndFlowers,
589    FreezerAndLockerMeatProvisioners,
590    FuelDealersNonAutomotive,
591    FuneralServicesCrematories,
592    FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances,
593    FurnitureRepairRefinishing,
594    FurriersAndFurShops,
595    GeneralServices,
596    GiftCardNoveltyAndSouvenirShops,
597    GlassPaintAndWallpaperStores,
598    GlasswareCrystalStores,
599    GolfCoursesPublic,
600    GovernmentLicensedHorseDogRacingUsRegionOnly,
601    GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly,
602    GovernmentOwnedLotteriesNonUsRegion,
603    GovernmentOwnedLotteriesUsRegionOnly,
604    GovernmentServices,
605    GroceryStoresSupermarkets,
606    HardwareEquipmentAndSupplies,
607    HardwareStores,
608    HealthAndBeautySpas,
609    HearingAidsSalesAndSupplies,
610    HeatingPlumbingAC,
611    HobbyToyAndGameShops,
612    HomeSupplyWarehouseStores,
613    Hospitals,
614    HotelsMotelsAndResorts,
615    HouseholdApplianceStores,
616    IndustrialSupplies,
617    InformationRetrievalServices,
618    InsuranceDefault,
619    InsuranceUnderwritingPremiums,
620    IntraCompanyPurchases,
621    JewelryStoresWatchesClocksAndSilverwareStores,
622    LandscapingServices,
623    Laundries,
624    LaundryCleaningServices,
625    LegalServicesAttorneys,
626    LuggageAndLeatherGoodsStores,
627    LumberBuildingMaterialsStores,
628    ManualCashDisburse,
629    MarinasServiceAndSupplies,
630    Marketplaces,
631    MasonryStoneworkAndPlaster,
632    MassageParlors,
633    MedicalAndDentalLabs,
634    MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies,
635    MedicalServices,
636    MembershipOrganizations,
637    MensAndBoysClothingAndAccessoriesStores,
638    MensWomensClothingStores,
639    MetalServiceCenters,
640    Miscellaneous,
641    MiscellaneousApparelAndAccessoryShops,
642    MiscellaneousAutoDealers,
643    MiscellaneousBusinessServices,
644    MiscellaneousFoodStores,
645    MiscellaneousGeneralMerchandise,
646    MiscellaneousGeneralServices,
647    MiscellaneousHomeFurnishingSpecialtyStores,
648    MiscellaneousPublishingAndPrinting,
649    MiscellaneousRecreationServices,
650    MiscellaneousRepairShops,
651    MiscellaneousSpecialtyRetail,
652    MobileHomeDealers,
653    MotionPictureTheaters,
654    MotorFreightCarriersAndTrucking,
655    MotorHomesDealers,
656    MotorVehicleSuppliesAndNewParts,
657    MotorcycleShopsAndDealers,
658    MotorcycleShopsDealers,
659    MusicStoresMusicalInstrumentsPianosAndSheetMusic,
660    NewsDealersAndNewsstands,
661    NonFiMoneyOrders,
662    NonFiStoredValueCardPurchaseLoad,
663    NondurableGoods,
664    NurseriesLawnAndGardenSupplyStores,
665    NursingPersonalCare,
666    OfficeAndCommercialFurniture,
667    OpticiansEyeglasses,
668    OptometristsOphthalmologist,
669    OrthopedicGoodsProstheticDevices,
670    Osteopaths,
671    PackageStoresBeerWineAndLiquor,
672    PaintsVarnishesAndSupplies,
673    ParkingLotsGarages,
674    PassengerRailways,
675    PawnShops,
676    PetShopsPetFoodAndSupplies,
677    PetroleumAndPetroleumProducts,
678    PhotoDeveloping,
679    PhotographicPhotocopyMicrofilmEquipmentAndSupplies,
680    PhotographicStudios,
681    PictureVideoProduction,
682    PieceGoodsNotionsAndOtherDryGoods,
683    PlumbingHeatingEquipmentAndSupplies,
684    PoliticalOrganizations,
685    PostalServicesGovernmentOnly,
686    PreciousStonesAndMetalsWatchesAndJewelry,
687    ProfessionalServices,
688    PublicWarehousingAndStorage,
689    QuickCopyReproAndBlueprint,
690    Railroads,
691    RealEstateAgentsAndManagersRentals,
692    RecordStores,
693    RecreationalVehicleRentals,
694    ReligiousGoodsStores,
695    ReligiousOrganizations,
696    RoofingSidingSheetMetal,
697    SecretarialSupportServices,
698    SecurityBrokersDealers,
699    ServiceStations,
700    SewingNeedleworkFabricAndPieceGoodsStores,
701    ShoeRepairHatCleaning,
702    ShoeStores,
703    SmallApplianceRepair,
704    SnowmobileDealers,
705    SpecialTradeServices,
706    SpecialtyCleaning,
707    SportingGoodsStores,
708    SportingRecreationCamps,
709    SportsAndRidingApparelStores,
710    SportsClubsFields,
711    StampAndCoinStores,
712    StationaryOfficeSuppliesPrintingAndWritingPaper,
713    StationeryStoresOfficeAndSchoolSupplyStores,
714    SwimmingPoolsSales,
715    TUiTravelGermany,
716    TailorsAlterations,
717    TaxPaymentsGovernmentAgencies,
718    TaxPreparationServices,
719    TaxicabsLimousines,
720    TelecommunicationEquipmentAndTelephoneSales,
721    TelecommunicationServices,
722    TelegraphServices,
723    TentAndAwningShops,
724    TestingLaboratories,
725    TheatricalTicketAgencies,
726    Timeshares,
727    TireRetreadingAndRepair,
728    TollsBridgeFees,
729    TouristAttractionsAndExhibits,
730    TowingServices,
731    TrailerParksCampgrounds,
732    TransportationServices,
733    TravelAgenciesTourOperators,
734    TruckStopIteration,
735    TruckUtilityTrailerRentals,
736    TypesettingPlateMakingAndRelatedServices,
737    TypewriterStores,
738    USFederalGovernmentAgenciesOrDepartments,
739    UniformsCommercialClothing,
740    UsedMerchandiseAndSecondhandStores,
741    Utilities,
742    VarietyStores,
743    VeterinaryServices,
744    VideoAmusementGameSupplies,
745    VideoGameArcades,
746    VideoTapeRentalStores,
747    VocationalTradeSchools,
748    WatchJewelryRepair,
749    WeldingRepair,
750    WholesaleClubs,
751    WigAndToupeeStores,
752    WiresMoneyOrders,
753    WomensAccessoryAndSpecialtyShops,
754    WomensReadyToWearStores,
755    WreckingAndSalvageYards,
756}
757
758impl IssuingCardSpendingLimitCategories {
759    pub fn as_str(self) -> &'static str {
760        match self {
761            IssuingCardSpendingLimitCategories::AcRefrigerationRepair => "ac_refrigeration_repair",
762            IssuingCardSpendingLimitCategories::AccountingBookkeepingServices => "accounting_bookkeeping_services",
763            IssuingCardSpendingLimitCategories::AdvertisingServices => "advertising_services",
764            IssuingCardSpendingLimitCategories::AgriculturalCooperative => "agricultural_cooperative",
765            IssuingCardSpendingLimitCategories::AirlinesAirCarriers => "airlines_air_carriers",
766            IssuingCardSpendingLimitCategories::AirportsFlyingFields => "airports_flying_fields",
767            IssuingCardSpendingLimitCategories::AmbulanceServices => "ambulance_services",
768            IssuingCardSpendingLimitCategories::AmusementParksCarnivals => "amusement_parks_carnivals",
769            IssuingCardSpendingLimitCategories::AntiqueReproductions => "antique_reproductions",
770            IssuingCardSpendingLimitCategories::AntiqueShops => "antique_shops",
771            IssuingCardSpendingLimitCategories::Aquariums => "aquariums",
772            IssuingCardSpendingLimitCategories::ArchitecturalSurveyingServices => "architectural_surveying_services",
773            IssuingCardSpendingLimitCategories::ArtDealersAndGalleries => "art_dealers_and_galleries",
774            IssuingCardSpendingLimitCategories::ArtistsSupplyAndCraftShops => "artists_supply_and_craft_shops",
775            IssuingCardSpendingLimitCategories::AutoAndHomeSupplyStores => "auto_and_home_supply_stores",
776            IssuingCardSpendingLimitCategories::AutoBodyRepairShops => "auto_body_repair_shops",
777            IssuingCardSpendingLimitCategories::AutoPaintShops => "auto_paint_shops",
778            IssuingCardSpendingLimitCategories::AutoServiceShops => "auto_service_shops",
779            IssuingCardSpendingLimitCategories::AutomatedCashDisburse => "automated_cash_disburse",
780            IssuingCardSpendingLimitCategories::AutomatedFuelDispensers => "automated_fuel_dispensers",
781            IssuingCardSpendingLimitCategories::AutomobileAssociations => "automobile_associations",
782            IssuingCardSpendingLimitCategories::AutomotivePartsAndAccessoriesStores => "automotive_parts_and_accessories_stores",
783            IssuingCardSpendingLimitCategories::AutomotiveTireStores => "automotive_tire_stores",
784            IssuingCardSpendingLimitCategories::BailAndBondPayments => "bail_and_bond_payments",
785            IssuingCardSpendingLimitCategories::Bakeries => "bakeries",
786            IssuingCardSpendingLimitCategories::BandsOrchestras => "bands_orchestras",
787            IssuingCardSpendingLimitCategories::BarberAndBeautyShops => "barber_and_beauty_shops",
788            IssuingCardSpendingLimitCategories::BettingCasinoGambling => "betting_casino_gambling",
789            IssuingCardSpendingLimitCategories::BicycleShops => "bicycle_shops",
790            IssuingCardSpendingLimitCategories::BilliardPoolEstablishments => "billiard_pool_establishments",
791            IssuingCardSpendingLimitCategories::BoatDealers => "boat_dealers",
792            IssuingCardSpendingLimitCategories::BoatRentalsAndLeases => "boat_rentals_and_leases",
793            IssuingCardSpendingLimitCategories::BookStores => "book_stores",
794            IssuingCardSpendingLimitCategories::BooksPeriodicalsAndNewspapers => "books_periodicals_and_newspapers",
795            IssuingCardSpendingLimitCategories::BowlingAlleys => "bowling_alleys",
796            IssuingCardSpendingLimitCategories::BusLines => "bus_lines",
797            IssuingCardSpendingLimitCategories::BusinessSecretarialSchools => "business_secretarial_schools",
798            IssuingCardSpendingLimitCategories::BuyingShoppingServices => "buying_shopping_services",
799            IssuingCardSpendingLimitCategories::CableSatelliteAndOtherPayTelevisionAndRadio => "cable_satellite_and_other_pay_television_and_radio",
800            IssuingCardSpendingLimitCategories::CameraAndPhotographicSupplyStores => "camera_and_photographic_supply_stores",
801            IssuingCardSpendingLimitCategories::CandyNutAndConfectioneryStores => "candy_nut_and_confectionery_stores",
802            IssuingCardSpendingLimitCategories::CarAndTruckDealersNewUsed => "car_and_truck_dealers_new_used",
803            IssuingCardSpendingLimitCategories::CarAndTruckDealersUsedOnly => "car_and_truck_dealers_used_only",
804            IssuingCardSpendingLimitCategories::CarRentalAgencies => "car_rental_agencies",
805            IssuingCardSpendingLimitCategories::CarWashes => "car_washes",
806            IssuingCardSpendingLimitCategories::CarpentryServices => "carpentry_services",
807            IssuingCardSpendingLimitCategories::CarpetUpholsteryCleaning => "carpet_upholstery_cleaning",
808            IssuingCardSpendingLimitCategories::Caterers => "caterers",
809            IssuingCardSpendingLimitCategories::CharitableAndSocialServiceOrganizationsFundraising => "charitable_and_social_service_organizations_fundraising",
810            IssuingCardSpendingLimitCategories::ChemicalsAndAlliedProducts => "chemicals_and_allied_products",
811            IssuingCardSpendingLimitCategories::ChildCareServices => "child_care_services",
812            IssuingCardSpendingLimitCategories::ChildrensAndInfantsWearStores => "childrens_and_infants_wear_stores",
813            IssuingCardSpendingLimitCategories::ChiropodistsPodiatrists => "chiropodists_podiatrists",
814            IssuingCardSpendingLimitCategories::Chiropractors => "chiropractors",
815            IssuingCardSpendingLimitCategories::CigarStoresAndStands => "cigar_stores_and_stands",
816            IssuingCardSpendingLimitCategories::CivicSocialFraternalAssociations => "civic_social_fraternal_associations",
817            IssuingCardSpendingLimitCategories::CleaningAndMaintenance => "cleaning_and_maintenance",
818            IssuingCardSpendingLimitCategories::ClothingRental => "clothing_rental",
819            IssuingCardSpendingLimitCategories::CollegesUniversities => "colleges_universities",
820            IssuingCardSpendingLimitCategories::CommercialEquipment => "commercial_equipment",
821            IssuingCardSpendingLimitCategories::CommercialFootwear => "commercial_footwear",
822            IssuingCardSpendingLimitCategories::CommercialPhotographyArtAndGraphics => "commercial_photography_art_and_graphics",
823            IssuingCardSpendingLimitCategories::CommuterTransportAndFerries => "commuter_transport_and_ferries",
824            IssuingCardSpendingLimitCategories::ComputerNetworkServices => "computer_network_services",
825            IssuingCardSpendingLimitCategories::ComputerProgramming => "computer_programming",
826            IssuingCardSpendingLimitCategories::ComputerRepair => "computer_repair",
827            IssuingCardSpendingLimitCategories::ComputerSoftwareStores => "computer_software_stores",
828            IssuingCardSpendingLimitCategories::ComputersPeripheralsAndSoftware => "computers_peripherals_and_software",
829            IssuingCardSpendingLimitCategories::ConcreteWorkServices => "concrete_work_services",
830            IssuingCardSpendingLimitCategories::ConstructionMaterials => "construction_materials",
831            IssuingCardSpendingLimitCategories::ConsultingPublicRelations => "consulting_public_relations",
832            IssuingCardSpendingLimitCategories::CorrespondenceSchools => "correspondence_schools",
833            IssuingCardSpendingLimitCategories::CosmeticStores => "cosmetic_stores",
834            IssuingCardSpendingLimitCategories::CounselingServices => "counseling_services",
835            IssuingCardSpendingLimitCategories::CountryClubs => "country_clubs",
836            IssuingCardSpendingLimitCategories::CourierServices => "courier_services",
837            IssuingCardSpendingLimitCategories::CourtCosts => "court_costs",
838            IssuingCardSpendingLimitCategories::CreditReportingAgencies => "credit_reporting_agencies",
839            IssuingCardSpendingLimitCategories::CruiseLines => "cruise_lines",
840            IssuingCardSpendingLimitCategories::DairyProductsStores => "dairy_products_stores",
841            IssuingCardSpendingLimitCategories::DanceHallStudiosSchools => "dance_hall_studios_schools",
842            IssuingCardSpendingLimitCategories::DatingEscortServices => "dating_escort_services",
843            IssuingCardSpendingLimitCategories::DentistsOrthodontists => "dentists_orthodontists",
844            IssuingCardSpendingLimitCategories::DepartmentStores => "department_stores",
845            IssuingCardSpendingLimitCategories::DetectiveAgencies => "detective_agencies",
846            IssuingCardSpendingLimitCategories::DigitalGoodsApplications => "digital_goods_applications",
847            IssuingCardSpendingLimitCategories::DigitalGoodsGames => "digital_goods_games",
848            IssuingCardSpendingLimitCategories::DigitalGoodsLargeVolume => "digital_goods_large_volume",
849            IssuingCardSpendingLimitCategories::DigitalGoodsMedia => "digital_goods_media",
850            IssuingCardSpendingLimitCategories::DirectMarketingCatalogMerchant => "direct_marketing_catalog_merchant",
851            IssuingCardSpendingLimitCategories::DirectMarketingCombinationCatalogAndRetailMerchant => "direct_marketing_combination_catalog_and_retail_merchant",
852            IssuingCardSpendingLimitCategories::DirectMarketingInboundTelemarketing => "direct_marketing_inbound_telemarketing",
853            IssuingCardSpendingLimitCategories::DirectMarketingInsuranceServices => "direct_marketing_insurance_services",
854            IssuingCardSpendingLimitCategories::DirectMarketingOther => "direct_marketing_other",
855            IssuingCardSpendingLimitCategories::DirectMarketingOutboundTelemarketing => "direct_marketing_outbound_telemarketing",
856            IssuingCardSpendingLimitCategories::DirectMarketingSubscription => "direct_marketing_subscription",
857            IssuingCardSpendingLimitCategories::DirectMarketingTravel => "direct_marketing_travel",
858            IssuingCardSpendingLimitCategories::DiscountStores => "discount_stores",
859            IssuingCardSpendingLimitCategories::Doctors => "doctors",
860            IssuingCardSpendingLimitCategories::DoorToDoorSales => "door_to_door_sales",
861            IssuingCardSpendingLimitCategories::DraperyWindowCoveringAndUpholsteryStores => "drapery_window_covering_and_upholstery_stores",
862            IssuingCardSpendingLimitCategories::DrinkingPlaces => "drinking_places",
863            IssuingCardSpendingLimitCategories::DrugStoresAndPharmacies => "drug_stores_and_pharmacies",
864            IssuingCardSpendingLimitCategories::DrugsDrugProprietariesAndDruggistSundries => "drugs_drug_proprietaries_and_druggist_sundries",
865            IssuingCardSpendingLimitCategories::DryCleaners => "dry_cleaners",
866            IssuingCardSpendingLimitCategories::DurableGoods => "durable_goods",
867            IssuingCardSpendingLimitCategories::DutyFreeStores => "duty_free_stores",
868            IssuingCardSpendingLimitCategories::EatingPlacesRestaurants => "eating_places_restaurants",
869            IssuingCardSpendingLimitCategories::EducationalServices => "educational_services",
870            IssuingCardSpendingLimitCategories::ElectricRazorStores => "electric_razor_stores",
871            IssuingCardSpendingLimitCategories::ElectricVehicleCharging => "electric_vehicle_charging",
872            IssuingCardSpendingLimitCategories::ElectricalPartsAndEquipment => "electrical_parts_and_equipment",
873            IssuingCardSpendingLimitCategories::ElectricalServices => "electrical_services",
874            IssuingCardSpendingLimitCategories::ElectronicsRepairShops => "electronics_repair_shops",
875            IssuingCardSpendingLimitCategories::ElectronicsStores => "electronics_stores",
876            IssuingCardSpendingLimitCategories::ElementarySecondarySchools => "elementary_secondary_schools",
877            IssuingCardSpendingLimitCategories::EmergencyServicesGcasVisaUseOnly => "emergency_services_gcas_visa_use_only",
878            IssuingCardSpendingLimitCategories::EmploymentTempAgencies => "employment_temp_agencies",
879            IssuingCardSpendingLimitCategories::EquipmentRental => "equipment_rental",
880            IssuingCardSpendingLimitCategories::ExterminatingServices => "exterminating_services",
881            IssuingCardSpendingLimitCategories::FamilyClothingStores => "family_clothing_stores",
882            IssuingCardSpendingLimitCategories::FastFoodRestaurants => "fast_food_restaurants",
883            IssuingCardSpendingLimitCategories::FinancialInstitutions => "financial_institutions",
884            IssuingCardSpendingLimitCategories::FinesGovernmentAdministrativeEntities => "fines_government_administrative_entities",
885            IssuingCardSpendingLimitCategories::FireplaceFireplaceScreensAndAccessoriesStores => "fireplace_fireplace_screens_and_accessories_stores",
886            IssuingCardSpendingLimitCategories::FloorCoveringStores => "floor_covering_stores",
887            IssuingCardSpendingLimitCategories::Florists => "florists",
888            IssuingCardSpendingLimitCategories::FloristsSuppliesNurseryStockAndFlowers => "florists_supplies_nursery_stock_and_flowers",
889            IssuingCardSpendingLimitCategories::FreezerAndLockerMeatProvisioners => "freezer_and_locker_meat_provisioners",
890            IssuingCardSpendingLimitCategories::FuelDealersNonAutomotive => "fuel_dealers_non_automotive",
891            IssuingCardSpendingLimitCategories::FuneralServicesCrematories => "funeral_services_crematories",
892            IssuingCardSpendingLimitCategories::FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances => "furniture_home_furnishings_and_equipment_stores_except_appliances",
893            IssuingCardSpendingLimitCategories::FurnitureRepairRefinishing => "furniture_repair_refinishing",
894            IssuingCardSpendingLimitCategories::FurriersAndFurShops => "furriers_and_fur_shops",
895            IssuingCardSpendingLimitCategories::GeneralServices => "general_services",
896            IssuingCardSpendingLimitCategories::GiftCardNoveltyAndSouvenirShops => "gift_card_novelty_and_souvenir_shops",
897            IssuingCardSpendingLimitCategories::GlassPaintAndWallpaperStores => "glass_paint_and_wallpaper_stores",
898            IssuingCardSpendingLimitCategories::GlasswareCrystalStores => "glassware_crystal_stores",
899            IssuingCardSpendingLimitCategories::GolfCoursesPublic => "golf_courses_public",
900            IssuingCardSpendingLimitCategories::GovernmentLicensedHorseDogRacingUsRegionOnly => "government_licensed_horse_dog_racing_us_region_only",
901            IssuingCardSpendingLimitCategories::GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly => "government_licensed_online_casions_online_gambling_us_region_only",
902            IssuingCardSpendingLimitCategories::GovernmentOwnedLotteriesNonUsRegion => "government_owned_lotteries_non_us_region",
903            IssuingCardSpendingLimitCategories::GovernmentOwnedLotteriesUsRegionOnly => "government_owned_lotteries_us_region_only",
904            IssuingCardSpendingLimitCategories::GovernmentServices => "government_services",
905            IssuingCardSpendingLimitCategories::GroceryStoresSupermarkets => "grocery_stores_supermarkets",
906            IssuingCardSpendingLimitCategories::HardwareEquipmentAndSupplies => "hardware_equipment_and_supplies",
907            IssuingCardSpendingLimitCategories::HardwareStores => "hardware_stores",
908            IssuingCardSpendingLimitCategories::HealthAndBeautySpas => "health_and_beauty_spas",
909            IssuingCardSpendingLimitCategories::HearingAidsSalesAndSupplies => "hearing_aids_sales_and_supplies",
910            IssuingCardSpendingLimitCategories::HeatingPlumbingAC => "heating_plumbing_a_c",
911            IssuingCardSpendingLimitCategories::HobbyToyAndGameShops => "hobby_toy_and_game_shops",
912            IssuingCardSpendingLimitCategories::HomeSupplyWarehouseStores => "home_supply_warehouse_stores",
913            IssuingCardSpendingLimitCategories::Hospitals => "hospitals",
914            IssuingCardSpendingLimitCategories::HotelsMotelsAndResorts => "hotels_motels_and_resorts",
915            IssuingCardSpendingLimitCategories::HouseholdApplianceStores => "household_appliance_stores",
916            IssuingCardSpendingLimitCategories::IndustrialSupplies => "industrial_supplies",
917            IssuingCardSpendingLimitCategories::InformationRetrievalServices => "information_retrieval_services",
918            IssuingCardSpendingLimitCategories::InsuranceDefault => "insurance_default",
919            IssuingCardSpendingLimitCategories::InsuranceUnderwritingPremiums => "insurance_underwriting_premiums",
920            IssuingCardSpendingLimitCategories::IntraCompanyPurchases => "intra_company_purchases",
921            IssuingCardSpendingLimitCategories::JewelryStoresWatchesClocksAndSilverwareStores => "jewelry_stores_watches_clocks_and_silverware_stores",
922            IssuingCardSpendingLimitCategories::LandscapingServices => "landscaping_services",
923            IssuingCardSpendingLimitCategories::Laundries => "laundries",
924            IssuingCardSpendingLimitCategories::LaundryCleaningServices => "laundry_cleaning_services",
925            IssuingCardSpendingLimitCategories::LegalServicesAttorneys => "legal_services_attorneys",
926            IssuingCardSpendingLimitCategories::LuggageAndLeatherGoodsStores => "luggage_and_leather_goods_stores",
927            IssuingCardSpendingLimitCategories::LumberBuildingMaterialsStores => "lumber_building_materials_stores",
928            IssuingCardSpendingLimitCategories::ManualCashDisburse => "manual_cash_disburse",
929            IssuingCardSpendingLimitCategories::MarinasServiceAndSupplies => "marinas_service_and_supplies",
930            IssuingCardSpendingLimitCategories::Marketplaces => "marketplaces",
931            IssuingCardSpendingLimitCategories::MasonryStoneworkAndPlaster => "masonry_stonework_and_plaster",
932            IssuingCardSpendingLimitCategories::MassageParlors => "massage_parlors",
933            IssuingCardSpendingLimitCategories::MedicalAndDentalLabs => "medical_and_dental_labs",
934            IssuingCardSpendingLimitCategories::MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies => "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
935            IssuingCardSpendingLimitCategories::MedicalServices => "medical_services",
936            IssuingCardSpendingLimitCategories::MembershipOrganizations => "membership_organizations",
937            IssuingCardSpendingLimitCategories::MensAndBoysClothingAndAccessoriesStores => "mens_and_boys_clothing_and_accessories_stores",
938            IssuingCardSpendingLimitCategories::MensWomensClothingStores => "mens_womens_clothing_stores",
939            IssuingCardSpendingLimitCategories::MetalServiceCenters => "metal_service_centers",
940            IssuingCardSpendingLimitCategories::Miscellaneous => "miscellaneous",
941            IssuingCardSpendingLimitCategories::MiscellaneousApparelAndAccessoryShops => "miscellaneous_apparel_and_accessory_shops",
942            IssuingCardSpendingLimitCategories::MiscellaneousAutoDealers => "miscellaneous_auto_dealers",
943            IssuingCardSpendingLimitCategories::MiscellaneousBusinessServices => "miscellaneous_business_services",
944            IssuingCardSpendingLimitCategories::MiscellaneousFoodStores => "miscellaneous_food_stores",
945            IssuingCardSpendingLimitCategories::MiscellaneousGeneralMerchandise => "miscellaneous_general_merchandise",
946            IssuingCardSpendingLimitCategories::MiscellaneousGeneralServices => "miscellaneous_general_services",
947            IssuingCardSpendingLimitCategories::MiscellaneousHomeFurnishingSpecialtyStores => "miscellaneous_home_furnishing_specialty_stores",
948            IssuingCardSpendingLimitCategories::MiscellaneousPublishingAndPrinting => "miscellaneous_publishing_and_printing",
949            IssuingCardSpendingLimitCategories::MiscellaneousRecreationServices => "miscellaneous_recreation_services",
950            IssuingCardSpendingLimitCategories::MiscellaneousRepairShops => "miscellaneous_repair_shops",
951            IssuingCardSpendingLimitCategories::MiscellaneousSpecialtyRetail => "miscellaneous_specialty_retail",
952            IssuingCardSpendingLimitCategories::MobileHomeDealers => "mobile_home_dealers",
953            IssuingCardSpendingLimitCategories::MotionPictureTheaters => "motion_picture_theaters",
954            IssuingCardSpendingLimitCategories::MotorFreightCarriersAndTrucking => "motor_freight_carriers_and_trucking",
955            IssuingCardSpendingLimitCategories::MotorHomesDealers => "motor_homes_dealers",
956            IssuingCardSpendingLimitCategories::MotorVehicleSuppliesAndNewParts => "motor_vehicle_supplies_and_new_parts",
957            IssuingCardSpendingLimitCategories::MotorcycleShopsAndDealers => "motorcycle_shops_and_dealers",
958            IssuingCardSpendingLimitCategories::MotorcycleShopsDealers => "motorcycle_shops_dealers",
959            IssuingCardSpendingLimitCategories::MusicStoresMusicalInstrumentsPianosAndSheetMusic => "music_stores_musical_instruments_pianos_and_sheet_music",
960            IssuingCardSpendingLimitCategories::NewsDealersAndNewsstands => "news_dealers_and_newsstands",
961            IssuingCardSpendingLimitCategories::NonFiMoneyOrders => "non_fi_money_orders",
962            IssuingCardSpendingLimitCategories::NonFiStoredValueCardPurchaseLoad => "non_fi_stored_value_card_purchase_load",
963            IssuingCardSpendingLimitCategories::NondurableGoods => "nondurable_goods",
964            IssuingCardSpendingLimitCategories::NurseriesLawnAndGardenSupplyStores => "nurseries_lawn_and_garden_supply_stores",
965            IssuingCardSpendingLimitCategories::NursingPersonalCare => "nursing_personal_care",
966            IssuingCardSpendingLimitCategories::OfficeAndCommercialFurniture => "office_and_commercial_furniture",
967            IssuingCardSpendingLimitCategories::OpticiansEyeglasses => "opticians_eyeglasses",
968            IssuingCardSpendingLimitCategories::OptometristsOphthalmologist => "optometrists_ophthalmologist",
969            IssuingCardSpendingLimitCategories::OrthopedicGoodsProstheticDevices => "orthopedic_goods_prosthetic_devices",
970            IssuingCardSpendingLimitCategories::Osteopaths => "osteopaths",
971            IssuingCardSpendingLimitCategories::PackageStoresBeerWineAndLiquor => "package_stores_beer_wine_and_liquor",
972            IssuingCardSpendingLimitCategories::PaintsVarnishesAndSupplies => "paints_varnishes_and_supplies",
973            IssuingCardSpendingLimitCategories::ParkingLotsGarages => "parking_lots_garages",
974            IssuingCardSpendingLimitCategories::PassengerRailways => "passenger_railways",
975            IssuingCardSpendingLimitCategories::PawnShops => "pawn_shops",
976            IssuingCardSpendingLimitCategories::PetShopsPetFoodAndSupplies => "pet_shops_pet_food_and_supplies",
977            IssuingCardSpendingLimitCategories::PetroleumAndPetroleumProducts => "petroleum_and_petroleum_products",
978            IssuingCardSpendingLimitCategories::PhotoDeveloping => "photo_developing",
979            IssuingCardSpendingLimitCategories::PhotographicPhotocopyMicrofilmEquipmentAndSupplies => "photographic_photocopy_microfilm_equipment_and_supplies",
980            IssuingCardSpendingLimitCategories::PhotographicStudios => "photographic_studios",
981            IssuingCardSpendingLimitCategories::PictureVideoProduction => "picture_video_production",
982            IssuingCardSpendingLimitCategories::PieceGoodsNotionsAndOtherDryGoods => "piece_goods_notions_and_other_dry_goods",
983            IssuingCardSpendingLimitCategories::PlumbingHeatingEquipmentAndSupplies => "plumbing_heating_equipment_and_supplies",
984            IssuingCardSpendingLimitCategories::PoliticalOrganizations => "political_organizations",
985            IssuingCardSpendingLimitCategories::PostalServicesGovernmentOnly => "postal_services_government_only",
986            IssuingCardSpendingLimitCategories::PreciousStonesAndMetalsWatchesAndJewelry => "precious_stones_and_metals_watches_and_jewelry",
987            IssuingCardSpendingLimitCategories::ProfessionalServices => "professional_services",
988            IssuingCardSpendingLimitCategories::PublicWarehousingAndStorage => "public_warehousing_and_storage",
989            IssuingCardSpendingLimitCategories::QuickCopyReproAndBlueprint => "quick_copy_repro_and_blueprint",
990            IssuingCardSpendingLimitCategories::Railroads => "railroads",
991            IssuingCardSpendingLimitCategories::RealEstateAgentsAndManagersRentals => "real_estate_agents_and_managers_rentals",
992            IssuingCardSpendingLimitCategories::RecordStores => "record_stores",
993            IssuingCardSpendingLimitCategories::RecreationalVehicleRentals => "recreational_vehicle_rentals",
994            IssuingCardSpendingLimitCategories::ReligiousGoodsStores => "religious_goods_stores",
995            IssuingCardSpendingLimitCategories::ReligiousOrganizations => "religious_organizations",
996            IssuingCardSpendingLimitCategories::RoofingSidingSheetMetal => "roofing_siding_sheet_metal",
997            IssuingCardSpendingLimitCategories::SecretarialSupportServices => "secretarial_support_services",
998            IssuingCardSpendingLimitCategories::SecurityBrokersDealers => "security_brokers_dealers",
999            IssuingCardSpendingLimitCategories::ServiceStations => "service_stations",
1000            IssuingCardSpendingLimitCategories::SewingNeedleworkFabricAndPieceGoodsStores => "sewing_needlework_fabric_and_piece_goods_stores",
1001            IssuingCardSpendingLimitCategories::ShoeRepairHatCleaning => "shoe_repair_hat_cleaning",
1002            IssuingCardSpendingLimitCategories::ShoeStores => "shoe_stores",
1003            IssuingCardSpendingLimitCategories::SmallApplianceRepair => "small_appliance_repair",
1004            IssuingCardSpendingLimitCategories::SnowmobileDealers => "snowmobile_dealers",
1005            IssuingCardSpendingLimitCategories::SpecialTradeServices => "special_trade_services",
1006            IssuingCardSpendingLimitCategories::SpecialtyCleaning => "specialty_cleaning",
1007            IssuingCardSpendingLimitCategories::SportingGoodsStores => "sporting_goods_stores",
1008            IssuingCardSpendingLimitCategories::SportingRecreationCamps => "sporting_recreation_camps",
1009            IssuingCardSpendingLimitCategories::SportsAndRidingApparelStores => "sports_and_riding_apparel_stores",
1010            IssuingCardSpendingLimitCategories::SportsClubsFields => "sports_clubs_fields",
1011            IssuingCardSpendingLimitCategories::StampAndCoinStores => "stamp_and_coin_stores",
1012            IssuingCardSpendingLimitCategories::StationaryOfficeSuppliesPrintingAndWritingPaper => "stationary_office_supplies_printing_and_writing_paper",
1013            IssuingCardSpendingLimitCategories::StationeryStoresOfficeAndSchoolSupplyStores => "stationery_stores_office_and_school_supply_stores",
1014            IssuingCardSpendingLimitCategories::SwimmingPoolsSales => "swimming_pools_sales",
1015            IssuingCardSpendingLimitCategories::TUiTravelGermany => "t_ui_travel_germany",
1016            IssuingCardSpendingLimitCategories::TailorsAlterations => "tailors_alterations",
1017            IssuingCardSpendingLimitCategories::TaxPaymentsGovernmentAgencies => "tax_payments_government_agencies",
1018            IssuingCardSpendingLimitCategories::TaxPreparationServices => "tax_preparation_services",
1019            IssuingCardSpendingLimitCategories::TaxicabsLimousines => "taxicabs_limousines",
1020            IssuingCardSpendingLimitCategories::TelecommunicationEquipmentAndTelephoneSales => "telecommunication_equipment_and_telephone_sales",
1021            IssuingCardSpendingLimitCategories::TelecommunicationServices => "telecommunication_services",
1022            IssuingCardSpendingLimitCategories::TelegraphServices => "telegraph_services",
1023            IssuingCardSpendingLimitCategories::TentAndAwningShops => "tent_and_awning_shops",
1024            IssuingCardSpendingLimitCategories::TestingLaboratories => "testing_laboratories",
1025            IssuingCardSpendingLimitCategories::TheatricalTicketAgencies => "theatrical_ticket_agencies",
1026            IssuingCardSpendingLimitCategories::Timeshares => "timeshares",
1027            IssuingCardSpendingLimitCategories::TireRetreadingAndRepair => "tire_retreading_and_repair",
1028            IssuingCardSpendingLimitCategories::TollsBridgeFees => "tolls_bridge_fees",
1029            IssuingCardSpendingLimitCategories::TouristAttractionsAndExhibits => "tourist_attractions_and_exhibits",
1030            IssuingCardSpendingLimitCategories::TowingServices => "towing_services",
1031            IssuingCardSpendingLimitCategories::TrailerParksCampgrounds => "trailer_parks_campgrounds",
1032            IssuingCardSpendingLimitCategories::TransportationServices => "transportation_services",
1033            IssuingCardSpendingLimitCategories::TravelAgenciesTourOperators => "travel_agencies_tour_operators",
1034            IssuingCardSpendingLimitCategories::TruckStopIteration => "truck_stop_iteration",
1035            IssuingCardSpendingLimitCategories::TruckUtilityTrailerRentals => "truck_utility_trailer_rentals",
1036            IssuingCardSpendingLimitCategories::TypesettingPlateMakingAndRelatedServices => "typesetting_plate_making_and_related_services",
1037            IssuingCardSpendingLimitCategories::TypewriterStores => "typewriter_stores",
1038            IssuingCardSpendingLimitCategories::USFederalGovernmentAgenciesOrDepartments => "u_s_federal_government_agencies_or_departments",
1039            IssuingCardSpendingLimitCategories::UniformsCommercialClothing => "uniforms_commercial_clothing",
1040            IssuingCardSpendingLimitCategories::UsedMerchandiseAndSecondhandStores => "used_merchandise_and_secondhand_stores",
1041            IssuingCardSpendingLimitCategories::Utilities => "utilities",
1042            IssuingCardSpendingLimitCategories::VarietyStores => "variety_stores",
1043            IssuingCardSpendingLimitCategories::VeterinaryServices => "veterinary_services",
1044            IssuingCardSpendingLimitCategories::VideoAmusementGameSupplies => "video_amusement_game_supplies",
1045            IssuingCardSpendingLimitCategories::VideoGameArcades => "video_game_arcades",
1046            IssuingCardSpendingLimitCategories::VideoTapeRentalStores => "video_tape_rental_stores",
1047            IssuingCardSpendingLimitCategories::VocationalTradeSchools => "vocational_trade_schools",
1048            IssuingCardSpendingLimitCategories::WatchJewelryRepair => "watch_jewelry_repair",
1049            IssuingCardSpendingLimitCategories::WeldingRepair => "welding_repair",
1050            IssuingCardSpendingLimitCategories::WholesaleClubs => "wholesale_clubs",
1051            IssuingCardSpendingLimitCategories::WigAndToupeeStores => "wig_and_toupee_stores",
1052            IssuingCardSpendingLimitCategories::WiresMoneyOrders => "wires_money_orders",
1053            IssuingCardSpendingLimitCategories::WomensAccessoryAndSpecialtyShops => "womens_accessory_and_specialty_shops",
1054            IssuingCardSpendingLimitCategories::WomensReadyToWearStores => "womens_ready_to_wear_stores",
1055            IssuingCardSpendingLimitCategories::WreckingAndSalvageYards => "wrecking_and_salvage_yards",
1056        }
1057    }
1058}
1059
1060impl AsRef<str> for IssuingCardSpendingLimitCategories {
1061    fn as_ref(&self) -> &str {
1062        self.as_str()
1063    }
1064}
1065
1066impl std::fmt::Display for IssuingCardSpendingLimitCategories {
1067    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1068        self.as_str().fmt(f)
1069    }
1070}
1071impl std::default::Default for IssuingCardSpendingLimitCategories {
1072    fn default() -> Self {
1073        Self::AcRefrigerationRepair
1074    }
1075}
1076
1077/// An enum representing the possible values of an `IssuingCardSpendingLimit`'s `interval` field.
1078#[derive(Copy, Clone, Debug, Deserialize, Serialize, Eq, PartialEq)]
1079#[serde(rename_all = "snake_case")]
1080pub enum IssuingCardSpendingLimitInterval {
1081    AllTime,
1082    Daily,
1083    Monthly,
1084    PerAuthorization,
1085    Weekly,
1086    Yearly,
1087}
1088
1089impl IssuingCardSpendingLimitInterval {
1090    pub fn as_str(self) -> &'static str {
1091        match self {
1092            IssuingCardSpendingLimitInterval::AllTime => "all_time",
1093            IssuingCardSpendingLimitInterval::Daily => "daily",
1094            IssuingCardSpendingLimitInterval::Monthly => "monthly",
1095            IssuingCardSpendingLimitInterval::PerAuthorization => "per_authorization",
1096            IssuingCardSpendingLimitInterval::Weekly => "weekly",
1097            IssuingCardSpendingLimitInterval::Yearly => "yearly",
1098        }
1099    }
1100}
1101
1102impl AsRef<str> for IssuingCardSpendingLimitInterval {
1103    fn as_ref(&self) -> &str {
1104        self.as_str()
1105    }
1106}
1107
1108impl std::fmt::Display for IssuingCardSpendingLimitInterval {
1109    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1110        self.as_str().fmt(f)
1111    }
1112}
1113impl std::default::Default for IssuingCardSpendingLimitInterval {
1114    fn default() -> Self {
1115        Self::AllTime
1116    }
1117}
1118
1119/// An enum representing the possible values of an `IssuingCard`'s `status` field.
1120#[derive(Copy, Clone, Debug, Deserialize, Serialize, Eq, PartialEq)]
1121#[serde(rename_all = "snake_case")]
1122pub enum IssuingCardStatus {
1123    Active,
1124    Canceled,
1125    Inactive,
1126}
1127
1128impl IssuingCardStatus {
1129    pub fn as_str(self) -> &'static str {
1130        match self {
1131            IssuingCardStatus::Active => "active",
1132            IssuingCardStatus::Canceled => "canceled",
1133            IssuingCardStatus::Inactive => "inactive",
1134        }
1135    }
1136}
1137
1138impl AsRef<str> for IssuingCardStatus {
1139    fn as_ref(&self) -> &str {
1140        self.as_str()
1141    }
1142}
1143
1144impl std::fmt::Display for IssuingCardStatus {
1145    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1146        self.as_str().fmt(f)
1147    }
1148}
1149impl std::default::Default for IssuingCardStatus {
1150    fn default() -> Self {
1151        Self::Active
1152    }
1153}