Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 2.97 KB

AudienceCustomer.md

File metadata and controls

41 lines (34 loc) · 2.97 KB

TalonOne::AudienceCustomer

Properties

Name Type Description Notes
id Integer Internal ID of this entity.
created DateTime The time this entity was created. The time this entity was created.
integration_id String 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.
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]
connected_applications_ids Array<Integer> A list of the IDs of the Applications that are connected to this customer profile. [optional]
connected_audiences Array<Integer> A list of the IDs of the audiences that are connected to this customer profile. [optional]

Code Sample

require 'TalonOne'

instance = TalonOne::AudienceCustomer.new(id: 6,
                                 created: null,
                                 integration_id: URNGV8294NV,
                                 attributes: {&quot;Language&quot;:&quot;english&quot;,&quot;ShippingCountry&quot;:&quot;DE&quot;},
                                 account_id: 31,
                                 closed_sessions: 3,
                                 total_sales: 299.99,
                                 loyalty_memberships: null,
                                 audience_memberships: null,
                                 last_activity: 2020-02-08T14:15:20Z,
                                 sandbox: false,
                                 connected_applications_ids: [1, 2, 3],
                                 connected_audiences: [1, 2, 3])