webhooks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id        string `schema:"id"`
	SubDomain string `schema:"subdomain"`
}

type Leads

type Leads struct {
	Status []Status `schema:"status"`
	Add    []Status `schema:"add"`
}

type Status

type Status struct {
	Id            string `schema:"id"`
	StatusId      string `schema:"status_id"`
	PipelineId    string `schema:"pipeline_id"`
	OldStatusId   string `schema:"old_status_id"`
	OldPipelineId string `schema:"old_pipeline_id"`
}

type WebhookRequest

type WebhookRequest struct {
	Leads   Leads   `schema:"leads"`
	Account Account `schema:"account"`
}

func NewFromString

func NewFromString(body string) (*WebhookRequest, error)

func (*WebhookRequest) GetLeadId

func (hook *WebhookRequest) GetLeadId() string

Jump to

Keyboard shortcuts

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