Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Affiliate ¶
type Affiliate struct {
mixin.Model[Affiliate]
Enabled bool `json:"enabled"`
Connected bool `json:"connected"`
UserId string `json:"userId,omitempty"`
Name string `json:"name,omitempty"`
Company string `json:"company,omitempty"`
Country string `json:"country,omitempty"`
TaxId string `json:"taxId,omitempty"`
Timezone string `json:"timezone,omitempty"`
Commission commission.Commission `json:"commission,omitempty"`
Schedule schedule.Schedule `json:"schedule,omitempty"`
CouponId string `json:"couponId,omitempty"`
// Wallet is how this affiliate is PAID: a web3 address they connect
// themselves. Payouts settle in crypto (or by wire, arranged off this
// record) — there is no processor account id here, because Hanzo does
// not disburse through a payment processor. An empty wallet does not
// stop a fee from being EARNED; it only means the transfer that records
// what is owed has nowhere to send it yet.
Wallet string `json:"wallet,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.