1use stripe_client_core::{
2 RequestBuilder, StripeBlockingClient, StripeClient, StripeMethod, StripeRequest,
3};
4
5#[derive(Clone, Eq, PartialEq)]
6#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
7#[derive(serde::Serialize)]
8struct ListIssuingCardBuilder {
9 #[serde(skip_serializing_if = "Option::is_none")]
10 cardholder: Option<String>,
11 #[serde(skip_serializing_if = "Option::is_none")]
12 created: Option<stripe_types::RangeQueryTs>,
13 #[serde(skip_serializing_if = "Option::is_none")]
14 ending_before: Option<String>,
15 #[serde(skip_serializing_if = "Option::is_none")]
16 exp_month: Option<i64>,
17 #[serde(skip_serializing_if = "Option::is_none")]
18 exp_year: Option<i64>,
19 #[serde(skip_serializing_if = "Option::is_none")]
20 expand: Option<Vec<String>>,
21 #[serde(skip_serializing_if = "Option::is_none")]
22 last4: Option<String>,
23 #[serde(skip_serializing_if = "Option::is_none")]
24 limit: Option<i64>,
25 #[serde(skip_serializing_if = "Option::is_none")]
26 personalization_design: Option<String>,
27 #[serde(skip_serializing_if = "Option::is_none")]
28 starting_after: Option<String>,
29 #[serde(skip_serializing_if = "Option::is_none")]
30 status: Option<stripe_shared::IssuingCardStatus>,
31 #[serde(rename = "type")]
32 #[serde(skip_serializing_if = "Option::is_none")]
33 type_: Option<stripe_shared::IssuingCardType>,
34}
35#[cfg(feature = "redact-generated-debug")]
36impl std::fmt::Debug for ListIssuingCardBuilder {
37 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
38 f.debug_struct("ListIssuingCardBuilder").finish_non_exhaustive()
39 }
40}
41impl ListIssuingCardBuilder {
42 fn new() -> Self {
43 Self {
44 cardholder: None,
45 created: None,
46 ending_before: None,
47 exp_month: None,
48 exp_year: None,
49 expand: None,
50 last4: None,
51 limit: None,
52 personalization_design: None,
53 starting_after: None,
54 status: None,
55 type_: None,
56 }
57 }
58}
59#[derive(Clone)]
62#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
63#[derive(serde::Serialize)]
64pub struct ListIssuingCard {
65 inner: ListIssuingCardBuilder,
66}
67#[cfg(feature = "redact-generated-debug")]
68impl std::fmt::Debug for ListIssuingCard {
69 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
70 f.debug_struct("ListIssuingCard").finish_non_exhaustive()
71 }
72}
73impl ListIssuingCard {
74 pub fn new() -> Self {
76 Self { inner: ListIssuingCardBuilder::new() }
77 }
78 pub fn cardholder(mut self, cardholder: impl Into<String>) -> Self {
80 self.inner.cardholder = Some(cardholder.into());
81 self
82 }
83 pub fn created(mut self, created: impl Into<stripe_types::RangeQueryTs>) -> Self {
85 self.inner.created = Some(created.into());
86 self
87 }
88 pub fn ending_before(mut self, ending_before: impl Into<String>) -> Self {
92 self.inner.ending_before = Some(ending_before.into());
93 self
94 }
95 pub fn exp_month(mut self, exp_month: impl Into<i64>) -> Self {
97 self.inner.exp_month = Some(exp_month.into());
98 self
99 }
100 pub fn exp_year(mut self, exp_year: impl Into<i64>) -> Self {
102 self.inner.exp_year = Some(exp_year.into());
103 self
104 }
105 pub fn expand(mut self, expand: impl Into<Vec<String>>) -> Self {
107 self.inner.expand = Some(expand.into());
108 self
109 }
110 pub fn last4(mut self, last4: impl Into<String>) -> Self {
112 self.inner.last4 = Some(last4.into());
113 self
114 }
115 pub fn limit(mut self, limit: impl Into<i64>) -> Self {
118 self.inner.limit = Some(limit.into());
119 self
120 }
121 pub fn personalization_design(mut self, personalization_design: impl Into<String>) -> Self {
122 self.inner.personalization_design = Some(personalization_design.into());
123 self
124 }
125 pub fn starting_after(mut self, starting_after: impl Into<String>) -> Self {
129 self.inner.starting_after = Some(starting_after.into());
130 self
131 }
132 pub fn status(mut self, status: impl Into<stripe_shared::IssuingCardStatus>) -> Self {
134 self.inner.status = Some(status.into());
135 self
136 }
137 pub fn type_(mut self, type_: impl Into<stripe_shared::IssuingCardType>) -> Self {
139 self.inner.type_ = Some(type_.into());
140 self
141 }
142}
143impl Default for ListIssuingCard {
144 fn default() -> Self {
145 Self::new()
146 }
147}
148impl ListIssuingCard {
149 pub async fn send<C: StripeClient>(
151 &self,
152 client: &C,
153 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
154 self.customize().send(client).await
155 }
156
157 pub fn send_blocking<C: StripeBlockingClient>(
159 &self,
160 client: &C,
161 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
162 self.customize().send_blocking(client)
163 }
164
165 pub fn paginate(
166 &self,
167 ) -> stripe_client_core::ListPaginator<stripe_types::List<stripe_shared::IssuingCard>> {
168 stripe_client_core::ListPaginator::new_list("/issuing/cards", &self.inner)
169 }
170}
171
172impl StripeRequest for ListIssuingCard {
173 type Output = stripe_types::List<stripe_shared::IssuingCard>;
174
175 fn build(&self) -> RequestBuilder {
176 RequestBuilder::new(StripeMethod::Get, "/issuing/cards").query(&self.inner)
177 }
178}
179#[derive(Clone, Eq, PartialEq)]
180#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
181#[derive(serde::Serialize)]
182struct RetrieveIssuingCardBuilder {
183 #[serde(skip_serializing_if = "Option::is_none")]
184 expand: Option<Vec<String>>,
185}
186#[cfg(feature = "redact-generated-debug")]
187impl std::fmt::Debug for RetrieveIssuingCardBuilder {
188 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
189 f.debug_struct("RetrieveIssuingCardBuilder").finish_non_exhaustive()
190 }
191}
192impl RetrieveIssuingCardBuilder {
193 fn new() -> Self {
194 Self { expand: None }
195 }
196}
197#[derive(Clone)]
199#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
200#[derive(serde::Serialize)]
201pub struct RetrieveIssuingCard {
202 inner: RetrieveIssuingCardBuilder,
203 card: stripe_shared::IssuingCardId,
204}
205#[cfg(feature = "redact-generated-debug")]
206impl std::fmt::Debug for RetrieveIssuingCard {
207 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
208 f.debug_struct("RetrieveIssuingCard").finish_non_exhaustive()
209 }
210}
211impl RetrieveIssuingCard {
212 pub fn new(card: impl Into<stripe_shared::IssuingCardId>) -> Self {
214 Self { card: card.into(), inner: RetrieveIssuingCardBuilder::new() }
215 }
216 pub fn expand(mut self, expand: impl Into<Vec<String>>) -> Self {
218 self.inner.expand = Some(expand.into());
219 self
220 }
221}
222impl RetrieveIssuingCard {
223 pub async fn send<C: StripeClient>(
225 &self,
226 client: &C,
227 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
228 self.customize().send(client).await
229 }
230
231 pub fn send_blocking<C: StripeBlockingClient>(
233 &self,
234 client: &C,
235 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
236 self.customize().send_blocking(client)
237 }
238}
239
240impl StripeRequest for RetrieveIssuingCard {
241 type Output = stripe_shared::IssuingCard;
242
243 fn build(&self) -> RequestBuilder {
244 let card = &self.card;
245 RequestBuilder::new(StripeMethod::Get, format!("/issuing/cards/{card}")).query(&self.inner)
246 }
247}
248#[derive(Clone)]
249#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
250#[derive(serde::Serialize)]
251struct CreateIssuingCardBuilder {
252 #[serde(skip_serializing_if = "Option::is_none")]
253 cardholder: Option<String>,
254 currency: stripe_types::Currency,
255 #[serde(skip_serializing_if = "Option::is_none")]
256 exp_month: Option<i64>,
257 #[serde(skip_serializing_if = "Option::is_none")]
258 exp_year: Option<i64>,
259 #[serde(skip_serializing_if = "Option::is_none")]
260 expand: Option<Vec<String>>,
261 #[serde(skip_serializing_if = "Option::is_none")]
262 financial_account: Option<String>,
263 #[serde(skip_serializing_if = "Option::is_none")]
264 lifecycle_controls: Option<CreateIssuingCardLifecycleControls>,
265 #[serde(skip_serializing_if = "Option::is_none")]
266 metadata: Option<std::collections::HashMap<String, String>>,
267 #[serde(skip_serializing_if = "Option::is_none")]
268 personalization_design: Option<String>,
269 #[serde(skip_serializing_if = "Option::is_none")]
270 pin: Option<EncryptedPinParam>,
271 #[serde(skip_serializing_if = "Option::is_none")]
272 replacement_for: Option<String>,
273 #[serde(skip_serializing_if = "Option::is_none")]
274 replacement_reason: Option<CreateIssuingCardReplacementReason>,
275 #[serde(skip_serializing_if = "Option::is_none")]
276 second_line: Option<String>,
277 #[serde(skip_serializing_if = "Option::is_none")]
278 shipping: Option<CreateIssuingCardShipping>,
279 #[serde(skip_serializing_if = "Option::is_none")]
280 spending_controls: Option<CreateIssuingCardSpendingControls>,
281 #[serde(skip_serializing_if = "Option::is_none")]
282 status: Option<CreateIssuingCardStatus>,
283 #[serde(rename = "type")]
284 type_: stripe_shared::IssuingCardType,
285}
286#[cfg(feature = "redact-generated-debug")]
287impl std::fmt::Debug for CreateIssuingCardBuilder {
288 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
289 f.debug_struct("CreateIssuingCardBuilder").finish_non_exhaustive()
290 }
291}
292impl CreateIssuingCardBuilder {
293 fn new(
294 currency: impl Into<stripe_types::Currency>,
295 type_: impl Into<stripe_shared::IssuingCardType>,
296 ) -> Self {
297 Self {
298 cardholder: None,
299 currency: currency.into(),
300 exp_month: None,
301 exp_year: None,
302 expand: None,
303 financial_account: None,
304 lifecycle_controls: None,
305 metadata: None,
306 personalization_design: None,
307 pin: None,
308 replacement_for: None,
309 replacement_reason: None,
310 second_line: None,
311 shipping: None,
312 spending_controls: None,
313 status: None,
314 type_: type_.into(),
315 }
316 }
317}
318#[derive(Copy, Clone, Eq, PartialEq)]
321#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
322#[derive(serde::Serialize)]
323pub struct CreateIssuingCardLifecycleControls {
324 pub cancel_after: CreateIssuingCardLifecycleControlsCancelAfter,
326}
327#[cfg(feature = "redact-generated-debug")]
328impl std::fmt::Debug for CreateIssuingCardLifecycleControls {
329 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
330 f.debug_struct("CreateIssuingCardLifecycleControls").finish_non_exhaustive()
331 }
332}
333impl CreateIssuingCardLifecycleControls {
334 pub fn new(cancel_after: impl Into<CreateIssuingCardLifecycleControlsCancelAfter>) -> Self {
335 Self { cancel_after: cancel_after.into() }
336 }
337}
338#[derive(Copy, Clone, Eq, PartialEq)]
340#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
341#[derive(serde::Serialize)]
342pub struct CreateIssuingCardLifecycleControlsCancelAfter {
343 pub payment_count: u64,
346}
347#[cfg(feature = "redact-generated-debug")]
348impl std::fmt::Debug for CreateIssuingCardLifecycleControlsCancelAfter {
349 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
350 f.debug_struct("CreateIssuingCardLifecycleControlsCancelAfter").finish_non_exhaustive()
351 }
352}
353impl CreateIssuingCardLifecycleControlsCancelAfter {
354 pub fn new(payment_count: impl Into<u64>) -> Self {
355 Self { payment_count: payment_count.into() }
356 }
357}
358#[derive(Clone, Eq, PartialEq)]
360#[non_exhaustive]
361pub enum CreateIssuingCardReplacementReason {
362 Damaged,
363 Expired,
364 Lost,
365 Stolen,
366 Unknown(String),
368}
369impl CreateIssuingCardReplacementReason {
370 pub fn as_str(&self) -> &str {
371 use CreateIssuingCardReplacementReason::*;
372 match self {
373 Damaged => "damaged",
374 Expired => "expired",
375 Lost => "lost",
376 Stolen => "stolen",
377 Unknown(v) => v,
378 }
379 }
380}
381
382impl std::str::FromStr for CreateIssuingCardReplacementReason {
383 type Err = std::convert::Infallible;
384 fn from_str(s: &str) -> Result<Self, Self::Err> {
385 use CreateIssuingCardReplacementReason::*;
386 match s {
387 "damaged" => Ok(Damaged),
388 "expired" => Ok(Expired),
389 "lost" => Ok(Lost),
390 "stolen" => Ok(Stolen),
391 v => {
392 tracing::warn!(
393 "Unknown value '{}' for enum '{}'",
394 v,
395 "CreateIssuingCardReplacementReason"
396 );
397 Ok(Unknown(v.to_owned()))
398 }
399 }
400 }
401}
402impl std::fmt::Display for CreateIssuingCardReplacementReason {
403 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
404 f.write_str(self.as_str())
405 }
406}
407
408#[cfg(not(feature = "redact-generated-debug"))]
409impl std::fmt::Debug for CreateIssuingCardReplacementReason {
410 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
411 f.write_str(self.as_str())
412 }
413}
414#[cfg(feature = "redact-generated-debug")]
415impl std::fmt::Debug for CreateIssuingCardReplacementReason {
416 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
417 f.debug_struct(stringify!(CreateIssuingCardReplacementReason)).finish_non_exhaustive()
418 }
419}
420impl serde::Serialize for CreateIssuingCardReplacementReason {
421 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
422 where
423 S: serde::Serializer,
424 {
425 serializer.serialize_str(self.as_str())
426 }
427}
428#[cfg(feature = "deserialize")]
429impl<'de> serde::Deserialize<'de> for CreateIssuingCardReplacementReason {
430 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
431 use std::str::FromStr;
432 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
433 Ok(Self::from_str(&s).expect("infallible"))
434 }
435}
436#[derive(Clone, Eq, PartialEq)]
438#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
439#[derive(serde::Serialize)]
440pub struct CreateIssuingCardShipping {
441 pub address: RequiredAddress,
443 #[serde(skip_serializing_if = "Option::is_none")]
445 pub address_validation: Option<CreateIssuingCardShippingAddressValidation>,
446 #[serde(skip_serializing_if = "Option::is_none")]
448 pub customs: Option<CustomsParam>,
449 pub name: String,
451 #[serde(skip_serializing_if = "Option::is_none")]
453 pub phone_number: Option<String>,
454 #[serde(skip_serializing_if = "Option::is_none")]
456 pub require_signature: Option<bool>,
457 #[serde(skip_serializing_if = "Option::is_none")]
459 pub service: Option<CreateIssuingCardShippingService>,
460 #[serde(rename = "type")]
462 #[serde(skip_serializing_if = "Option::is_none")]
463 pub type_: Option<CreateIssuingCardShippingType>,
464}
465#[cfg(feature = "redact-generated-debug")]
466impl std::fmt::Debug for CreateIssuingCardShipping {
467 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
468 f.debug_struct("CreateIssuingCardShipping").finish_non_exhaustive()
469 }
470}
471impl CreateIssuingCardShipping {
472 pub fn new(address: impl Into<RequiredAddress>, name: impl Into<String>) -> Self {
473 Self {
474 address: address.into(),
475 address_validation: None,
476 customs: None,
477 name: name.into(),
478 phone_number: None,
479 require_signature: None,
480 service: None,
481 type_: None,
482 }
483 }
484}
485#[derive(Clone, Eq, PartialEq)]
487#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
488#[derive(serde::Serialize)]
489pub struct CreateIssuingCardShippingAddressValidation {
490 pub mode: CreateIssuingCardShippingAddressValidationMode,
492}
493#[cfg(feature = "redact-generated-debug")]
494impl std::fmt::Debug for CreateIssuingCardShippingAddressValidation {
495 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
496 f.debug_struct("CreateIssuingCardShippingAddressValidation").finish_non_exhaustive()
497 }
498}
499impl CreateIssuingCardShippingAddressValidation {
500 pub fn new(mode: impl Into<CreateIssuingCardShippingAddressValidationMode>) -> Self {
501 Self { mode: mode.into() }
502 }
503}
504#[derive(Clone, Eq, PartialEq)]
506#[non_exhaustive]
507pub enum CreateIssuingCardShippingAddressValidationMode {
508 Disabled,
509 NormalizationOnly,
510 ValidationAndNormalization,
511 Unknown(String),
513}
514impl CreateIssuingCardShippingAddressValidationMode {
515 pub fn as_str(&self) -> &str {
516 use CreateIssuingCardShippingAddressValidationMode::*;
517 match self {
518 Disabled => "disabled",
519 NormalizationOnly => "normalization_only",
520 ValidationAndNormalization => "validation_and_normalization",
521 Unknown(v) => v,
522 }
523 }
524}
525
526impl std::str::FromStr for CreateIssuingCardShippingAddressValidationMode {
527 type Err = std::convert::Infallible;
528 fn from_str(s: &str) -> Result<Self, Self::Err> {
529 use CreateIssuingCardShippingAddressValidationMode::*;
530 match s {
531 "disabled" => Ok(Disabled),
532 "normalization_only" => Ok(NormalizationOnly),
533 "validation_and_normalization" => Ok(ValidationAndNormalization),
534 v => {
535 tracing::warn!(
536 "Unknown value '{}' for enum '{}'",
537 v,
538 "CreateIssuingCardShippingAddressValidationMode"
539 );
540 Ok(Unknown(v.to_owned()))
541 }
542 }
543 }
544}
545impl std::fmt::Display for CreateIssuingCardShippingAddressValidationMode {
546 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
547 f.write_str(self.as_str())
548 }
549}
550
551#[cfg(not(feature = "redact-generated-debug"))]
552impl std::fmt::Debug for CreateIssuingCardShippingAddressValidationMode {
553 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
554 f.write_str(self.as_str())
555 }
556}
557#[cfg(feature = "redact-generated-debug")]
558impl std::fmt::Debug for CreateIssuingCardShippingAddressValidationMode {
559 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
560 f.debug_struct(stringify!(CreateIssuingCardShippingAddressValidationMode))
561 .finish_non_exhaustive()
562 }
563}
564impl serde::Serialize for CreateIssuingCardShippingAddressValidationMode {
565 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
566 where
567 S: serde::Serializer,
568 {
569 serializer.serialize_str(self.as_str())
570 }
571}
572#[cfg(feature = "deserialize")]
573impl<'de> serde::Deserialize<'de> for CreateIssuingCardShippingAddressValidationMode {
574 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
575 use std::str::FromStr;
576 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
577 Ok(Self::from_str(&s).expect("infallible"))
578 }
579}
580#[derive(Clone, Eq, PartialEq)]
582#[non_exhaustive]
583pub enum CreateIssuingCardShippingService {
584 Express,
585 Priority,
586 Standard,
587 Unknown(String),
589}
590impl CreateIssuingCardShippingService {
591 pub fn as_str(&self) -> &str {
592 use CreateIssuingCardShippingService::*;
593 match self {
594 Express => "express",
595 Priority => "priority",
596 Standard => "standard",
597 Unknown(v) => v,
598 }
599 }
600}
601
602impl std::str::FromStr for CreateIssuingCardShippingService {
603 type Err = std::convert::Infallible;
604 fn from_str(s: &str) -> Result<Self, Self::Err> {
605 use CreateIssuingCardShippingService::*;
606 match s {
607 "express" => Ok(Express),
608 "priority" => Ok(Priority),
609 "standard" => Ok(Standard),
610 v => {
611 tracing::warn!(
612 "Unknown value '{}' for enum '{}'",
613 v,
614 "CreateIssuingCardShippingService"
615 );
616 Ok(Unknown(v.to_owned()))
617 }
618 }
619 }
620}
621impl std::fmt::Display for CreateIssuingCardShippingService {
622 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
623 f.write_str(self.as_str())
624 }
625}
626
627#[cfg(not(feature = "redact-generated-debug"))]
628impl std::fmt::Debug for CreateIssuingCardShippingService {
629 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
630 f.write_str(self.as_str())
631 }
632}
633#[cfg(feature = "redact-generated-debug")]
634impl std::fmt::Debug for CreateIssuingCardShippingService {
635 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
636 f.debug_struct(stringify!(CreateIssuingCardShippingService)).finish_non_exhaustive()
637 }
638}
639impl serde::Serialize for CreateIssuingCardShippingService {
640 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
641 where
642 S: serde::Serializer,
643 {
644 serializer.serialize_str(self.as_str())
645 }
646}
647#[cfg(feature = "deserialize")]
648impl<'de> serde::Deserialize<'de> for CreateIssuingCardShippingService {
649 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
650 use std::str::FromStr;
651 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
652 Ok(Self::from_str(&s).expect("infallible"))
653 }
654}
655#[derive(Clone, Eq, PartialEq)]
657#[non_exhaustive]
658pub enum CreateIssuingCardShippingType {
659 Bulk,
660 Individual,
661 Unknown(String),
663}
664impl CreateIssuingCardShippingType {
665 pub fn as_str(&self) -> &str {
666 use CreateIssuingCardShippingType::*;
667 match self {
668 Bulk => "bulk",
669 Individual => "individual",
670 Unknown(v) => v,
671 }
672 }
673}
674
675impl std::str::FromStr for CreateIssuingCardShippingType {
676 type Err = std::convert::Infallible;
677 fn from_str(s: &str) -> Result<Self, Self::Err> {
678 use CreateIssuingCardShippingType::*;
679 match s {
680 "bulk" => Ok(Bulk),
681 "individual" => Ok(Individual),
682 v => {
683 tracing::warn!(
684 "Unknown value '{}' for enum '{}'",
685 v,
686 "CreateIssuingCardShippingType"
687 );
688 Ok(Unknown(v.to_owned()))
689 }
690 }
691 }
692}
693impl std::fmt::Display for CreateIssuingCardShippingType {
694 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
695 f.write_str(self.as_str())
696 }
697}
698
699#[cfg(not(feature = "redact-generated-debug"))]
700impl std::fmt::Debug for CreateIssuingCardShippingType {
701 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
702 f.write_str(self.as_str())
703 }
704}
705#[cfg(feature = "redact-generated-debug")]
706impl std::fmt::Debug for CreateIssuingCardShippingType {
707 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
708 f.debug_struct(stringify!(CreateIssuingCardShippingType)).finish_non_exhaustive()
709 }
710}
711impl serde::Serialize for CreateIssuingCardShippingType {
712 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
713 where
714 S: serde::Serializer,
715 {
716 serializer.serialize_str(self.as_str())
717 }
718}
719#[cfg(feature = "deserialize")]
720impl<'de> serde::Deserialize<'de> for CreateIssuingCardShippingType {
721 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
722 use std::str::FromStr;
723 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
724 Ok(Self::from_str(&s).expect("infallible"))
725 }
726}
727#[derive(Clone, Eq, PartialEq)]
730#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
731#[derive(serde::Serialize)]
732pub struct CreateIssuingCardSpendingControls {
733 #[serde(skip_serializing_if = "Option::is_none")]
739 pub allowed_card_presences: Option<Vec<CreateIssuingCardSpendingControlsAllowedCardPresences>>,
740 #[serde(skip_serializing_if = "Option::is_none")]
744 pub allowed_categories: Option<Vec<CreateIssuingCardSpendingControlsAllowedCategories>>,
745 #[serde(skip_serializing_if = "Option::is_none")]
752 pub allowed_merchant_countries: Option<Vec<String>>,
753 #[serde(skip_serializing_if = "Option::is_none")]
758 pub blocked_card_presences: Option<Vec<CreateIssuingCardSpendingControlsBlockedCardPresences>>,
759 #[serde(skip_serializing_if = "Option::is_none")]
763 pub blocked_categories: Option<Vec<CreateIssuingCardSpendingControlsBlockedCategories>>,
764 #[serde(skip_serializing_if = "Option::is_none")]
770 pub blocked_merchant_countries: Option<Vec<String>>,
771 #[serde(skip_serializing_if = "Option::is_none")]
773 pub spending_limits: Option<Vec<CreateIssuingCardSpendingControlsSpendingLimits>>,
774}
775#[cfg(feature = "redact-generated-debug")]
776impl std::fmt::Debug for CreateIssuingCardSpendingControls {
777 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
778 f.debug_struct("CreateIssuingCardSpendingControls").finish_non_exhaustive()
779 }
780}
781impl CreateIssuingCardSpendingControls {
782 pub fn new() -> Self {
783 Self {
784 allowed_card_presences: None,
785 allowed_categories: None,
786 allowed_merchant_countries: None,
787 blocked_card_presences: None,
788 blocked_categories: None,
789 blocked_merchant_countries: None,
790 spending_limits: None,
791 }
792 }
793}
794impl Default for CreateIssuingCardSpendingControls {
795 fn default() -> Self {
796 Self::new()
797 }
798}
799#[derive(Clone, Eq, PartialEq)]
805#[non_exhaustive]
806pub enum CreateIssuingCardSpendingControlsAllowedCardPresences {
807 NotPresent,
808 Present,
809 Unknown(String),
811}
812impl CreateIssuingCardSpendingControlsAllowedCardPresences {
813 pub fn as_str(&self) -> &str {
814 use CreateIssuingCardSpendingControlsAllowedCardPresences::*;
815 match self {
816 NotPresent => "not_present",
817 Present => "present",
818 Unknown(v) => v,
819 }
820 }
821}
822
823impl std::str::FromStr for CreateIssuingCardSpendingControlsAllowedCardPresences {
824 type Err = std::convert::Infallible;
825 fn from_str(s: &str) -> Result<Self, Self::Err> {
826 use CreateIssuingCardSpendingControlsAllowedCardPresences::*;
827 match s {
828 "not_present" => Ok(NotPresent),
829 "present" => Ok(Present),
830 v => {
831 tracing::warn!(
832 "Unknown value '{}' for enum '{}'",
833 v,
834 "CreateIssuingCardSpendingControlsAllowedCardPresences"
835 );
836 Ok(Unknown(v.to_owned()))
837 }
838 }
839 }
840}
841impl std::fmt::Display for CreateIssuingCardSpendingControlsAllowedCardPresences {
842 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
843 f.write_str(self.as_str())
844 }
845}
846
847#[cfg(not(feature = "redact-generated-debug"))]
848impl std::fmt::Debug for CreateIssuingCardSpendingControlsAllowedCardPresences {
849 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
850 f.write_str(self.as_str())
851 }
852}
853#[cfg(feature = "redact-generated-debug")]
854impl std::fmt::Debug for CreateIssuingCardSpendingControlsAllowedCardPresences {
855 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
856 f.debug_struct(stringify!(CreateIssuingCardSpendingControlsAllowedCardPresences))
857 .finish_non_exhaustive()
858 }
859}
860impl serde::Serialize for CreateIssuingCardSpendingControlsAllowedCardPresences {
861 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
862 where
863 S: serde::Serializer,
864 {
865 serializer.serialize_str(self.as_str())
866 }
867}
868#[cfg(feature = "deserialize")]
869impl<'de> serde::Deserialize<'de> for CreateIssuingCardSpendingControlsAllowedCardPresences {
870 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
871 use std::str::FromStr;
872 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
873 Ok(Self::from_str(&s).expect("infallible"))
874 }
875}
876#[derive(Clone, Eq, PartialEq)]
880#[non_exhaustive]
881pub enum CreateIssuingCardSpendingControlsAllowedCategories {
882 AcRefrigerationRepair,
883 AccountingBookkeepingServices,
884 AdvertisingServices,
885 AgriculturalCooperative,
886 AirlinesAirCarriers,
887 AirportsFlyingFields,
888 AmbulanceServices,
889 AmusementParksCarnivals,
890 AntiqueReproductions,
891 AntiqueShops,
892 Aquariums,
893 ArchitecturalSurveyingServices,
894 ArtDealersAndGalleries,
895 ArtistsSupplyAndCraftShops,
896 AutoAndHomeSupplyStores,
897 AutoBodyRepairShops,
898 AutoPaintShops,
899 AutoServiceShops,
900 AutomatedCashDisburse,
901 AutomatedFuelDispensers,
902 AutomobileAssociations,
903 AutomotivePartsAndAccessoriesStores,
904 AutomotiveTireStores,
905 BailAndBondPayments,
906 Bakeries,
907 BandsOrchestras,
908 BarberAndBeautyShops,
909 BettingCasinoGambling,
910 BicycleShops,
911 BilliardPoolEstablishments,
912 BoatDealers,
913 BoatRentalsAndLeases,
914 BookStores,
915 BooksPeriodicalsAndNewspapers,
916 BowlingAlleys,
917 BusLines,
918 BusinessSecretarialSchools,
919 BuyingShoppingServices,
920 CableSatelliteAndOtherPayTelevisionAndRadio,
921 CameraAndPhotographicSupplyStores,
922 CandyNutAndConfectioneryStores,
923 CarAndTruckDealersNewUsed,
924 CarAndTruckDealersUsedOnly,
925 CarRentalAgencies,
926 CarWashes,
927 CarpentryServices,
928 CarpetUpholsteryCleaning,
929 Caterers,
930 CharitableAndSocialServiceOrganizationsFundraising,
931 ChemicalsAndAlliedProducts,
932 ChildCareServices,
933 ChildrensAndInfantsWearStores,
934 ChiropodistsPodiatrists,
935 Chiropractors,
936 CigarStoresAndStands,
937 CivicSocialFraternalAssociations,
938 CleaningAndMaintenance,
939 ClothingRental,
940 CollegesUniversities,
941 CommercialEquipment,
942 CommercialFootwear,
943 CommercialPhotographyArtAndGraphics,
944 CommuterTransportAndFerries,
945 ComputerNetworkServices,
946 ComputerProgramming,
947 ComputerRepair,
948 ComputerSoftwareStores,
949 ComputersPeripheralsAndSoftware,
950 ConcreteWorkServices,
951 ConstructionMaterials,
952 ConsultingPublicRelations,
953 CorrespondenceSchools,
954 CosmeticStores,
955 CounselingServices,
956 CountryClubs,
957 CourierServices,
958 CourtCosts,
959 CreditReportingAgencies,
960 CruiseLines,
961 DairyProductsStores,
962 DanceHallStudiosSchools,
963 DatingEscortServices,
964 DentistsOrthodontists,
965 DepartmentStores,
966 DetectiveAgencies,
967 DigitalGoodsApplications,
968 DigitalGoodsGames,
969 DigitalGoodsLargeVolume,
970 DigitalGoodsMedia,
971 DirectMarketingCatalogMerchant,
972 DirectMarketingCombinationCatalogAndRetailMerchant,
973 DirectMarketingInboundTelemarketing,
974 DirectMarketingInsuranceServices,
975 DirectMarketingOther,
976 DirectMarketingOutboundTelemarketing,
977 DirectMarketingSubscription,
978 DirectMarketingTravel,
979 DiscountStores,
980 Doctors,
981 DoorToDoorSales,
982 DraperyWindowCoveringAndUpholsteryStores,
983 DrinkingPlaces,
984 DrugStoresAndPharmacies,
985 DrugsDrugProprietariesAndDruggistSundries,
986 DryCleaners,
987 DurableGoods,
988 DutyFreeStores,
989 EatingPlacesRestaurants,
990 EducationalServices,
991 ElectricRazorStores,
992 ElectricVehicleCharging,
993 ElectricalPartsAndEquipment,
994 ElectricalServices,
995 ElectronicsRepairShops,
996 ElectronicsStores,
997 ElementarySecondarySchools,
998 EmergencyServicesGcasVisaUseOnly,
999 EmploymentTempAgencies,
1000 EquipmentRental,
1001 ExterminatingServices,
1002 FamilyClothingStores,
1003 FastFoodRestaurants,
1004 FinancialInstitutions,
1005 FinesGovernmentAdministrativeEntities,
1006 FireplaceFireplaceScreensAndAccessoriesStores,
1007 FloorCoveringStores,
1008 Florists,
1009 FloristsSuppliesNurseryStockAndFlowers,
1010 FreezerAndLockerMeatProvisioners,
1011 FuelDealersNonAutomotive,
1012 FuneralServicesCrematories,
1013 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances,
1014 FurnitureRepairRefinishing,
1015 FurriersAndFurShops,
1016 GeneralServices,
1017 GiftCardNoveltyAndSouvenirShops,
1018 GlassPaintAndWallpaperStores,
1019 GlasswareCrystalStores,
1020 GolfCoursesPublic,
1021 GovernmentLicensedHorseDogRacingUsRegionOnly,
1022 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly,
1023 GovernmentOwnedLotteriesNonUsRegion,
1024 GovernmentOwnedLotteriesUsRegionOnly,
1025 GovernmentServices,
1026 GroceryStoresSupermarkets,
1027 HardwareEquipmentAndSupplies,
1028 HardwareStores,
1029 HealthAndBeautySpas,
1030 HearingAidsSalesAndSupplies,
1031 HeatingPlumbingAC,
1032 HobbyToyAndGameShops,
1033 HomeSupplyWarehouseStores,
1034 Hospitals,
1035 HotelsMotelsAndResorts,
1036 HouseholdApplianceStores,
1037 IndustrialSupplies,
1038 InformationRetrievalServices,
1039 InsuranceDefault,
1040 InsuranceUnderwritingPremiums,
1041 IntraCompanyPurchases,
1042 JewelryStoresWatchesClocksAndSilverwareStores,
1043 LandscapingServices,
1044 Laundries,
1045 LaundryCleaningServices,
1046 LegalServicesAttorneys,
1047 LuggageAndLeatherGoodsStores,
1048 LumberBuildingMaterialsStores,
1049 ManualCashDisburse,
1050 MarinasServiceAndSupplies,
1051 Marketplaces,
1052 MasonryStoneworkAndPlaster,
1053 MassageParlors,
1054 MedicalAndDentalLabs,
1055 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies,
1056 MedicalServices,
1057 MembershipOrganizations,
1058 MensAndBoysClothingAndAccessoriesStores,
1059 MensWomensClothingStores,
1060 MetalServiceCenters,
1061 Miscellaneous,
1062 MiscellaneousApparelAndAccessoryShops,
1063 MiscellaneousAutoDealers,
1064 MiscellaneousBusinessServices,
1065 MiscellaneousFoodStores,
1066 MiscellaneousGeneralMerchandise,
1067 MiscellaneousGeneralServices,
1068 MiscellaneousHomeFurnishingSpecialtyStores,
1069 MiscellaneousPublishingAndPrinting,
1070 MiscellaneousRecreationServices,
1071 MiscellaneousRepairShops,
1072 MiscellaneousSpecialtyRetail,
1073 MobileHomeDealers,
1074 MotionPictureTheaters,
1075 MotorFreightCarriersAndTrucking,
1076 MotorHomesDealers,
1077 MotorVehicleSuppliesAndNewParts,
1078 MotorcycleShopsAndDealers,
1079 MotorcycleShopsDealers,
1080 MusicStoresMusicalInstrumentsPianosAndSheetMusic,
1081 NewsDealersAndNewsstands,
1082 NonFiMoneyOrders,
1083 NonFiStoredValueCardPurchaseLoad,
1084 NondurableGoods,
1085 NurseriesLawnAndGardenSupplyStores,
1086 NursingPersonalCare,
1087 OfficeAndCommercialFurniture,
1088 OpticiansEyeglasses,
1089 OptometristsOphthalmologist,
1090 OrthopedicGoodsProstheticDevices,
1091 Osteopaths,
1092 PackageStoresBeerWineAndLiquor,
1093 PaintsVarnishesAndSupplies,
1094 ParkingLotsGarages,
1095 PassengerRailways,
1096 PawnShops,
1097 PetShopsPetFoodAndSupplies,
1098 PetroleumAndPetroleumProducts,
1099 PhotoDeveloping,
1100 PhotographicPhotocopyMicrofilmEquipmentAndSupplies,
1101 PhotographicStudios,
1102 PictureVideoProduction,
1103 PieceGoodsNotionsAndOtherDryGoods,
1104 PlumbingHeatingEquipmentAndSupplies,
1105 PoliticalOrganizations,
1106 PostalServicesGovernmentOnly,
1107 PreciousStonesAndMetalsWatchesAndJewelry,
1108 ProfessionalServices,
1109 PublicWarehousingAndStorage,
1110 QuickCopyReproAndBlueprint,
1111 Railroads,
1112 RealEstateAgentsAndManagersRentals,
1113 RecordStores,
1114 RecreationalVehicleRentals,
1115 ReligiousGoodsStores,
1116 ReligiousOrganizations,
1117 RoofingSidingSheetMetal,
1118 SecretarialSupportServices,
1119 SecurityBrokersDealers,
1120 ServiceStations,
1121 SewingNeedleworkFabricAndPieceGoodsStores,
1122 ShoeRepairHatCleaning,
1123 ShoeStores,
1124 SmallApplianceRepair,
1125 SnowmobileDealers,
1126 SpecialTradeServices,
1127 SpecialtyCleaning,
1128 SportingGoodsStores,
1129 SportingRecreationCamps,
1130 SportsAndRidingApparelStores,
1131 SportsClubsFields,
1132 StampAndCoinStores,
1133 StationaryOfficeSuppliesPrintingAndWritingPaper,
1134 StationeryStoresOfficeAndSchoolSupplyStores,
1135 SwimmingPoolsSales,
1136 TUiTravelGermany,
1137 TailorsAlterations,
1138 TaxPaymentsGovernmentAgencies,
1139 TaxPreparationServices,
1140 TaxicabsLimousines,
1141 TelecommunicationEquipmentAndTelephoneSales,
1142 TelecommunicationServices,
1143 TelegraphServices,
1144 TentAndAwningShops,
1145 TestingLaboratories,
1146 TheatricalTicketAgencies,
1147 Timeshares,
1148 TireRetreadingAndRepair,
1149 TollsBridgeFees,
1150 TouristAttractionsAndExhibits,
1151 TowingServices,
1152 TrailerParksCampgrounds,
1153 TransportationServices,
1154 TravelAgenciesTourOperators,
1155 TruckStopIteration,
1156 TruckUtilityTrailerRentals,
1157 TypesettingPlateMakingAndRelatedServices,
1158 TypewriterStores,
1159 USFederalGovernmentAgenciesOrDepartments,
1160 UniformsCommercialClothing,
1161 UsedMerchandiseAndSecondhandStores,
1162 Utilities,
1163 VarietyStores,
1164 VeterinaryServices,
1165 VideoAmusementGameSupplies,
1166 VideoGameArcades,
1167 VideoTapeRentalStores,
1168 VocationalTradeSchools,
1169 WatchJewelryRepair,
1170 WeldingRepair,
1171 WholesaleClubs,
1172 WigAndToupeeStores,
1173 WiresMoneyOrders,
1174 WomensAccessoryAndSpecialtyShops,
1175 WomensReadyToWearStores,
1176 WreckingAndSalvageYards,
1177 Unknown(String),
1179}
1180impl CreateIssuingCardSpendingControlsAllowedCategories {
1181 pub fn as_str(&self) -> &str {
1182 use CreateIssuingCardSpendingControlsAllowedCategories::*;
1183 match self {
1184 AcRefrigerationRepair => "ac_refrigeration_repair",
1185 AccountingBookkeepingServices => "accounting_bookkeeping_services",
1186 AdvertisingServices => "advertising_services",
1187 AgriculturalCooperative => "agricultural_cooperative",
1188 AirlinesAirCarriers => "airlines_air_carriers",
1189 AirportsFlyingFields => "airports_flying_fields",
1190 AmbulanceServices => "ambulance_services",
1191 AmusementParksCarnivals => "amusement_parks_carnivals",
1192 AntiqueReproductions => "antique_reproductions",
1193 AntiqueShops => "antique_shops",
1194 Aquariums => "aquariums",
1195 ArchitecturalSurveyingServices => "architectural_surveying_services",
1196 ArtDealersAndGalleries => "art_dealers_and_galleries",
1197 ArtistsSupplyAndCraftShops => "artists_supply_and_craft_shops",
1198 AutoAndHomeSupplyStores => "auto_and_home_supply_stores",
1199 AutoBodyRepairShops => "auto_body_repair_shops",
1200 AutoPaintShops => "auto_paint_shops",
1201 AutoServiceShops => "auto_service_shops",
1202 AutomatedCashDisburse => "automated_cash_disburse",
1203 AutomatedFuelDispensers => "automated_fuel_dispensers",
1204 AutomobileAssociations => "automobile_associations",
1205 AutomotivePartsAndAccessoriesStores => "automotive_parts_and_accessories_stores",
1206 AutomotiveTireStores => "automotive_tire_stores",
1207 BailAndBondPayments => "bail_and_bond_payments",
1208 Bakeries => "bakeries",
1209 BandsOrchestras => "bands_orchestras",
1210 BarberAndBeautyShops => "barber_and_beauty_shops",
1211 BettingCasinoGambling => "betting_casino_gambling",
1212 BicycleShops => "bicycle_shops",
1213 BilliardPoolEstablishments => "billiard_pool_establishments",
1214 BoatDealers => "boat_dealers",
1215 BoatRentalsAndLeases => "boat_rentals_and_leases",
1216 BookStores => "book_stores",
1217 BooksPeriodicalsAndNewspapers => "books_periodicals_and_newspapers",
1218 BowlingAlleys => "bowling_alleys",
1219 BusLines => "bus_lines",
1220 BusinessSecretarialSchools => "business_secretarial_schools",
1221 BuyingShoppingServices => "buying_shopping_services",
1222 CableSatelliteAndOtherPayTelevisionAndRadio => {
1223 "cable_satellite_and_other_pay_television_and_radio"
1224 }
1225 CameraAndPhotographicSupplyStores => "camera_and_photographic_supply_stores",
1226 CandyNutAndConfectioneryStores => "candy_nut_and_confectionery_stores",
1227 CarAndTruckDealersNewUsed => "car_and_truck_dealers_new_used",
1228 CarAndTruckDealersUsedOnly => "car_and_truck_dealers_used_only",
1229 CarRentalAgencies => "car_rental_agencies",
1230 CarWashes => "car_washes",
1231 CarpentryServices => "carpentry_services",
1232 CarpetUpholsteryCleaning => "carpet_upholstery_cleaning",
1233 Caterers => "caterers",
1234 CharitableAndSocialServiceOrganizationsFundraising => {
1235 "charitable_and_social_service_organizations_fundraising"
1236 }
1237 ChemicalsAndAlliedProducts => "chemicals_and_allied_products",
1238 ChildCareServices => "child_care_services",
1239 ChildrensAndInfantsWearStores => "childrens_and_infants_wear_stores",
1240 ChiropodistsPodiatrists => "chiropodists_podiatrists",
1241 Chiropractors => "chiropractors",
1242 CigarStoresAndStands => "cigar_stores_and_stands",
1243 CivicSocialFraternalAssociations => "civic_social_fraternal_associations",
1244 CleaningAndMaintenance => "cleaning_and_maintenance",
1245 ClothingRental => "clothing_rental",
1246 CollegesUniversities => "colleges_universities",
1247 CommercialEquipment => "commercial_equipment",
1248 CommercialFootwear => "commercial_footwear",
1249 CommercialPhotographyArtAndGraphics => "commercial_photography_art_and_graphics",
1250 CommuterTransportAndFerries => "commuter_transport_and_ferries",
1251 ComputerNetworkServices => "computer_network_services",
1252 ComputerProgramming => "computer_programming",
1253 ComputerRepair => "computer_repair",
1254 ComputerSoftwareStores => "computer_software_stores",
1255 ComputersPeripheralsAndSoftware => "computers_peripherals_and_software",
1256 ConcreteWorkServices => "concrete_work_services",
1257 ConstructionMaterials => "construction_materials",
1258 ConsultingPublicRelations => "consulting_public_relations",
1259 CorrespondenceSchools => "correspondence_schools",
1260 CosmeticStores => "cosmetic_stores",
1261 CounselingServices => "counseling_services",
1262 CountryClubs => "country_clubs",
1263 CourierServices => "courier_services",
1264 CourtCosts => "court_costs",
1265 CreditReportingAgencies => "credit_reporting_agencies",
1266 CruiseLines => "cruise_lines",
1267 DairyProductsStores => "dairy_products_stores",
1268 DanceHallStudiosSchools => "dance_hall_studios_schools",
1269 DatingEscortServices => "dating_escort_services",
1270 DentistsOrthodontists => "dentists_orthodontists",
1271 DepartmentStores => "department_stores",
1272 DetectiveAgencies => "detective_agencies",
1273 DigitalGoodsApplications => "digital_goods_applications",
1274 DigitalGoodsGames => "digital_goods_games",
1275 DigitalGoodsLargeVolume => "digital_goods_large_volume",
1276 DigitalGoodsMedia => "digital_goods_media",
1277 DirectMarketingCatalogMerchant => "direct_marketing_catalog_merchant",
1278 DirectMarketingCombinationCatalogAndRetailMerchant => {
1279 "direct_marketing_combination_catalog_and_retail_merchant"
1280 }
1281 DirectMarketingInboundTelemarketing => "direct_marketing_inbound_telemarketing",
1282 DirectMarketingInsuranceServices => "direct_marketing_insurance_services",
1283 DirectMarketingOther => "direct_marketing_other",
1284 DirectMarketingOutboundTelemarketing => "direct_marketing_outbound_telemarketing",
1285 DirectMarketingSubscription => "direct_marketing_subscription",
1286 DirectMarketingTravel => "direct_marketing_travel",
1287 DiscountStores => "discount_stores",
1288 Doctors => "doctors",
1289 DoorToDoorSales => "door_to_door_sales",
1290 DraperyWindowCoveringAndUpholsteryStores => {
1291 "drapery_window_covering_and_upholstery_stores"
1292 }
1293 DrinkingPlaces => "drinking_places",
1294 DrugStoresAndPharmacies => "drug_stores_and_pharmacies",
1295 DrugsDrugProprietariesAndDruggistSundries => {
1296 "drugs_drug_proprietaries_and_druggist_sundries"
1297 }
1298 DryCleaners => "dry_cleaners",
1299 DurableGoods => "durable_goods",
1300 DutyFreeStores => "duty_free_stores",
1301 EatingPlacesRestaurants => "eating_places_restaurants",
1302 EducationalServices => "educational_services",
1303 ElectricRazorStores => "electric_razor_stores",
1304 ElectricVehicleCharging => "electric_vehicle_charging",
1305 ElectricalPartsAndEquipment => "electrical_parts_and_equipment",
1306 ElectricalServices => "electrical_services",
1307 ElectronicsRepairShops => "electronics_repair_shops",
1308 ElectronicsStores => "electronics_stores",
1309 ElementarySecondarySchools => "elementary_secondary_schools",
1310 EmergencyServicesGcasVisaUseOnly => "emergency_services_gcas_visa_use_only",
1311 EmploymentTempAgencies => "employment_temp_agencies",
1312 EquipmentRental => "equipment_rental",
1313 ExterminatingServices => "exterminating_services",
1314 FamilyClothingStores => "family_clothing_stores",
1315 FastFoodRestaurants => "fast_food_restaurants",
1316 FinancialInstitutions => "financial_institutions",
1317 FinesGovernmentAdministrativeEntities => "fines_government_administrative_entities",
1318 FireplaceFireplaceScreensAndAccessoriesStores => {
1319 "fireplace_fireplace_screens_and_accessories_stores"
1320 }
1321 FloorCoveringStores => "floor_covering_stores",
1322 Florists => "florists",
1323 FloristsSuppliesNurseryStockAndFlowers => "florists_supplies_nursery_stock_and_flowers",
1324 FreezerAndLockerMeatProvisioners => "freezer_and_locker_meat_provisioners",
1325 FuelDealersNonAutomotive => "fuel_dealers_non_automotive",
1326 FuneralServicesCrematories => "funeral_services_crematories",
1327 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances => {
1328 "furniture_home_furnishings_and_equipment_stores_except_appliances"
1329 }
1330 FurnitureRepairRefinishing => "furniture_repair_refinishing",
1331 FurriersAndFurShops => "furriers_and_fur_shops",
1332 GeneralServices => "general_services",
1333 GiftCardNoveltyAndSouvenirShops => "gift_card_novelty_and_souvenir_shops",
1334 GlassPaintAndWallpaperStores => "glass_paint_and_wallpaper_stores",
1335 GlasswareCrystalStores => "glassware_crystal_stores",
1336 GolfCoursesPublic => "golf_courses_public",
1337 GovernmentLicensedHorseDogRacingUsRegionOnly => {
1338 "government_licensed_horse_dog_racing_us_region_only"
1339 }
1340 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly => {
1341 "government_licensed_online_casions_online_gambling_us_region_only"
1342 }
1343 GovernmentOwnedLotteriesNonUsRegion => "government_owned_lotteries_non_us_region",
1344 GovernmentOwnedLotteriesUsRegionOnly => "government_owned_lotteries_us_region_only",
1345 GovernmentServices => "government_services",
1346 GroceryStoresSupermarkets => "grocery_stores_supermarkets",
1347 HardwareEquipmentAndSupplies => "hardware_equipment_and_supplies",
1348 HardwareStores => "hardware_stores",
1349 HealthAndBeautySpas => "health_and_beauty_spas",
1350 HearingAidsSalesAndSupplies => "hearing_aids_sales_and_supplies",
1351 HeatingPlumbingAC => "heating_plumbing_a_c",
1352 HobbyToyAndGameShops => "hobby_toy_and_game_shops",
1353 HomeSupplyWarehouseStores => "home_supply_warehouse_stores",
1354 Hospitals => "hospitals",
1355 HotelsMotelsAndResorts => "hotels_motels_and_resorts",
1356 HouseholdApplianceStores => "household_appliance_stores",
1357 IndustrialSupplies => "industrial_supplies",
1358 InformationRetrievalServices => "information_retrieval_services",
1359 InsuranceDefault => "insurance_default",
1360 InsuranceUnderwritingPremiums => "insurance_underwriting_premiums",
1361 IntraCompanyPurchases => "intra_company_purchases",
1362 JewelryStoresWatchesClocksAndSilverwareStores => {
1363 "jewelry_stores_watches_clocks_and_silverware_stores"
1364 }
1365 LandscapingServices => "landscaping_services",
1366 Laundries => "laundries",
1367 LaundryCleaningServices => "laundry_cleaning_services",
1368 LegalServicesAttorneys => "legal_services_attorneys",
1369 LuggageAndLeatherGoodsStores => "luggage_and_leather_goods_stores",
1370 LumberBuildingMaterialsStores => "lumber_building_materials_stores",
1371 ManualCashDisburse => "manual_cash_disburse",
1372 MarinasServiceAndSupplies => "marinas_service_and_supplies",
1373 Marketplaces => "marketplaces",
1374 MasonryStoneworkAndPlaster => "masonry_stonework_and_plaster",
1375 MassageParlors => "massage_parlors",
1376 MedicalAndDentalLabs => "medical_and_dental_labs",
1377 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies => {
1378 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"
1379 }
1380 MedicalServices => "medical_services",
1381 MembershipOrganizations => "membership_organizations",
1382 MensAndBoysClothingAndAccessoriesStores => {
1383 "mens_and_boys_clothing_and_accessories_stores"
1384 }
1385 MensWomensClothingStores => "mens_womens_clothing_stores",
1386 MetalServiceCenters => "metal_service_centers",
1387 Miscellaneous => "miscellaneous",
1388 MiscellaneousApparelAndAccessoryShops => "miscellaneous_apparel_and_accessory_shops",
1389 MiscellaneousAutoDealers => "miscellaneous_auto_dealers",
1390 MiscellaneousBusinessServices => "miscellaneous_business_services",
1391 MiscellaneousFoodStores => "miscellaneous_food_stores",
1392 MiscellaneousGeneralMerchandise => "miscellaneous_general_merchandise",
1393 MiscellaneousGeneralServices => "miscellaneous_general_services",
1394 MiscellaneousHomeFurnishingSpecialtyStores => {
1395 "miscellaneous_home_furnishing_specialty_stores"
1396 }
1397 MiscellaneousPublishingAndPrinting => "miscellaneous_publishing_and_printing",
1398 MiscellaneousRecreationServices => "miscellaneous_recreation_services",
1399 MiscellaneousRepairShops => "miscellaneous_repair_shops",
1400 MiscellaneousSpecialtyRetail => "miscellaneous_specialty_retail",
1401 MobileHomeDealers => "mobile_home_dealers",
1402 MotionPictureTheaters => "motion_picture_theaters",
1403 MotorFreightCarriersAndTrucking => "motor_freight_carriers_and_trucking",
1404 MotorHomesDealers => "motor_homes_dealers",
1405 MotorVehicleSuppliesAndNewParts => "motor_vehicle_supplies_and_new_parts",
1406 MotorcycleShopsAndDealers => "motorcycle_shops_and_dealers",
1407 MotorcycleShopsDealers => "motorcycle_shops_dealers",
1408 MusicStoresMusicalInstrumentsPianosAndSheetMusic => {
1409 "music_stores_musical_instruments_pianos_and_sheet_music"
1410 }
1411 NewsDealersAndNewsstands => "news_dealers_and_newsstands",
1412 NonFiMoneyOrders => "non_fi_money_orders",
1413 NonFiStoredValueCardPurchaseLoad => "non_fi_stored_value_card_purchase_load",
1414 NondurableGoods => "nondurable_goods",
1415 NurseriesLawnAndGardenSupplyStores => "nurseries_lawn_and_garden_supply_stores",
1416 NursingPersonalCare => "nursing_personal_care",
1417 OfficeAndCommercialFurniture => "office_and_commercial_furniture",
1418 OpticiansEyeglasses => "opticians_eyeglasses",
1419 OptometristsOphthalmologist => "optometrists_ophthalmologist",
1420 OrthopedicGoodsProstheticDevices => "orthopedic_goods_prosthetic_devices",
1421 Osteopaths => "osteopaths",
1422 PackageStoresBeerWineAndLiquor => "package_stores_beer_wine_and_liquor",
1423 PaintsVarnishesAndSupplies => "paints_varnishes_and_supplies",
1424 ParkingLotsGarages => "parking_lots_garages",
1425 PassengerRailways => "passenger_railways",
1426 PawnShops => "pawn_shops",
1427 PetShopsPetFoodAndSupplies => "pet_shops_pet_food_and_supplies",
1428 PetroleumAndPetroleumProducts => "petroleum_and_petroleum_products",
1429 PhotoDeveloping => "photo_developing",
1430 PhotographicPhotocopyMicrofilmEquipmentAndSupplies => {
1431 "photographic_photocopy_microfilm_equipment_and_supplies"
1432 }
1433 PhotographicStudios => "photographic_studios",
1434 PictureVideoProduction => "picture_video_production",
1435 PieceGoodsNotionsAndOtherDryGoods => "piece_goods_notions_and_other_dry_goods",
1436 PlumbingHeatingEquipmentAndSupplies => "plumbing_heating_equipment_and_supplies",
1437 PoliticalOrganizations => "political_organizations",
1438 PostalServicesGovernmentOnly => "postal_services_government_only",
1439 PreciousStonesAndMetalsWatchesAndJewelry => {
1440 "precious_stones_and_metals_watches_and_jewelry"
1441 }
1442 ProfessionalServices => "professional_services",
1443 PublicWarehousingAndStorage => "public_warehousing_and_storage",
1444 QuickCopyReproAndBlueprint => "quick_copy_repro_and_blueprint",
1445 Railroads => "railroads",
1446 RealEstateAgentsAndManagersRentals => "real_estate_agents_and_managers_rentals",
1447 RecordStores => "record_stores",
1448 RecreationalVehicleRentals => "recreational_vehicle_rentals",
1449 ReligiousGoodsStores => "religious_goods_stores",
1450 ReligiousOrganizations => "religious_organizations",
1451 RoofingSidingSheetMetal => "roofing_siding_sheet_metal",
1452 SecretarialSupportServices => "secretarial_support_services",
1453 SecurityBrokersDealers => "security_brokers_dealers",
1454 ServiceStations => "service_stations",
1455 SewingNeedleworkFabricAndPieceGoodsStores => {
1456 "sewing_needlework_fabric_and_piece_goods_stores"
1457 }
1458 ShoeRepairHatCleaning => "shoe_repair_hat_cleaning",
1459 ShoeStores => "shoe_stores",
1460 SmallApplianceRepair => "small_appliance_repair",
1461 SnowmobileDealers => "snowmobile_dealers",
1462 SpecialTradeServices => "special_trade_services",
1463 SpecialtyCleaning => "specialty_cleaning",
1464 SportingGoodsStores => "sporting_goods_stores",
1465 SportingRecreationCamps => "sporting_recreation_camps",
1466 SportsAndRidingApparelStores => "sports_and_riding_apparel_stores",
1467 SportsClubsFields => "sports_clubs_fields",
1468 StampAndCoinStores => "stamp_and_coin_stores",
1469 StationaryOfficeSuppliesPrintingAndWritingPaper => {
1470 "stationary_office_supplies_printing_and_writing_paper"
1471 }
1472 StationeryStoresOfficeAndSchoolSupplyStores => {
1473 "stationery_stores_office_and_school_supply_stores"
1474 }
1475 SwimmingPoolsSales => "swimming_pools_sales",
1476 TUiTravelGermany => "t_ui_travel_germany",
1477 TailorsAlterations => "tailors_alterations",
1478 TaxPaymentsGovernmentAgencies => "tax_payments_government_agencies",
1479 TaxPreparationServices => "tax_preparation_services",
1480 TaxicabsLimousines => "taxicabs_limousines",
1481 TelecommunicationEquipmentAndTelephoneSales => {
1482 "telecommunication_equipment_and_telephone_sales"
1483 }
1484 TelecommunicationServices => "telecommunication_services",
1485 TelegraphServices => "telegraph_services",
1486 TentAndAwningShops => "tent_and_awning_shops",
1487 TestingLaboratories => "testing_laboratories",
1488 TheatricalTicketAgencies => "theatrical_ticket_agencies",
1489 Timeshares => "timeshares",
1490 TireRetreadingAndRepair => "tire_retreading_and_repair",
1491 TollsBridgeFees => "tolls_bridge_fees",
1492 TouristAttractionsAndExhibits => "tourist_attractions_and_exhibits",
1493 TowingServices => "towing_services",
1494 TrailerParksCampgrounds => "trailer_parks_campgrounds",
1495 TransportationServices => "transportation_services",
1496 TravelAgenciesTourOperators => "travel_agencies_tour_operators",
1497 TruckStopIteration => "truck_stop_iteration",
1498 TruckUtilityTrailerRentals => "truck_utility_trailer_rentals",
1499 TypesettingPlateMakingAndRelatedServices => {
1500 "typesetting_plate_making_and_related_services"
1501 }
1502 TypewriterStores => "typewriter_stores",
1503 USFederalGovernmentAgenciesOrDepartments => {
1504 "u_s_federal_government_agencies_or_departments"
1505 }
1506 UniformsCommercialClothing => "uniforms_commercial_clothing",
1507 UsedMerchandiseAndSecondhandStores => "used_merchandise_and_secondhand_stores",
1508 Utilities => "utilities",
1509 VarietyStores => "variety_stores",
1510 VeterinaryServices => "veterinary_services",
1511 VideoAmusementGameSupplies => "video_amusement_game_supplies",
1512 VideoGameArcades => "video_game_arcades",
1513 VideoTapeRentalStores => "video_tape_rental_stores",
1514 VocationalTradeSchools => "vocational_trade_schools",
1515 WatchJewelryRepair => "watch_jewelry_repair",
1516 WeldingRepair => "welding_repair",
1517 WholesaleClubs => "wholesale_clubs",
1518 WigAndToupeeStores => "wig_and_toupee_stores",
1519 WiresMoneyOrders => "wires_money_orders",
1520 WomensAccessoryAndSpecialtyShops => "womens_accessory_and_specialty_shops",
1521 WomensReadyToWearStores => "womens_ready_to_wear_stores",
1522 WreckingAndSalvageYards => "wrecking_and_salvage_yards",
1523 Unknown(v) => v,
1524 }
1525 }
1526}
1527
1528impl std::str::FromStr for CreateIssuingCardSpendingControlsAllowedCategories {
1529 type Err = std::convert::Infallible;
1530 fn from_str(s: &str) -> Result<Self, Self::Err> {
1531 use CreateIssuingCardSpendingControlsAllowedCategories::*;
1532 match s {
1533 "ac_refrigeration_repair" => Ok(AcRefrigerationRepair),
1534 "accounting_bookkeeping_services" => Ok(AccountingBookkeepingServices),
1535 "advertising_services" => Ok(AdvertisingServices),
1536 "agricultural_cooperative" => Ok(AgriculturalCooperative),
1537 "airlines_air_carriers" => Ok(AirlinesAirCarriers),
1538 "airports_flying_fields" => Ok(AirportsFlyingFields),
1539 "ambulance_services" => Ok(AmbulanceServices),
1540 "amusement_parks_carnivals" => Ok(AmusementParksCarnivals),
1541 "antique_reproductions" => Ok(AntiqueReproductions),
1542 "antique_shops" => Ok(AntiqueShops),
1543 "aquariums" => Ok(Aquariums),
1544 "architectural_surveying_services" => Ok(ArchitecturalSurveyingServices),
1545 "art_dealers_and_galleries" => Ok(ArtDealersAndGalleries),
1546 "artists_supply_and_craft_shops" => Ok(ArtistsSupplyAndCraftShops),
1547 "auto_and_home_supply_stores" => Ok(AutoAndHomeSupplyStores),
1548 "auto_body_repair_shops" => Ok(AutoBodyRepairShops),
1549 "auto_paint_shops" => Ok(AutoPaintShops),
1550 "auto_service_shops" => Ok(AutoServiceShops),
1551 "automated_cash_disburse" => Ok(AutomatedCashDisburse),
1552 "automated_fuel_dispensers" => Ok(AutomatedFuelDispensers),
1553 "automobile_associations" => Ok(AutomobileAssociations),
1554 "automotive_parts_and_accessories_stores" => Ok(AutomotivePartsAndAccessoriesStores),
1555 "automotive_tire_stores" => Ok(AutomotiveTireStores),
1556 "bail_and_bond_payments" => Ok(BailAndBondPayments),
1557 "bakeries" => Ok(Bakeries),
1558 "bands_orchestras" => Ok(BandsOrchestras),
1559 "barber_and_beauty_shops" => Ok(BarberAndBeautyShops),
1560 "betting_casino_gambling" => Ok(BettingCasinoGambling),
1561 "bicycle_shops" => Ok(BicycleShops),
1562 "billiard_pool_establishments" => Ok(BilliardPoolEstablishments),
1563 "boat_dealers" => Ok(BoatDealers),
1564 "boat_rentals_and_leases" => Ok(BoatRentalsAndLeases),
1565 "book_stores" => Ok(BookStores),
1566 "books_periodicals_and_newspapers" => Ok(BooksPeriodicalsAndNewspapers),
1567 "bowling_alleys" => Ok(BowlingAlleys),
1568 "bus_lines" => Ok(BusLines),
1569 "business_secretarial_schools" => Ok(BusinessSecretarialSchools),
1570 "buying_shopping_services" => Ok(BuyingShoppingServices),
1571 "cable_satellite_and_other_pay_television_and_radio" => {
1572 Ok(CableSatelliteAndOtherPayTelevisionAndRadio)
1573 }
1574 "camera_and_photographic_supply_stores" => Ok(CameraAndPhotographicSupplyStores),
1575 "candy_nut_and_confectionery_stores" => Ok(CandyNutAndConfectioneryStores),
1576 "car_and_truck_dealers_new_used" => Ok(CarAndTruckDealersNewUsed),
1577 "car_and_truck_dealers_used_only" => Ok(CarAndTruckDealersUsedOnly),
1578 "car_rental_agencies" => Ok(CarRentalAgencies),
1579 "car_washes" => Ok(CarWashes),
1580 "carpentry_services" => Ok(CarpentryServices),
1581 "carpet_upholstery_cleaning" => Ok(CarpetUpholsteryCleaning),
1582 "caterers" => Ok(Caterers),
1583 "charitable_and_social_service_organizations_fundraising" => {
1584 Ok(CharitableAndSocialServiceOrganizationsFundraising)
1585 }
1586 "chemicals_and_allied_products" => Ok(ChemicalsAndAlliedProducts),
1587 "child_care_services" => Ok(ChildCareServices),
1588 "childrens_and_infants_wear_stores" => Ok(ChildrensAndInfantsWearStores),
1589 "chiropodists_podiatrists" => Ok(ChiropodistsPodiatrists),
1590 "chiropractors" => Ok(Chiropractors),
1591 "cigar_stores_and_stands" => Ok(CigarStoresAndStands),
1592 "civic_social_fraternal_associations" => Ok(CivicSocialFraternalAssociations),
1593 "cleaning_and_maintenance" => Ok(CleaningAndMaintenance),
1594 "clothing_rental" => Ok(ClothingRental),
1595 "colleges_universities" => Ok(CollegesUniversities),
1596 "commercial_equipment" => Ok(CommercialEquipment),
1597 "commercial_footwear" => Ok(CommercialFootwear),
1598 "commercial_photography_art_and_graphics" => Ok(CommercialPhotographyArtAndGraphics),
1599 "commuter_transport_and_ferries" => Ok(CommuterTransportAndFerries),
1600 "computer_network_services" => Ok(ComputerNetworkServices),
1601 "computer_programming" => Ok(ComputerProgramming),
1602 "computer_repair" => Ok(ComputerRepair),
1603 "computer_software_stores" => Ok(ComputerSoftwareStores),
1604 "computers_peripherals_and_software" => Ok(ComputersPeripheralsAndSoftware),
1605 "concrete_work_services" => Ok(ConcreteWorkServices),
1606 "construction_materials" => Ok(ConstructionMaterials),
1607 "consulting_public_relations" => Ok(ConsultingPublicRelations),
1608 "correspondence_schools" => Ok(CorrespondenceSchools),
1609 "cosmetic_stores" => Ok(CosmeticStores),
1610 "counseling_services" => Ok(CounselingServices),
1611 "country_clubs" => Ok(CountryClubs),
1612 "courier_services" => Ok(CourierServices),
1613 "court_costs" => Ok(CourtCosts),
1614 "credit_reporting_agencies" => Ok(CreditReportingAgencies),
1615 "cruise_lines" => Ok(CruiseLines),
1616 "dairy_products_stores" => Ok(DairyProductsStores),
1617 "dance_hall_studios_schools" => Ok(DanceHallStudiosSchools),
1618 "dating_escort_services" => Ok(DatingEscortServices),
1619 "dentists_orthodontists" => Ok(DentistsOrthodontists),
1620 "department_stores" => Ok(DepartmentStores),
1621 "detective_agencies" => Ok(DetectiveAgencies),
1622 "digital_goods_applications" => Ok(DigitalGoodsApplications),
1623 "digital_goods_games" => Ok(DigitalGoodsGames),
1624 "digital_goods_large_volume" => Ok(DigitalGoodsLargeVolume),
1625 "digital_goods_media" => Ok(DigitalGoodsMedia),
1626 "direct_marketing_catalog_merchant" => Ok(DirectMarketingCatalogMerchant),
1627 "direct_marketing_combination_catalog_and_retail_merchant" => {
1628 Ok(DirectMarketingCombinationCatalogAndRetailMerchant)
1629 }
1630 "direct_marketing_inbound_telemarketing" => Ok(DirectMarketingInboundTelemarketing),
1631 "direct_marketing_insurance_services" => Ok(DirectMarketingInsuranceServices),
1632 "direct_marketing_other" => Ok(DirectMarketingOther),
1633 "direct_marketing_outbound_telemarketing" => Ok(DirectMarketingOutboundTelemarketing),
1634 "direct_marketing_subscription" => Ok(DirectMarketingSubscription),
1635 "direct_marketing_travel" => Ok(DirectMarketingTravel),
1636 "discount_stores" => Ok(DiscountStores),
1637 "doctors" => Ok(Doctors),
1638 "door_to_door_sales" => Ok(DoorToDoorSales),
1639 "drapery_window_covering_and_upholstery_stores" => {
1640 Ok(DraperyWindowCoveringAndUpholsteryStores)
1641 }
1642 "drinking_places" => Ok(DrinkingPlaces),
1643 "drug_stores_and_pharmacies" => Ok(DrugStoresAndPharmacies),
1644 "drugs_drug_proprietaries_and_druggist_sundries" => {
1645 Ok(DrugsDrugProprietariesAndDruggistSundries)
1646 }
1647 "dry_cleaners" => Ok(DryCleaners),
1648 "durable_goods" => Ok(DurableGoods),
1649 "duty_free_stores" => Ok(DutyFreeStores),
1650 "eating_places_restaurants" => Ok(EatingPlacesRestaurants),
1651 "educational_services" => Ok(EducationalServices),
1652 "electric_razor_stores" => Ok(ElectricRazorStores),
1653 "electric_vehicle_charging" => Ok(ElectricVehicleCharging),
1654 "electrical_parts_and_equipment" => Ok(ElectricalPartsAndEquipment),
1655 "electrical_services" => Ok(ElectricalServices),
1656 "electronics_repair_shops" => Ok(ElectronicsRepairShops),
1657 "electronics_stores" => Ok(ElectronicsStores),
1658 "elementary_secondary_schools" => Ok(ElementarySecondarySchools),
1659 "emergency_services_gcas_visa_use_only" => Ok(EmergencyServicesGcasVisaUseOnly),
1660 "employment_temp_agencies" => Ok(EmploymentTempAgencies),
1661 "equipment_rental" => Ok(EquipmentRental),
1662 "exterminating_services" => Ok(ExterminatingServices),
1663 "family_clothing_stores" => Ok(FamilyClothingStores),
1664 "fast_food_restaurants" => Ok(FastFoodRestaurants),
1665 "financial_institutions" => Ok(FinancialInstitutions),
1666 "fines_government_administrative_entities" => Ok(FinesGovernmentAdministrativeEntities),
1667 "fireplace_fireplace_screens_and_accessories_stores" => {
1668 Ok(FireplaceFireplaceScreensAndAccessoriesStores)
1669 }
1670 "floor_covering_stores" => Ok(FloorCoveringStores),
1671 "florists" => Ok(Florists),
1672 "florists_supplies_nursery_stock_and_flowers" => {
1673 Ok(FloristsSuppliesNurseryStockAndFlowers)
1674 }
1675 "freezer_and_locker_meat_provisioners" => Ok(FreezerAndLockerMeatProvisioners),
1676 "fuel_dealers_non_automotive" => Ok(FuelDealersNonAutomotive),
1677 "funeral_services_crematories" => Ok(FuneralServicesCrematories),
1678 "furniture_home_furnishings_and_equipment_stores_except_appliances" => {
1679 Ok(FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances)
1680 }
1681 "furniture_repair_refinishing" => Ok(FurnitureRepairRefinishing),
1682 "furriers_and_fur_shops" => Ok(FurriersAndFurShops),
1683 "general_services" => Ok(GeneralServices),
1684 "gift_card_novelty_and_souvenir_shops" => Ok(GiftCardNoveltyAndSouvenirShops),
1685 "glass_paint_and_wallpaper_stores" => Ok(GlassPaintAndWallpaperStores),
1686 "glassware_crystal_stores" => Ok(GlasswareCrystalStores),
1687 "golf_courses_public" => Ok(GolfCoursesPublic),
1688 "government_licensed_horse_dog_racing_us_region_only" => {
1689 Ok(GovernmentLicensedHorseDogRacingUsRegionOnly)
1690 }
1691 "government_licensed_online_casions_online_gambling_us_region_only" => {
1692 Ok(GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly)
1693 }
1694 "government_owned_lotteries_non_us_region" => Ok(GovernmentOwnedLotteriesNonUsRegion),
1695 "government_owned_lotteries_us_region_only" => Ok(GovernmentOwnedLotteriesUsRegionOnly),
1696 "government_services" => Ok(GovernmentServices),
1697 "grocery_stores_supermarkets" => Ok(GroceryStoresSupermarkets),
1698 "hardware_equipment_and_supplies" => Ok(HardwareEquipmentAndSupplies),
1699 "hardware_stores" => Ok(HardwareStores),
1700 "health_and_beauty_spas" => Ok(HealthAndBeautySpas),
1701 "hearing_aids_sales_and_supplies" => Ok(HearingAidsSalesAndSupplies),
1702 "heating_plumbing_a_c" => Ok(HeatingPlumbingAC),
1703 "hobby_toy_and_game_shops" => Ok(HobbyToyAndGameShops),
1704 "home_supply_warehouse_stores" => Ok(HomeSupplyWarehouseStores),
1705 "hospitals" => Ok(Hospitals),
1706 "hotels_motels_and_resorts" => Ok(HotelsMotelsAndResorts),
1707 "household_appliance_stores" => Ok(HouseholdApplianceStores),
1708 "industrial_supplies" => Ok(IndustrialSupplies),
1709 "information_retrieval_services" => Ok(InformationRetrievalServices),
1710 "insurance_default" => Ok(InsuranceDefault),
1711 "insurance_underwriting_premiums" => Ok(InsuranceUnderwritingPremiums),
1712 "intra_company_purchases" => Ok(IntraCompanyPurchases),
1713 "jewelry_stores_watches_clocks_and_silverware_stores" => {
1714 Ok(JewelryStoresWatchesClocksAndSilverwareStores)
1715 }
1716 "landscaping_services" => Ok(LandscapingServices),
1717 "laundries" => Ok(Laundries),
1718 "laundry_cleaning_services" => Ok(LaundryCleaningServices),
1719 "legal_services_attorneys" => Ok(LegalServicesAttorneys),
1720 "luggage_and_leather_goods_stores" => Ok(LuggageAndLeatherGoodsStores),
1721 "lumber_building_materials_stores" => Ok(LumberBuildingMaterialsStores),
1722 "manual_cash_disburse" => Ok(ManualCashDisburse),
1723 "marinas_service_and_supplies" => Ok(MarinasServiceAndSupplies),
1724 "marketplaces" => Ok(Marketplaces),
1725 "masonry_stonework_and_plaster" => Ok(MasonryStoneworkAndPlaster),
1726 "massage_parlors" => Ok(MassageParlors),
1727 "medical_and_dental_labs" => Ok(MedicalAndDentalLabs),
1728 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" => {
1729 Ok(MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies)
1730 }
1731 "medical_services" => Ok(MedicalServices),
1732 "membership_organizations" => Ok(MembershipOrganizations),
1733 "mens_and_boys_clothing_and_accessories_stores" => {
1734 Ok(MensAndBoysClothingAndAccessoriesStores)
1735 }
1736 "mens_womens_clothing_stores" => Ok(MensWomensClothingStores),
1737 "metal_service_centers" => Ok(MetalServiceCenters),
1738 "miscellaneous" => Ok(Miscellaneous),
1739 "miscellaneous_apparel_and_accessory_shops" => {
1740 Ok(MiscellaneousApparelAndAccessoryShops)
1741 }
1742 "miscellaneous_auto_dealers" => Ok(MiscellaneousAutoDealers),
1743 "miscellaneous_business_services" => Ok(MiscellaneousBusinessServices),
1744 "miscellaneous_food_stores" => Ok(MiscellaneousFoodStores),
1745 "miscellaneous_general_merchandise" => Ok(MiscellaneousGeneralMerchandise),
1746 "miscellaneous_general_services" => Ok(MiscellaneousGeneralServices),
1747 "miscellaneous_home_furnishing_specialty_stores" => {
1748 Ok(MiscellaneousHomeFurnishingSpecialtyStores)
1749 }
1750 "miscellaneous_publishing_and_printing" => Ok(MiscellaneousPublishingAndPrinting),
1751 "miscellaneous_recreation_services" => Ok(MiscellaneousRecreationServices),
1752 "miscellaneous_repair_shops" => Ok(MiscellaneousRepairShops),
1753 "miscellaneous_specialty_retail" => Ok(MiscellaneousSpecialtyRetail),
1754 "mobile_home_dealers" => Ok(MobileHomeDealers),
1755 "motion_picture_theaters" => Ok(MotionPictureTheaters),
1756 "motor_freight_carriers_and_trucking" => Ok(MotorFreightCarriersAndTrucking),
1757 "motor_homes_dealers" => Ok(MotorHomesDealers),
1758 "motor_vehicle_supplies_and_new_parts" => Ok(MotorVehicleSuppliesAndNewParts),
1759 "motorcycle_shops_and_dealers" => Ok(MotorcycleShopsAndDealers),
1760 "motorcycle_shops_dealers" => Ok(MotorcycleShopsDealers),
1761 "music_stores_musical_instruments_pianos_and_sheet_music" => {
1762 Ok(MusicStoresMusicalInstrumentsPianosAndSheetMusic)
1763 }
1764 "news_dealers_and_newsstands" => Ok(NewsDealersAndNewsstands),
1765 "non_fi_money_orders" => Ok(NonFiMoneyOrders),
1766 "non_fi_stored_value_card_purchase_load" => Ok(NonFiStoredValueCardPurchaseLoad),
1767 "nondurable_goods" => Ok(NondurableGoods),
1768 "nurseries_lawn_and_garden_supply_stores" => Ok(NurseriesLawnAndGardenSupplyStores),
1769 "nursing_personal_care" => Ok(NursingPersonalCare),
1770 "office_and_commercial_furniture" => Ok(OfficeAndCommercialFurniture),
1771 "opticians_eyeglasses" => Ok(OpticiansEyeglasses),
1772 "optometrists_ophthalmologist" => Ok(OptometristsOphthalmologist),
1773 "orthopedic_goods_prosthetic_devices" => Ok(OrthopedicGoodsProstheticDevices),
1774 "osteopaths" => Ok(Osteopaths),
1775 "package_stores_beer_wine_and_liquor" => Ok(PackageStoresBeerWineAndLiquor),
1776 "paints_varnishes_and_supplies" => Ok(PaintsVarnishesAndSupplies),
1777 "parking_lots_garages" => Ok(ParkingLotsGarages),
1778 "passenger_railways" => Ok(PassengerRailways),
1779 "pawn_shops" => Ok(PawnShops),
1780 "pet_shops_pet_food_and_supplies" => Ok(PetShopsPetFoodAndSupplies),
1781 "petroleum_and_petroleum_products" => Ok(PetroleumAndPetroleumProducts),
1782 "photo_developing" => Ok(PhotoDeveloping),
1783 "photographic_photocopy_microfilm_equipment_and_supplies" => {
1784 Ok(PhotographicPhotocopyMicrofilmEquipmentAndSupplies)
1785 }
1786 "photographic_studios" => Ok(PhotographicStudios),
1787 "picture_video_production" => Ok(PictureVideoProduction),
1788 "piece_goods_notions_and_other_dry_goods" => Ok(PieceGoodsNotionsAndOtherDryGoods),
1789 "plumbing_heating_equipment_and_supplies" => Ok(PlumbingHeatingEquipmentAndSupplies),
1790 "political_organizations" => Ok(PoliticalOrganizations),
1791 "postal_services_government_only" => Ok(PostalServicesGovernmentOnly),
1792 "precious_stones_and_metals_watches_and_jewelry" => {
1793 Ok(PreciousStonesAndMetalsWatchesAndJewelry)
1794 }
1795 "professional_services" => Ok(ProfessionalServices),
1796 "public_warehousing_and_storage" => Ok(PublicWarehousingAndStorage),
1797 "quick_copy_repro_and_blueprint" => Ok(QuickCopyReproAndBlueprint),
1798 "railroads" => Ok(Railroads),
1799 "real_estate_agents_and_managers_rentals" => Ok(RealEstateAgentsAndManagersRentals),
1800 "record_stores" => Ok(RecordStores),
1801 "recreational_vehicle_rentals" => Ok(RecreationalVehicleRentals),
1802 "religious_goods_stores" => Ok(ReligiousGoodsStores),
1803 "religious_organizations" => Ok(ReligiousOrganizations),
1804 "roofing_siding_sheet_metal" => Ok(RoofingSidingSheetMetal),
1805 "secretarial_support_services" => Ok(SecretarialSupportServices),
1806 "security_brokers_dealers" => Ok(SecurityBrokersDealers),
1807 "service_stations" => Ok(ServiceStations),
1808 "sewing_needlework_fabric_and_piece_goods_stores" => {
1809 Ok(SewingNeedleworkFabricAndPieceGoodsStores)
1810 }
1811 "shoe_repair_hat_cleaning" => Ok(ShoeRepairHatCleaning),
1812 "shoe_stores" => Ok(ShoeStores),
1813 "small_appliance_repair" => Ok(SmallApplianceRepair),
1814 "snowmobile_dealers" => Ok(SnowmobileDealers),
1815 "special_trade_services" => Ok(SpecialTradeServices),
1816 "specialty_cleaning" => Ok(SpecialtyCleaning),
1817 "sporting_goods_stores" => Ok(SportingGoodsStores),
1818 "sporting_recreation_camps" => Ok(SportingRecreationCamps),
1819 "sports_and_riding_apparel_stores" => Ok(SportsAndRidingApparelStores),
1820 "sports_clubs_fields" => Ok(SportsClubsFields),
1821 "stamp_and_coin_stores" => Ok(StampAndCoinStores),
1822 "stationary_office_supplies_printing_and_writing_paper" => {
1823 Ok(StationaryOfficeSuppliesPrintingAndWritingPaper)
1824 }
1825 "stationery_stores_office_and_school_supply_stores" => {
1826 Ok(StationeryStoresOfficeAndSchoolSupplyStores)
1827 }
1828 "swimming_pools_sales" => Ok(SwimmingPoolsSales),
1829 "t_ui_travel_germany" => Ok(TUiTravelGermany),
1830 "tailors_alterations" => Ok(TailorsAlterations),
1831 "tax_payments_government_agencies" => Ok(TaxPaymentsGovernmentAgencies),
1832 "tax_preparation_services" => Ok(TaxPreparationServices),
1833 "taxicabs_limousines" => Ok(TaxicabsLimousines),
1834 "telecommunication_equipment_and_telephone_sales" => {
1835 Ok(TelecommunicationEquipmentAndTelephoneSales)
1836 }
1837 "telecommunication_services" => Ok(TelecommunicationServices),
1838 "telegraph_services" => Ok(TelegraphServices),
1839 "tent_and_awning_shops" => Ok(TentAndAwningShops),
1840 "testing_laboratories" => Ok(TestingLaboratories),
1841 "theatrical_ticket_agencies" => Ok(TheatricalTicketAgencies),
1842 "timeshares" => Ok(Timeshares),
1843 "tire_retreading_and_repair" => Ok(TireRetreadingAndRepair),
1844 "tolls_bridge_fees" => Ok(TollsBridgeFees),
1845 "tourist_attractions_and_exhibits" => Ok(TouristAttractionsAndExhibits),
1846 "towing_services" => Ok(TowingServices),
1847 "trailer_parks_campgrounds" => Ok(TrailerParksCampgrounds),
1848 "transportation_services" => Ok(TransportationServices),
1849 "travel_agencies_tour_operators" => Ok(TravelAgenciesTourOperators),
1850 "truck_stop_iteration" => Ok(TruckStopIteration),
1851 "truck_utility_trailer_rentals" => Ok(TruckUtilityTrailerRentals),
1852 "typesetting_plate_making_and_related_services" => {
1853 Ok(TypesettingPlateMakingAndRelatedServices)
1854 }
1855 "typewriter_stores" => Ok(TypewriterStores),
1856 "u_s_federal_government_agencies_or_departments" => {
1857 Ok(USFederalGovernmentAgenciesOrDepartments)
1858 }
1859 "uniforms_commercial_clothing" => Ok(UniformsCommercialClothing),
1860 "used_merchandise_and_secondhand_stores" => Ok(UsedMerchandiseAndSecondhandStores),
1861 "utilities" => Ok(Utilities),
1862 "variety_stores" => Ok(VarietyStores),
1863 "veterinary_services" => Ok(VeterinaryServices),
1864 "video_amusement_game_supplies" => Ok(VideoAmusementGameSupplies),
1865 "video_game_arcades" => Ok(VideoGameArcades),
1866 "video_tape_rental_stores" => Ok(VideoTapeRentalStores),
1867 "vocational_trade_schools" => Ok(VocationalTradeSchools),
1868 "watch_jewelry_repair" => Ok(WatchJewelryRepair),
1869 "welding_repair" => Ok(WeldingRepair),
1870 "wholesale_clubs" => Ok(WholesaleClubs),
1871 "wig_and_toupee_stores" => Ok(WigAndToupeeStores),
1872 "wires_money_orders" => Ok(WiresMoneyOrders),
1873 "womens_accessory_and_specialty_shops" => Ok(WomensAccessoryAndSpecialtyShops),
1874 "womens_ready_to_wear_stores" => Ok(WomensReadyToWearStores),
1875 "wrecking_and_salvage_yards" => Ok(WreckingAndSalvageYards),
1876 v => {
1877 tracing::warn!(
1878 "Unknown value '{}' for enum '{}'",
1879 v,
1880 "CreateIssuingCardSpendingControlsAllowedCategories"
1881 );
1882 Ok(Unknown(v.to_owned()))
1883 }
1884 }
1885 }
1886}
1887impl std::fmt::Display for CreateIssuingCardSpendingControlsAllowedCategories {
1888 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1889 f.write_str(self.as_str())
1890 }
1891}
1892
1893#[cfg(not(feature = "redact-generated-debug"))]
1894impl std::fmt::Debug for CreateIssuingCardSpendingControlsAllowedCategories {
1895 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1896 f.write_str(self.as_str())
1897 }
1898}
1899#[cfg(feature = "redact-generated-debug")]
1900impl std::fmt::Debug for CreateIssuingCardSpendingControlsAllowedCategories {
1901 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1902 f.debug_struct(stringify!(CreateIssuingCardSpendingControlsAllowedCategories))
1903 .finish_non_exhaustive()
1904 }
1905}
1906impl serde::Serialize for CreateIssuingCardSpendingControlsAllowedCategories {
1907 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
1908 where
1909 S: serde::Serializer,
1910 {
1911 serializer.serialize_str(self.as_str())
1912 }
1913}
1914#[cfg(feature = "deserialize")]
1915impl<'de> serde::Deserialize<'de> for CreateIssuingCardSpendingControlsAllowedCategories {
1916 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
1917 use std::str::FromStr;
1918 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
1919 Ok(Self::from_str(&s).expect("infallible"))
1920 }
1921}
1922#[derive(Clone, Eq, PartialEq)]
1927#[non_exhaustive]
1928pub enum CreateIssuingCardSpendingControlsBlockedCardPresences {
1929 NotPresent,
1930 Present,
1931 Unknown(String),
1933}
1934impl CreateIssuingCardSpendingControlsBlockedCardPresences {
1935 pub fn as_str(&self) -> &str {
1936 use CreateIssuingCardSpendingControlsBlockedCardPresences::*;
1937 match self {
1938 NotPresent => "not_present",
1939 Present => "present",
1940 Unknown(v) => v,
1941 }
1942 }
1943}
1944
1945impl std::str::FromStr for CreateIssuingCardSpendingControlsBlockedCardPresences {
1946 type Err = std::convert::Infallible;
1947 fn from_str(s: &str) -> Result<Self, Self::Err> {
1948 use CreateIssuingCardSpendingControlsBlockedCardPresences::*;
1949 match s {
1950 "not_present" => Ok(NotPresent),
1951 "present" => Ok(Present),
1952 v => {
1953 tracing::warn!(
1954 "Unknown value '{}' for enum '{}'",
1955 v,
1956 "CreateIssuingCardSpendingControlsBlockedCardPresences"
1957 );
1958 Ok(Unknown(v.to_owned()))
1959 }
1960 }
1961 }
1962}
1963impl std::fmt::Display for CreateIssuingCardSpendingControlsBlockedCardPresences {
1964 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1965 f.write_str(self.as_str())
1966 }
1967}
1968
1969#[cfg(not(feature = "redact-generated-debug"))]
1970impl std::fmt::Debug for CreateIssuingCardSpendingControlsBlockedCardPresences {
1971 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1972 f.write_str(self.as_str())
1973 }
1974}
1975#[cfg(feature = "redact-generated-debug")]
1976impl std::fmt::Debug for CreateIssuingCardSpendingControlsBlockedCardPresences {
1977 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
1978 f.debug_struct(stringify!(CreateIssuingCardSpendingControlsBlockedCardPresences))
1979 .finish_non_exhaustive()
1980 }
1981}
1982impl serde::Serialize for CreateIssuingCardSpendingControlsBlockedCardPresences {
1983 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
1984 where
1985 S: serde::Serializer,
1986 {
1987 serializer.serialize_str(self.as_str())
1988 }
1989}
1990#[cfg(feature = "deserialize")]
1991impl<'de> serde::Deserialize<'de> for CreateIssuingCardSpendingControlsBlockedCardPresences {
1992 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
1993 use std::str::FromStr;
1994 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
1995 Ok(Self::from_str(&s).expect("infallible"))
1996 }
1997}
1998#[derive(Clone, Eq, PartialEq)]
2002#[non_exhaustive]
2003pub enum CreateIssuingCardSpendingControlsBlockedCategories {
2004 AcRefrigerationRepair,
2005 AccountingBookkeepingServices,
2006 AdvertisingServices,
2007 AgriculturalCooperative,
2008 AirlinesAirCarriers,
2009 AirportsFlyingFields,
2010 AmbulanceServices,
2011 AmusementParksCarnivals,
2012 AntiqueReproductions,
2013 AntiqueShops,
2014 Aquariums,
2015 ArchitecturalSurveyingServices,
2016 ArtDealersAndGalleries,
2017 ArtistsSupplyAndCraftShops,
2018 AutoAndHomeSupplyStores,
2019 AutoBodyRepairShops,
2020 AutoPaintShops,
2021 AutoServiceShops,
2022 AutomatedCashDisburse,
2023 AutomatedFuelDispensers,
2024 AutomobileAssociations,
2025 AutomotivePartsAndAccessoriesStores,
2026 AutomotiveTireStores,
2027 BailAndBondPayments,
2028 Bakeries,
2029 BandsOrchestras,
2030 BarberAndBeautyShops,
2031 BettingCasinoGambling,
2032 BicycleShops,
2033 BilliardPoolEstablishments,
2034 BoatDealers,
2035 BoatRentalsAndLeases,
2036 BookStores,
2037 BooksPeriodicalsAndNewspapers,
2038 BowlingAlleys,
2039 BusLines,
2040 BusinessSecretarialSchools,
2041 BuyingShoppingServices,
2042 CableSatelliteAndOtherPayTelevisionAndRadio,
2043 CameraAndPhotographicSupplyStores,
2044 CandyNutAndConfectioneryStores,
2045 CarAndTruckDealersNewUsed,
2046 CarAndTruckDealersUsedOnly,
2047 CarRentalAgencies,
2048 CarWashes,
2049 CarpentryServices,
2050 CarpetUpholsteryCleaning,
2051 Caterers,
2052 CharitableAndSocialServiceOrganizationsFundraising,
2053 ChemicalsAndAlliedProducts,
2054 ChildCareServices,
2055 ChildrensAndInfantsWearStores,
2056 ChiropodistsPodiatrists,
2057 Chiropractors,
2058 CigarStoresAndStands,
2059 CivicSocialFraternalAssociations,
2060 CleaningAndMaintenance,
2061 ClothingRental,
2062 CollegesUniversities,
2063 CommercialEquipment,
2064 CommercialFootwear,
2065 CommercialPhotographyArtAndGraphics,
2066 CommuterTransportAndFerries,
2067 ComputerNetworkServices,
2068 ComputerProgramming,
2069 ComputerRepair,
2070 ComputerSoftwareStores,
2071 ComputersPeripheralsAndSoftware,
2072 ConcreteWorkServices,
2073 ConstructionMaterials,
2074 ConsultingPublicRelations,
2075 CorrespondenceSchools,
2076 CosmeticStores,
2077 CounselingServices,
2078 CountryClubs,
2079 CourierServices,
2080 CourtCosts,
2081 CreditReportingAgencies,
2082 CruiseLines,
2083 DairyProductsStores,
2084 DanceHallStudiosSchools,
2085 DatingEscortServices,
2086 DentistsOrthodontists,
2087 DepartmentStores,
2088 DetectiveAgencies,
2089 DigitalGoodsApplications,
2090 DigitalGoodsGames,
2091 DigitalGoodsLargeVolume,
2092 DigitalGoodsMedia,
2093 DirectMarketingCatalogMerchant,
2094 DirectMarketingCombinationCatalogAndRetailMerchant,
2095 DirectMarketingInboundTelemarketing,
2096 DirectMarketingInsuranceServices,
2097 DirectMarketingOther,
2098 DirectMarketingOutboundTelemarketing,
2099 DirectMarketingSubscription,
2100 DirectMarketingTravel,
2101 DiscountStores,
2102 Doctors,
2103 DoorToDoorSales,
2104 DraperyWindowCoveringAndUpholsteryStores,
2105 DrinkingPlaces,
2106 DrugStoresAndPharmacies,
2107 DrugsDrugProprietariesAndDruggistSundries,
2108 DryCleaners,
2109 DurableGoods,
2110 DutyFreeStores,
2111 EatingPlacesRestaurants,
2112 EducationalServices,
2113 ElectricRazorStores,
2114 ElectricVehicleCharging,
2115 ElectricalPartsAndEquipment,
2116 ElectricalServices,
2117 ElectronicsRepairShops,
2118 ElectronicsStores,
2119 ElementarySecondarySchools,
2120 EmergencyServicesGcasVisaUseOnly,
2121 EmploymentTempAgencies,
2122 EquipmentRental,
2123 ExterminatingServices,
2124 FamilyClothingStores,
2125 FastFoodRestaurants,
2126 FinancialInstitutions,
2127 FinesGovernmentAdministrativeEntities,
2128 FireplaceFireplaceScreensAndAccessoriesStores,
2129 FloorCoveringStores,
2130 Florists,
2131 FloristsSuppliesNurseryStockAndFlowers,
2132 FreezerAndLockerMeatProvisioners,
2133 FuelDealersNonAutomotive,
2134 FuneralServicesCrematories,
2135 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances,
2136 FurnitureRepairRefinishing,
2137 FurriersAndFurShops,
2138 GeneralServices,
2139 GiftCardNoveltyAndSouvenirShops,
2140 GlassPaintAndWallpaperStores,
2141 GlasswareCrystalStores,
2142 GolfCoursesPublic,
2143 GovernmentLicensedHorseDogRacingUsRegionOnly,
2144 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly,
2145 GovernmentOwnedLotteriesNonUsRegion,
2146 GovernmentOwnedLotteriesUsRegionOnly,
2147 GovernmentServices,
2148 GroceryStoresSupermarkets,
2149 HardwareEquipmentAndSupplies,
2150 HardwareStores,
2151 HealthAndBeautySpas,
2152 HearingAidsSalesAndSupplies,
2153 HeatingPlumbingAC,
2154 HobbyToyAndGameShops,
2155 HomeSupplyWarehouseStores,
2156 Hospitals,
2157 HotelsMotelsAndResorts,
2158 HouseholdApplianceStores,
2159 IndustrialSupplies,
2160 InformationRetrievalServices,
2161 InsuranceDefault,
2162 InsuranceUnderwritingPremiums,
2163 IntraCompanyPurchases,
2164 JewelryStoresWatchesClocksAndSilverwareStores,
2165 LandscapingServices,
2166 Laundries,
2167 LaundryCleaningServices,
2168 LegalServicesAttorneys,
2169 LuggageAndLeatherGoodsStores,
2170 LumberBuildingMaterialsStores,
2171 ManualCashDisburse,
2172 MarinasServiceAndSupplies,
2173 Marketplaces,
2174 MasonryStoneworkAndPlaster,
2175 MassageParlors,
2176 MedicalAndDentalLabs,
2177 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies,
2178 MedicalServices,
2179 MembershipOrganizations,
2180 MensAndBoysClothingAndAccessoriesStores,
2181 MensWomensClothingStores,
2182 MetalServiceCenters,
2183 Miscellaneous,
2184 MiscellaneousApparelAndAccessoryShops,
2185 MiscellaneousAutoDealers,
2186 MiscellaneousBusinessServices,
2187 MiscellaneousFoodStores,
2188 MiscellaneousGeneralMerchandise,
2189 MiscellaneousGeneralServices,
2190 MiscellaneousHomeFurnishingSpecialtyStores,
2191 MiscellaneousPublishingAndPrinting,
2192 MiscellaneousRecreationServices,
2193 MiscellaneousRepairShops,
2194 MiscellaneousSpecialtyRetail,
2195 MobileHomeDealers,
2196 MotionPictureTheaters,
2197 MotorFreightCarriersAndTrucking,
2198 MotorHomesDealers,
2199 MotorVehicleSuppliesAndNewParts,
2200 MotorcycleShopsAndDealers,
2201 MotorcycleShopsDealers,
2202 MusicStoresMusicalInstrumentsPianosAndSheetMusic,
2203 NewsDealersAndNewsstands,
2204 NonFiMoneyOrders,
2205 NonFiStoredValueCardPurchaseLoad,
2206 NondurableGoods,
2207 NurseriesLawnAndGardenSupplyStores,
2208 NursingPersonalCare,
2209 OfficeAndCommercialFurniture,
2210 OpticiansEyeglasses,
2211 OptometristsOphthalmologist,
2212 OrthopedicGoodsProstheticDevices,
2213 Osteopaths,
2214 PackageStoresBeerWineAndLiquor,
2215 PaintsVarnishesAndSupplies,
2216 ParkingLotsGarages,
2217 PassengerRailways,
2218 PawnShops,
2219 PetShopsPetFoodAndSupplies,
2220 PetroleumAndPetroleumProducts,
2221 PhotoDeveloping,
2222 PhotographicPhotocopyMicrofilmEquipmentAndSupplies,
2223 PhotographicStudios,
2224 PictureVideoProduction,
2225 PieceGoodsNotionsAndOtherDryGoods,
2226 PlumbingHeatingEquipmentAndSupplies,
2227 PoliticalOrganizations,
2228 PostalServicesGovernmentOnly,
2229 PreciousStonesAndMetalsWatchesAndJewelry,
2230 ProfessionalServices,
2231 PublicWarehousingAndStorage,
2232 QuickCopyReproAndBlueprint,
2233 Railroads,
2234 RealEstateAgentsAndManagersRentals,
2235 RecordStores,
2236 RecreationalVehicleRentals,
2237 ReligiousGoodsStores,
2238 ReligiousOrganizations,
2239 RoofingSidingSheetMetal,
2240 SecretarialSupportServices,
2241 SecurityBrokersDealers,
2242 ServiceStations,
2243 SewingNeedleworkFabricAndPieceGoodsStores,
2244 ShoeRepairHatCleaning,
2245 ShoeStores,
2246 SmallApplianceRepair,
2247 SnowmobileDealers,
2248 SpecialTradeServices,
2249 SpecialtyCleaning,
2250 SportingGoodsStores,
2251 SportingRecreationCamps,
2252 SportsAndRidingApparelStores,
2253 SportsClubsFields,
2254 StampAndCoinStores,
2255 StationaryOfficeSuppliesPrintingAndWritingPaper,
2256 StationeryStoresOfficeAndSchoolSupplyStores,
2257 SwimmingPoolsSales,
2258 TUiTravelGermany,
2259 TailorsAlterations,
2260 TaxPaymentsGovernmentAgencies,
2261 TaxPreparationServices,
2262 TaxicabsLimousines,
2263 TelecommunicationEquipmentAndTelephoneSales,
2264 TelecommunicationServices,
2265 TelegraphServices,
2266 TentAndAwningShops,
2267 TestingLaboratories,
2268 TheatricalTicketAgencies,
2269 Timeshares,
2270 TireRetreadingAndRepair,
2271 TollsBridgeFees,
2272 TouristAttractionsAndExhibits,
2273 TowingServices,
2274 TrailerParksCampgrounds,
2275 TransportationServices,
2276 TravelAgenciesTourOperators,
2277 TruckStopIteration,
2278 TruckUtilityTrailerRentals,
2279 TypesettingPlateMakingAndRelatedServices,
2280 TypewriterStores,
2281 USFederalGovernmentAgenciesOrDepartments,
2282 UniformsCommercialClothing,
2283 UsedMerchandiseAndSecondhandStores,
2284 Utilities,
2285 VarietyStores,
2286 VeterinaryServices,
2287 VideoAmusementGameSupplies,
2288 VideoGameArcades,
2289 VideoTapeRentalStores,
2290 VocationalTradeSchools,
2291 WatchJewelryRepair,
2292 WeldingRepair,
2293 WholesaleClubs,
2294 WigAndToupeeStores,
2295 WiresMoneyOrders,
2296 WomensAccessoryAndSpecialtyShops,
2297 WomensReadyToWearStores,
2298 WreckingAndSalvageYards,
2299 Unknown(String),
2301}
2302impl CreateIssuingCardSpendingControlsBlockedCategories {
2303 pub fn as_str(&self) -> &str {
2304 use CreateIssuingCardSpendingControlsBlockedCategories::*;
2305 match self {
2306 AcRefrigerationRepair => "ac_refrigeration_repair",
2307 AccountingBookkeepingServices => "accounting_bookkeeping_services",
2308 AdvertisingServices => "advertising_services",
2309 AgriculturalCooperative => "agricultural_cooperative",
2310 AirlinesAirCarriers => "airlines_air_carriers",
2311 AirportsFlyingFields => "airports_flying_fields",
2312 AmbulanceServices => "ambulance_services",
2313 AmusementParksCarnivals => "amusement_parks_carnivals",
2314 AntiqueReproductions => "antique_reproductions",
2315 AntiqueShops => "antique_shops",
2316 Aquariums => "aquariums",
2317 ArchitecturalSurveyingServices => "architectural_surveying_services",
2318 ArtDealersAndGalleries => "art_dealers_and_galleries",
2319 ArtistsSupplyAndCraftShops => "artists_supply_and_craft_shops",
2320 AutoAndHomeSupplyStores => "auto_and_home_supply_stores",
2321 AutoBodyRepairShops => "auto_body_repair_shops",
2322 AutoPaintShops => "auto_paint_shops",
2323 AutoServiceShops => "auto_service_shops",
2324 AutomatedCashDisburse => "automated_cash_disburse",
2325 AutomatedFuelDispensers => "automated_fuel_dispensers",
2326 AutomobileAssociations => "automobile_associations",
2327 AutomotivePartsAndAccessoriesStores => "automotive_parts_and_accessories_stores",
2328 AutomotiveTireStores => "automotive_tire_stores",
2329 BailAndBondPayments => "bail_and_bond_payments",
2330 Bakeries => "bakeries",
2331 BandsOrchestras => "bands_orchestras",
2332 BarberAndBeautyShops => "barber_and_beauty_shops",
2333 BettingCasinoGambling => "betting_casino_gambling",
2334 BicycleShops => "bicycle_shops",
2335 BilliardPoolEstablishments => "billiard_pool_establishments",
2336 BoatDealers => "boat_dealers",
2337 BoatRentalsAndLeases => "boat_rentals_and_leases",
2338 BookStores => "book_stores",
2339 BooksPeriodicalsAndNewspapers => "books_periodicals_and_newspapers",
2340 BowlingAlleys => "bowling_alleys",
2341 BusLines => "bus_lines",
2342 BusinessSecretarialSchools => "business_secretarial_schools",
2343 BuyingShoppingServices => "buying_shopping_services",
2344 CableSatelliteAndOtherPayTelevisionAndRadio => {
2345 "cable_satellite_and_other_pay_television_and_radio"
2346 }
2347 CameraAndPhotographicSupplyStores => "camera_and_photographic_supply_stores",
2348 CandyNutAndConfectioneryStores => "candy_nut_and_confectionery_stores",
2349 CarAndTruckDealersNewUsed => "car_and_truck_dealers_new_used",
2350 CarAndTruckDealersUsedOnly => "car_and_truck_dealers_used_only",
2351 CarRentalAgencies => "car_rental_agencies",
2352 CarWashes => "car_washes",
2353 CarpentryServices => "carpentry_services",
2354 CarpetUpholsteryCleaning => "carpet_upholstery_cleaning",
2355 Caterers => "caterers",
2356 CharitableAndSocialServiceOrganizationsFundraising => {
2357 "charitable_and_social_service_organizations_fundraising"
2358 }
2359 ChemicalsAndAlliedProducts => "chemicals_and_allied_products",
2360 ChildCareServices => "child_care_services",
2361 ChildrensAndInfantsWearStores => "childrens_and_infants_wear_stores",
2362 ChiropodistsPodiatrists => "chiropodists_podiatrists",
2363 Chiropractors => "chiropractors",
2364 CigarStoresAndStands => "cigar_stores_and_stands",
2365 CivicSocialFraternalAssociations => "civic_social_fraternal_associations",
2366 CleaningAndMaintenance => "cleaning_and_maintenance",
2367 ClothingRental => "clothing_rental",
2368 CollegesUniversities => "colleges_universities",
2369 CommercialEquipment => "commercial_equipment",
2370 CommercialFootwear => "commercial_footwear",
2371 CommercialPhotographyArtAndGraphics => "commercial_photography_art_and_graphics",
2372 CommuterTransportAndFerries => "commuter_transport_and_ferries",
2373 ComputerNetworkServices => "computer_network_services",
2374 ComputerProgramming => "computer_programming",
2375 ComputerRepair => "computer_repair",
2376 ComputerSoftwareStores => "computer_software_stores",
2377 ComputersPeripheralsAndSoftware => "computers_peripherals_and_software",
2378 ConcreteWorkServices => "concrete_work_services",
2379 ConstructionMaterials => "construction_materials",
2380 ConsultingPublicRelations => "consulting_public_relations",
2381 CorrespondenceSchools => "correspondence_schools",
2382 CosmeticStores => "cosmetic_stores",
2383 CounselingServices => "counseling_services",
2384 CountryClubs => "country_clubs",
2385 CourierServices => "courier_services",
2386 CourtCosts => "court_costs",
2387 CreditReportingAgencies => "credit_reporting_agencies",
2388 CruiseLines => "cruise_lines",
2389 DairyProductsStores => "dairy_products_stores",
2390 DanceHallStudiosSchools => "dance_hall_studios_schools",
2391 DatingEscortServices => "dating_escort_services",
2392 DentistsOrthodontists => "dentists_orthodontists",
2393 DepartmentStores => "department_stores",
2394 DetectiveAgencies => "detective_agencies",
2395 DigitalGoodsApplications => "digital_goods_applications",
2396 DigitalGoodsGames => "digital_goods_games",
2397 DigitalGoodsLargeVolume => "digital_goods_large_volume",
2398 DigitalGoodsMedia => "digital_goods_media",
2399 DirectMarketingCatalogMerchant => "direct_marketing_catalog_merchant",
2400 DirectMarketingCombinationCatalogAndRetailMerchant => {
2401 "direct_marketing_combination_catalog_and_retail_merchant"
2402 }
2403 DirectMarketingInboundTelemarketing => "direct_marketing_inbound_telemarketing",
2404 DirectMarketingInsuranceServices => "direct_marketing_insurance_services",
2405 DirectMarketingOther => "direct_marketing_other",
2406 DirectMarketingOutboundTelemarketing => "direct_marketing_outbound_telemarketing",
2407 DirectMarketingSubscription => "direct_marketing_subscription",
2408 DirectMarketingTravel => "direct_marketing_travel",
2409 DiscountStores => "discount_stores",
2410 Doctors => "doctors",
2411 DoorToDoorSales => "door_to_door_sales",
2412 DraperyWindowCoveringAndUpholsteryStores => {
2413 "drapery_window_covering_and_upholstery_stores"
2414 }
2415 DrinkingPlaces => "drinking_places",
2416 DrugStoresAndPharmacies => "drug_stores_and_pharmacies",
2417 DrugsDrugProprietariesAndDruggistSundries => {
2418 "drugs_drug_proprietaries_and_druggist_sundries"
2419 }
2420 DryCleaners => "dry_cleaners",
2421 DurableGoods => "durable_goods",
2422 DutyFreeStores => "duty_free_stores",
2423 EatingPlacesRestaurants => "eating_places_restaurants",
2424 EducationalServices => "educational_services",
2425 ElectricRazorStores => "electric_razor_stores",
2426 ElectricVehicleCharging => "electric_vehicle_charging",
2427 ElectricalPartsAndEquipment => "electrical_parts_and_equipment",
2428 ElectricalServices => "electrical_services",
2429 ElectronicsRepairShops => "electronics_repair_shops",
2430 ElectronicsStores => "electronics_stores",
2431 ElementarySecondarySchools => "elementary_secondary_schools",
2432 EmergencyServicesGcasVisaUseOnly => "emergency_services_gcas_visa_use_only",
2433 EmploymentTempAgencies => "employment_temp_agencies",
2434 EquipmentRental => "equipment_rental",
2435 ExterminatingServices => "exterminating_services",
2436 FamilyClothingStores => "family_clothing_stores",
2437 FastFoodRestaurants => "fast_food_restaurants",
2438 FinancialInstitutions => "financial_institutions",
2439 FinesGovernmentAdministrativeEntities => "fines_government_administrative_entities",
2440 FireplaceFireplaceScreensAndAccessoriesStores => {
2441 "fireplace_fireplace_screens_and_accessories_stores"
2442 }
2443 FloorCoveringStores => "floor_covering_stores",
2444 Florists => "florists",
2445 FloristsSuppliesNurseryStockAndFlowers => "florists_supplies_nursery_stock_and_flowers",
2446 FreezerAndLockerMeatProvisioners => "freezer_and_locker_meat_provisioners",
2447 FuelDealersNonAutomotive => "fuel_dealers_non_automotive",
2448 FuneralServicesCrematories => "funeral_services_crematories",
2449 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances => {
2450 "furniture_home_furnishings_and_equipment_stores_except_appliances"
2451 }
2452 FurnitureRepairRefinishing => "furniture_repair_refinishing",
2453 FurriersAndFurShops => "furriers_and_fur_shops",
2454 GeneralServices => "general_services",
2455 GiftCardNoveltyAndSouvenirShops => "gift_card_novelty_and_souvenir_shops",
2456 GlassPaintAndWallpaperStores => "glass_paint_and_wallpaper_stores",
2457 GlasswareCrystalStores => "glassware_crystal_stores",
2458 GolfCoursesPublic => "golf_courses_public",
2459 GovernmentLicensedHorseDogRacingUsRegionOnly => {
2460 "government_licensed_horse_dog_racing_us_region_only"
2461 }
2462 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly => {
2463 "government_licensed_online_casions_online_gambling_us_region_only"
2464 }
2465 GovernmentOwnedLotteriesNonUsRegion => "government_owned_lotteries_non_us_region",
2466 GovernmentOwnedLotteriesUsRegionOnly => "government_owned_lotteries_us_region_only",
2467 GovernmentServices => "government_services",
2468 GroceryStoresSupermarkets => "grocery_stores_supermarkets",
2469 HardwareEquipmentAndSupplies => "hardware_equipment_and_supplies",
2470 HardwareStores => "hardware_stores",
2471 HealthAndBeautySpas => "health_and_beauty_spas",
2472 HearingAidsSalesAndSupplies => "hearing_aids_sales_and_supplies",
2473 HeatingPlumbingAC => "heating_plumbing_a_c",
2474 HobbyToyAndGameShops => "hobby_toy_and_game_shops",
2475 HomeSupplyWarehouseStores => "home_supply_warehouse_stores",
2476 Hospitals => "hospitals",
2477 HotelsMotelsAndResorts => "hotels_motels_and_resorts",
2478 HouseholdApplianceStores => "household_appliance_stores",
2479 IndustrialSupplies => "industrial_supplies",
2480 InformationRetrievalServices => "information_retrieval_services",
2481 InsuranceDefault => "insurance_default",
2482 InsuranceUnderwritingPremiums => "insurance_underwriting_premiums",
2483 IntraCompanyPurchases => "intra_company_purchases",
2484 JewelryStoresWatchesClocksAndSilverwareStores => {
2485 "jewelry_stores_watches_clocks_and_silverware_stores"
2486 }
2487 LandscapingServices => "landscaping_services",
2488 Laundries => "laundries",
2489 LaundryCleaningServices => "laundry_cleaning_services",
2490 LegalServicesAttorneys => "legal_services_attorneys",
2491 LuggageAndLeatherGoodsStores => "luggage_and_leather_goods_stores",
2492 LumberBuildingMaterialsStores => "lumber_building_materials_stores",
2493 ManualCashDisburse => "manual_cash_disburse",
2494 MarinasServiceAndSupplies => "marinas_service_and_supplies",
2495 Marketplaces => "marketplaces",
2496 MasonryStoneworkAndPlaster => "masonry_stonework_and_plaster",
2497 MassageParlors => "massage_parlors",
2498 MedicalAndDentalLabs => "medical_and_dental_labs",
2499 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies => {
2500 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"
2501 }
2502 MedicalServices => "medical_services",
2503 MembershipOrganizations => "membership_organizations",
2504 MensAndBoysClothingAndAccessoriesStores => {
2505 "mens_and_boys_clothing_and_accessories_stores"
2506 }
2507 MensWomensClothingStores => "mens_womens_clothing_stores",
2508 MetalServiceCenters => "metal_service_centers",
2509 Miscellaneous => "miscellaneous",
2510 MiscellaneousApparelAndAccessoryShops => "miscellaneous_apparel_and_accessory_shops",
2511 MiscellaneousAutoDealers => "miscellaneous_auto_dealers",
2512 MiscellaneousBusinessServices => "miscellaneous_business_services",
2513 MiscellaneousFoodStores => "miscellaneous_food_stores",
2514 MiscellaneousGeneralMerchandise => "miscellaneous_general_merchandise",
2515 MiscellaneousGeneralServices => "miscellaneous_general_services",
2516 MiscellaneousHomeFurnishingSpecialtyStores => {
2517 "miscellaneous_home_furnishing_specialty_stores"
2518 }
2519 MiscellaneousPublishingAndPrinting => "miscellaneous_publishing_and_printing",
2520 MiscellaneousRecreationServices => "miscellaneous_recreation_services",
2521 MiscellaneousRepairShops => "miscellaneous_repair_shops",
2522 MiscellaneousSpecialtyRetail => "miscellaneous_specialty_retail",
2523 MobileHomeDealers => "mobile_home_dealers",
2524 MotionPictureTheaters => "motion_picture_theaters",
2525 MotorFreightCarriersAndTrucking => "motor_freight_carriers_and_trucking",
2526 MotorHomesDealers => "motor_homes_dealers",
2527 MotorVehicleSuppliesAndNewParts => "motor_vehicle_supplies_and_new_parts",
2528 MotorcycleShopsAndDealers => "motorcycle_shops_and_dealers",
2529 MotorcycleShopsDealers => "motorcycle_shops_dealers",
2530 MusicStoresMusicalInstrumentsPianosAndSheetMusic => {
2531 "music_stores_musical_instruments_pianos_and_sheet_music"
2532 }
2533 NewsDealersAndNewsstands => "news_dealers_and_newsstands",
2534 NonFiMoneyOrders => "non_fi_money_orders",
2535 NonFiStoredValueCardPurchaseLoad => "non_fi_stored_value_card_purchase_load",
2536 NondurableGoods => "nondurable_goods",
2537 NurseriesLawnAndGardenSupplyStores => "nurseries_lawn_and_garden_supply_stores",
2538 NursingPersonalCare => "nursing_personal_care",
2539 OfficeAndCommercialFurniture => "office_and_commercial_furniture",
2540 OpticiansEyeglasses => "opticians_eyeglasses",
2541 OptometristsOphthalmologist => "optometrists_ophthalmologist",
2542 OrthopedicGoodsProstheticDevices => "orthopedic_goods_prosthetic_devices",
2543 Osteopaths => "osteopaths",
2544 PackageStoresBeerWineAndLiquor => "package_stores_beer_wine_and_liquor",
2545 PaintsVarnishesAndSupplies => "paints_varnishes_and_supplies",
2546 ParkingLotsGarages => "parking_lots_garages",
2547 PassengerRailways => "passenger_railways",
2548 PawnShops => "pawn_shops",
2549 PetShopsPetFoodAndSupplies => "pet_shops_pet_food_and_supplies",
2550 PetroleumAndPetroleumProducts => "petroleum_and_petroleum_products",
2551 PhotoDeveloping => "photo_developing",
2552 PhotographicPhotocopyMicrofilmEquipmentAndSupplies => {
2553 "photographic_photocopy_microfilm_equipment_and_supplies"
2554 }
2555 PhotographicStudios => "photographic_studios",
2556 PictureVideoProduction => "picture_video_production",
2557 PieceGoodsNotionsAndOtherDryGoods => "piece_goods_notions_and_other_dry_goods",
2558 PlumbingHeatingEquipmentAndSupplies => "plumbing_heating_equipment_and_supplies",
2559 PoliticalOrganizations => "political_organizations",
2560 PostalServicesGovernmentOnly => "postal_services_government_only",
2561 PreciousStonesAndMetalsWatchesAndJewelry => {
2562 "precious_stones_and_metals_watches_and_jewelry"
2563 }
2564 ProfessionalServices => "professional_services",
2565 PublicWarehousingAndStorage => "public_warehousing_and_storage",
2566 QuickCopyReproAndBlueprint => "quick_copy_repro_and_blueprint",
2567 Railroads => "railroads",
2568 RealEstateAgentsAndManagersRentals => "real_estate_agents_and_managers_rentals",
2569 RecordStores => "record_stores",
2570 RecreationalVehicleRentals => "recreational_vehicle_rentals",
2571 ReligiousGoodsStores => "religious_goods_stores",
2572 ReligiousOrganizations => "religious_organizations",
2573 RoofingSidingSheetMetal => "roofing_siding_sheet_metal",
2574 SecretarialSupportServices => "secretarial_support_services",
2575 SecurityBrokersDealers => "security_brokers_dealers",
2576 ServiceStations => "service_stations",
2577 SewingNeedleworkFabricAndPieceGoodsStores => {
2578 "sewing_needlework_fabric_and_piece_goods_stores"
2579 }
2580 ShoeRepairHatCleaning => "shoe_repair_hat_cleaning",
2581 ShoeStores => "shoe_stores",
2582 SmallApplianceRepair => "small_appliance_repair",
2583 SnowmobileDealers => "snowmobile_dealers",
2584 SpecialTradeServices => "special_trade_services",
2585 SpecialtyCleaning => "specialty_cleaning",
2586 SportingGoodsStores => "sporting_goods_stores",
2587 SportingRecreationCamps => "sporting_recreation_camps",
2588 SportsAndRidingApparelStores => "sports_and_riding_apparel_stores",
2589 SportsClubsFields => "sports_clubs_fields",
2590 StampAndCoinStores => "stamp_and_coin_stores",
2591 StationaryOfficeSuppliesPrintingAndWritingPaper => {
2592 "stationary_office_supplies_printing_and_writing_paper"
2593 }
2594 StationeryStoresOfficeAndSchoolSupplyStores => {
2595 "stationery_stores_office_and_school_supply_stores"
2596 }
2597 SwimmingPoolsSales => "swimming_pools_sales",
2598 TUiTravelGermany => "t_ui_travel_germany",
2599 TailorsAlterations => "tailors_alterations",
2600 TaxPaymentsGovernmentAgencies => "tax_payments_government_agencies",
2601 TaxPreparationServices => "tax_preparation_services",
2602 TaxicabsLimousines => "taxicabs_limousines",
2603 TelecommunicationEquipmentAndTelephoneSales => {
2604 "telecommunication_equipment_and_telephone_sales"
2605 }
2606 TelecommunicationServices => "telecommunication_services",
2607 TelegraphServices => "telegraph_services",
2608 TentAndAwningShops => "tent_and_awning_shops",
2609 TestingLaboratories => "testing_laboratories",
2610 TheatricalTicketAgencies => "theatrical_ticket_agencies",
2611 Timeshares => "timeshares",
2612 TireRetreadingAndRepair => "tire_retreading_and_repair",
2613 TollsBridgeFees => "tolls_bridge_fees",
2614 TouristAttractionsAndExhibits => "tourist_attractions_and_exhibits",
2615 TowingServices => "towing_services",
2616 TrailerParksCampgrounds => "trailer_parks_campgrounds",
2617 TransportationServices => "transportation_services",
2618 TravelAgenciesTourOperators => "travel_agencies_tour_operators",
2619 TruckStopIteration => "truck_stop_iteration",
2620 TruckUtilityTrailerRentals => "truck_utility_trailer_rentals",
2621 TypesettingPlateMakingAndRelatedServices => {
2622 "typesetting_plate_making_and_related_services"
2623 }
2624 TypewriterStores => "typewriter_stores",
2625 USFederalGovernmentAgenciesOrDepartments => {
2626 "u_s_federal_government_agencies_or_departments"
2627 }
2628 UniformsCommercialClothing => "uniforms_commercial_clothing",
2629 UsedMerchandiseAndSecondhandStores => "used_merchandise_and_secondhand_stores",
2630 Utilities => "utilities",
2631 VarietyStores => "variety_stores",
2632 VeterinaryServices => "veterinary_services",
2633 VideoAmusementGameSupplies => "video_amusement_game_supplies",
2634 VideoGameArcades => "video_game_arcades",
2635 VideoTapeRentalStores => "video_tape_rental_stores",
2636 VocationalTradeSchools => "vocational_trade_schools",
2637 WatchJewelryRepair => "watch_jewelry_repair",
2638 WeldingRepair => "welding_repair",
2639 WholesaleClubs => "wholesale_clubs",
2640 WigAndToupeeStores => "wig_and_toupee_stores",
2641 WiresMoneyOrders => "wires_money_orders",
2642 WomensAccessoryAndSpecialtyShops => "womens_accessory_and_specialty_shops",
2643 WomensReadyToWearStores => "womens_ready_to_wear_stores",
2644 WreckingAndSalvageYards => "wrecking_and_salvage_yards",
2645 Unknown(v) => v,
2646 }
2647 }
2648}
2649
2650impl std::str::FromStr for CreateIssuingCardSpendingControlsBlockedCategories {
2651 type Err = std::convert::Infallible;
2652 fn from_str(s: &str) -> Result<Self, Self::Err> {
2653 use CreateIssuingCardSpendingControlsBlockedCategories::*;
2654 match s {
2655 "ac_refrigeration_repair" => Ok(AcRefrigerationRepair),
2656 "accounting_bookkeeping_services" => Ok(AccountingBookkeepingServices),
2657 "advertising_services" => Ok(AdvertisingServices),
2658 "agricultural_cooperative" => Ok(AgriculturalCooperative),
2659 "airlines_air_carriers" => Ok(AirlinesAirCarriers),
2660 "airports_flying_fields" => Ok(AirportsFlyingFields),
2661 "ambulance_services" => Ok(AmbulanceServices),
2662 "amusement_parks_carnivals" => Ok(AmusementParksCarnivals),
2663 "antique_reproductions" => Ok(AntiqueReproductions),
2664 "antique_shops" => Ok(AntiqueShops),
2665 "aquariums" => Ok(Aquariums),
2666 "architectural_surveying_services" => Ok(ArchitecturalSurveyingServices),
2667 "art_dealers_and_galleries" => Ok(ArtDealersAndGalleries),
2668 "artists_supply_and_craft_shops" => Ok(ArtistsSupplyAndCraftShops),
2669 "auto_and_home_supply_stores" => Ok(AutoAndHomeSupplyStores),
2670 "auto_body_repair_shops" => Ok(AutoBodyRepairShops),
2671 "auto_paint_shops" => Ok(AutoPaintShops),
2672 "auto_service_shops" => Ok(AutoServiceShops),
2673 "automated_cash_disburse" => Ok(AutomatedCashDisburse),
2674 "automated_fuel_dispensers" => Ok(AutomatedFuelDispensers),
2675 "automobile_associations" => Ok(AutomobileAssociations),
2676 "automotive_parts_and_accessories_stores" => Ok(AutomotivePartsAndAccessoriesStores),
2677 "automotive_tire_stores" => Ok(AutomotiveTireStores),
2678 "bail_and_bond_payments" => Ok(BailAndBondPayments),
2679 "bakeries" => Ok(Bakeries),
2680 "bands_orchestras" => Ok(BandsOrchestras),
2681 "barber_and_beauty_shops" => Ok(BarberAndBeautyShops),
2682 "betting_casino_gambling" => Ok(BettingCasinoGambling),
2683 "bicycle_shops" => Ok(BicycleShops),
2684 "billiard_pool_establishments" => Ok(BilliardPoolEstablishments),
2685 "boat_dealers" => Ok(BoatDealers),
2686 "boat_rentals_and_leases" => Ok(BoatRentalsAndLeases),
2687 "book_stores" => Ok(BookStores),
2688 "books_periodicals_and_newspapers" => Ok(BooksPeriodicalsAndNewspapers),
2689 "bowling_alleys" => Ok(BowlingAlleys),
2690 "bus_lines" => Ok(BusLines),
2691 "business_secretarial_schools" => Ok(BusinessSecretarialSchools),
2692 "buying_shopping_services" => Ok(BuyingShoppingServices),
2693 "cable_satellite_and_other_pay_television_and_radio" => {
2694 Ok(CableSatelliteAndOtherPayTelevisionAndRadio)
2695 }
2696 "camera_and_photographic_supply_stores" => Ok(CameraAndPhotographicSupplyStores),
2697 "candy_nut_and_confectionery_stores" => Ok(CandyNutAndConfectioneryStores),
2698 "car_and_truck_dealers_new_used" => Ok(CarAndTruckDealersNewUsed),
2699 "car_and_truck_dealers_used_only" => Ok(CarAndTruckDealersUsedOnly),
2700 "car_rental_agencies" => Ok(CarRentalAgencies),
2701 "car_washes" => Ok(CarWashes),
2702 "carpentry_services" => Ok(CarpentryServices),
2703 "carpet_upholstery_cleaning" => Ok(CarpetUpholsteryCleaning),
2704 "caterers" => Ok(Caterers),
2705 "charitable_and_social_service_organizations_fundraising" => {
2706 Ok(CharitableAndSocialServiceOrganizationsFundraising)
2707 }
2708 "chemicals_and_allied_products" => Ok(ChemicalsAndAlliedProducts),
2709 "child_care_services" => Ok(ChildCareServices),
2710 "childrens_and_infants_wear_stores" => Ok(ChildrensAndInfantsWearStores),
2711 "chiropodists_podiatrists" => Ok(ChiropodistsPodiatrists),
2712 "chiropractors" => Ok(Chiropractors),
2713 "cigar_stores_and_stands" => Ok(CigarStoresAndStands),
2714 "civic_social_fraternal_associations" => Ok(CivicSocialFraternalAssociations),
2715 "cleaning_and_maintenance" => Ok(CleaningAndMaintenance),
2716 "clothing_rental" => Ok(ClothingRental),
2717 "colleges_universities" => Ok(CollegesUniversities),
2718 "commercial_equipment" => Ok(CommercialEquipment),
2719 "commercial_footwear" => Ok(CommercialFootwear),
2720 "commercial_photography_art_and_graphics" => Ok(CommercialPhotographyArtAndGraphics),
2721 "commuter_transport_and_ferries" => Ok(CommuterTransportAndFerries),
2722 "computer_network_services" => Ok(ComputerNetworkServices),
2723 "computer_programming" => Ok(ComputerProgramming),
2724 "computer_repair" => Ok(ComputerRepair),
2725 "computer_software_stores" => Ok(ComputerSoftwareStores),
2726 "computers_peripherals_and_software" => Ok(ComputersPeripheralsAndSoftware),
2727 "concrete_work_services" => Ok(ConcreteWorkServices),
2728 "construction_materials" => Ok(ConstructionMaterials),
2729 "consulting_public_relations" => Ok(ConsultingPublicRelations),
2730 "correspondence_schools" => Ok(CorrespondenceSchools),
2731 "cosmetic_stores" => Ok(CosmeticStores),
2732 "counseling_services" => Ok(CounselingServices),
2733 "country_clubs" => Ok(CountryClubs),
2734 "courier_services" => Ok(CourierServices),
2735 "court_costs" => Ok(CourtCosts),
2736 "credit_reporting_agencies" => Ok(CreditReportingAgencies),
2737 "cruise_lines" => Ok(CruiseLines),
2738 "dairy_products_stores" => Ok(DairyProductsStores),
2739 "dance_hall_studios_schools" => Ok(DanceHallStudiosSchools),
2740 "dating_escort_services" => Ok(DatingEscortServices),
2741 "dentists_orthodontists" => Ok(DentistsOrthodontists),
2742 "department_stores" => Ok(DepartmentStores),
2743 "detective_agencies" => Ok(DetectiveAgencies),
2744 "digital_goods_applications" => Ok(DigitalGoodsApplications),
2745 "digital_goods_games" => Ok(DigitalGoodsGames),
2746 "digital_goods_large_volume" => Ok(DigitalGoodsLargeVolume),
2747 "digital_goods_media" => Ok(DigitalGoodsMedia),
2748 "direct_marketing_catalog_merchant" => Ok(DirectMarketingCatalogMerchant),
2749 "direct_marketing_combination_catalog_and_retail_merchant" => {
2750 Ok(DirectMarketingCombinationCatalogAndRetailMerchant)
2751 }
2752 "direct_marketing_inbound_telemarketing" => Ok(DirectMarketingInboundTelemarketing),
2753 "direct_marketing_insurance_services" => Ok(DirectMarketingInsuranceServices),
2754 "direct_marketing_other" => Ok(DirectMarketingOther),
2755 "direct_marketing_outbound_telemarketing" => Ok(DirectMarketingOutboundTelemarketing),
2756 "direct_marketing_subscription" => Ok(DirectMarketingSubscription),
2757 "direct_marketing_travel" => Ok(DirectMarketingTravel),
2758 "discount_stores" => Ok(DiscountStores),
2759 "doctors" => Ok(Doctors),
2760 "door_to_door_sales" => Ok(DoorToDoorSales),
2761 "drapery_window_covering_and_upholstery_stores" => {
2762 Ok(DraperyWindowCoveringAndUpholsteryStores)
2763 }
2764 "drinking_places" => Ok(DrinkingPlaces),
2765 "drug_stores_and_pharmacies" => Ok(DrugStoresAndPharmacies),
2766 "drugs_drug_proprietaries_and_druggist_sundries" => {
2767 Ok(DrugsDrugProprietariesAndDruggistSundries)
2768 }
2769 "dry_cleaners" => Ok(DryCleaners),
2770 "durable_goods" => Ok(DurableGoods),
2771 "duty_free_stores" => Ok(DutyFreeStores),
2772 "eating_places_restaurants" => Ok(EatingPlacesRestaurants),
2773 "educational_services" => Ok(EducationalServices),
2774 "electric_razor_stores" => Ok(ElectricRazorStores),
2775 "electric_vehicle_charging" => Ok(ElectricVehicleCharging),
2776 "electrical_parts_and_equipment" => Ok(ElectricalPartsAndEquipment),
2777 "electrical_services" => Ok(ElectricalServices),
2778 "electronics_repair_shops" => Ok(ElectronicsRepairShops),
2779 "electronics_stores" => Ok(ElectronicsStores),
2780 "elementary_secondary_schools" => Ok(ElementarySecondarySchools),
2781 "emergency_services_gcas_visa_use_only" => Ok(EmergencyServicesGcasVisaUseOnly),
2782 "employment_temp_agencies" => Ok(EmploymentTempAgencies),
2783 "equipment_rental" => Ok(EquipmentRental),
2784 "exterminating_services" => Ok(ExterminatingServices),
2785 "family_clothing_stores" => Ok(FamilyClothingStores),
2786 "fast_food_restaurants" => Ok(FastFoodRestaurants),
2787 "financial_institutions" => Ok(FinancialInstitutions),
2788 "fines_government_administrative_entities" => Ok(FinesGovernmentAdministrativeEntities),
2789 "fireplace_fireplace_screens_and_accessories_stores" => {
2790 Ok(FireplaceFireplaceScreensAndAccessoriesStores)
2791 }
2792 "floor_covering_stores" => Ok(FloorCoveringStores),
2793 "florists" => Ok(Florists),
2794 "florists_supplies_nursery_stock_and_flowers" => {
2795 Ok(FloristsSuppliesNurseryStockAndFlowers)
2796 }
2797 "freezer_and_locker_meat_provisioners" => Ok(FreezerAndLockerMeatProvisioners),
2798 "fuel_dealers_non_automotive" => Ok(FuelDealersNonAutomotive),
2799 "funeral_services_crematories" => Ok(FuneralServicesCrematories),
2800 "furniture_home_furnishings_and_equipment_stores_except_appliances" => {
2801 Ok(FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances)
2802 }
2803 "furniture_repair_refinishing" => Ok(FurnitureRepairRefinishing),
2804 "furriers_and_fur_shops" => Ok(FurriersAndFurShops),
2805 "general_services" => Ok(GeneralServices),
2806 "gift_card_novelty_and_souvenir_shops" => Ok(GiftCardNoveltyAndSouvenirShops),
2807 "glass_paint_and_wallpaper_stores" => Ok(GlassPaintAndWallpaperStores),
2808 "glassware_crystal_stores" => Ok(GlasswareCrystalStores),
2809 "golf_courses_public" => Ok(GolfCoursesPublic),
2810 "government_licensed_horse_dog_racing_us_region_only" => {
2811 Ok(GovernmentLicensedHorseDogRacingUsRegionOnly)
2812 }
2813 "government_licensed_online_casions_online_gambling_us_region_only" => {
2814 Ok(GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly)
2815 }
2816 "government_owned_lotteries_non_us_region" => Ok(GovernmentOwnedLotteriesNonUsRegion),
2817 "government_owned_lotteries_us_region_only" => Ok(GovernmentOwnedLotteriesUsRegionOnly),
2818 "government_services" => Ok(GovernmentServices),
2819 "grocery_stores_supermarkets" => Ok(GroceryStoresSupermarkets),
2820 "hardware_equipment_and_supplies" => Ok(HardwareEquipmentAndSupplies),
2821 "hardware_stores" => Ok(HardwareStores),
2822 "health_and_beauty_spas" => Ok(HealthAndBeautySpas),
2823 "hearing_aids_sales_and_supplies" => Ok(HearingAidsSalesAndSupplies),
2824 "heating_plumbing_a_c" => Ok(HeatingPlumbingAC),
2825 "hobby_toy_and_game_shops" => Ok(HobbyToyAndGameShops),
2826 "home_supply_warehouse_stores" => Ok(HomeSupplyWarehouseStores),
2827 "hospitals" => Ok(Hospitals),
2828 "hotels_motels_and_resorts" => Ok(HotelsMotelsAndResorts),
2829 "household_appliance_stores" => Ok(HouseholdApplianceStores),
2830 "industrial_supplies" => Ok(IndustrialSupplies),
2831 "information_retrieval_services" => Ok(InformationRetrievalServices),
2832 "insurance_default" => Ok(InsuranceDefault),
2833 "insurance_underwriting_premiums" => Ok(InsuranceUnderwritingPremiums),
2834 "intra_company_purchases" => Ok(IntraCompanyPurchases),
2835 "jewelry_stores_watches_clocks_and_silverware_stores" => {
2836 Ok(JewelryStoresWatchesClocksAndSilverwareStores)
2837 }
2838 "landscaping_services" => Ok(LandscapingServices),
2839 "laundries" => Ok(Laundries),
2840 "laundry_cleaning_services" => Ok(LaundryCleaningServices),
2841 "legal_services_attorneys" => Ok(LegalServicesAttorneys),
2842 "luggage_and_leather_goods_stores" => Ok(LuggageAndLeatherGoodsStores),
2843 "lumber_building_materials_stores" => Ok(LumberBuildingMaterialsStores),
2844 "manual_cash_disburse" => Ok(ManualCashDisburse),
2845 "marinas_service_and_supplies" => Ok(MarinasServiceAndSupplies),
2846 "marketplaces" => Ok(Marketplaces),
2847 "masonry_stonework_and_plaster" => Ok(MasonryStoneworkAndPlaster),
2848 "massage_parlors" => Ok(MassageParlors),
2849 "medical_and_dental_labs" => Ok(MedicalAndDentalLabs),
2850 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" => {
2851 Ok(MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies)
2852 }
2853 "medical_services" => Ok(MedicalServices),
2854 "membership_organizations" => Ok(MembershipOrganizations),
2855 "mens_and_boys_clothing_and_accessories_stores" => {
2856 Ok(MensAndBoysClothingAndAccessoriesStores)
2857 }
2858 "mens_womens_clothing_stores" => Ok(MensWomensClothingStores),
2859 "metal_service_centers" => Ok(MetalServiceCenters),
2860 "miscellaneous" => Ok(Miscellaneous),
2861 "miscellaneous_apparel_and_accessory_shops" => {
2862 Ok(MiscellaneousApparelAndAccessoryShops)
2863 }
2864 "miscellaneous_auto_dealers" => Ok(MiscellaneousAutoDealers),
2865 "miscellaneous_business_services" => Ok(MiscellaneousBusinessServices),
2866 "miscellaneous_food_stores" => Ok(MiscellaneousFoodStores),
2867 "miscellaneous_general_merchandise" => Ok(MiscellaneousGeneralMerchandise),
2868 "miscellaneous_general_services" => Ok(MiscellaneousGeneralServices),
2869 "miscellaneous_home_furnishing_specialty_stores" => {
2870 Ok(MiscellaneousHomeFurnishingSpecialtyStores)
2871 }
2872 "miscellaneous_publishing_and_printing" => Ok(MiscellaneousPublishingAndPrinting),
2873 "miscellaneous_recreation_services" => Ok(MiscellaneousRecreationServices),
2874 "miscellaneous_repair_shops" => Ok(MiscellaneousRepairShops),
2875 "miscellaneous_specialty_retail" => Ok(MiscellaneousSpecialtyRetail),
2876 "mobile_home_dealers" => Ok(MobileHomeDealers),
2877 "motion_picture_theaters" => Ok(MotionPictureTheaters),
2878 "motor_freight_carriers_and_trucking" => Ok(MotorFreightCarriersAndTrucking),
2879 "motor_homes_dealers" => Ok(MotorHomesDealers),
2880 "motor_vehicle_supplies_and_new_parts" => Ok(MotorVehicleSuppliesAndNewParts),
2881 "motorcycle_shops_and_dealers" => Ok(MotorcycleShopsAndDealers),
2882 "motorcycle_shops_dealers" => Ok(MotorcycleShopsDealers),
2883 "music_stores_musical_instruments_pianos_and_sheet_music" => {
2884 Ok(MusicStoresMusicalInstrumentsPianosAndSheetMusic)
2885 }
2886 "news_dealers_and_newsstands" => Ok(NewsDealersAndNewsstands),
2887 "non_fi_money_orders" => Ok(NonFiMoneyOrders),
2888 "non_fi_stored_value_card_purchase_load" => Ok(NonFiStoredValueCardPurchaseLoad),
2889 "nondurable_goods" => Ok(NondurableGoods),
2890 "nurseries_lawn_and_garden_supply_stores" => Ok(NurseriesLawnAndGardenSupplyStores),
2891 "nursing_personal_care" => Ok(NursingPersonalCare),
2892 "office_and_commercial_furniture" => Ok(OfficeAndCommercialFurniture),
2893 "opticians_eyeglasses" => Ok(OpticiansEyeglasses),
2894 "optometrists_ophthalmologist" => Ok(OptometristsOphthalmologist),
2895 "orthopedic_goods_prosthetic_devices" => Ok(OrthopedicGoodsProstheticDevices),
2896 "osteopaths" => Ok(Osteopaths),
2897 "package_stores_beer_wine_and_liquor" => Ok(PackageStoresBeerWineAndLiquor),
2898 "paints_varnishes_and_supplies" => Ok(PaintsVarnishesAndSupplies),
2899 "parking_lots_garages" => Ok(ParkingLotsGarages),
2900 "passenger_railways" => Ok(PassengerRailways),
2901 "pawn_shops" => Ok(PawnShops),
2902 "pet_shops_pet_food_and_supplies" => Ok(PetShopsPetFoodAndSupplies),
2903 "petroleum_and_petroleum_products" => Ok(PetroleumAndPetroleumProducts),
2904 "photo_developing" => Ok(PhotoDeveloping),
2905 "photographic_photocopy_microfilm_equipment_and_supplies" => {
2906 Ok(PhotographicPhotocopyMicrofilmEquipmentAndSupplies)
2907 }
2908 "photographic_studios" => Ok(PhotographicStudios),
2909 "picture_video_production" => Ok(PictureVideoProduction),
2910 "piece_goods_notions_and_other_dry_goods" => Ok(PieceGoodsNotionsAndOtherDryGoods),
2911 "plumbing_heating_equipment_and_supplies" => Ok(PlumbingHeatingEquipmentAndSupplies),
2912 "political_organizations" => Ok(PoliticalOrganizations),
2913 "postal_services_government_only" => Ok(PostalServicesGovernmentOnly),
2914 "precious_stones_and_metals_watches_and_jewelry" => {
2915 Ok(PreciousStonesAndMetalsWatchesAndJewelry)
2916 }
2917 "professional_services" => Ok(ProfessionalServices),
2918 "public_warehousing_and_storage" => Ok(PublicWarehousingAndStorage),
2919 "quick_copy_repro_and_blueprint" => Ok(QuickCopyReproAndBlueprint),
2920 "railroads" => Ok(Railroads),
2921 "real_estate_agents_and_managers_rentals" => Ok(RealEstateAgentsAndManagersRentals),
2922 "record_stores" => Ok(RecordStores),
2923 "recreational_vehicle_rentals" => Ok(RecreationalVehicleRentals),
2924 "religious_goods_stores" => Ok(ReligiousGoodsStores),
2925 "religious_organizations" => Ok(ReligiousOrganizations),
2926 "roofing_siding_sheet_metal" => Ok(RoofingSidingSheetMetal),
2927 "secretarial_support_services" => Ok(SecretarialSupportServices),
2928 "security_brokers_dealers" => Ok(SecurityBrokersDealers),
2929 "service_stations" => Ok(ServiceStations),
2930 "sewing_needlework_fabric_and_piece_goods_stores" => {
2931 Ok(SewingNeedleworkFabricAndPieceGoodsStores)
2932 }
2933 "shoe_repair_hat_cleaning" => Ok(ShoeRepairHatCleaning),
2934 "shoe_stores" => Ok(ShoeStores),
2935 "small_appliance_repair" => Ok(SmallApplianceRepair),
2936 "snowmobile_dealers" => Ok(SnowmobileDealers),
2937 "special_trade_services" => Ok(SpecialTradeServices),
2938 "specialty_cleaning" => Ok(SpecialtyCleaning),
2939 "sporting_goods_stores" => Ok(SportingGoodsStores),
2940 "sporting_recreation_camps" => Ok(SportingRecreationCamps),
2941 "sports_and_riding_apparel_stores" => Ok(SportsAndRidingApparelStores),
2942 "sports_clubs_fields" => Ok(SportsClubsFields),
2943 "stamp_and_coin_stores" => Ok(StampAndCoinStores),
2944 "stationary_office_supplies_printing_and_writing_paper" => {
2945 Ok(StationaryOfficeSuppliesPrintingAndWritingPaper)
2946 }
2947 "stationery_stores_office_and_school_supply_stores" => {
2948 Ok(StationeryStoresOfficeAndSchoolSupplyStores)
2949 }
2950 "swimming_pools_sales" => Ok(SwimmingPoolsSales),
2951 "t_ui_travel_germany" => Ok(TUiTravelGermany),
2952 "tailors_alterations" => Ok(TailorsAlterations),
2953 "tax_payments_government_agencies" => Ok(TaxPaymentsGovernmentAgencies),
2954 "tax_preparation_services" => Ok(TaxPreparationServices),
2955 "taxicabs_limousines" => Ok(TaxicabsLimousines),
2956 "telecommunication_equipment_and_telephone_sales" => {
2957 Ok(TelecommunicationEquipmentAndTelephoneSales)
2958 }
2959 "telecommunication_services" => Ok(TelecommunicationServices),
2960 "telegraph_services" => Ok(TelegraphServices),
2961 "tent_and_awning_shops" => Ok(TentAndAwningShops),
2962 "testing_laboratories" => Ok(TestingLaboratories),
2963 "theatrical_ticket_agencies" => Ok(TheatricalTicketAgencies),
2964 "timeshares" => Ok(Timeshares),
2965 "tire_retreading_and_repair" => Ok(TireRetreadingAndRepair),
2966 "tolls_bridge_fees" => Ok(TollsBridgeFees),
2967 "tourist_attractions_and_exhibits" => Ok(TouristAttractionsAndExhibits),
2968 "towing_services" => Ok(TowingServices),
2969 "trailer_parks_campgrounds" => Ok(TrailerParksCampgrounds),
2970 "transportation_services" => Ok(TransportationServices),
2971 "travel_agencies_tour_operators" => Ok(TravelAgenciesTourOperators),
2972 "truck_stop_iteration" => Ok(TruckStopIteration),
2973 "truck_utility_trailer_rentals" => Ok(TruckUtilityTrailerRentals),
2974 "typesetting_plate_making_and_related_services" => {
2975 Ok(TypesettingPlateMakingAndRelatedServices)
2976 }
2977 "typewriter_stores" => Ok(TypewriterStores),
2978 "u_s_federal_government_agencies_or_departments" => {
2979 Ok(USFederalGovernmentAgenciesOrDepartments)
2980 }
2981 "uniforms_commercial_clothing" => Ok(UniformsCommercialClothing),
2982 "used_merchandise_and_secondhand_stores" => Ok(UsedMerchandiseAndSecondhandStores),
2983 "utilities" => Ok(Utilities),
2984 "variety_stores" => Ok(VarietyStores),
2985 "veterinary_services" => Ok(VeterinaryServices),
2986 "video_amusement_game_supplies" => Ok(VideoAmusementGameSupplies),
2987 "video_game_arcades" => Ok(VideoGameArcades),
2988 "video_tape_rental_stores" => Ok(VideoTapeRentalStores),
2989 "vocational_trade_schools" => Ok(VocationalTradeSchools),
2990 "watch_jewelry_repair" => Ok(WatchJewelryRepair),
2991 "welding_repair" => Ok(WeldingRepair),
2992 "wholesale_clubs" => Ok(WholesaleClubs),
2993 "wig_and_toupee_stores" => Ok(WigAndToupeeStores),
2994 "wires_money_orders" => Ok(WiresMoneyOrders),
2995 "womens_accessory_and_specialty_shops" => Ok(WomensAccessoryAndSpecialtyShops),
2996 "womens_ready_to_wear_stores" => Ok(WomensReadyToWearStores),
2997 "wrecking_and_salvage_yards" => Ok(WreckingAndSalvageYards),
2998 v => {
2999 tracing::warn!(
3000 "Unknown value '{}' for enum '{}'",
3001 v,
3002 "CreateIssuingCardSpendingControlsBlockedCategories"
3003 );
3004 Ok(Unknown(v.to_owned()))
3005 }
3006 }
3007 }
3008}
3009impl std::fmt::Display for CreateIssuingCardSpendingControlsBlockedCategories {
3010 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
3011 f.write_str(self.as_str())
3012 }
3013}
3014
3015#[cfg(not(feature = "redact-generated-debug"))]
3016impl std::fmt::Debug for CreateIssuingCardSpendingControlsBlockedCategories {
3017 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
3018 f.write_str(self.as_str())
3019 }
3020}
3021#[cfg(feature = "redact-generated-debug")]
3022impl std::fmt::Debug for CreateIssuingCardSpendingControlsBlockedCategories {
3023 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
3024 f.debug_struct(stringify!(CreateIssuingCardSpendingControlsBlockedCategories))
3025 .finish_non_exhaustive()
3026 }
3027}
3028impl serde::Serialize for CreateIssuingCardSpendingControlsBlockedCategories {
3029 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
3030 where
3031 S: serde::Serializer,
3032 {
3033 serializer.serialize_str(self.as_str())
3034 }
3035}
3036#[cfg(feature = "deserialize")]
3037impl<'de> serde::Deserialize<'de> for CreateIssuingCardSpendingControlsBlockedCategories {
3038 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
3039 use std::str::FromStr;
3040 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
3041 Ok(Self::from_str(&s).expect("infallible"))
3042 }
3043}
3044#[derive(Clone, Eq, PartialEq)]
3046#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
3047#[derive(serde::Serialize)]
3048pub struct CreateIssuingCardSpendingControlsSpendingLimits {
3049 pub amount: i64,
3051 #[serde(skip_serializing_if = "Option::is_none")]
3054 pub categories: Option<Vec<CreateIssuingCardSpendingControlsSpendingLimitsCategories>>,
3055 pub interval: CreateIssuingCardSpendingControlsSpendingLimitsInterval,
3057}
3058#[cfg(feature = "redact-generated-debug")]
3059impl std::fmt::Debug for CreateIssuingCardSpendingControlsSpendingLimits {
3060 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
3061 f.debug_struct("CreateIssuingCardSpendingControlsSpendingLimits").finish_non_exhaustive()
3062 }
3063}
3064impl CreateIssuingCardSpendingControlsSpendingLimits {
3065 pub fn new(
3066 amount: impl Into<i64>,
3067 interval: impl Into<CreateIssuingCardSpendingControlsSpendingLimitsInterval>,
3068 ) -> Self {
3069 Self { amount: amount.into(), categories: None, interval: interval.into() }
3070 }
3071}
3072#[derive(Clone, Eq, PartialEq)]
3075#[non_exhaustive]
3076pub enum CreateIssuingCardSpendingControlsSpendingLimitsCategories {
3077 AcRefrigerationRepair,
3078 AccountingBookkeepingServices,
3079 AdvertisingServices,
3080 AgriculturalCooperative,
3081 AirlinesAirCarriers,
3082 AirportsFlyingFields,
3083 AmbulanceServices,
3084 AmusementParksCarnivals,
3085 AntiqueReproductions,
3086 AntiqueShops,
3087 Aquariums,
3088 ArchitecturalSurveyingServices,
3089 ArtDealersAndGalleries,
3090 ArtistsSupplyAndCraftShops,
3091 AutoAndHomeSupplyStores,
3092 AutoBodyRepairShops,
3093 AutoPaintShops,
3094 AutoServiceShops,
3095 AutomatedCashDisburse,
3096 AutomatedFuelDispensers,
3097 AutomobileAssociations,
3098 AutomotivePartsAndAccessoriesStores,
3099 AutomotiveTireStores,
3100 BailAndBondPayments,
3101 Bakeries,
3102 BandsOrchestras,
3103 BarberAndBeautyShops,
3104 BettingCasinoGambling,
3105 BicycleShops,
3106 BilliardPoolEstablishments,
3107 BoatDealers,
3108 BoatRentalsAndLeases,
3109 BookStores,
3110 BooksPeriodicalsAndNewspapers,
3111 BowlingAlleys,
3112 BusLines,
3113 BusinessSecretarialSchools,
3114 BuyingShoppingServices,
3115 CableSatelliteAndOtherPayTelevisionAndRadio,
3116 CameraAndPhotographicSupplyStores,
3117 CandyNutAndConfectioneryStores,
3118 CarAndTruckDealersNewUsed,
3119 CarAndTruckDealersUsedOnly,
3120 CarRentalAgencies,
3121 CarWashes,
3122 CarpentryServices,
3123 CarpetUpholsteryCleaning,
3124 Caterers,
3125 CharitableAndSocialServiceOrganizationsFundraising,
3126 ChemicalsAndAlliedProducts,
3127 ChildCareServices,
3128 ChildrensAndInfantsWearStores,
3129 ChiropodistsPodiatrists,
3130 Chiropractors,
3131 CigarStoresAndStands,
3132 CivicSocialFraternalAssociations,
3133 CleaningAndMaintenance,
3134 ClothingRental,
3135 CollegesUniversities,
3136 CommercialEquipment,
3137 CommercialFootwear,
3138 CommercialPhotographyArtAndGraphics,
3139 CommuterTransportAndFerries,
3140 ComputerNetworkServices,
3141 ComputerProgramming,
3142 ComputerRepair,
3143 ComputerSoftwareStores,
3144 ComputersPeripheralsAndSoftware,
3145 ConcreteWorkServices,
3146 ConstructionMaterials,
3147 ConsultingPublicRelations,
3148 CorrespondenceSchools,
3149 CosmeticStores,
3150 CounselingServices,
3151 CountryClubs,
3152 CourierServices,
3153 CourtCosts,
3154 CreditReportingAgencies,
3155 CruiseLines,
3156 DairyProductsStores,
3157 DanceHallStudiosSchools,
3158 DatingEscortServices,
3159 DentistsOrthodontists,
3160 DepartmentStores,
3161 DetectiveAgencies,
3162 DigitalGoodsApplications,
3163 DigitalGoodsGames,
3164 DigitalGoodsLargeVolume,
3165 DigitalGoodsMedia,
3166 DirectMarketingCatalogMerchant,
3167 DirectMarketingCombinationCatalogAndRetailMerchant,
3168 DirectMarketingInboundTelemarketing,
3169 DirectMarketingInsuranceServices,
3170 DirectMarketingOther,
3171 DirectMarketingOutboundTelemarketing,
3172 DirectMarketingSubscription,
3173 DirectMarketingTravel,
3174 DiscountStores,
3175 Doctors,
3176 DoorToDoorSales,
3177 DraperyWindowCoveringAndUpholsteryStores,
3178 DrinkingPlaces,
3179 DrugStoresAndPharmacies,
3180 DrugsDrugProprietariesAndDruggistSundries,
3181 DryCleaners,
3182 DurableGoods,
3183 DutyFreeStores,
3184 EatingPlacesRestaurants,
3185 EducationalServices,
3186 ElectricRazorStores,
3187 ElectricVehicleCharging,
3188 ElectricalPartsAndEquipment,
3189 ElectricalServices,
3190 ElectronicsRepairShops,
3191 ElectronicsStores,
3192 ElementarySecondarySchools,
3193 EmergencyServicesGcasVisaUseOnly,
3194 EmploymentTempAgencies,
3195 EquipmentRental,
3196 ExterminatingServices,
3197 FamilyClothingStores,
3198 FastFoodRestaurants,
3199 FinancialInstitutions,
3200 FinesGovernmentAdministrativeEntities,
3201 FireplaceFireplaceScreensAndAccessoriesStores,
3202 FloorCoveringStores,
3203 Florists,
3204 FloristsSuppliesNurseryStockAndFlowers,
3205 FreezerAndLockerMeatProvisioners,
3206 FuelDealersNonAutomotive,
3207 FuneralServicesCrematories,
3208 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances,
3209 FurnitureRepairRefinishing,
3210 FurriersAndFurShops,
3211 GeneralServices,
3212 GiftCardNoveltyAndSouvenirShops,
3213 GlassPaintAndWallpaperStores,
3214 GlasswareCrystalStores,
3215 GolfCoursesPublic,
3216 GovernmentLicensedHorseDogRacingUsRegionOnly,
3217 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly,
3218 GovernmentOwnedLotteriesNonUsRegion,
3219 GovernmentOwnedLotteriesUsRegionOnly,
3220 GovernmentServices,
3221 GroceryStoresSupermarkets,
3222 HardwareEquipmentAndSupplies,
3223 HardwareStores,
3224 HealthAndBeautySpas,
3225 HearingAidsSalesAndSupplies,
3226 HeatingPlumbingAC,
3227 HobbyToyAndGameShops,
3228 HomeSupplyWarehouseStores,
3229 Hospitals,
3230 HotelsMotelsAndResorts,
3231 HouseholdApplianceStores,
3232 IndustrialSupplies,
3233 InformationRetrievalServices,
3234 InsuranceDefault,
3235 InsuranceUnderwritingPremiums,
3236 IntraCompanyPurchases,
3237 JewelryStoresWatchesClocksAndSilverwareStores,
3238 LandscapingServices,
3239 Laundries,
3240 LaundryCleaningServices,
3241 LegalServicesAttorneys,
3242 LuggageAndLeatherGoodsStores,
3243 LumberBuildingMaterialsStores,
3244 ManualCashDisburse,
3245 MarinasServiceAndSupplies,
3246 Marketplaces,
3247 MasonryStoneworkAndPlaster,
3248 MassageParlors,
3249 MedicalAndDentalLabs,
3250 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies,
3251 MedicalServices,
3252 MembershipOrganizations,
3253 MensAndBoysClothingAndAccessoriesStores,
3254 MensWomensClothingStores,
3255 MetalServiceCenters,
3256 Miscellaneous,
3257 MiscellaneousApparelAndAccessoryShops,
3258 MiscellaneousAutoDealers,
3259 MiscellaneousBusinessServices,
3260 MiscellaneousFoodStores,
3261 MiscellaneousGeneralMerchandise,
3262 MiscellaneousGeneralServices,
3263 MiscellaneousHomeFurnishingSpecialtyStores,
3264 MiscellaneousPublishingAndPrinting,
3265 MiscellaneousRecreationServices,
3266 MiscellaneousRepairShops,
3267 MiscellaneousSpecialtyRetail,
3268 MobileHomeDealers,
3269 MotionPictureTheaters,
3270 MotorFreightCarriersAndTrucking,
3271 MotorHomesDealers,
3272 MotorVehicleSuppliesAndNewParts,
3273 MotorcycleShopsAndDealers,
3274 MotorcycleShopsDealers,
3275 MusicStoresMusicalInstrumentsPianosAndSheetMusic,
3276 NewsDealersAndNewsstands,
3277 NonFiMoneyOrders,
3278 NonFiStoredValueCardPurchaseLoad,
3279 NondurableGoods,
3280 NurseriesLawnAndGardenSupplyStores,
3281 NursingPersonalCare,
3282 OfficeAndCommercialFurniture,
3283 OpticiansEyeglasses,
3284 OptometristsOphthalmologist,
3285 OrthopedicGoodsProstheticDevices,
3286 Osteopaths,
3287 PackageStoresBeerWineAndLiquor,
3288 PaintsVarnishesAndSupplies,
3289 ParkingLotsGarages,
3290 PassengerRailways,
3291 PawnShops,
3292 PetShopsPetFoodAndSupplies,
3293 PetroleumAndPetroleumProducts,
3294 PhotoDeveloping,
3295 PhotographicPhotocopyMicrofilmEquipmentAndSupplies,
3296 PhotographicStudios,
3297 PictureVideoProduction,
3298 PieceGoodsNotionsAndOtherDryGoods,
3299 PlumbingHeatingEquipmentAndSupplies,
3300 PoliticalOrganizations,
3301 PostalServicesGovernmentOnly,
3302 PreciousStonesAndMetalsWatchesAndJewelry,
3303 ProfessionalServices,
3304 PublicWarehousingAndStorage,
3305 QuickCopyReproAndBlueprint,
3306 Railroads,
3307 RealEstateAgentsAndManagersRentals,
3308 RecordStores,
3309 RecreationalVehicleRentals,
3310 ReligiousGoodsStores,
3311 ReligiousOrganizations,
3312 RoofingSidingSheetMetal,
3313 SecretarialSupportServices,
3314 SecurityBrokersDealers,
3315 ServiceStations,
3316 SewingNeedleworkFabricAndPieceGoodsStores,
3317 ShoeRepairHatCleaning,
3318 ShoeStores,
3319 SmallApplianceRepair,
3320 SnowmobileDealers,
3321 SpecialTradeServices,
3322 SpecialtyCleaning,
3323 SportingGoodsStores,
3324 SportingRecreationCamps,
3325 SportsAndRidingApparelStores,
3326 SportsClubsFields,
3327 StampAndCoinStores,
3328 StationaryOfficeSuppliesPrintingAndWritingPaper,
3329 StationeryStoresOfficeAndSchoolSupplyStores,
3330 SwimmingPoolsSales,
3331 TUiTravelGermany,
3332 TailorsAlterations,
3333 TaxPaymentsGovernmentAgencies,
3334 TaxPreparationServices,
3335 TaxicabsLimousines,
3336 TelecommunicationEquipmentAndTelephoneSales,
3337 TelecommunicationServices,
3338 TelegraphServices,
3339 TentAndAwningShops,
3340 TestingLaboratories,
3341 TheatricalTicketAgencies,
3342 Timeshares,
3343 TireRetreadingAndRepair,
3344 TollsBridgeFees,
3345 TouristAttractionsAndExhibits,
3346 TowingServices,
3347 TrailerParksCampgrounds,
3348 TransportationServices,
3349 TravelAgenciesTourOperators,
3350 TruckStopIteration,
3351 TruckUtilityTrailerRentals,
3352 TypesettingPlateMakingAndRelatedServices,
3353 TypewriterStores,
3354 USFederalGovernmentAgenciesOrDepartments,
3355 UniformsCommercialClothing,
3356 UsedMerchandiseAndSecondhandStores,
3357 Utilities,
3358 VarietyStores,
3359 VeterinaryServices,
3360 VideoAmusementGameSupplies,
3361 VideoGameArcades,
3362 VideoTapeRentalStores,
3363 VocationalTradeSchools,
3364 WatchJewelryRepair,
3365 WeldingRepair,
3366 WholesaleClubs,
3367 WigAndToupeeStores,
3368 WiresMoneyOrders,
3369 WomensAccessoryAndSpecialtyShops,
3370 WomensReadyToWearStores,
3371 WreckingAndSalvageYards,
3372 Unknown(String),
3374}
3375impl CreateIssuingCardSpendingControlsSpendingLimitsCategories {
3376 pub fn as_str(&self) -> &str {
3377 use CreateIssuingCardSpendingControlsSpendingLimitsCategories::*;
3378 match self {
3379 AcRefrigerationRepair => "ac_refrigeration_repair",
3380 AccountingBookkeepingServices => "accounting_bookkeeping_services",
3381 AdvertisingServices => "advertising_services",
3382 AgriculturalCooperative => "agricultural_cooperative",
3383 AirlinesAirCarriers => "airlines_air_carriers",
3384 AirportsFlyingFields => "airports_flying_fields",
3385 AmbulanceServices => "ambulance_services",
3386 AmusementParksCarnivals => "amusement_parks_carnivals",
3387 AntiqueReproductions => "antique_reproductions",
3388 AntiqueShops => "antique_shops",
3389 Aquariums => "aquariums",
3390 ArchitecturalSurveyingServices => "architectural_surveying_services",
3391 ArtDealersAndGalleries => "art_dealers_and_galleries",
3392 ArtistsSupplyAndCraftShops => "artists_supply_and_craft_shops",
3393 AutoAndHomeSupplyStores => "auto_and_home_supply_stores",
3394 AutoBodyRepairShops => "auto_body_repair_shops",
3395 AutoPaintShops => "auto_paint_shops",
3396 AutoServiceShops => "auto_service_shops",
3397 AutomatedCashDisburse => "automated_cash_disburse",
3398 AutomatedFuelDispensers => "automated_fuel_dispensers",
3399 AutomobileAssociations => "automobile_associations",
3400 AutomotivePartsAndAccessoriesStores => "automotive_parts_and_accessories_stores",
3401 AutomotiveTireStores => "automotive_tire_stores",
3402 BailAndBondPayments => "bail_and_bond_payments",
3403 Bakeries => "bakeries",
3404 BandsOrchestras => "bands_orchestras",
3405 BarberAndBeautyShops => "barber_and_beauty_shops",
3406 BettingCasinoGambling => "betting_casino_gambling",
3407 BicycleShops => "bicycle_shops",
3408 BilliardPoolEstablishments => "billiard_pool_establishments",
3409 BoatDealers => "boat_dealers",
3410 BoatRentalsAndLeases => "boat_rentals_and_leases",
3411 BookStores => "book_stores",
3412 BooksPeriodicalsAndNewspapers => "books_periodicals_and_newspapers",
3413 BowlingAlleys => "bowling_alleys",
3414 BusLines => "bus_lines",
3415 BusinessSecretarialSchools => "business_secretarial_schools",
3416 BuyingShoppingServices => "buying_shopping_services",
3417 CableSatelliteAndOtherPayTelevisionAndRadio => {
3418 "cable_satellite_and_other_pay_television_and_radio"
3419 }
3420 CameraAndPhotographicSupplyStores => "camera_and_photographic_supply_stores",
3421 CandyNutAndConfectioneryStores => "candy_nut_and_confectionery_stores",
3422 CarAndTruckDealersNewUsed => "car_and_truck_dealers_new_used",
3423 CarAndTruckDealersUsedOnly => "car_and_truck_dealers_used_only",
3424 CarRentalAgencies => "car_rental_agencies",
3425 CarWashes => "car_washes",
3426 CarpentryServices => "carpentry_services",
3427 CarpetUpholsteryCleaning => "carpet_upholstery_cleaning",
3428 Caterers => "caterers",
3429 CharitableAndSocialServiceOrganizationsFundraising => {
3430 "charitable_and_social_service_organizations_fundraising"
3431 }
3432 ChemicalsAndAlliedProducts => "chemicals_and_allied_products",
3433 ChildCareServices => "child_care_services",
3434 ChildrensAndInfantsWearStores => "childrens_and_infants_wear_stores",
3435 ChiropodistsPodiatrists => "chiropodists_podiatrists",
3436 Chiropractors => "chiropractors",
3437 CigarStoresAndStands => "cigar_stores_and_stands",
3438 CivicSocialFraternalAssociations => "civic_social_fraternal_associations",
3439 CleaningAndMaintenance => "cleaning_and_maintenance",
3440 ClothingRental => "clothing_rental",
3441 CollegesUniversities => "colleges_universities",
3442 CommercialEquipment => "commercial_equipment",
3443 CommercialFootwear => "commercial_footwear",
3444 CommercialPhotographyArtAndGraphics => "commercial_photography_art_and_graphics",
3445 CommuterTransportAndFerries => "commuter_transport_and_ferries",
3446 ComputerNetworkServices => "computer_network_services",
3447 ComputerProgramming => "computer_programming",
3448 ComputerRepair => "computer_repair",
3449 ComputerSoftwareStores => "computer_software_stores",
3450 ComputersPeripheralsAndSoftware => "computers_peripherals_and_software",
3451 ConcreteWorkServices => "concrete_work_services",
3452 ConstructionMaterials => "construction_materials",
3453 ConsultingPublicRelations => "consulting_public_relations",
3454 CorrespondenceSchools => "correspondence_schools",
3455 CosmeticStores => "cosmetic_stores",
3456 CounselingServices => "counseling_services",
3457 CountryClubs => "country_clubs",
3458 CourierServices => "courier_services",
3459 CourtCosts => "court_costs",
3460 CreditReportingAgencies => "credit_reporting_agencies",
3461 CruiseLines => "cruise_lines",
3462 DairyProductsStores => "dairy_products_stores",
3463 DanceHallStudiosSchools => "dance_hall_studios_schools",
3464 DatingEscortServices => "dating_escort_services",
3465 DentistsOrthodontists => "dentists_orthodontists",
3466 DepartmentStores => "department_stores",
3467 DetectiveAgencies => "detective_agencies",
3468 DigitalGoodsApplications => "digital_goods_applications",
3469 DigitalGoodsGames => "digital_goods_games",
3470 DigitalGoodsLargeVolume => "digital_goods_large_volume",
3471 DigitalGoodsMedia => "digital_goods_media",
3472 DirectMarketingCatalogMerchant => "direct_marketing_catalog_merchant",
3473 DirectMarketingCombinationCatalogAndRetailMerchant => {
3474 "direct_marketing_combination_catalog_and_retail_merchant"
3475 }
3476 DirectMarketingInboundTelemarketing => "direct_marketing_inbound_telemarketing",
3477 DirectMarketingInsuranceServices => "direct_marketing_insurance_services",
3478 DirectMarketingOther => "direct_marketing_other",
3479 DirectMarketingOutboundTelemarketing => "direct_marketing_outbound_telemarketing",
3480 DirectMarketingSubscription => "direct_marketing_subscription",
3481 DirectMarketingTravel => "direct_marketing_travel",
3482 DiscountStores => "discount_stores",
3483 Doctors => "doctors",
3484 DoorToDoorSales => "door_to_door_sales",
3485 DraperyWindowCoveringAndUpholsteryStores => {
3486 "drapery_window_covering_and_upholstery_stores"
3487 }
3488 DrinkingPlaces => "drinking_places",
3489 DrugStoresAndPharmacies => "drug_stores_and_pharmacies",
3490 DrugsDrugProprietariesAndDruggistSundries => {
3491 "drugs_drug_proprietaries_and_druggist_sundries"
3492 }
3493 DryCleaners => "dry_cleaners",
3494 DurableGoods => "durable_goods",
3495 DutyFreeStores => "duty_free_stores",
3496 EatingPlacesRestaurants => "eating_places_restaurants",
3497 EducationalServices => "educational_services",
3498 ElectricRazorStores => "electric_razor_stores",
3499 ElectricVehicleCharging => "electric_vehicle_charging",
3500 ElectricalPartsAndEquipment => "electrical_parts_and_equipment",
3501 ElectricalServices => "electrical_services",
3502 ElectronicsRepairShops => "electronics_repair_shops",
3503 ElectronicsStores => "electronics_stores",
3504 ElementarySecondarySchools => "elementary_secondary_schools",
3505 EmergencyServicesGcasVisaUseOnly => "emergency_services_gcas_visa_use_only",
3506 EmploymentTempAgencies => "employment_temp_agencies",
3507 EquipmentRental => "equipment_rental",
3508 ExterminatingServices => "exterminating_services",
3509 FamilyClothingStores => "family_clothing_stores",
3510 FastFoodRestaurants => "fast_food_restaurants",
3511 FinancialInstitutions => "financial_institutions",
3512 FinesGovernmentAdministrativeEntities => "fines_government_administrative_entities",
3513 FireplaceFireplaceScreensAndAccessoriesStores => {
3514 "fireplace_fireplace_screens_and_accessories_stores"
3515 }
3516 FloorCoveringStores => "floor_covering_stores",
3517 Florists => "florists",
3518 FloristsSuppliesNurseryStockAndFlowers => "florists_supplies_nursery_stock_and_flowers",
3519 FreezerAndLockerMeatProvisioners => "freezer_and_locker_meat_provisioners",
3520 FuelDealersNonAutomotive => "fuel_dealers_non_automotive",
3521 FuneralServicesCrematories => "funeral_services_crematories",
3522 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances => {
3523 "furniture_home_furnishings_and_equipment_stores_except_appliances"
3524 }
3525 FurnitureRepairRefinishing => "furniture_repair_refinishing",
3526 FurriersAndFurShops => "furriers_and_fur_shops",
3527 GeneralServices => "general_services",
3528 GiftCardNoveltyAndSouvenirShops => "gift_card_novelty_and_souvenir_shops",
3529 GlassPaintAndWallpaperStores => "glass_paint_and_wallpaper_stores",
3530 GlasswareCrystalStores => "glassware_crystal_stores",
3531 GolfCoursesPublic => "golf_courses_public",
3532 GovernmentLicensedHorseDogRacingUsRegionOnly => {
3533 "government_licensed_horse_dog_racing_us_region_only"
3534 }
3535 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly => {
3536 "government_licensed_online_casions_online_gambling_us_region_only"
3537 }
3538 GovernmentOwnedLotteriesNonUsRegion => "government_owned_lotteries_non_us_region",
3539 GovernmentOwnedLotteriesUsRegionOnly => "government_owned_lotteries_us_region_only",
3540 GovernmentServices => "government_services",
3541 GroceryStoresSupermarkets => "grocery_stores_supermarkets",
3542 HardwareEquipmentAndSupplies => "hardware_equipment_and_supplies",
3543 HardwareStores => "hardware_stores",
3544 HealthAndBeautySpas => "health_and_beauty_spas",
3545 HearingAidsSalesAndSupplies => "hearing_aids_sales_and_supplies",
3546 HeatingPlumbingAC => "heating_plumbing_a_c",
3547 HobbyToyAndGameShops => "hobby_toy_and_game_shops",
3548 HomeSupplyWarehouseStores => "home_supply_warehouse_stores",
3549 Hospitals => "hospitals",
3550 HotelsMotelsAndResorts => "hotels_motels_and_resorts",
3551 HouseholdApplianceStores => "household_appliance_stores",
3552 IndustrialSupplies => "industrial_supplies",
3553 InformationRetrievalServices => "information_retrieval_services",
3554 InsuranceDefault => "insurance_default",
3555 InsuranceUnderwritingPremiums => "insurance_underwriting_premiums",
3556 IntraCompanyPurchases => "intra_company_purchases",
3557 JewelryStoresWatchesClocksAndSilverwareStores => {
3558 "jewelry_stores_watches_clocks_and_silverware_stores"
3559 }
3560 LandscapingServices => "landscaping_services",
3561 Laundries => "laundries",
3562 LaundryCleaningServices => "laundry_cleaning_services",
3563 LegalServicesAttorneys => "legal_services_attorneys",
3564 LuggageAndLeatherGoodsStores => "luggage_and_leather_goods_stores",
3565 LumberBuildingMaterialsStores => "lumber_building_materials_stores",
3566 ManualCashDisburse => "manual_cash_disburse",
3567 MarinasServiceAndSupplies => "marinas_service_and_supplies",
3568 Marketplaces => "marketplaces",
3569 MasonryStoneworkAndPlaster => "masonry_stonework_and_plaster",
3570 MassageParlors => "massage_parlors",
3571 MedicalAndDentalLabs => "medical_and_dental_labs",
3572 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies => {
3573 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"
3574 }
3575 MedicalServices => "medical_services",
3576 MembershipOrganizations => "membership_organizations",
3577 MensAndBoysClothingAndAccessoriesStores => {
3578 "mens_and_boys_clothing_and_accessories_stores"
3579 }
3580 MensWomensClothingStores => "mens_womens_clothing_stores",
3581 MetalServiceCenters => "metal_service_centers",
3582 Miscellaneous => "miscellaneous",
3583 MiscellaneousApparelAndAccessoryShops => "miscellaneous_apparel_and_accessory_shops",
3584 MiscellaneousAutoDealers => "miscellaneous_auto_dealers",
3585 MiscellaneousBusinessServices => "miscellaneous_business_services",
3586 MiscellaneousFoodStores => "miscellaneous_food_stores",
3587 MiscellaneousGeneralMerchandise => "miscellaneous_general_merchandise",
3588 MiscellaneousGeneralServices => "miscellaneous_general_services",
3589 MiscellaneousHomeFurnishingSpecialtyStores => {
3590 "miscellaneous_home_furnishing_specialty_stores"
3591 }
3592 MiscellaneousPublishingAndPrinting => "miscellaneous_publishing_and_printing",
3593 MiscellaneousRecreationServices => "miscellaneous_recreation_services",
3594 MiscellaneousRepairShops => "miscellaneous_repair_shops",
3595 MiscellaneousSpecialtyRetail => "miscellaneous_specialty_retail",
3596 MobileHomeDealers => "mobile_home_dealers",
3597 MotionPictureTheaters => "motion_picture_theaters",
3598 MotorFreightCarriersAndTrucking => "motor_freight_carriers_and_trucking",
3599 MotorHomesDealers => "motor_homes_dealers",
3600 MotorVehicleSuppliesAndNewParts => "motor_vehicle_supplies_and_new_parts",
3601 MotorcycleShopsAndDealers => "motorcycle_shops_and_dealers",
3602 MotorcycleShopsDealers => "motorcycle_shops_dealers",
3603 MusicStoresMusicalInstrumentsPianosAndSheetMusic => {
3604 "music_stores_musical_instruments_pianos_and_sheet_music"
3605 }
3606 NewsDealersAndNewsstands => "news_dealers_and_newsstands",
3607 NonFiMoneyOrders => "non_fi_money_orders",
3608 NonFiStoredValueCardPurchaseLoad => "non_fi_stored_value_card_purchase_load",
3609 NondurableGoods => "nondurable_goods",
3610 NurseriesLawnAndGardenSupplyStores => "nurseries_lawn_and_garden_supply_stores",
3611 NursingPersonalCare => "nursing_personal_care",
3612 OfficeAndCommercialFurniture => "office_and_commercial_furniture",
3613 OpticiansEyeglasses => "opticians_eyeglasses",
3614 OptometristsOphthalmologist => "optometrists_ophthalmologist",
3615 OrthopedicGoodsProstheticDevices => "orthopedic_goods_prosthetic_devices",
3616 Osteopaths => "osteopaths",
3617 PackageStoresBeerWineAndLiquor => "package_stores_beer_wine_and_liquor",
3618 PaintsVarnishesAndSupplies => "paints_varnishes_and_supplies",
3619 ParkingLotsGarages => "parking_lots_garages",
3620 PassengerRailways => "passenger_railways",
3621 PawnShops => "pawn_shops",
3622 PetShopsPetFoodAndSupplies => "pet_shops_pet_food_and_supplies",
3623 PetroleumAndPetroleumProducts => "petroleum_and_petroleum_products",
3624 PhotoDeveloping => "photo_developing",
3625 PhotographicPhotocopyMicrofilmEquipmentAndSupplies => {
3626 "photographic_photocopy_microfilm_equipment_and_supplies"
3627 }
3628 PhotographicStudios => "photographic_studios",
3629 PictureVideoProduction => "picture_video_production",
3630 PieceGoodsNotionsAndOtherDryGoods => "piece_goods_notions_and_other_dry_goods",
3631 PlumbingHeatingEquipmentAndSupplies => "plumbing_heating_equipment_and_supplies",
3632 PoliticalOrganizations => "political_organizations",
3633 PostalServicesGovernmentOnly => "postal_services_government_only",
3634 PreciousStonesAndMetalsWatchesAndJewelry => {
3635 "precious_stones_and_metals_watches_and_jewelry"
3636 }
3637 ProfessionalServices => "professional_services",
3638 PublicWarehousingAndStorage => "public_warehousing_and_storage",
3639 QuickCopyReproAndBlueprint => "quick_copy_repro_and_blueprint",
3640 Railroads => "railroads",
3641 RealEstateAgentsAndManagersRentals => "real_estate_agents_and_managers_rentals",
3642 RecordStores => "record_stores",
3643 RecreationalVehicleRentals => "recreational_vehicle_rentals",
3644 ReligiousGoodsStores => "religious_goods_stores",
3645 ReligiousOrganizations => "religious_organizations",
3646 RoofingSidingSheetMetal => "roofing_siding_sheet_metal",
3647 SecretarialSupportServices => "secretarial_support_services",
3648 SecurityBrokersDealers => "security_brokers_dealers",
3649 ServiceStations => "service_stations",
3650 SewingNeedleworkFabricAndPieceGoodsStores => {
3651 "sewing_needlework_fabric_and_piece_goods_stores"
3652 }
3653 ShoeRepairHatCleaning => "shoe_repair_hat_cleaning",
3654 ShoeStores => "shoe_stores",
3655 SmallApplianceRepair => "small_appliance_repair",
3656 SnowmobileDealers => "snowmobile_dealers",
3657 SpecialTradeServices => "special_trade_services",
3658 SpecialtyCleaning => "specialty_cleaning",
3659 SportingGoodsStores => "sporting_goods_stores",
3660 SportingRecreationCamps => "sporting_recreation_camps",
3661 SportsAndRidingApparelStores => "sports_and_riding_apparel_stores",
3662 SportsClubsFields => "sports_clubs_fields",
3663 StampAndCoinStores => "stamp_and_coin_stores",
3664 StationaryOfficeSuppliesPrintingAndWritingPaper => {
3665 "stationary_office_supplies_printing_and_writing_paper"
3666 }
3667 StationeryStoresOfficeAndSchoolSupplyStores => {
3668 "stationery_stores_office_and_school_supply_stores"
3669 }
3670 SwimmingPoolsSales => "swimming_pools_sales",
3671 TUiTravelGermany => "t_ui_travel_germany",
3672 TailorsAlterations => "tailors_alterations",
3673 TaxPaymentsGovernmentAgencies => "tax_payments_government_agencies",
3674 TaxPreparationServices => "tax_preparation_services",
3675 TaxicabsLimousines => "taxicabs_limousines",
3676 TelecommunicationEquipmentAndTelephoneSales => {
3677 "telecommunication_equipment_and_telephone_sales"
3678 }
3679 TelecommunicationServices => "telecommunication_services",
3680 TelegraphServices => "telegraph_services",
3681 TentAndAwningShops => "tent_and_awning_shops",
3682 TestingLaboratories => "testing_laboratories",
3683 TheatricalTicketAgencies => "theatrical_ticket_agencies",
3684 Timeshares => "timeshares",
3685 TireRetreadingAndRepair => "tire_retreading_and_repair",
3686 TollsBridgeFees => "tolls_bridge_fees",
3687 TouristAttractionsAndExhibits => "tourist_attractions_and_exhibits",
3688 TowingServices => "towing_services",
3689 TrailerParksCampgrounds => "trailer_parks_campgrounds",
3690 TransportationServices => "transportation_services",
3691 TravelAgenciesTourOperators => "travel_agencies_tour_operators",
3692 TruckStopIteration => "truck_stop_iteration",
3693 TruckUtilityTrailerRentals => "truck_utility_trailer_rentals",
3694 TypesettingPlateMakingAndRelatedServices => {
3695 "typesetting_plate_making_and_related_services"
3696 }
3697 TypewriterStores => "typewriter_stores",
3698 USFederalGovernmentAgenciesOrDepartments => {
3699 "u_s_federal_government_agencies_or_departments"
3700 }
3701 UniformsCommercialClothing => "uniforms_commercial_clothing",
3702 UsedMerchandiseAndSecondhandStores => "used_merchandise_and_secondhand_stores",
3703 Utilities => "utilities",
3704 VarietyStores => "variety_stores",
3705 VeterinaryServices => "veterinary_services",
3706 VideoAmusementGameSupplies => "video_amusement_game_supplies",
3707 VideoGameArcades => "video_game_arcades",
3708 VideoTapeRentalStores => "video_tape_rental_stores",
3709 VocationalTradeSchools => "vocational_trade_schools",
3710 WatchJewelryRepair => "watch_jewelry_repair",
3711 WeldingRepair => "welding_repair",
3712 WholesaleClubs => "wholesale_clubs",
3713 WigAndToupeeStores => "wig_and_toupee_stores",
3714 WiresMoneyOrders => "wires_money_orders",
3715 WomensAccessoryAndSpecialtyShops => "womens_accessory_and_specialty_shops",
3716 WomensReadyToWearStores => "womens_ready_to_wear_stores",
3717 WreckingAndSalvageYards => "wrecking_and_salvage_yards",
3718 Unknown(v) => v,
3719 }
3720 }
3721}
3722
3723impl std::str::FromStr for CreateIssuingCardSpendingControlsSpendingLimitsCategories {
3724 type Err = std::convert::Infallible;
3725 fn from_str(s: &str) -> Result<Self, Self::Err> {
3726 use CreateIssuingCardSpendingControlsSpendingLimitsCategories::*;
3727 match s {
3728 "ac_refrigeration_repair" => Ok(AcRefrigerationRepair),
3729 "accounting_bookkeeping_services" => Ok(AccountingBookkeepingServices),
3730 "advertising_services" => Ok(AdvertisingServices),
3731 "agricultural_cooperative" => Ok(AgriculturalCooperative),
3732 "airlines_air_carriers" => Ok(AirlinesAirCarriers),
3733 "airports_flying_fields" => Ok(AirportsFlyingFields),
3734 "ambulance_services" => Ok(AmbulanceServices),
3735 "amusement_parks_carnivals" => Ok(AmusementParksCarnivals),
3736 "antique_reproductions" => Ok(AntiqueReproductions),
3737 "antique_shops" => Ok(AntiqueShops),
3738 "aquariums" => Ok(Aquariums),
3739 "architectural_surveying_services" => Ok(ArchitecturalSurveyingServices),
3740 "art_dealers_and_galleries" => Ok(ArtDealersAndGalleries),
3741 "artists_supply_and_craft_shops" => Ok(ArtistsSupplyAndCraftShops),
3742 "auto_and_home_supply_stores" => Ok(AutoAndHomeSupplyStores),
3743 "auto_body_repair_shops" => Ok(AutoBodyRepairShops),
3744 "auto_paint_shops" => Ok(AutoPaintShops),
3745 "auto_service_shops" => Ok(AutoServiceShops),
3746 "automated_cash_disburse" => Ok(AutomatedCashDisburse),
3747 "automated_fuel_dispensers" => Ok(AutomatedFuelDispensers),
3748 "automobile_associations" => Ok(AutomobileAssociations),
3749 "automotive_parts_and_accessories_stores" => Ok(AutomotivePartsAndAccessoriesStores),
3750 "automotive_tire_stores" => Ok(AutomotiveTireStores),
3751 "bail_and_bond_payments" => Ok(BailAndBondPayments),
3752 "bakeries" => Ok(Bakeries),
3753 "bands_orchestras" => Ok(BandsOrchestras),
3754 "barber_and_beauty_shops" => Ok(BarberAndBeautyShops),
3755 "betting_casino_gambling" => Ok(BettingCasinoGambling),
3756 "bicycle_shops" => Ok(BicycleShops),
3757 "billiard_pool_establishments" => Ok(BilliardPoolEstablishments),
3758 "boat_dealers" => Ok(BoatDealers),
3759 "boat_rentals_and_leases" => Ok(BoatRentalsAndLeases),
3760 "book_stores" => Ok(BookStores),
3761 "books_periodicals_and_newspapers" => Ok(BooksPeriodicalsAndNewspapers),
3762 "bowling_alleys" => Ok(BowlingAlleys),
3763 "bus_lines" => Ok(BusLines),
3764 "business_secretarial_schools" => Ok(BusinessSecretarialSchools),
3765 "buying_shopping_services" => Ok(BuyingShoppingServices),
3766 "cable_satellite_and_other_pay_television_and_radio" => {
3767 Ok(CableSatelliteAndOtherPayTelevisionAndRadio)
3768 }
3769 "camera_and_photographic_supply_stores" => Ok(CameraAndPhotographicSupplyStores),
3770 "candy_nut_and_confectionery_stores" => Ok(CandyNutAndConfectioneryStores),
3771 "car_and_truck_dealers_new_used" => Ok(CarAndTruckDealersNewUsed),
3772 "car_and_truck_dealers_used_only" => Ok(CarAndTruckDealersUsedOnly),
3773 "car_rental_agencies" => Ok(CarRentalAgencies),
3774 "car_washes" => Ok(CarWashes),
3775 "carpentry_services" => Ok(CarpentryServices),
3776 "carpet_upholstery_cleaning" => Ok(CarpetUpholsteryCleaning),
3777 "caterers" => Ok(Caterers),
3778 "charitable_and_social_service_organizations_fundraising" => {
3779 Ok(CharitableAndSocialServiceOrganizationsFundraising)
3780 }
3781 "chemicals_and_allied_products" => Ok(ChemicalsAndAlliedProducts),
3782 "child_care_services" => Ok(ChildCareServices),
3783 "childrens_and_infants_wear_stores" => Ok(ChildrensAndInfantsWearStores),
3784 "chiropodists_podiatrists" => Ok(ChiropodistsPodiatrists),
3785 "chiropractors" => Ok(Chiropractors),
3786 "cigar_stores_and_stands" => Ok(CigarStoresAndStands),
3787 "civic_social_fraternal_associations" => Ok(CivicSocialFraternalAssociations),
3788 "cleaning_and_maintenance" => Ok(CleaningAndMaintenance),
3789 "clothing_rental" => Ok(ClothingRental),
3790 "colleges_universities" => Ok(CollegesUniversities),
3791 "commercial_equipment" => Ok(CommercialEquipment),
3792 "commercial_footwear" => Ok(CommercialFootwear),
3793 "commercial_photography_art_and_graphics" => Ok(CommercialPhotographyArtAndGraphics),
3794 "commuter_transport_and_ferries" => Ok(CommuterTransportAndFerries),
3795 "computer_network_services" => Ok(ComputerNetworkServices),
3796 "computer_programming" => Ok(ComputerProgramming),
3797 "computer_repair" => Ok(ComputerRepair),
3798 "computer_software_stores" => Ok(ComputerSoftwareStores),
3799 "computers_peripherals_and_software" => Ok(ComputersPeripheralsAndSoftware),
3800 "concrete_work_services" => Ok(ConcreteWorkServices),
3801 "construction_materials" => Ok(ConstructionMaterials),
3802 "consulting_public_relations" => Ok(ConsultingPublicRelations),
3803 "correspondence_schools" => Ok(CorrespondenceSchools),
3804 "cosmetic_stores" => Ok(CosmeticStores),
3805 "counseling_services" => Ok(CounselingServices),
3806 "country_clubs" => Ok(CountryClubs),
3807 "courier_services" => Ok(CourierServices),
3808 "court_costs" => Ok(CourtCosts),
3809 "credit_reporting_agencies" => Ok(CreditReportingAgencies),
3810 "cruise_lines" => Ok(CruiseLines),
3811 "dairy_products_stores" => Ok(DairyProductsStores),
3812 "dance_hall_studios_schools" => Ok(DanceHallStudiosSchools),
3813 "dating_escort_services" => Ok(DatingEscortServices),
3814 "dentists_orthodontists" => Ok(DentistsOrthodontists),
3815 "department_stores" => Ok(DepartmentStores),
3816 "detective_agencies" => Ok(DetectiveAgencies),
3817 "digital_goods_applications" => Ok(DigitalGoodsApplications),
3818 "digital_goods_games" => Ok(DigitalGoodsGames),
3819 "digital_goods_large_volume" => Ok(DigitalGoodsLargeVolume),
3820 "digital_goods_media" => Ok(DigitalGoodsMedia),
3821 "direct_marketing_catalog_merchant" => Ok(DirectMarketingCatalogMerchant),
3822 "direct_marketing_combination_catalog_and_retail_merchant" => {
3823 Ok(DirectMarketingCombinationCatalogAndRetailMerchant)
3824 }
3825 "direct_marketing_inbound_telemarketing" => Ok(DirectMarketingInboundTelemarketing),
3826 "direct_marketing_insurance_services" => Ok(DirectMarketingInsuranceServices),
3827 "direct_marketing_other" => Ok(DirectMarketingOther),
3828 "direct_marketing_outbound_telemarketing" => Ok(DirectMarketingOutboundTelemarketing),
3829 "direct_marketing_subscription" => Ok(DirectMarketingSubscription),
3830 "direct_marketing_travel" => Ok(DirectMarketingTravel),
3831 "discount_stores" => Ok(DiscountStores),
3832 "doctors" => Ok(Doctors),
3833 "door_to_door_sales" => Ok(DoorToDoorSales),
3834 "drapery_window_covering_and_upholstery_stores" => {
3835 Ok(DraperyWindowCoveringAndUpholsteryStores)
3836 }
3837 "drinking_places" => Ok(DrinkingPlaces),
3838 "drug_stores_and_pharmacies" => Ok(DrugStoresAndPharmacies),
3839 "drugs_drug_proprietaries_and_druggist_sundries" => {
3840 Ok(DrugsDrugProprietariesAndDruggistSundries)
3841 }
3842 "dry_cleaners" => Ok(DryCleaners),
3843 "durable_goods" => Ok(DurableGoods),
3844 "duty_free_stores" => Ok(DutyFreeStores),
3845 "eating_places_restaurants" => Ok(EatingPlacesRestaurants),
3846 "educational_services" => Ok(EducationalServices),
3847 "electric_razor_stores" => Ok(ElectricRazorStores),
3848 "electric_vehicle_charging" => Ok(ElectricVehicleCharging),
3849 "electrical_parts_and_equipment" => Ok(ElectricalPartsAndEquipment),
3850 "electrical_services" => Ok(ElectricalServices),
3851 "electronics_repair_shops" => Ok(ElectronicsRepairShops),
3852 "electronics_stores" => Ok(ElectronicsStores),
3853 "elementary_secondary_schools" => Ok(ElementarySecondarySchools),
3854 "emergency_services_gcas_visa_use_only" => Ok(EmergencyServicesGcasVisaUseOnly),
3855 "employment_temp_agencies" => Ok(EmploymentTempAgencies),
3856 "equipment_rental" => Ok(EquipmentRental),
3857 "exterminating_services" => Ok(ExterminatingServices),
3858 "family_clothing_stores" => Ok(FamilyClothingStores),
3859 "fast_food_restaurants" => Ok(FastFoodRestaurants),
3860 "financial_institutions" => Ok(FinancialInstitutions),
3861 "fines_government_administrative_entities" => Ok(FinesGovernmentAdministrativeEntities),
3862 "fireplace_fireplace_screens_and_accessories_stores" => {
3863 Ok(FireplaceFireplaceScreensAndAccessoriesStores)
3864 }
3865 "floor_covering_stores" => Ok(FloorCoveringStores),
3866 "florists" => Ok(Florists),
3867 "florists_supplies_nursery_stock_and_flowers" => {
3868 Ok(FloristsSuppliesNurseryStockAndFlowers)
3869 }
3870 "freezer_and_locker_meat_provisioners" => Ok(FreezerAndLockerMeatProvisioners),
3871 "fuel_dealers_non_automotive" => Ok(FuelDealersNonAutomotive),
3872 "funeral_services_crematories" => Ok(FuneralServicesCrematories),
3873 "furniture_home_furnishings_and_equipment_stores_except_appliances" => {
3874 Ok(FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances)
3875 }
3876 "furniture_repair_refinishing" => Ok(FurnitureRepairRefinishing),
3877 "furriers_and_fur_shops" => Ok(FurriersAndFurShops),
3878 "general_services" => Ok(GeneralServices),
3879 "gift_card_novelty_and_souvenir_shops" => Ok(GiftCardNoveltyAndSouvenirShops),
3880 "glass_paint_and_wallpaper_stores" => Ok(GlassPaintAndWallpaperStores),
3881 "glassware_crystal_stores" => Ok(GlasswareCrystalStores),
3882 "golf_courses_public" => Ok(GolfCoursesPublic),
3883 "government_licensed_horse_dog_racing_us_region_only" => {
3884 Ok(GovernmentLicensedHorseDogRacingUsRegionOnly)
3885 }
3886 "government_licensed_online_casions_online_gambling_us_region_only" => {
3887 Ok(GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly)
3888 }
3889 "government_owned_lotteries_non_us_region" => Ok(GovernmentOwnedLotteriesNonUsRegion),
3890 "government_owned_lotteries_us_region_only" => Ok(GovernmentOwnedLotteriesUsRegionOnly),
3891 "government_services" => Ok(GovernmentServices),
3892 "grocery_stores_supermarkets" => Ok(GroceryStoresSupermarkets),
3893 "hardware_equipment_and_supplies" => Ok(HardwareEquipmentAndSupplies),
3894 "hardware_stores" => Ok(HardwareStores),
3895 "health_and_beauty_spas" => Ok(HealthAndBeautySpas),
3896 "hearing_aids_sales_and_supplies" => Ok(HearingAidsSalesAndSupplies),
3897 "heating_plumbing_a_c" => Ok(HeatingPlumbingAC),
3898 "hobby_toy_and_game_shops" => Ok(HobbyToyAndGameShops),
3899 "home_supply_warehouse_stores" => Ok(HomeSupplyWarehouseStores),
3900 "hospitals" => Ok(Hospitals),
3901 "hotels_motels_and_resorts" => Ok(HotelsMotelsAndResorts),
3902 "household_appliance_stores" => Ok(HouseholdApplianceStores),
3903 "industrial_supplies" => Ok(IndustrialSupplies),
3904 "information_retrieval_services" => Ok(InformationRetrievalServices),
3905 "insurance_default" => Ok(InsuranceDefault),
3906 "insurance_underwriting_premiums" => Ok(InsuranceUnderwritingPremiums),
3907 "intra_company_purchases" => Ok(IntraCompanyPurchases),
3908 "jewelry_stores_watches_clocks_and_silverware_stores" => {
3909 Ok(JewelryStoresWatchesClocksAndSilverwareStores)
3910 }
3911 "landscaping_services" => Ok(LandscapingServices),
3912 "laundries" => Ok(Laundries),
3913 "laundry_cleaning_services" => Ok(LaundryCleaningServices),
3914 "legal_services_attorneys" => Ok(LegalServicesAttorneys),
3915 "luggage_and_leather_goods_stores" => Ok(LuggageAndLeatherGoodsStores),
3916 "lumber_building_materials_stores" => Ok(LumberBuildingMaterialsStores),
3917 "manual_cash_disburse" => Ok(ManualCashDisburse),
3918 "marinas_service_and_supplies" => Ok(MarinasServiceAndSupplies),
3919 "marketplaces" => Ok(Marketplaces),
3920 "masonry_stonework_and_plaster" => Ok(MasonryStoneworkAndPlaster),
3921 "massage_parlors" => Ok(MassageParlors),
3922 "medical_and_dental_labs" => Ok(MedicalAndDentalLabs),
3923 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" => {
3924 Ok(MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies)
3925 }
3926 "medical_services" => Ok(MedicalServices),
3927 "membership_organizations" => Ok(MembershipOrganizations),
3928 "mens_and_boys_clothing_and_accessories_stores" => {
3929 Ok(MensAndBoysClothingAndAccessoriesStores)
3930 }
3931 "mens_womens_clothing_stores" => Ok(MensWomensClothingStores),
3932 "metal_service_centers" => Ok(MetalServiceCenters),
3933 "miscellaneous" => Ok(Miscellaneous),
3934 "miscellaneous_apparel_and_accessory_shops" => {
3935 Ok(MiscellaneousApparelAndAccessoryShops)
3936 }
3937 "miscellaneous_auto_dealers" => Ok(MiscellaneousAutoDealers),
3938 "miscellaneous_business_services" => Ok(MiscellaneousBusinessServices),
3939 "miscellaneous_food_stores" => Ok(MiscellaneousFoodStores),
3940 "miscellaneous_general_merchandise" => Ok(MiscellaneousGeneralMerchandise),
3941 "miscellaneous_general_services" => Ok(MiscellaneousGeneralServices),
3942 "miscellaneous_home_furnishing_specialty_stores" => {
3943 Ok(MiscellaneousHomeFurnishingSpecialtyStores)
3944 }
3945 "miscellaneous_publishing_and_printing" => Ok(MiscellaneousPublishingAndPrinting),
3946 "miscellaneous_recreation_services" => Ok(MiscellaneousRecreationServices),
3947 "miscellaneous_repair_shops" => Ok(MiscellaneousRepairShops),
3948 "miscellaneous_specialty_retail" => Ok(MiscellaneousSpecialtyRetail),
3949 "mobile_home_dealers" => Ok(MobileHomeDealers),
3950 "motion_picture_theaters" => Ok(MotionPictureTheaters),
3951 "motor_freight_carriers_and_trucking" => Ok(MotorFreightCarriersAndTrucking),
3952 "motor_homes_dealers" => Ok(MotorHomesDealers),
3953 "motor_vehicle_supplies_and_new_parts" => Ok(MotorVehicleSuppliesAndNewParts),
3954 "motorcycle_shops_and_dealers" => Ok(MotorcycleShopsAndDealers),
3955 "motorcycle_shops_dealers" => Ok(MotorcycleShopsDealers),
3956 "music_stores_musical_instruments_pianos_and_sheet_music" => {
3957 Ok(MusicStoresMusicalInstrumentsPianosAndSheetMusic)
3958 }
3959 "news_dealers_and_newsstands" => Ok(NewsDealersAndNewsstands),
3960 "non_fi_money_orders" => Ok(NonFiMoneyOrders),
3961 "non_fi_stored_value_card_purchase_load" => Ok(NonFiStoredValueCardPurchaseLoad),
3962 "nondurable_goods" => Ok(NondurableGoods),
3963 "nurseries_lawn_and_garden_supply_stores" => Ok(NurseriesLawnAndGardenSupplyStores),
3964 "nursing_personal_care" => Ok(NursingPersonalCare),
3965 "office_and_commercial_furniture" => Ok(OfficeAndCommercialFurniture),
3966 "opticians_eyeglasses" => Ok(OpticiansEyeglasses),
3967 "optometrists_ophthalmologist" => Ok(OptometristsOphthalmologist),
3968 "orthopedic_goods_prosthetic_devices" => Ok(OrthopedicGoodsProstheticDevices),
3969 "osteopaths" => Ok(Osteopaths),
3970 "package_stores_beer_wine_and_liquor" => Ok(PackageStoresBeerWineAndLiquor),
3971 "paints_varnishes_and_supplies" => Ok(PaintsVarnishesAndSupplies),
3972 "parking_lots_garages" => Ok(ParkingLotsGarages),
3973 "passenger_railways" => Ok(PassengerRailways),
3974 "pawn_shops" => Ok(PawnShops),
3975 "pet_shops_pet_food_and_supplies" => Ok(PetShopsPetFoodAndSupplies),
3976 "petroleum_and_petroleum_products" => Ok(PetroleumAndPetroleumProducts),
3977 "photo_developing" => Ok(PhotoDeveloping),
3978 "photographic_photocopy_microfilm_equipment_and_supplies" => {
3979 Ok(PhotographicPhotocopyMicrofilmEquipmentAndSupplies)
3980 }
3981 "photographic_studios" => Ok(PhotographicStudios),
3982 "picture_video_production" => Ok(PictureVideoProduction),
3983 "piece_goods_notions_and_other_dry_goods" => Ok(PieceGoodsNotionsAndOtherDryGoods),
3984 "plumbing_heating_equipment_and_supplies" => Ok(PlumbingHeatingEquipmentAndSupplies),
3985 "political_organizations" => Ok(PoliticalOrganizations),
3986 "postal_services_government_only" => Ok(PostalServicesGovernmentOnly),
3987 "precious_stones_and_metals_watches_and_jewelry" => {
3988 Ok(PreciousStonesAndMetalsWatchesAndJewelry)
3989 }
3990 "professional_services" => Ok(ProfessionalServices),
3991 "public_warehousing_and_storage" => Ok(PublicWarehousingAndStorage),
3992 "quick_copy_repro_and_blueprint" => Ok(QuickCopyReproAndBlueprint),
3993 "railroads" => Ok(Railroads),
3994 "real_estate_agents_and_managers_rentals" => Ok(RealEstateAgentsAndManagersRentals),
3995 "record_stores" => Ok(RecordStores),
3996 "recreational_vehicle_rentals" => Ok(RecreationalVehicleRentals),
3997 "religious_goods_stores" => Ok(ReligiousGoodsStores),
3998 "religious_organizations" => Ok(ReligiousOrganizations),
3999 "roofing_siding_sheet_metal" => Ok(RoofingSidingSheetMetal),
4000 "secretarial_support_services" => Ok(SecretarialSupportServices),
4001 "security_brokers_dealers" => Ok(SecurityBrokersDealers),
4002 "service_stations" => Ok(ServiceStations),
4003 "sewing_needlework_fabric_and_piece_goods_stores" => {
4004 Ok(SewingNeedleworkFabricAndPieceGoodsStores)
4005 }
4006 "shoe_repair_hat_cleaning" => Ok(ShoeRepairHatCleaning),
4007 "shoe_stores" => Ok(ShoeStores),
4008 "small_appliance_repair" => Ok(SmallApplianceRepair),
4009 "snowmobile_dealers" => Ok(SnowmobileDealers),
4010 "special_trade_services" => Ok(SpecialTradeServices),
4011 "specialty_cleaning" => Ok(SpecialtyCleaning),
4012 "sporting_goods_stores" => Ok(SportingGoodsStores),
4013 "sporting_recreation_camps" => Ok(SportingRecreationCamps),
4014 "sports_and_riding_apparel_stores" => Ok(SportsAndRidingApparelStores),
4015 "sports_clubs_fields" => Ok(SportsClubsFields),
4016 "stamp_and_coin_stores" => Ok(StampAndCoinStores),
4017 "stationary_office_supplies_printing_and_writing_paper" => {
4018 Ok(StationaryOfficeSuppliesPrintingAndWritingPaper)
4019 }
4020 "stationery_stores_office_and_school_supply_stores" => {
4021 Ok(StationeryStoresOfficeAndSchoolSupplyStores)
4022 }
4023 "swimming_pools_sales" => Ok(SwimmingPoolsSales),
4024 "t_ui_travel_germany" => Ok(TUiTravelGermany),
4025 "tailors_alterations" => Ok(TailorsAlterations),
4026 "tax_payments_government_agencies" => Ok(TaxPaymentsGovernmentAgencies),
4027 "tax_preparation_services" => Ok(TaxPreparationServices),
4028 "taxicabs_limousines" => Ok(TaxicabsLimousines),
4029 "telecommunication_equipment_and_telephone_sales" => {
4030 Ok(TelecommunicationEquipmentAndTelephoneSales)
4031 }
4032 "telecommunication_services" => Ok(TelecommunicationServices),
4033 "telegraph_services" => Ok(TelegraphServices),
4034 "tent_and_awning_shops" => Ok(TentAndAwningShops),
4035 "testing_laboratories" => Ok(TestingLaboratories),
4036 "theatrical_ticket_agencies" => Ok(TheatricalTicketAgencies),
4037 "timeshares" => Ok(Timeshares),
4038 "tire_retreading_and_repair" => Ok(TireRetreadingAndRepair),
4039 "tolls_bridge_fees" => Ok(TollsBridgeFees),
4040 "tourist_attractions_and_exhibits" => Ok(TouristAttractionsAndExhibits),
4041 "towing_services" => Ok(TowingServices),
4042 "trailer_parks_campgrounds" => Ok(TrailerParksCampgrounds),
4043 "transportation_services" => Ok(TransportationServices),
4044 "travel_agencies_tour_operators" => Ok(TravelAgenciesTourOperators),
4045 "truck_stop_iteration" => Ok(TruckStopIteration),
4046 "truck_utility_trailer_rentals" => Ok(TruckUtilityTrailerRentals),
4047 "typesetting_plate_making_and_related_services" => {
4048 Ok(TypesettingPlateMakingAndRelatedServices)
4049 }
4050 "typewriter_stores" => Ok(TypewriterStores),
4051 "u_s_federal_government_agencies_or_departments" => {
4052 Ok(USFederalGovernmentAgenciesOrDepartments)
4053 }
4054 "uniforms_commercial_clothing" => Ok(UniformsCommercialClothing),
4055 "used_merchandise_and_secondhand_stores" => Ok(UsedMerchandiseAndSecondhandStores),
4056 "utilities" => Ok(Utilities),
4057 "variety_stores" => Ok(VarietyStores),
4058 "veterinary_services" => Ok(VeterinaryServices),
4059 "video_amusement_game_supplies" => Ok(VideoAmusementGameSupplies),
4060 "video_game_arcades" => Ok(VideoGameArcades),
4061 "video_tape_rental_stores" => Ok(VideoTapeRentalStores),
4062 "vocational_trade_schools" => Ok(VocationalTradeSchools),
4063 "watch_jewelry_repair" => Ok(WatchJewelryRepair),
4064 "welding_repair" => Ok(WeldingRepair),
4065 "wholesale_clubs" => Ok(WholesaleClubs),
4066 "wig_and_toupee_stores" => Ok(WigAndToupeeStores),
4067 "wires_money_orders" => Ok(WiresMoneyOrders),
4068 "womens_accessory_and_specialty_shops" => Ok(WomensAccessoryAndSpecialtyShops),
4069 "womens_ready_to_wear_stores" => Ok(WomensReadyToWearStores),
4070 "wrecking_and_salvage_yards" => Ok(WreckingAndSalvageYards),
4071 v => {
4072 tracing::warn!(
4073 "Unknown value '{}' for enum '{}'",
4074 v,
4075 "CreateIssuingCardSpendingControlsSpendingLimitsCategories"
4076 );
4077 Ok(Unknown(v.to_owned()))
4078 }
4079 }
4080 }
4081}
4082impl std::fmt::Display for CreateIssuingCardSpendingControlsSpendingLimitsCategories {
4083 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4084 f.write_str(self.as_str())
4085 }
4086}
4087
4088#[cfg(not(feature = "redact-generated-debug"))]
4089impl std::fmt::Debug for CreateIssuingCardSpendingControlsSpendingLimitsCategories {
4090 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4091 f.write_str(self.as_str())
4092 }
4093}
4094#[cfg(feature = "redact-generated-debug")]
4095impl std::fmt::Debug for CreateIssuingCardSpendingControlsSpendingLimitsCategories {
4096 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4097 f.debug_struct(stringify!(CreateIssuingCardSpendingControlsSpendingLimitsCategories))
4098 .finish_non_exhaustive()
4099 }
4100}
4101impl serde::Serialize for CreateIssuingCardSpendingControlsSpendingLimitsCategories {
4102 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
4103 where
4104 S: serde::Serializer,
4105 {
4106 serializer.serialize_str(self.as_str())
4107 }
4108}
4109#[cfg(feature = "deserialize")]
4110impl<'de> serde::Deserialize<'de> for CreateIssuingCardSpendingControlsSpendingLimitsCategories {
4111 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
4112 use std::str::FromStr;
4113 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
4114 Ok(Self::from_str(&s).expect("infallible"))
4115 }
4116}
4117#[derive(Clone, Eq, PartialEq)]
4119#[non_exhaustive]
4120pub enum CreateIssuingCardSpendingControlsSpendingLimitsInterval {
4121 AllTime,
4122 Daily,
4123 Monthly,
4124 PerAuthorization,
4125 Weekly,
4126 Yearly,
4127 Unknown(String),
4129}
4130impl CreateIssuingCardSpendingControlsSpendingLimitsInterval {
4131 pub fn as_str(&self) -> &str {
4132 use CreateIssuingCardSpendingControlsSpendingLimitsInterval::*;
4133 match self {
4134 AllTime => "all_time",
4135 Daily => "daily",
4136 Monthly => "monthly",
4137 PerAuthorization => "per_authorization",
4138 Weekly => "weekly",
4139 Yearly => "yearly",
4140 Unknown(v) => v,
4141 }
4142 }
4143}
4144
4145impl std::str::FromStr for CreateIssuingCardSpendingControlsSpendingLimitsInterval {
4146 type Err = std::convert::Infallible;
4147 fn from_str(s: &str) -> Result<Self, Self::Err> {
4148 use CreateIssuingCardSpendingControlsSpendingLimitsInterval::*;
4149 match s {
4150 "all_time" => Ok(AllTime),
4151 "daily" => Ok(Daily),
4152 "monthly" => Ok(Monthly),
4153 "per_authorization" => Ok(PerAuthorization),
4154 "weekly" => Ok(Weekly),
4155 "yearly" => Ok(Yearly),
4156 v => {
4157 tracing::warn!(
4158 "Unknown value '{}' for enum '{}'",
4159 v,
4160 "CreateIssuingCardSpendingControlsSpendingLimitsInterval"
4161 );
4162 Ok(Unknown(v.to_owned()))
4163 }
4164 }
4165 }
4166}
4167impl std::fmt::Display for CreateIssuingCardSpendingControlsSpendingLimitsInterval {
4168 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4169 f.write_str(self.as_str())
4170 }
4171}
4172
4173#[cfg(not(feature = "redact-generated-debug"))]
4174impl std::fmt::Debug for CreateIssuingCardSpendingControlsSpendingLimitsInterval {
4175 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4176 f.write_str(self.as_str())
4177 }
4178}
4179#[cfg(feature = "redact-generated-debug")]
4180impl std::fmt::Debug for CreateIssuingCardSpendingControlsSpendingLimitsInterval {
4181 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4182 f.debug_struct(stringify!(CreateIssuingCardSpendingControlsSpendingLimitsInterval))
4183 .finish_non_exhaustive()
4184 }
4185}
4186impl serde::Serialize for CreateIssuingCardSpendingControlsSpendingLimitsInterval {
4187 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
4188 where
4189 S: serde::Serializer,
4190 {
4191 serializer.serialize_str(self.as_str())
4192 }
4193}
4194#[cfg(feature = "deserialize")]
4195impl<'de> serde::Deserialize<'de> for CreateIssuingCardSpendingControlsSpendingLimitsInterval {
4196 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
4197 use std::str::FromStr;
4198 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
4199 Ok(Self::from_str(&s).expect("infallible"))
4200 }
4201}
4202#[derive(Clone, Eq, PartialEq)]
4206#[non_exhaustive]
4207pub enum CreateIssuingCardStatus {
4208 Active,
4209 Inactive,
4210 Unknown(String),
4212}
4213impl CreateIssuingCardStatus {
4214 pub fn as_str(&self) -> &str {
4215 use CreateIssuingCardStatus::*;
4216 match self {
4217 Active => "active",
4218 Inactive => "inactive",
4219 Unknown(v) => v,
4220 }
4221 }
4222}
4223
4224impl std::str::FromStr for CreateIssuingCardStatus {
4225 type Err = std::convert::Infallible;
4226 fn from_str(s: &str) -> Result<Self, Self::Err> {
4227 use CreateIssuingCardStatus::*;
4228 match s {
4229 "active" => Ok(Active),
4230 "inactive" => Ok(Inactive),
4231 v => {
4232 tracing::warn!("Unknown value '{}' for enum '{}'", v, "CreateIssuingCardStatus");
4233 Ok(Unknown(v.to_owned()))
4234 }
4235 }
4236 }
4237}
4238impl std::fmt::Display for CreateIssuingCardStatus {
4239 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4240 f.write_str(self.as_str())
4241 }
4242}
4243
4244#[cfg(not(feature = "redact-generated-debug"))]
4245impl std::fmt::Debug for CreateIssuingCardStatus {
4246 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4247 f.write_str(self.as_str())
4248 }
4249}
4250#[cfg(feature = "redact-generated-debug")]
4251impl std::fmt::Debug for CreateIssuingCardStatus {
4252 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4253 f.debug_struct(stringify!(CreateIssuingCardStatus)).finish_non_exhaustive()
4254 }
4255}
4256impl serde::Serialize for CreateIssuingCardStatus {
4257 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
4258 where
4259 S: serde::Serializer,
4260 {
4261 serializer.serialize_str(self.as_str())
4262 }
4263}
4264#[cfg(feature = "deserialize")]
4265impl<'de> serde::Deserialize<'de> for CreateIssuingCardStatus {
4266 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
4267 use std::str::FromStr;
4268 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
4269 Ok(Self::from_str(&s).expect("infallible"))
4270 }
4271}
4272#[derive(Clone)]
4274#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
4275#[derive(serde::Serialize)]
4276pub struct CreateIssuingCard {
4277 inner: CreateIssuingCardBuilder,
4278}
4279#[cfg(feature = "redact-generated-debug")]
4280impl std::fmt::Debug for CreateIssuingCard {
4281 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4282 f.debug_struct("CreateIssuingCard").finish_non_exhaustive()
4283 }
4284}
4285impl CreateIssuingCard {
4286 pub fn new(
4288 currency: impl Into<stripe_types::Currency>,
4289 type_: impl Into<stripe_shared::IssuingCardType>,
4290 ) -> Self {
4291 Self { inner: CreateIssuingCardBuilder::new(currency.into(), type_.into()) }
4292 }
4293 pub fn cardholder(mut self, cardholder: impl Into<String>) -> Self {
4295 self.inner.cardholder = Some(cardholder.into());
4296 self
4297 }
4298 pub fn exp_month(mut self, exp_month: impl Into<i64>) -> Self {
4300 self.inner.exp_month = Some(exp_month.into());
4301 self
4302 }
4303 pub fn exp_year(mut self, exp_year: impl Into<i64>) -> Self {
4305 self.inner.exp_year = Some(exp_year.into());
4306 self
4307 }
4308 pub fn expand(mut self, expand: impl Into<Vec<String>>) -> Self {
4310 self.inner.expand = Some(expand.into());
4311 self
4312 }
4313 pub fn financial_account(mut self, financial_account: impl Into<String>) -> Self {
4316 self.inner.financial_account = Some(financial_account.into());
4317 self
4318 }
4319 pub fn lifecycle_controls(
4322 mut self,
4323 lifecycle_controls: impl Into<CreateIssuingCardLifecycleControls>,
4324 ) -> Self {
4325 self.inner.lifecycle_controls = Some(lifecycle_controls.into());
4326 self
4327 }
4328 pub fn metadata(
4333 mut self,
4334 metadata: impl Into<std::collections::HashMap<String, String>>,
4335 ) -> Self {
4336 self.inner.metadata = Some(metadata.into());
4337 self
4338 }
4339 pub fn personalization_design(mut self, personalization_design: impl Into<String>) -> Self {
4341 self.inner.personalization_design = Some(personalization_design.into());
4342 self
4343 }
4344 pub fn pin(mut self, pin: impl Into<EncryptedPinParam>) -> Self {
4346 self.inner.pin = Some(pin.into());
4347 self
4348 }
4349 pub fn replacement_for(mut self, replacement_for: impl Into<String>) -> Self {
4351 self.inner.replacement_for = Some(replacement_for.into());
4352 self
4353 }
4354 pub fn replacement_reason(
4356 mut self,
4357 replacement_reason: impl Into<CreateIssuingCardReplacementReason>,
4358 ) -> Self {
4359 self.inner.replacement_reason = Some(replacement_reason.into());
4360 self
4361 }
4362 pub fn second_line(mut self, second_line: impl Into<String>) -> Self {
4364 self.inner.second_line = Some(second_line.into());
4365 self
4366 }
4367 pub fn shipping(mut self, shipping: impl Into<CreateIssuingCardShipping>) -> Self {
4369 self.inner.shipping = Some(shipping.into());
4370 self
4371 }
4372 pub fn spending_controls(
4375 mut self,
4376 spending_controls: impl Into<CreateIssuingCardSpendingControls>,
4377 ) -> Self {
4378 self.inner.spending_controls = Some(spending_controls.into());
4379 self
4380 }
4381 pub fn status(mut self, status: impl Into<CreateIssuingCardStatus>) -> Self {
4385 self.inner.status = Some(status.into());
4386 self
4387 }
4388}
4389impl CreateIssuingCard {
4390 pub async fn send<C: StripeClient>(
4392 &self,
4393 client: &C,
4394 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
4395 self.customize().send(client).await
4396 }
4397
4398 pub fn send_blocking<C: StripeBlockingClient>(
4400 &self,
4401 client: &C,
4402 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
4403 self.customize().send_blocking(client)
4404 }
4405}
4406
4407impl StripeRequest for CreateIssuingCard {
4408 type Output = stripe_shared::IssuingCard;
4409
4410 fn build(&self) -> RequestBuilder {
4411 RequestBuilder::new(StripeMethod::Post, "/issuing/cards").form(&self.inner)
4412 }
4413}
4414#[derive(Clone)]
4415#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
4416#[derive(serde::Serialize)]
4417struct UpdateIssuingCardBuilder {
4418 #[serde(skip_serializing_if = "Option::is_none")]
4419 cancellation_reason: Option<UpdateIssuingCardCancellationReason>,
4420 #[serde(skip_serializing_if = "Option::is_none")]
4421 expand: Option<Vec<String>>,
4422 #[serde(skip_serializing_if = "Option::is_none")]
4423 metadata: Option<std::collections::HashMap<String, String>>,
4424 #[serde(skip_serializing_if = "Option::is_none")]
4425 personalization_design: Option<String>,
4426 #[serde(skip_serializing_if = "Option::is_none")]
4427 pin: Option<EncryptedPinParam>,
4428 #[serde(skip_serializing_if = "Option::is_none")]
4429 shipping: Option<UpdateIssuingCardShipping>,
4430 #[serde(skip_serializing_if = "Option::is_none")]
4431 spending_controls: Option<UpdateIssuingCardSpendingControls>,
4432 #[serde(skip_serializing_if = "Option::is_none")]
4433 status: Option<stripe_shared::IssuingCardStatus>,
4434}
4435#[cfg(feature = "redact-generated-debug")]
4436impl std::fmt::Debug for UpdateIssuingCardBuilder {
4437 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4438 f.debug_struct("UpdateIssuingCardBuilder").finish_non_exhaustive()
4439 }
4440}
4441impl UpdateIssuingCardBuilder {
4442 fn new() -> Self {
4443 Self {
4444 cancellation_reason: None,
4445 expand: None,
4446 metadata: None,
4447 personalization_design: None,
4448 pin: None,
4449 shipping: None,
4450 spending_controls: None,
4451 status: None,
4452 }
4453 }
4454}
4455#[derive(Clone, Eq, PartialEq)]
4457#[non_exhaustive]
4458pub enum UpdateIssuingCardCancellationReason {
4459 Lost,
4460 Stolen,
4461 Unknown(String),
4463}
4464impl UpdateIssuingCardCancellationReason {
4465 pub fn as_str(&self) -> &str {
4466 use UpdateIssuingCardCancellationReason::*;
4467 match self {
4468 Lost => "lost",
4469 Stolen => "stolen",
4470 Unknown(v) => v,
4471 }
4472 }
4473}
4474
4475impl std::str::FromStr for UpdateIssuingCardCancellationReason {
4476 type Err = std::convert::Infallible;
4477 fn from_str(s: &str) -> Result<Self, Self::Err> {
4478 use UpdateIssuingCardCancellationReason::*;
4479 match s {
4480 "lost" => Ok(Lost),
4481 "stolen" => Ok(Stolen),
4482 v => {
4483 tracing::warn!(
4484 "Unknown value '{}' for enum '{}'",
4485 v,
4486 "UpdateIssuingCardCancellationReason"
4487 );
4488 Ok(Unknown(v.to_owned()))
4489 }
4490 }
4491 }
4492}
4493impl std::fmt::Display for UpdateIssuingCardCancellationReason {
4494 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4495 f.write_str(self.as_str())
4496 }
4497}
4498
4499#[cfg(not(feature = "redact-generated-debug"))]
4500impl std::fmt::Debug for UpdateIssuingCardCancellationReason {
4501 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4502 f.write_str(self.as_str())
4503 }
4504}
4505#[cfg(feature = "redact-generated-debug")]
4506impl std::fmt::Debug for UpdateIssuingCardCancellationReason {
4507 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4508 f.debug_struct(stringify!(UpdateIssuingCardCancellationReason)).finish_non_exhaustive()
4509 }
4510}
4511impl serde::Serialize for UpdateIssuingCardCancellationReason {
4512 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
4513 where
4514 S: serde::Serializer,
4515 {
4516 serializer.serialize_str(self.as_str())
4517 }
4518}
4519#[cfg(feature = "deserialize")]
4520impl<'de> serde::Deserialize<'de> for UpdateIssuingCardCancellationReason {
4521 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
4522 use std::str::FromStr;
4523 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
4524 Ok(Self::from_str(&s).expect("infallible"))
4525 }
4526}
4527#[derive(Clone, Eq, PartialEq)]
4529#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
4530#[derive(serde::Serialize)]
4531pub struct UpdateIssuingCardShipping {
4532 pub address: RequiredAddress,
4534 #[serde(skip_serializing_if = "Option::is_none")]
4536 pub address_validation: Option<UpdateIssuingCardShippingAddressValidation>,
4537 #[serde(skip_serializing_if = "Option::is_none")]
4539 pub customs: Option<CustomsParam>,
4540 pub name: String,
4542 #[serde(skip_serializing_if = "Option::is_none")]
4544 pub phone_number: Option<String>,
4545 #[serde(skip_serializing_if = "Option::is_none")]
4547 pub require_signature: Option<bool>,
4548 #[serde(skip_serializing_if = "Option::is_none")]
4550 pub service: Option<UpdateIssuingCardShippingService>,
4551 #[serde(rename = "type")]
4553 #[serde(skip_serializing_if = "Option::is_none")]
4554 pub type_: Option<UpdateIssuingCardShippingType>,
4555}
4556#[cfg(feature = "redact-generated-debug")]
4557impl std::fmt::Debug for UpdateIssuingCardShipping {
4558 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4559 f.debug_struct("UpdateIssuingCardShipping").finish_non_exhaustive()
4560 }
4561}
4562impl UpdateIssuingCardShipping {
4563 pub fn new(address: impl Into<RequiredAddress>, name: impl Into<String>) -> Self {
4564 Self {
4565 address: address.into(),
4566 address_validation: None,
4567 customs: None,
4568 name: name.into(),
4569 phone_number: None,
4570 require_signature: None,
4571 service: None,
4572 type_: None,
4573 }
4574 }
4575}
4576#[derive(Clone, Eq, PartialEq)]
4578#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
4579#[derive(serde::Serialize)]
4580pub struct UpdateIssuingCardShippingAddressValidation {
4581 pub mode: UpdateIssuingCardShippingAddressValidationMode,
4583}
4584#[cfg(feature = "redact-generated-debug")]
4585impl std::fmt::Debug for UpdateIssuingCardShippingAddressValidation {
4586 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4587 f.debug_struct("UpdateIssuingCardShippingAddressValidation").finish_non_exhaustive()
4588 }
4589}
4590impl UpdateIssuingCardShippingAddressValidation {
4591 pub fn new(mode: impl Into<UpdateIssuingCardShippingAddressValidationMode>) -> Self {
4592 Self { mode: mode.into() }
4593 }
4594}
4595#[derive(Clone, Eq, PartialEq)]
4597#[non_exhaustive]
4598pub enum UpdateIssuingCardShippingAddressValidationMode {
4599 Disabled,
4600 NormalizationOnly,
4601 ValidationAndNormalization,
4602 Unknown(String),
4604}
4605impl UpdateIssuingCardShippingAddressValidationMode {
4606 pub fn as_str(&self) -> &str {
4607 use UpdateIssuingCardShippingAddressValidationMode::*;
4608 match self {
4609 Disabled => "disabled",
4610 NormalizationOnly => "normalization_only",
4611 ValidationAndNormalization => "validation_and_normalization",
4612 Unknown(v) => v,
4613 }
4614 }
4615}
4616
4617impl std::str::FromStr for UpdateIssuingCardShippingAddressValidationMode {
4618 type Err = std::convert::Infallible;
4619 fn from_str(s: &str) -> Result<Self, Self::Err> {
4620 use UpdateIssuingCardShippingAddressValidationMode::*;
4621 match s {
4622 "disabled" => Ok(Disabled),
4623 "normalization_only" => Ok(NormalizationOnly),
4624 "validation_and_normalization" => Ok(ValidationAndNormalization),
4625 v => {
4626 tracing::warn!(
4627 "Unknown value '{}' for enum '{}'",
4628 v,
4629 "UpdateIssuingCardShippingAddressValidationMode"
4630 );
4631 Ok(Unknown(v.to_owned()))
4632 }
4633 }
4634 }
4635}
4636impl std::fmt::Display for UpdateIssuingCardShippingAddressValidationMode {
4637 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4638 f.write_str(self.as_str())
4639 }
4640}
4641
4642#[cfg(not(feature = "redact-generated-debug"))]
4643impl std::fmt::Debug for UpdateIssuingCardShippingAddressValidationMode {
4644 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4645 f.write_str(self.as_str())
4646 }
4647}
4648#[cfg(feature = "redact-generated-debug")]
4649impl std::fmt::Debug for UpdateIssuingCardShippingAddressValidationMode {
4650 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4651 f.debug_struct(stringify!(UpdateIssuingCardShippingAddressValidationMode))
4652 .finish_non_exhaustive()
4653 }
4654}
4655impl serde::Serialize for UpdateIssuingCardShippingAddressValidationMode {
4656 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
4657 where
4658 S: serde::Serializer,
4659 {
4660 serializer.serialize_str(self.as_str())
4661 }
4662}
4663#[cfg(feature = "deserialize")]
4664impl<'de> serde::Deserialize<'de> for UpdateIssuingCardShippingAddressValidationMode {
4665 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
4666 use std::str::FromStr;
4667 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
4668 Ok(Self::from_str(&s).expect("infallible"))
4669 }
4670}
4671#[derive(Clone, Eq, PartialEq)]
4673#[non_exhaustive]
4674pub enum UpdateIssuingCardShippingService {
4675 Express,
4676 Priority,
4677 Standard,
4678 Unknown(String),
4680}
4681impl UpdateIssuingCardShippingService {
4682 pub fn as_str(&self) -> &str {
4683 use UpdateIssuingCardShippingService::*;
4684 match self {
4685 Express => "express",
4686 Priority => "priority",
4687 Standard => "standard",
4688 Unknown(v) => v,
4689 }
4690 }
4691}
4692
4693impl std::str::FromStr for UpdateIssuingCardShippingService {
4694 type Err = std::convert::Infallible;
4695 fn from_str(s: &str) -> Result<Self, Self::Err> {
4696 use UpdateIssuingCardShippingService::*;
4697 match s {
4698 "express" => Ok(Express),
4699 "priority" => Ok(Priority),
4700 "standard" => Ok(Standard),
4701 v => {
4702 tracing::warn!(
4703 "Unknown value '{}' for enum '{}'",
4704 v,
4705 "UpdateIssuingCardShippingService"
4706 );
4707 Ok(Unknown(v.to_owned()))
4708 }
4709 }
4710 }
4711}
4712impl std::fmt::Display for UpdateIssuingCardShippingService {
4713 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4714 f.write_str(self.as_str())
4715 }
4716}
4717
4718#[cfg(not(feature = "redact-generated-debug"))]
4719impl std::fmt::Debug for UpdateIssuingCardShippingService {
4720 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4721 f.write_str(self.as_str())
4722 }
4723}
4724#[cfg(feature = "redact-generated-debug")]
4725impl std::fmt::Debug for UpdateIssuingCardShippingService {
4726 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4727 f.debug_struct(stringify!(UpdateIssuingCardShippingService)).finish_non_exhaustive()
4728 }
4729}
4730impl serde::Serialize for UpdateIssuingCardShippingService {
4731 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
4732 where
4733 S: serde::Serializer,
4734 {
4735 serializer.serialize_str(self.as_str())
4736 }
4737}
4738#[cfg(feature = "deserialize")]
4739impl<'de> serde::Deserialize<'de> for UpdateIssuingCardShippingService {
4740 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
4741 use std::str::FromStr;
4742 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
4743 Ok(Self::from_str(&s).expect("infallible"))
4744 }
4745}
4746#[derive(Clone, Eq, PartialEq)]
4748#[non_exhaustive]
4749pub enum UpdateIssuingCardShippingType {
4750 Bulk,
4751 Individual,
4752 Unknown(String),
4754}
4755impl UpdateIssuingCardShippingType {
4756 pub fn as_str(&self) -> &str {
4757 use UpdateIssuingCardShippingType::*;
4758 match self {
4759 Bulk => "bulk",
4760 Individual => "individual",
4761 Unknown(v) => v,
4762 }
4763 }
4764}
4765
4766impl std::str::FromStr for UpdateIssuingCardShippingType {
4767 type Err = std::convert::Infallible;
4768 fn from_str(s: &str) -> Result<Self, Self::Err> {
4769 use UpdateIssuingCardShippingType::*;
4770 match s {
4771 "bulk" => Ok(Bulk),
4772 "individual" => Ok(Individual),
4773 v => {
4774 tracing::warn!(
4775 "Unknown value '{}' for enum '{}'",
4776 v,
4777 "UpdateIssuingCardShippingType"
4778 );
4779 Ok(Unknown(v.to_owned()))
4780 }
4781 }
4782 }
4783}
4784impl std::fmt::Display for UpdateIssuingCardShippingType {
4785 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4786 f.write_str(self.as_str())
4787 }
4788}
4789
4790#[cfg(not(feature = "redact-generated-debug"))]
4791impl std::fmt::Debug for UpdateIssuingCardShippingType {
4792 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4793 f.write_str(self.as_str())
4794 }
4795}
4796#[cfg(feature = "redact-generated-debug")]
4797impl std::fmt::Debug for UpdateIssuingCardShippingType {
4798 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4799 f.debug_struct(stringify!(UpdateIssuingCardShippingType)).finish_non_exhaustive()
4800 }
4801}
4802impl serde::Serialize for UpdateIssuingCardShippingType {
4803 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
4804 where
4805 S: serde::Serializer,
4806 {
4807 serializer.serialize_str(self.as_str())
4808 }
4809}
4810#[cfg(feature = "deserialize")]
4811impl<'de> serde::Deserialize<'de> for UpdateIssuingCardShippingType {
4812 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
4813 use std::str::FromStr;
4814 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
4815 Ok(Self::from_str(&s).expect("infallible"))
4816 }
4817}
4818#[derive(Clone, Eq, PartialEq)]
4821#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
4822#[derive(serde::Serialize)]
4823pub struct UpdateIssuingCardSpendingControls {
4824 #[serde(skip_serializing_if = "Option::is_none")]
4830 pub allowed_card_presences: Option<Vec<UpdateIssuingCardSpendingControlsAllowedCardPresences>>,
4831 #[serde(skip_serializing_if = "Option::is_none")]
4835 pub allowed_categories: Option<Vec<UpdateIssuingCardSpendingControlsAllowedCategories>>,
4836 #[serde(skip_serializing_if = "Option::is_none")]
4843 pub allowed_merchant_countries: Option<Vec<String>>,
4844 #[serde(skip_serializing_if = "Option::is_none")]
4849 pub blocked_card_presences: Option<Vec<UpdateIssuingCardSpendingControlsBlockedCardPresences>>,
4850 #[serde(skip_serializing_if = "Option::is_none")]
4854 pub blocked_categories: Option<Vec<UpdateIssuingCardSpendingControlsBlockedCategories>>,
4855 #[serde(skip_serializing_if = "Option::is_none")]
4861 pub blocked_merchant_countries: Option<Vec<String>>,
4862 #[serde(skip_serializing_if = "Option::is_none")]
4864 pub spending_limits: Option<Vec<UpdateIssuingCardSpendingControlsSpendingLimits>>,
4865}
4866#[cfg(feature = "redact-generated-debug")]
4867impl std::fmt::Debug for UpdateIssuingCardSpendingControls {
4868 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4869 f.debug_struct("UpdateIssuingCardSpendingControls").finish_non_exhaustive()
4870 }
4871}
4872impl UpdateIssuingCardSpendingControls {
4873 pub fn new() -> Self {
4874 Self {
4875 allowed_card_presences: None,
4876 allowed_categories: None,
4877 allowed_merchant_countries: None,
4878 blocked_card_presences: None,
4879 blocked_categories: None,
4880 blocked_merchant_countries: None,
4881 spending_limits: None,
4882 }
4883 }
4884}
4885impl Default for UpdateIssuingCardSpendingControls {
4886 fn default() -> Self {
4887 Self::new()
4888 }
4889}
4890#[derive(Clone, Eq, PartialEq)]
4896#[non_exhaustive]
4897pub enum UpdateIssuingCardSpendingControlsAllowedCardPresences {
4898 NotPresent,
4899 Present,
4900 Unknown(String),
4902}
4903impl UpdateIssuingCardSpendingControlsAllowedCardPresences {
4904 pub fn as_str(&self) -> &str {
4905 use UpdateIssuingCardSpendingControlsAllowedCardPresences::*;
4906 match self {
4907 NotPresent => "not_present",
4908 Present => "present",
4909 Unknown(v) => v,
4910 }
4911 }
4912}
4913
4914impl std::str::FromStr for UpdateIssuingCardSpendingControlsAllowedCardPresences {
4915 type Err = std::convert::Infallible;
4916 fn from_str(s: &str) -> Result<Self, Self::Err> {
4917 use UpdateIssuingCardSpendingControlsAllowedCardPresences::*;
4918 match s {
4919 "not_present" => Ok(NotPresent),
4920 "present" => Ok(Present),
4921 v => {
4922 tracing::warn!(
4923 "Unknown value '{}' for enum '{}'",
4924 v,
4925 "UpdateIssuingCardSpendingControlsAllowedCardPresences"
4926 );
4927 Ok(Unknown(v.to_owned()))
4928 }
4929 }
4930 }
4931}
4932impl std::fmt::Display for UpdateIssuingCardSpendingControlsAllowedCardPresences {
4933 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4934 f.write_str(self.as_str())
4935 }
4936}
4937
4938#[cfg(not(feature = "redact-generated-debug"))]
4939impl std::fmt::Debug for UpdateIssuingCardSpendingControlsAllowedCardPresences {
4940 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4941 f.write_str(self.as_str())
4942 }
4943}
4944#[cfg(feature = "redact-generated-debug")]
4945impl std::fmt::Debug for UpdateIssuingCardSpendingControlsAllowedCardPresences {
4946 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
4947 f.debug_struct(stringify!(UpdateIssuingCardSpendingControlsAllowedCardPresences))
4948 .finish_non_exhaustive()
4949 }
4950}
4951impl serde::Serialize for UpdateIssuingCardSpendingControlsAllowedCardPresences {
4952 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
4953 where
4954 S: serde::Serializer,
4955 {
4956 serializer.serialize_str(self.as_str())
4957 }
4958}
4959#[cfg(feature = "deserialize")]
4960impl<'de> serde::Deserialize<'de> for UpdateIssuingCardSpendingControlsAllowedCardPresences {
4961 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
4962 use std::str::FromStr;
4963 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
4964 Ok(Self::from_str(&s).expect("infallible"))
4965 }
4966}
4967#[derive(Clone, Eq, PartialEq)]
4971#[non_exhaustive]
4972pub enum UpdateIssuingCardSpendingControlsAllowedCategories {
4973 AcRefrigerationRepair,
4974 AccountingBookkeepingServices,
4975 AdvertisingServices,
4976 AgriculturalCooperative,
4977 AirlinesAirCarriers,
4978 AirportsFlyingFields,
4979 AmbulanceServices,
4980 AmusementParksCarnivals,
4981 AntiqueReproductions,
4982 AntiqueShops,
4983 Aquariums,
4984 ArchitecturalSurveyingServices,
4985 ArtDealersAndGalleries,
4986 ArtistsSupplyAndCraftShops,
4987 AutoAndHomeSupplyStores,
4988 AutoBodyRepairShops,
4989 AutoPaintShops,
4990 AutoServiceShops,
4991 AutomatedCashDisburse,
4992 AutomatedFuelDispensers,
4993 AutomobileAssociations,
4994 AutomotivePartsAndAccessoriesStores,
4995 AutomotiveTireStores,
4996 BailAndBondPayments,
4997 Bakeries,
4998 BandsOrchestras,
4999 BarberAndBeautyShops,
5000 BettingCasinoGambling,
5001 BicycleShops,
5002 BilliardPoolEstablishments,
5003 BoatDealers,
5004 BoatRentalsAndLeases,
5005 BookStores,
5006 BooksPeriodicalsAndNewspapers,
5007 BowlingAlleys,
5008 BusLines,
5009 BusinessSecretarialSchools,
5010 BuyingShoppingServices,
5011 CableSatelliteAndOtherPayTelevisionAndRadio,
5012 CameraAndPhotographicSupplyStores,
5013 CandyNutAndConfectioneryStores,
5014 CarAndTruckDealersNewUsed,
5015 CarAndTruckDealersUsedOnly,
5016 CarRentalAgencies,
5017 CarWashes,
5018 CarpentryServices,
5019 CarpetUpholsteryCleaning,
5020 Caterers,
5021 CharitableAndSocialServiceOrganizationsFundraising,
5022 ChemicalsAndAlliedProducts,
5023 ChildCareServices,
5024 ChildrensAndInfantsWearStores,
5025 ChiropodistsPodiatrists,
5026 Chiropractors,
5027 CigarStoresAndStands,
5028 CivicSocialFraternalAssociations,
5029 CleaningAndMaintenance,
5030 ClothingRental,
5031 CollegesUniversities,
5032 CommercialEquipment,
5033 CommercialFootwear,
5034 CommercialPhotographyArtAndGraphics,
5035 CommuterTransportAndFerries,
5036 ComputerNetworkServices,
5037 ComputerProgramming,
5038 ComputerRepair,
5039 ComputerSoftwareStores,
5040 ComputersPeripheralsAndSoftware,
5041 ConcreteWorkServices,
5042 ConstructionMaterials,
5043 ConsultingPublicRelations,
5044 CorrespondenceSchools,
5045 CosmeticStores,
5046 CounselingServices,
5047 CountryClubs,
5048 CourierServices,
5049 CourtCosts,
5050 CreditReportingAgencies,
5051 CruiseLines,
5052 DairyProductsStores,
5053 DanceHallStudiosSchools,
5054 DatingEscortServices,
5055 DentistsOrthodontists,
5056 DepartmentStores,
5057 DetectiveAgencies,
5058 DigitalGoodsApplications,
5059 DigitalGoodsGames,
5060 DigitalGoodsLargeVolume,
5061 DigitalGoodsMedia,
5062 DirectMarketingCatalogMerchant,
5063 DirectMarketingCombinationCatalogAndRetailMerchant,
5064 DirectMarketingInboundTelemarketing,
5065 DirectMarketingInsuranceServices,
5066 DirectMarketingOther,
5067 DirectMarketingOutboundTelemarketing,
5068 DirectMarketingSubscription,
5069 DirectMarketingTravel,
5070 DiscountStores,
5071 Doctors,
5072 DoorToDoorSales,
5073 DraperyWindowCoveringAndUpholsteryStores,
5074 DrinkingPlaces,
5075 DrugStoresAndPharmacies,
5076 DrugsDrugProprietariesAndDruggistSundries,
5077 DryCleaners,
5078 DurableGoods,
5079 DutyFreeStores,
5080 EatingPlacesRestaurants,
5081 EducationalServices,
5082 ElectricRazorStores,
5083 ElectricVehicleCharging,
5084 ElectricalPartsAndEquipment,
5085 ElectricalServices,
5086 ElectronicsRepairShops,
5087 ElectronicsStores,
5088 ElementarySecondarySchools,
5089 EmergencyServicesGcasVisaUseOnly,
5090 EmploymentTempAgencies,
5091 EquipmentRental,
5092 ExterminatingServices,
5093 FamilyClothingStores,
5094 FastFoodRestaurants,
5095 FinancialInstitutions,
5096 FinesGovernmentAdministrativeEntities,
5097 FireplaceFireplaceScreensAndAccessoriesStores,
5098 FloorCoveringStores,
5099 Florists,
5100 FloristsSuppliesNurseryStockAndFlowers,
5101 FreezerAndLockerMeatProvisioners,
5102 FuelDealersNonAutomotive,
5103 FuneralServicesCrematories,
5104 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances,
5105 FurnitureRepairRefinishing,
5106 FurriersAndFurShops,
5107 GeneralServices,
5108 GiftCardNoveltyAndSouvenirShops,
5109 GlassPaintAndWallpaperStores,
5110 GlasswareCrystalStores,
5111 GolfCoursesPublic,
5112 GovernmentLicensedHorseDogRacingUsRegionOnly,
5113 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly,
5114 GovernmentOwnedLotteriesNonUsRegion,
5115 GovernmentOwnedLotteriesUsRegionOnly,
5116 GovernmentServices,
5117 GroceryStoresSupermarkets,
5118 HardwareEquipmentAndSupplies,
5119 HardwareStores,
5120 HealthAndBeautySpas,
5121 HearingAidsSalesAndSupplies,
5122 HeatingPlumbingAC,
5123 HobbyToyAndGameShops,
5124 HomeSupplyWarehouseStores,
5125 Hospitals,
5126 HotelsMotelsAndResorts,
5127 HouseholdApplianceStores,
5128 IndustrialSupplies,
5129 InformationRetrievalServices,
5130 InsuranceDefault,
5131 InsuranceUnderwritingPremiums,
5132 IntraCompanyPurchases,
5133 JewelryStoresWatchesClocksAndSilverwareStores,
5134 LandscapingServices,
5135 Laundries,
5136 LaundryCleaningServices,
5137 LegalServicesAttorneys,
5138 LuggageAndLeatherGoodsStores,
5139 LumberBuildingMaterialsStores,
5140 ManualCashDisburse,
5141 MarinasServiceAndSupplies,
5142 Marketplaces,
5143 MasonryStoneworkAndPlaster,
5144 MassageParlors,
5145 MedicalAndDentalLabs,
5146 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies,
5147 MedicalServices,
5148 MembershipOrganizations,
5149 MensAndBoysClothingAndAccessoriesStores,
5150 MensWomensClothingStores,
5151 MetalServiceCenters,
5152 Miscellaneous,
5153 MiscellaneousApparelAndAccessoryShops,
5154 MiscellaneousAutoDealers,
5155 MiscellaneousBusinessServices,
5156 MiscellaneousFoodStores,
5157 MiscellaneousGeneralMerchandise,
5158 MiscellaneousGeneralServices,
5159 MiscellaneousHomeFurnishingSpecialtyStores,
5160 MiscellaneousPublishingAndPrinting,
5161 MiscellaneousRecreationServices,
5162 MiscellaneousRepairShops,
5163 MiscellaneousSpecialtyRetail,
5164 MobileHomeDealers,
5165 MotionPictureTheaters,
5166 MotorFreightCarriersAndTrucking,
5167 MotorHomesDealers,
5168 MotorVehicleSuppliesAndNewParts,
5169 MotorcycleShopsAndDealers,
5170 MotorcycleShopsDealers,
5171 MusicStoresMusicalInstrumentsPianosAndSheetMusic,
5172 NewsDealersAndNewsstands,
5173 NonFiMoneyOrders,
5174 NonFiStoredValueCardPurchaseLoad,
5175 NondurableGoods,
5176 NurseriesLawnAndGardenSupplyStores,
5177 NursingPersonalCare,
5178 OfficeAndCommercialFurniture,
5179 OpticiansEyeglasses,
5180 OptometristsOphthalmologist,
5181 OrthopedicGoodsProstheticDevices,
5182 Osteopaths,
5183 PackageStoresBeerWineAndLiquor,
5184 PaintsVarnishesAndSupplies,
5185 ParkingLotsGarages,
5186 PassengerRailways,
5187 PawnShops,
5188 PetShopsPetFoodAndSupplies,
5189 PetroleumAndPetroleumProducts,
5190 PhotoDeveloping,
5191 PhotographicPhotocopyMicrofilmEquipmentAndSupplies,
5192 PhotographicStudios,
5193 PictureVideoProduction,
5194 PieceGoodsNotionsAndOtherDryGoods,
5195 PlumbingHeatingEquipmentAndSupplies,
5196 PoliticalOrganizations,
5197 PostalServicesGovernmentOnly,
5198 PreciousStonesAndMetalsWatchesAndJewelry,
5199 ProfessionalServices,
5200 PublicWarehousingAndStorage,
5201 QuickCopyReproAndBlueprint,
5202 Railroads,
5203 RealEstateAgentsAndManagersRentals,
5204 RecordStores,
5205 RecreationalVehicleRentals,
5206 ReligiousGoodsStores,
5207 ReligiousOrganizations,
5208 RoofingSidingSheetMetal,
5209 SecretarialSupportServices,
5210 SecurityBrokersDealers,
5211 ServiceStations,
5212 SewingNeedleworkFabricAndPieceGoodsStores,
5213 ShoeRepairHatCleaning,
5214 ShoeStores,
5215 SmallApplianceRepair,
5216 SnowmobileDealers,
5217 SpecialTradeServices,
5218 SpecialtyCleaning,
5219 SportingGoodsStores,
5220 SportingRecreationCamps,
5221 SportsAndRidingApparelStores,
5222 SportsClubsFields,
5223 StampAndCoinStores,
5224 StationaryOfficeSuppliesPrintingAndWritingPaper,
5225 StationeryStoresOfficeAndSchoolSupplyStores,
5226 SwimmingPoolsSales,
5227 TUiTravelGermany,
5228 TailorsAlterations,
5229 TaxPaymentsGovernmentAgencies,
5230 TaxPreparationServices,
5231 TaxicabsLimousines,
5232 TelecommunicationEquipmentAndTelephoneSales,
5233 TelecommunicationServices,
5234 TelegraphServices,
5235 TentAndAwningShops,
5236 TestingLaboratories,
5237 TheatricalTicketAgencies,
5238 Timeshares,
5239 TireRetreadingAndRepair,
5240 TollsBridgeFees,
5241 TouristAttractionsAndExhibits,
5242 TowingServices,
5243 TrailerParksCampgrounds,
5244 TransportationServices,
5245 TravelAgenciesTourOperators,
5246 TruckStopIteration,
5247 TruckUtilityTrailerRentals,
5248 TypesettingPlateMakingAndRelatedServices,
5249 TypewriterStores,
5250 USFederalGovernmentAgenciesOrDepartments,
5251 UniformsCommercialClothing,
5252 UsedMerchandiseAndSecondhandStores,
5253 Utilities,
5254 VarietyStores,
5255 VeterinaryServices,
5256 VideoAmusementGameSupplies,
5257 VideoGameArcades,
5258 VideoTapeRentalStores,
5259 VocationalTradeSchools,
5260 WatchJewelryRepair,
5261 WeldingRepair,
5262 WholesaleClubs,
5263 WigAndToupeeStores,
5264 WiresMoneyOrders,
5265 WomensAccessoryAndSpecialtyShops,
5266 WomensReadyToWearStores,
5267 WreckingAndSalvageYards,
5268 Unknown(String),
5270}
5271impl UpdateIssuingCardSpendingControlsAllowedCategories {
5272 pub fn as_str(&self) -> &str {
5273 use UpdateIssuingCardSpendingControlsAllowedCategories::*;
5274 match self {
5275 AcRefrigerationRepair => "ac_refrigeration_repair",
5276 AccountingBookkeepingServices => "accounting_bookkeeping_services",
5277 AdvertisingServices => "advertising_services",
5278 AgriculturalCooperative => "agricultural_cooperative",
5279 AirlinesAirCarriers => "airlines_air_carriers",
5280 AirportsFlyingFields => "airports_flying_fields",
5281 AmbulanceServices => "ambulance_services",
5282 AmusementParksCarnivals => "amusement_parks_carnivals",
5283 AntiqueReproductions => "antique_reproductions",
5284 AntiqueShops => "antique_shops",
5285 Aquariums => "aquariums",
5286 ArchitecturalSurveyingServices => "architectural_surveying_services",
5287 ArtDealersAndGalleries => "art_dealers_and_galleries",
5288 ArtistsSupplyAndCraftShops => "artists_supply_and_craft_shops",
5289 AutoAndHomeSupplyStores => "auto_and_home_supply_stores",
5290 AutoBodyRepairShops => "auto_body_repair_shops",
5291 AutoPaintShops => "auto_paint_shops",
5292 AutoServiceShops => "auto_service_shops",
5293 AutomatedCashDisburse => "automated_cash_disburse",
5294 AutomatedFuelDispensers => "automated_fuel_dispensers",
5295 AutomobileAssociations => "automobile_associations",
5296 AutomotivePartsAndAccessoriesStores => "automotive_parts_and_accessories_stores",
5297 AutomotiveTireStores => "automotive_tire_stores",
5298 BailAndBondPayments => "bail_and_bond_payments",
5299 Bakeries => "bakeries",
5300 BandsOrchestras => "bands_orchestras",
5301 BarberAndBeautyShops => "barber_and_beauty_shops",
5302 BettingCasinoGambling => "betting_casino_gambling",
5303 BicycleShops => "bicycle_shops",
5304 BilliardPoolEstablishments => "billiard_pool_establishments",
5305 BoatDealers => "boat_dealers",
5306 BoatRentalsAndLeases => "boat_rentals_and_leases",
5307 BookStores => "book_stores",
5308 BooksPeriodicalsAndNewspapers => "books_periodicals_and_newspapers",
5309 BowlingAlleys => "bowling_alleys",
5310 BusLines => "bus_lines",
5311 BusinessSecretarialSchools => "business_secretarial_schools",
5312 BuyingShoppingServices => "buying_shopping_services",
5313 CableSatelliteAndOtherPayTelevisionAndRadio => {
5314 "cable_satellite_and_other_pay_television_and_radio"
5315 }
5316 CameraAndPhotographicSupplyStores => "camera_and_photographic_supply_stores",
5317 CandyNutAndConfectioneryStores => "candy_nut_and_confectionery_stores",
5318 CarAndTruckDealersNewUsed => "car_and_truck_dealers_new_used",
5319 CarAndTruckDealersUsedOnly => "car_and_truck_dealers_used_only",
5320 CarRentalAgencies => "car_rental_agencies",
5321 CarWashes => "car_washes",
5322 CarpentryServices => "carpentry_services",
5323 CarpetUpholsteryCleaning => "carpet_upholstery_cleaning",
5324 Caterers => "caterers",
5325 CharitableAndSocialServiceOrganizationsFundraising => {
5326 "charitable_and_social_service_organizations_fundraising"
5327 }
5328 ChemicalsAndAlliedProducts => "chemicals_and_allied_products",
5329 ChildCareServices => "child_care_services",
5330 ChildrensAndInfantsWearStores => "childrens_and_infants_wear_stores",
5331 ChiropodistsPodiatrists => "chiropodists_podiatrists",
5332 Chiropractors => "chiropractors",
5333 CigarStoresAndStands => "cigar_stores_and_stands",
5334 CivicSocialFraternalAssociations => "civic_social_fraternal_associations",
5335 CleaningAndMaintenance => "cleaning_and_maintenance",
5336 ClothingRental => "clothing_rental",
5337 CollegesUniversities => "colleges_universities",
5338 CommercialEquipment => "commercial_equipment",
5339 CommercialFootwear => "commercial_footwear",
5340 CommercialPhotographyArtAndGraphics => "commercial_photography_art_and_graphics",
5341 CommuterTransportAndFerries => "commuter_transport_and_ferries",
5342 ComputerNetworkServices => "computer_network_services",
5343 ComputerProgramming => "computer_programming",
5344 ComputerRepair => "computer_repair",
5345 ComputerSoftwareStores => "computer_software_stores",
5346 ComputersPeripheralsAndSoftware => "computers_peripherals_and_software",
5347 ConcreteWorkServices => "concrete_work_services",
5348 ConstructionMaterials => "construction_materials",
5349 ConsultingPublicRelations => "consulting_public_relations",
5350 CorrespondenceSchools => "correspondence_schools",
5351 CosmeticStores => "cosmetic_stores",
5352 CounselingServices => "counseling_services",
5353 CountryClubs => "country_clubs",
5354 CourierServices => "courier_services",
5355 CourtCosts => "court_costs",
5356 CreditReportingAgencies => "credit_reporting_agencies",
5357 CruiseLines => "cruise_lines",
5358 DairyProductsStores => "dairy_products_stores",
5359 DanceHallStudiosSchools => "dance_hall_studios_schools",
5360 DatingEscortServices => "dating_escort_services",
5361 DentistsOrthodontists => "dentists_orthodontists",
5362 DepartmentStores => "department_stores",
5363 DetectiveAgencies => "detective_agencies",
5364 DigitalGoodsApplications => "digital_goods_applications",
5365 DigitalGoodsGames => "digital_goods_games",
5366 DigitalGoodsLargeVolume => "digital_goods_large_volume",
5367 DigitalGoodsMedia => "digital_goods_media",
5368 DirectMarketingCatalogMerchant => "direct_marketing_catalog_merchant",
5369 DirectMarketingCombinationCatalogAndRetailMerchant => {
5370 "direct_marketing_combination_catalog_and_retail_merchant"
5371 }
5372 DirectMarketingInboundTelemarketing => "direct_marketing_inbound_telemarketing",
5373 DirectMarketingInsuranceServices => "direct_marketing_insurance_services",
5374 DirectMarketingOther => "direct_marketing_other",
5375 DirectMarketingOutboundTelemarketing => "direct_marketing_outbound_telemarketing",
5376 DirectMarketingSubscription => "direct_marketing_subscription",
5377 DirectMarketingTravel => "direct_marketing_travel",
5378 DiscountStores => "discount_stores",
5379 Doctors => "doctors",
5380 DoorToDoorSales => "door_to_door_sales",
5381 DraperyWindowCoveringAndUpholsteryStores => {
5382 "drapery_window_covering_and_upholstery_stores"
5383 }
5384 DrinkingPlaces => "drinking_places",
5385 DrugStoresAndPharmacies => "drug_stores_and_pharmacies",
5386 DrugsDrugProprietariesAndDruggistSundries => {
5387 "drugs_drug_proprietaries_and_druggist_sundries"
5388 }
5389 DryCleaners => "dry_cleaners",
5390 DurableGoods => "durable_goods",
5391 DutyFreeStores => "duty_free_stores",
5392 EatingPlacesRestaurants => "eating_places_restaurants",
5393 EducationalServices => "educational_services",
5394 ElectricRazorStores => "electric_razor_stores",
5395 ElectricVehicleCharging => "electric_vehicle_charging",
5396 ElectricalPartsAndEquipment => "electrical_parts_and_equipment",
5397 ElectricalServices => "electrical_services",
5398 ElectronicsRepairShops => "electronics_repair_shops",
5399 ElectronicsStores => "electronics_stores",
5400 ElementarySecondarySchools => "elementary_secondary_schools",
5401 EmergencyServicesGcasVisaUseOnly => "emergency_services_gcas_visa_use_only",
5402 EmploymentTempAgencies => "employment_temp_agencies",
5403 EquipmentRental => "equipment_rental",
5404 ExterminatingServices => "exterminating_services",
5405 FamilyClothingStores => "family_clothing_stores",
5406 FastFoodRestaurants => "fast_food_restaurants",
5407 FinancialInstitutions => "financial_institutions",
5408 FinesGovernmentAdministrativeEntities => "fines_government_administrative_entities",
5409 FireplaceFireplaceScreensAndAccessoriesStores => {
5410 "fireplace_fireplace_screens_and_accessories_stores"
5411 }
5412 FloorCoveringStores => "floor_covering_stores",
5413 Florists => "florists",
5414 FloristsSuppliesNurseryStockAndFlowers => "florists_supplies_nursery_stock_and_flowers",
5415 FreezerAndLockerMeatProvisioners => "freezer_and_locker_meat_provisioners",
5416 FuelDealersNonAutomotive => "fuel_dealers_non_automotive",
5417 FuneralServicesCrematories => "funeral_services_crematories",
5418 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances => {
5419 "furniture_home_furnishings_and_equipment_stores_except_appliances"
5420 }
5421 FurnitureRepairRefinishing => "furniture_repair_refinishing",
5422 FurriersAndFurShops => "furriers_and_fur_shops",
5423 GeneralServices => "general_services",
5424 GiftCardNoveltyAndSouvenirShops => "gift_card_novelty_and_souvenir_shops",
5425 GlassPaintAndWallpaperStores => "glass_paint_and_wallpaper_stores",
5426 GlasswareCrystalStores => "glassware_crystal_stores",
5427 GolfCoursesPublic => "golf_courses_public",
5428 GovernmentLicensedHorseDogRacingUsRegionOnly => {
5429 "government_licensed_horse_dog_racing_us_region_only"
5430 }
5431 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly => {
5432 "government_licensed_online_casions_online_gambling_us_region_only"
5433 }
5434 GovernmentOwnedLotteriesNonUsRegion => "government_owned_lotteries_non_us_region",
5435 GovernmentOwnedLotteriesUsRegionOnly => "government_owned_lotteries_us_region_only",
5436 GovernmentServices => "government_services",
5437 GroceryStoresSupermarkets => "grocery_stores_supermarkets",
5438 HardwareEquipmentAndSupplies => "hardware_equipment_and_supplies",
5439 HardwareStores => "hardware_stores",
5440 HealthAndBeautySpas => "health_and_beauty_spas",
5441 HearingAidsSalesAndSupplies => "hearing_aids_sales_and_supplies",
5442 HeatingPlumbingAC => "heating_plumbing_a_c",
5443 HobbyToyAndGameShops => "hobby_toy_and_game_shops",
5444 HomeSupplyWarehouseStores => "home_supply_warehouse_stores",
5445 Hospitals => "hospitals",
5446 HotelsMotelsAndResorts => "hotels_motels_and_resorts",
5447 HouseholdApplianceStores => "household_appliance_stores",
5448 IndustrialSupplies => "industrial_supplies",
5449 InformationRetrievalServices => "information_retrieval_services",
5450 InsuranceDefault => "insurance_default",
5451 InsuranceUnderwritingPremiums => "insurance_underwriting_premiums",
5452 IntraCompanyPurchases => "intra_company_purchases",
5453 JewelryStoresWatchesClocksAndSilverwareStores => {
5454 "jewelry_stores_watches_clocks_and_silverware_stores"
5455 }
5456 LandscapingServices => "landscaping_services",
5457 Laundries => "laundries",
5458 LaundryCleaningServices => "laundry_cleaning_services",
5459 LegalServicesAttorneys => "legal_services_attorneys",
5460 LuggageAndLeatherGoodsStores => "luggage_and_leather_goods_stores",
5461 LumberBuildingMaterialsStores => "lumber_building_materials_stores",
5462 ManualCashDisburse => "manual_cash_disburse",
5463 MarinasServiceAndSupplies => "marinas_service_and_supplies",
5464 Marketplaces => "marketplaces",
5465 MasonryStoneworkAndPlaster => "masonry_stonework_and_plaster",
5466 MassageParlors => "massage_parlors",
5467 MedicalAndDentalLabs => "medical_and_dental_labs",
5468 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies => {
5469 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"
5470 }
5471 MedicalServices => "medical_services",
5472 MembershipOrganizations => "membership_organizations",
5473 MensAndBoysClothingAndAccessoriesStores => {
5474 "mens_and_boys_clothing_and_accessories_stores"
5475 }
5476 MensWomensClothingStores => "mens_womens_clothing_stores",
5477 MetalServiceCenters => "metal_service_centers",
5478 Miscellaneous => "miscellaneous",
5479 MiscellaneousApparelAndAccessoryShops => "miscellaneous_apparel_and_accessory_shops",
5480 MiscellaneousAutoDealers => "miscellaneous_auto_dealers",
5481 MiscellaneousBusinessServices => "miscellaneous_business_services",
5482 MiscellaneousFoodStores => "miscellaneous_food_stores",
5483 MiscellaneousGeneralMerchandise => "miscellaneous_general_merchandise",
5484 MiscellaneousGeneralServices => "miscellaneous_general_services",
5485 MiscellaneousHomeFurnishingSpecialtyStores => {
5486 "miscellaneous_home_furnishing_specialty_stores"
5487 }
5488 MiscellaneousPublishingAndPrinting => "miscellaneous_publishing_and_printing",
5489 MiscellaneousRecreationServices => "miscellaneous_recreation_services",
5490 MiscellaneousRepairShops => "miscellaneous_repair_shops",
5491 MiscellaneousSpecialtyRetail => "miscellaneous_specialty_retail",
5492 MobileHomeDealers => "mobile_home_dealers",
5493 MotionPictureTheaters => "motion_picture_theaters",
5494 MotorFreightCarriersAndTrucking => "motor_freight_carriers_and_trucking",
5495 MotorHomesDealers => "motor_homes_dealers",
5496 MotorVehicleSuppliesAndNewParts => "motor_vehicle_supplies_and_new_parts",
5497 MotorcycleShopsAndDealers => "motorcycle_shops_and_dealers",
5498 MotorcycleShopsDealers => "motorcycle_shops_dealers",
5499 MusicStoresMusicalInstrumentsPianosAndSheetMusic => {
5500 "music_stores_musical_instruments_pianos_and_sheet_music"
5501 }
5502 NewsDealersAndNewsstands => "news_dealers_and_newsstands",
5503 NonFiMoneyOrders => "non_fi_money_orders",
5504 NonFiStoredValueCardPurchaseLoad => "non_fi_stored_value_card_purchase_load",
5505 NondurableGoods => "nondurable_goods",
5506 NurseriesLawnAndGardenSupplyStores => "nurseries_lawn_and_garden_supply_stores",
5507 NursingPersonalCare => "nursing_personal_care",
5508 OfficeAndCommercialFurniture => "office_and_commercial_furniture",
5509 OpticiansEyeglasses => "opticians_eyeglasses",
5510 OptometristsOphthalmologist => "optometrists_ophthalmologist",
5511 OrthopedicGoodsProstheticDevices => "orthopedic_goods_prosthetic_devices",
5512 Osteopaths => "osteopaths",
5513 PackageStoresBeerWineAndLiquor => "package_stores_beer_wine_and_liquor",
5514 PaintsVarnishesAndSupplies => "paints_varnishes_and_supplies",
5515 ParkingLotsGarages => "parking_lots_garages",
5516 PassengerRailways => "passenger_railways",
5517 PawnShops => "pawn_shops",
5518 PetShopsPetFoodAndSupplies => "pet_shops_pet_food_and_supplies",
5519 PetroleumAndPetroleumProducts => "petroleum_and_petroleum_products",
5520 PhotoDeveloping => "photo_developing",
5521 PhotographicPhotocopyMicrofilmEquipmentAndSupplies => {
5522 "photographic_photocopy_microfilm_equipment_and_supplies"
5523 }
5524 PhotographicStudios => "photographic_studios",
5525 PictureVideoProduction => "picture_video_production",
5526 PieceGoodsNotionsAndOtherDryGoods => "piece_goods_notions_and_other_dry_goods",
5527 PlumbingHeatingEquipmentAndSupplies => "plumbing_heating_equipment_and_supplies",
5528 PoliticalOrganizations => "political_organizations",
5529 PostalServicesGovernmentOnly => "postal_services_government_only",
5530 PreciousStonesAndMetalsWatchesAndJewelry => {
5531 "precious_stones_and_metals_watches_and_jewelry"
5532 }
5533 ProfessionalServices => "professional_services",
5534 PublicWarehousingAndStorage => "public_warehousing_and_storage",
5535 QuickCopyReproAndBlueprint => "quick_copy_repro_and_blueprint",
5536 Railroads => "railroads",
5537 RealEstateAgentsAndManagersRentals => "real_estate_agents_and_managers_rentals",
5538 RecordStores => "record_stores",
5539 RecreationalVehicleRentals => "recreational_vehicle_rentals",
5540 ReligiousGoodsStores => "religious_goods_stores",
5541 ReligiousOrganizations => "religious_organizations",
5542 RoofingSidingSheetMetal => "roofing_siding_sheet_metal",
5543 SecretarialSupportServices => "secretarial_support_services",
5544 SecurityBrokersDealers => "security_brokers_dealers",
5545 ServiceStations => "service_stations",
5546 SewingNeedleworkFabricAndPieceGoodsStores => {
5547 "sewing_needlework_fabric_and_piece_goods_stores"
5548 }
5549 ShoeRepairHatCleaning => "shoe_repair_hat_cleaning",
5550 ShoeStores => "shoe_stores",
5551 SmallApplianceRepair => "small_appliance_repair",
5552 SnowmobileDealers => "snowmobile_dealers",
5553 SpecialTradeServices => "special_trade_services",
5554 SpecialtyCleaning => "specialty_cleaning",
5555 SportingGoodsStores => "sporting_goods_stores",
5556 SportingRecreationCamps => "sporting_recreation_camps",
5557 SportsAndRidingApparelStores => "sports_and_riding_apparel_stores",
5558 SportsClubsFields => "sports_clubs_fields",
5559 StampAndCoinStores => "stamp_and_coin_stores",
5560 StationaryOfficeSuppliesPrintingAndWritingPaper => {
5561 "stationary_office_supplies_printing_and_writing_paper"
5562 }
5563 StationeryStoresOfficeAndSchoolSupplyStores => {
5564 "stationery_stores_office_and_school_supply_stores"
5565 }
5566 SwimmingPoolsSales => "swimming_pools_sales",
5567 TUiTravelGermany => "t_ui_travel_germany",
5568 TailorsAlterations => "tailors_alterations",
5569 TaxPaymentsGovernmentAgencies => "tax_payments_government_agencies",
5570 TaxPreparationServices => "tax_preparation_services",
5571 TaxicabsLimousines => "taxicabs_limousines",
5572 TelecommunicationEquipmentAndTelephoneSales => {
5573 "telecommunication_equipment_and_telephone_sales"
5574 }
5575 TelecommunicationServices => "telecommunication_services",
5576 TelegraphServices => "telegraph_services",
5577 TentAndAwningShops => "tent_and_awning_shops",
5578 TestingLaboratories => "testing_laboratories",
5579 TheatricalTicketAgencies => "theatrical_ticket_agencies",
5580 Timeshares => "timeshares",
5581 TireRetreadingAndRepair => "tire_retreading_and_repair",
5582 TollsBridgeFees => "tolls_bridge_fees",
5583 TouristAttractionsAndExhibits => "tourist_attractions_and_exhibits",
5584 TowingServices => "towing_services",
5585 TrailerParksCampgrounds => "trailer_parks_campgrounds",
5586 TransportationServices => "transportation_services",
5587 TravelAgenciesTourOperators => "travel_agencies_tour_operators",
5588 TruckStopIteration => "truck_stop_iteration",
5589 TruckUtilityTrailerRentals => "truck_utility_trailer_rentals",
5590 TypesettingPlateMakingAndRelatedServices => {
5591 "typesetting_plate_making_and_related_services"
5592 }
5593 TypewriterStores => "typewriter_stores",
5594 USFederalGovernmentAgenciesOrDepartments => {
5595 "u_s_federal_government_agencies_or_departments"
5596 }
5597 UniformsCommercialClothing => "uniforms_commercial_clothing",
5598 UsedMerchandiseAndSecondhandStores => "used_merchandise_and_secondhand_stores",
5599 Utilities => "utilities",
5600 VarietyStores => "variety_stores",
5601 VeterinaryServices => "veterinary_services",
5602 VideoAmusementGameSupplies => "video_amusement_game_supplies",
5603 VideoGameArcades => "video_game_arcades",
5604 VideoTapeRentalStores => "video_tape_rental_stores",
5605 VocationalTradeSchools => "vocational_trade_schools",
5606 WatchJewelryRepair => "watch_jewelry_repair",
5607 WeldingRepair => "welding_repair",
5608 WholesaleClubs => "wholesale_clubs",
5609 WigAndToupeeStores => "wig_and_toupee_stores",
5610 WiresMoneyOrders => "wires_money_orders",
5611 WomensAccessoryAndSpecialtyShops => "womens_accessory_and_specialty_shops",
5612 WomensReadyToWearStores => "womens_ready_to_wear_stores",
5613 WreckingAndSalvageYards => "wrecking_and_salvage_yards",
5614 Unknown(v) => v,
5615 }
5616 }
5617}
5618
5619impl std::str::FromStr for UpdateIssuingCardSpendingControlsAllowedCategories {
5620 type Err = std::convert::Infallible;
5621 fn from_str(s: &str) -> Result<Self, Self::Err> {
5622 use UpdateIssuingCardSpendingControlsAllowedCategories::*;
5623 match s {
5624 "ac_refrigeration_repair" => Ok(AcRefrigerationRepair),
5625 "accounting_bookkeeping_services" => Ok(AccountingBookkeepingServices),
5626 "advertising_services" => Ok(AdvertisingServices),
5627 "agricultural_cooperative" => Ok(AgriculturalCooperative),
5628 "airlines_air_carriers" => Ok(AirlinesAirCarriers),
5629 "airports_flying_fields" => Ok(AirportsFlyingFields),
5630 "ambulance_services" => Ok(AmbulanceServices),
5631 "amusement_parks_carnivals" => Ok(AmusementParksCarnivals),
5632 "antique_reproductions" => Ok(AntiqueReproductions),
5633 "antique_shops" => Ok(AntiqueShops),
5634 "aquariums" => Ok(Aquariums),
5635 "architectural_surveying_services" => Ok(ArchitecturalSurveyingServices),
5636 "art_dealers_and_galleries" => Ok(ArtDealersAndGalleries),
5637 "artists_supply_and_craft_shops" => Ok(ArtistsSupplyAndCraftShops),
5638 "auto_and_home_supply_stores" => Ok(AutoAndHomeSupplyStores),
5639 "auto_body_repair_shops" => Ok(AutoBodyRepairShops),
5640 "auto_paint_shops" => Ok(AutoPaintShops),
5641 "auto_service_shops" => Ok(AutoServiceShops),
5642 "automated_cash_disburse" => Ok(AutomatedCashDisburse),
5643 "automated_fuel_dispensers" => Ok(AutomatedFuelDispensers),
5644 "automobile_associations" => Ok(AutomobileAssociations),
5645 "automotive_parts_and_accessories_stores" => Ok(AutomotivePartsAndAccessoriesStores),
5646 "automotive_tire_stores" => Ok(AutomotiveTireStores),
5647 "bail_and_bond_payments" => Ok(BailAndBondPayments),
5648 "bakeries" => Ok(Bakeries),
5649 "bands_orchestras" => Ok(BandsOrchestras),
5650 "barber_and_beauty_shops" => Ok(BarberAndBeautyShops),
5651 "betting_casino_gambling" => Ok(BettingCasinoGambling),
5652 "bicycle_shops" => Ok(BicycleShops),
5653 "billiard_pool_establishments" => Ok(BilliardPoolEstablishments),
5654 "boat_dealers" => Ok(BoatDealers),
5655 "boat_rentals_and_leases" => Ok(BoatRentalsAndLeases),
5656 "book_stores" => Ok(BookStores),
5657 "books_periodicals_and_newspapers" => Ok(BooksPeriodicalsAndNewspapers),
5658 "bowling_alleys" => Ok(BowlingAlleys),
5659 "bus_lines" => Ok(BusLines),
5660 "business_secretarial_schools" => Ok(BusinessSecretarialSchools),
5661 "buying_shopping_services" => Ok(BuyingShoppingServices),
5662 "cable_satellite_and_other_pay_television_and_radio" => {
5663 Ok(CableSatelliteAndOtherPayTelevisionAndRadio)
5664 }
5665 "camera_and_photographic_supply_stores" => Ok(CameraAndPhotographicSupplyStores),
5666 "candy_nut_and_confectionery_stores" => Ok(CandyNutAndConfectioneryStores),
5667 "car_and_truck_dealers_new_used" => Ok(CarAndTruckDealersNewUsed),
5668 "car_and_truck_dealers_used_only" => Ok(CarAndTruckDealersUsedOnly),
5669 "car_rental_agencies" => Ok(CarRentalAgencies),
5670 "car_washes" => Ok(CarWashes),
5671 "carpentry_services" => Ok(CarpentryServices),
5672 "carpet_upholstery_cleaning" => Ok(CarpetUpholsteryCleaning),
5673 "caterers" => Ok(Caterers),
5674 "charitable_and_social_service_organizations_fundraising" => {
5675 Ok(CharitableAndSocialServiceOrganizationsFundraising)
5676 }
5677 "chemicals_and_allied_products" => Ok(ChemicalsAndAlliedProducts),
5678 "child_care_services" => Ok(ChildCareServices),
5679 "childrens_and_infants_wear_stores" => Ok(ChildrensAndInfantsWearStores),
5680 "chiropodists_podiatrists" => Ok(ChiropodistsPodiatrists),
5681 "chiropractors" => Ok(Chiropractors),
5682 "cigar_stores_and_stands" => Ok(CigarStoresAndStands),
5683 "civic_social_fraternal_associations" => Ok(CivicSocialFraternalAssociations),
5684 "cleaning_and_maintenance" => Ok(CleaningAndMaintenance),
5685 "clothing_rental" => Ok(ClothingRental),
5686 "colleges_universities" => Ok(CollegesUniversities),
5687 "commercial_equipment" => Ok(CommercialEquipment),
5688 "commercial_footwear" => Ok(CommercialFootwear),
5689 "commercial_photography_art_and_graphics" => Ok(CommercialPhotographyArtAndGraphics),
5690 "commuter_transport_and_ferries" => Ok(CommuterTransportAndFerries),
5691 "computer_network_services" => Ok(ComputerNetworkServices),
5692 "computer_programming" => Ok(ComputerProgramming),
5693 "computer_repair" => Ok(ComputerRepair),
5694 "computer_software_stores" => Ok(ComputerSoftwareStores),
5695 "computers_peripherals_and_software" => Ok(ComputersPeripheralsAndSoftware),
5696 "concrete_work_services" => Ok(ConcreteWorkServices),
5697 "construction_materials" => Ok(ConstructionMaterials),
5698 "consulting_public_relations" => Ok(ConsultingPublicRelations),
5699 "correspondence_schools" => Ok(CorrespondenceSchools),
5700 "cosmetic_stores" => Ok(CosmeticStores),
5701 "counseling_services" => Ok(CounselingServices),
5702 "country_clubs" => Ok(CountryClubs),
5703 "courier_services" => Ok(CourierServices),
5704 "court_costs" => Ok(CourtCosts),
5705 "credit_reporting_agencies" => Ok(CreditReportingAgencies),
5706 "cruise_lines" => Ok(CruiseLines),
5707 "dairy_products_stores" => Ok(DairyProductsStores),
5708 "dance_hall_studios_schools" => Ok(DanceHallStudiosSchools),
5709 "dating_escort_services" => Ok(DatingEscortServices),
5710 "dentists_orthodontists" => Ok(DentistsOrthodontists),
5711 "department_stores" => Ok(DepartmentStores),
5712 "detective_agencies" => Ok(DetectiveAgencies),
5713 "digital_goods_applications" => Ok(DigitalGoodsApplications),
5714 "digital_goods_games" => Ok(DigitalGoodsGames),
5715 "digital_goods_large_volume" => Ok(DigitalGoodsLargeVolume),
5716 "digital_goods_media" => Ok(DigitalGoodsMedia),
5717 "direct_marketing_catalog_merchant" => Ok(DirectMarketingCatalogMerchant),
5718 "direct_marketing_combination_catalog_and_retail_merchant" => {
5719 Ok(DirectMarketingCombinationCatalogAndRetailMerchant)
5720 }
5721 "direct_marketing_inbound_telemarketing" => Ok(DirectMarketingInboundTelemarketing),
5722 "direct_marketing_insurance_services" => Ok(DirectMarketingInsuranceServices),
5723 "direct_marketing_other" => Ok(DirectMarketingOther),
5724 "direct_marketing_outbound_telemarketing" => Ok(DirectMarketingOutboundTelemarketing),
5725 "direct_marketing_subscription" => Ok(DirectMarketingSubscription),
5726 "direct_marketing_travel" => Ok(DirectMarketingTravel),
5727 "discount_stores" => Ok(DiscountStores),
5728 "doctors" => Ok(Doctors),
5729 "door_to_door_sales" => Ok(DoorToDoorSales),
5730 "drapery_window_covering_and_upholstery_stores" => {
5731 Ok(DraperyWindowCoveringAndUpholsteryStores)
5732 }
5733 "drinking_places" => Ok(DrinkingPlaces),
5734 "drug_stores_and_pharmacies" => Ok(DrugStoresAndPharmacies),
5735 "drugs_drug_proprietaries_and_druggist_sundries" => {
5736 Ok(DrugsDrugProprietariesAndDruggistSundries)
5737 }
5738 "dry_cleaners" => Ok(DryCleaners),
5739 "durable_goods" => Ok(DurableGoods),
5740 "duty_free_stores" => Ok(DutyFreeStores),
5741 "eating_places_restaurants" => Ok(EatingPlacesRestaurants),
5742 "educational_services" => Ok(EducationalServices),
5743 "electric_razor_stores" => Ok(ElectricRazorStores),
5744 "electric_vehicle_charging" => Ok(ElectricVehicleCharging),
5745 "electrical_parts_and_equipment" => Ok(ElectricalPartsAndEquipment),
5746 "electrical_services" => Ok(ElectricalServices),
5747 "electronics_repair_shops" => Ok(ElectronicsRepairShops),
5748 "electronics_stores" => Ok(ElectronicsStores),
5749 "elementary_secondary_schools" => Ok(ElementarySecondarySchools),
5750 "emergency_services_gcas_visa_use_only" => Ok(EmergencyServicesGcasVisaUseOnly),
5751 "employment_temp_agencies" => Ok(EmploymentTempAgencies),
5752 "equipment_rental" => Ok(EquipmentRental),
5753 "exterminating_services" => Ok(ExterminatingServices),
5754 "family_clothing_stores" => Ok(FamilyClothingStores),
5755 "fast_food_restaurants" => Ok(FastFoodRestaurants),
5756 "financial_institutions" => Ok(FinancialInstitutions),
5757 "fines_government_administrative_entities" => Ok(FinesGovernmentAdministrativeEntities),
5758 "fireplace_fireplace_screens_and_accessories_stores" => {
5759 Ok(FireplaceFireplaceScreensAndAccessoriesStores)
5760 }
5761 "floor_covering_stores" => Ok(FloorCoveringStores),
5762 "florists" => Ok(Florists),
5763 "florists_supplies_nursery_stock_and_flowers" => {
5764 Ok(FloristsSuppliesNurseryStockAndFlowers)
5765 }
5766 "freezer_and_locker_meat_provisioners" => Ok(FreezerAndLockerMeatProvisioners),
5767 "fuel_dealers_non_automotive" => Ok(FuelDealersNonAutomotive),
5768 "funeral_services_crematories" => Ok(FuneralServicesCrematories),
5769 "furniture_home_furnishings_and_equipment_stores_except_appliances" => {
5770 Ok(FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances)
5771 }
5772 "furniture_repair_refinishing" => Ok(FurnitureRepairRefinishing),
5773 "furriers_and_fur_shops" => Ok(FurriersAndFurShops),
5774 "general_services" => Ok(GeneralServices),
5775 "gift_card_novelty_and_souvenir_shops" => Ok(GiftCardNoveltyAndSouvenirShops),
5776 "glass_paint_and_wallpaper_stores" => Ok(GlassPaintAndWallpaperStores),
5777 "glassware_crystal_stores" => Ok(GlasswareCrystalStores),
5778 "golf_courses_public" => Ok(GolfCoursesPublic),
5779 "government_licensed_horse_dog_racing_us_region_only" => {
5780 Ok(GovernmentLicensedHorseDogRacingUsRegionOnly)
5781 }
5782 "government_licensed_online_casions_online_gambling_us_region_only" => {
5783 Ok(GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly)
5784 }
5785 "government_owned_lotteries_non_us_region" => Ok(GovernmentOwnedLotteriesNonUsRegion),
5786 "government_owned_lotteries_us_region_only" => Ok(GovernmentOwnedLotteriesUsRegionOnly),
5787 "government_services" => Ok(GovernmentServices),
5788 "grocery_stores_supermarkets" => Ok(GroceryStoresSupermarkets),
5789 "hardware_equipment_and_supplies" => Ok(HardwareEquipmentAndSupplies),
5790 "hardware_stores" => Ok(HardwareStores),
5791 "health_and_beauty_spas" => Ok(HealthAndBeautySpas),
5792 "hearing_aids_sales_and_supplies" => Ok(HearingAidsSalesAndSupplies),
5793 "heating_plumbing_a_c" => Ok(HeatingPlumbingAC),
5794 "hobby_toy_and_game_shops" => Ok(HobbyToyAndGameShops),
5795 "home_supply_warehouse_stores" => Ok(HomeSupplyWarehouseStores),
5796 "hospitals" => Ok(Hospitals),
5797 "hotels_motels_and_resorts" => Ok(HotelsMotelsAndResorts),
5798 "household_appliance_stores" => Ok(HouseholdApplianceStores),
5799 "industrial_supplies" => Ok(IndustrialSupplies),
5800 "information_retrieval_services" => Ok(InformationRetrievalServices),
5801 "insurance_default" => Ok(InsuranceDefault),
5802 "insurance_underwriting_premiums" => Ok(InsuranceUnderwritingPremiums),
5803 "intra_company_purchases" => Ok(IntraCompanyPurchases),
5804 "jewelry_stores_watches_clocks_and_silverware_stores" => {
5805 Ok(JewelryStoresWatchesClocksAndSilverwareStores)
5806 }
5807 "landscaping_services" => Ok(LandscapingServices),
5808 "laundries" => Ok(Laundries),
5809 "laundry_cleaning_services" => Ok(LaundryCleaningServices),
5810 "legal_services_attorneys" => Ok(LegalServicesAttorneys),
5811 "luggage_and_leather_goods_stores" => Ok(LuggageAndLeatherGoodsStores),
5812 "lumber_building_materials_stores" => Ok(LumberBuildingMaterialsStores),
5813 "manual_cash_disburse" => Ok(ManualCashDisburse),
5814 "marinas_service_and_supplies" => Ok(MarinasServiceAndSupplies),
5815 "marketplaces" => Ok(Marketplaces),
5816 "masonry_stonework_and_plaster" => Ok(MasonryStoneworkAndPlaster),
5817 "massage_parlors" => Ok(MassageParlors),
5818 "medical_and_dental_labs" => Ok(MedicalAndDentalLabs),
5819 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" => {
5820 Ok(MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies)
5821 }
5822 "medical_services" => Ok(MedicalServices),
5823 "membership_organizations" => Ok(MembershipOrganizations),
5824 "mens_and_boys_clothing_and_accessories_stores" => {
5825 Ok(MensAndBoysClothingAndAccessoriesStores)
5826 }
5827 "mens_womens_clothing_stores" => Ok(MensWomensClothingStores),
5828 "metal_service_centers" => Ok(MetalServiceCenters),
5829 "miscellaneous" => Ok(Miscellaneous),
5830 "miscellaneous_apparel_and_accessory_shops" => {
5831 Ok(MiscellaneousApparelAndAccessoryShops)
5832 }
5833 "miscellaneous_auto_dealers" => Ok(MiscellaneousAutoDealers),
5834 "miscellaneous_business_services" => Ok(MiscellaneousBusinessServices),
5835 "miscellaneous_food_stores" => Ok(MiscellaneousFoodStores),
5836 "miscellaneous_general_merchandise" => Ok(MiscellaneousGeneralMerchandise),
5837 "miscellaneous_general_services" => Ok(MiscellaneousGeneralServices),
5838 "miscellaneous_home_furnishing_specialty_stores" => {
5839 Ok(MiscellaneousHomeFurnishingSpecialtyStores)
5840 }
5841 "miscellaneous_publishing_and_printing" => Ok(MiscellaneousPublishingAndPrinting),
5842 "miscellaneous_recreation_services" => Ok(MiscellaneousRecreationServices),
5843 "miscellaneous_repair_shops" => Ok(MiscellaneousRepairShops),
5844 "miscellaneous_specialty_retail" => Ok(MiscellaneousSpecialtyRetail),
5845 "mobile_home_dealers" => Ok(MobileHomeDealers),
5846 "motion_picture_theaters" => Ok(MotionPictureTheaters),
5847 "motor_freight_carriers_and_trucking" => Ok(MotorFreightCarriersAndTrucking),
5848 "motor_homes_dealers" => Ok(MotorHomesDealers),
5849 "motor_vehicle_supplies_and_new_parts" => Ok(MotorVehicleSuppliesAndNewParts),
5850 "motorcycle_shops_and_dealers" => Ok(MotorcycleShopsAndDealers),
5851 "motorcycle_shops_dealers" => Ok(MotorcycleShopsDealers),
5852 "music_stores_musical_instruments_pianos_and_sheet_music" => {
5853 Ok(MusicStoresMusicalInstrumentsPianosAndSheetMusic)
5854 }
5855 "news_dealers_and_newsstands" => Ok(NewsDealersAndNewsstands),
5856 "non_fi_money_orders" => Ok(NonFiMoneyOrders),
5857 "non_fi_stored_value_card_purchase_load" => Ok(NonFiStoredValueCardPurchaseLoad),
5858 "nondurable_goods" => Ok(NondurableGoods),
5859 "nurseries_lawn_and_garden_supply_stores" => Ok(NurseriesLawnAndGardenSupplyStores),
5860 "nursing_personal_care" => Ok(NursingPersonalCare),
5861 "office_and_commercial_furniture" => Ok(OfficeAndCommercialFurniture),
5862 "opticians_eyeglasses" => Ok(OpticiansEyeglasses),
5863 "optometrists_ophthalmologist" => Ok(OptometristsOphthalmologist),
5864 "orthopedic_goods_prosthetic_devices" => Ok(OrthopedicGoodsProstheticDevices),
5865 "osteopaths" => Ok(Osteopaths),
5866 "package_stores_beer_wine_and_liquor" => Ok(PackageStoresBeerWineAndLiquor),
5867 "paints_varnishes_and_supplies" => Ok(PaintsVarnishesAndSupplies),
5868 "parking_lots_garages" => Ok(ParkingLotsGarages),
5869 "passenger_railways" => Ok(PassengerRailways),
5870 "pawn_shops" => Ok(PawnShops),
5871 "pet_shops_pet_food_and_supplies" => Ok(PetShopsPetFoodAndSupplies),
5872 "petroleum_and_petroleum_products" => Ok(PetroleumAndPetroleumProducts),
5873 "photo_developing" => Ok(PhotoDeveloping),
5874 "photographic_photocopy_microfilm_equipment_and_supplies" => {
5875 Ok(PhotographicPhotocopyMicrofilmEquipmentAndSupplies)
5876 }
5877 "photographic_studios" => Ok(PhotographicStudios),
5878 "picture_video_production" => Ok(PictureVideoProduction),
5879 "piece_goods_notions_and_other_dry_goods" => Ok(PieceGoodsNotionsAndOtherDryGoods),
5880 "plumbing_heating_equipment_and_supplies" => Ok(PlumbingHeatingEquipmentAndSupplies),
5881 "political_organizations" => Ok(PoliticalOrganizations),
5882 "postal_services_government_only" => Ok(PostalServicesGovernmentOnly),
5883 "precious_stones_and_metals_watches_and_jewelry" => {
5884 Ok(PreciousStonesAndMetalsWatchesAndJewelry)
5885 }
5886 "professional_services" => Ok(ProfessionalServices),
5887 "public_warehousing_and_storage" => Ok(PublicWarehousingAndStorage),
5888 "quick_copy_repro_and_blueprint" => Ok(QuickCopyReproAndBlueprint),
5889 "railroads" => Ok(Railroads),
5890 "real_estate_agents_and_managers_rentals" => Ok(RealEstateAgentsAndManagersRentals),
5891 "record_stores" => Ok(RecordStores),
5892 "recreational_vehicle_rentals" => Ok(RecreationalVehicleRentals),
5893 "religious_goods_stores" => Ok(ReligiousGoodsStores),
5894 "religious_organizations" => Ok(ReligiousOrganizations),
5895 "roofing_siding_sheet_metal" => Ok(RoofingSidingSheetMetal),
5896 "secretarial_support_services" => Ok(SecretarialSupportServices),
5897 "security_brokers_dealers" => Ok(SecurityBrokersDealers),
5898 "service_stations" => Ok(ServiceStations),
5899 "sewing_needlework_fabric_and_piece_goods_stores" => {
5900 Ok(SewingNeedleworkFabricAndPieceGoodsStores)
5901 }
5902 "shoe_repair_hat_cleaning" => Ok(ShoeRepairHatCleaning),
5903 "shoe_stores" => Ok(ShoeStores),
5904 "small_appliance_repair" => Ok(SmallApplianceRepair),
5905 "snowmobile_dealers" => Ok(SnowmobileDealers),
5906 "special_trade_services" => Ok(SpecialTradeServices),
5907 "specialty_cleaning" => Ok(SpecialtyCleaning),
5908 "sporting_goods_stores" => Ok(SportingGoodsStores),
5909 "sporting_recreation_camps" => Ok(SportingRecreationCamps),
5910 "sports_and_riding_apparel_stores" => Ok(SportsAndRidingApparelStores),
5911 "sports_clubs_fields" => Ok(SportsClubsFields),
5912 "stamp_and_coin_stores" => Ok(StampAndCoinStores),
5913 "stationary_office_supplies_printing_and_writing_paper" => {
5914 Ok(StationaryOfficeSuppliesPrintingAndWritingPaper)
5915 }
5916 "stationery_stores_office_and_school_supply_stores" => {
5917 Ok(StationeryStoresOfficeAndSchoolSupplyStores)
5918 }
5919 "swimming_pools_sales" => Ok(SwimmingPoolsSales),
5920 "t_ui_travel_germany" => Ok(TUiTravelGermany),
5921 "tailors_alterations" => Ok(TailorsAlterations),
5922 "tax_payments_government_agencies" => Ok(TaxPaymentsGovernmentAgencies),
5923 "tax_preparation_services" => Ok(TaxPreparationServices),
5924 "taxicabs_limousines" => Ok(TaxicabsLimousines),
5925 "telecommunication_equipment_and_telephone_sales" => {
5926 Ok(TelecommunicationEquipmentAndTelephoneSales)
5927 }
5928 "telecommunication_services" => Ok(TelecommunicationServices),
5929 "telegraph_services" => Ok(TelegraphServices),
5930 "tent_and_awning_shops" => Ok(TentAndAwningShops),
5931 "testing_laboratories" => Ok(TestingLaboratories),
5932 "theatrical_ticket_agencies" => Ok(TheatricalTicketAgencies),
5933 "timeshares" => Ok(Timeshares),
5934 "tire_retreading_and_repair" => Ok(TireRetreadingAndRepair),
5935 "tolls_bridge_fees" => Ok(TollsBridgeFees),
5936 "tourist_attractions_and_exhibits" => Ok(TouristAttractionsAndExhibits),
5937 "towing_services" => Ok(TowingServices),
5938 "trailer_parks_campgrounds" => Ok(TrailerParksCampgrounds),
5939 "transportation_services" => Ok(TransportationServices),
5940 "travel_agencies_tour_operators" => Ok(TravelAgenciesTourOperators),
5941 "truck_stop_iteration" => Ok(TruckStopIteration),
5942 "truck_utility_trailer_rentals" => Ok(TruckUtilityTrailerRentals),
5943 "typesetting_plate_making_and_related_services" => {
5944 Ok(TypesettingPlateMakingAndRelatedServices)
5945 }
5946 "typewriter_stores" => Ok(TypewriterStores),
5947 "u_s_federal_government_agencies_or_departments" => {
5948 Ok(USFederalGovernmentAgenciesOrDepartments)
5949 }
5950 "uniforms_commercial_clothing" => Ok(UniformsCommercialClothing),
5951 "used_merchandise_and_secondhand_stores" => Ok(UsedMerchandiseAndSecondhandStores),
5952 "utilities" => Ok(Utilities),
5953 "variety_stores" => Ok(VarietyStores),
5954 "veterinary_services" => Ok(VeterinaryServices),
5955 "video_amusement_game_supplies" => Ok(VideoAmusementGameSupplies),
5956 "video_game_arcades" => Ok(VideoGameArcades),
5957 "video_tape_rental_stores" => Ok(VideoTapeRentalStores),
5958 "vocational_trade_schools" => Ok(VocationalTradeSchools),
5959 "watch_jewelry_repair" => Ok(WatchJewelryRepair),
5960 "welding_repair" => Ok(WeldingRepair),
5961 "wholesale_clubs" => Ok(WholesaleClubs),
5962 "wig_and_toupee_stores" => Ok(WigAndToupeeStores),
5963 "wires_money_orders" => Ok(WiresMoneyOrders),
5964 "womens_accessory_and_specialty_shops" => Ok(WomensAccessoryAndSpecialtyShops),
5965 "womens_ready_to_wear_stores" => Ok(WomensReadyToWearStores),
5966 "wrecking_and_salvage_yards" => Ok(WreckingAndSalvageYards),
5967 v => {
5968 tracing::warn!(
5969 "Unknown value '{}' for enum '{}'",
5970 v,
5971 "UpdateIssuingCardSpendingControlsAllowedCategories"
5972 );
5973 Ok(Unknown(v.to_owned()))
5974 }
5975 }
5976 }
5977}
5978impl std::fmt::Display for UpdateIssuingCardSpendingControlsAllowedCategories {
5979 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
5980 f.write_str(self.as_str())
5981 }
5982}
5983
5984#[cfg(not(feature = "redact-generated-debug"))]
5985impl std::fmt::Debug for UpdateIssuingCardSpendingControlsAllowedCategories {
5986 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
5987 f.write_str(self.as_str())
5988 }
5989}
5990#[cfg(feature = "redact-generated-debug")]
5991impl std::fmt::Debug for UpdateIssuingCardSpendingControlsAllowedCategories {
5992 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
5993 f.debug_struct(stringify!(UpdateIssuingCardSpendingControlsAllowedCategories))
5994 .finish_non_exhaustive()
5995 }
5996}
5997impl serde::Serialize for UpdateIssuingCardSpendingControlsAllowedCategories {
5998 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
5999 where
6000 S: serde::Serializer,
6001 {
6002 serializer.serialize_str(self.as_str())
6003 }
6004}
6005#[cfg(feature = "deserialize")]
6006impl<'de> serde::Deserialize<'de> for UpdateIssuingCardSpendingControlsAllowedCategories {
6007 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
6008 use std::str::FromStr;
6009 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
6010 Ok(Self::from_str(&s).expect("infallible"))
6011 }
6012}
6013#[derive(Clone, Eq, PartialEq)]
6018#[non_exhaustive]
6019pub enum UpdateIssuingCardSpendingControlsBlockedCardPresences {
6020 NotPresent,
6021 Present,
6022 Unknown(String),
6024}
6025impl UpdateIssuingCardSpendingControlsBlockedCardPresences {
6026 pub fn as_str(&self) -> &str {
6027 use UpdateIssuingCardSpendingControlsBlockedCardPresences::*;
6028 match self {
6029 NotPresent => "not_present",
6030 Present => "present",
6031 Unknown(v) => v,
6032 }
6033 }
6034}
6035
6036impl std::str::FromStr for UpdateIssuingCardSpendingControlsBlockedCardPresences {
6037 type Err = std::convert::Infallible;
6038 fn from_str(s: &str) -> Result<Self, Self::Err> {
6039 use UpdateIssuingCardSpendingControlsBlockedCardPresences::*;
6040 match s {
6041 "not_present" => Ok(NotPresent),
6042 "present" => Ok(Present),
6043 v => {
6044 tracing::warn!(
6045 "Unknown value '{}' for enum '{}'",
6046 v,
6047 "UpdateIssuingCardSpendingControlsBlockedCardPresences"
6048 );
6049 Ok(Unknown(v.to_owned()))
6050 }
6051 }
6052 }
6053}
6054impl std::fmt::Display for UpdateIssuingCardSpendingControlsBlockedCardPresences {
6055 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
6056 f.write_str(self.as_str())
6057 }
6058}
6059
6060#[cfg(not(feature = "redact-generated-debug"))]
6061impl std::fmt::Debug for UpdateIssuingCardSpendingControlsBlockedCardPresences {
6062 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
6063 f.write_str(self.as_str())
6064 }
6065}
6066#[cfg(feature = "redact-generated-debug")]
6067impl std::fmt::Debug for UpdateIssuingCardSpendingControlsBlockedCardPresences {
6068 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
6069 f.debug_struct(stringify!(UpdateIssuingCardSpendingControlsBlockedCardPresences))
6070 .finish_non_exhaustive()
6071 }
6072}
6073impl serde::Serialize for UpdateIssuingCardSpendingControlsBlockedCardPresences {
6074 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
6075 where
6076 S: serde::Serializer,
6077 {
6078 serializer.serialize_str(self.as_str())
6079 }
6080}
6081#[cfg(feature = "deserialize")]
6082impl<'de> serde::Deserialize<'de> for UpdateIssuingCardSpendingControlsBlockedCardPresences {
6083 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
6084 use std::str::FromStr;
6085 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
6086 Ok(Self::from_str(&s).expect("infallible"))
6087 }
6088}
6089#[derive(Clone, Eq, PartialEq)]
6093#[non_exhaustive]
6094pub enum UpdateIssuingCardSpendingControlsBlockedCategories {
6095 AcRefrigerationRepair,
6096 AccountingBookkeepingServices,
6097 AdvertisingServices,
6098 AgriculturalCooperative,
6099 AirlinesAirCarriers,
6100 AirportsFlyingFields,
6101 AmbulanceServices,
6102 AmusementParksCarnivals,
6103 AntiqueReproductions,
6104 AntiqueShops,
6105 Aquariums,
6106 ArchitecturalSurveyingServices,
6107 ArtDealersAndGalleries,
6108 ArtistsSupplyAndCraftShops,
6109 AutoAndHomeSupplyStores,
6110 AutoBodyRepairShops,
6111 AutoPaintShops,
6112 AutoServiceShops,
6113 AutomatedCashDisburse,
6114 AutomatedFuelDispensers,
6115 AutomobileAssociations,
6116 AutomotivePartsAndAccessoriesStores,
6117 AutomotiveTireStores,
6118 BailAndBondPayments,
6119 Bakeries,
6120 BandsOrchestras,
6121 BarberAndBeautyShops,
6122 BettingCasinoGambling,
6123 BicycleShops,
6124 BilliardPoolEstablishments,
6125 BoatDealers,
6126 BoatRentalsAndLeases,
6127 BookStores,
6128 BooksPeriodicalsAndNewspapers,
6129 BowlingAlleys,
6130 BusLines,
6131 BusinessSecretarialSchools,
6132 BuyingShoppingServices,
6133 CableSatelliteAndOtherPayTelevisionAndRadio,
6134 CameraAndPhotographicSupplyStores,
6135 CandyNutAndConfectioneryStores,
6136 CarAndTruckDealersNewUsed,
6137 CarAndTruckDealersUsedOnly,
6138 CarRentalAgencies,
6139 CarWashes,
6140 CarpentryServices,
6141 CarpetUpholsteryCleaning,
6142 Caterers,
6143 CharitableAndSocialServiceOrganizationsFundraising,
6144 ChemicalsAndAlliedProducts,
6145 ChildCareServices,
6146 ChildrensAndInfantsWearStores,
6147 ChiropodistsPodiatrists,
6148 Chiropractors,
6149 CigarStoresAndStands,
6150 CivicSocialFraternalAssociations,
6151 CleaningAndMaintenance,
6152 ClothingRental,
6153 CollegesUniversities,
6154 CommercialEquipment,
6155 CommercialFootwear,
6156 CommercialPhotographyArtAndGraphics,
6157 CommuterTransportAndFerries,
6158 ComputerNetworkServices,
6159 ComputerProgramming,
6160 ComputerRepair,
6161 ComputerSoftwareStores,
6162 ComputersPeripheralsAndSoftware,
6163 ConcreteWorkServices,
6164 ConstructionMaterials,
6165 ConsultingPublicRelations,
6166 CorrespondenceSchools,
6167 CosmeticStores,
6168 CounselingServices,
6169 CountryClubs,
6170 CourierServices,
6171 CourtCosts,
6172 CreditReportingAgencies,
6173 CruiseLines,
6174 DairyProductsStores,
6175 DanceHallStudiosSchools,
6176 DatingEscortServices,
6177 DentistsOrthodontists,
6178 DepartmentStores,
6179 DetectiveAgencies,
6180 DigitalGoodsApplications,
6181 DigitalGoodsGames,
6182 DigitalGoodsLargeVolume,
6183 DigitalGoodsMedia,
6184 DirectMarketingCatalogMerchant,
6185 DirectMarketingCombinationCatalogAndRetailMerchant,
6186 DirectMarketingInboundTelemarketing,
6187 DirectMarketingInsuranceServices,
6188 DirectMarketingOther,
6189 DirectMarketingOutboundTelemarketing,
6190 DirectMarketingSubscription,
6191 DirectMarketingTravel,
6192 DiscountStores,
6193 Doctors,
6194 DoorToDoorSales,
6195 DraperyWindowCoveringAndUpholsteryStores,
6196 DrinkingPlaces,
6197 DrugStoresAndPharmacies,
6198 DrugsDrugProprietariesAndDruggistSundries,
6199 DryCleaners,
6200 DurableGoods,
6201 DutyFreeStores,
6202 EatingPlacesRestaurants,
6203 EducationalServices,
6204 ElectricRazorStores,
6205 ElectricVehicleCharging,
6206 ElectricalPartsAndEquipment,
6207 ElectricalServices,
6208 ElectronicsRepairShops,
6209 ElectronicsStores,
6210 ElementarySecondarySchools,
6211 EmergencyServicesGcasVisaUseOnly,
6212 EmploymentTempAgencies,
6213 EquipmentRental,
6214 ExterminatingServices,
6215 FamilyClothingStores,
6216 FastFoodRestaurants,
6217 FinancialInstitutions,
6218 FinesGovernmentAdministrativeEntities,
6219 FireplaceFireplaceScreensAndAccessoriesStores,
6220 FloorCoveringStores,
6221 Florists,
6222 FloristsSuppliesNurseryStockAndFlowers,
6223 FreezerAndLockerMeatProvisioners,
6224 FuelDealersNonAutomotive,
6225 FuneralServicesCrematories,
6226 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances,
6227 FurnitureRepairRefinishing,
6228 FurriersAndFurShops,
6229 GeneralServices,
6230 GiftCardNoveltyAndSouvenirShops,
6231 GlassPaintAndWallpaperStores,
6232 GlasswareCrystalStores,
6233 GolfCoursesPublic,
6234 GovernmentLicensedHorseDogRacingUsRegionOnly,
6235 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly,
6236 GovernmentOwnedLotteriesNonUsRegion,
6237 GovernmentOwnedLotteriesUsRegionOnly,
6238 GovernmentServices,
6239 GroceryStoresSupermarkets,
6240 HardwareEquipmentAndSupplies,
6241 HardwareStores,
6242 HealthAndBeautySpas,
6243 HearingAidsSalesAndSupplies,
6244 HeatingPlumbingAC,
6245 HobbyToyAndGameShops,
6246 HomeSupplyWarehouseStores,
6247 Hospitals,
6248 HotelsMotelsAndResorts,
6249 HouseholdApplianceStores,
6250 IndustrialSupplies,
6251 InformationRetrievalServices,
6252 InsuranceDefault,
6253 InsuranceUnderwritingPremiums,
6254 IntraCompanyPurchases,
6255 JewelryStoresWatchesClocksAndSilverwareStores,
6256 LandscapingServices,
6257 Laundries,
6258 LaundryCleaningServices,
6259 LegalServicesAttorneys,
6260 LuggageAndLeatherGoodsStores,
6261 LumberBuildingMaterialsStores,
6262 ManualCashDisburse,
6263 MarinasServiceAndSupplies,
6264 Marketplaces,
6265 MasonryStoneworkAndPlaster,
6266 MassageParlors,
6267 MedicalAndDentalLabs,
6268 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies,
6269 MedicalServices,
6270 MembershipOrganizations,
6271 MensAndBoysClothingAndAccessoriesStores,
6272 MensWomensClothingStores,
6273 MetalServiceCenters,
6274 Miscellaneous,
6275 MiscellaneousApparelAndAccessoryShops,
6276 MiscellaneousAutoDealers,
6277 MiscellaneousBusinessServices,
6278 MiscellaneousFoodStores,
6279 MiscellaneousGeneralMerchandise,
6280 MiscellaneousGeneralServices,
6281 MiscellaneousHomeFurnishingSpecialtyStores,
6282 MiscellaneousPublishingAndPrinting,
6283 MiscellaneousRecreationServices,
6284 MiscellaneousRepairShops,
6285 MiscellaneousSpecialtyRetail,
6286 MobileHomeDealers,
6287 MotionPictureTheaters,
6288 MotorFreightCarriersAndTrucking,
6289 MotorHomesDealers,
6290 MotorVehicleSuppliesAndNewParts,
6291 MotorcycleShopsAndDealers,
6292 MotorcycleShopsDealers,
6293 MusicStoresMusicalInstrumentsPianosAndSheetMusic,
6294 NewsDealersAndNewsstands,
6295 NonFiMoneyOrders,
6296 NonFiStoredValueCardPurchaseLoad,
6297 NondurableGoods,
6298 NurseriesLawnAndGardenSupplyStores,
6299 NursingPersonalCare,
6300 OfficeAndCommercialFurniture,
6301 OpticiansEyeglasses,
6302 OptometristsOphthalmologist,
6303 OrthopedicGoodsProstheticDevices,
6304 Osteopaths,
6305 PackageStoresBeerWineAndLiquor,
6306 PaintsVarnishesAndSupplies,
6307 ParkingLotsGarages,
6308 PassengerRailways,
6309 PawnShops,
6310 PetShopsPetFoodAndSupplies,
6311 PetroleumAndPetroleumProducts,
6312 PhotoDeveloping,
6313 PhotographicPhotocopyMicrofilmEquipmentAndSupplies,
6314 PhotographicStudios,
6315 PictureVideoProduction,
6316 PieceGoodsNotionsAndOtherDryGoods,
6317 PlumbingHeatingEquipmentAndSupplies,
6318 PoliticalOrganizations,
6319 PostalServicesGovernmentOnly,
6320 PreciousStonesAndMetalsWatchesAndJewelry,
6321 ProfessionalServices,
6322 PublicWarehousingAndStorage,
6323 QuickCopyReproAndBlueprint,
6324 Railroads,
6325 RealEstateAgentsAndManagersRentals,
6326 RecordStores,
6327 RecreationalVehicleRentals,
6328 ReligiousGoodsStores,
6329 ReligiousOrganizations,
6330 RoofingSidingSheetMetal,
6331 SecretarialSupportServices,
6332 SecurityBrokersDealers,
6333 ServiceStations,
6334 SewingNeedleworkFabricAndPieceGoodsStores,
6335 ShoeRepairHatCleaning,
6336 ShoeStores,
6337 SmallApplianceRepair,
6338 SnowmobileDealers,
6339 SpecialTradeServices,
6340 SpecialtyCleaning,
6341 SportingGoodsStores,
6342 SportingRecreationCamps,
6343 SportsAndRidingApparelStores,
6344 SportsClubsFields,
6345 StampAndCoinStores,
6346 StationaryOfficeSuppliesPrintingAndWritingPaper,
6347 StationeryStoresOfficeAndSchoolSupplyStores,
6348 SwimmingPoolsSales,
6349 TUiTravelGermany,
6350 TailorsAlterations,
6351 TaxPaymentsGovernmentAgencies,
6352 TaxPreparationServices,
6353 TaxicabsLimousines,
6354 TelecommunicationEquipmentAndTelephoneSales,
6355 TelecommunicationServices,
6356 TelegraphServices,
6357 TentAndAwningShops,
6358 TestingLaboratories,
6359 TheatricalTicketAgencies,
6360 Timeshares,
6361 TireRetreadingAndRepair,
6362 TollsBridgeFees,
6363 TouristAttractionsAndExhibits,
6364 TowingServices,
6365 TrailerParksCampgrounds,
6366 TransportationServices,
6367 TravelAgenciesTourOperators,
6368 TruckStopIteration,
6369 TruckUtilityTrailerRentals,
6370 TypesettingPlateMakingAndRelatedServices,
6371 TypewriterStores,
6372 USFederalGovernmentAgenciesOrDepartments,
6373 UniformsCommercialClothing,
6374 UsedMerchandiseAndSecondhandStores,
6375 Utilities,
6376 VarietyStores,
6377 VeterinaryServices,
6378 VideoAmusementGameSupplies,
6379 VideoGameArcades,
6380 VideoTapeRentalStores,
6381 VocationalTradeSchools,
6382 WatchJewelryRepair,
6383 WeldingRepair,
6384 WholesaleClubs,
6385 WigAndToupeeStores,
6386 WiresMoneyOrders,
6387 WomensAccessoryAndSpecialtyShops,
6388 WomensReadyToWearStores,
6389 WreckingAndSalvageYards,
6390 Unknown(String),
6392}
6393impl UpdateIssuingCardSpendingControlsBlockedCategories {
6394 pub fn as_str(&self) -> &str {
6395 use UpdateIssuingCardSpendingControlsBlockedCategories::*;
6396 match self {
6397 AcRefrigerationRepair => "ac_refrigeration_repair",
6398 AccountingBookkeepingServices => "accounting_bookkeeping_services",
6399 AdvertisingServices => "advertising_services",
6400 AgriculturalCooperative => "agricultural_cooperative",
6401 AirlinesAirCarriers => "airlines_air_carriers",
6402 AirportsFlyingFields => "airports_flying_fields",
6403 AmbulanceServices => "ambulance_services",
6404 AmusementParksCarnivals => "amusement_parks_carnivals",
6405 AntiqueReproductions => "antique_reproductions",
6406 AntiqueShops => "antique_shops",
6407 Aquariums => "aquariums",
6408 ArchitecturalSurveyingServices => "architectural_surveying_services",
6409 ArtDealersAndGalleries => "art_dealers_and_galleries",
6410 ArtistsSupplyAndCraftShops => "artists_supply_and_craft_shops",
6411 AutoAndHomeSupplyStores => "auto_and_home_supply_stores",
6412 AutoBodyRepairShops => "auto_body_repair_shops",
6413 AutoPaintShops => "auto_paint_shops",
6414 AutoServiceShops => "auto_service_shops",
6415 AutomatedCashDisburse => "automated_cash_disburse",
6416 AutomatedFuelDispensers => "automated_fuel_dispensers",
6417 AutomobileAssociations => "automobile_associations",
6418 AutomotivePartsAndAccessoriesStores => "automotive_parts_and_accessories_stores",
6419 AutomotiveTireStores => "automotive_tire_stores",
6420 BailAndBondPayments => "bail_and_bond_payments",
6421 Bakeries => "bakeries",
6422 BandsOrchestras => "bands_orchestras",
6423 BarberAndBeautyShops => "barber_and_beauty_shops",
6424 BettingCasinoGambling => "betting_casino_gambling",
6425 BicycleShops => "bicycle_shops",
6426 BilliardPoolEstablishments => "billiard_pool_establishments",
6427 BoatDealers => "boat_dealers",
6428 BoatRentalsAndLeases => "boat_rentals_and_leases",
6429 BookStores => "book_stores",
6430 BooksPeriodicalsAndNewspapers => "books_periodicals_and_newspapers",
6431 BowlingAlleys => "bowling_alleys",
6432 BusLines => "bus_lines",
6433 BusinessSecretarialSchools => "business_secretarial_schools",
6434 BuyingShoppingServices => "buying_shopping_services",
6435 CableSatelliteAndOtherPayTelevisionAndRadio => {
6436 "cable_satellite_and_other_pay_television_and_radio"
6437 }
6438 CameraAndPhotographicSupplyStores => "camera_and_photographic_supply_stores",
6439 CandyNutAndConfectioneryStores => "candy_nut_and_confectionery_stores",
6440 CarAndTruckDealersNewUsed => "car_and_truck_dealers_new_used",
6441 CarAndTruckDealersUsedOnly => "car_and_truck_dealers_used_only",
6442 CarRentalAgencies => "car_rental_agencies",
6443 CarWashes => "car_washes",
6444 CarpentryServices => "carpentry_services",
6445 CarpetUpholsteryCleaning => "carpet_upholstery_cleaning",
6446 Caterers => "caterers",
6447 CharitableAndSocialServiceOrganizationsFundraising => {
6448 "charitable_and_social_service_organizations_fundraising"
6449 }
6450 ChemicalsAndAlliedProducts => "chemicals_and_allied_products",
6451 ChildCareServices => "child_care_services",
6452 ChildrensAndInfantsWearStores => "childrens_and_infants_wear_stores",
6453 ChiropodistsPodiatrists => "chiropodists_podiatrists",
6454 Chiropractors => "chiropractors",
6455 CigarStoresAndStands => "cigar_stores_and_stands",
6456 CivicSocialFraternalAssociations => "civic_social_fraternal_associations",
6457 CleaningAndMaintenance => "cleaning_and_maintenance",
6458 ClothingRental => "clothing_rental",
6459 CollegesUniversities => "colleges_universities",
6460 CommercialEquipment => "commercial_equipment",
6461 CommercialFootwear => "commercial_footwear",
6462 CommercialPhotographyArtAndGraphics => "commercial_photography_art_and_graphics",
6463 CommuterTransportAndFerries => "commuter_transport_and_ferries",
6464 ComputerNetworkServices => "computer_network_services",
6465 ComputerProgramming => "computer_programming",
6466 ComputerRepair => "computer_repair",
6467 ComputerSoftwareStores => "computer_software_stores",
6468 ComputersPeripheralsAndSoftware => "computers_peripherals_and_software",
6469 ConcreteWorkServices => "concrete_work_services",
6470 ConstructionMaterials => "construction_materials",
6471 ConsultingPublicRelations => "consulting_public_relations",
6472 CorrespondenceSchools => "correspondence_schools",
6473 CosmeticStores => "cosmetic_stores",
6474 CounselingServices => "counseling_services",
6475 CountryClubs => "country_clubs",
6476 CourierServices => "courier_services",
6477 CourtCosts => "court_costs",
6478 CreditReportingAgencies => "credit_reporting_agencies",
6479 CruiseLines => "cruise_lines",
6480 DairyProductsStores => "dairy_products_stores",
6481 DanceHallStudiosSchools => "dance_hall_studios_schools",
6482 DatingEscortServices => "dating_escort_services",
6483 DentistsOrthodontists => "dentists_orthodontists",
6484 DepartmentStores => "department_stores",
6485 DetectiveAgencies => "detective_agencies",
6486 DigitalGoodsApplications => "digital_goods_applications",
6487 DigitalGoodsGames => "digital_goods_games",
6488 DigitalGoodsLargeVolume => "digital_goods_large_volume",
6489 DigitalGoodsMedia => "digital_goods_media",
6490 DirectMarketingCatalogMerchant => "direct_marketing_catalog_merchant",
6491 DirectMarketingCombinationCatalogAndRetailMerchant => {
6492 "direct_marketing_combination_catalog_and_retail_merchant"
6493 }
6494 DirectMarketingInboundTelemarketing => "direct_marketing_inbound_telemarketing",
6495 DirectMarketingInsuranceServices => "direct_marketing_insurance_services",
6496 DirectMarketingOther => "direct_marketing_other",
6497 DirectMarketingOutboundTelemarketing => "direct_marketing_outbound_telemarketing",
6498 DirectMarketingSubscription => "direct_marketing_subscription",
6499 DirectMarketingTravel => "direct_marketing_travel",
6500 DiscountStores => "discount_stores",
6501 Doctors => "doctors",
6502 DoorToDoorSales => "door_to_door_sales",
6503 DraperyWindowCoveringAndUpholsteryStores => {
6504 "drapery_window_covering_and_upholstery_stores"
6505 }
6506 DrinkingPlaces => "drinking_places",
6507 DrugStoresAndPharmacies => "drug_stores_and_pharmacies",
6508 DrugsDrugProprietariesAndDruggistSundries => {
6509 "drugs_drug_proprietaries_and_druggist_sundries"
6510 }
6511 DryCleaners => "dry_cleaners",
6512 DurableGoods => "durable_goods",
6513 DutyFreeStores => "duty_free_stores",
6514 EatingPlacesRestaurants => "eating_places_restaurants",
6515 EducationalServices => "educational_services",
6516 ElectricRazorStores => "electric_razor_stores",
6517 ElectricVehicleCharging => "electric_vehicle_charging",
6518 ElectricalPartsAndEquipment => "electrical_parts_and_equipment",
6519 ElectricalServices => "electrical_services",
6520 ElectronicsRepairShops => "electronics_repair_shops",
6521 ElectronicsStores => "electronics_stores",
6522 ElementarySecondarySchools => "elementary_secondary_schools",
6523 EmergencyServicesGcasVisaUseOnly => "emergency_services_gcas_visa_use_only",
6524 EmploymentTempAgencies => "employment_temp_agencies",
6525 EquipmentRental => "equipment_rental",
6526 ExterminatingServices => "exterminating_services",
6527 FamilyClothingStores => "family_clothing_stores",
6528 FastFoodRestaurants => "fast_food_restaurants",
6529 FinancialInstitutions => "financial_institutions",
6530 FinesGovernmentAdministrativeEntities => "fines_government_administrative_entities",
6531 FireplaceFireplaceScreensAndAccessoriesStores => {
6532 "fireplace_fireplace_screens_and_accessories_stores"
6533 }
6534 FloorCoveringStores => "floor_covering_stores",
6535 Florists => "florists",
6536 FloristsSuppliesNurseryStockAndFlowers => "florists_supplies_nursery_stock_and_flowers",
6537 FreezerAndLockerMeatProvisioners => "freezer_and_locker_meat_provisioners",
6538 FuelDealersNonAutomotive => "fuel_dealers_non_automotive",
6539 FuneralServicesCrematories => "funeral_services_crematories",
6540 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances => {
6541 "furniture_home_furnishings_and_equipment_stores_except_appliances"
6542 }
6543 FurnitureRepairRefinishing => "furniture_repair_refinishing",
6544 FurriersAndFurShops => "furriers_and_fur_shops",
6545 GeneralServices => "general_services",
6546 GiftCardNoveltyAndSouvenirShops => "gift_card_novelty_and_souvenir_shops",
6547 GlassPaintAndWallpaperStores => "glass_paint_and_wallpaper_stores",
6548 GlasswareCrystalStores => "glassware_crystal_stores",
6549 GolfCoursesPublic => "golf_courses_public",
6550 GovernmentLicensedHorseDogRacingUsRegionOnly => {
6551 "government_licensed_horse_dog_racing_us_region_only"
6552 }
6553 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly => {
6554 "government_licensed_online_casions_online_gambling_us_region_only"
6555 }
6556 GovernmentOwnedLotteriesNonUsRegion => "government_owned_lotteries_non_us_region",
6557 GovernmentOwnedLotteriesUsRegionOnly => "government_owned_lotteries_us_region_only",
6558 GovernmentServices => "government_services",
6559 GroceryStoresSupermarkets => "grocery_stores_supermarkets",
6560 HardwareEquipmentAndSupplies => "hardware_equipment_and_supplies",
6561 HardwareStores => "hardware_stores",
6562 HealthAndBeautySpas => "health_and_beauty_spas",
6563 HearingAidsSalesAndSupplies => "hearing_aids_sales_and_supplies",
6564 HeatingPlumbingAC => "heating_plumbing_a_c",
6565 HobbyToyAndGameShops => "hobby_toy_and_game_shops",
6566 HomeSupplyWarehouseStores => "home_supply_warehouse_stores",
6567 Hospitals => "hospitals",
6568 HotelsMotelsAndResorts => "hotels_motels_and_resorts",
6569 HouseholdApplianceStores => "household_appliance_stores",
6570 IndustrialSupplies => "industrial_supplies",
6571 InformationRetrievalServices => "information_retrieval_services",
6572 InsuranceDefault => "insurance_default",
6573 InsuranceUnderwritingPremiums => "insurance_underwriting_premiums",
6574 IntraCompanyPurchases => "intra_company_purchases",
6575 JewelryStoresWatchesClocksAndSilverwareStores => {
6576 "jewelry_stores_watches_clocks_and_silverware_stores"
6577 }
6578 LandscapingServices => "landscaping_services",
6579 Laundries => "laundries",
6580 LaundryCleaningServices => "laundry_cleaning_services",
6581 LegalServicesAttorneys => "legal_services_attorneys",
6582 LuggageAndLeatherGoodsStores => "luggage_and_leather_goods_stores",
6583 LumberBuildingMaterialsStores => "lumber_building_materials_stores",
6584 ManualCashDisburse => "manual_cash_disburse",
6585 MarinasServiceAndSupplies => "marinas_service_and_supplies",
6586 Marketplaces => "marketplaces",
6587 MasonryStoneworkAndPlaster => "masonry_stonework_and_plaster",
6588 MassageParlors => "massage_parlors",
6589 MedicalAndDentalLabs => "medical_and_dental_labs",
6590 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies => {
6591 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"
6592 }
6593 MedicalServices => "medical_services",
6594 MembershipOrganizations => "membership_organizations",
6595 MensAndBoysClothingAndAccessoriesStores => {
6596 "mens_and_boys_clothing_and_accessories_stores"
6597 }
6598 MensWomensClothingStores => "mens_womens_clothing_stores",
6599 MetalServiceCenters => "metal_service_centers",
6600 Miscellaneous => "miscellaneous",
6601 MiscellaneousApparelAndAccessoryShops => "miscellaneous_apparel_and_accessory_shops",
6602 MiscellaneousAutoDealers => "miscellaneous_auto_dealers",
6603 MiscellaneousBusinessServices => "miscellaneous_business_services",
6604 MiscellaneousFoodStores => "miscellaneous_food_stores",
6605 MiscellaneousGeneralMerchandise => "miscellaneous_general_merchandise",
6606 MiscellaneousGeneralServices => "miscellaneous_general_services",
6607 MiscellaneousHomeFurnishingSpecialtyStores => {
6608 "miscellaneous_home_furnishing_specialty_stores"
6609 }
6610 MiscellaneousPublishingAndPrinting => "miscellaneous_publishing_and_printing",
6611 MiscellaneousRecreationServices => "miscellaneous_recreation_services",
6612 MiscellaneousRepairShops => "miscellaneous_repair_shops",
6613 MiscellaneousSpecialtyRetail => "miscellaneous_specialty_retail",
6614 MobileHomeDealers => "mobile_home_dealers",
6615 MotionPictureTheaters => "motion_picture_theaters",
6616 MotorFreightCarriersAndTrucking => "motor_freight_carriers_and_trucking",
6617 MotorHomesDealers => "motor_homes_dealers",
6618 MotorVehicleSuppliesAndNewParts => "motor_vehicle_supplies_and_new_parts",
6619 MotorcycleShopsAndDealers => "motorcycle_shops_and_dealers",
6620 MotorcycleShopsDealers => "motorcycle_shops_dealers",
6621 MusicStoresMusicalInstrumentsPianosAndSheetMusic => {
6622 "music_stores_musical_instruments_pianos_and_sheet_music"
6623 }
6624 NewsDealersAndNewsstands => "news_dealers_and_newsstands",
6625 NonFiMoneyOrders => "non_fi_money_orders",
6626 NonFiStoredValueCardPurchaseLoad => "non_fi_stored_value_card_purchase_load",
6627 NondurableGoods => "nondurable_goods",
6628 NurseriesLawnAndGardenSupplyStores => "nurseries_lawn_and_garden_supply_stores",
6629 NursingPersonalCare => "nursing_personal_care",
6630 OfficeAndCommercialFurniture => "office_and_commercial_furniture",
6631 OpticiansEyeglasses => "opticians_eyeglasses",
6632 OptometristsOphthalmologist => "optometrists_ophthalmologist",
6633 OrthopedicGoodsProstheticDevices => "orthopedic_goods_prosthetic_devices",
6634 Osteopaths => "osteopaths",
6635 PackageStoresBeerWineAndLiquor => "package_stores_beer_wine_and_liquor",
6636 PaintsVarnishesAndSupplies => "paints_varnishes_and_supplies",
6637 ParkingLotsGarages => "parking_lots_garages",
6638 PassengerRailways => "passenger_railways",
6639 PawnShops => "pawn_shops",
6640 PetShopsPetFoodAndSupplies => "pet_shops_pet_food_and_supplies",
6641 PetroleumAndPetroleumProducts => "petroleum_and_petroleum_products",
6642 PhotoDeveloping => "photo_developing",
6643 PhotographicPhotocopyMicrofilmEquipmentAndSupplies => {
6644 "photographic_photocopy_microfilm_equipment_and_supplies"
6645 }
6646 PhotographicStudios => "photographic_studios",
6647 PictureVideoProduction => "picture_video_production",
6648 PieceGoodsNotionsAndOtherDryGoods => "piece_goods_notions_and_other_dry_goods",
6649 PlumbingHeatingEquipmentAndSupplies => "plumbing_heating_equipment_and_supplies",
6650 PoliticalOrganizations => "political_organizations",
6651 PostalServicesGovernmentOnly => "postal_services_government_only",
6652 PreciousStonesAndMetalsWatchesAndJewelry => {
6653 "precious_stones_and_metals_watches_and_jewelry"
6654 }
6655 ProfessionalServices => "professional_services",
6656 PublicWarehousingAndStorage => "public_warehousing_and_storage",
6657 QuickCopyReproAndBlueprint => "quick_copy_repro_and_blueprint",
6658 Railroads => "railroads",
6659 RealEstateAgentsAndManagersRentals => "real_estate_agents_and_managers_rentals",
6660 RecordStores => "record_stores",
6661 RecreationalVehicleRentals => "recreational_vehicle_rentals",
6662 ReligiousGoodsStores => "religious_goods_stores",
6663 ReligiousOrganizations => "religious_organizations",
6664 RoofingSidingSheetMetal => "roofing_siding_sheet_metal",
6665 SecretarialSupportServices => "secretarial_support_services",
6666 SecurityBrokersDealers => "security_brokers_dealers",
6667 ServiceStations => "service_stations",
6668 SewingNeedleworkFabricAndPieceGoodsStores => {
6669 "sewing_needlework_fabric_and_piece_goods_stores"
6670 }
6671 ShoeRepairHatCleaning => "shoe_repair_hat_cleaning",
6672 ShoeStores => "shoe_stores",
6673 SmallApplianceRepair => "small_appliance_repair",
6674 SnowmobileDealers => "snowmobile_dealers",
6675 SpecialTradeServices => "special_trade_services",
6676 SpecialtyCleaning => "specialty_cleaning",
6677 SportingGoodsStores => "sporting_goods_stores",
6678 SportingRecreationCamps => "sporting_recreation_camps",
6679 SportsAndRidingApparelStores => "sports_and_riding_apparel_stores",
6680 SportsClubsFields => "sports_clubs_fields",
6681 StampAndCoinStores => "stamp_and_coin_stores",
6682 StationaryOfficeSuppliesPrintingAndWritingPaper => {
6683 "stationary_office_supplies_printing_and_writing_paper"
6684 }
6685 StationeryStoresOfficeAndSchoolSupplyStores => {
6686 "stationery_stores_office_and_school_supply_stores"
6687 }
6688 SwimmingPoolsSales => "swimming_pools_sales",
6689 TUiTravelGermany => "t_ui_travel_germany",
6690 TailorsAlterations => "tailors_alterations",
6691 TaxPaymentsGovernmentAgencies => "tax_payments_government_agencies",
6692 TaxPreparationServices => "tax_preparation_services",
6693 TaxicabsLimousines => "taxicabs_limousines",
6694 TelecommunicationEquipmentAndTelephoneSales => {
6695 "telecommunication_equipment_and_telephone_sales"
6696 }
6697 TelecommunicationServices => "telecommunication_services",
6698 TelegraphServices => "telegraph_services",
6699 TentAndAwningShops => "tent_and_awning_shops",
6700 TestingLaboratories => "testing_laboratories",
6701 TheatricalTicketAgencies => "theatrical_ticket_agencies",
6702 Timeshares => "timeshares",
6703 TireRetreadingAndRepair => "tire_retreading_and_repair",
6704 TollsBridgeFees => "tolls_bridge_fees",
6705 TouristAttractionsAndExhibits => "tourist_attractions_and_exhibits",
6706 TowingServices => "towing_services",
6707 TrailerParksCampgrounds => "trailer_parks_campgrounds",
6708 TransportationServices => "transportation_services",
6709 TravelAgenciesTourOperators => "travel_agencies_tour_operators",
6710 TruckStopIteration => "truck_stop_iteration",
6711 TruckUtilityTrailerRentals => "truck_utility_trailer_rentals",
6712 TypesettingPlateMakingAndRelatedServices => {
6713 "typesetting_plate_making_and_related_services"
6714 }
6715 TypewriterStores => "typewriter_stores",
6716 USFederalGovernmentAgenciesOrDepartments => {
6717 "u_s_federal_government_agencies_or_departments"
6718 }
6719 UniformsCommercialClothing => "uniforms_commercial_clothing",
6720 UsedMerchandiseAndSecondhandStores => "used_merchandise_and_secondhand_stores",
6721 Utilities => "utilities",
6722 VarietyStores => "variety_stores",
6723 VeterinaryServices => "veterinary_services",
6724 VideoAmusementGameSupplies => "video_amusement_game_supplies",
6725 VideoGameArcades => "video_game_arcades",
6726 VideoTapeRentalStores => "video_tape_rental_stores",
6727 VocationalTradeSchools => "vocational_trade_schools",
6728 WatchJewelryRepair => "watch_jewelry_repair",
6729 WeldingRepair => "welding_repair",
6730 WholesaleClubs => "wholesale_clubs",
6731 WigAndToupeeStores => "wig_and_toupee_stores",
6732 WiresMoneyOrders => "wires_money_orders",
6733 WomensAccessoryAndSpecialtyShops => "womens_accessory_and_specialty_shops",
6734 WomensReadyToWearStores => "womens_ready_to_wear_stores",
6735 WreckingAndSalvageYards => "wrecking_and_salvage_yards",
6736 Unknown(v) => v,
6737 }
6738 }
6739}
6740
6741impl std::str::FromStr for UpdateIssuingCardSpendingControlsBlockedCategories {
6742 type Err = std::convert::Infallible;
6743 fn from_str(s: &str) -> Result<Self, Self::Err> {
6744 use UpdateIssuingCardSpendingControlsBlockedCategories::*;
6745 match s {
6746 "ac_refrigeration_repair" => Ok(AcRefrigerationRepair),
6747 "accounting_bookkeeping_services" => Ok(AccountingBookkeepingServices),
6748 "advertising_services" => Ok(AdvertisingServices),
6749 "agricultural_cooperative" => Ok(AgriculturalCooperative),
6750 "airlines_air_carriers" => Ok(AirlinesAirCarriers),
6751 "airports_flying_fields" => Ok(AirportsFlyingFields),
6752 "ambulance_services" => Ok(AmbulanceServices),
6753 "amusement_parks_carnivals" => Ok(AmusementParksCarnivals),
6754 "antique_reproductions" => Ok(AntiqueReproductions),
6755 "antique_shops" => Ok(AntiqueShops),
6756 "aquariums" => Ok(Aquariums),
6757 "architectural_surveying_services" => Ok(ArchitecturalSurveyingServices),
6758 "art_dealers_and_galleries" => Ok(ArtDealersAndGalleries),
6759 "artists_supply_and_craft_shops" => Ok(ArtistsSupplyAndCraftShops),
6760 "auto_and_home_supply_stores" => Ok(AutoAndHomeSupplyStores),
6761 "auto_body_repair_shops" => Ok(AutoBodyRepairShops),
6762 "auto_paint_shops" => Ok(AutoPaintShops),
6763 "auto_service_shops" => Ok(AutoServiceShops),
6764 "automated_cash_disburse" => Ok(AutomatedCashDisburse),
6765 "automated_fuel_dispensers" => Ok(AutomatedFuelDispensers),
6766 "automobile_associations" => Ok(AutomobileAssociations),
6767 "automotive_parts_and_accessories_stores" => Ok(AutomotivePartsAndAccessoriesStores),
6768 "automotive_tire_stores" => Ok(AutomotiveTireStores),
6769 "bail_and_bond_payments" => Ok(BailAndBondPayments),
6770 "bakeries" => Ok(Bakeries),
6771 "bands_orchestras" => Ok(BandsOrchestras),
6772 "barber_and_beauty_shops" => Ok(BarberAndBeautyShops),
6773 "betting_casino_gambling" => Ok(BettingCasinoGambling),
6774 "bicycle_shops" => Ok(BicycleShops),
6775 "billiard_pool_establishments" => Ok(BilliardPoolEstablishments),
6776 "boat_dealers" => Ok(BoatDealers),
6777 "boat_rentals_and_leases" => Ok(BoatRentalsAndLeases),
6778 "book_stores" => Ok(BookStores),
6779 "books_periodicals_and_newspapers" => Ok(BooksPeriodicalsAndNewspapers),
6780 "bowling_alleys" => Ok(BowlingAlleys),
6781 "bus_lines" => Ok(BusLines),
6782 "business_secretarial_schools" => Ok(BusinessSecretarialSchools),
6783 "buying_shopping_services" => Ok(BuyingShoppingServices),
6784 "cable_satellite_and_other_pay_television_and_radio" => {
6785 Ok(CableSatelliteAndOtherPayTelevisionAndRadio)
6786 }
6787 "camera_and_photographic_supply_stores" => Ok(CameraAndPhotographicSupplyStores),
6788 "candy_nut_and_confectionery_stores" => Ok(CandyNutAndConfectioneryStores),
6789 "car_and_truck_dealers_new_used" => Ok(CarAndTruckDealersNewUsed),
6790 "car_and_truck_dealers_used_only" => Ok(CarAndTruckDealersUsedOnly),
6791 "car_rental_agencies" => Ok(CarRentalAgencies),
6792 "car_washes" => Ok(CarWashes),
6793 "carpentry_services" => Ok(CarpentryServices),
6794 "carpet_upholstery_cleaning" => Ok(CarpetUpholsteryCleaning),
6795 "caterers" => Ok(Caterers),
6796 "charitable_and_social_service_organizations_fundraising" => {
6797 Ok(CharitableAndSocialServiceOrganizationsFundraising)
6798 }
6799 "chemicals_and_allied_products" => Ok(ChemicalsAndAlliedProducts),
6800 "child_care_services" => Ok(ChildCareServices),
6801 "childrens_and_infants_wear_stores" => Ok(ChildrensAndInfantsWearStores),
6802 "chiropodists_podiatrists" => Ok(ChiropodistsPodiatrists),
6803 "chiropractors" => Ok(Chiropractors),
6804 "cigar_stores_and_stands" => Ok(CigarStoresAndStands),
6805 "civic_social_fraternal_associations" => Ok(CivicSocialFraternalAssociations),
6806 "cleaning_and_maintenance" => Ok(CleaningAndMaintenance),
6807 "clothing_rental" => Ok(ClothingRental),
6808 "colleges_universities" => Ok(CollegesUniversities),
6809 "commercial_equipment" => Ok(CommercialEquipment),
6810 "commercial_footwear" => Ok(CommercialFootwear),
6811 "commercial_photography_art_and_graphics" => Ok(CommercialPhotographyArtAndGraphics),
6812 "commuter_transport_and_ferries" => Ok(CommuterTransportAndFerries),
6813 "computer_network_services" => Ok(ComputerNetworkServices),
6814 "computer_programming" => Ok(ComputerProgramming),
6815 "computer_repair" => Ok(ComputerRepair),
6816 "computer_software_stores" => Ok(ComputerSoftwareStores),
6817 "computers_peripherals_and_software" => Ok(ComputersPeripheralsAndSoftware),
6818 "concrete_work_services" => Ok(ConcreteWorkServices),
6819 "construction_materials" => Ok(ConstructionMaterials),
6820 "consulting_public_relations" => Ok(ConsultingPublicRelations),
6821 "correspondence_schools" => Ok(CorrespondenceSchools),
6822 "cosmetic_stores" => Ok(CosmeticStores),
6823 "counseling_services" => Ok(CounselingServices),
6824 "country_clubs" => Ok(CountryClubs),
6825 "courier_services" => Ok(CourierServices),
6826 "court_costs" => Ok(CourtCosts),
6827 "credit_reporting_agencies" => Ok(CreditReportingAgencies),
6828 "cruise_lines" => Ok(CruiseLines),
6829 "dairy_products_stores" => Ok(DairyProductsStores),
6830 "dance_hall_studios_schools" => Ok(DanceHallStudiosSchools),
6831 "dating_escort_services" => Ok(DatingEscortServices),
6832 "dentists_orthodontists" => Ok(DentistsOrthodontists),
6833 "department_stores" => Ok(DepartmentStores),
6834 "detective_agencies" => Ok(DetectiveAgencies),
6835 "digital_goods_applications" => Ok(DigitalGoodsApplications),
6836 "digital_goods_games" => Ok(DigitalGoodsGames),
6837 "digital_goods_large_volume" => Ok(DigitalGoodsLargeVolume),
6838 "digital_goods_media" => Ok(DigitalGoodsMedia),
6839 "direct_marketing_catalog_merchant" => Ok(DirectMarketingCatalogMerchant),
6840 "direct_marketing_combination_catalog_and_retail_merchant" => {
6841 Ok(DirectMarketingCombinationCatalogAndRetailMerchant)
6842 }
6843 "direct_marketing_inbound_telemarketing" => Ok(DirectMarketingInboundTelemarketing),
6844 "direct_marketing_insurance_services" => Ok(DirectMarketingInsuranceServices),
6845 "direct_marketing_other" => Ok(DirectMarketingOther),
6846 "direct_marketing_outbound_telemarketing" => Ok(DirectMarketingOutboundTelemarketing),
6847 "direct_marketing_subscription" => Ok(DirectMarketingSubscription),
6848 "direct_marketing_travel" => Ok(DirectMarketingTravel),
6849 "discount_stores" => Ok(DiscountStores),
6850 "doctors" => Ok(Doctors),
6851 "door_to_door_sales" => Ok(DoorToDoorSales),
6852 "drapery_window_covering_and_upholstery_stores" => {
6853 Ok(DraperyWindowCoveringAndUpholsteryStores)
6854 }
6855 "drinking_places" => Ok(DrinkingPlaces),
6856 "drug_stores_and_pharmacies" => Ok(DrugStoresAndPharmacies),
6857 "drugs_drug_proprietaries_and_druggist_sundries" => {
6858 Ok(DrugsDrugProprietariesAndDruggistSundries)
6859 }
6860 "dry_cleaners" => Ok(DryCleaners),
6861 "durable_goods" => Ok(DurableGoods),
6862 "duty_free_stores" => Ok(DutyFreeStores),
6863 "eating_places_restaurants" => Ok(EatingPlacesRestaurants),
6864 "educational_services" => Ok(EducationalServices),
6865 "electric_razor_stores" => Ok(ElectricRazorStores),
6866 "electric_vehicle_charging" => Ok(ElectricVehicleCharging),
6867 "electrical_parts_and_equipment" => Ok(ElectricalPartsAndEquipment),
6868 "electrical_services" => Ok(ElectricalServices),
6869 "electronics_repair_shops" => Ok(ElectronicsRepairShops),
6870 "electronics_stores" => Ok(ElectronicsStores),
6871 "elementary_secondary_schools" => Ok(ElementarySecondarySchools),
6872 "emergency_services_gcas_visa_use_only" => Ok(EmergencyServicesGcasVisaUseOnly),
6873 "employment_temp_agencies" => Ok(EmploymentTempAgencies),
6874 "equipment_rental" => Ok(EquipmentRental),
6875 "exterminating_services" => Ok(ExterminatingServices),
6876 "family_clothing_stores" => Ok(FamilyClothingStores),
6877 "fast_food_restaurants" => Ok(FastFoodRestaurants),
6878 "financial_institutions" => Ok(FinancialInstitutions),
6879 "fines_government_administrative_entities" => Ok(FinesGovernmentAdministrativeEntities),
6880 "fireplace_fireplace_screens_and_accessories_stores" => {
6881 Ok(FireplaceFireplaceScreensAndAccessoriesStores)
6882 }
6883 "floor_covering_stores" => Ok(FloorCoveringStores),
6884 "florists" => Ok(Florists),
6885 "florists_supplies_nursery_stock_and_flowers" => {
6886 Ok(FloristsSuppliesNurseryStockAndFlowers)
6887 }
6888 "freezer_and_locker_meat_provisioners" => Ok(FreezerAndLockerMeatProvisioners),
6889 "fuel_dealers_non_automotive" => Ok(FuelDealersNonAutomotive),
6890 "funeral_services_crematories" => Ok(FuneralServicesCrematories),
6891 "furniture_home_furnishings_and_equipment_stores_except_appliances" => {
6892 Ok(FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances)
6893 }
6894 "furniture_repair_refinishing" => Ok(FurnitureRepairRefinishing),
6895 "furriers_and_fur_shops" => Ok(FurriersAndFurShops),
6896 "general_services" => Ok(GeneralServices),
6897 "gift_card_novelty_and_souvenir_shops" => Ok(GiftCardNoveltyAndSouvenirShops),
6898 "glass_paint_and_wallpaper_stores" => Ok(GlassPaintAndWallpaperStores),
6899 "glassware_crystal_stores" => Ok(GlasswareCrystalStores),
6900 "golf_courses_public" => Ok(GolfCoursesPublic),
6901 "government_licensed_horse_dog_racing_us_region_only" => {
6902 Ok(GovernmentLicensedHorseDogRacingUsRegionOnly)
6903 }
6904 "government_licensed_online_casions_online_gambling_us_region_only" => {
6905 Ok(GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly)
6906 }
6907 "government_owned_lotteries_non_us_region" => Ok(GovernmentOwnedLotteriesNonUsRegion),
6908 "government_owned_lotteries_us_region_only" => Ok(GovernmentOwnedLotteriesUsRegionOnly),
6909 "government_services" => Ok(GovernmentServices),
6910 "grocery_stores_supermarkets" => Ok(GroceryStoresSupermarkets),
6911 "hardware_equipment_and_supplies" => Ok(HardwareEquipmentAndSupplies),
6912 "hardware_stores" => Ok(HardwareStores),
6913 "health_and_beauty_spas" => Ok(HealthAndBeautySpas),
6914 "hearing_aids_sales_and_supplies" => Ok(HearingAidsSalesAndSupplies),
6915 "heating_plumbing_a_c" => Ok(HeatingPlumbingAC),
6916 "hobby_toy_and_game_shops" => Ok(HobbyToyAndGameShops),
6917 "home_supply_warehouse_stores" => Ok(HomeSupplyWarehouseStores),
6918 "hospitals" => Ok(Hospitals),
6919 "hotels_motels_and_resorts" => Ok(HotelsMotelsAndResorts),
6920 "household_appliance_stores" => Ok(HouseholdApplianceStores),
6921 "industrial_supplies" => Ok(IndustrialSupplies),
6922 "information_retrieval_services" => Ok(InformationRetrievalServices),
6923 "insurance_default" => Ok(InsuranceDefault),
6924 "insurance_underwriting_premiums" => Ok(InsuranceUnderwritingPremiums),
6925 "intra_company_purchases" => Ok(IntraCompanyPurchases),
6926 "jewelry_stores_watches_clocks_and_silverware_stores" => {
6927 Ok(JewelryStoresWatchesClocksAndSilverwareStores)
6928 }
6929 "landscaping_services" => Ok(LandscapingServices),
6930 "laundries" => Ok(Laundries),
6931 "laundry_cleaning_services" => Ok(LaundryCleaningServices),
6932 "legal_services_attorneys" => Ok(LegalServicesAttorneys),
6933 "luggage_and_leather_goods_stores" => Ok(LuggageAndLeatherGoodsStores),
6934 "lumber_building_materials_stores" => Ok(LumberBuildingMaterialsStores),
6935 "manual_cash_disburse" => Ok(ManualCashDisburse),
6936 "marinas_service_and_supplies" => Ok(MarinasServiceAndSupplies),
6937 "marketplaces" => Ok(Marketplaces),
6938 "masonry_stonework_and_plaster" => Ok(MasonryStoneworkAndPlaster),
6939 "massage_parlors" => Ok(MassageParlors),
6940 "medical_and_dental_labs" => Ok(MedicalAndDentalLabs),
6941 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" => {
6942 Ok(MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies)
6943 }
6944 "medical_services" => Ok(MedicalServices),
6945 "membership_organizations" => Ok(MembershipOrganizations),
6946 "mens_and_boys_clothing_and_accessories_stores" => {
6947 Ok(MensAndBoysClothingAndAccessoriesStores)
6948 }
6949 "mens_womens_clothing_stores" => Ok(MensWomensClothingStores),
6950 "metal_service_centers" => Ok(MetalServiceCenters),
6951 "miscellaneous" => Ok(Miscellaneous),
6952 "miscellaneous_apparel_and_accessory_shops" => {
6953 Ok(MiscellaneousApparelAndAccessoryShops)
6954 }
6955 "miscellaneous_auto_dealers" => Ok(MiscellaneousAutoDealers),
6956 "miscellaneous_business_services" => Ok(MiscellaneousBusinessServices),
6957 "miscellaneous_food_stores" => Ok(MiscellaneousFoodStores),
6958 "miscellaneous_general_merchandise" => Ok(MiscellaneousGeneralMerchandise),
6959 "miscellaneous_general_services" => Ok(MiscellaneousGeneralServices),
6960 "miscellaneous_home_furnishing_specialty_stores" => {
6961 Ok(MiscellaneousHomeFurnishingSpecialtyStores)
6962 }
6963 "miscellaneous_publishing_and_printing" => Ok(MiscellaneousPublishingAndPrinting),
6964 "miscellaneous_recreation_services" => Ok(MiscellaneousRecreationServices),
6965 "miscellaneous_repair_shops" => Ok(MiscellaneousRepairShops),
6966 "miscellaneous_specialty_retail" => Ok(MiscellaneousSpecialtyRetail),
6967 "mobile_home_dealers" => Ok(MobileHomeDealers),
6968 "motion_picture_theaters" => Ok(MotionPictureTheaters),
6969 "motor_freight_carriers_and_trucking" => Ok(MotorFreightCarriersAndTrucking),
6970 "motor_homes_dealers" => Ok(MotorHomesDealers),
6971 "motor_vehicle_supplies_and_new_parts" => Ok(MotorVehicleSuppliesAndNewParts),
6972 "motorcycle_shops_and_dealers" => Ok(MotorcycleShopsAndDealers),
6973 "motorcycle_shops_dealers" => Ok(MotorcycleShopsDealers),
6974 "music_stores_musical_instruments_pianos_and_sheet_music" => {
6975 Ok(MusicStoresMusicalInstrumentsPianosAndSheetMusic)
6976 }
6977 "news_dealers_and_newsstands" => Ok(NewsDealersAndNewsstands),
6978 "non_fi_money_orders" => Ok(NonFiMoneyOrders),
6979 "non_fi_stored_value_card_purchase_load" => Ok(NonFiStoredValueCardPurchaseLoad),
6980 "nondurable_goods" => Ok(NondurableGoods),
6981 "nurseries_lawn_and_garden_supply_stores" => Ok(NurseriesLawnAndGardenSupplyStores),
6982 "nursing_personal_care" => Ok(NursingPersonalCare),
6983 "office_and_commercial_furniture" => Ok(OfficeAndCommercialFurniture),
6984 "opticians_eyeglasses" => Ok(OpticiansEyeglasses),
6985 "optometrists_ophthalmologist" => Ok(OptometristsOphthalmologist),
6986 "orthopedic_goods_prosthetic_devices" => Ok(OrthopedicGoodsProstheticDevices),
6987 "osteopaths" => Ok(Osteopaths),
6988 "package_stores_beer_wine_and_liquor" => Ok(PackageStoresBeerWineAndLiquor),
6989 "paints_varnishes_and_supplies" => Ok(PaintsVarnishesAndSupplies),
6990 "parking_lots_garages" => Ok(ParkingLotsGarages),
6991 "passenger_railways" => Ok(PassengerRailways),
6992 "pawn_shops" => Ok(PawnShops),
6993 "pet_shops_pet_food_and_supplies" => Ok(PetShopsPetFoodAndSupplies),
6994 "petroleum_and_petroleum_products" => Ok(PetroleumAndPetroleumProducts),
6995 "photo_developing" => Ok(PhotoDeveloping),
6996 "photographic_photocopy_microfilm_equipment_and_supplies" => {
6997 Ok(PhotographicPhotocopyMicrofilmEquipmentAndSupplies)
6998 }
6999 "photographic_studios" => Ok(PhotographicStudios),
7000 "picture_video_production" => Ok(PictureVideoProduction),
7001 "piece_goods_notions_and_other_dry_goods" => Ok(PieceGoodsNotionsAndOtherDryGoods),
7002 "plumbing_heating_equipment_and_supplies" => Ok(PlumbingHeatingEquipmentAndSupplies),
7003 "political_organizations" => Ok(PoliticalOrganizations),
7004 "postal_services_government_only" => Ok(PostalServicesGovernmentOnly),
7005 "precious_stones_and_metals_watches_and_jewelry" => {
7006 Ok(PreciousStonesAndMetalsWatchesAndJewelry)
7007 }
7008 "professional_services" => Ok(ProfessionalServices),
7009 "public_warehousing_and_storage" => Ok(PublicWarehousingAndStorage),
7010 "quick_copy_repro_and_blueprint" => Ok(QuickCopyReproAndBlueprint),
7011 "railroads" => Ok(Railroads),
7012 "real_estate_agents_and_managers_rentals" => Ok(RealEstateAgentsAndManagersRentals),
7013 "record_stores" => Ok(RecordStores),
7014 "recreational_vehicle_rentals" => Ok(RecreationalVehicleRentals),
7015 "religious_goods_stores" => Ok(ReligiousGoodsStores),
7016 "religious_organizations" => Ok(ReligiousOrganizations),
7017 "roofing_siding_sheet_metal" => Ok(RoofingSidingSheetMetal),
7018 "secretarial_support_services" => Ok(SecretarialSupportServices),
7019 "security_brokers_dealers" => Ok(SecurityBrokersDealers),
7020 "service_stations" => Ok(ServiceStations),
7021 "sewing_needlework_fabric_and_piece_goods_stores" => {
7022 Ok(SewingNeedleworkFabricAndPieceGoodsStores)
7023 }
7024 "shoe_repair_hat_cleaning" => Ok(ShoeRepairHatCleaning),
7025 "shoe_stores" => Ok(ShoeStores),
7026 "small_appliance_repair" => Ok(SmallApplianceRepair),
7027 "snowmobile_dealers" => Ok(SnowmobileDealers),
7028 "special_trade_services" => Ok(SpecialTradeServices),
7029 "specialty_cleaning" => Ok(SpecialtyCleaning),
7030 "sporting_goods_stores" => Ok(SportingGoodsStores),
7031 "sporting_recreation_camps" => Ok(SportingRecreationCamps),
7032 "sports_and_riding_apparel_stores" => Ok(SportsAndRidingApparelStores),
7033 "sports_clubs_fields" => Ok(SportsClubsFields),
7034 "stamp_and_coin_stores" => Ok(StampAndCoinStores),
7035 "stationary_office_supplies_printing_and_writing_paper" => {
7036 Ok(StationaryOfficeSuppliesPrintingAndWritingPaper)
7037 }
7038 "stationery_stores_office_and_school_supply_stores" => {
7039 Ok(StationeryStoresOfficeAndSchoolSupplyStores)
7040 }
7041 "swimming_pools_sales" => Ok(SwimmingPoolsSales),
7042 "t_ui_travel_germany" => Ok(TUiTravelGermany),
7043 "tailors_alterations" => Ok(TailorsAlterations),
7044 "tax_payments_government_agencies" => Ok(TaxPaymentsGovernmentAgencies),
7045 "tax_preparation_services" => Ok(TaxPreparationServices),
7046 "taxicabs_limousines" => Ok(TaxicabsLimousines),
7047 "telecommunication_equipment_and_telephone_sales" => {
7048 Ok(TelecommunicationEquipmentAndTelephoneSales)
7049 }
7050 "telecommunication_services" => Ok(TelecommunicationServices),
7051 "telegraph_services" => Ok(TelegraphServices),
7052 "tent_and_awning_shops" => Ok(TentAndAwningShops),
7053 "testing_laboratories" => Ok(TestingLaboratories),
7054 "theatrical_ticket_agencies" => Ok(TheatricalTicketAgencies),
7055 "timeshares" => Ok(Timeshares),
7056 "tire_retreading_and_repair" => Ok(TireRetreadingAndRepair),
7057 "tolls_bridge_fees" => Ok(TollsBridgeFees),
7058 "tourist_attractions_and_exhibits" => Ok(TouristAttractionsAndExhibits),
7059 "towing_services" => Ok(TowingServices),
7060 "trailer_parks_campgrounds" => Ok(TrailerParksCampgrounds),
7061 "transportation_services" => Ok(TransportationServices),
7062 "travel_agencies_tour_operators" => Ok(TravelAgenciesTourOperators),
7063 "truck_stop_iteration" => Ok(TruckStopIteration),
7064 "truck_utility_trailer_rentals" => Ok(TruckUtilityTrailerRentals),
7065 "typesetting_plate_making_and_related_services" => {
7066 Ok(TypesettingPlateMakingAndRelatedServices)
7067 }
7068 "typewriter_stores" => Ok(TypewriterStores),
7069 "u_s_federal_government_agencies_or_departments" => {
7070 Ok(USFederalGovernmentAgenciesOrDepartments)
7071 }
7072 "uniforms_commercial_clothing" => Ok(UniformsCommercialClothing),
7073 "used_merchandise_and_secondhand_stores" => Ok(UsedMerchandiseAndSecondhandStores),
7074 "utilities" => Ok(Utilities),
7075 "variety_stores" => Ok(VarietyStores),
7076 "veterinary_services" => Ok(VeterinaryServices),
7077 "video_amusement_game_supplies" => Ok(VideoAmusementGameSupplies),
7078 "video_game_arcades" => Ok(VideoGameArcades),
7079 "video_tape_rental_stores" => Ok(VideoTapeRentalStores),
7080 "vocational_trade_schools" => Ok(VocationalTradeSchools),
7081 "watch_jewelry_repair" => Ok(WatchJewelryRepair),
7082 "welding_repair" => Ok(WeldingRepair),
7083 "wholesale_clubs" => Ok(WholesaleClubs),
7084 "wig_and_toupee_stores" => Ok(WigAndToupeeStores),
7085 "wires_money_orders" => Ok(WiresMoneyOrders),
7086 "womens_accessory_and_specialty_shops" => Ok(WomensAccessoryAndSpecialtyShops),
7087 "womens_ready_to_wear_stores" => Ok(WomensReadyToWearStores),
7088 "wrecking_and_salvage_yards" => Ok(WreckingAndSalvageYards),
7089 v => {
7090 tracing::warn!(
7091 "Unknown value '{}' for enum '{}'",
7092 v,
7093 "UpdateIssuingCardSpendingControlsBlockedCategories"
7094 );
7095 Ok(Unknown(v.to_owned()))
7096 }
7097 }
7098 }
7099}
7100impl std::fmt::Display for UpdateIssuingCardSpendingControlsBlockedCategories {
7101 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
7102 f.write_str(self.as_str())
7103 }
7104}
7105
7106#[cfg(not(feature = "redact-generated-debug"))]
7107impl std::fmt::Debug for UpdateIssuingCardSpendingControlsBlockedCategories {
7108 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
7109 f.write_str(self.as_str())
7110 }
7111}
7112#[cfg(feature = "redact-generated-debug")]
7113impl std::fmt::Debug for UpdateIssuingCardSpendingControlsBlockedCategories {
7114 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
7115 f.debug_struct(stringify!(UpdateIssuingCardSpendingControlsBlockedCategories))
7116 .finish_non_exhaustive()
7117 }
7118}
7119impl serde::Serialize for UpdateIssuingCardSpendingControlsBlockedCategories {
7120 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
7121 where
7122 S: serde::Serializer,
7123 {
7124 serializer.serialize_str(self.as_str())
7125 }
7126}
7127#[cfg(feature = "deserialize")]
7128impl<'de> serde::Deserialize<'de> for UpdateIssuingCardSpendingControlsBlockedCategories {
7129 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
7130 use std::str::FromStr;
7131 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
7132 Ok(Self::from_str(&s).expect("infallible"))
7133 }
7134}
7135#[derive(Clone, Eq, PartialEq)]
7137#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
7138#[derive(serde::Serialize)]
7139pub struct UpdateIssuingCardSpendingControlsSpendingLimits {
7140 pub amount: i64,
7142 #[serde(skip_serializing_if = "Option::is_none")]
7145 pub categories: Option<Vec<UpdateIssuingCardSpendingControlsSpendingLimitsCategories>>,
7146 pub interval: UpdateIssuingCardSpendingControlsSpendingLimitsInterval,
7148}
7149#[cfg(feature = "redact-generated-debug")]
7150impl std::fmt::Debug for UpdateIssuingCardSpendingControlsSpendingLimits {
7151 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
7152 f.debug_struct("UpdateIssuingCardSpendingControlsSpendingLimits").finish_non_exhaustive()
7153 }
7154}
7155impl UpdateIssuingCardSpendingControlsSpendingLimits {
7156 pub fn new(
7157 amount: impl Into<i64>,
7158 interval: impl Into<UpdateIssuingCardSpendingControlsSpendingLimitsInterval>,
7159 ) -> Self {
7160 Self { amount: amount.into(), categories: None, interval: interval.into() }
7161 }
7162}
7163#[derive(Clone, Eq, PartialEq)]
7166#[non_exhaustive]
7167pub enum UpdateIssuingCardSpendingControlsSpendingLimitsCategories {
7168 AcRefrigerationRepair,
7169 AccountingBookkeepingServices,
7170 AdvertisingServices,
7171 AgriculturalCooperative,
7172 AirlinesAirCarriers,
7173 AirportsFlyingFields,
7174 AmbulanceServices,
7175 AmusementParksCarnivals,
7176 AntiqueReproductions,
7177 AntiqueShops,
7178 Aquariums,
7179 ArchitecturalSurveyingServices,
7180 ArtDealersAndGalleries,
7181 ArtistsSupplyAndCraftShops,
7182 AutoAndHomeSupplyStores,
7183 AutoBodyRepairShops,
7184 AutoPaintShops,
7185 AutoServiceShops,
7186 AutomatedCashDisburse,
7187 AutomatedFuelDispensers,
7188 AutomobileAssociations,
7189 AutomotivePartsAndAccessoriesStores,
7190 AutomotiveTireStores,
7191 BailAndBondPayments,
7192 Bakeries,
7193 BandsOrchestras,
7194 BarberAndBeautyShops,
7195 BettingCasinoGambling,
7196 BicycleShops,
7197 BilliardPoolEstablishments,
7198 BoatDealers,
7199 BoatRentalsAndLeases,
7200 BookStores,
7201 BooksPeriodicalsAndNewspapers,
7202 BowlingAlleys,
7203 BusLines,
7204 BusinessSecretarialSchools,
7205 BuyingShoppingServices,
7206 CableSatelliteAndOtherPayTelevisionAndRadio,
7207 CameraAndPhotographicSupplyStores,
7208 CandyNutAndConfectioneryStores,
7209 CarAndTruckDealersNewUsed,
7210 CarAndTruckDealersUsedOnly,
7211 CarRentalAgencies,
7212 CarWashes,
7213 CarpentryServices,
7214 CarpetUpholsteryCleaning,
7215 Caterers,
7216 CharitableAndSocialServiceOrganizationsFundraising,
7217 ChemicalsAndAlliedProducts,
7218 ChildCareServices,
7219 ChildrensAndInfantsWearStores,
7220 ChiropodistsPodiatrists,
7221 Chiropractors,
7222 CigarStoresAndStands,
7223 CivicSocialFraternalAssociations,
7224 CleaningAndMaintenance,
7225 ClothingRental,
7226 CollegesUniversities,
7227 CommercialEquipment,
7228 CommercialFootwear,
7229 CommercialPhotographyArtAndGraphics,
7230 CommuterTransportAndFerries,
7231 ComputerNetworkServices,
7232 ComputerProgramming,
7233 ComputerRepair,
7234 ComputerSoftwareStores,
7235 ComputersPeripheralsAndSoftware,
7236 ConcreteWorkServices,
7237 ConstructionMaterials,
7238 ConsultingPublicRelations,
7239 CorrespondenceSchools,
7240 CosmeticStores,
7241 CounselingServices,
7242 CountryClubs,
7243 CourierServices,
7244 CourtCosts,
7245 CreditReportingAgencies,
7246 CruiseLines,
7247 DairyProductsStores,
7248 DanceHallStudiosSchools,
7249 DatingEscortServices,
7250 DentistsOrthodontists,
7251 DepartmentStores,
7252 DetectiveAgencies,
7253 DigitalGoodsApplications,
7254 DigitalGoodsGames,
7255 DigitalGoodsLargeVolume,
7256 DigitalGoodsMedia,
7257 DirectMarketingCatalogMerchant,
7258 DirectMarketingCombinationCatalogAndRetailMerchant,
7259 DirectMarketingInboundTelemarketing,
7260 DirectMarketingInsuranceServices,
7261 DirectMarketingOther,
7262 DirectMarketingOutboundTelemarketing,
7263 DirectMarketingSubscription,
7264 DirectMarketingTravel,
7265 DiscountStores,
7266 Doctors,
7267 DoorToDoorSales,
7268 DraperyWindowCoveringAndUpholsteryStores,
7269 DrinkingPlaces,
7270 DrugStoresAndPharmacies,
7271 DrugsDrugProprietariesAndDruggistSundries,
7272 DryCleaners,
7273 DurableGoods,
7274 DutyFreeStores,
7275 EatingPlacesRestaurants,
7276 EducationalServices,
7277 ElectricRazorStores,
7278 ElectricVehicleCharging,
7279 ElectricalPartsAndEquipment,
7280 ElectricalServices,
7281 ElectronicsRepairShops,
7282 ElectronicsStores,
7283 ElementarySecondarySchools,
7284 EmergencyServicesGcasVisaUseOnly,
7285 EmploymentTempAgencies,
7286 EquipmentRental,
7287 ExterminatingServices,
7288 FamilyClothingStores,
7289 FastFoodRestaurants,
7290 FinancialInstitutions,
7291 FinesGovernmentAdministrativeEntities,
7292 FireplaceFireplaceScreensAndAccessoriesStores,
7293 FloorCoveringStores,
7294 Florists,
7295 FloristsSuppliesNurseryStockAndFlowers,
7296 FreezerAndLockerMeatProvisioners,
7297 FuelDealersNonAutomotive,
7298 FuneralServicesCrematories,
7299 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances,
7300 FurnitureRepairRefinishing,
7301 FurriersAndFurShops,
7302 GeneralServices,
7303 GiftCardNoveltyAndSouvenirShops,
7304 GlassPaintAndWallpaperStores,
7305 GlasswareCrystalStores,
7306 GolfCoursesPublic,
7307 GovernmentLicensedHorseDogRacingUsRegionOnly,
7308 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly,
7309 GovernmentOwnedLotteriesNonUsRegion,
7310 GovernmentOwnedLotteriesUsRegionOnly,
7311 GovernmentServices,
7312 GroceryStoresSupermarkets,
7313 HardwareEquipmentAndSupplies,
7314 HardwareStores,
7315 HealthAndBeautySpas,
7316 HearingAidsSalesAndSupplies,
7317 HeatingPlumbingAC,
7318 HobbyToyAndGameShops,
7319 HomeSupplyWarehouseStores,
7320 Hospitals,
7321 HotelsMotelsAndResorts,
7322 HouseholdApplianceStores,
7323 IndustrialSupplies,
7324 InformationRetrievalServices,
7325 InsuranceDefault,
7326 InsuranceUnderwritingPremiums,
7327 IntraCompanyPurchases,
7328 JewelryStoresWatchesClocksAndSilverwareStores,
7329 LandscapingServices,
7330 Laundries,
7331 LaundryCleaningServices,
7332 LegalServicesAttorneys,
7333 LuggageAndLeatherGoodsStores,
7334 LumberBuildingMaterialsStores,
7335 ManualCashDisburse,
7336 MarinasServiceAndSupplies,
7337 Marketplaces,
7338 MasonryStoneworkAndPlaster,
7339 MassageParlors,
7340 MedicalAndDentalLabs,
7341 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies,
7342 MedicalServices,
7343 MembershipOrganizations,
7344 MensAndBoysClothingAndAccessoriesStores,
7345 MensWomensClothingStores,
7346 MetalServiceCenters,
7347 Miscellaneous,
7348 MiscellaneousApparelAndAccessoryShops,
7349 MiscellaneousAutoDealers,
7350 MiscellaneousBusinessServices,
7351 MiscellaneousFoodStores,
7352 MiscellaneousGeneralMerchandise,
7353 MiscellaneousGeneralServices,
7354 MiscellaneousHomeFurnishingSpecialtyStores,
7355 MiscellaneousPublishingAndPrinting,
7356 MiscellaneousRecreationServices,
7357 MiscellaneousRepairShops,
7358 MiscellaneousSpecialtyRetail,
7359 MobileHomeDealers,
7360 MotionPictureTheaters,
7361 MotorFreightCarriersAndTrucking,
7362 MotorHomesDealers,
7363 MotorVehicleSuppliesAndNewParts,
7364 MotorcycleShopsAndDealers,
7365 MotorcycleShopsDealers,
7366 MusicStoresMusicalInstrumentsPianosAndSheetMusic,
7367 NewsDealersAndNewsstands,
7368 NonFiMoneyOrders,
7369 NonFiStoredValueCardPurchaseLoad,
7370 NondurableGoods,
7371 NurseriesLawnAndGardenSupplyStores,
7372 NursingPersonalCare,
7373 OfficeAndCommercialFurniture,
7374 OpticiansEyeglasses,
7375 OptometristsOphthalmologist,
7376 OrthopedicGoodsProstheticDevices,
7377 Osteopaths,
7378 PackageStoresBeerWineAndLiquor,
7379 PaintsVarnishesAndSupplies,
7380 ParkingLotsGarages,
7381 PassengerRailways,
7382 PawnShops,
7383 PetShopsPetFoodAndSupplies,
7384 PetroleumAndPetroleumProducts,
7385 PhotoDeveloping,
7386 PhotographicPhotocopyMicrofilmEquipmentAndSupplies,
7387 PhotographicStudios,
7388 PictureVideoProduction,
7389 PieceGoodsNotionsAndOtherDryGoods,
7390 PlumbingHeatingEquipmentAndSupplies,
7391 PoliticalOrganizations,
7392 PostalServicesGovernmentOnly,
7393 PreciousStonesAndMetalsWatchesAndJewelry,
7394 ProfessionalServices,
7395 PublicWarehousingAndStorage,
7396 QuickCopyReproAndBlueprint,
7397 Railroads,
7398 RealEstateAgentsAndManagersRentals,
7399 RecordStores,
7400 RecreationalVehicleRentals,
7401 ReligiousGoodsStores,
7402 ReligiousOrganizations,
7403 RoofingSidingSheetMetal,
7404 SecretarialSupportServices,
7405 SecurityBrokersDealers,
7406 ServiceStations,
7407 SewingNeedleworkFabricAndPieceGoodsStores,
7408 ShoeRepairHatCleaning,
7409 ShoeStores,
7410 SmallApplianceRepair,
7411 SnowmobileDealers,
7412 SpecialTradeServices,
7413 SpecialtyCleaning,
7414 SportingGoodsStores,
7415 SportingRecreationCamps,
7416 SportsAndRidingApparelStores,
7417 SportsClubsFields,
7418 StampAndCoinStores,
7419 StationaryOfficeSuppliesPrintingAndWritingPaper,
7420 StationeryStoresOfficeAndSchoolSupplyStores,
7421 SwimmingPoolsSales,
7422 TUiTravelGermany,
7423 TailorsAlterations,
7424 TaxPaymentsGovernmentAgencies,
7425 TaxPreparationServices,
7426 TaxicabsLimousines,
7427 TelecommunicationEquipmentAndTelephoneSales,
7428 TelecommunicationServices,
7429 TelegraphServices,
7430 TentAndAwningShops,
7431 TestingLaboratories,
7432 TheatricalTicketAgencies,
7433 Timeshares,
7434 TireRetreadingAndRepair,
7435 TollsBridgeFees,
7436 TouristAttractionsAndExhibits,
7437 TowingServices,
7438 TrailerParksCampgrounds,
7439 TransportationServices,
7440 TravelAgenciesTourOperators,
7441 TruckStopIteration,
7442 TruckUtilityTrailerRentals,
7443 TypesettingPlateMakingAndRelatedServices,
7444 TypewriterStores,
7445 USFederalGovernmentAgenciesOrDepartments,
7446 UniformsCommercialClothing,
7447 UsedMerchandiseAndSecondhandStores,
7448 Utilities,
7449 VarietyStores,
7450 VeterinaryServices,
7451 VideoAmusementGameSupplies,
7452 VideoGameArcades,
7453 VideoTapeRentalStores,
7454 VocationalTradeSchools,
7455 WatchJewelryRepair,
7456 WeldingRepair,
7457 WholesaleClubs,
7458 WigAndToupeeStores,
7459 WiresMoneyOrders,
7460 WomensAccessoryAndSpecialtyShops,
7461 WomensReadyToWearStores,
7462 WreckingAndSalvageYards,
7463 Unknown(String),
7465}
7466impl UpdateIssuingCardSpendingControlsSpendingLimitsCategories {
7467 pub fn as_str(&self) -> &str {
7468 use UpdateIssuingCardSpendingControlsSpendingLimitsCategories::*;
7469 match self {
7470 AcRefrigerationRepair => "ac_refrigeration_repair",
7471 AccountingBookkeepingServices => "accounting_bookkeeping_services",
7472 AdvertisingServices => "advertising_services",
7473 AgriculturalCooperative => "agricultural_cooperative",
7474 AirlinesAirCarriers => "airlines_air_carriers",
7475 AirportsFlyingFields => "airports_flying_fields",
7476 AmbulanceServices => "ambulance_services",
7477 AmusementParksCarnivals => "amusement_parks_carnivals",
7478 AntiqueReproductions => "antique_reproductions",
7479 AntiqueShops => "antique_shops",
7480 Aquariums => "aquariums",
7481 ArchitecturalSurveyingServices => "architectural_surveying_services",
7482 ArtDealersAndGalleries => "art_dealers_and_galleries",
7483 ArtistsSupplyAndCraftShops => "artists_supply_and_craft_shops",
7484 AutoAndHomeSupplyStores => "auto_and_home_supply_stores",
7485 AutoBodyRepairShops => "auto_body_repair_shops",
7486 AutoPaintShops => "auto_paint_shops",
7487 AutoServiceShops => "auto_service_shops",
7488 AutomatedCashDisburse => "automated_cash_disburse",
7489 AutomatedFuelDispensers => "automated_fuel_dispensers",
7490 AutomobileAssociations => "automobile_associations",
7491 AutomotivePartsAndAccessoriesStores => "automotive_parts_and_accessories_stores",
7492 AutomotiveTireStores => "automotive_tire_stores",
7493 BailAndBondPayments => "bail_and_bond_payments",
7494 Bakeries => "bakeries",
7495 BandsOrchestras => "bands_orchestras",
7496 BarberAndBeautyShops => "barber_and_beauty_shops",
7497 BettingCasinoGambling => "betting_casino_gambling",
7498 BicycleShops => "bicycle_shops",
7499 BilliardPoolEstablishments => "billiard_pool_establishments",
7500 BoatDealers => "boat_dealers",
7501 BoatRentalsAndLeases => "boat_rentals_and_leases",
7502 BookStores => "book_stores",
7503 BooksPeriodicalsAndNewspapers => "books_periodicals_and_newspapers",
7504 BowlingAlleys => "bowling_alleys",
7505 BusLines => "bus_lines",
7506 BusinessSecretarialSchools => "business_secretarial_schools",
7507 BuyingShoppingServices => "buying_shopping_services",
7508 CableSatelliteAndOtherPayTelevisionAndRadio => {
7509 "cable_satellite_and_other_pay_television_and_radio"
7510 }
7511 CameraAndPhotographicSupplyStores => "camera_and_photographic_supply_stores",
7512 CandyNutAndConfectioneryStores => "candy_nut_and_confectionery_stores",
7513 CarAndTruckDealersNewUsed => "car_and_truck_dealers_new_used",
7514 CarAndTruckDealersUsedOnly => "car_and_truck_dealers_used_only",
7515 CarRentalAgencies => "car_rental_agencies",
7516 CarWashes => "car_washes",
7517 CarpentryServices => "carpentry_services",
7518 CarpetUpholsteryCleaning => "carpet_upholstery_cleaning",
7519 Caterers => "caterers",
7520 CharitableAndSocialServiceOrganizationsFundraising => {
7521 "charitable_and_social_service_organizations_fundraising"
7522 }
7523 ChemicalsAndAlliedProducts => "chemicals_and_allied_products",
7524 ChildCareServices => "child_care_services",
7525 ChildrensAndInfantsWearStores => "childrens_and_infants_wear_stores",
7526 ChiropodistsPodiatrists => "chiropodists_podiatrists",
7527 Chiropractors => "chiropractors",
7528 CigarStoresAndStands => "cigar_stores_and_stands",
7529 CivicSocialFraternalAssociations => "civic_social_fraternal_associations",
7530 CleaningAndMaintenance => "cleaning_and_maintenance",
7531 ClothingRental => "clothing_rental",
7532 CollegesUniversities => "colleges_universities",
7533 CommercialEquipment => "commercial_equipment",
7534 CommercialFootwear => "commercial_footwear",
7535 CommercialPhotographyArtAndGraphics => "commercial_photography_art_and_graphics",
7536 CommuterTransportAndFerries => "commuter_transport_and_ferries",
7537 ComputerNetworkServices => "computer_network_services",
7538 ComputerProgramming => "computer_programming",
7539 ComputerRepair => "computer_repair",
7540 ComputerSoftwareStores => "computer_software_stores",
7541 ComputersPeripheralsAndSoftware => "computers_peripherals_and_software",
7542 ConcreteWorkServices => "concrete_work_services",
7543 ConstructionMaterials => "construction_materials",
7544 ConsultingPublicRelations => "consulting_public_relations",
7545 CorrespondenceSchools => "correspondence_schools",
7546 CosmeticStores => "cosmetic_stores",
7547 CounselingServices => "counseling_services",
7548 CountryClubs => "country_clubs",
7549 CourierServices => "courier_services",
7550 CourtCosts => "court_costs",
7551 CreditReportingAgencies => "credit_reporting_agencies",
7552 CruiseLines => "cruise_lines",
7553 DairyProductsStores => "dairy_products_stores",
7554 DanceHallStudiosSchools => "dance_hall_studios_schools",
7555 DatingEscortServices => "dating_escort_services",
7556 DentistsOrthodontists => "dentists_orthodontists",
7557 DepartmentStores => "department_stores",
7558 DetectiveAgencies => "detective_agencies",
7559 DigitalGoodsApplications => "digital_goods_applications",
7560 DigitalGoodsGames => "digital_goods_games",
7561 DigitalGoodsLargeVolume => "digital_goods_large_volume",
7562 DigitalGoodsMedia => "digital_goods_media",
7563 DirectMarketingCatalogMerchant => "direct_marketing_catalog_merchant",
7564 DirectMarketingCombinationCatalogAndRetailMerchant => {
7565 "direct_marketing_combination_catalog_and_retail_merchant"
7566 }
7567 DirectMarketingInboundTelemarketing => "direct_marketing_inbound_telemarketing",
7568 DirectMarketingInsuranceServices => "direct_marketing_insurance_services",
7569 DirectMarketingOther => "direct_marketing_other",
7570 DirectMarketingOutboundTelemarketing => "direct_marketing_outbound_telemarketing",
7571 DirectMarketingSubscription => "direct_marketing_subscription",
7572 DirectMarketingTravel => "direct_marketing_travel",
7573 DiscountStores => "discount_stores",
7574 Doctors => "doctors",
7575 DoorToDoorSales => "door_to_door_sales",
7576 DraperyWindowCoveringAndUpholsteryStores => {
7577 "drapery_window_covering_and_upholstery_stores"
7578 }
7579 DrinkingPlaces => "drinking_places",
7580 DrugStoresAndPharmacies => "drug_stores_and_pharmacies",
7581 DrugsDrugProprietariesAndDruggistSundries => {
7582 "drugs_drug_proprietaries_and_druggist_sundries"
7583 }
7584 DryCleaners => "dry_cleaners",
7585 DurableGoods => "durable_goods",
7586 DutyFreeStores => "duty_free_stores",
7587 EatingPlacesRestaurants => "eating_places_restaurants",
7588 EducationalServices => "educational_services",
7589 ElectricRazorStores => "electric_razor_stores",
7590 ElectricVehicleCharging => "electric_vehicle_charging",
7591 ElectricalPartsAndEquipment => "electrical_parts_and_equipment",
7592 ElectricalServices => "electrical_services",
7593 ElectronicsRepairShops => "electronics_repair_shops",
7594 ElectronicsStores => "electronics_stores",
7595 ElementarySecondarySchools => "elementary_secondary_schools",
7596 EmergencyServicesGcasVisaUseOnly => "emergency_services_gcas_visa_use_only",
7597 EmploymentTempAgencies => "employment_temp_agencies",
7598 EquipmentRental => "equipment_rental",
7599 ExterminatingServices => "exterminating_services",
7600 FamilyClothingStores => "family_clothing_stores",
7601 FastFoodRestaurants => "fast_food_restaurants",
7602 FinancialInstitutions => "financial_institutions",
7603 FinesGovernmentAdministrativeEntities => "fines_government_administrative_entities",
7604 FireplaceFireplaceScreensAndAccessoriesStores => {
7605 "fireplace_fireplace_screens_and_accessories_stores"
7606 }
7607 FloorCoveringStores => "floor_covering_stores",
7608 Florists => "florists",
7609 FloristsSuppliesNurseryStockAndFlowers => "florists_supplies_nursery_stock_and_flowers",
7610 FreezerAndLockerMeatProvisioners => "freezer_and_locker_meat_provisioners",
7611 FuelDealersNonAutomotive => "fuel_dealers_non_automotive",
7612 FuneralServicesCrematories => "funeral_services_crematories",
7613 FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances => {
7614 "furniture_home_furnishings_and_equipment_stores_except_appliances"
7615 }
7616 FurnitureRepairRefinishing => "furniture_repair_refinishing",
7617 FurriersAndFurShops => "furriers_and_fur_shops",
7618 GeneralServices => "general_services",
7619 GiftCardNoveltyAndSouvenirShops => "gift_card_novelty_and_souvenir_shops",
7620 GlassPaintAndWallpaperStores => "glass_paint_and_wallpaper_stores",
7621 GlasswareCrystalStores => "glassware_crystal_stores",
7622 GolfCoursesPublic => "golf_courses_public",
7623 GovernmentLicensedHorseDogRacingUsRegionOnly => {
7624 "government_licensed_horse_dog_racing_us_region_only"
7625 }
7626 GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly => {
7627 "government_licensed_online_casions_online_gambling_us_region_only"
7628 }
7629 GovernmentOwnedLotteriesNonUsRegion => "government_owned_lotteries_non_us_region",
7630 GovernmentOwnedLotteriesUsRegionOnly => "government_owned_lotteries_us_region_only",
7631 GovernmentServices => "government_services",
7632 GroceryStoresSupermarkets => "grocery_stores_supermarkets",
7633 HardwareEquipmentAndSupplies => "hardware_equipment_and_supplies",
7634 HardwareStores => "hardware_stores",
7635 HealthAndBeautySpas => "health_and_beauty_spas",
7636 HearingAidsSalesAndSupplies => "hearing_aids_sales_and_supplies",
7637 HeatingPlumbingAC => "heating_plumbing_a_c",
7638 HobbyToyAndGameShops => "hobby_toy_and_game_shops",
7639 HomeSupplyWarehouseStores => "home_supply_warehouse_stores",
7640 Hospitals => "hospitals",
7641 HotelsMotelsAndResorts => "hotels_motels_and_resorts",
7642 HouseholdApplianceStores => "household_appliance_stores",
7643 IndustrialSupplies => "industrial_supplies",
7644 InformationRetrievalServices => "information_retrieval_services",
7645 InsuranceDefault => "insurance_default",
7646 InsuranceUnderwritingPremiums => "insurance_underwriting_premiums",
7647 IntraCompanyPurchases => "intra_company_purchases",
7648 JewelryStoresWatchesClocksAndSilverwareStores => {
7649 "jewelry_stores_watches_clocks_and_silverware_stores"
7650 }
7651 LandscapingServices => "landscaping_services",
7652 Laundries => "laundries",
7653 LaundryCleaningServices => "laundry_cleaning_services",
7654 LegalServicesAttorneys => "legal_services_attorneys",
7655 LuggageAndLeatherGoodsStores => "luggage_and_leather_goods_stores",
7656 LumberBuildingMaterialsStores => "lumber_building_materials_stores",
7657 ManualCashDisburse => "manual_cash_disburse",
7658 MarinasServiceAndSupplies => "marinas_service_and_supplies",
7659 Marketplaces => "marketplaces",
7660 MasonryStoneworkAndPlaster => "masonry_stonework_and_plaster",
7661 MassageParlors => "massage_parlors",
7662 MedicalAndDentalLabs => "medical_and_dental_labs",
7663 MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies => {
7664 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies"
7665 }
7666 MedicalServices => "medical_services",
7667 MembershipOrganizations => "membership_organizations",
7668 MensAndBoysClothingAndAccessoriesStores => {
7669 "mens_and_boys_clothing_and_accessories_stores"
7670 }
7671 MensWomensClothingStores => "mens_womens_clothing_stores",
7672 MetalServiceCenters => "metal_service_centers",
7673 Miscellaneous => "miscellaneous",
7674 MiscellaneousApparelAndAccessoryShops => "miscellaneous_apparel_and_accessory_shops",
7675 MiscellaneousAutoDealers => "miscellaneous_auto_dealers",
7676 MiscellaneousBusinessServices => "miscellaneous_business_services",
7677 MiscellaneousFoodStores => "miscellaneous_food_stores",
7678 MiscellaneousGeneralMerchandise => "miscellaneous_general_merchandise",
7679 MiscellaneousGeneralServices => "miscellaneous_general_services",
7680 MiscellaneousHomeFurnishingSpecialtyStores => {
7681 "miscellaneous_home_furnishing_specialty_stores"
7682 }
7683 MiscellaneousPublishingAndPrinting => "miscellaneous_publishing_and_printing",
7684 MiscellaneousRecreationServices => "miscellaneous_recreation_services",
7685 MiscellaneousRepairShops => "miscellaneous_repair_shops",
7686 MiscellaneousSpecialtyRetail => "miscellaneous_specialty_retail",
7687 MobileHomeDealers => "mobile_home_dealers",
7688 MotionPictureTheaters => "motion_picture_theaters",
7689 MotorFreightCarriersAndTrucking => "motor_freight_carriers_and_trucking",
7690 MotorHomesDealers => "motor_homes_dealers",
7691 MotorVehicleSuppliesAndNewParts => "motor_vehicle_supplies_and_new_parts",
7692 MotorcycleShopsAndDealers => "motorcycle_shops_and_dealers",
7693 MotorcycleShopsDealers => "motorcycle_shops_dealers",
7694 MusicStoresMusicalInstrumentsPianosAndSheetMusic => {
7695 "music_stores_musical_instruments_pianos_and_sheet_music"
7696 }
7697 NewsDealersAndNewsstands => "news_dealers_and_newsstands",
7698 NonFiMoneyOrders => "non_fi_money_orders",
7699 NonFiStoredValueCardPurchaseLoad => "non_fi_stored_value_card_purchase_load",
7700 NondurableGoods => "nondurable_goods",
7701 NurseriesLawnAndGardenSupplyStores => "nurseries_lawn_and_garden_supply_stores",
7702 NursingPersonalCare => "nursing_personal_care",
7703 OfficeAndCommercialFurniture => "office_and_commercial_furniture",
7704 OpticiansEyeglasses => "opticians_eyeglasses",
7705 OptometristsOphthalmologist => "optometrists_ophthalmologist",
7706 OrthopedicGoodsProstheticDevices => "orthopedic_goods_prosthetic_devices",
7707 Osteopaths => "osteopaths",
7708 PackageStoresBeerWineAndLiquor => "package_stores_beer_wine_and_liquor",
7709 PaintsVarnishesAndSupplies => "paints_varnishes_and_supplies",
7710 ParkingLotsGarages => "parking_lots_garages",
7711 PassengerRailways => "passenger_railways",
7712 PawnShops => "pawn_shops",
7713 PetShopsPetFoodAndSupplies => "pet_shops_pet_food_and_supplies",
7714 PetroleumAndPetroleumProducts => "petroleum_and_petroleum_products",
7715 PhotoDeveloping => "photo_developing",
7716 PhotographicPhotocopyMicrofilmEquipmentAndSupplies => {
7717 "photographic_photocopy_microfilm_equipment_and_supplies"
7718 }
7719 PhotographicStudios => "photographic_studios",
7720 PictureVideoProduction => "picture_video_production",
7721 PieceGoodsNotionsAndOtherDryGoods => "piece_goods_notions_and_other_dry_goods",
7722 PlumbingHeatingEquipmentAndSupplies => "plumbing_heating_equipment_and_supplies",
7723 PoliticalOrganizations => "political_organizations",
7724 PostalServicesGovernmentOnly => "postal_services_government_only",
7725 PreciousStonesAndMetalsWatchesAndJewelry => {
7726 "precious_stones_and_metals_watches_and_jewelry"
7727 }
7728 ProfessionalServices => "professional_services",
7729 PublicWarehousingAndStorage => "public_warehousing_and_storage",
7730 QuickCopyReproAndBlueprint => "quick_copy_repro_and_blueprint",
7731 Railroads => "railroads",
7732 RealEstateAgentsAndManagersRentals => "real_estate_agents_and_managers_rentals",
7733 RecordStores => "record_stores",
7734 RecreationalVehicleRentals => "recreational_vehicle_rentals",
7735 ReligiousGoodsStores => "religious_goods_stores",
7736 ReligiousOrganizations => "religious_organizations",
7737 RoofingSidingSheetMetal => "roofing_siding_sheet_metal",
7738 SecretarialSupportServices => "secretarial_support_services",
7739 SecurityBrokersDealers => "security_brokers_dealers",
7740 ServiceStations => "service_stations",
7741 SewingNeedleworkFabricAndPieceGoodsStores => {
7742 "sewing_needlework_fabric_and_piece_goods_stores"
7743 }
7744 ShoeRepairHatCleaning => "shoe_repair_hat_cleaning",
7745 ShoeStores => "shoe_stores",
7746 SmallApplianceRepair => "small_appliance_repair",
7747 SnowmobileDealers => "snowmobile_dealers",
7748 SpecialTradeServices => "special_trade_services",
7749 SpecialtyCleaning => "specialty_cleaning",
7750 SportingGoodsStores => "sporting_goods_stores",
7751 SportingRecreationCamps => "sporting_recreation_camps",
7752 SportsAndRidingApparelStores => "sports_and_riding_apparel_stores",
7753 SportsClubsFields => "sports_clubs_fields",
7754 StampAndCoinStores => "stamp_and_coin_stores",
7755 StationaryOfficeSuppliesPrintingAndWritingPaper => {
7756 "stationary_office_supplies_printing_and_writing_paper"
7757 }
7758 StationeryStoresOfficeAndSchoolSupplyStores => {
7759 "stationery_stores_office_and_school_supply_stores"
7760 }
7761 SwimmingPoolsSales => "swimming_pools_sales",
7762 TUiTravelGermany => "t_ui_travel_germany",
7763 TailorsAlterations => "tailors_alterations",
7764 TaxPaymentsGovernmentAgencies => "tax_payments_government_agencies",
7765 TaxPreparationServices => "tax_preparation_services",
7766 TaxicabsLimousines => "taxicabs_limousines",
7767 TelecommunicationEquipmentAndTelephoneSales => {
7768 "telecommunication_equipment_and_telephone_sales"
7769 }
7770 TelecommunicationServices => "telecommunication_services",
7771 TelegraphServices => "telegraph_services",
7772 TentAndAwningShops => "tent_and_awning_shops",
7773 TestingLaboratories => "testing_laboratories",
7774 TheatricalTicketAgencies => "theatrical_ticket_agencies",
7775 Timeshares => "timeshares",
7776 TireRetreadingAndRepair => "tire_retreading_and_repair",
7777 TollsBridgeFees => "tolls_bridge_fees",
7778 TouristAttractionsAndExhibits => "tourist_attractions_and_exhibits",
7779 TowingServices => "towing_services",
7780 TrailerParksCampgrounds => "trailer_parks_campgrounds",
7781 TransportationServices => "transportation_services",
7782 TravelAgenciesTourOperators => "travel_agencies_tour_operators",
7783 TruckStopIteration => "truck_stop_iteration",
7784 TruckUtilityTrailerRentals => "truck_utility_trailer_rentals",
7785 TypesettingPlateMakingAndRelatedServices => {
7786 "typesetting_plate_making_and_related_services"
7787 }
7788 TypewriterStores => "typewriter_stores",
7789 USFederalGovernmentAgenciesOrDepartments => {
7790 "u_s_federal_government_agencies_or_departments"
7791 }
7792 UniformsCommercialClothing => "uniforms_commercial_clothing",
7793 UsedMerchandiseAndSecondhandStores => "used_merchandise_and_secondhand_stores",
7794 Utilities => "utilities",
7795 VarietyStores => "variety_stores",
7796 VeterinaryServices => "veterinary_services",
7797 VideoAmusementGameSupplies => "video_amusement_game_supplies",
7798 VideoGameArcades => "video_game_arcades",
7799 VideoTapeRentalStores => "video_tape_rental_stores",
7800 VocationalTradeSchools => "vocational_trade_schools",
7801 WatchJewelryRepair => "watch_jewelry_repair",
7802 WeldingRepair => "welding_repair",
7803 WholesaleClubs => "wholesale_clubs",
7804 WigAndToupeeStores => "wig_and_toupee_stores",
7805 WiresMoneyOrders => "wires_money_orders",
7806 WomensAccessoryAndSpecialtyShops => "womens_accessory_and_specialty_shops",
7807 WomensReadyToWearStores => "womens_ready_to_wear_stores",
7808 WreckingAndSalvageYards => "wrecking_and_salvage_yards",
7809 Unknown(v) => v,
7810 }
7811 }
7812}
7813
7814impl std::str::FromStr for UpdateIssuingCardSpendingControlsSpendingLimitsCategories {
7815 type Err = std::convert::Infallible;
7816 fn from_str(s: &str) -> Result<Self, Self::Err> {
7817 use UpdateIssuingCardSpendingControlsSpendingLimitsCategories::*;
7818 match s {
7819 "ac_refrigeration_repair" => Ok(AcRefrigerationRepair),
7820 "accounting_bookkeeping_services" => Ok(AccountingBookkeepingServices),
7821 "advertising_services" => Ok(AdvertisingServices),
7822 "agricultural_cooperative" => Ok(AgriculturalCooperative),
7823 "airlines_air_carriers" => Ok(AirlinesAirCarriers),
7824 "airports_flying_fields" => Ok(AirportsFlyingFields),
7825 "ambulance_services" => Ok(AmbulanceServices),
7826 "amusement_parks_carnivals" => Ok(AmusementParksCarnivals),
7827 "antique_reproductions" => Ok(AntiqueReproductions),
7828 "antique_shops" => Ok(AntiqueShops),
7829 "aquariums" => Ok(Aquariums),
7830 "architectural_surveying_services" => Ok(ArchitecturalSurveyingServices),
7831 "art_dealers_and_galleries" => Ok(ArtDealersAndGalleries),
7832 "artists_supply_and_craft_shops" => Ok(ArtistsSupplyAndCraftShops),
7833 "auto_and_home_supply_stores" => Ok(AutoAndHomeSupplyStores),
7834 "auto_body_repair_shops" => Ok(AutoBodyRepairShops),
7835 "auto_paint_shops" => Ok(AutoPaintShops),
7836 "auto_service_shops" => Ok(AutoServiceShops),
7837 "automated_cash_disburse" => Ok(AutomatedCashDisburse),
7838 "automated_fuel_dispensers" => Ok(AutomatedFuelDispensers),
7839 "automobile_associations" => Ok(AutomobileAssociations),
7840 "automotive_parts_and_accessories_stores" => Ok(AutomotivePartsAndAccessoriesStores),
7841 "automotive_tire_stores" => Ok(AutomotiveTireStores),
7842 "bail_and_bond_payments" => Ok(BailAndBondPayments),
7843 "bakeries" => Ok(Bakeries),
7844 "bands_orchestras" => Ok(BandsOrchestras),
7845 "barber_and_beauty_shops" => Ok(BarberAndBeautyShops),
7846 "betting_casino_gambling" => Ok(BettingCasinoGambling),
7847 "bicycle_shops" => Ok(BicycleShops),
7848 "billiard_pool_establishments" => Ok(BilliardPoolEstablishments),
7849 "boat_dealers" => Ok(BoatDealers),
7850 "boat_rentals_and_leases" => Ok(BoatRentalsAndLeases),
7851 "book_stores" => Ok(BookStores),
7852 "books_periodicals_and_newspapers" => Ok(BooksPeriodicalsAndNewspapers),
7853 "bowling_alleys" => Ok(BowlingAlleys),
7854 "bus_lines" => Ok(BusLines),
7855 "business_secretarial_schools" => Ok(BusinessSecretarialSchools),
7856 "buying_shopping_services" => Ok(BuyingShoppingServices),
7857 "cable_satellite_and_other_pay_television_and_radio" => {
7858 Ok(CableSatelliteAndOtherPayTelevisionAndRadio)
7859 }
7860 "camera_and_photographic_supply_stores" => Ok(CameraAndPhotographicSupplyStores),
7861 "candy_nut_and_confectionery_stores" => Ok(CandyNutAndConfectioneryStores),
7862 "car_and_truck_dealers_new_used" => Ok(CarAndTruckDealersNewUsed),
7863 "car_and_truck_dealers_used_only" => Ok(CarAndTruckDealersUsedOnly),
7864 "car_rental_agencies" => Ok(CarRentalAgencies),
7865 "car_washes" => Ok(CarWashes),
7866 "carpentry_services" => Ok(CarpentryServices),
7867 "carpet_upholstery_cleaning" => Ok(CarpetUpholsteryCleaning),
7868 "caterers" => Ok(Caterers),
7869 "charitable_and_social_service_organizations_fundraising" => {
7870 Ok(CharitableAndSocialServiceOrganizationsFundraising)
7871 }
7872 "chemicals_and_allied_products" => Ok(ChemicalsAndAlliedProducts),
7873 "child_care_services" => Ok(ChildCareServices),
7874 "childrens_and_infants_wear_stores" => Ok(ChildrensAndInfantsWearStores),
7875 "chiropodists_podiatrists" => Ok(ChiropodistsPodiatrists),
7876 "chiropractors" => Ok(Chiropractors),
7877 "cigar_stores_and_stands" => Ok(CigarStoresAndStands),
7878 "civic_social_fraternal_associations" => Ok(CivicSocialFraternalAssociations),
7879 "cleaning_and_maintenance" => Ok(CleaningAndMaintenance),
7880 "clothing_rental" => Ok(ClothingRental),
7881 "colleges_universities" => Ok(CollegesUniversities),
7882 "commercial_equipment" => Ok(CommercialEquipment),
7883 "commercial_footwear" => Ok(CommercialFootwear),
7884 "commercial_photography_art_and_graphics" => Ok(CommercialPhotographyArtAndGraphics),
7885 "commuter_transport_and_ferries" => Ok(CommuterTransportAndFerries),
7886 "computer_network_services" => Ok(ComputerNetworkServices),
7887 "computer_programming" => Ok(ComputerProgramming),
7888 "computer_repair" => Ok(ComputerRepair),
7889 "computer_software_stores" => Ok(ComputerSoftwareStores),
7890 "computers_peripherals_and_software" => Ok(ComputersPeripheralsAndSoftware),
7891 "concrete_work_services" => Ok(ConcreteWorkServices),
7892 "construction_materials" => Ok(ConstructionMaterials),
7893 "consulting_public_relations" => Ok(ConsultingPublicRelations),
7894 "correspondence_schools" => Ok(CorrespondenceSchools),
7895 "cosmetic_stores" => Ok(CosmeticStores),
7896 "counseling_services" => Ok(CounselingServices),
7897 "country_clubs" => Ok(CountryClubs),
7898 "courier_services" => Ok(CourierServices),
7899 "court_costs" => Ok(CourtCosts),
7900 "credit_reporting_agencies" => Ok(CreditReportingAgencies),
7901 "cruise_lines" => Ok(CruiseLines),
7902 "dairy_products_stores" => Ok(DairyProductsStores),
7903 "dance_hall_studios_schools" => Ok(DanceHallStudiosSchools),
7904 "dating_escort_services" => Ok(DatingEscortServices),
7905 "dentists_orthodontists" => Ok(DentistsOrthodontists),
7906 "department_stores" => Ok(DepartmentStores),
7907 "detective_agencies" => Ok(DetectiveAgencies),
7908 "digital_goods_applications" => Ok(DigitalGoodsApplications),
7909 "digital_goods_games" => Ok(DigitalGoodsGames),
7910 "digital_goods_large_volume" => Ok(DigitalGoodsLargeVolume),
7911 "digital_goods_media" => Ok(DigitalGoodsMedia),
7912 "direct_marketing_catalog_merchant" => Ok(DirectMarketingCatalogMerchant),
7913 "direct_marketing_combination_catalog_and_retail_merchant" => {
7914 Ok(DirectMarketingCombinationCatalogAndRetailMerchant)
7915 }
7916 "direct_marketing_inbound_telemarketing" => Ok(DirectMarketingInboundTelemarketing),
7917 "direct_marketing_insurance_services" => Ok(DirectMarketingInsuranceServices),
7918 "direct_marketing_other" => Ok(DirectMarketingOther),
7919 "direct_marketing_outbound_telemarketing" => Ok(DirectMarketingOutboundTelemarketing),
7920 "direct_marketing_subscription" => Ok(DirectMarketingSubscription),
7921 "direct_marketing_travel" => Ok(DirectMarketingTravel),
7922 "discount_stores" => Ok(DiscountStores),
7923 "doctors" => Ok(Doctors),
7924 "door_to_door_sales" => Ok(DoorToDoorSales),
7925 "drapery_window_covering_and_upholstery_stores" => {
7926 Ok(DraperyWindowCoveringAndUpholsteryStores)
7927 }
7928 "drinking_places" => Ok(DrinkingPlaces),
7929 "drug_stores_and_pharmacies" => Ok(DrugStoresAndPharmacies),
7930 "drugs_drug_proprietaries_and_druggist_sundries" => {
7931 Ok(DrugsDrugProprietariesAndDruggistSundries)
7932 }
7933 "dry_cleaners" => Ok(DryCleaners),
7934 "durable_goods" => Ok(DurableGoods),
7935 "duty_free_stores" => Ok(DutyFreeStores),
7936 "eating_places_restaurants" => Ok(EatingPlacesRestaurants),
7937 "educational_services" => Ok(EducationalServices),
7938 "electric_razor_stores" => Ok(ElectricRazorStores),
7939 "electric_vehicle_charging" => Ok(ElectricVehicleCharging),
7940 "electrical_parts_and_equipment" => Ok(ElectricalPartsAndEquipment),
7941 "electrical_services" => Ok(ElectricalServices),
7942 "electronics_repair_shops" => Ok(ElectronicsRepairShops),
7943 "electronics_stores" => Ok(ElectronicsStores),
7944 "elementary_secondary_schools" => Ok(ElementarySecondarySchools),
7945 "emergency_services_gcas_visa_use_only" => Ok(EmergencyServicesGcasVisaUseOnly),
7946 "employment_temp_agencies" => Ok(EmploymentTempAgencies),
7947 "equipment_rental" => Ok(EquipmentRental),
7948 "exterminating_services" => Ok(ExterminatingServices),
7949 "family_clothing_stores" => Ok(FamilyClothingStores),
7950 "fast_food_restaurants" => Ok(FastFoodRestaurants),
7951 "financial_institutions" => Ok(FinancialInstitutions),
7952 "fines_government_administrative_entities" => Ok(FinesGovernmentAdministrativeEntities),
7953 "fireplace_fireplace_screens_and_accessories_stores" => {
7954 Ok(FireplaceFireplaceScreensAndAccessoriesStores)
7955 }
7956 "floor_covering_stores" => Ok(FloorCoveringStores),
7957 "florists" => Ok(Florists),
7958 "florists_supplies_nursery_stock_and_flowers" => {
7959 Ok(FloristsSuppliesNurseryStockAndFlowers)
7960 }
7961 "freezer_and_locker_meat_provisioners" => Ok(FreezerAndLockerMeatProvisioners),
7962 "fuel_dealers_non_automotive" => Ok(FuelDealersNonAutomotive),
7963 "funeral_services_crematories" => Ok(FuneralServicesCrematories),
7964 "furniture_home_furnishings_and_equipment_stores_except_appliances" => {
7965 Ok(FurnitureHomeFurnishingsAndEquipmentStoresExceptAppliances)
7966 }
7967 "furniture_repair_refinishing" => Ok(FurnitureRepairRefinishing),
7968 "furriers_and_fur_shops" => Ok(FurriersAndFurShops),
7969 "general_services" => Ok(GeneralServices),
7970 "gift_card_novelty_and_souvenir_shops" => Ok(GiftCardNoveltyAndSouvenirShops),
7971 "glass_paint_and_wallpaper_stores" => Ok(GlassPaintAndWallpaperStores),
7972 "glassware_crystal_stores" => Ok(GlasswareCrystalStores),
7973 "golf_courses_public" => Ok(GolfCoursesPublic),
7974 "government_licensed_horse_dog_racing_us_region_only" => {
7975 Ok(GovernmentLicensedHorseDogRacingUsRegionOnly)
7976 }
7977 "government_licensed_online_casions_online_gambling_us_region_only" => {
7978 Ok(GovernmentLicensedOnlineCasionsOnlineGamblingUsRegionOnly)
7979 }
7980 "government_owned_lotteries_non_us_region" => Ok(GovernmentOwnedLotteriesNonUsRegion),
7981 "government_owned_lotteries_us_region_only" => Ok(GovernmentOwnedLotteriesUsRegionOnly),
7982 "government_services" => Ok(GovernmentServices),
7983 "grocery_stores_supermarkets" => Ok(GroceryStoresSupermarkets),
7984 "hardware_equipment_and_supplies" => Ok(HardwareEquipmentAndSupplies),
7985 "hardware_stores" => Ok(HardwareStores),
7986 "health_and_beauty_spas" => Ok(HealthAndBeautySpas),
7987 "hearing_aids_sales_and_supplies" => Ok(HearingAidsSalesAndSupplies),
7988 "heating_plumbing_a_c" => Ok(HeatingPlumbingAC),
7989 "hobby_toy_and_game_shops" => Ok(HobbyToyAndGameShops),
7990 "home_supply_warehouse_stores" => Ok(HomeSupplyWarehouseStores),
7991 "hospitals" => Ok(Hospitals),
7992 "hotels_motels_and_resorts" => Ok(HotelsMotelsAndResorts),
7993 "household_appliance_stores" => Ok(HouseholdApplianceStores),
7994 "industrial_supplies" => Ok(IndustrialSupplies),
7995 "information_retrieval_services" => Ok(InformationRetrievalServices),
7996 "insurance_default" => Ok(InsuranceDefault),
7997 "insurance_underwriting_premiums" => Ok(InsuranceUnderwritingPremiums),
7998 "intra_company_purchases" => Ok(IntraCompanyPurchases),
7999 "jewelry_stores_watches_clocks_and_silverware_stores" => {
8000 Ok(JewelryStoresWatchesClocksAndSilverwareStores)
8001 }
8002 "landscaping_services" => Ok(LandscapingServices),
8003 "laundries" => Ok(Laundries),
8004 "laundry_cleaning_services" => Ok(LaundryCleaningServices),
8005 "legal_services_attorneys" => Ok(LegalServicesAttorneys),
8006 "luggage_and_leather_goods_stores" => Ok(LuggageAndLeatherGoodsStores),
8007 "lumber_building_materials_stores" => Ok(LumberBuildingMaterialsStores),
8008 "manual_cash_disburse" => Ok(ManualCashDisburse),
8009 "marinas_service_and_supplies" => Ok(MarinasServiceAndSupplies),
8010 "marketplaces" => Ok(Marketplaces),
8011 "masonry_stonework_and_plaster" => Ok(MasonryStoneworkAndPlaster),
8012 "massage_parlors" => Ok(MassageParlors),
8013 "medical_and_dental_labs" => Ok(MedicalAndDentalLabs),
8014 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies" => {
8015 Ok(MedicalDentalOphthalmicAndHospitalEquipmentAndSupplies)
8016 }
8017 "medical_services" => Ok(MedicalServices),
8018 "membership_organizations" => Ok(MembershipOrganizations),
8019 "mens_and_boys_clothing_and_accessories_stores" => {
8020 Ok(MensAndBoysClothingAndAccessoriesStores)
8021 }
8022 "mens_womens_clothing_stores" => Ok(MensWomensClothingStores),
8023 "metal_service_centers" => Ok(MetalServiceCenters),
8024 "miscellaneous" => Ok(Miscellaneous),
8025 "miscellaneous_apparel_and_accessory_shops" => {
8026 Ok(MiscellaneousApparelAndAccessoryShops)
8027 }
8028 "miscellaneous_auto_dealers" => Ok(MiscellaneousAutoDealers),
8029 "miscellaneous_business_services" => Ok(MiscellaneousBusinessServices),
8030 "miscellaneous_food_stores" => Ok(MiscellaneousFoodStores),
8031 "miscellaneous_general_merchandise" => Ok(MiscellaneousGeneralMerchandise),
8032 "miscellaneous_general_services" => Ok(MiscellaneousGeneralServices),
8033 "miscellaneous_home_furnishing_specialty_stores" => {
8034 Ok(MiscellaneousHomeFurnishingSpecialtyStores)
8035 }
8036 "miscellaneous_publishing_and_printing" => Ok(MiscellaneousPublishingAndPrinting),
8037 "miscellaneous_recreation_services" => Ok(MiscellaneousRecreationServices),
8038 "miscellaneous_repair_shops" => Ok(MiscellaneousRepairShops),
8039 "miscellaneous_specialty_retail" => Ok(MiscellaneousSpecialtyRetail),
8040 "mobile_home_dealers" => Ok(MobileHomeDealers),
8041 "motion_picture_theaters" => Ok(MotionPictureTheaters),
8042 "motor_freight_carriers_and_trucking" => Ok(MotorFreightCarriersAndTrucking),
8043 "motor_homes_dealers" => Ok(MotorHomesDealers),
8044 "motor_vehicle_supplies_and_new_parts" => Ok(MotorVehicleSuppliesAndNewParts),
8045 "motorcycle_shops_and_dealers" => Ok(MotorcycleShopsAndDealers),
8046 "motorcycle_shops_dealers" => Ok(MotorcycleShopsDealers),
8047 "music_stores_musical_instruments_pianos_and_sheet_music" => {
8048 Ok(MusicStoresMusicalInstrumentsPianosAndSheetMusic)
8049 }
8050 "news_dealers_and_newsstands" => Ok(NewsDealersAndNewsstands),
8051 "non_fi_money_orders" => Ok(NonFiMoneyOrders),
8052 "non_fi_stored_value_card_purchase_load" => Ok(NonFiStoredValueCardPurchaseLoad),
8053 "nondurable_goods" => Ok(NondurableGoods),
8054 "nurseries_lawn_and_garden_supply_stores" => Ok(NurseriesLawnAndGardenSupplyStores),
8055 "nursing_personal_care" => Ok(NursingPersonalCare),
8056 "office_and_commercial_furniture" => Ok(OfficeAndCommercialFurniture),
8057 "opticians_eyeglasses" => Ok(OpticiansEyeglasses),
8058 "optometrists_ophthalmologist" => Ok(OptometristsOphthalmologist),
8059 "orthopedic_goods_prosthetic_devices" => Ok(OrthopedicGoodsProstheticDevices),
8060 "osteopaths" => Ok(Osteopaths),
8061 "package_stores_beer_wine_and_liquor" => Ok(PackageStoresBeerWineAndLiquor),
8062 "paints_varnishes_and_supplies" => Ok(PaintsVarnishesAndSupplies),
8063 "parking_lots_garages" => Ok(ParkingLotsGarages),
8064 "passenger_railways" => Ok(PassengerRailways),
8065 "pawn_shops" => Ok(PawnShops),
8066 "pet_shops_pet_food_and_supplies" => Ok(PetShopsPetFoodAndSupplies),
8067 "petroleum_and_petroleum_products" => Ok(PetroleumAndPetroleumProducts),
8068 "photo_developing" => Ok(PhotoDeveloping),
8069 "photographic_photocopy_microfilm_equipment_and_supplies" => {
8070 Ok(PhotographicPhotocopyMicrofilmEquipmentAndSupplies)
8071 }
8072 "photographic_studios" => Ok(PhotographicStudios),
8073 "picture_video_production" => Ok(PictureVideoProduction),
8074 "piece_goods_notions_and_other_dry_goods" => Ok(PieceGoodsNotionsAndOtherDryGoods),
8075 "plumbing_heating_equipment_and_supplies" => Ok(PlumbingHeatingEquipmentAndSupplies),
8076 "political_organizations" => Ok(PoliticalOrganizations),
8077 "postal_services_government_only" => Ok(PostalServicesGovernmentOnly),
8078 "precious_stones_and_metals_watches_and_jewelry" => {
8079 Ok(PreciousStonesAndMetalsWatchesAndJewelry)
8080 }
8081 "professional_services" => Ok(ProfessionalServices),
8082 "public_warehousing_and_storage" => Ok(PublicWarehousingAndStorage),
8083 "quick_copy_repro_and_blueprint" => Ok(QuickCopyReproAndBlueprint),
8084 "railroads" => Ok(Railroads),
8085 "real_estate_agents_and_managers_rentals" => Ok(RealEstateAgentsAndManagersRentals),
8086 "record_stores" => Ok(RecordStores),
8087 "recreational_vehicle_rentals" => Ok(RecreationalVehicleRentals),
8088 "religious_goods_stores" => Ok(ReligiousGoodsStores),
8089 "religious_organizations" => Ok(ReligiousOrganizations),
8090 "roofing_siding_sheet_metal" => Ok(RoofingSidingSheetMetal),
8091 "secretarial_support_services" => Ok(SecretarialSupportServices),
8092 "security_brokers_dealers" => Ok(SecurityBrokersDealers),
8093 "service_stations" => Ok(ServiceStations),
8094 "sewing_needlework_fabric_and_piece_goods_stores" => {
8095 Ok(SewingNeedleworkFabricAndPieceGoodsStores)
8096 }
8097 "shoe_repair_hat_cleaning" => Ok(ShoeRepairHatCleaning),
8098 "shoe_stores" => Ok(ShoeStores),
8099 "small_appliance_repair" => Ok(SmallApplianceRepair),
8100 "snowmobile_dealers" => Ok(SnowmobileDealers),
8101 "special_trade_services" => Ok(SpecialTradeServices),
8102 "specialty_cleaning" => Ok(SpecialtyCleaning),
8103 "sporting_goods_stores" => Ok(SportingGoodsStores),
8104 "sporting_recreation_camps" => Ok(SportingRecreationCamps),
8105 "sports_and_riding_apparel_stores" => Ok(SportsAndRidingApparelStores),
8106 "sports_clubs_fields" => Ok(SportsClubsFields),
8107 "stamp_and_coin_stores" => Ok(StampAndCoinStores),
8108 "stationary_office_supplies_printing_and_writing_paper" => {
8109 Ok(StationaryOfficeSuppliesPrintingAndWritingPaper)
8110 }
8111 "stationery_stores_office_and_school_supply_stores" => {
8112 Ok(StationeryStoresOfficeAndSchoolSupplyStores)
8113 }
8114 "swimming_pools_sales" => Ok(SwimmingPoolsSales),
8115 "t_ui_travel_germany" => Ok(TUiTravelGermany),
8116 "tailors_alterations" => Ok(TailorsAlterations),
8117 "tax_payments_government_agencies" => Ok(TaxPaymentsGovernmentAgencies),
8118 "tax_preparation_services" => Ok(TaxPreparationServices),
8119 "taxicabs_limousines" => Ok(TaxicabsLimousines),
8120 "telecommunication_equipment_and_telephone_sales" => {
8121 Ok(TelecommunicationEquipmentAndTelephoneSales)
8122 }
8123 "telecommunication_services" => Ok(TelecommunicationServices),
8124 "telegraph_services" => Ok(TelegraphServices),
8125 "tent_and_awning_shops" => Ok(TentAndAwningShops),
8126 "testing_laboratories" => Ok(TestingLaboratories),
8127 "theatrical_ticket_agencies" => Ok(TheatricalTicketAgencies),
8128 "timeshares" => Ok(Timeshares),
8129 "tire_retreading_and_repair" => Ok(TireRetreadingAndRepair),
8130 "tolls_bridge_fees" => Ok(TollsBridgeFees),
8131 "tourist_attractions_and_exhibits" => Ok(TouristAttractionsAndExhibits),
8132 "towing_services" => Ok(TowingServices),
8133 "trailer_parks_campgrounds" => Ok(TrailerParksCampgrounds),
8134 "transportation_services" => Ok(TransportationServices),
8135 "travel_agencies_tour_operators" => Ok(TravelAgenciesTourOperators),
8136 "truck_stop_iteration" => Ok(TruckStopIteration),
8137 "truck_utility_trailer_rentals" => Ok(TruckUtilityTrailerRentals),
8138 "typesetting_plate_making_and_related_services" => {
8139 Ok(TypesettingPlateMakingAndRelatedServices)
8140 }
8141 "typewriter_stores" => Ok(TypewriterStores),
8142 "u_s_federal_government_agencies_or_departments" => {
8143 Ok(USFederalGovernmentAgenciesOrDepartments)
8144 }
8145 "uniforms_commercial_clothing" => Ok(UniformsCommercialClothing),
8146 "used_merchandise_and_secondhand_stores" => Ok(UsedMerchandiseAndSecondhandStores),
8147 "utilities" => Ok(Utilities),
8148 "variety_stores" => Ok(VarietyStores),
8149 "veterinary_services" => Ok(VeterinaryServices),
8150 "video_amusement_game_supplies" => Ok(VideoAmusementGameSupplies),
8151 "video_game_arcades" => Ok(VideoGameArcades),
8152 "video_tape_rental_stores" => Ok(VideoTapeRentalStores),
8153 "vocational_trade_schools" => Ok(VocationalTradeSchools),
8154 "watch_jewelry_repair" => Ok(WatchJewelryRepair),
8155 "welding_repair" => Ok(WeldingRepair),
8156 "wholesale_clubs" => Ok(WholesaleClubs),
8157 "wig_and_toupee_stores" => Ok(WigAndToupeeStores),
8158 "wires_money_orders" => Ok(WiresMoneyOrders),
8159 "womens_accessory_and_specialty_shops" => Ok(WomensAccessoryAndSpecialtyShops),
8160 "womens_ready_to_wear_stores" => Ok(WomensReadyToWearStores),
8161 "wrecking_and_salvage_yards" => Ok(WreckingAndSalvageYards),
8162 v => {
8163 tracing::warn!(
8164 "Unknown value '{}' for enum '{}'",
8165 v,
8166 "UpdateIssuingCardSpendingControlsSpendingLimitsCategories"
8167 );
8168 Ok(Unknown(v.to_owned()))
8169 }
8170 }
8171 }
8172}
8173impl std::fmt::Display for UpdateIssuingCardSpendingControlsSpendingLimitsCategories {
8174 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8175 f.write_str(self.as_str())
8176 }
8177}
8178
8179#[cfg(not(feature = "redact-generated-debug"))]
8180impl std::fmt::Debug for UpdateIssuingCardSpendingControlsSpendingLimitsCategories {
8181 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8182 f.write_str(self.as_str())
8183 }
8184}
8185#[cfg(feature = "redact-generated-debug")]
8186impl std::fmt::Debug for UpdateIssuingCardSpendingControlsSpendingLimitsCategories {
8187 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8188 f.debug_struct(stringify!(UpdateIssuingCardSpendingControlsSpendingLimitsCategories))
8189 .finish_non_exhaustive()
8190 }
8191}
8192impl serde::Serialize for UpdateIssuingCardSpendingControlsSpendingLimitsCategories {
8193 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
8194 where
8195 S: serde::Serializer,
8196 {
8197 serializer.serialize_str(self.as_str())
8198 }
8199}
8200#[cfg(feature = "deserialize")]
8201impl<'de> serde::Deserialize<'de> for UpdateIssuingCardSpendingControlsSpendingLimitsCategories {
8202 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
8203 use std::str::FromStr;
8204 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
8205 Ok(Self::from_str(&s).expect("infallible"))
8206 }
8207}
8208#[derive(Clone, Eq, PartialEq)]
8210#[non_exhaustive]
8211pub enum UpdateIssuingCardSpendingControlsSpendingLimitsInterval {
8212 AllTime,
8213 Daily,
8214 Monthly,
8215 PerAuthorization,
8216 Weekly,
8217 Yearly,
8218 Unknown(String),
8220}
8221impl UpdateIssuingCardSpendingControlsSpendingLimitsInterval {
8222 pub fn as_str(&self) -> &str {
8223 use UpdateIssuingCardSpendingControlsSpendingLimitsInterval::*;
8224 match self {
8225 AllTime => "all_time",
8226 Daily => "daily",
8227 Monthly => "monthly",
8228 PerAuthorization => "per_authorization",
8229 Weekly => "weekly",
8230 Yearly => "yearly",
8231 Unknown(v) => v,
8232 }
8233 }
8234}
8235
8236impl std::str::FromStr for UpdateIssuingCardSpendingControlsSpendingLimitsInterval {
8237 type Err = std::convert::Infallible;
8238 fn from_str(s: &str) -> Result<Self, Self::Err> {
8239 use UpdateIssuingCardSpendingControlsSpendingLimitsInterval::*;
8240 match s {
8241 "all_time" => Ok(AllTime),
8242 "daily" => Ok(Daily),
8243 "monthly" => Ok(Monthly),
8244 "per_authorization" => Ok(PerAuthorization),
8245 "weekly" => Ok(Weekly),
8246 "yearly" => Ok(Yearly),
8247 v => {
8248 tracing::warn!(
8249 "Unknown value '{}' for enum '{}'",
8250 v,
8251 "UpdateIssuingCardSpendingControlsSpendingLimitsInterval"
8252 );
8253 Ok(Unknown(v.to_owned()))
8254 }
8255 }
8256 }
8257}
8258impl std::fmt::Display for UpdateIssuingCardSpendingControlsSpendingLimitsInterval {
8259 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8260 f.write_str(self.as_str())
8261 }
8262}
8263
8264#[cfg(not(feature = "redact-generated-debug"))]
8265impl std::fmt::Debug for UpdateIssuingCardSpendingControlsSpendingLimitsInterval {
8266 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8267 f.write_str(self.as_str())
8268 }
8269}
8270#[cfg(feature = "redact-generated-debug")]
8271impl std::fmt::Debug for UpdateIssuingCardSpendingControlsSpendingLimitsInterval {
8272 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8273 f.debug_struct(stringify!(UpdateIssuingCardSpendingControlsSpendingLimitsInterval))
8274 .finish_non_exhaustive()
8275 }
8276}
8277impl serde::Serialize for UpdateIssuingCardSpendingControlsSpendingLimitsInterval {
8278 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
8279 where
8280 S: serde::Serializer,
8281 {
8282 serializer.serialize_str(self.as_str())
8283 }
8284}
8285#[cfg(feature = "deserialize")]
8286impl<'de> serde::Deserialize<'de> for UpdateIssuingCardSpendingControlsSpendingLimitsInterval {
8287 fn deserialize<D: serde::Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error> {
8288 use std::str::FromStr;
8289 let s: std::borrow::Cow<'de, str> = serde::Deserialize::deserialize(deserializer)?;
8290 Ok(Self::from_str(&s).expect("infallible"))
8291 }
8292}
8293#[derive(Clone)]
8296#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
8297#[derive(serde::Serialize)]
8298pub struct UpdateIssuingCard {
8299 inner: UpdateIssuingCardBuilder,
8300 card: stripe_shared::IssuingCardId,
8301}
8302#[cfg(feature = "redact-generated-debug")]
8303impl std::fmt::Debug for UpdateIssuingCard {
8304 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8305 f.debug_struct("UpdateIssuingCard").finish_non_exhaustive()
8306 }
8307}
8308impl UpdateIssuingCard {
8309 pub fn new(card: impl Into<stripe_shared::IssuingCardId>) -> Self {
8311 Self { card: card.into(), inner: UpdateIssuingCardBuilder::new() }
8312 }
8313 pub fn cancellation_reason(
8315 mut self,
8316 cancellation_reason: impl Into<UpdateIssuingCardCancellationReason>,
8317 ) -> Self {
8318 self.inner.cancellation_reason = Some(cancellation_reason.into());
8319 self
8320 }
8321 pub fn expand(mut self, expand: impl Into<Vec<String>>) -> Self {
8323 self.inner.expand = Some(expand.into());
8324 self
8325 }
8326 pub fn metadata(
8331 mut self,
8332 metadata: impl Into<std::collections::HashMap<String, String>>,
8333 ) -> Self {
8334 self.inner.metadata = Some(metadata.into());
8335 self
8336 }
8337 pub fn personalization_design(mut self, personalization_design: impl Into<String>) -> Self {
8338 self.inner.personalization_design = Some(personalization_design.into());
8339 self
8340 }
8341 pub fn pin(mut self, pin: impl Into<EncryptedPinParam>) -> Self {
8343 self.inner.pin = Some(pin.into());
8344 self
8345 }
8346 pub fn shipping(mut self, shipping: impl Into<UpdateIssuingCardShipping>) -> Self {
8348 self.inner.shipping = Some(shipping.into());
8349 self
8350 }
8351 pub fn spending_controls(
8354 mut self,
8355 spending_controls: impl Into<UpdateIssuingCardSpendingControls>,
8356 ) -> Self {
8357 self.inner.spending_controls = Some(spending_controls.into());
8358 self
8359 }
8360 pub fn status(mut self, status: impl Into<stripe_shared::IssuingCardStatus>) -> Self {
8365 self.inner.status = Some(status.into());
8366 self
8367 }
8368}
8369impl UpdateIssuingCard {
8370 pub async fn send<C: StripeClient>(
8372 &self,
8373 client: &C,
8374 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
8375 self.customize().send(client).await
8376 }
8377
8378 pub fn send_blocking<C: StripeBlockingClient>(
8380 &self,
8381 client: &C,
8382 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
8383 self.customize().send_blocking(client)
8384 }
8385}
8386
8387impl StripeRequest for UpdateIssuingCard {
8388 type Output = stripe_shared::IssuingCard;
8389
8390 fn build(&self) -> RequestBuilder {
8391 let card = &self.card;
8392 RequestBuilder::new(StripeMethod::Post, format!("/issuing/cards/{card}")).form(&self.inner)
8393 }
8394}
8395#[derive(Clone, Eq, PartialEq)]
8396#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
8397#[derive(serde::Serialize)]
8398struct DeliverCardIssuingCardBuilder {
8399 #[serde(skip_serializing_if = "Option::is_none")]
8400 expand: Option<Vec<String>>,
8401}
8402#[cfg(feature = "redact-generated-debug")]
8403impl std::fmt::Debug for DeliverCardIssuingCardBuilder {
8404 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8405 f.debug_struct("DeliverCardIssuingCardBuilder").finish_non_exhaustive()
8406 }
8407}
8408impl DeliverCardIssuingCardBuilder {
8409 fn new() -> Self {
8410 Self { expand: None }
8411 }
8412}
8413#[derive(Clone)]
8415#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
8416#[derive(serde::Serialize)]
8417pub struct DeliverCardIssuingCard {
8418 inner: DeliverCardIssuingCardBuilder,
8419 card: String,
8420}
8421#[cfg(feature = "redact-generated-debug")]
8422impl std::fmt::Debug for DeliverCardIssuingCard {
8423 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8424 f.debug_struct("DeliverCardIssuingCard").finish_non_exhaustive()
8425 }
8426}
8427impl DeliverCardIssuingCard {
8428 pub fn new(card: impl Into<String>) -> Self {
8430 Self { card: card.into(), inner: DeliverCardIssuingCardBuilder::new() }
8431 }
8432 pub fn expand(mut self, expand: impl Into<Vec<String>>) -> Self {
8434 self.inner.expand = Some(expand.into());
8435 self
8436 }
8437}
8438impl DeliverCardIssuingCard {
8439 pub async fn send<C: StripeClient>(
8441 &self,
8442 client: &C,
8443 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
8444 self.customize().send(client).await
8445 }
8446
8447 pub fn send_blocking<C: StripeBlockingClient>(
8449 &self,
8450 client: &C,
8451 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
8452 self.customize().send_blocking(client)
8453 }
8454}
8455
8456impl StripeRequest for DeliverCardIssuingCard {
8457 type Output = stripe_shared::IssuingCard;
8458
8459 fn build(&self) -> RequestBuilder {
8460 let card = &self.card;
8461 RequestBuilder::new(
8462 StripeMethod::Post,
8463 format!("/test_helpers/issuing/cards/{card}/shipping/deliver"),
8464 )
8465 .form(&self.inner)
8466 }
8467}
8468#[derive(Clone, Eq, PartialEq)]
8469#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
8470#[derive(serde::Serialize)]
8471struct FailCardIssuingCardBuilder {
8472 #[serde(skip_serializing_if = "Option::is_none")]
8473 expand: Option<Vec<String>>,
8474}
8475#[cfg(feature = "redact-generated-debug")]
8476impl std::fmt::Debug for FailCardIssuingCardBuilder {
8477 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8478 f.debug_struct("FailCardIssuingCardBuilder").finish_non_exhaustive()
8479 }
8480}
8481impl FailCardIssuingCardBuilder {
8482 fn new() -> Self {
8483 Self { expand: None }
8484 }
8485}
8486#[derive(Clone)]
8488#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
8489#[derive(serde::Serialize)]
8490pub struct FailCardIssuingCard {
8491 inner: FailCardIssuingCardBuilder,
8492 card: String,
8493}
8494#[cfg(feature = "redact-generated-debug")]
8495impl std::fmt::Debug for FailCardIssuingCard {
8496 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8497 f.debug_struct("FailCardIssuingCard").finish_non_exhaustive()
8498 }
8499}
8500impl FailCardIssuingCard {
8501 pub fn new(card: impl Into<String>) -> Self {
8503 Self { card: card.into(), inner: FailCardIssuingCardBuilder::new() }
8504 }
8505 pub fn expand(mut self, expand: impl Into<Vec<String>>) -> Self {
8507 self.inner.expand = Some(expand.into());
8508 self
8509 }
8510}
8511impl FailCardIssuingCard {
8512 pub async fn send<C: StripeClient>(
8514 &self,
8515 client: &C,
8516 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
8517 self.customize().send(client).await
8518 }
8519
8520 pub fn send_blocking<C: StripeBlockingClient>(
8522 &self,
8523 client: &C,
8524 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
8525 self.customize().send_blocking(client)
8526 }
8527}
8528
8529impl StripeRequest for FailCardIssuingCard {
8530 type Output = stripe_shared::IssuingCard;
8531
8532 fn build(&self) -> RequestBuilder {
8533 let card = &self.card;
8534 RequestBuilder::new(
8535 StripeMethod::Post,
8536 format!("/test_helpers/issuing/cards/{card}/shipping/fail"),
8537 )
8538 .form(&self.inner)
8539 }
8540}
8541#[derive(Clone, Eq, PartialEq)]
8542#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
8543#[derive(serde::Serialize)]
8544struct ReturnCardIssuingCardBuilder {
8545 #[serde(skip_serializing_if = "Option::is_none")]
8546 expand: Option<Vec<String>>,
8547}
8548#[cfg(feature = "redact-generated-debug")]
8549impl std::fmt::Debug for ReturnCardIssuingCardBuilder {
8550 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8551 f.debug_struct("ReturnCardIssuingCardBuilder").finish_non_exhaustive()
8552 }
8553}
8554impl ReturnCardIssuingCardBuilder {
8555 fn new() -> Self {
8556 Self { expand: None }
8557 }
8558}
8559#[derive(Clone)]
8561#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
8562#[derive(serde::Serialize)]
8563pub struct ReturnCardIssuingCard {
8564 inner: ReturnCardIssuingCardBuilder,
8565 card: String,
8566}
8567#[cfg(feature = "redact-generated-debug")]
8568impl std::fmt::Debug for ReturnCardIssuingCard {
8569 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8570 f.debug_struct("ReturnCardIssuingCard").finish_non_exhaustive()
8571 }
8572}
8573impl ReturnCardIssuingCard {
8574 pub fn new(card: impl Into<String>) -> Self {
8576 Self { card: card.into(), inner: ReturnCardIssuingCardBuilder::new() }
8577 }
8578 pub fn expand(mut self, expand: impl Into<Vec<String>>) -> Self {
8580 self.inner.expand = Some(expand.into());
8581 self
8582 }
8583}
8584impl ReturnCardIssuingCard {
8585 pub async fn send<C: StripeClient>(
8587 &self,
8588 client: &C,
8589 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
8590 self.customize().send(client).await
8591 }
8592
8593 pub fn send_blocking<C: StripeBlockingClient>(
8595 &self,
8596 client: &C,
8597 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
8598 self.customize().send_blocking(client)
8599 }
8600}
8601
8602impl StripeRequest for ReturnCardIssuingCard {
8603 type Output = stripe_shared::IssuingCard;
8604
8605 fn build(&self) -> RequestBuilder {
8606 let card = &self.card;
8607 RequestBuilder::new(
8608 StripeMethod::Post,
8609 format!("/test_helpers/issuing/cards/{card}/shipping/return"),
8610 )
8611 .form(&self.inner)
8612 }
8613}
8614#[derive(Clone, Eq, PartialEq)]
8615#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
8616#[derive(serde::Serialize)]
8617struct ShipCardIssuingCardBuilder {
8618 #[serde(skip_serializing_if = "Option::is_none")]
8619 expand: Option<Vec<String>>,
8620}
8621#[cfg(feature = "redact-generated-debug")]
8622impl std::fmt::Debug for ShipCardIssuingCardBuilder {
8623 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8624 f.debug_struct("ShipCardIssuingCardBuilder").finish_non_exhaustive()
8625 }
8626}
8627impl ShipCardIssuingCardBuilder {
8628 fn new() -> Self {
8629 Self { expand: None }
8630 }
8631}
8632#[derive(Clone)]
8634#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
8635#[derive(serde::Serialize)]
8636pub struct ShipCardIssuingCard {
8637 inner: ShipCardIssuingCardBuilder,
8638 card: String,
8639}
8640#[cfg(feature = "redact-generated-debug")]
8641impl std::fmt::Debug for ShipCardIssuingCard {
8642 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8643 f.debug_struct("ShipCardIssuingCard").finish_non_exhaustive()
8644 }
8645}
8646impl ShipCardIssuingCard {
8647 pub fn new(card: impl Into<String>) -> Self {
8649 Self { card: card.into(), inner: ShipCardIssuingCardBuilder::new() }
8650 }
8651 pub fn expand(mut self, expand: impl Into<Vec<String>>) -> Self {
8653 self.inner.expand = Some(expand.into());
8654 self
8655 }
8656}
8657impl ShipCardIssuingCard {
8658 pub async fn send<C: StripeClient>(
8660 &self,
8661 client: &C,
8662 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
8663 self.customize().send(client).await
8664 }
8665
8666 pub fn send_blocking<C: StripeBlockingClient>(
8668 &self,
8669 client: &C,
8670 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
8671 self.customize().send_blocking(client)
8672 }
8673}
8674
8675impl StripeRequest for ShipCardIssuingCard {
8676 type Output = stripe_shared::IssuingCard;
8677
8678 fn build(&self) -> RequestBuilder {
8679 let card = &self.card;
8680 RequestBuilder::new(
8681 StripeMethod::Post,
8682 format!("/test_helpers/issuing/cards/{card}/shipping/ship"),
8683 )
8684 .form(&self.inner)
8685 }
8686}
8687#[derive(Clone, Eq, PartialEq)]
8688#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
8689#[derive(serde::Serialize)]
8690struct SubmitCardIssuingCardBuilder {
8691 #[serde(skip_serializing_if = "Option::is_none")]
8692 expand: Option<Vec<String>>,
8693}
8694#[cfg(feature = "redact-generated-debug")]
8695impl std::fmt::Debug for SubmitCardIssuingCardBuilder {
8696 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8697 f.debug_struct("SubmitCardIssuingCardBuilder").finish_non_exhaustive()
8698 }
8699}
8700impl SubmitCardIssuingCardBuilder {
8701 fn new() -> Self {
8702 Self { expand: None }
8703 }
8704}
8705#[derive(Clone)]
8708#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
8709#[derive(serde::Serialize)]
8710pub struct SubmitCardIssuingCard {
8711 inner: SubmitCardIssuingCardBuilder,
8712 card: String,
8713}
8714#[cfg(feature = "redact-generated-debug")]
8715impl std::fmt::Debug for SubmitCardIssuingCard {
8716 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8717 f.debug_struct("SubmitCardIssuingCard").finish_non_exhaustive()
8718 }
8719}
8720impl SubmitCardIssuingCard {
8721 pub fn new(card: impl Into<String>) -> Self {
8723 Self { card: card.into(), inner: SubmitCardIssuingCardBuilder::new() }
8724 }
8725 pub fn expand(mut self, expand: impl Into<Vec<String>>) -> Self {
8727 self.inner.expand = Some(expand.into());
8728 self
8729 }
8730}
8731impl SubmitCardIssuingCard {
8732 pub async fn send<C: StripeClient>(
8734 &self,
8735 client: &C,
8736 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
8737 self.customize().send(client).await
8738 }
8739
8740 pub fn send_blocking<C: StripeBlockingClient>(
8742 &self,
8743 client: &C,
8744 ) -> Result<<Self as StripeRequest>::Output, C::Err> {
8745 self.customize().send_blocking(client)
8746 }
8747}
8748
8749impl StripeRequest for SubmitCardIssuingCard {
8750 type Output = stripe_shared::IssuingCard;
8751
8752 fn build(&self) -> RequestBuilder {
8753 let card = &self.card;
8754 RequestBuilder::new(
8755 StripeMethod::Post,
8756 format!("/test_helpers/issuing/cards/{card}/shipping/submit"),
8757 )
8758 .form(&self.inner)
8759 }
8760}
8761
8762#[derive(Clone, Eq, PartialEq)]
8763#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
8764#[derive(serde::Serialize)]
8765pub struct EncryptedPinParam {
8766 #[serde(skip_serializing_if = "Option::is_none")]
8768 pub encrypted_number: Option<String>,
8769}
8770#[cfg(feature = "redact-generated-debug")]
8771impl std::fmt::Debug for EncryptedPinParam {
8772 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8773 f.debug_struct("EncryptedPinParam").finish_non_exhaustive()
8774 }
8775}
8776impl EncryptedPinParam {
8777 pub fn new() -> Self {
8778 Self { encrypted_number: None }
8779 }
8780}
8781impl Default for EncryptedPinParam {
8782 fn default() -> Self {
8783 Self::new()
8784 }
8785}
8786#[derive(Clone, Eq, PartialEq)]
8787#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
8788#[derive(serde::Serialize)]
8789pub struct RequiredAddress {
8790 pub city: String,
8792 pub country: String,
8794 pub line1: String,
8796 #[serde(skip_serializing_if = "Option::is_none")]
8798 pub line2: Option<String>,
8799 pub postal_code: String,
8801 #[serde(skip_serializing_if = "Option::is_none")]
8803 pub state: Option<String>,
8804}
8805#[cfg(feature = "redact-generated-debug")]
8806impl std::fmt::Debug for RequiredAddress {
8807 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8808 f.debug_struct("RequiredAddress").finish_non_exhaustive()
8809 }
8810}
8811impl RequiredAddress {
8812 pub fn new(
8813 city: impl Into<String>,
8814 country: impl Into<String>,
8815 line1: impl Into<String>,
8816 postal_code: impl Into<String>,
8817 ) -> Self {
8818 Self {
8819 city: city.into(),
8820 country: country.into(),
8821 line1: line1.into(),
8822 line2: None,
8823 postal_code: postal_code.into(),
8824 state: None,
8825 }
8826 }
8827}
8828#[derive(Clone, Eq, PartialEq)]
8829#[cfg_attr(not(feature = "redact-generated-debug"), derive(Debug))]
8830#[derive(serde::Serialize)]
8831pub struct CustomsParam {
8832 #[serde(skip_serializing_if = "Option::is_none")]
8835 pub eori_number: Option<String>,
8836}
8837#[cfg(feature = "redact-generated-debug")]
8838impl std::fmt::Debug for CustomsParam {
8839 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
8840 f.debug_struct("CustomsParam").finish_non_exhaustive()
8841 }
8842}
8843impl CustomsParam {
8844 pub fn new() -> Self {
8845 Self { eori_number: None }
8846 }
8847}
8848impl Default for CustomsParam {
8849 fn default() -> Self {
8850 Self::new()
8851 }
8852}