Name | Type | Description | Notes |
---|---|---|---|
ProfileId | Pointer to string | ID of the customer profile set by your integration layer. Note: If the customer does not yet have a known `profileId`, we recommend you use a guest `profileId`. | [optional] |
Coupon | Pointer to string | Any coupon code entered. | [optional] |
Referral | Pointer to string | Any referral code entered. | [optional] |
State | Pointer to string | Indicates the current state of the session. Sessions can be created as `open` or `closed`. The state transitions are: 1. `open` → `closed` 2. `open` → `cancelled` 3. `closed` → `cancelled` or `partially_returned` 4. `partially_returned` → `cancelled` For more information, see Customer session states. | [optional] [default to STATE_OPEN] |
CartItems | Pointer to []CartItem | Serialized JSON representation. | [optional] |
Identifiers | Pointer to []string | Session custom identifiers that you can set limits on or use inside your rules. For example, you can use IP addresses as identifiers to potentially identify devices and limit discounts abuse in case of customers creating multiple accounts. See the tutorial. | [optional] |
Total | Pointer to float32 | The total sum of the cart in one session. | [optional] |
Attributes | Pointer to map[string]interface{} | A key-value map of the sessions attributes. The potentially valid attributes are configured in your accounts developer settings. | [optional] |
func (o *NewCustomerSession) GetProfileId() string
GetProfileId returns the ProfileId field if non-nil, zero value otherwise.
func (o *NewCustomerSession) GetProfileIdOk() (string, bool)
GetProfileIdOk returns a tuple with the ProfileId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NewCustomerSession) HasProfileId() bool
HasProfileId returns a boolean if a field has been set.
func (o *NewCustomerSession) SetProfileId(v string)
SetProfileId gets a reference to the given string and assigns it to the ProfileId field.
func (o *NewCustomerSession) GetCoupon() string
GetCoupon returns the Coupon field if non-nil, zero value otherwise.
func (o *NewCustomerSession) GetCouponOk() (string, bool)
GetCouponOk returns a tuple with the Coupon field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NewCustomerSession) HasCoupon() bool
HasCoupon returns a boolean if a field has been set.
func (o *NewCustomerSession) SetCoupon(v string)
SetCoupon gets a reference to the given string and assigns it to the Coupon field.
func (o *NewCustomerSession) GetReferral() string
GetReferral returns the Referral field if non-nil, zero value otherwise.
func (o *NewCustomerSession) GetReferralOk() (string, bool)
GetReferralOk returns a tuple with the Referral field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NewCustomerSession) HasReferral() bool
HasReferral returns a boolean if a field has been set.
func (o *NewCustomerSession) SetReferral(v string)
SetReferral gets a reference to the given string and assigns it to the Referral field.
func (o *NewCustomerSession) GetState() string
GetState returns the State field if non-nil, zero value otherwise.
func (o *NewCustomerSession) GetStateOk() (string, bool)
GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NewCustomerSession) HasState() bool
HasState returns a boolean if a field has been set.
func (o *NewCustomerSession) SetState(v string)
SetState gets a reference to the given string and assigns it to the State field.
func (o *NewCustomerSession) GetCartItems() []CartItem
GetCartItems returns the CartItems field if non-nil, zero value otherwise.
func (o *NewCustomerSession) GetCartItemsOk() ([]CartItem, bool)
GetCartItemsOk returns a tuple with the CartItems field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NewCustomerSession) HasCartItems() bool
HasCartItems returns a boolean if a field has been set.
func (o *NewCustomerSession) SetCartItems(v []CartItem)
SetCartItems gets a reference to the given []CartItem and assigns it to the CartItems field.
func (o *NewCustomerSession) GetIdentifiers() []string
GetIdentifiers returns the Identifiers field if non-nil, zero value otherwise.
func (o *NewCustomerSession) GetIdentifiersOk() ([]string, bool)
GetIdentifiersOk returns a tuple with the Identifiers field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NewCustomerSession) HasIdentifiers() bool
HasIdentifiers returns a boolean if a field has been set.
func (o *NewCustomerSession) SetIdentifiers(v []string)
SetIdentifiers gets a reference to the given []string and assigns it to the Identifiers field.
func (o *NewCustomerSession) GetTotal() float32
GetTotal returns the Total field if non-nil, zero value otherwise.
func (o *NewCustomerSession) GetTotalOk() (float32, bool)
GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NewCustomerSession) HasTotal() bool
HasTotal returns a boolean if a field has been set.
func (o *NewCustomerSession) SetTotal(v float32)
SetTotal gets a reference to the given float32 and assigns it to the Total field.
func (o *NewCustomerSession) GetAttributes() map[string]interface{}
GetAttributes returns the Attributes field if non-nil, zero value otherwise.
func (o *NewCustomerSession) GetAttributesOk() (map[string]interface{}, bool)
GetAttributesOk returns a tuple with the Attributes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *NewCustomerSession) HasAttributes() bool
HasAttributes returns a boolean if a field has been set.
func (o *NewCustomerSession) SetAttributes(v map[string]interface{})
SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.