common

package
v0.10.4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HttpClient = &http.Client{
		Timeout: 10 * time.Second,
	}

	Organization = "moov"
	RequestID    = base.ID()

	TeachersFCU = "221475786"
	ChaseCO     = "102001017"
)

Common functions and values for reuse between PayGate go examples

Functions

func ApproveAccount

func ApproveAccount(customer *customers.Customer, account *customers.Account) (bool, error)

func ApproveCustomer

func ApproveCustomer(customer *customers.Customer) (*customers.Customer, error)

func CreateAccount

func CreateAccount(customer *customers.Customer, accountNumber, routingNumber, acctType string) (*customers.Account, error)

func CreateCustomer

func CreateCustomer(first, last, email string) (*customers.Customer, error)

func GetCustomerAccounts

func GetCustomerAccounts(customer *customers.Customer) ([]*customers.Account, error)

func GetMicroDeposits

func GetMicroDeposits(account *customers.Account) (*client.MicroDeposits, error)

func GetTransfer

func GetTransfer(transferId string) (*client.Transfer, error)

func InitiateMicroDeposits

func InitiateMicroDeposits(customer *customers.Customer, account *customers.Account) (string, error)

func MakeTransfer

func MakeTransfer(sourceCustomer *customers.Customer, sourceCustomerAccount *customers.Account, destCustomer *customers.Customer, destCustomerAccount *customers.Account) (*client.Transfer, error)

func PrintServerFiles

func PrintServerFiles(path string)

func TriggerCutOff

func TriggerCutOff() (bool, error)

func VerifyMicroDeposits

func VerifyMicroDeposits(customer *customers.Customer, account *customers.Account, validationID string, microDeposits *client.MicroDeposits) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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