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