sfdc

package
v0.0.0-...-ad55457 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DateFormat = "2006-01-02"
View Source
const MembershipYearStart = "2023-07-01"

Eventually make this configurable/dynamic

View Source
const MembershipYearStartGrace = "2022-07-01"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	SFClient *simpleforce.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(url, clientID, clientSecret string) (Client, error)

func (*Client) Authenticate

func (c *Client) Authenticate() error

func (*Client) FindContactByIDs

func (c *Client) FindContactByIDs(hid, pid string) (Contact, error)

func (*Client) FindCurrentMembers

func (c *Client) FindCurrentMembers() ([]Contact, error)

func (*Client) GetContact

func (c *Client) GetContact(id string) (Contact, error)

func (*Client) GetContactByDiscordID

func (c *Client) GetContactByDiscordID(discordID string) (Contact, error)

func (*Client) SetDiscordID

func (c *Client) SetDiscordID(contactID, discordID string) error

type Contact

type Contact struct {
	ID                string
	Barcode           string
	DisplayName       string
	FirstName         string
	LastName          string
	MembershipEndDate string
	WaiversSignedDate string
	Email             string
	GroupEmail        string
	GroupEmailAlt     string
	DiscordID         string
}

Jump to

Keyboard shortcuts

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