Documentation
¶
Index ¶
- Variables
- type Accounts
- type Addendum
- type Admin
- type AuditTrail
- type BatchHeader
- type Config
- type Customers
- type Cutoffs
- type Database
- type Decryptor
- type Email
- type FTP
- type FileConfig
- type FixedLimits
- type FlattenBatches
- type GPG
- type Gateway
- type HTTP
- type InMemPipeline
- type Inbound
- type KafkaPipeline
- type Limits
- type Local
- type Logging
- type Merging
- type MicroDeposits
- type MySQL
- type ODFI
- type Organization
- type Output
- type PagerDuty
- type Pipeline
- type PipelineNotifications
- type PreUpload
- type SFTP
- type SQLite
- type Signer
- type Slack
- type Source
- type Storage
- type StreamPipeline
- type Symmetric
- type Transfers
- type Validation
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultEmailTemplate = template.Must(template.New("email").Parse(`
A file has been {{ .Verb }}ed{{ if .Hostname }}{{ if eq .Verb "upload" }} to{{ else }} from{{end}} {{ .Hostname }}{{end}} - {{ .Filename }}
Name: {{ .CompanyName }}
Debits: ${{ .DebitTotal | printf "%.2f" }}
Credits: ${{ .CreditTotal | printf "%.2f" }}
Batches: {{ .BatchCount }}
Total Entries: {{ .EntryCount }}
`))
)
View Source
var ( // DefaultFilenameTemplate is paygate's standard filename format for ACH files which are uploaded to an ODFI // // The format consists of a few parts: "year month day" timestamp, "hour minute" timestamp, and routing number // // Examples: // - 20191010-0830-987654320.ach // - 20191010-0830-987654320.ach.gpg (GPG encrypted) DefaultFilenameTemplate = `{{ date "20060102" }}-{{ date "1504" }}-{{ .RoutingNumber }}.ach{{ if .GPG }}.gpg{{ end }}` )
Functions ¶
This section is empty.
Types ¶
type AuditTrail ¶
func (*AuditTrail) Validate ¶
func (cfg *AuditTrail) Validate() error
type BatchHeader ¶ added in v0.9.0
type BatchHeader struct {
CompanyIdentification string
}
func (BatchHeader) Validate ¶ added in v0.9.0
func (cfg BatchHeader) Validate() error
type Config ¶
type Email ¶
type Email struct { From string To []string // ConnectionURI is a URI used to connect with a remote SFTP server. // This config typically needs to contain enough values to successfully // authenticate with the server. // - insecure_skip_verify is an optional parameter for disabling certificate verification // // Example: smtps://user:pass@localhost:1025/?insecure_skip_verify=true ConnectionURI string Template string CompanyName string }
type FTP ¶
type FTP struct { Hostname string Username string Password string CAFilepath string DialTimeout time.Duration DisabledEPSV bool }
func (*FTP) DisableEPSV ¶
type FileConfig ¶ added in v0.9.0
type FileConfig struct { BatchHeader BatchHeader BalanceEntries bool Addendum Addendum CompanyName string }
func (FileConfig) Validate ¶ added in v0.9.0
func (cfg FileConfig) Validate() error
type FixedLimits ¶ added in v0.9.0
type FixedLimits struct { // SoftLimit is a numerical value which is used to force created Transfer // objects into the REVIEWABLE status for manual approval prior to upload. SoftLimit int64 // HardLimit is a numerical value. No Transfer amount is allowed to exceed this value // when specified. HardLimit int64 }
func (*FixedLimits) OverHardLimit ¶ added in v0.9.0
func (cfg *FixedLimits) OverHardLimit(amt client.Amount) bool
func (*FixedLimits) OverSoftLimit ¶ added in v0.9.0
func (cfg *FixedLimits) OverSoftLimit(amt client.Amount) bool
func (*FixedLimits) Validate ¶ added in v0.9.0
func (cfg *FixedLimits) Validate() error
type FlattenBatches ¶ added in v0.10.0
type FlattenBatches struct{}
type InMemPipeline ¶
type InMemPipeline struct {
URL string
}
type KafkaPipeline ¶
type Limits ¶ added in v0.9.0
type Limits struct {
Fixed *FixedLimits
}
type Merging ¶
type Merging struct { Directory string FlattenBatches *FlattenBatches }
type MicroDeposits ¶
type MicroDeposits struct { Source Source // Description is the default for what appears in the Online Banking // system for end-users of PayGate. Per NACHA limits this is restricted // to 10 characters. Description string SameDay bool }
func (*MicroDeposits) Validate ¶
func (cfg *MicroDeposits) Validate() error
type MySQL ¶
func (*MySQL) GetPassword ¶
type ODFI ¶
type ODFI struct { // RoutingNumber is a valid ABA routing number RoutingNumber string // Gateway holds FileHeader information which the ODFI requires is set // on all files uploaded. Gateway Gateway Cutoffs Cutoffs InboundPath string OutboundPath string ReturnPath string // AllowedIPs is a comma separated list of IP addresses and CIDR ranges // where connections are allowed. If this value is non-empty remote servers // not within these ranges will not be connected to. AllowedIPs string OutboundFilenameTemplate string FTP *FTP SFTP *SFTP Inbound Inbound FileConfig FileConfig Storage *Storage }
ODFI holds all the configuration for sending and retrieving ACH files with a financial institution to originate files.
func (*ODFI) FilenameTemplate ¶
func (*ODFI) SplitAllowedIPs ¶
type Organization ¶ added in v0.9.0
type Pipeline ¶
type Pipeline struct { PreUpload *PreUpload Output *Output Merging *Merging AuditTrail *AuditTrail Stream *StreamPipeline Notifications *PipelineNotifications }
type PipelineNotifications ¶
func (*PipelineNotifications) Validate ¶
func (cfg *PipelineNotifications) Validate() error
type SFTP ¶
type SFTP struct { Hostname string Username string Password string ClientPrivateKey string HostPublicKey string DialTimeout time.Duration MaxConnectionsPerFile int MaxPacketSize int }
func (*SFTP) MaxConnections ¶
func (*SFTP) PacketSize ¶
type Storage ¶
type Storage struct { // CleanupLocalDirectory determines if we delete the local directory after // processing is finished. Leaving these files around helps debugging, but // also exposes customer information. CleanupLocalDirectory bool // KeepRemoteFiles determines if we delete the remote file on an ODFI's server // after downloading and processing of each file. KeepRemoteFiles bool // RemoveZeroByteFilesAfter The amount of time to wait before deleting zero byte files. RemoveZeroByteFilesAfter time.Duration Local *Local }
type StreamPipeline ¶
type StreamPipeline struct { InMem *InMemPipeline Kafka *KafkaPipeline }
func (*StreamPipeline) Validate ¶
func (cfg *StreamPipeline) Validate() error
type Validation ¶
type Validation struct {
MicroDeposits *MicroDeposits
}
func (Validation) Validate ¶
func (cfg Validation) Validate() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.