lib/api/blaze/blaze_models/member_response.go

1171 lines
27 KiB
Go
Raw Permalink Normal View History

2021-01-08 17:40:28 +00:00
// Code generated by go-swagger; DO NOT EDIT.
2021-01-19 16:58:40 +00:00
// All Code Copyright(c) 2018-2021 by Taxnexus, Inc.
2021-01-08 17:40:28 +00:00
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed
package blaze_models
// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command
import (
2021-02-09 16:56:57 +00:00
"context"
2021-01-08 17:40:28 +00:00
"strconv"
"github.com/go-openapi/errors"
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// MemberResponse member response
//
// swagger:model MemberResponse
type MemberResponse struct {
// active transaction
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
ActiveTransaction float64 `json:"activeTransaction,omitempty"`
// address
Address *MemberResponseAddress `json:"address,omitempty"`
// addresses
2021-02-09 16:56:57 +00:00
// Example: ["string"]
2021-01-08 17:40:28 +00:00
Addresses []string `json:"addresses"`
// agreement expired
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
AgreementExpired bool `json:"agreementExpired,omitempty"`
// anonymous
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Anonymous bool `json:"anonymous,omitempty"`
// ban patient
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
BanPatient bool `json:"banPatient,omitempty"`
// cannabis result
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
CannabisResult string `json:"cannabisResult,omitempty"`
// care giver list
2021-02-09 16:56:57 +00:00
// Example: ["string"]
2021-01-08 17:40:28 +00:00
CareGiverList []string `json:"careGiverList"`
// care givers
2021-02-09 16:56:57 +00:00
// Example: ["string"]
2021-01-08 17:40:28 +00:00
CareGivers []string `json:"careGivers"`
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5cabd4ba6218d148395b402c
2021-01-08 17:40:28 +00:00
CompanyID string `json:"companyId,omitempty"`
// consumer type
2021-02-09 16:56:57 +00:00
// Example: AdultUse
2021-01-08 17:40:28 +00:00
ConsumerType string `json:"consumerType,omitempty"`
// consumer user Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ConsumerUserID string `json:"consumerUserId,omitempty"`
// contracts
2021-02-09 16:56:57 +00:00
// Example: ["string"]
2021-01-08 17:40:28 +00:00
Contracts []string `json:"contracts"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1554826014780
2021-01-08 17:40:28 +00:00
Created int64 `json:"created,omitempty"`
// current cannabis limit
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
CurrentCannabisLimit string `json:"currentCannabisLimit,omitempty"`
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool `json:"deleted,omitempty"`
// dirty
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Dirty bool `json:"dirty,omitempty"`
// dl expired
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
DlExpired bool `json:"dlExpired,omitempty"`
// dob
2021-02-09 16:56:57 +00:00
// Example: 631180800000
2021-01-08 17:40:28 +00:00
Dob float64 `json:"dob,omitempty"`
// email
2021-02-09 16:56:57 +00:00
// Example: hokus@taxnexus.net
2021-01-08 17:40:28 +00:00
Email string `json:"email,omitempty"`
// email opt in
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EmailOptIn bool `json:"emailOptIn,omitempty"`
// email verified
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EmailVerified bool `json:"emailVerified,omitempty"`
// enable loyalty
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
EnableLoyalty bool `json:"enableLoyalty,omitempty"`
// enabled care giver
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnabledCareGiver bool `json:"enabledCareGiver,omitempty"`
// exp statuses
2021-02-09 16:56:57 +00:00
// Example: ["string"]
2021-01-08 17:40:28 +00:00
ExpStatuses []string `json:"expStatuses"`
// first name
2021-02-09 16:56:57 +00:00
// Example: Hokus
2021-01-08 17:40:28 +00:00
FirstName string `json:"firstName,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5cacc31e6218d174d3f17b70
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// identifications
Identifications []*MemberResponseIdentificationsItems0 `json:"identifications"`
// import Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ImportID string `json:"importId,omitempty"`
// in queue
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
InQueue bool `json:"inQueue,omitempty"`
// last name
2021-02-09 16:56:57 +00:00
// Example: Pokus
2021-01-08 17:40:28 +00:00
LastName string `json:"lastName,omitempty"`
// last visit date
2021-02-09 16:56:57 +00:00
// Example: 1554826633661
2021-01-08 17:40:28 +00:00
LastVisitDate int64 `json:"lastVisitDate,omitempty"`
// lifetime points
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
LifetimePoints float64 `json:"lifetimePoints,omitempty"`
// loyalty points
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
LoyaltyPoints float64 `json:"loyaltyPoints,omitempty"`
// marketing source
MarketingSource string `json:"marketingSource,omitempty"`
// medical
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Medical bool `json:"medical,omitempty"`
// member activities
2021-02-09 16:56:57 +00:00
// Example: ["string"]
2021-01-08 17:40:28 +00:00
MemberActivities []string `json:"memberActivities"`
// member group
MemberGroup *MemberResponseMemberGroup `json:"memberGroup,omitempty"`
// member group Id
2021-02-09 16:56:57 +00:00
// Example: 5cabd4ba6218d148395b404b
2021-01-08 17:40:28 +00:00
MemberGroupID string `json:"memberGroupId,omitempty"`
// middle name
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
MiddleName string `json:"middleName,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1554826633661
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,omitempty"`
// notes
2021-02-09 16:56:57 +00:00
// Example: ["string"]
2021-01-08 17:40:28 +00:00
Notes []string `json:"notes"`
// preferences
2021-02-09 16:56:57 +00:00
// Example: ["string"]
2021-01-08 17:40:28 +00:00
Preferences []string `json:"preferences"`
// primary phone
2021-02-09 16:56:57 +00:00
// Example: (510) 859-7000
2021-01-08 17:40:28 +00:00
PrimaryPhone string `json:"primaryPhone,omitempty"`
// qb customer ref
2021-02-09 16:56:57 +00:00
// Example: ["string"]
2021-01-08 17:40:28 +00:00
QbCustomerRef []string `json:"qbCustomerRef"`
// qb desktop customer ref
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
QbDesktopCustomerRef string `json:"qbDesktopCustomerRef,omitempty"`
// recent products
2021-02-09 16:56:57 +00:00
// Example: ["Binsky Flower","Tommy's Bong"]
2021-01-08 17:40:28 +00:00
RecentProducts []string `json:"recentProducts"`
// recommendation expired
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
RecommendationExpired bool `json:"recommendationExpired,omitempty"`
// recommendation expiry left
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
RecommendationExpiryLeft float64 `json:"recommendationExpiryLeft,omitempty"`
// recommendations
Recommendations []*MemberResponseRecommendationsItems0 `json:"recommendations"`
// region Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
RegionID string `json:"regionId,omitempty"`
// search text
2021-02-09 16:56:57 +00:00
// Example: hokus pokus 5125 miles ave hokus@taxnexus.net (510) 859-7000 delivery
2021-01-08 17:40:28 +00:00
SearchText string `json:"searchText,omitempty"`
// sex
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
Sex float64 `json:"sex,omitempty"`
// shop Id
2021-02-09 16:56:57 +00:00
// Example: 5cabd4ba6218d148395b4043
2021-01-08 17:40:28 +00:00
ShopID string `json:"shopId,omitempty"`
// start date
2021-02-09 16:56:57 +00:00
// Example: 1554826014781
2021-01-08 17:40:28 +00:00
StartDate int64 `json:"startDate,omitempty"`
// state cannabis limit
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
StateCannabisLimit string `json:"stateCannabisLimit,omitempty"`
// status
2021-02-09 16:56:57 +00:00
// Example: Active
2021-01-08 17:40:28 +00:00
Status string `json:"status,omitempty"`
// tags
2021-02-09 16:56:57 +00:00
// Example: ["string"]
2021-01-08 17:40:28 +00:00
Tags []string `json:"tags"`
// text opt in
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
TextOptIn bool `json:"textOptIn,omitempty"`
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool `json:"updated,omitempty"`
}
// Validate validates this member response
func (m *MemberResponse) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAddress(formats); err != nil {
res = append(res, err)
}
if err := m.validateIdentifications(formats); err != nil {
res = append(res, err)
}
if err := m.validateMemberGroup(formats); err != nil {
res = append(res, err)
}
if err := m.validateRecommendations(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *MemberResponse) validateAddress(formats strfmt.Registry) error {
if swag.IsZero(m.Address) { // not required
return nil
}
if m.Address != nil {
if err := m.Address.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("address")
}
return err
}
}
return nil
}
func (m *MemberResponse) validateIdentifications(formats strfmt.Registry) error {
if swag.IsZero(m.Identifications) { // not required
return nil
}
for i := 0; i < len(m.Identifications); i++ {
if swag.IsZero(m.Identifications[i]) { // not required
continue
}
if m.Identifications[i] != nil {
if err := m.Identifications[i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("identifications" + "." + strconv.Itoa(i))
}
return err
}
}
}
return nil
}
func (m *MemberResponse) validateMemberGroup(formats strfmt.Registry) error {
if swag.IsZero(m.MemberGroup) { // not required
return nil
}
if m.MemberGroup != nil {
if err := m.MemberGroup.Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("memberGroup")
}
return err
}
}
return nil
}
func (m *MemberResponse) validateRecommendations(formats strfmt.Registry) error {
if swag.IsZero(m.Recommendations) { // not required
return nil
}
for i := 0; i < len(m.Recommendations); i++ {
if swag.IsZero(m.Recommendations[i]) { // not required
continue
}
if m.Recommendations[i] != nil {
if err := m.Recommendations[i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("recommendations" + "." + strconv.Itoa(i))
}
return err
}
}
}
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validate this member response based on the context it is used
func (m *MemberResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
if err := m.contextValidateAddress(ctx, formats); err != nil {
res = append(res, err)
}
if err := m.contextValidateIdentifications(ctx, formats); err != nil {
res = append(res, err)
}
if err := m.contextValidateMemberGroup(ctx, formats); err != nil {
res = append(res, err)
}
if err := m.contextValidateRecommendations(ctx, formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *MemberResponse) contextValidateAddress(ctx context.Context, formats strfmt.Registry) error {
if m.Address != nil {
if err := m.Address.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("address")
}
return err
}
}
return nil
}
func (m *MemberResponse) contextValidateIdentifications(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Identifications); i++ {
if m.Identifications[i] != nil {
if err := m.Identifications[i].ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("identifications" + "." + strconv.Itoa(i))
}
return err
}
}
}
return nil
}
func (m *MemberResponse) contextValidateMemberGroup(ctx context.Context, formats strfmt.Registry) error {
if m.MemberGroup != nil {
if err := m.MemberGroup.ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("memberGroup")
}
return err
}
}
return nil
}
func (m *MemberResponse) contextValidateRecommendations(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Recommendations); i++ {
if m.Recommendations[i] != nil {
if err := m.Recommendations[i].ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("recommendations" + "." + strconv.Itoa(i))
}
return err
}
}
}
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *MemberResponse) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *MemberResponse) UnmarshalBinary(b []byte) error {
var res MemberResponse
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// MemberResponseAddress member response address
//
// swagger:model MemberResponseAddress
type MemberResponseAddress struct {
// address
2021-02-09 16:56:57 +00:00
// Example: 5125 Miles Ave
2021-01-08 17:40:28 +00:00
Address string `json:"address,omitempty"`
// city
2021-02-09 16:56:57 +00:00
// Example: Oakland
2021-01-08 17:40:28 +00:00
City string `json:"city,omitempty"`
// company Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
CompanyID string `json:"companyId,omitempty"`
// country
2021-02-09 16:56:57 +00:00
// Example: US
2021-01-08 17:40:28 +00:00
Country string `json:"country,omitempty"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1554826014782
2021-01-08 17:40:28 +00:00
Created int64 `json:"created,omitempty"`
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool `json:"deleted,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5cacc31e6218d174d3f17b6d
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1554826014782
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,omitempty"`
// state
2021-02-09 16:56:57 +00:00
// Example: CA
2021-01-08 17:40:28 +00:00
State string `json:"state,omitempty"`
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool `json:"updated,omitempty"`
// zip code
2021-02-09 16:56:57 +00:00
// Example: 94618
2021-01-08 17:40:28 +00:00
ZipCode string `json:"zipCode,omitempty"`
}
// Validate validates this member response address
func (m *MemberResponseAddress) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this member response address based on context it is used
func (m *MemberResponseAddress) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *MemberResponseAddress) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *MemberResponseAddress) UnmarshalBinary(b []byte) error {
var res MemberResponseAddress
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// MemberResponseIdentificationsItems0 member response identifications items0
//
// swagger:model MemberResponseIdentificationsItems0
type MemberResponseIdentificationsItems0 struct {
// assets
Assets []*MemberResponseIdentificationsItems0AssetsItems0 `json:"assets"`
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5cabd4ba6218d148395b402c
2021-01-08 17:40:28 +00:00
CompanyID string `json:"companyId,omitempty"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1554826014782
2021-01-08 17:40:28 +00:00
Created int64 `json:"created,omitempty"`
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool `json:"deleted,omitempty"`
// expiration date
2021-02-09 16:56:57 +00:00
// Example: 1577779200000
2021-01-08 17:40:28 +00:00
ExpirationDate int64 `json:"expirationDate,omitempty"`
// front photo
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
FrontPhoto string `json:"frontPhoto,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5cacc31e6218d174d3f17b6e
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// license number
2021-02-09 16:56:57 +00:00
// Example: MYLICENSENUM
2021-01-08 17:40:28 +00:00
LicenseNumber string `json:"licenseNumber,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1554826014782
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,omitempty"`
// state
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
State string `json:"state,omitempty"`
// type
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
Type string `json:"type,omitempty"`
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool `json:"updated,omitempty"`
}
// Validate validates this member response identifications items0
func (m *MemberResponseIdentificationsItems0) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAssets(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *MemberResponseIdentificationsItems0) validateAssets(formats strfmt.Registry) error {
if swag.IsZero(m.Assets) { // not required
return nil
}
for i := 0; i < len(m.Assets); i++ {
if swag.IsZero(m.Assets[i]) { // not required
continue
}
if m.Assets[i] != nil {
if err := m.Assets[i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("assets" + "." + strconv.Itoa(i))
}
return err
}
}
}
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validate this member response identifications items0 based on the context it is used
func (m *MemberResponseIdentificationsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
if err := m.contextValidateAssets(ctx, formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *MemberResponseIdentificationsItems0) contextValidateAssets(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Assets); i++ {
if m.Assets[i] != nil {
if err := m.Assets[i].ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("assets" + "." + strconv.Itoa(i))
}
return err
}
}
}
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *MemberResponseIdentificationsItems0) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *MemberResponseIdentificationsItems0) UnmarshalBinary(b []byte) error {
var res MemberResponseIdentificationsItems0
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// MemberResponseIdentificationsItems0AssetsItems0 member response identifications items0 assets items0
//
// swagger:model MemberResponseIdentificationsItems0AssetsItems0
type MemberResponseIdentificationsItems0AssetsItems0 struct {
// active
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Active bool `json:"active,omitempty"`
// asset type
2021-02-09 16:56:57 +00:00
// Example: Photo
2021-01-08 17:40:28 +00:00
AssetType string `json:"assetType,omitempty"`
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string `json:"companyId,omitempty"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1556052368662
2021-01-08 17:40:28 +00:00
Created int64 `json:"created,omitempty"`
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool `json:"deleted,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5cbf79908a29f808183540e7
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// key
2021-02-09 16:56:57 +00:00
// Example: c71adc95-bb07-47f2-b9f6-cc4db7936686.png
2021-01-08 17:40:28 +00:00
Key string `json:"key,omitempty"`
// large URL
2021-02-09 16:56:57 +00:00
// Example: https://connect-files-p1.s3.amazonaws.com/c71adc95-bb07-47f2-b9f6-cc4db7936686-800x800.png
2021-01-08 17:40:28 +00:00
LargeURL string `json:"largeURL,omitempty"`
// large x2 URL
2021-02-09 16:56:57 +00:00
// Example: https://connect-files-p1.s3.amazonaws.com/c71adc95-bb07-47f2-b9f6-cc4db7936686-1600x1600.png
2021-01-08 17:40:28 +00:00
LargeX2URL string `json:"largeX2URL,omitempty"`
// medium URL
2021-02-09 16:56:57 +00:00
// Example: https://connect-files-p1.s3.amazonaws.com/c71adc95-bb07-47f2-b9f6-cc4db7936686-500x500.png
2021-01-08 17:40:28 +00:00
MediumURL string `json:"mediumURL,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1556052368662
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,omitempty"`
// name
2021-02-09 16:56:57 +00:00
// Example: Brian Main DL.png
2021-01-08 17:40:28 +00:00
Name string `json:"name,omitempty"`
// priority
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
Priority float64 `json:"priority,omitempty"`
// secured
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Secured bool `json:"secured,omitempty"`
// thumb URL
2021-02-09 16:56:57 +00:00
// Example: https://connect-files-p1.s3.amazonaws.com/c71adc95-bb07-47f2-b9f6-cc4db7936686-200x200.png
2021-01-08 17:40:28 +00:00
ThumbURL string `json:"thumbURL,omitempty"`
// type
2021-02-09 16:56:57 +00:00
// Example: Photo
2021-01-08 17:40:28 +00:00
Type string `json:"type,omitempty"`
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool `json:"updated,omitempty"`
}
// Validate validates this member response identifications items0 assets items0
func (m *MemberResponseIdentificationsItems0AssetsItems0) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this member response identifications items0 assets items0 based on context it is used
func (m *MemberResponseIdentificationsItems0AssetsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *MemberResponseIdentificationsItems0AssetsItems0) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *MemberResponseIdentificationsItems0AssetsItems0) UnmarshalBinary(b []byte) error {
var res MemberResponseIdentificationsItems0AssetsItems0
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// MemberResponseMemberGroup member response member group
//
// swagger:model MemberResponseMemberGroup
type MemberResponseMemberGroup struct {
// active
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Active bool `json:"active,omitempty"`
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5cabd4ba6218d148395b402c
2021-01-08 17:40:28 +00:00
CompanyID string `json:"companyId,omitempty"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1554746451740
2021-01-08 17:40:28 +00:00
Created int64 `json:"created,omitempty"`
// default group
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
DefaultGroup bool `json:"defaultGroup,omitempty"`
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool `json:"deleted,omitempty"`
// dirty
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Dirty bool `json:"dirty,omitempty"`
// discount
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
Discount float64 `json:"discount,omitempty"`
// discount type
2021-02-09 16:56:57 +00:00
// Example: Percentage
2021-01-08 17:40:28 +00:00
DiscountType string `json:"discountType,omitempty"`
// enable promotion
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
EnablePromotion bool `json:"enablePromotion,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5cabd4ba6218d148395b404b
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// member count
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
MemberCount float64 `json:"memberCount,omitempty"`
// member count email opt in
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
MemberCountEmailOptIn float64 `json:"memberCountEmailOptIn,omitempty"`
// member count text opt in
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
MemberCountTextOptIn float64 `json:"memberCountTextOptIn,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1554824536062
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,omitempty"`
// name
2021-02-09 16:56:57 +00:00
// Example: Delivery
2021-01-08 17:40:28 +00:00
Name string `json:"name,omitempty"`
// promotion Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
PromotionID string `json:"promotionId,omitempty"`
// shop Id
2021-02-09 16:56:57 +00:00
// Example: 5cabd4ba6218d148395b4043
2021-01-08 17:40:28 +00:00
ShopID string `json:"shopId,omitempty"`
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool `json:"updated,omitempty"`
}
// Validate validates this member response member group
func (m *MemberResponseMemberGroup) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this member response member group based on context it is used
func (m *MemberResponseMemberGroup) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *MemberResponseMemberGroup) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *MemberResponseMemberGroup) UnmarshalBinary(b []byte) error {
var res MemberResponseMemberGroup
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// MemberResponseRecommendationsItems0 member response recommendations items0
//
// swagger:model MemberResponseRecommendationsItems0
type MemberResponseRecommendationsItems0 struct {
// assets
Assets []*MemberResponseRecommendationsItems0AssetsItems0 `json:"assets"`
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5cabd4ba6218d148395b402c
2021-01-08 17:40:28 +00:00
CompanyID string `json:"companyId,omitempty"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1554826014782
2021-01-08 17:40:28 +00:00
Created int64 `json:"created,omitempty"`
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool `json:"deleted,omitempty"`
// doctor
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
Doctor string `json:"doctor,omitempty"`
// doctor Id
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
DoctorID string `json:"doctorId,omitempty"`
// expiration date
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ExpirationDate string `json:"expirationDate,omitempty"`
// front photo
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
FrontPhoto string `json:"frontPhoto,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5cacc31e6218d174d3f17b6f
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// issue date
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
IssueDate string `json:"issueDate,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1554826014782
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,omitempty"`
// recommendation number
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
RecommendationNumber string `json:"recommendationNumber,omitempty"`
// state
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
State string `json:"state,omitempty"`
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool `json:"updated,omitempty"`
// verified
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Verified bool `json:"verified,omitempty"`
// verify method
2021-02-09 16:56:57 +00:00
// Example: MANUAL
2021-01-08 17:40:28 +00:00
VerifyMethod string `json:"verifyMethod,omitempty"`
// verify phone number
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
VerifyPhoneNumber string `json:"verifyPhoneNumber,omitempty"`
// verify website
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
VerifyWebsite string `json:"verifyWebsite,omitempty"`
}
// Validate validates this member response recommendations items0
func (m *MemberResponseRecommendationsItems0) Validate(formats strfmt.Registry) error {
var res []error
if err := m.validateAssets(formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *MemberResponseRecommendationsItems0) validateAssets(formats strfmt.Registry) error {
if swag.IsZero(m.Assets) { // not required
return nil
}
for i := 0; i < len(m.Assets); i++ {
if swag.IsZero(m.Assets[i]) { // not required
continue
}
if m.Assets[i] != nil {
if err := m.Assets[i].Validate(formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("assets" + "." + strconv.Itoa(i))
}
return err
}
}
}
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validate this member response recommendations items0 based on the context it is used
func (m *MemberResponseRecommendationsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
var res []error
if err := m.contextValidateAssets(ctx, formats); err != nil {
res = append(res, err)
}
if len(res) > 0 {
return errors.CompositeValidationError(res...)
}
return nil
}
func (m *MemberResponseRecommendationsItems0) contextValidateAssets(ctx context.Context, formats strfmt.Registry) error {
for i := 0; i < len(m.Assets); i++ {
if m.Assets[i] != nil {
if err := m.Assets[i].ContextValidate(ctx, formats); err != nil {
if ve, ok := err.(*errors.Validation); ok {
return ve.ValidateName("assets" + "." + strconv.Itoa(i))
}
return err
}
}
}
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *MemberResponseRecommendationsItems0) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *MemberResponseRecommendationsItems0) UnmarshalBinary(b []byte) error {
var res MemberResponseRecommendationsItems0
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}
// MemberResponseRecommendationsItems0AssetsItems0 member response recommendations items0 assets items0
//
// swagger:model MemberResponseRecommendationsItems0AssetsItems0
type MemberResponseRecommendationsItems0AssetsItems0 struct {
// active
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Active bool `json:"active,omitempty"`
// asset type
2021-02-09 16:56:57 +00:00
// Example: Photo
2021-01-08 17:40:28 +00:00
AssetType string `json:"assetType,omitempty"`
// company Id
2021-02-09 16:56:57 +00:00
// Example: 5c7e8c7b722ed607e61edb06
2021-01-08 17:40:28 +00:00
CompanyID string `json:"companyId,omitempty"`
// created
2021-02-09 16:56:57 +00:00
// Example: 1556052368662
2021-01-08 17:40:28 +00:00
Created int64 `json:"created,omitempty"`
// deleted
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Deleted bool `json:"deleted,omitempty"`
// id
2021-02-09 16:56:57 +00:00
// Example: 5cbf79908a29f808183540e7
2021-01-08 17:40:28 +00:00
ID string `json:"id,omitempty"`
// key
2021-02-09 16:56:57 +00:00
// Example: c71adc95-bb07-47f2-b9f6-cc4db7936686.png
2021-01-08 17:40:28 +00:00
Key string `json:"key,omitempty"`
// large URL
2021-02-09 16:56:57 +00:00
// Example: https://connect-files-p1.s3.amazonaws.com/c71adc95-bb07-47f2-b9f6-cc4db7936686-800x800.png
2021-01-08 17:40:28 +00:00
LargeURL string `json:"largeURL,omitempty"`
// large x2 URL
2021-02-09 16:56:57 +00:00
// Example: https://connect-files-p1.s3.amazonaws.com/c71adc95-bb07-47f2-b9f6-cc4db7936686-1600x1600.png
2021-01-08 17:40:28 +00:00
LargeX2URL string `json:"largeX2URL,omitempty"`
// medium URL
2021-02-09 16:56:57 +00:00
// Example: https://connect-files-p1.s3.amazonaws.com/c71adc95-bb07-47f2-b9f6-cc4db7936686-500x500.png
2021-01-08 17:40:28 +00:00
MediumURL string `json:"mediumURL,omitempty"`
// modified
2021-02-09 16:56:57 +00:00
// Example: 1556052368662
2021-01-08 17:40:28 +00:00
Modified int64 `json:"modified,omitempty"`
// name
2021-02-09 16:56:57 +00:00
// Example: Brian Main DL.png
2021-01-08 17:40:28 +00:00
Name string `json:"name,omitempty"`
// priority
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
Priority float64 `json:"priority,omitempty"`
// secured
2021-02-09 16:56:57 +00:00
// Example: true
2021-01-08 17:40:28 +00:00
Secured bool `json:"secured,omitempty"`
// thumb URL
2021-02-09 16:56:57 +00:00
// Example: https://connect-files-p1.s3.amazonaws.com/c71adc95-bb07-47f2-b9f6-cc4db7936686-200x200.png
2021-01-08 17:40:28 +00:00
ThumbURL string `json:"thumbURL,omitempty"`
// type
2021-02-09 16:56:57 +00:00
// Example: Photo
2021-01-08 17:40:28 +00:00
Type string `json:"type,omitempty"`
// updated
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
Updated bool `json:"updated,omitempty"`
}
// Validate validates this member response recommendations items0 assets items0
func (m *MemberResponseRecommendationsItems0AssetsItems0) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this member response recommendations items0 assets items0 based on context it is used
func (m *MemberResponseRecommendationsItems0AssetsItems0) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *MemberResponseRecommendationsItems0AssetsItems0) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *MemberResponseRecommendationsItems0AssetsItems0) UnmarshalBinary(b []byte) error {
var res MemberResponseRecommendationsItems0AssetsItems0
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}