civi

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrmDataBody

type CrmDataBody struct {
	CrmData crm.CrmData `json:"crm_data"`
}

CrmDataBody represents civi crm data

type CrmUser

type CrmUser struct {
	Email         string `json:"email" validate:"required"`
	FirstName     string `json:"first_name" validate:"required"`
	LastName      string `json:"last_name" validate:"required"`
	PrivacyPolicy bool   `json:"privacy_policy"`
	Country       string `json:"country"`
}

CrmUser represents civi crm user

type CrmUserSignUp

type CrmUserSignUp struct {
	CrmData crm.CrmData `json:"crm_data" validate:"required"`
	CrmUser CrmUser     `json:"crm_user" validate:"required"`
	Mail    Mail        `json:"mail" validate:"required"`
	Offset  Offset      `json:"offset" validate:"required"`
}

CrmUserSignUp represents civi crm signup request

type Mail

type Mail struct {
	Email string `json:"email" validate:"required"`
	Link  string `json:"link" validate:"required"`
}

Mail represents an email to share links

type Offset

type Offset struct {
	KnownFrom  string `json:"known_from" validate:"required"`
	Newsletter bool   `json:"newsletter"`
}

Offset represents additional information about user

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL