Files
sdk/docs/AffiliatePeriodEarningView.md

3.8 KiB
Raw Permalink Blame History

AffiliatePeriodEarningView

Properties

Name Type Description Notes
CommissionCents Pointer to int64 CommissionCents is what the caller earned that period, in cents: the sum over each referred org and upline level of margin × that level's rate. Always ≤ marginCents, by construction. [optional]
MarginCents Pointer to int64 MarginCents is the margin Hanzo earned in that period on the spend of every org the caller referred, in cents — the base commission is a rate OF. It is the aggregate base, never any one customer's bill. [optional]
Period Pointer to string Period is the accrual bucket: the UTC year-month, "YYYY-MM". Commission is latched at most once per referred org per period, so one row is one month. [optional]

Methods

NewAffiliatePeriodEarningView

func NewAffiliatePeriodEarningView() *AffiliatePeriodEarningView

NewAffiliatePeriodEarningView instantiates a new AffiliatePeriodEarningView object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewAffiliatePeriodEarningViewWithDefaults

func NewAffiliatePeriodEarningViewWithDefaults() *AffiliatePeriodEarningView

NewAffiliatePeriodEarningViewWithDefaults instantiates a new AffiliatePeriodEarningView object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetCommissionCents

func (o *AffiliatePeriodEarningView) GetCommissionCents() int64

GetCommissionCents returns the CommissionCents field if non-nil, zero value otherwise.

GetCommissionCentsOk

func (o *AffiliatePeriodEarningView) GetCommissionCentsOk() (*int64, bool)

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

SetCommissionCents

func (o *AffiliatePeriodEarningView) SetCommissionCents(v int64)

SetCommissionCents sets CommissionCents field to given value.

HasCommissionCents

func (o *AffiliatePeriodEarningView) HasCommissionCents() bool

HasCommissionCents returns a boolean if a field has been set.

GetMarginCents

func (o *AffiliatePeriodEarningView) GetMarginCents() int64

GetMarginCents returns the MarginCents field if non-nil, zero value otherwise.

GetMarginCentsOk

func (o *AffiliatePeriodEarningView) GetMarginCentsOk() (*int64, bool)

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

SetMarginCents

func (o *AffiliatePeriodEarningView) SetMarginCents(v int64)

SetMarginCents sets MarginCents field to given value.

HasMarginCents

func (o *AffiliatePeriodEarningView) HasMarginCents() bool

HasMarginCents returns a boolean if a field has been set.

GetPeriod

func (o *AffiliatePeriodEarningView) GetPeriod() string

GetPeriod returns the Period field if non-nil, zero value otherwise.

GetPeriodOk

func (o *AffiliatePeriodEarningView) GetPeriodOk() (*string, bool)

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

SetPeriod

func (o *AffiliatePeriodEarningView) SetPeriod(v string)

SetPeriod sets Period field to given value.

HasPeriod

func (o *AffiliatePeriodEarningView) HasPeriod() bool

HasPeriod returns a boolean if a field has been set.

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