square_api_client/models/enums/
customer_creation_source.rs

1//! Model for CustomerCreationSource enum
2
3use serde::{Deserialize, Serialize};
4
5/// Indicates the method used to create the customer profile.
6#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
7#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
8pub enum CustomerCreationSource {
9    /// The default creation source. This source is typically used for backward/future compatibility
10    /// when the original source of a customer profile is unrecognized. For example, when older
11    /// clients do not support newer source types.
12    Other,
13    /// The customer profile was created automatically when an appointment was scheduled.
14    Appointments,
15    /// The customer profile was created automatically when a coupon was issued using Square Point
16    /// of Sale.
17    Coupon,
18    /// The customer profile was restored through Square's deletion recovery process.
19    DeletionRecovery,
20    /// The customer profile was created manually through Square Seller Dashboard or the Point of
21    /// Sale application.
22    Directory,
23    /// The customer profile was created automatically when a gift card was issued using Square
24    /// Point of Sale. Customer profiles are created for both the buyer and the recipient of the
25    /// gift card.
26    Egifting,
27    /// The customer profile was created through Square Point of Sale when signing up for marketing
28    /// emails during checkout.
29    EmailCollection,
30    /// The customer profile was created automatically when providing feedback through a digital
31    /// receipt.
32    Feedback,
33    /// The customer profile was created automatically when importing customer data through Square
34    /// Seller Dashboard.
35    Import,
36    /// The customer profile was created automatically during an invoice payment.
37    Invoices,
38    /// The customer profile was created automatically when customers provide a phone number for
39    /// loyalty reward programs during checkout.
40    Loyalty,
41    /// The customer profile was created as the result of a campaign managed through Square’s
42    /// Facebook integration.
43    Marketing,
44    /// The customer profile was created as the result of explicitly merging multiple customer
45    /// profiles through the Square Seller Dashboard or the Point of Sale application.
46    Merge,
47    /// The customer profile was created through Square's Online Store solution (legacy service).
48    OnlineStore,
49    /// The customer profile was created automatically as the result of a successful transaction
50    /// that did not explicitly link to an existing customer profile.
51    InstantProfile,
52    /// The customer profile was created through Square's Virtual Terminal.
53    Terminal,
54    /// The customer profile was created through a Square API call.
55    ThirdParty,
56    /// The customer profile was created by a third-party product and imported through an official
57    /// integration.
58    ThirdPartyImport,
59    /// The customer profile was restored through Square's unmerge recovery process.
60    UnmergeRecovery,
61}