Skip to content

Latest commit

 

History

History
39 lines (32 loc) · 2.95 KB

ApplicationCustomer.md

File metadata and controls

39 lines (32 loc) · 2.95 KB

TalonOne::ApplicationCustomer

Properties

Name Type Description Notes
id Integer Internal ID of this entity. Internal ID of this entity.
created DateTime The time this entity was created. The time this entity was created. The time this entity was created. The time this entity was created.
integration_id String The integration ID set by your integration layer. The integration ID set by your integration layer.
attributes Object Arbitrary properties associated with this item.
account_id Integer The ID of the Talon.One account that owns this profile. The ID of the Talon.One account that owns this profile.
closed_sessions Integer The total amount of closed sessions by a customer. A closed session is a successful purchase.
total_sales Float The total amount of money spent by the customer before discounts are applied. The total sales amount excludes the following: - Cancelled or reopened sessions. - Returned items.
loyalty_memberships Array<LoyaltyMembership> DEPRECATED A list of loyalty programs joined by the customer. [optional]
audience_memberships Array<AudienceMembership> The audiences the customer belongs to. [optional]
last_activity DateTime Timestamp of the most recent event received from this customer. This field is updated on calls that trigger the Rule Engine and that are not dry requests. For example, reserving a coupon for a customer doesn't impact this field.
sandbox Boolean An indicator of whether the customer is part of a sandbox or live Application. See the docs. [optional]
advocate_integration_id String The Integration ID of the Customer Profile that referred this Customer in the Application. [optional]

Code Sample

require 'TalonOne'

instance = TalonOne::ApplicationCustomer.new(id: null,
                                 created: null,
                                 integration_id: null,
                                 attributes: {&quot;Language&quot;:&quot;english&quot;,&quot;ShippingCountry&quot;:&quot;DE&quot;},
                                 account_id: null,
                                 closed_sessions: 3,
                                 total_sales: 299.99,
                                 loyalty_memberships: null,
                                 audience_memberships: null,
                                 last_activity: 2020-02-08T14:15:20Z,
                                 sandbox: false,
                                 advocate_integration_id: null)