Skip to content

Latest commit

 

History

History
195 lines (104 loc) · 5.94 KB

CustomerAnalytics.md

File metadata and controls

195 lines (104 loc) · 5.94 KB

CustomerAnalytics

Properties

Name Type Description Notes
AcceptedCoupons Pointer to int32 Total accepted coupons for this customer.
CreatedCoupons Pointer to int32 Total created coupons for this customer.
FreeItems Pointer to int32 Total free items given to this customer.
TotalOrders Pointer to int32 Total orders made by this customer.
TotalDiscountedOrders Pointer to int32 Total orders made by this customer that had a discount.
TotalRevenue Pointer to float32 Total Revenue across all closed sessions.
TotalDiscounts Pointer to float32 The sum of discounts that were given across all closed sessions.

Methods

GetAcceptedCoupons

func (o *CustomerAnalytics) GetAcceptedCoupons() int32

GetAcceptedCoupons returns the AcceptedCoupons field if non-nil, zero value otherwise.

GetAcceptedCouponsOk

func (o *CustomerAnalytics) GetAcceptedCouponsOk() (int32, bool)

GetAcceptedCouponsOk returns a tuple with the AcceptedCoupons field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasAcceptedCoupons

func (o *CustomerAnalytics) HasAcceptedCoupons() bool

HasAcceptedCoupons returns a boolean if a field has been set.

SetAcceptedCoupons

func (o *CustomerAnalytics) SetAcceptedCoupons(v int32)

SetAcceptedCoupons gets a reference to the given int32 and assigns it to the AcceptedCoupons field.

GetCreatedCoupons

func (o *CustomerAnalytics) GetCreatedCoupons() int32

GetCreatedCoupons returns the CreatedCoupons field if non-nil, zero value otherwise.

GetCreatedCouponsOk

func (o *CustomerAnalytics) GetCreatedCouponsOk() (int32, bool)

GetCreatedCouponsOk returns a tuple with the CreatedCoupons field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasCreatedCoupons

func (o *CustomerAnalytics) HasCreatedCoupons() bool

HasCreatedCoupons returns a boolean if a field has been set.

SetCreatedCoupons

func (o *CustomerAnalytics) SetCreatedCoupons(v int32)

SetCreatedCoupons gets a reference to the given int32 and assigns it to the CreatedCoupons field.

GetFreeItems

func (o *CustomerAnalytics) GetFreeItems() int32

GetFreeItems returns the FreeItems field if non-nil, zero value otherwise.

GetFreeItemsOk

func (o *CustomerAnalytics) GetFreeItemsOk() (int32, bool)

GetFreeItemsOk returns a tuple with the FreeItems field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasFreeItems

func (o *CustomerAnalytics) HasFreeItems() bool

HasFreeItems returns a boolean if a field has been set.

SetFreeItems

func (o *CustomerAnalytics) SetFreeItems(v int32)

SetFreeItems gets a reference to the given int32 and assigns it to the FreeItems field.

GetTotalOrders

func (o *CustomerAnalytics) GetTotalOrders() int32

GetTotalOrders returns the TotalOrders field if non-nil, zero value otherwise.

GetTotalOrdersOk

func (o *CustomerAnalytics) GetTotalOrdersOk() (int32, bool)

GetTotalOrdersOk returns a tuple with the TotalOrders field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasTotalOrders

func (o *CustomerAnalytics) HasTotalOrders() bool

HasTotalOrders returns a boolean if a field has been set.

SetTotalOrders

func (o *CustomerAnalytics) SetTotalOrders(v int32)

SetTotalOrders gets a reference to the given int32 and assigns it to the TotalOrders field.

GetTotalDiscountedOrders

func (o *CustomerAnalytics) GetTotalDiscountedOrders() int32

GetTotalDiscountedOrders returns the TotalDiscountedOrders field if non-nil, zero value otherwise.

GetTotalDiscountedOrdersOk

func (o *CustomerAnalytics) GetTotalDiscountedOrdersOk() (int32, bool)

GetTotalDiscountedOrdersOk returns a tuple with the TotalDiscountedOrders field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasTotalDiscountedOrders

func (o *CustomerAnalytics) HasTotalDiscountedOrders() bool

HasTotalDiscountedOrders returns a boolean if a field has been set.

SetTotalDiscountedOrders

func (o *CustomerAnalytics) SetTotalDiscountedOrders(v int32)

SetTotalDiscountedOrders gets a reference to the given int32 and assigns it to the TotalDiscountedOrders field.

GetTotalRevenue

func (o *CustomerAnalytics) GetTotalRevenue() float32

GetTotalRevenue returns the TotalRevenue field if non-nil, zero value otherwise.

GetTotalRevenueOk

func (o *CustomerAnalytics) GetTotalRevenueOk() (float32, bool)

GetTotalRevenueOk returns a tuple with the TotalRevenue field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasTotalRevenue

func (o *CustomerAnalytics) HasTotalRevenue() bool

HasTotalRevenue returns a boolean if a field has been set.

SetTotalRevenue

func (o *CustomerAnalytics) SetTotalRevenue(v float32)

SetTotalRevenue gets a reference to the given float32 and assigns it to the TotalRevenue field.

GetTotalDiscounts

func (o *CustomerAnalytics) GetTotalDiscounts() float32

GetTotalDiscounts returns the TotalDiscounts field if non-nil, zero value otherwise.

GetTotalDiscountsOk

func (o *CustomerAnalytics) GetTotalDiscountsOk() (float32, bool)

GetTotalDiscountsOk returns a tuple with the TotalDiscounts field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

HasTotalDiscounts

func (o *CustomerAnalytics) HasTotalDiscounts() bool

HasTotalDiscounts returns a boolean if a field has been set.

SetTotalDiscounts

func (o *CustomerAnalytics) SetTotalDiscounts(v float32)

SetTotalDiscounts gets a reference to the given float32 and assigns it to the TotalDiscounts field.

[Back to Model list] [Back to API list] [Back to README]