use serde_derive::{Deserialize, Serialize};
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct MerchantData {
pub network_id: String,
pub category: MerchantCategory,
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub city: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub country: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
pub postal_code: Option<String>,
}
#[derive(Copy, Clone, Debug, Deserialize, Serialize, Eq, PartialEq)]
#[serde(rename_all = "snake_case")]
pub enum MerchantCategory {
AcRefrigerationRepair,
AccountingBookkeepingServices,
AdvertisingServices,
AgriculturalCooperative,
AirlinesAirCarriers,
AirportsFlyingFields,
AmbulanceServices,
AmusementParksCarnivals,
AntiqueReproductions,
AntiqueShops,
Aquariums,
ArchitecturalSurveyingServices,
ArtDealersAndGalleries,
ArtistsSupplyAndCraftShops,
AutoAndHomeSupplyStores,
AutoBodyRepairShops,
AutoPaintShops,
AutoServiceShops,
AutomatedCashDisburse,
AutomatedFuelDispensers,
AutomobileAssociations,
AutomotivePartsAndAccessoriesStores,
AutomotiveTireStores,
BailAndBondPayments,
Bakeries,
BandsOrchestras,
BarberAndBeautyShops,
BettingCasinoGambling,
BicycleShops,
BilliardPoolEstablishments,
BoatDealers,
BoatRentalsAndLeases,
BookStores,
BooksPeriodicalsAndNewspapers,
BowlingAlleys,
BusLines,
BusinessSecretarialSchools,
BuyingShoppingServices,
CableSatelliteAndOtherPayTelevisionAndRadio,
CameraAndPhotographicSupplyStores,
CandyNutAndConfectioneryStores,
CarAndTruckDealersNewUsed,
CarAndTruckDealersUsedOnly,
CarRentalAgencies,
CarWashes,
CarpentryServices,
CarpetUpholsteryCleaning,
Caterers,
CharitableAndSocialServiceOrganizationsFundraising,
ChemicalsAndAlliedProducts,
ChidrensAndInfantsWearStores,
ChildCareServices,
ChiropodistsPodiatrists,
Chiropractors,
CigarStoresAndStands,
CivicSocialFraternalAssociations,
CleaningAndMaintenance,
ClothingRental,
CollegesUniversities,
CommercialEquipment,
CommercialFootwear,
CommercialPhotographyArtAndGraphics,
CommuterTransportAndFerries,
ComputerNetworkServices,
ComputerProgramming,
ComputerRepair,
ComputerSoftwareStores,
ComputersPeripheralsAndSoftware,
ConcreteWorkServices,
ConstructionMaterials,
ConsultingPublicRelations,
CorrespondenceSchools,
CosmeticStores,
CounselingServices,
CountryClubs,
CourierServices,
CourtCosts,
CreditReportingAgencies,
CruiseLines,
DairyProductsStores,
DanceHallStudiosSchools,
DatingEscortServices,
DentistsOrthodontists,
DepartmentStores,
DetectiveAgencies,
DirectMarketingCatalogMerchant,
DirectMarketingCombinationCatalogAndRetailMerchant,
DirectMarketingInboundTelemarketing,
DirectMarketingInsuranceServices,
DirectMarketingOther,
DirectMarketingOutboundTelemarketing,
DirectMarketingSubscription,
DirectMarketingTravel,
DiscountStores,
Doctors,
DoorToDoorSales,
DraperyWindowCoveringAndUpholsteryStores,
DrinkingPlaces,
DrugStoresAndPharmacies,
DrugsDrugProprietariesAndDruggistSundries,
DryCleaners,
DurableGoods,
DutyFreeStores,
EatingPlacesRestaurants,
EducationalServices,
ElectricRazorStores,
ElectricalPartsAndEquipment,
ElectricalServices,
ElectronicsRepairShops,
ElectronicsStores,
ElementarySecondarySchools,
EmploymentTempAgencies,
EquipmentRental,
ExterminatingServices,
FamilyClothingStores,
FastFoodRestaurants,
FinancialInstitutions,
FinesGovernmentAdministrativeEntities,
FireplaceFireplaceScreensAndAccessoriesStores,
FloorCoveringStores,
Florists,
FloristsSuppliesNurseryStockAndFlowers,
FreezerAndLockerMeatProvisioners,
FuelDealersNonAutomotive,
FuneralServicesCrematories,
FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances,
FurnitureRepairRefinishing,
FurriersAndFurShops,
GeneralServices,
GiftCardNoveltyAndSouvenirShops,
GlassPaintAndWallpaperStores,
GlasswareCrystalStores,
GolfCoursesPublic,
GovernmentServices,
GroceryStoresSupermarkets,
HardwareEquipmentAndSupplies,
HardwareStores,
HealthAndBeautySpas,
HearingAidsSalesAndSupplies,
#[serde(rename = "heating_plumbing_a_c")]
HeatingPlumbingAC,
HobbyToyAndGameShops,
HomeSupplyWarehouseStores,
Hospitals,
HotelsMotelsAndResorts,
HouseholdApplianceStores,
IndustrialSupplies,
InformationRetrievalServices,
InsuranceDefault,
InsuranceUnderwritingPremiums,
IntraCompanyPurchases,
JewelryStoresWatchesClocksAndSilverwareStores,
LandscapingServices,
Laundries,
LaundryCleaningServices,
LegalServicesAttorneys,
LuggageAndLeatherGoodsStores,
LumberBuildingMaterialsStores,
ManualCashDisburse,
MarinasServiceAndSupplies,
MasonryStoneworkAndPlaster,
MassageParlors,
MedicalAndDentalLabs,
MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies,
MedicalServices,
MembershipOrganizations,
MensAndBoysClothingAndAccessoriesStores,
MensWomensClothingStores,
MetalServiceCenters,
Miscellaneous,
MiscellaneousApparelAndAccessoryShops,
MiscellaneousAutoDealers,
MiscellaneousBusinessServices,
MiscellaneousFoodStores,
MiscellaneousGeneralMerchandise,
MiscellaneousGeneralServices,
MiscellaneousHomeFurnishingSpecialtyStores,
MiscellaneousPublishingAndPrinting,
MiscellaneousRecreationServices,
MiscellaneousRepairShops,
MiscellaneousSpecialtyRetail,
MobileHomeDealers,
MotionPictureTheaters,
MotorFreightCarriersAndTrucking,
MotorHomesDealers,
MotorVehicleSuppliesAndNewParts,
MotorcycleShopsAndDealers,
MotorcycleShopsDealers,
MusicStoresMusicalInstrumentsPianosAndSheetMusic,
NewsDealersAndNewsstands,
NonFiMoneyOrders,
NonFiStoredValueCardPurchaseLoad,
NondurableGoods,
NurseriesLawnAndGardenSupplyStores,
NursingPersonalCare,
OfficeAndCommercialFurniture,
OpticiansEyeglasses,
OptometristsOphthalmologist,
OrthopedicGoodsProstheticDevices,
Osteopaths,
PackageStoresBeerWineAndLiquor,
PaintsVarnishesAndSupplies,
ParkingLotsGarages,
PassengerRailways,
PawnShops,
PetShopsPetFoodAndSupplies,
PetroleumAndPetroleumProducts,
PhotoDeveloping,
PhotographicPhotocopyMicrofilmEquipmentAndSupplies,
PhotographicStudios,
PictureVideoProduction,
PieceGoodsNotionsAndOtherDryGoods,
PlumbingHeatingEquipmentAndSupplies,
PoliticalOrganizations,
PostalServicesGovernmentOnly,
PreciousStonesAndMetalsWatchesAndJewelry,
ProfessionalServices,
PublicWarehousingAndStorage,
QuickCopyReproAndBlueprint,
Railroads,
RealEstateAgentsAndManagersRentals,
RecordStores,
RecreationalVehicleRentals,
ReligiousGoodsStores,
ReligiousOrganizations,
RoofingSidingSheetMetal,
SecretarialSupportServices,
SecurityBrokersDealers,
ServiceStations,
SewingNeedleworkFabricAndPieceGoodsStores,
ShoeRepairHatCleaning,
ShoeStores,
SmallApplianceRepair,
SnowmobileDealers,
SpecialTradeServices,
SpecialtyCleaning,
SportingGoodsStores,
SportingRecreationCamps,
SportsAndRidingApparelStores,
SportsClubsFields,
StampAndCoinStores,
StationaryOfficeSuppliesPrintingAndWritingPaper,
StationeryStoresOfficeAndSchoolSupplyStores,
SwimmingPoolsSales,
TUiTravelGermany,
TailorsAlterations,
TaxPaymentsGovernmentAgencies,
TaxPreparationServices,
TaxicabsLimousines,
TelecommunicationEquipmentAndTelephoneSales,
TelecommunicationServices,
TelegraphServices,
TentAndAwningShops,
TestingLaboratories,
TheatricalTicketAgencies,
Timeshares,
TireRetreadingAndRepair,
TollsBridgeFees,
TouristAttractionsAndExhibits,
TowingServices,
TrailerParksCampgrounds,
TransportationServices,
TravelAgenciesTourOperators,
TruckStopIteration,
TruckUtilityTrailerRentals,
TypesettingPlateMakingAndRelatedServices,
TypewriterStores,
#[serde(rename = "u_s_federal_government_agencies_or_departments")]
USFederalGovernmentAgenciesOrDepartments,
UniformsCommercialClothing,
UsedMerchandiseAndSecondhandStores,
Utilities,
VarietyStores,
VeterinaryServices,
VideoAmusementGameSupplies,
VideoGameArcades,
VideoTapeRentalStores,
VocationalTradeSchools,
WatchJewelryRepair,
WeldingRepair,
WholesaleClubs,
WigAndToupeeStores,
WiresMoneyOrders,
WomensAccessoryAndSpecialtyShops,
WomensReadyToWearStores,
WreckingAndSalvageYards,
}