pub enum CustomerCreationSource {
Show 19 variants Other, Appointments, Coupon, DeletionRecovery, Directory, Egifting, EmailCollection, Feedback, Import, Invoices, Loyalty, Marketing, Merge, OnlineStore, InstantProfile, Terminal, ThirdParty, ThirdPartyImport, UnmergeRecovery,
}
Expand description

Indicates the method used to create the customer profile.

Variants

Other

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.

Appointments

The customer profile was created automatically when an appointment was scheduled.

Coupon

The customer profile was created automatically when a coupon was issued using Square Point of Sale.

DeletionRecovery

The customer profile was restored through Square’s deletion recovery process.

Directory

The customer profile was created manually through Square Seller Dashboard or the Point of Sale application.

Egifting

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.

EmailCollection

The customer profile was created through Square Point of Sale when signing up for marketing emails during checkout.

Feedback

The customer profile was created automatically when providing feedback through a digital receipt.

Import

The customer profile was created automatically when importing customer data through Square Seller Dashboard.

Invoices

The customer profile was created automatically during an invoice payment.

Loyalty

The customer profile was created automatically when customers provide a phone number for loyalty reward programs during checkout.

Marketing

The customer profile was created as the result of a campaign managed through Square’s Facebook integration.

Merge

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.

OnlineStore

The customer profile was created through Square’s Online Store solution (legacy service).

InstantProfile

The customer profile was created automatically as the result of a successful transaction that did not explicitly link to an existing customer profile.

Terminal

The customer profile was created through Square’s Virtual Terminal.

ThirdParty

The customer profile was created through a Square API call.

ThirdPartyImport

The customer profile was created by a third-party product and imported through an official integration.

UnmergeRecovery

The customer profile was restored through Square’s unmerge recovery process.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more