wire

package module
v0.15.5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

Moov Banner Logo

Project Documentation · API Endpoints · API Guide · Community · Blog

GoDoc Build Status Coverage Status Go Report Card Repo Size Apache 2 License Slack Channel Docker Pulls GitHub Stars Twitter

moov-io/wire

Moov's mission is to give developers an easy way to create and integrate bank processing into their own software products. Our open source projects are each focused on solving a single responsibility in financial services and designed around performance, scalability, and ease of use.

Wire implements a reader, writer, and validator for FED Wire Messages (FEDWire) in an HTTP server and Go library. The HTTP server is available in a Docker image and the Go package github.com/moov-io/wire is available.

Table of contents

Project status

Moov Wire is actively used in multiple production environments. Please star the project if you are interested in its progress. If you have layers above Wire to simplify tasks, perform business operations, or found bugs we would appreciate an issue or pull request. Thanks!

Usage

The Wire project implements an HTTP server and Go library for creating and modifying Wire files. We also have some examples of the reader and writer.

Docker

We publish a public Docker image moov/wire on Docker Hub with every tagged release of Wire. No configuration is required to serve on :8088 and metrics at :9098/metrics in Prometheus format. We also have Docker images for OpenShift published as quay.io/moov/wire.

Pull & start the Docker image:

docker pull moov/wire:latest
docker run -p 8088:8088 -p 9098:9098 moov/wire:latest

List files stored in-memory:

curl localhost:8088/files
null

Create a file on the HTTP server:

curl -X POST --data-binary "@./test/testdata/fedWireMessage-CustomerTransfer.txt" http://localhost:8088/files/create
{"id":"<YOUR-UNIQUE-FILE-ID>","fedWireMessage":{"id":"","senderSupplied":{"formatVersion":"30", .....

Get the file in its original format:

curl http://localhost:8088/files/<YOUR-UNIQUE-FILE-ID>/contents
{1500}30User ReqT
{1510}1000
{1520}20190410Source08000001
...
Google Cloud Run

To get started in a hosted environment you can deploy this project to the Google Cloud Platform.

From your Google Cloud dashboard create a new project and call it:

moov-wire-demo

Enable the Container Registry API for your project and associate a billing account if needed. Then, open the Cloud Shell terminal and run the following Docker commands, substituting your unique project ID:

docker pull moov/wire
docker tag moov/wire gcr.io/<PROJECT-ID>/wire
docker push gcr.io/<PROJECT-ID>/wire

Deploy the container to Cloud Run:

gcloud run deploy --image gcr.io/<PROJECT-ID>/wire --port 8088

Select your target platform to 1, service name to wire, and region to the one closest to you (enable Google API service if a prompt appears). Upon a successful build you will be given a URL where the API has been deployed:

https://YOUR-WIRE-APP-URL.a.run.app

Now you can list files stored in-memory:

curl https://YOUR-WIRE-APP-URL.a.run.app/files

You should get this response:

null
Configuration settings

The following environmental variables can be set to configure behavior in Wire.

Environmental Variable Description Default
HTTPS_CERT_FILE Filepath containing a certificate (or intermediate chain) to be served by the HTTP server. Requires all traffic be over secure HTTP. Empty
HTTPS_KEY_FILE Filepath of a private key matching the leaf certificate from HTTPS_CERT_FILE. Empty
WIRE_FILE_TTL Time to live (TTL) for *wire.File objects stored in the in-memory repository. 0 = No TTL / Never delete files (Example: 240m)
Data persistence

By design, Wire does not persist (save) any data about the files or entry details created. The only storage occurs in memory of the process and upon restart Wire will have no files or data saved. Also, no in-memory encryption of the data is performed.

Go library

This project uses Go Modules and Go v1.18 or newer. See Golang's install instructions for help setting up Go. You can download the source code and we offer tagged and released versions as well. We highly recommend you use a tagged release for production.

$ git@github.com:moov-io/wire.git

$ go get -u github.com/moov-io/wire

$ go doc github.com/moov-io/wire fedWireMessage

The package github.com/moov-io/wire offers a Go-based Wire file reader and writer. To get started, check out a specific example:

Supported Business Function Codes
Business Function Code Name Example Read Write
DRB BankDrawDownRequest Link Link Link
BTR BankTransfer Link Link Link
CKS CheckSameDaySettlement Link Link Link
DRC CustomerCorporateDrawDownRequest Link Link Link
CTR CustomerTransfer Link Link Link
CTP CustomerTransferPlus Link Link Link
CTP CustomerTransferPlusCOVS Link Link Link
DEP DepositSendersAccount Link Link Link
FFR FEDFundsReturned Link Link Link
FFS FEDFundsSold Link Link Link
SVC ServiceMessage Link Link Link
In-browser Wire file parser

Using our in-browser utility, you can instantly convert Wire files into JSON. Either paste in Wire file content directly or choose a file from your local machine. This tool is particulary useful if you're handling sensitive PII or want perform some quick tests, as operations are fully client-side with nothing stored in memory. We plan to support bidirectional conversion in the future.

Learn about Fedwire

FAQ

Is there an in-browser tool for converting Wire files into JSON? Yes! You can find our browser utility at http://oss.moov.io/wire/.
Is my data being saved somewhere? No, we do not save any data related to files or message details. All processing is done in-memory.
What Fedwire message types are supported? We support generating and parsing all Business Function codes.

Getting help

channel info
Project Documentation Our project documentation available online.
Twitter @moov You can follow Moov.io's Twitter feed to get updates on our project(s). You can also tweet us questions or just share blogs or stories.
GitHub Issue If you are able to reproduce a problem please open a GitHub Issue under the specific project that caused the error.
moov-io slack Join our slack channel to have an interactive discussion about the development of the project.

Supported and tested platforms

  • 64-bit Linux (Ubuntu, Debian), macOS, and Windows

Note: 32-bit platforms have known issues and are not supported.

Contributing

Yes please! Please review our Contributing guide and Code of Conduct to get started!

This project uses Go Modules and Go v1.18 or newer. See Golang's install instructions for help setting up Go. You can download the source code and we offer tagged and released versions as well. We highly recommend you use a tagged release for production.

Releasing

To make a release of wire simply open a pull request with CHANGELOG.md and version.go updated with the next version number and details. You'll also need to push the tag (i.e. git push origin v1.0.0) to origin in order for CI to make the release.

Testing

We maintain a comprehensive suite of unit tests and recommend table-driven testing when a particular function warrants several very similar test cases. To run all test files in the current directory, use go test. Current overall coverage can be found on Codecov.

Fuzzing

We currently run fuzzing over Wire in the form of a Github Action. Please report crashes examples to oss@moov.io. Thanks!

As part of Moov's initiative to offer open source fintech infrastructure, we have a large collection of active projects you may find useful:

  • Moov Watchman offers search functions over numerous trade sanction lists from the United States and European Union.

  • Moov Fed implements utility services for searching the United States Federal Reserve System such as ABA routing numbers, financial institution name lookup, and FedACH and Fedwire routing information.

  • Moov Image Cash Letter implements Image Cash Letter (ICL) files used for Check21, X.9 or check truncation files for exchange and remote deposit in the U.S.

  • Moov ACH provides ACH file generation and parsing, supporting all Standard Entry Codes for the primary method of money movement throughout the United States.

  • Moov Metro 2 provides a way to easily read, create, and validate Metro 2 format, which is used for consumer credit history reporting by the United States credit bureaus.

License

Apache License 2.0 - See LICENSE for details.

Documentation

Index

Constants

View Source
const (
	// TagMessageDisposition is MessageDisposition
	TagMessageDisposition = "{1100}"
	// TagReceiptTimeStamp is ReceiptTimeStamp
	TagReceiptTimeStamp = "{1110}"
	// TagOutputMessageAccountabilityData is OutputMessageAccountabilityData
	TagOutputMessageAccountabilityData = "{1120}"
	// TagErrorWire  is ErrorWire
	TagErrorWire = "{1130}"

	// TagSenderSupplied is SenderSuppliedInformation
	TagSenderSupplied = "{1500}"
	// TagTypeSubType is TypeSubType
	TagTypeSubType = "{1510}"
	// TagInputMessageAccountabilityData is InputMessageAccountabilityData (IMAD)
	TagInputMessageAccountabilityData = "{1520}"
	// TagAmount is Amount
	TagAmount = "{2000}"
	// TagSenderDepositoryInstitution is SenderDepositoryInstitution
	TagSenderDepositoryInstitution = "{3100}"
	// TagReceiverDepositoryInstitution is ReceiverDepositoryInstitution
	TagReceiverDepositoryInstitution = "{3400}"
	// TagBusinessFunctionCode is BusinessFunctionCode
	TagBusinessFunctionCode = "{3600}"

	// TagSenderReference is SenderReference
	TagSenderReference = "{3320}"
	// TagPreviousMessageIdentifier is PreviousMessageIdentifier
	TagPreviousMessageIdentifier = "{3500}"
	// TagLocalInstrument is LocalInstrument
	TagLocalInstrument = "{3610}"
	// TagPaymentNotification is PaymentNotification
	TagPaymentNotification = "{3620}"
	// TagCharges is Charges
	TagCharges = "{3700}"
	// TagInstructedAmount is InstructedAmount
	TagInstructedAmount = "{3710}"
	// TagExchangeRate is ExchangeRate
	TagExchangeRate = "{3720}"

	// TagBeneficiaryIntermediaryFI is BeneficiaryIntermediaryFI
	TagBeneficiaryIntermediaryFI = "{4000}"
	// TagBeneficiaryFI is BeneficiaryFI
	TagBeneficiaryFI = "{4100}"
	// TagBeneficiary is Beneficiary
	TagBeneficiary = "{4200}"
	// TagBeneficiaryReference  is BeneficiaryReference
	TagBeneficiaryReference = "{4320}"
	// TagAccountDebitedDrawdown is AccountDebitedDrawdown
	TagAccountDebitedDrawdown = "{4400}"

	// TagOriginator is Originator
	TagOriginator = "{5000}"
	// TagOriginatorOptionF is OriginatorOptionF
	TagOriginatorOptionF = "{5010}"
	// TagOriginatorFI is OriginatorFI
	TagOriginatorFI = "{5100}"
	// TagInstructingFI is InstructingFI
	TagInstructingFI = "{5200}"
	// TagAccountCreditedDrawdown is AccountCreditedDrawdown
	TagAccountCreditedDrawdown = "{5400}"

	// TagOriginatorToBeneficiary is OriginatorToBeneficiary
	TagOriginatorToBeneficiary = "{6000}"
	// TagFIReceiverFI is FIReceiverFI
	TagFIReceiverFI = "{6100}"
	// TagFIDrawdownDebitAccountAdvice is FIDrawdownDebitAccountAdvice
	TagFIDrawdownDebitAccountAdvice = "{6110}"
	// TagFIIntermediaryFI is FIIntermediaryFI
	TagFIIntermediaryFI = "{6200}"
	// TagFIIntermediaryFIAdvice is FIIntermediaryFIAdvice
	TagFIIntermediaryFIAdvice = "{6210}"
	// TagFIBeneficiaryFI is FIBeneficiaryFI
	TagFIBeneficiaryFI = "{6300}"
	// TagFIBeneficiaryFIAdvice is FIBeneficiaryFIAdvice
	TagFIBeneficiaryFIAdvice = "{6310}"
	// TagFIBeneficiary is FIBeneficiary
	TagFIBeneficiary = "{6400}"
	// TagFIBeneficiaryAdvice is FIBeneficiaryAdvice
	TagFIBeneficiaryAdvice = "{6410}"
	// TagFIPaymentMethodToBeneficiary is FIPaymentMethodToBeneficiary
	TagFIPaymentMethodToBeneficiary = "{6420}"
	// TagFIAdditionalFIToFI is FIAdditionalFIToFI
	TagFIAdditionalFIToFI = "{6500}"

	// TagCurrencyInstructedAmount is CurrencyInstructedAmount
	TagCurrencyInstructedAmount = "{7033}"
	// TagOrderingCustomer is OrderingCustomer
	TagOrderingCustomer = "{7050}"
	// TagOrderingInstitution is OrderingInstitution
	TagOrderingInstitution = "{7052}"
	// TagIntermediaryInstitution is IntermediaryInstitution
	TagIntermediaryInstitution = "{7056}"
	// TagInstitutionAccount is InstitutionAccount
	TagInstitutionAccount = "{7057}"
	// TagBeneficiaryCustomer is BeneficiaryCustomer
	TagBeneficiaryCustomer = "{7059}"
	// TagRemittance is Remittance
	TagRemittance = "{7070}"
	// TagSenderToReceiver is SenderToReceiver
	TagSenderToReceiver = "{7072}"

	// TagUnstructuredAddenda is UnstructuredAddenda
	TagUnstructuredAddenda = "{8200}"

	// TagRelatedRemittance is RelatedRemittance
	TagRelatedRemittance = "{8250}"
	// TagRemittanceOriginator is RemittanceOriginator
	TagRemittanceOriginator = "{8300}"
	// TagRemittanceBeneficiary is RemittanceBeneficiary
	TagRemittanceBeneficiary = "{8350}"
	// TagPrimaryRemittanceDocument is PrimaryRemittanceDocument
	TagPrimaryRemittanceDocument = "{8400}"
	// TagActualAmountPaid is ActualAmountPaid
	TagActualAmountPaid = "{8450}"
	// TagGrossAmountRemittanceDocument is GrossAmountRemittanceDocument
	TagGrossAmountRemittanceDocument = "{8500}"
	// TagAmountNegotiatedDiscount is AmountNegotiatedDiscount
	TagAmountNegotiatedDiscount = "{8550}"
	// TagAdjustment is Adjustment
	TagAdjustment = "{8600}"
	// TagDateRemittanceDocument is DateRemittanceDocument
	TagDateRemittanceDocument = "{8650}"
	// TagSecondaryRemittanceDocument is SecondaryRemittanceDocument
	TagSecondaryRemittanceDocument = "{8700}"

	//TagRemittanceFreeText is RemittanceFreeText
	TagRemittanceFreeText = "{8750}"

	// TagServiceMessage is ServiceMessage
	TagServiceMessage = "{9000}"

	// FormatVersion designates the FEDWIRE message format version
	FormatVersion = "30"
	// EnvironmentTest designates a test environment
	EnvironmentTest = "T"
	// EnvironmentProduction designates a production environment
	EnvironmentProduction = "P"
	// MessageDuplicationOriginal designates an original message
	MessageDuplicationOriginal = " "
	// MessageDuplicationResend designates a resend of a message
	MessageDuplicationResend = "P"

	// FundsTransfer is SenderSuppliedInformation {1510} TypeCode which designates a funds transfer in which the
	// sender and/or receiver may be a bank or a third party (i.e., customer of a bank).
	FundsTransfer = "10"
	// ForeignTransfer is SenderSuppliedInformation {1510} TypeCode which designates a funds transfer to
	// or from a foreign central bank or government or international organization with an account at the Federal
	// Reserve Bank of New York.
	ForeignTransfer = "15"
	// SettlementTransfer is SenderSuppliedInformation {1510} TypeCode which designates a funds transfer
	// between Fedwire Funds Service participants.
	SettlementTransfer = "16"

	// BasicFundsTransfer is SenderSuppliedInformation {1510} SubTypeCode which designates a basic value funds transfer.
	BasicFundsTransfer = "00"
	// RequestReversal is SenderSuppliedInformation {1510} SubTypeCode which designates a non-value request for
	// reversal of a funds transfer
	// originated on the current business day.
	RequestReversal = "01"
	// ReversalTransfer is SenderSuppliedInformation {1510} SubTypeCode which designates a value reversal of a
	// funds transfer received on the current business day.  May be used in response to a subtype
	// code 01 Request for Reversal.
	ReversalTransfer = "02"
	// RequestReversalPriorDayTransfer is SenderSuppliedInformation {1510} SubTypeCode which designates a non-value
	// request for a reversal of a funds transfer originated on a prior business day.
	RequestReversalPriorDayTransfer = "07"
	// ReversalPriorDayTransfer is SenderSuppliedInformation {1510} SubTypeCode which designates a value reversal of
	// a funds transfer received on a prior business day.  May be used in response to a subtype code 07 Request for
	// Reversal of a Prior Day Transfer.
	ReversalPriorDayTransfer = "08"
	// RequestCredit is SenderSuppliedInformation {1510} SubTypeCode which designates a non-value request for the
	// receiver to send a funds transfer to a designated party.
	RequestCredit = "31"
	// FundsTransferRequestCredit is SenderSuppliedInformation {1510} SubTypeCode which designates a value funds
	// transfer honoring a subtype 31 request for credit.
	FundsTransferRequestCredit = "32"
	// RefusalRequestCredit is SenderSuppliedInformation {1510} SubTypeCode which designates a non-value message
	// indicating refusal to honor a subtype 31 request for credit.
	RefusalRequestCredit = "33"
	// SSIServiceMessage is SenderSuppliedInformation {1510} SubTypeCode which designates a non-value message used to
	// communicate questions and information that is not covered by a specific subtype.
	SSIServiceMessage = "90"

	// BankTransfer is a bank transfer (beneficiary is a bank)
	BankTransfer = "BTR"
	// CheckSameDaySettlement is a check with same day settlement
	CheckSameDaySettlement = "CKS"
	// CustomerTransferPlus is a customer transfer plus
	CustomerTransferPlus = "CTP"
	// CustomerTransfer beneficiary is a not a bank
	CustomerTransfer = "CTR"
	// DepositSendersAccount is a deposit to a senders account
	DepositSendersAccount = "DEP"
	// BankDrawDownRequest is a bank to bank drawdown request
	BankDrawDownRequest = "DRB"
	// CustomerCorporateDrawdownRequest is a customer or corporate drawdown request
	CustomerCorporateDrawdownRequest = "DRC"
	// DrawdownResponse is a drawdown payment
	DrawdownResponse = "DRW"
	// FEDFundsReturned is FED funds returned
	FEDFundsReturned = "FFR"
	// FEDFundsSold is FED funds sold
	FEDFundsSold = "FFS"
	// BFCServiceMessage is Service Message
	BFCServiceMessage = "SVC"

	// CDBeneficiary is charge details beneficiary
	CDBeneficiary = "B"
	// CDShared is charge details shared
	CDShared = "S"

	// SWIFTBankIdentifierCode is SWIFT Bank Identifier Code
	SWIFTBankIdentifierCode = "B"
	// CHIPSParticipant is CHIPS Participant
	CHIPSParticipant = "C"
	// DemandDepositAccountNumber is Demand Deposit Account Number
	DemandDepositAccountNumber = "D"
	// FEDRoutingNumber is FED Routing Number
	FEDRoutingNumber = "F"
	// SWIFTBICORBEIANDAccountNumber is SWIFT Bank Identifier Code(BIC) OR Bank Entity Identifier (BEI) AND AccountNumber
	SWIFTBICORBEIANDAccountNumber = "T"
	// CHIPSIdentifier is CHIPS Identifier
	CHIPSIdentifier = "U"
	// PassportNumber is Passport Number
	PassportNumber = "1"
	// TaxIdentificationNumber is Tax Identification Number
	TaxIdentificationNumber = "2"
	// DriversLicenseNumber is Drivers License Number
	DriversLicenseNumber = "3"
	// AlienRegistrationNumber is Alien Registration Number
	AlienRegistrationNumber = "4"
	// CorporateIdentification is corporate identification
	CorporateIdentification = "5"
	// OtherIdentification is other identification
	OtherIdentification = "9"

	// AdviceCodeHold is an advice code for Hold
	AdviceCodeHold = "HLD"
	// AdviceCodeLetter is an advice code for LTR
	AdviceCodeLetter = "LTR"
	// AdviceCodePhone is an advice code for Phone
	AdviceCodePhone = "PHN"
	// AdviceCodeTelex is an advice code for Telex
	AdviceCodeTelex = "TLX"
	// AdviceCodeWire is an advice code for Wire
	AdviceCodeWire = "WRE"

	// RLMElectronicDataExchange is Remittance Location Method Electronic Data Exchange
	RLMElectronicDataExchange = "EDIC"
	// RLMEmail is Remittance Location Method Email
	RLMEmail = "EMAL"
	// RLMFax is Remittance Location Method Fax
	RLMFax = "FAXI"
	// RLMPostalService is Remittance Location Method Postal Service
	RLMPostalService = "POST"
	// RLMSMSM is Remittance Location Method Short Message Service (text)
	RLMSMSM = "SMSM"
	// RLMURI is Remittance Location Method Uniform Resource Identifier
	RLMURI = "URID"

	// CompletePostalAddress is Complete Postal Address
	CompletePostalAddress = "ADDR"
	// HomeAddress is Home Address
	HomeAddress = "HOME"
	// BusinessAddress is Business Address
	BusinessAddress = "BIZZ"
	// MailAddress is Mail Address
	MailAddress = "MLTO"
	// DeliveryAddress is Delivery Address
	DeliveryAddress = "DLVY"
	// PostOfficeBox is Post Office Box
	PostOfficeBox = "PBOX"

	// OrganizationID is Organization ID
	OrganizationID = "OI"
	// PrivateID is Private ID
	PrivateID = "PI"

	// OICBankPartyIdentification is Bank Party Identification
	OICBankPartyIdentification = "BANK"
	// OICCustomerNumber is Customer Number
	OICCustomerNumber = "CUST"
	// OICDataUniversalNumberSystem (Dun & Bradstreet) is Data Universal Number System
	OICDataUniversalNumberSystem = "DUNS"
	// OICEmployerIdentificationNumber is Employee Identification Number
	OICEmployerIdentificationNumber = "EMPL"
	// OICGlobalLocationNumber is Global Location Number
	OICGlobalLocationNumber = "GS1G"
	// OICProprietaryIdentificationNumber is Proprietary Identification Number
	OICProprietaryIdentificationNumber = "PROP"
	// OICSWIFTBICORBEI is SWIFT BIC or BEI
	OICSWIFTBICORBEI = "SWBB"
	// OICTaxIdentificationNumber is Tax Identification Number
	OICTaxIdentificationNumber = "TXID"

	// PICAlienRegistrationNumber is Alien Registration Number
	PICAlienRegistrationNumber = "ARNU"
	// PICPassportNumber is Passport Number
	PICPassportNumber = "CCPT"
	// PICCustomerNumber is Customer Number
	PICCustomerNumber = "CUST"
	// PICDateBirthPlace is Date Birth Place
	PICDateBirthPlace = "DPOB"
	// PICEmployeeIdentificationNumber is Employer Identification Number
	PICEmployeeIdentificationNumber = "EMPL"
	// PICNationalIdentityNumber is National Identity Number
	PICNationalIdentityNumber = "NIDN"
	// PICProprietaryIdentificationNumber is Proprietary Identification Number
	PICProprietaryIdentificationNumber = "PROP"
	// PICSocialSecurityNumber is Social Security Number
	PICSocialSecurityNumber = "SOSE"
	// PICTaxIdentificationNumber is Tax Identification Number
	PICTaxIdentificationNumber = "TXID"

	// AccountsReceivableOpenItem is accounts receivable open item
	AccountsReceivableOpenItem = "AROI"
	// BillLadingShippingNotice is bill lading shipping notice
	BillLadingShippingNotice = "BOLD"
	// CommercialInvoice is commercial invoice
	CommercialInvoice = "CINV"
	// CommercialContract is commercial contract
	CommercialContract = "CMCN"
	// CreditNoteRelatedFinancialAdjustment is credit note related financial adjustment
	CreditNoteRelatedFinancialAdjustment = "CNFA"
	// CreditNote is credit note
	CreditNote = "CREN"
	// DebitNote is debit note
	DebitNote = "DEBN"
	// DispatchAdvice is dispatch advice
	DispatchAdvice = "DISP"
	// DebitNoteRelatedFinancialAdjustment is debit note related financial adjustment
	DebitNoteRelatedFinancialAdjustment = "DNFA"
	// HireInvoice is hire invoice
	HireInvoice = "HIRI"
	// MeteredServiceInvoice is metered service invoice
	MeteredServiceInvoice = "MSIN"
	// ProprietaryDocumentType is proprietary document type
	ProprietaryDocumentType = "PROP"
	// PurchaseOrder is Purchase Order
	PurchaseOrder = "PUOR"
	// SelfBilledInvoice is self billed invoice
	SelfBilledInvoice = "SBIN"
	// StatementAccount is Statement of account
	StatementAccount = "SOAC"
	// TradeServicesUtilityTransaction is trade services utility transaction
	TradeServicesUtilityTransaction = "TSUT"
	// Voucher is Voucher
	Voucher = "VCHR"

	// PricingError is pricing error
	PricingError = "01"
	// ExtensionError is extension error
	ExtensionError = "03"
	// ItemNotAcceptedDamaged is item not accepted damaged
	ItemNotAcceptedDamaged = "04"
	// ItemNotAcceptedQuality is item not accepted quality
	ItemNotAcceptedQuality = "05"
	// QuantityContested is quantity contested
	QuantityContested = "06"
	// IncorrectProduct is incorrect product
	IncorrectProduct = "07"
	// ReturnsDamaged is returns damaged
	ReturnsDamaged = "11"
	// ReturnsQuality is returns quality
	ReturnsQuality = "12"
	// ItemNotReceived is item not received
	ItemNotReceived = "59"
	// TotalOrderNotReceived is total order not received
	TotalOrderNotReceived = "75"
	// CreditAgreed is credit agreed
	CreditAgreed = "81"
	// CoveredCreditMemo is covered credit memo
	CoveredCreditMemo = "CM"

	// CreditIndicator is a credit
	CreditIndicator = "CRDT"
	// DebitIndicator is a debit
	DebitIndicator = "DBIT"

	// ANSIX12format is ANSI X12 format
	ANSIX12format = "ANSI"
	// SequenceBCoverPaymentStructured is Sequence B Cover Payment Structured
	SequenceBCoverPaymentStructured = "COVS"
	// GeneralXMLformat is General XML format
	GeneralXMLformat = "GXML"
	// ISO20022XMLformat is ISO 20022 XML format
	ISO20022XMLformat = "IXML"
	// NarrativeText is Narrative Text
	NarrativeText = "NARR"
	// ProprietaryLocalInstrumentCode is Proprietary Local Instrument Code
	ProprietaryLocalInstrumentCode = "PROP"
	// RemittanceInformationStructured is Remittance Information Structured
	RemittanceInformationStructured = "RMTS"
	// RelatedRemittanceInformation is Related Remittance Information
	RelatedRemittanceInformation = "RRMT"
	// STP820format is STP 820 format
	STP820format = "S820"
	// SWIFTfield70 = SWIFT field 70
	SWIFTfield70 = "SWIF"
	// UNEDIFACTformat is UN-EDIFACT format
	UNEDIFACTformat = "UEDI"

	// PaymentMethod is the payment method to beneficiary.  'CHECK' is the only valid option
	PaymentMethod = "CHECK"

	// PartyIdentifierAlienRegistrationNumber is PartyIdentifier Alien Registration Number
	PartyIdentifierAlienRegistrationNumber = "ARNU"
	// PartyIdentifierPassportNumber is PartyIdentifier Passport Number
	PartyIdentifierPassportNumber = "CCPT"
	// PartyIdentifierCustomerIdentificationNumber is PartyIdentifier Customer Identification Number
	PartyIdentifierCustomerIdentificationNumber = "CUST"
	// PartyIdentifierDriversLicenseNumber is PartyIdentifier Driver’s License Number
	PartyIdentifierDriversLicenseNumber = "DRLC"
	// PartyIdentifierEmployerNumber is PartyIdentifier Employer Number
	PartyIdentifierEmployerNumber = "EMPL"
	// PartyIdentifierNationalIdentifyNumber is PartyIdentifier National Identify Number
	PartyIdentifierNationalIdentifyNumber = "NIDN"
	// PartyIdentifierSocialSecurityNumber is PartyIdentifier Social Security Number
	PartyIdentifierSocialSecurityNumber = "SOSE"
	// PartyIdentifierTaxIdentificationNumber is PartyIdentifier Tax Identification Number
	PartyIdentifierTaxIdentificationNumber = "TXID"

	// OptionFName is Name
	OptionFName = "1"
	// OptionFAddress is Address
	OptionFAddress = "2"
	// OptionFCountryTown is Country and Town
	OptionFCountryTown = "3"
	// OptionFDOB  is Date of Birth
	OptionFDOB = "4"
	// OptionFBirthPlace is Place of Birth
	OptionFBirthPlace = "5"
	// OptionFCustomerIdentificationNumber is Customer Identification Number
	OptionFCustomerIdentificationNumber = "6"
	// OptionFNationalIdentityNumber is National Identity Number
	OptionFNationalIdentityNumber = "7"
	// OptionFAdditionalInformation is Additional Information
	OptionFAdditionalInformation = "8"
)
View Source
const (
	Delimiter = "*"
)
View Source
const Version = "v0.15.5"

Version is version

Variables

View Source
var (

	// ErrValidTagForType is returned when a type has an invalid tag
	ErrValidTagForType = errors.New("is an invalid tag")
	// ErrNonNumeric is returned when a field has non-numeric characters
	ErrNonNumeric = errors.New("has non numeric characters")
	// ErrNonAlphanumeric is returned when a field has non-alphanumeric characters
	ErrNonAlphanumeric = errors.New("has non alphanumeric characters")
	// ErrNonAmount is returned for an incorrect wire amount format
	ErrNonAmount = errors.New("is an incorrect amount format")
	// ErrNonCurrencyCode is returned for an incorrect currency code
	ErrNonCurrencyCode = errors.New("is not a recognized currency code")
	// ErrUpperAlpha is returned when a field is not in uppercase
	ErrUpperAlpha = errors.New("is not uppercase A-Z or 0-9")
	// ErrFieldInclusion is returned when a field is mandatory and has a default value
	ErrFieldInclusion = errors.New("is a mandatory field and has a default value")
	// ErrConstructor is returned when there's a mandatory field is not initialized correctly, and prompts to use the constructor
	ErrConstructor = errors.New("is a mandatory field and has a default value. Use the constructor")
	// ErrFieldRequired is returned when a field is required
	ErrFieldRequired = errors.New("is a required field")
	// ErrNotPermitted is returned when a field is included, but not permitted in combination with the other tags present in the message
	ErrNotPermitted = errors.New("is not permitted in this context")
	// ErrValidMonth is returned for an invalid month
	ErrValidMonth = errors.New("is an invalid month")
	// ErrValidDay is returned for an invalid day
	ErrValidDay = errors.New("is an invalid day")
	// ErrValidYear is returned for an invalid year
	ErrValidYear = errors.New("is an invalid year")
	// ErrValidCentury is returned for an invalid century
	ErrValidCentury = errors.New("is an invalid century")
	// ErrValidDate is returned for an invalid date
	ErrValidDate = errors.New("is an invalid date format")
	// ErrInvalidProperty is returned for an invalid type property
	ErrInvalidProperty = errors.New("is an invalid property")

	// ErrFormatVersion is returned for an invalid an invalid FormatVersion
	ErrFormatVersion = errors.New("is not 30")
	// ErrTestProductionCode is returned for an invalid TestProductionCode
	ErrTestProductionCode = errors.New("is an invalid test production code")
	// ErrMessageDuplicationCode is returned for an invalid MessageDuplicationCode
	ErrMessageDuplicationCode = errors.New("is an invalid message duplication code")

	// ErrTypeCode is returned for an invalid TypeCode tag
	ErrTypeCode = errors.New("is an invalid type code")
	// ErrSubTypeCode is returned when there's an invalid SubTypeCode tag
	ErrSubTypeCode = errors.New("is an invalid sub type Code")

	// ErrBusinessFunctionCode is returned for an invalid business function code
	ErrBusinessFunctionCode = errors.New("is an invalid business function code")
	// ErrTransactionTypeCode is returned for an invalid transaction type code
	ErrTransactionTypeCode = errors.New("is an invalid transaction type code")

	// ErrLocalInstrumentNotPermitted is returned when LocalInstrument is included and BusinessFunctionCode is NOT CustomerTransferPlus
	ErrLocalInstrumentNotPermitted = errors.New("is only permitted for business function code CTP")
	// ErrLocalInstrumentCode is returned for an invalid local instrument code tag {3610}
	ErrLocalInstrumentCode = errors.New("is an invalid local instrument Code")
	// ErrPaymentNotificationIndicator is returned for an invalid payment notification indicator {3620}
	ErrPaymentNotificationIndicator = errors.New("is an invalid payment notification indicator")

	// ErrChargeDetails is returned for an invalid charge details for charges
	ErrChargeDetails = errors.New("is an invalid charge detail")

	// ErrIdentificationCode is returned for an invalid identification code
	ErrIdentificationCode = errors.New("is an invalid identification code")

	// ErrAdviceCode is returned for an invalid advice code
	ErrAdviceCode = errors.New("is an invalid advice code")

	// ErrRemittanceLocationMethod is returned for an invalid remittance location method
	ErrRemittanceLocationMethod = errors.New("is an invalid remittance location method")

	// ErrAddressType is returned for an invalid address type
	ErrAddressType = errors.New("is an invalid address type")

	// ErrIdentificationType is returned for an invalid remittance Identification Typ
	ErrIdentificationType = errors.New("is an invalid remittance identification type")

	// ErrOrganizationIdentificationCode is returned for an invalid organization identification code
	ErrOrganizationIdentificationCode = errors.New("is an invalid organization identification code")

	// ErrPrivateIdentificationCode is returned for an invalid private identification code
	ErrPrivateIdentificationCode = errors.New("is an invalid private identification code")

	// ErrDocumentTypeCode is returned for an invalid document type code
	ErrDocumentTypeCode = errors.New("is an invalid document type code")

	// ErrCreditDebitIndicator is returned for an invalid credit or debit indicator
	ErrCreditDebitIndicator = errors.New("is an invalid credit or debit indicator")

	// ErrAdjustmentReasonCode is returned for an invalid adjustment reason code
	ErrAdjustmentReasonCode = errors.New("is an invalid adjustment reason code")

	// ErrPartyIdentifier is returned for an invalid party identifier
	ErrPartyIdentifier = errors.New("is an invalid party identifier")

	// ErrOptionFLine is returned for an invalid line for OriginatorOptionF
	ErrOptionFLine = errors.New("is an invalid line for originator optionF")

	// ErrOptionFName is returned for an invalid name for OriginatorOptionF
	ErrOptionFName = errors.New("is an invalid name for originator optionF")

	// ErrValidLength is returned for an field with invalid length
	ErrValidLength = errors.New("is an invalid length")

	// ErrRequireDelimiter is returned for an field without a delimiter
	ErrRequireDelimiter = errors.New("is require delimiter")
)
View Source
var (
	// ErrFileTooLong is the error given when a file exceeds the maximum possible length
	ErrFileTooLong = errors.New("file exceeds maximum possible number of lines")
)

Functions

This section is empty.

Types

type AccountCreditedDrawdown

type AccountCreditedDrawdown struct {

	// DrawdownCreditAccountNumber  9 character ABA
	DrawdownCreditAccountNumber string `json:"drawdownCreditAccountNumber,omitempty"`
	// contains filtered or unexported fields
}

AccountCreditedDrawdown is the account which is credited in a drawdown

func NewAccountCreditedDrawdown

func NewAccountCreditedDrawdown() *AccountCreditedDrawdown

NewAccountCreditedDrawdown returns a new AccountCreditedDrawdown

func (*AccountCreditedDrawdown) DrawdownCreditAccountNumberField

func (creditDD *AccountCreditedDrawdown) DrawdownCreditAccountNumberField() string

DrawdownCreditAccountNumberField gets a string of the DrawdownCreditAccountNumber field

func (*AccountCreditedDrawdown) Format added in v0.9.0

func (creditDD *AccountCreditedDrawdown) Format(options FormatOptions) string

Format returns an AccountCreditedDrawdown record formatted according to the FormatOptions

func (*AccountCreditedDrawdown) FormatCreditAccountNumber added in v0.9.0

func (creditDD *AccountCreditedDrawdown) FormatCreditAccountNumber(options FormatOptions) string

FormatCreditAccountNumber returns DrawdownCreditAccountNumber formatted according to the FormatOptions

func (*AccountCreditedDrawdown) Parse

func (creditDD *AccountCreditedDrawdown) Parse(record string) error

Parse takes the input string and parses the AccountCreditedDrawdown values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*AccountCreditedDrawdown) String

func (creditDD *AccountCreditedDrawdown) String() string

String returns a fixed-width AccountCreditedDrawdown record

func (*AccountCreditedDrawdown) UnmarshalJSON added in v0.6.2

func (creditDD *AccountCreditedDrawdown) UnmarshalJSON(data []byte) error

func (*AccountCreditedDrawdown) Validate

func (creditDD *AccountCreditedDrawdown) Validate() error

Validate performs WIRE format rule checks on AccountCreditedDrawdown and returns an error if not Validated The first error encountered is returned and stops that parsing.

type AccountDebitedDrawdown

type AccountDebitedDrawdown struct {

	// Identification Code * `D` - Debit
	IdentificationCode string `json:"identificationCode"`
	// Identifier
	Identifier string `json:"identifier"`
	// Name
	Name    string  `json:"name"`
	Address Address `json:"address,omitempty"`
	// contains filtered or unexported fields
}

AccountDebitedDrawdown is the account which is debited in a drawdown

func NewAccountDebitedDrawdown

func NewAccountDebitedDrawdown() *AccountDebitedDrawdown

NewAccountDebitedDrawdown returns a new AccountDebitedDrawdown

func (*AccountDebitedDrawdown) AddressLineOneField

func (debitDD *AccountDebitedDrawdown) AddressLineOneField() string

AddressLineOneField gets a string of Address.AddressLineOne field

func (*AccountDebitedDrawdown) AddressLineThreeField

func (debitDD *AccountDebitedDrawdown) AddressLineThreeField() string

AddressLineThreeField gets a string of Address.AddressLineThree field

func (*AccountDebitedDrawdown) AddressLineTwoField

func (debitDD *AccountDebitedDrawdown) AddressLineTwoField() string

AddressLineTwoField gets a string of Address.AddressLineTwo field

func (*AccountDebitedDrawdown) Format added in v0.9.0

func (debitDD *AccountDebitedDrawdown) Format(options FormatOptions) string

Format returns an AccountDebitedDrawdown record formatted according to the FormatOptions

func (*AccountDebitedDrawdown) FormatAddressLineOne added in v0.9.0

func (debitDD *AccountDebitedDrawdown) FormatAddressLineOne(options FormatOptions) string

FormatAddressLineOne returns Address.AddressLineOne formatted according to the FormatOptions

func (*AccountDebitedDrawdown) FormatAddressLineThree added in v0.9.0

func (debitDD *AccountDebitedDrawdown) FormatAddressLineThree(options FormatOptions) string

FormatAddressLineThree returns Address.AddressLineThree formatted according to the FormatOptions

func (*AccountDebitedDrawdown) FormatAddressLineTwo added in v0.9.0

func (debitDD *AccountDebitedDrawdown) FormatAddressLineTwo(options FormatOptions) string

FormatAddressLineTwo returns Address.AddressLineTwo formatted according to the FormatOptions

func (*AccountDebitedDrawdown) FormatIdentifier added in v0.9.0

func (debitDD *AccountDebitedDrawdown) FormatIdentifier(options FormatOptions) string

FormatIdentifier returns Identifier formatted according to the FormatOptions

func (*AccountDebitedDrawdown) FormatName added in v0.9.0

func (debitDD *AccountDebitedDrawdown) FormatName(options FormatOptions) string

FormatName returns Name formatted according to the FormatOptions

func (*AccountDebitedDrawdown) IdentificationCodeField

func (debitDD *AccountDebitedDrawdown) IdentificationCodeField() string

IdentificationCodeField gets a string of the IdentificationCode field

func (*AccountDebitedDrawdown) IdentifierField

func (debitDD *AccountDebitedDrawdown) IdentifierField() string

IdentifierField gets a string of the Identifier field

func (*AccountDebitedDrawdown) NameField

func (debitDD *AccountDebitedDrawdown) NameField() string

NameField gets a string of the Name field

func (*AccountDebitedDrawdown) Parse

func (debitDD *AccountDebitedDrawdown) Parse(record string) error

Parse takes the input string and parses the AccountDebitedDrawdown values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*AccountDebitedDrawdown) String

func (debitDD *AccountDebitedDrawdown) String() string

String returns a fixed-width AccountDebitedDrawdown record

func (*AccountDebitedDrawdown) UnmarshalJSON added in v0.6.2

func (debitDD *AccountDebitedDrawdown) UnmarshalJSON(data []byte) error

func (*AccountDebitedDrawdown) Validate

func (debitDD *AccountDebitedDrawdown) Validate() error

Validate performs WIRE format rule checks on AccountDebitedDrawdown and returns an error if not Validated The first error encountered is returned and stops that parsing.

type ActualAmountPaid

type ActualAmountPaid struct {

	// RemittanceAmount is remittance amounts
	RemittanceAmount RemittanceAmount `json:"remittanceAmount,omitempty"`
	// contains filtered or unexported fields
}

ActualAmountPaid is the actual amount paid

func NewActualAmountPaid

func NewActualAmountPaid() *ActualAmountPaid

NewActualAmountPaid returns a new ActualAmountPaid

func (*ActualAmountPaid) AmountField

func (aap *ActualAmountPaid) AmountField() string

AmountField gets a string of the RemittanceAmount.Amount field

func (*ActualAmountPaid) CurrencyCodeField

func (aap *ActualAmountPaid) CurrencyCodeField() string

CurrencyCodeField gets a string of the RemittanceAmount.CurrencyCode field

func (*ActualAmountPaid) Format added in v0.9.0

func (aap *ActualAmountPaid) Format(options FormatOptions) string

Format returns an ActualAmountPaid record formatted according to the FormatOptions

func (*ActualAmountPaid) FormatAmount added in v0.9.0

func (aap *ActualAmountPaid) FormatAmount(options FormatOptions) string

FormatAmount returns RemittanceAmount.Amount formatted according to the FormatOptions

func (*ActualAmountPaid) FormatCurrencyCode added in v0.9.0

func (aap *ActualAmountPaid) FormatCurrencyCode(options FormatOptions) string

FormatCurrencyCode returns RemittanceAmount.CurrencyCode formatted according to the FormatOptions

func (*ActualAmountPaid) Parse

func (aap *ActualAmountPaid) Parse(record string) error

Parse takes the input string and parses the ActualAmountPaid values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*ActualAmountPaid) String

func (aap *ActualAmountPaid) String() string

String returns a fixed-width ActualAmountPaid record

func (*ActualAmountPaid) UnmarshalJSON added in v0.6.2

func (aap *ActualAmountPaid) UnmarshalJSON(data []byte) error

func (*ActualAmountPaid) Validate

func (aap *ActualAmountPaid) Validate() error

Validate performs WIRE format rule checks on ActualAmountPaid and returns an error if not Validated The first error encountered is returned and stops that parsing. Currency Code and Amount are mandatory for each set of remittance data.

type AdditionalFIToFI

type AdditionalFIToFI struct {
	// LineOne
	LineOne string `json:"lineOne,omitempty"`
	// LineTwo
	LineTwo string `json:"lineTwo,omitempty"`
	// LineThree
	LineThree string `json:"lineThree,omitempty"`
	// LineFour
	LineFour string `json:"lineFour,omitempty"`
	// LineFive
	LineFive string `json:"lineFive,omitempty"`
	// LineSix
	LineSix string `json:"lineSix,omitempty"`
}

AdditionalFIToFI is additional financial institution to financial institution information

type Address

type Address struct {
	// AddressLineOne
	AddressLineOne string `json:"addressLineOne,omitempty"`
	// AddressLineTwo
	AddressLineTwo string `json:"addressLineTwo,omitempty"`
	// AddressLineThree
	AddressLineThree string `json:"addressLineThree,omitempty"`
}

Address is 3 lines of address information

type Adjustment

type Adjustment struct {

	// Adjustment  * `01` - Pricing Error * `03` - Extension Error * `04` - Item Not Accepted (Damaged) * `05` - Item Not Accepted (Quality) * `06` - Quantity Contested 07   Incorrect Product * `11` - Returns (Damaged) * `12` - Returns (Quality) * `59` - Item Not Received * `75` - Total Order Not Received * `81` - Credit as Agreed * `CM` - Covered by Credit Memo
	AdjustmentReasonCode string `json:"adjustmentReasonCode,omitempty"`
	// CreditDebitIndicator  * `CRDT` - Credit * `DBIT` - Debit
	CreditDebitIndicator string `json:"creditDebitIndicator,omitempty"`
	// RemittanceAmount is remittance amounts
	RemittanceAmount RemittanceAmount `json:"remittanceAmount,omitempty"`
	// AdditionalInfo is additional information
	AdditionalInfo string `json:"additionalInfo,omitempty"`
	// contains filtered or unexported fields
}

Adjustment is adjustment

func NewAdjustment

func NewAdjustment() *Adjustment

NewAdjustment returns a new Adjustment

func (*Adjustment) AdditionalInfoField

func (adj *Adjustment) AdditionalInfoField() string

AdditionalInfoField gets a string of the AdditionalInfo field

func (*Adjustment) AdjustmentReasonCodeField

func (adj *Adjustment) AdjustmentReasonCodeField() string

AdjustmentReasonCodeField gets a string of the AdjustmentReasonCode field

func (*Adjustment) AmountField

func (adj *Adjustment) AmountField() string

AmountField gets a string of the Amount field

func (*Adjustment) CreditDebitIndicatorField

func (adj *Adjustment) CreditDebitIndicatorField() string

CreditDebitIndicatorField gets a string of the CreditDebitIndicator field

func (*Adjustment) CurrencyCodeField

func (adj *Adjustment) CurrencyCodeField() string

CurrencyCodeField gets a string of the CurrencyCode field

func (*Adjustment) Format added in v0.9.0

func (adj *Adjustment) Format(options FormatOptions) string

Format returns an Adjustment record formatted according to the FormatOptions

func (*Adjustment) FormatAdditionalInfo added in v0.9.0

func (adj *Adjustment) FormatAdditionalInfo(options FormatOptions) string

FormatAdditionalInfo returns AdditionalInfo formatted according to the FormatOptions

func (*Adjustment) FormatAdjustmentReasonCode added in v0.9.0

func (adj *Adjustment) FormatAdjustmentReasonCode(options FormatOptions) string

FormatAdjustmentReasonCode returns AdjustmentReasonCode formatted according to the FormatOptions

func (*Adjustment) FormatAmount added in v0.9.0

func (adj *Adjustment) FormatAmount(options FormatOptions) string

FormatAmount returns RemittanceAmount.Amount formatted according to the FormatOptions

func (*Adjustment) FormatCreditDebitIndicator added in v0.9.0

func (adj *Adjustment) FormatCreditDebitIndicator(options FormatOptions) string

FormatCreditDebitIndicator returns CreditDebitIndicator formatted according to the FormatOptions

func (*Adjustment) FormatCurrencyCode added in v0.9.0

func (adj *Adjustment) FormatCurrencyCode(options FormatOptions) string

FormatCurrencyCode returns RemittanceAmount.CurrencyCode formatted according to the FormatOptions

func (*Adjustment) Parse

func (adj *Adjustment) Parse(record string) error

Parse takes the input string and parses the Adjustment values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*Adjustment) String

func (adj *Adjustment) String() string

String returns a fixed-width Adjustment record

func (*Adjustment) UnmarshalJSON added in v0.6.2

func (adj *Adjustment) UnmarshalJSON(data []byte) error

func (*Adjustment) Validate

func (adj *Adjustment) Validate() error

Validate performs WIRE format rule checks on Adjustment and returns an error if not Validated The first error encountered is returned and stops that parsing. Adjustment Reason, Credit Debit Indicator, Currency Code and Amount are mandatory.

type Advice

type Advice struct {
	AdviceCode string `json:"adviceCode,omitempty"`
	// LineOne
	LineOne string `json:"lineOne,omitempty"`
	// LineTwo
	LineTwo string `json:"lineTwo,omitempty"`
	// LineThree
	LineThree string `json:"lineThree,omitempty"`
	// LineFour
	LineFour string `json:"lineFour,omitempty"`
	// LineFive
	LineFive string `json:"lineFive,omitempty"`
	// LineSix
	LineSix string `json:"lineSix,omitempty"`
}

Advice is financial institution advice information

type Amount

type Amount struct {

	// Amount must be right justified with leading zeroes, an implied decimal point and
	// no commas (e.g., $12,345.67 becomes 000001234567). Amount can be all zeroes for
	// only SUBTYPE CODE 90 messages.
	Amount string `json:"amount"`
	// contains filtered or unexported fields
}

Amount (up to a penny less than $10 billion) {2000}

func NewAmount

func NewAmount() *Amount

NewAmount returns a new Amount

func (*Amount) AmountField

func (a *Amount) AmountField() string

AmountField gets a string of entry addenda batch count zero padded

func (*Amount) Parse

func (a *Amount) Parse(record string) error

Parse takes the input string and parses the Amount value

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*Amount) String

func (a *Amount) String() string

String returns a fixed-width Amount record

func (*Amount) UnmarshalJSON added in v0.6.2

func (a *Amount) UnmarshalJSON(data []byte) error

func (*Amount) Validate

func (a *Amount) Validate() error

Validate performs WIRE format rule checks on Amount and returns an error if not Validated The first error encountered is returned and stops that parsing.

type AmountNegotiatedDiscount

type AmountNegotiatedDiscount struct {

	// RemittanceAmount is remittance amounts
	RemittanceAmount RemittanceAmount `json:"remittanceAmount,omitempty"`
	// contains filtered or unexported fields
}

AmountNegotiatedDiscount is the amount negotiated discount

func NewAmountNegotiatedDiscount

func NewAmountNegotiatedDiscount() *AmountNegotiatedDiscount

NewAmountNegotiatedDiscount returns a new AmountNegotiatedDiscount

func (*AmountNegotiatedDiscount) AmountField

func (nd *AmountNegotiatedDiscount) AmountField() string

AmountField gets a string of the Amount field

func (*AmountNegotiatedDiscount) CurrencyCodeField

func (nd *AmountNegotiatedDiscount) CurrencyCodeField() string

CurrencyCodeField gets a string of the CurrencyCode field

func (*AmountNegotiatedDiscount) Format added in v0.9.0

func (nd *AmountNegotiatedDiscount) Format(options FormatOptions) string

Format returns an AmountNegotiatedDiscount record formatted according to the FormatOptions

func (*AmountNegotiatedDiscount) FormatAmount added in v0.9.0

func (nd *AmountNegotiatedDiscount) FormatAmount(options FormatOptions) string

FormatAmount returns RemittanceAmount.Amount formatted according to the FormatOptions

func (*AmountNegotiatedDiscount) FormatCurrencyCode added in v0.9.0

func (nd *AmountNegotiatedDiscount) FormatCurrencyCode(options FormatOptions) string

FormatCurrencyCode returns RemittanceAmount.CurrencyCode formatted according to the FormatOptions

func (*AmountNegotiatedDiscount) Parse

func (nd *AmountNegotiatedDiscount) Parse(record string) error

Parse takes the input string and parses the AmountNegotiatedDiscount values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*AmountNegotiatedDiscount) String

func (nd *AmountNegotiatedDiscount) String() string

String returns a fixed-width AmountNegotiatedDiscount record

func (*AmountNegotiatedDiscount) UnmarshalJSON added in v0.6.2

func (nd *AmountNegotiatedDiscount) UnmarshalJSON(data []byte) error

func (*AmountNegotiatedDiscount) Validate

func (nd *AmountNegotiatedDiscount) Validate() error

Validate performs WIRE format rule checks on AmountNegotiatedDiscount and returns an error if not Validated The first error encountered is returned and stops that parsing.

type Beneficiary

type Beneficiary struct {

	// Personal
	Personal Personal `json:"personal,omitempty"`
	// contains filtered or unexported fields
}

Beneficiary is the beneficiary of the wire

func NewBeneficiary

func NewBeneficiary() *Beneficiary

NewBeneficiary returns a new Beneficiary

func (*Beneficiary) AddressLineOneField

func (ben *Beneficiary) AddressLineOneField() string

AddressLineOneField gets a string of AddressLineOne field

func (*Beneficiary) AddressLineThreeField

func (ben *Beneficiary) AddressLineThreeField() string

AddressLineThreeField gets a string of AddressLineThree field

func (*Beneficiary) AddressLineTwoField

func (ben *Beneficiary) AddressLineTwoField() string

AddressLineTwoField gets a string of AddressLineTwo field

func (*Beneficiary) Format added in v0.9.0

func (ben *Beneficiary) Format(options FormatOptions) string

Format returns a Beneficiary record formatted according to the FormatOptions

func (*Beneficiary) FormatAddressLineOne added in v0.9.0

func (ben *Beneficiary) FormatAddressLineOne(options FormatOptions) string

FormatAddressLineOne returns Personal.Address.AddressLineOne formatted according to the FormatOptions

func (*Beneficiary) FormatAddressLineThree added in v0.9.0

func (ben *Beneficiary) FormatAddressLineThree(options FormatOptions) string

FormatAddressLineThree returns Personal.Address.AddressLineThree formatted according to the FormatOptions

func (*Beneficiary) FormatAddressLineTwo added in v0.9.0

func (ben *Beneficiary) FormatAddressLineTwo(options FormatOptions) string

FormatAddressLineTwo returns Personal.Address.AddressLineTwo formatted according to the FormatOptions

func (*Beneficiary) FormatIdentifier added in v0.9.0

func (ben *Beneficiary) FormatIdentifier(options FormatOptions) string

FormatIdentifier returns Personal.Identifier formatted according to the FormatOptions

func (*Beneficiary) FormatName added in v0.9.0

func (ben *Beneficiary) FormatName(options FormatOptions) string

FormatName returns Personal.Name formatted according to the FormatOptions

func (*Beneficiary) IdentificationCodeField

func (ben *Beneficiary) IdentificationCodeField() string

IdentificationCodeField gets a string of the IdentificationCode field

func (*Beneficiary) IdentifierField

func (ben *Beneficiary) IdentifierField() string

IdentifierField gets a string of the Identifier field

func (*Beneficiary) NameField

func (ben *Beneficiary) NameField() string

NameField gets a string of the Name field

func (*Beneficiary) Parse

func (ben *Beneficiary) Parse(record string) error

Parse takes the input string and parses the Beneficiary values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*Beneficiary) String

func (ben *Beneficiary) String() string

String returns a fixed-width Beneficiary record

func (*Beneficiary) UnmarshalJSON added in v0.6.2

func (ben *Beneficiary) UnmarshalJSON(data []byte) error

func (*Beneficiary) Validate

func (ben *Beneficiary) Validate() error

Validate performs WIRE format rule checks on Beneficiary and returns an error if not Validated The first error encountered is returned and stops that parsing. If ID Code is present, Identifier is mandatory and vice versa.

type BeneficiaryCustomer

type BeneficiaryCustomer struct {

	// CoverPayment is CoverPayment
	CoverPayment CoverPayment `json:"coverPayment,omitempty"`
	// contains filtered or unexported fields
}

BeneficiaryCustomer is the beneficiary customer

func NewBeneficiaryCustomer

func NewBeneficiaryCustomer() *BeneficiaryCustomer

NewBeneficiaryCustomer returns a new BeneficiaryCustomer

func (*BeneficiaryCustomer) Format added in v0.9.0

func (bc *BeneficiaryCustomer) Format(options FormatOptions) string

Format returns a BeneficiaryCustomer record formatted according to the FormatOptions

func (*BeneficiaryCustomer) FormatSwiftFieldTag added in v0.9.0

func (bc *BeneficiaryCustomer) FormatSwiftFieldTag(options FormatOptions) string

FormatSwiftFieldTag returns CoverPayment.SwiftFieldTag formatted according to the FormatOptions

func (*BeneficiaryCustomer) FormatSwiftLineFive added in v0.9.0

func (bc *BeneficiaryCustomer) FormatSwiftLineFive(options FormatOptions) string

FormatSwiftLineFive returns CoverPayment.SwiftLineFive formatted according to the FormatOptions

func (*BeneficiaryCustomer) FormatSwiftLineFour added in v0.9.0

func (bc *BeneficiaryCustomer) FormatSwiftLineFour(options FormatOptions) string

FormatSwiftLineFour returns CoverPayment.SwiftLineFour formatted according to the FormatOptions

func (*BeneficiaryCustomer) FormatSwiftLineOne added in v0.9.0

func (bc *BeneficiaryCustomer) FormatSwiftLineOne(options FormatOptions) string

FormatSwiftLineOne returns CoverPayment.SwiftLineOne formatted according to the FormatOptions

func (*BeneficiaryCustomer) FormatSwiftLineThree added in v0.9.0

func (bc *BeneficiaryCustomer) FormatSwiftLineThree(options FormatOptions) string

FormatSwiftLineThree returns CoverPayment.SwiftLineThree formatted according to the FormatOptions

func (*BeneficiaryCustomer) FormatSwiftLineTwo added in v0.9.0

func (bc *BeneficiaryCustomer) FormatSwiftLineTwo(options FormatOptions) string

FormatSwiftLineTwo returns CoverPayment.SwiftLineTwo formatted according to the FormatOptions

func (*BeneficiaryCustomer) Parse

func (bc *BeneficiaryCustomer) Parse(record string) error

Parse takes the input string and parses the BeneficiaryCustomer values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*BeneficiaryCustomer) String

func (bc *BeneficiaryCustomer) String() string

String returns a fixed-width BeneficiaryCustomer record

func (*BeneficiaryCustomer) SwiftFieldTagField

func (bc *BeneficiaryCustomer) SwiftFieldTagField() string

SwiftFieldTagField gets a string of the SwiftFieldTag field

func (*BeneficiaryCustomer) SwiftLineFiveField

func (bc *BeneficiaryCustomer) SwiftLineFiveField() string

SwiftLineFiveField gets a string of the SwiftLineFive field

func (*BeneficiaryCustomer) SwiftLineFourField

func (bc *BeneficiaryCustomer) SwiftLineFourField() string

SwiftLineFourField gets a string of the SwiftLineFour field

func (*BeneficiaryCustomer) SwiftLineOneField

func (bc *BeneficiaryCustomer) SwiftLineOneField() string

SwiftLineOneField gets a string of the SwiftLineOne field

func (*BeneficiaryCustomer) SwiftLineThreeField

func (bc *BeneficiaryCustomer) SwiftLineThreeField() string

SwiftLineThreeField gets a string of the SwiftLineThree field

func (*BeneficiaryCustomer) SwiftLineTwoField

func (bc *BeneficiaryCustomer) SwiftLineTwoField() string

SwiftLineTwoField gets a string of the SwiftLineTwo field

func (*BeneficiaryCustomer) UnmarshalJSON added in v0.6.2

func (bc *BeneficiaryCustomer) UnmarshalJSON(data []byte) error

func (*BeneficiaryCustomer) Validate

func (bc *BeneficiaryCustomer) Validate() error

Validate performs WIRE format rule checks on BeneficiaryCustomer and returns an error if not Validated The first error encountered is returned and stops that parsing.

type BeneficiaryFI

type BeneficiaryFI struct {

	// Financial Institution
	FinancialInstitution FinancialInstitution `json:"financialInstitution,omitempty"`
	// contains filtered or unexported fields
}

BeneficiaryFI is the financial institution of the beneficiary

func NewBeneficiaryFI

func NewBeneficiaryFI() *BeneficiaryFI

NewBeneficiaryFI returns a new BeneficiaryFI

func (*BeneficiaryFI) AddressLineOneField

func (bfi *BeneficiaryFI) AddressLineOneField() string

AddressLineOneField gets a string of AddressLineOne field

func (*BeneficiaryFI) AddressLineThreeField

func (bfi *BeneficiaryFI) AddressLineThreeField() string

AddressLineThreeField gets a string of AddressLineThree field

func (*BeneficiaryFI) AddressLineTwoField

func (bfi *BeneficiaryFI) AddressLineTwoField() string

AddressLineTwoField gets a string of AddressLineTwo field

func (*BeneficiaryFI) Format added in v0.9.0

func (bfi *BeneficiaryFI) Format(options FormatOptions) string

Format returns a BeneficiaryFI record formatted according to the FormatOptions

func (*BeneficiaryFI) FormatAddressLineOne added in v0.9.0

func (bfi *BeneficiaryFI) FormatAddressLineOne(options FormatOptions) string

FormatAddressLineOne returns FinancialInstitution.Address.AddressLineOne formatted according to the FormatOptions

func (*BeneficiaryFI) FormatAddressLineThree added in v0.9.0

func (bfi *BeneficiaryFI) FormatAddressLineThree(options FormatOptions) string

FormatAddressLineThree returns FinancialInstitution.Address.AddressLineThree formatted according to the FormatOptions

func (*BeneficiaryFI) FormatAddressLineTwo added in v0.9.0

func (bfi *BeneficiaryFI) FormatAddressLineTwo(options FormatOptions) string

FormatAddressLineTwo returns FinancialInstitution.Address.AddressLineTwo formatted according to the FormatOptions

func (*BeneficiaryFI) FormatIdentifier added in v0.9.0

func (bfi *BeneficiaryFI) FormatIdentifier(options FormatOptions) string

FormatIdentifier returns FinancialInstitution.Identifier formatted according to the FormatOptions

func (*BeneficiaryFI) FormatName added in v0.9.0

func (bfi *BeneficiaryFI) FormatName(options FormatOptions) string

FormatName returns FinancialInstitution.Name formatted according to the FormatOptions

func (*BeneficiaryFI) IdentificationCodeField

func (bfi *BeneficiaryFI) IdentificationCodeField() string

IdentificationCodeField gets a string of the IdentificationCode field

func (*BeneficiaryFI) IdentifierField

func (bfi *BeneficiaryFI) IdentifierField() string

IdentifierField gets a string of the Identifier field

func (*BeneficiaryFI) NameField

func (bfi *BeneficiaryFI) NameField() string

NameField gets a string of the Name field

func (*BeneficiaryFI) Parse

func (bfi *BeneficiaryFI) Parse(record string) error

Parse takes the input string and parses the BeneficiaryFI values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*BeneficiaryFI) String

func (bfi *BeneficiaryFI) String() string

String returns a fixed-width BeneficiaryFI record

func (*BeneficiaryFI) UnmarshalJSON added in v0.6.2

func (bfi *BeneficiaryFI) UnmarshalJSON(data []byte) error

func (*BeneficiaryFI) Validate

func (bfi *BeneficiaryFI) Validate() error

Validate performs WIRE format rule checks on BeneficiaryFI and returns an error if not Validated The first error encountered is returned and stops that parsing.

type BeneficiaryIntermediaryFI

type BeneficiaryIntermediaryFI struct {

	// Financial Institution
	FinancialInstitution FinancialInstitution `json:"financialInstitution,omitempty"`
	// contains filtered or unexported fields
}

BeneficiaryIntermediaryFI {4000}

func NewBeneficiaryIntermediaryFI

func NewBeneficiaryIntermediaryFI() *BeneficiaryIntermediaryFI

NewBeneficiaryIntermediaryFI returns a new BeneficiaryIntermediaryFI

func (*BeneficiaryIntermediaryFI) AddressLineOneField

func (bifi *BeneficiaryIntermediaryFI) AddressLineOneField() string

AddressLineOneField gets a string of AddressLineOne field

func (*BeneficiaryIntermediaryFI) AddressLineThreeField

func (bifi *BeneficiaryIntermediaryFI) AddressLineThreeField() string

AddressLineThreeField gets a string of AddressLineThree field

func (*BeneficiaryIntermediaryFI) AddressLineTwoField

func (bifi *BeneficiaryIntermediaryFI) AddressLineTwoField() string

AddressLineTwoField gets a string of AddressLineTwo field

func (*BeneficiaryIntermediaryFI) Format added in v0.9.0

func (bifi *BeneficiaryIntermediaryFI) Format(options FormatOptions) string

Format returns a BeneficiaryIntermediaryFI record formatted according to the FormatOptions

func (*BeneficiaryIntermediaryFI) FormatAddressLineOne added in v0.9.0

func (bifi *BeneficiaryIntermediaryFI) FormatAddressLineOne(options FormatOptions) string

FormatAddressLineOne returns FinancialInstitution.Address.AddressLineOne formatted according to the FormatOptions

func (*BeneficiaryIntermediaryFI) FormatAddressLineThree added in v0.9.0

func (bifi *BeneficiaryIntermediaryFI) FormatAddressLineThree(options FormatOptions) string

FormatAddressLineThree returns FinancialInstitution.Address.AddressLineThree formatted according to the FormatOptions

func (*BeneficiaryIntermediaryFI) FormatAddressLineTwo added in v0.9.0

func (bifi *BeneficiaryIntermediaryFI) FormatAddressLineTwo(options FormatOptions) string

FormatAddressLineTwo returns FinancialInstitution.Address.AddressLineTwo formatted according to the FormatOptions

func (*BeneficiaryIntermediaryFI) FormatIdentifier added in v0.9.0

func (bifi *BeneficiaryIntermediaryFI) FormatIdentifier(options FormatOptions) string

FormatIdentifier returns FinancialInstitution.Identifier formatted according to the FormatOptions

func (*BeneficiaryIntermediaryFI) FormatName added in v0.9.0

func (bifi *BeneficiaryIntermediaryFI) FormatName(options FormatOptions) string

FormatName returns FinancialInstitution.Name formatted according to the FormatOptions

func (*BeneficiaryIntermediaryFI) IdentificationCodeField

func (bifi *BeneficiaryIntermediaryFI) IdentificationCodeField() string

IdentificationCodeField gets a string of the IdentificationCode field

func (*BeneficiaryIntermediaryFI) IdentifierField

func (bifi *BeneficiaryIntermediaryFI) IdentifierField() string

IdentifierField gets a string of the Identifier field

func (*BeneficiaryIntermediaryFI) NameField

func (bifi *BeneficiaryIntermediaryFI) NameField() string

NameField gets a string of the Name field

func (*BeneficiaryIntermediaryFI) Parse

func (bifi *BeneficiaryIntermediaryFI) Parse(record string) error

Parse takes the input string and parses the ReceiverDepositoryInstitution values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*BeneficiaryIntermediaryFI) String

func (bifi *BeneficiaryIntermediaryFI) String() string

String returns a fixed-width BeneficiaryIntermediaryFI record

func (*BeneficiaryIntermediaryFI) UnmarshalJSON added in v0.6.2

func (bifi *BeneficiaryIntermediaryFI) UnmarshalJSON(data []byte) error

func (*BeneficiaryIntermediaryFI) Validate

func (bifi *BeneficiaryIntermediaryFI) Validate() error

Validate performs WIRE format rule checks on BeneficiaryIntermediaryFI and returns an error if not Validated The first error encountered is returned and stops that parsing. If ID Code is present, Identifier is mandatory and vice versa.

type BeneficiaryReference

type BeneficiaryReference struct {

	// BeneficiaryReference
	BeneficiaryReference string `json:"beneficiaryReference,omitempty"`
	// contains filtered or unexported fields
}

BeneficiaryReference is a reference for the beneficiary

func NewBeneficiaryReference

func NewBeneficiaryReference() *BeneficiaryReference

NewBeneficiaryReference returns a new BeneficiaryReference

func (*BeneficiaryReference) BeneficiaryReferenceField

func (br *BeneficiaryReference) BeneficiaryReferenceField() string

BeneficiaryReferenceField gets a string of the BeneficiaryReference field

func (*BeneficiaryReference) Format added in v0.9.0

func (br *BeneficiaryReference) Format(options FormatOptions) string

Format returns a BeneficiaryReference record formatted according to the FormatOptions

func (*BeneficiaryReference) FormatBeneficiaryReference added in v0.9.0

func (br *BeneficiaryReference) FormatBeneficiaryReference(options FormatOptions) string

FormatBeneficiaryReference returns BeneficiaryReference formatted according to the FormatOptions

func (*BeneficiaryReference) Parse

func (br *BeneficiaryReference) Parse(record string) error

Parse takes the input string and parses the BeneficiaryReference values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*BeneficiaryReference) String

func (br *BeneficiaryReference) String() string

String returns a fixed-width BeneficiaryReference record

func (*BeneficiaryReference) UnmarshalJSON added in v0.6.2

func (br *BeneficiaryReference) UnmarshalJSON(data []byte) error

func (*BeneficiaryReference) Validate

func (br *BeneficiaryReference) Validate() error

Validate performs WIRE format rule checks on BeneficiaryReference and returns an error if not Validated The first error encountered is returned and stops that parsing.

type BusinessFunctionCode

type BusinessFunctionCode struct {

	// BusinessFunctionCode BTR: Bank Transfer (Beneficiary is a bank) DRC: Customer or Corporate Drawdown Request CKS: Check Same Day Settlement DRW: Drawdown Payment CTP: Customer Transfer Plus FFR: Fed Funds Returned CTR: Customer Transfer (Beneficiary is a not a bank) FFS: Fed Funds Sold DEP: Deposit to Sender’s Account SVC: Service Message DRB: Bank-to-Bank Drawdown Request
	BusinessFunctionCode string `json:"businessFunctionCode"`
	// TransactionTypeCode If {3600} is CTR, an optional Transaction Type Code element is permitted; however, the Transaction Type Code 'COV' is not permitted.
	TransactionTypeCode string `json:"transactionTypeCode,omitempty"`
	// contains filtered or unexported fields
}

BusinessFunctionCode {3600}

func NewBusinessFunctionCode

func NewBusinessFunctionCode() *BusinessFunctionCode

NewBusinessFunctionCode returns a new BusinessFunctionCode

func (*BusinessFunctionCode) BusinessFunctionCodeField

func (bfc *BusinessFunctionCode) BusinessFunctionCodeField() string

BusinessFunctionCodeField gets a string of the BusinessFunctionCode field

func (*BusinessFunctionCode) Format added in v0.9.0

func (bfc *BusinessFunctionCode) Format(options FormatOptions) string

Format returns a BusinessFunctionCode record formatted according to the FormatOptions

func (*BusinessFunctionCode) FormatTransactionTypeCode added in v0.9.0

func (bfc *BusinessFunctionCode) FormatTransactionTypeCode(options FormatOptions) string

FormatTransactionTypeCode returns TransactionTypeCode formatted according to the FormatOptions

func (*BusinessFunctionCode) Parse

func (bfc *BusinessFunctionCode) Parse(record string) error

Parse takes the input string and parses the BusinessFunctionCode values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*BusinessFunctionCode) String

func (bfc *BusinessFunctionCode) String() string

String returns a fixed-width BusinessFunctionCode record

func (*BusinessFunctionCode) TransactionTypeCodeField

func (bfc *BusinessFunctionCode) TransactionTypeCodeField() string

TransactionTypeCodeField gets a string of the TransactionTypeCode field

func (*BusinessFunctionCode) UnmarshalJSON added in v0.6.2

func (bfc *BusinessFunctionCode) UnmarshalJSON(data []byte) error

func (*BusinessFunctionCode) Validate

func (bfc *BusinessFunctionCode) Validate() error

Validate performs WIRE format rule checks on BusinessFunctionCode and returns an error if not Validated The first error encountered is returned and stops that parsing.

type Charges

type Charges struct {

	// ChargeDetails * `B` - Beneficiary * `S` - Shared
	ChargeDetails string `json:"chargeDetails,omitempty"`
	// SendersChargesOne  The first three characters must contain an alpha currency code (e.g., USD).  The remaining
	// characters for the amount must begin with at least one numeric character (0-9) and only one decimal comma
	// marker.  $1,234.56 should be entered as USD1234,56 and $0.99 should be entered as USD0,99.
	SendersChargesOne string `json:"sendersChargesOne,omitempty"`
	// SendersChargesTwo  The first three characters must contain an alpha currency code (e.g., USD).  The remaining
	// characters for the amount must begin with at least one numeric character (0-9) and only one decimal comma
	// marker.  $1,234.56 should be entered as USD1234,56 and $0.99 should be entered as USD0,99.
	SendersChargesTwo string `json:"sendersChargesTwo,omitempty"`
	// SendersChargesThree  The first three characters must contain an alpha currency code (e.g., USD).  The remaining
	// characters for the amount must begin with at least one numeric character (0-9) and only one decimal comma
	// marker.  $1,234.56 should be entered as USD1234,56 and $0.99 should be entered as USD0,99.
	SendersChargesThree string `json:"sendersChargesThree,omitempty"`
	// SendersChargesFour  The first three characters must contain an alpha currency code (e.g., USD).  The remaining
	// characters for the amount must begin with at least one numeric character (0-9) and only one decimal comma
	// marker.  $1,234.56 should be entered as USD1234,56 and $0.99 should be entered as USD0,99.
	SendersChargesFour string `json:"sendersChargesFour,omitempty"`
	// contains filtered or unexported fields
}

Charges is the Charges of the wire

func NewCharges

func NewCharges() *Charges

NewCharges returns a new Charges

func (*Charges) ChargeDetailsField

func (c *Charges) ChargeDetailsField() string

ChargeDetailsField gets a string of the ChargeDetails field

func (*Charges) Format added in v0.9.0

func (c *Charges) Format(options FormatOptions) string

Format returns a Charges record formatted according to the FormatOptions

func (*Charges) FormatSendersChargesFour added in v0.9.0

func (c *Charges) FormatSendersChargesFour(options FormatOptions) string

FormatSendersChargesFour returns SendersChargesFour formatted according to the FormatOptions

func (*Charges) FormatSendersChargesOne added in v0.9.0

func (c *Charges) FormatSendersChargesOne(options FormatOptions) string

FormatSendersChargesOne returns SendersChargesOne formatted according to the FormatOptions

func (*Charges) FormatSendersChargesThree added in v0.9.0

func (c *Charges) FormatSendersChargesThree(options FormatOptions) string

FormatSendersChargesThree returns SendersChargesThree formatted according to the FormatOptions

func (*Charges) FormatSendersChargesTwo added in v0.9.0

func (c *Charges) FormatSendersChargesTwo(options FormatOptions) string

FormatSendersChargesTwo returns SendersChargesTwo formatted according to the FormatOptions

func (*Charges) Parse

func (c *Charges) Parse(record string) error

Parse takes the input string and parses the Charges values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*Charges) SendersChargesFourField

func (c *Charges) SendersChargesFourField() string

SendersChargesFourField gets a string of the SendersChargesFour field

func (*Charges) SendersChargesOneField

func (c *Charges) SendersChargesOneField() string

SendersChargesOneField gets a string of the SendersChargesOne field

func (*Charges) SendersChargesThreeField

func (c *Charges) SendersChargesThreeField() string

SendersChargesThreeField gets a string of the SendersChargesThree field

func (*Charges) SendersChargesTwoField

func (c *Charges) SendersChargesTwoField() string

SendersChargesTwoField gets a string of the SendersChargesTwo field

func (*Charges) String

func (c *Charges) String() string

String returns a fixed-width Charges record

func (*Charges) UnmarshalJSON added in v0.6.2

func (c *Charges) UnmarshalJSON(data []byte) error

func (*Charges) Validate

func (c *Charges) Validate() error

Validate performs WIRE format rule checks on Charges and returns an error if not Validated The first error encountered is returned and stops that parsing.

type CoverPayment

type CoverPayment struct {
	// SwiftFieldTag
	SwiftFieldTag string `json:"swiftFieldTag,omitempty"`
	// SwiftLineOne
	SwiftLineOne string `json:"swiftLineOne,omitempty"`
	// SwiftLineTwo
	SwiftLineTwo string `json:"swiftLineTwo,omitempty"`
	// SwiftLineThree
	SwiftLineThree string `json:"swiftLineThree,omitempty"`
	// SwiftLineFour
	SwiftLineFour string `json:"swiftLineFour,omitempty"`
	// SwiftLineFive
	SwiftLineFive string `json:"swiftLineFive,omitempty"`
	// SwiftLineSix
	SwiftLineSix string `json:"swiftLineSix,omitempty"`
}

CoverPayment is cover payment data

type CurrencyInstructedAmount

type CurrencyInstructedAmount struct {

	// SwiftFieldTag
	SwiftFieldTag string `json:"swiftFieldTag"`
	// Amount is the instructed amount
	// Amount Must begin with at least one numeric character (0-9) and contain only one decimal comma marker
	// (e.g., $1,234.56 should be entered as 1234,56 and $0.99 should be entered as
	Amount string `json:"amount"`
	// contains filtered or unexported fields
}

CurrencyInstructedAmount is the currency instructed amount

func NewCurrencyInstructedAmount

func NewCurrencyInstructedAmount() *CurrencyInstructedAmount

NewCurrencyInstructedAmount returns a new CurrencyInstructedAmount

func (*CurrencyInstructedAmount) AmountField

func (cia *CurrencyInstructedAmount) AmountField() string

AmountField gets a string of the AmountTag field

func (*CurrencyInstructedAmount) Format added in v0.9.0

func (cia *CurrencyInstructedAmount) Format(options FormatOptions) string

Format returns a CurrencyInstructedAmount record formatted according to the FormatOptions

func (*CurrencyInstructedAmount) FormatAmount added in v0.14.0

func (cia *CurrencyInstructedAmount) FormatAmount(options FormatOptions) string

FormatAmount gets a string of the AmountTag formatted according to the FormatOptions

func (*CurrencyInstructedAmount) FormatSwiftFieldTag added in v0.9.0

func (cia *CurrencyInstructedAmount) FormatSwiftFieldTag(options FormatOptions) string

FormatSwiftFieldTag returns SwiftFieldTag formatted according to the FormatOptions

func (*CurrencyInstructedAmount) Parse

func (cia *CurrencyInstructedAmount) Parse(record string) error

Parse takes the input string and parses the CurrencyInstructedAmount values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*CurrencyInstructedAmount) String

func (cia *CurrencyInstructedAmount) String() string

String returns a fixed-width CurrencyInstructedAmount record

func (*CurrencyInstructedAmount) SwiftFieldTagField

func (cia *CurrencyInstructedAmount) SwiftFieldTagField() string

SwiftFieldTagField gets a string of the SwiftFieldTag field

func (*CurrencyInstructedAmount) UnmarshalJSON added in v0.6.2

func (cia *CurrencyInstructedAmount) UnmarshalJSON(data []byte) error

func (*CurrencyInstructedAmount) Validate

func (cia *CurrencyInstructedAmount) Validate() error

Validate performs WIRE format rule checks on CurrencyInstructedAmount and returns an error if not Validated The first error encountered is returned and stops that parsing.

type DateRemittanceDocument

type DateRemittanceDocument struct {

	// DateRemittanceDocument CCYYMMDD
	DateRemittanceDocument string `json:"dateRemittanceDocument,omitempty"`
	// contains filtered or unexported fields
}

DateRemittanceDocument is the date of remittance document

func NewDateRemittanceDocument

func NewDateRemittanceDocument() *DateRemittanceDocument

NewDateRemittanceDocument returns a new DateRemittanceDocument

func (*DateRemittanceDocument) DateRemittanceDocumentField

func (drd *DateRemittanceDocument) DateRemittanceDocumentField() string

DateRemittanceDocumentField gets a string of the DateRemittanceDocument field

func (*DateRemittanceDocument) Parse

func (drd *DateRemittanceDocument) Parse(record string) error

Parse takes the input string and parses the DateRemittanceDocument values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*DateRemittanceDocument) String

func (drd *DateRemittanceDocument) String() string

String writes DateRemittanceDocument

func (*DateRemittanceDocument) UnmarshalJSON added in v0.6.2

func (drd *DateRemittanceDocument) UnmarshalJSON(data []byte) error

func (*DateRemittanceDocument) Validate

func (drd *DateRemittanceDocument) Validate() error

Validate performs WIRE format rule checks on DateRemittanceDocument and returns an error if not Validated The first error encountered is returned and stops that parsing.

type ErrBusinessFunctionCodeProperty

type ErrBusinessFunctionCodeProperty struct {
	Message              string
	Property             string
	PropertyValue        string
	BusinessFunctionCode string
}

ErrBusinessFunctionCodeProperty is the error given when the observed check digit does not match the calculated one

func NewErrBusinessFunctionCodeProperty

func NewErrBusinessFunctionCodeProperty(property, propertyValue, businessFunctionCode string) ErrBusinessFunctionCodeProperty

NewErrBusinessFunctionCodeProperty creates a new error of the ErrBusinessFunctionCodeProperty type

func (ErrBusinessFunctionCodeProperty) Error

type ErrInvalidPropertyForProperty

type ErrInvalidPropertyForProperty struct {
	Message             string
	Property            string
	PropertyValue       string
	SecondProperty      string
	SecondPropertyValue string
}

ErrInvalidPropertyForProperty is the error given when the observed check digit does not match the calculated one

func NewErrInvalidPropertyForProperty

func NewErrInvalidPropertyForProperty(property, propertyValue, secondProperty, secondPropertyValue string) ErrInvalidPropertyForProperty

NewErrInvalidPropertyForProperty creates a new error of the ErrInvalidPropertyForProperty type

func (ErrInvalidPropertyForProperty) Error

type ErrInvalidTag

type ErrInvalidTag struct {
	Message string
	Type    string
}

ErrInvalidTag is the error given when a tag is invalid

func NewErrInvalidTag

func NewErrInvalidTag(tag string) ErrInvalidTag

NewErrInvalidTag creates a new error of the ErrInvalidTag type

func (ErrInvalidTag) Error

func (e ErrInvalidTag) Error() string

type ErrorWire

type ErrorWire struct {

	//  * `E` - Data Error * `F` - Insufficient Balance * `H` - Accountability Error * `I` - In Process or Intercepted * `W` - Cutoff Hour Error * `X` - Duplicate IMAD
	ErrorCategory string `json:"errorCategory,omitempty"`
	// ErrorCode
	ErrorCode string `json:"errorCode,omitempty"`
	// ErrorDescription
	ErrorDescription string `json:"errorDescription,omitempty"`
	// contains filtered or unexported fields
}

ErrorWire is a wire error with the fedwire message

func NewErrorWire

func NewErrorWire() *ErrorWire

NewErrorWire returns a new ErrorWire

func (*ErrorWire) ErrorCategoryField

func (ew *ErrorWire) ErrorCategoryField() string

ErrorCategoryField gets a string of the ErrorCategory field

func (*ErrorWire) ErrorCodeField

func (ew *ErrorWire) ErrorCodeField() string

ErrorCodeField gets a string of the ErrorCode field

func (*ErrorWire) ErrorDescriptionField

func (ew *ErrorWire) ErrorDescriptionField() string

ErrorDescriptionField gets a string of the ErrorDescription field

func (*ErrorWire) Format added in v0.9.0

func (ew *ErrorWire) Format(options FormatOptions) string

Format returns a ErrorWire record formatted according to the FormatOptions

func (*ErrorWire) FormatErrorCategory added in v0.9.0

func (ew *ErrorWire) FormatErrorCategory(options FormatOptions) string

FormatErrorCategory returns ErrorCategory formatted according to the FormatOptions

func (*ErrorWire) FormatErrorCode added in v0.9.0

func (ew *ErrorWire) FormatErrorCode(options FormatOptions) string

FormatErrorCode returns ErrorCode formatted according to the FormatOptions

func (*ErrorWire) FormatErrorDescription added in v0.9.0

func (ew *ErrorWire) FormatErrorDescription(options FormatOptions) string

FormatErrorDescription returns ErrorDescription formatted according to the FormatOptions

func (*ErrorWire) Parse

func (ew *ErrorWire) Parse(record string) error

Parse takes the input string and parses the ErrorWire values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*ErrorWire) String

func (ew *ErrorWire) String() string

String returns a fixed-width ErrorWire record

func (*ErrorWire) UnmarshalJSON added in v0.6.2

func (ew *ErrorWire) UnmarshalJSON(data []byte) error

func (*ErrorWire) Validate

func (ew *ErrorWire) Validate() error

Validate performs WIRE format rule checks on ErrorWire and returns an error if not Validated The first error encountered is returned and stops that parsing.

type ExchangeRate

type ExchangeRate struct {

	// ExchangeRate is the exchange rate
	// Must contain at least one numeric character and only one decimal comma marker (e.g., an exchange rate of 1.2345 should be entered as 1,2345).
	ExchangeRate string `json:"exchangeRate,omitempty"`
	// contains filtered or unexported fields
}

ExchangeRate is the ExchangeRate of the wire

func NewExchangeRate

func NewExchangeRate() *ExchangeRate

NewExchangeRate returns a new ExchangeRate

func (*ExchangeRate) ExchangeRateField

func (eRate *ExchangeRate) ExchangeRateField() string

ExchangeRateField gets a string of the ExchangeRate field

func (*ExchangeRate) Format added in v0.9.0

func (eRate *ExchangeRate) Format(options FormatOptions) string

Format returns a ExchangeRate record formatted according to the FormatOptions

func (*ExchangeRate) FormatExchangeRate added in v0.9.0

func (eRate *ExchangeRate) FormatExchangeRate(options FormatOptions) string

FormatExchangeRate returns ExchangeRate formatted according to the FormatOptions

func (*ExchangeRate) Parse

func (eRate *ExchangeRate) Parse(record string) error

Parse takes the input string and parses the ExchangeRate values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*ExchangeRate) String

func (eRate *ExchangeRate) String() string

String returns a fixed-width ExchangeRate record

func (*ExchangeRate) UnmarshalJSON added in v0.6.2

func (eRate *ExchangeRate) UnmarshalJSON(data []byte) error

func (*ExchangeRate) Validate

func (eRate *ExchangeRate) Validate() error

Validate performs WIRE format rule checks on ExchangeRate and returns an error if not Validated The first error encountered is returned and stops that parsing.

type FEDWireMessage

type FEDWireMessage struct {
	// ID
	ID string `json:"id"`
	// MessageDisposition
	MessageDisposition *MessageDisposition `json:"messageDisposition,omitempty"`
	// ReceiptTimeStamp
	ReceiptTimeStamp *ReceiptTimeStamp `json:"receiptTimeStamp,omitempty"`
	// OutputMessageAccountabilityData (OMAD)
	OutputMessageAccountabilityData *OutputMessageAccountabilityData `json:"outputMessageAccountabilityData,omitempty"`
	// ErrorWire
	ErrorWire *ErrorWire `json:"errorWire,omitempty"`
	// SenderSuppliedInformation
	SenderSupplied *SenderSupplied `json:"senderSupplied"`
	// TypeSubType
	TypeSubType *TypeSubType `json:"typeSubType"`
	// InputMessageAccountabilityData (IMAD)
	InputMessageAccountabilityData *InputMessageAccountabilityData `json:"inputMessageAccountabilityData"`
	// Amount (up to a penny less than $10 billion)
	Amount *Amount `json:"amount"`
	// SenderDepositoryInstitution
	SenderDepositoryInstitution *SenderDepositoryInstitution `json:"senderDepositoryInstitution"`
	// ReceiverDepositoryInstitution
	ReceiverDepositoryInstitution *ReceiverDepositoryInstitution `json:"receiverDepositoryInstitution"`
	// BusinessFunctionCode
	BusinessFunctionCode *BusinessFunctionCode `json:"businessFunctionCode"`
	// SenderReference
	SenderReference *SenderReference `json:"senderReference,omitempty"`
	// PreviousMessageIdentifier
	PreviousMessageIdentifier *PreviousMessageIdentifier `json:"previousMessageIdentifier,omitempty"`
	// LocalInstrument
	LocalInstrument *LocalInstrument `json:"localInstrument,omitempty"`
	// PaymentNotification
	PaymentNotification *PaymentNotification `json:"paymentNotification,omitempty"`
	// Charges
	Charges *Charges `json:"charges,omitempty"`
	// InstructedAmount
	InstructedAmount *InstructedAmount `json:"instructedAmount,omitempty"`
	// ExchangeRate
	ExchangeRate *ExchangeRate `json:"exchangeRate,omitempty"`
	// BeneficiaryIntermediaryFI
	BeneficiaryIntermediaryFI *BeneficiaryIntermediaryFI `json:"beneficiaryIntermediaryFI,omitempty"`
	// BeneficiaryFI
	BeneficiaryFI *BeneficiaryFI `json:"beneficiaryFI,omitempty"`
	// Beneficiary
	Beneficiary *Beneficiary `json:"beneficiary,omitempty"`
	// BeneficiaryReference
	BeneficiaryReference *BeneficiaryReference `json:"beneficiaryReference,omitempty"`
	// AccountDebitedDrawdown
	AccountDebitedDrawdown *AccountDebitedDrawdown `json:"accountDebitedDrawdown,omitempty"`
	// Originator
	Originator *Originator `json:"originator,omitempty"`
	// OriginatorOptionF
	OriginatorOptionF *OriginatorOptionF `json:"originatorOptionF,omitempty"`
	// OriginatorFI
	OriginatorFI *OriginatorFI `json:"originatorFI,omitempty"`
	// InstructingFI
	InstructingFI *InstructingFI `json:"instructingFI,omitempty"`
	// AccountCreditedDrawdown
	AccountCreditedDrawdown *AccountCreditedDrawdown `json:"accountCreditedDrawdown,omitempty"`
	// OriginatorToBeneficiary
	OriginatorToBeneficiary *OriginatorToBeneficiary `json:"originatorToBeneficiary,omitempty"`
	// FIReceiverFI
	FIReceiverFI *FIReceiverFI `json:"fiReceiverFI,omitempty"`
	// FIDrawdownDebitAccountAdvice
	FIDrawdownDebitAccountAdvice *FIDrawdownDebitAccountAdvice `json:"fiDrawdownDebitAccountAdvice,omitempty"`
	// FIIntermediaryFI
	FIIntermediaryFI *FIIntermediaryFI `json:"fiIntermediaryFI,omitempty"`
	// FIIntermediaryFIAdvice
	FIIntermediaryFIAdvice *FIIntermediaryFIAdvice `json:"fiIntermediaryFIAdvice,omitempty"`
	// FIBeneficiaryFI
	FIBeneficiaryFI *FIBeneficiaryFI `json:"fiBeneficiaryFI,omitempty"`
	// FIBeneficiaryFIAdvice
	FIBeneficiaryFIAdvice *FIBeneficiaryFIAdvice `json:"fiBeneficiaryFIAdvice,omitempty"`

	FIBeneficiary *FIBeneficiary `json:"fiBeneficiary,omitempty"`
	// FIBeneficiaryAdvice
	FIBeneficiaryAdvice *FIBeneficiaryAdvice `json:"fiBeneficiaryAdvice,omitempty"`
	// FIPaymentMethodToBeneficiary
	FIPaymentMethodToBeneficiary *FIPaymentMethodToBeneficiary `json:"fiPaymentMethodToBeneficiary,omitempty"`
	// FIAdditionalFIToFI
	FIAdditionalFIToFI *FIAdditionalFIToFI `json:"fiAdditionalFiToFi,omitempty"`
	// CurrencyInstructedAmount
	CurrencyInstructedAmount *CurrencyInstructedAmount `json:"currencyInstructedAmount,omitempty"`
	// OrderingCustomer
	OrderingCustomer *OrderingCustomer `json:"orderingCustomer,omitempty"`
	// OrderingInstitution
	OrderingInstitution *OrderingInstitution `json:"orderingInstitution,omitempty"`
	// IntermediaryInstitution
	IntermediaryInstitution *IntermediaryInstitution `json:"intermediaryInstitution,omitempty"`
	// InstitutionAccount
	InstitutionAccount *InstitutionAccount `json:"institutionAccount,omitempty"`
	// BeneficiaryCustomer
	BeneficiaryCustomer *BeneficiaryCustomer `json:"beneficiaryCustomer,omitempty"`
	// Remittance
	Remittance *Remittance `json:"remittance,omitempty"`
	// SenderToReceiver
	SenderToReceiver *SenderToReceiver `json:"senderToReceiver,omitempty"`
	// UnstructuredAddenda
	UnstructuredAddenda *UnstructuredAddenda `json:"unstructuredAddenda,omitempty"`
	// RelatedRemittance
	RelatedRemittance *RelatedRemittance `json:"relatedRemittance,omitempty"`
	// RemittanceOriginator
	RemittanceOriginator *RemittanceOriginator `json:"remittanceOriginator,omitempty"`
	// RemittanceBeneficiary
	RemittanceBeneficiary *RemittanceBeneficiary `json:"remittanceBeneficiary,omitempty"`
	// PrimaryRemittanceDocument
	PrimaryRemittanceDocument *PrimaryRemittanceDocument `json:"primaryRemittanceDocument,omitempty"`
	// ActualAmountPaid
	ActualAmountPaid *ActualAmountPaid `json:"actualAmountPaid,omitempty"`
	// GrossAmountRemittanceDocument
	GrossAmountRemittanceDocument *GrossAmountRemittanceDocument `json:"grossAmountRemittanceDocument,omitempty"`
	// AmountNegotiatedDiscount
	AmountNegotiatedDiscount *AmountNegotiatedDiscount `json:"amountNegotiatedDiscount,omitempty"`
	// Adjustment
	Adjustment *Adjustment `json:"adjustment,omitempty"`
	// DateRemittanceDocument
	DateRemittanceDocument *DateRemittanceDocument `json:"dateRemittanceDocument,omitempty"`
	// SecondaryRemittanceDocument
	SecondaryRemittanceDocument *SecondaryRemittanceDocument `json:"secondaryRemittanceDocument,omitempty"`
	// RemittanceFreeText
	RemittanceFreeText *RemittanceFreeText `json:"remittanceFreeText,omitempty"`
	// ServiceMessage
	ServiceMessage *ServiceMessage `json:"serviceMessage,omitempty"`
	// ValidateOpts
	ValidateOptions *ValidateOpts `json:"validateOptions,omitempty"`
}

FEDWireMessage is a FedWire Message

type FIAdditionalFIToFI

type FIAdditionalFIToFI struct {

	// AdditionalFiToFi is additional financial institution to financial institution information
	AdditionalFIToFI AdditionalFIToFI `json:"additionalFiToFi,omitempty"`
	// contains filtered or unexported fields
}

FIAdditionalFIToFI is the financial institution beneficiary financial institution

func NewFIAdditionalFIToFI

func NewFIAdditionalFIToFI() *FIAdditionalFIToFI

NewFIAdditionalFIToFI returns a new FIAdditionalFIToFI

func (*FIAdditionalFIToFI) Format added in v0.9.0

func (fifi *FIAdditionalFIToFI) Format(options FormatOptions) string

Format returns a FIAdditionalFIToFI record formatted according to the FormatOptions

func (*FIAdditionalFIToFI) FormatLineFive added in v0.9.0

func (fifi *FIAdditionalFIToFI) FormatLineFive(options FormatOptions) string

FormatLineFive returns AdditionalFIToFI.LineFive formatted according to the FormatOptions

func (*FIAdditionalFIToFI) FormatLineFour added in v0.9.0

func (fifi *FIAdditionalFIToFI) FormatLineFour(options FormatOptions) string

FormatLineFour returns AdditionalFIToFI.LineFour formatted according to the FormatOptions

func (*FIAdditionalFIToFI) FormatLineOne added in v0.9.0

func (fifi *FIAdditionalFIToFI) FormatLineOne(options FormatOptions) string

FormatLineOne returns AdditionalFIToFI.LineOne formatted according to the FormatOptions

func (*FIAdditionalFIToFI) FormatLineSix added in v0.9.0

func (fifi *FIAdditionalFIToFI) FormatLineSix(options FormatOptions) string

FormatLineSix returns AdditionalFIToFI.LineSix formatted according to the FormatOptions

func (*FIAdditionalFIToFI) FormatLineThree added in v0.9.0

func (fifi *FIAdditionalFIToFI) FormatLineThree(options FormatOptions) string

FormatLineThree returns AdditionalFIToFI.LineThree formatted according to the FormatOptions

func (*FIAdditionalFIToFI) FormatLineTwo added in v0.9.0

func (fifi *FIAdditionalFIToFI) FormatLineTwo(options FormatOptions) string

FormatLineTwo returns AdditionalFIToFI.LineTwo formatted according to the FormatOptions

func (*FIAdditionalFIToFI) LineFiveField

func (fifi *FIAdditionalFIToFI) LineFiveField() string

LineFiveField gets a string of the LineFive field

func (*FIAdditionalFIToFI) LineFourField

func (fifi *FIAdditionalFIToFI) LineFourField() string

LineFourField gets a string of the LineFour field

func (*FIAdditionalFIToFI) LineOneField

func (fifi *FIAdditionalFIToFI) LineOneField() string

LineOneField gets a string of the LineOne field

func (*FIAdditionalFIToFI) LineSixField

func (fifi *FIAdditionalFIToFI) LineSixField() string

LineSixField gets a string of the LineSix field

func (*FIAdditionalFIToFI) LineThreeField

func (fifi *FIAdditionalFIToFI) LineThreeField() string

LineThreeField gets a string of the LineThree field

func (*FIAdditionalFIToFI) LineTwoField

func (fifi *FIAdditionalFIToFI) LineTwoField() string

LineTwoField gets a string of the LineTwo field

func (*FIAdditionalFIToFI) Parse

func (fifi *FIAdditionalFIToFI) Parse(record string) error

Parse takes the input string and parses the FIAdditionalFIToFI values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*FIAdditionalFIToFI) String

func (fifi *FIAdditionalFIToFI) String() string

String returns a fixed-width FIAdditionalFIToFI record

func (*FIAdditionalFIToFI) UnmarshalJSON added in v0.6.2

func (fifi *FIAdditionalFIToFI) UnmarshalJSON(data []byte) error

func (*FIAdditionalFIToFI) Validate

func (fifi *FIAdditionalFIToFI) Validate() error

Validate performs WIRE format rule checks on FIAdditionalFIToFI and returns an error if not Validated The first error encountered is returned and stops that parsing.

type FIBeneficiary

type FIBeneficiary struct {

	// Financial Institution
	FIToFI FIToFI `json:"fiToFI,omitempty"`
	// contains filtered or unexported fields
}

FIBeneficiary is the financial institution beneficiary

func NewFIBeneficiary

func NewFIBeneficiary() *FIBeneficiary

NewFIBeneficiary returns a new FIBeneficiary

func (*FIBeneficiary) Format added in v0.9.0

func (fib *FIBeneficiary) Format(options FormatOptions) string

Format returns a FIBeneficiary record formatted according to the FormatOptions

func (*FIBeneficiary) FormatLineFive added in v0.9.0

func (fib *FIBeneficiary) FormatLineFive(options FormatOptions) string

FormatLineFive returns FIToFI.LineFive formatted according to the FormatOptions

func (*FIBeneficiary) FormatLineFour added in v0.9.0

func (fib *FIBeneficiary) FormatLineFour(options FormatOptions) string

FormatLineFour returns FIToFI.LineFour formatted according to the FormatOptions

func (*FIBeneficiary) FormatLineOne added in v0.9.0

func (fib *FIBeneficiary) FormatLineOne(options FormatOptions) string

FormatLineOne returns FIToFI.LineOne formatted according to the FormatOptions

func (*FIBeneficiary) FormatLineSix added in v0.9.0

func (fib *FIBeneficiary) FormatLineSix(options FormatOptions) string

FormatLineSix returns FIToFI.LineSix formatted according to the FormatOptions

func (*FIBeneficiary) FormatLineThree added in v0.9.0

func (fib *FIBeneficiary) FormatLineThree(options FormatOptions) string

FormatLineThree returns FIToFI.LineThree formatted according to the FormatOptions

func (*FIBeneficiary) FormatLineTwo added in v0.9.0

func (fib *FIBeneficiary) FormatLineTwo(options FormatOptions) string

FormatLineTwo returns FIToFI.LineTwo formatted according to the FormatOptions

func (*FIBeneficiary) LineFiveField

func (fib *FIBeneficiary) LineFiveField() string

LineFiveField gets a string of the LineFive field

func (*FIBeneficiary) LineFourField

func (fib *FIBeneficiary) LineFourField() string

LineFourField gets a string of the LineFour field

func (*FIBeneficiary) LineOneField

func (fib *FIBeneficiary) LineOneField() string

LineOneField gets a string of the LineOne field

func (*FIBeneficiary) LineSixField

func (fib *FIBeneficiary) LineSixField() string

LineSixField gets a string of the LineSix field

func (*FIBeneficiary) LineThreeField

func (fib *FIBeneficiary) LineThreeField() string

LineThreeField gets a string of the LineThree field

func (*FIBeneficiary) LineTwoField

func (fib *FIBeneficiary) LineTwoField() string

LineTwoField gets a string of the LineTwo field

func (*FIBeneficiary) Parse

func (fib *FIBeneficiary) Parse(record string) error

Parse takes the input string and parses the FIBeneficiary values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*FIBeneficiary) String

func (fib *FIBeneficiary) String() string

String returns a fixed-width FIBeneficiary record

func (*FIBeneficiary) UnmarshalJSON added in v0.6.2

func (fib *FIBeneficiary) UnmarshalJSON(data []byte) error

func (*FIBeneficiary) Validate

func (fib *FIBeneficiary) Validate() error

Validate performs WIRE format rule checks on FIBeneficiary and returns an error if not Validated The first error encountered is returned and stops that parsing.

type FIBeneficiaryAdvice

type FIBeneficiaryAdvice struct {

	// Advice
	Advice Advice `json:"advice,omitempty"`
	// contains filtered or unexported fields
}

FIBeneficiaryAdvice is the financial institution beneficiary advice

func NewFIBeneficiaryAdvice

func NewFIBeneficiaryAdvice() *FIBeneficiaryAdvice

NewFIBeneficiaryAdvice returns a new FIBeneficiaryAdvice

func (*FIBeneficiaryAdvice) AdviceCodeField

func (fiba *FIBeneficiaryAdvice) AdviceCodeField() string

AdviceCodeField gets a string of the AdviceCode field

func (*FIBeneficiaryAdvice) Format added in v0.9.0

func (fiba *FIBeneficiaryAdvice) Format(options FormatOptions) string

Format returns a FIBeneficiaryAdvice record formatted according to the FormatOptions

func (*FIBeneficiaryAdvice) FormatLineFive added in v0.9.0

func (fiba *FIBeneficiaryAdvice) FormatLineFive(options FormatOptions) string

FormatLineFive returns Advice.LineFive formatted according to the FormatOptions

func (*FIBeneficiaryAdvice) FormatLineFour added in v0.9.0

func (fiba *FIBeneficiaryAdvice) FormatLineFour(options FormatOptions) string

FormatLineFour returns Advice.LineFour formatted according to the FormatOptions

func (*FIBeneficiaryAdvice) FormatLineOne added in v0.9.0

func (fiba *FIBeneficiaryAdvice) FormatLineOne(options FormatOptions) string

FormatLineOne returns Advice.LineOne formatted according to the FormatOptions

func (*FIBeneficiaryAdvice) FormatLineSix added in v0.9.0

func (fiba *FIBeneficiaryAdvice) FormatLineSix(options FormatOptions) string

FormatLineSix returns Advice.LineSix formatted according to the FormatOptions

func (*FIBeneficiaryAdvice) FormatLineThree added in v0.9.0

func (fiba *FIBeneficiaryAdvice) FormatLineThree(options FormatOptions) string

FormatLineThree returns Advice.LineThree formatted according to the FormatOptions

func (*FIBeneficiaryAdvice) FormatLineTwo added in v0.9.0

func (fiba *FIBeneficiaryAdvice) FormatLineTwo(options FormatOptions) string

FormatLineTwo returns Advice.LineTwo formatted according to the FormatOptions

func (*FIBeneficiaryAdvice) LineFiveField

func (fiba *FIBeneficiaryAdvice) LineFiveField() string

LineFiveField gets a string of the LineFive field

func (*FIBeneficiaryAdvice) LineFourField

func (fiba *FIBeneficiaryAdvice) LineFourField() string

LineFourField gets a string of the LineFour field

func (*FIBeneficiaryAdvice) LineOneField

func (fiba *FIBeneficiaryAdvice) LineOneField() string

LineOneField gets a string of the LineOne field

func (*FIBeneficiaryAdvice) LineSixField

func (fiba *FIBeneficiaryAdvice) LineSixField() string

LineSixField gets a string of the LineSix field

func (*FIBeneficiaryAdvice) LineThreeField

func (fiba *FIBeneficiaryAdvice) LineThreeField() string

LineThreeField gets a string of the LineThree field

func (*FIBeneficiaryAdvice) LineTwoField

func (fiba *FIBeneficiaryAdvice) LineTwoField() string

LineTwoField gets a string of the LineTwo field

func (*FIBeneficiaryAdvice) Parse

func (fiba *FIBeneficiaryAdvice) Parse(record string) error

Parse takes the input string and parses the FIBeneficiaryAdvice values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*FIBeneficiaryAdvice) String

func (fiba *FIBeneficiaryAdvice) String() string

String returns a fixed-width FIBeneficiaryAdvice record

func (*FIBeneficiaryAdvice) UnmarshalJSON added in v0.6.2

func (fiba *FIBeneficiaryAdvice) UnmarshalJSON(data []byte) error

func (*FIBeneficiaryAdvice) Validate

func (fiba *FIBeneficiaryAdvice) Validate() error

Validate performs WIRE format rule checks on FIBeneficiaryAdvice and returns an error if not Validated The first error encountered is returned and stops that parsing.

type FIBeneficiaryFI

type FIBeneficiaryFI struct {

	// Financial Institution
	FIToFI FIToFI `json:"fiToFI,omitempty"`
	// contains filtered or unexported fields
}

FIBeneficiaryFI is the financial institution beneficiary financial institution

func NewFIBeneficiaryFI

func NewFIBeneficiaryFI() *FIBeneficiaryFI

NewFIBeneficiaryFI returns a new FIBeneficiaryFI

func (*FIBeneficiaryFI) Format added in v0.9.0

func (fibfi *FIBeneficiaryFI) Format(options FormatOptions) string

Format returns a FIBeneficiaryFI record formatted according to the FormatOptions

func (*FIBeneficiaryFI) FormatLineFive added in v0.9.0

func (fibfi *FIBeneficiaryFI) FormatLineFive(options FormatOptions) string

FormatLineFive returns FIToFI.LineFive formatted according to the FormatOptions

func (*FIBeneficiaryFI) FormatLineFour added in v0.9.0

func (fibfi *FIBeneficiaryFI) FormatLineFour(options FormatOptions) string

FormatLineFour returns FIToFI.LineFour formatted according to the FormatOptions

func (*FIBeneficiaryFI) FormatLineOne added in v0.9.0

func (fibfi *FIBeneficiaryFI) FormatLineOne(options FormatOptions) string

FormatLineOne returns FIToFI.LineOne formatted according to the FormatOptions

func (*FIBeneficiaryFI) FormatLineSix added in v0.9.0

func (fibfi *FIBeneficiaryFI) FormatLineSix(options FormatOptions) string

FormatLineSix returns FIToFI.LineSix formatted according to the FormatOptions

func (*FIBeneficiaryFI) FormatLineThree added in v0.9.0

func (fibfi *FIBeneficiaryFI) FormatLineThree(options FormatOptions) string

FormatLineThree FIToFI.LineThree LineOne formatted according to the FormatOptions

func (*FIBeneficiaryFI) FormatLineTwo added in v0.9.0

func (fibfi *FIBeneficiaryFI) FormatLineTwo(options FormatOptions) string

FormatLineTwo returns FIToFI.LineTwo formatted according to the FormatOptions

func (*FIBeneficiaryFI) LineFiveField

func (fibfi *FIBeneficiaryFI) LineFiveField() string

LineFiveField gets a string of the LineFive field

func (*FIBeneficiaryFI) LineFourField

func (fibfi *FIBeneficiaryFI) LineFourField() string

LineFourField gets a string of the LineFour field

func (*FIBeneficiaryFI) LineOneField

func (fibfi *FIBeneficiaryFI) LineOneField() string

LineOneField gets a string of the LineOne field

func (*FIBeneficiaryFI) LineSixField

func (fibfi *FIBeneficiaryFI) LineSixField() string

LineSixField gets a string of the LineSix field

func (*FIBeneficiaryFI) LineThreeField

func (fibfi *FIBeneficiaryFI) LineThreeField() string

LineThreeField gets a string of the LineThree field

func (*FIBeneficiaryFI) LineTwoField

func (fibfi *FIBeneficiaryFI) LineTwoField() string

LineTwoField gets a string of the LineTwo field

func (*FIBeneficiaryFI) Parse

func (fibfi *FIBeneficiaryFI) Parse(record string) error

Parse takes the input string and parses the FIBeneficiaryFI values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*FIBeneficiaryFI) String

func (fibfi *FIBeneficiaryFI) String() string

String returns a fixed-width FIBeneficiaryFI record

func (*FIBeneficiaryFI) UnmarshalJSON added in v0.6.2

func (fibfi *FIBeneficiaryFI) UnmarshalJSON(data []byte) error

func (*FIBeneficiaryFI) Validate

func (fibfi *FIBeneficiaryFI) Validate() error

Validate performs WIRE format rule checks on FIBeneficiaryFI and returns an error if not Validated The first error encountered is returned and stops that parsing.

type FIBeneficiaryFIAdvice

type FIBeneficiaryFIAdvice struct {

	// Advice
	Advice Advice `json:"advice,omitempty"`
	// contains filtered or unexported fields
}

FIBeneficiaryFIAdvice is the financial institution beneficiary financial institution

func NewFIBeneficiaryFIAdvice

func NewFIBeneficiaryFIAdvice() *FIBeneficiaryFIAdvice

NewFIBeneficiaryFIAdvice returns a new FIBeneficiaryFIAdvice

func (*FIBeneficiaryFIAdvice) AdviceCodeField

func (fibfia *FIBeneficiaryFIAdvice) AdviceCodeField() string

AdviceCodeField gets a string of the AdviceCode field

func (*FIBeneficiaryFIAdvice) Format added in v0.9.0

func (fibfia *FIBeneficiaryFIAdvice) Format(options FormatOptions) string

Format returns a FIBeneficiaryFIAdvice record formatted according to the FormatOptions

func (*FIBeneficiaryFIAdvice) FormatLineFive added in v0.9.0

func (fibfia *FIBeneficiaryFIAdvice) FormatLineFive(options FormatOptions) string

FormatLineFive returns Advice.LineFive formatted according to the FormatOptions

func (*FIBeneficiaryFIAdvice) FormatLineFour added in v0.9.0

func (fibfia *FIBeneficiaryFIAdvice) FormatLineFour(options FormatOptions) string

FormatLineFour returns Advice.LineFour formatted according to the FormatOptions

func (*FIBeneficiaryFIAdvice) FormatLineOne added in v0.9.0

func (fibfia *FIBeneficiaryFIAdvice) FormatLineOne(options FormatOptions) string

FormatLineOne returns Advice.LineOne formatted according to the FormatOptions

func (*FIBeneficiaryFIAdvice) FormatLineSix added in v0.9.0

func (fibfia *FIBeneficiaryFIAdvice) FormatLineSix(options FormatOptions) string

FormatLineSix returns Advice.LineSix formatted according to the FormatOptions

func (*FIBeneficiaryFIAdvice) FormatLineThree added in v0.9.0

func (fibfia *FIBeneficiaryFIAdvice) FormatLineThree(options FormatOptions) string

FormatLineThree returns Advice.LineThree formatted according to the FormatOptions

func (*FIBeneficiaryFIAdvice) FormatLineTwo added in v0.9.0

func (fibfia *FIBeneficiaryFIAdvice) FormatLineTwo(options FormatOptions) string

FormatLineTwo returns Advice.LineTwo formatted according to the FormatOptions

func (*FIBeneficiaryFIAdvice) LineFiveField

func (fibfia *FIBeneficiaryFIAdvice) LineFiveField() string

LineFiveField gets a string of the LineFive field

func (*FIBeneficiaryFIAdvice) LineFourField

func (fibfia *FIBeneficiaryFIAdvice) LineFourField() string

LineFourField gets a string of the LineFour field

func (*FIBeneficiaryFIAdvice) LineOneField

func (fibfia *FIBeneficiaryFIAdvice) LineOneField() string

LineOneField gets a string of the LineOne field

func (*FIBeneficiaryFIAdvice) LineSixField

func (fibfia *FIBeneficiaryFIAdvice) LineSixField() string

LineSixField gets a string of the LineSix field

func (*FIBeneficiaryFIAdvice) LineThreeField

func (fibfia *FIBeneficiaryFIAdvice) LineThreeField() string

LineThreeField gets a string of the LineThree field

func (*FIBeneficiaryFIAdvice) LineTwoField

func (fibfia *FIBeneficiaryFIAdvice) LineTwoField() string

LineTwoField gets a string of the LineTwo field

func (*FIBeneficiaryFIAdvice) Parse

func (fibfia *FIBeneficiaryFIAdvice) Parse(record string) error

Parse takes the input string and parses the FIBeneficiaryFIAdvice values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*FIBeneficiaryFIAdvice) String

func (fibfia *FIBeneficiaryFIAdvice) String() string

String returns a fixed-width FIBeneficiaryFIAdvice record

func (*FIBeneficiaryFIAdvice) UnmarshalJSON added in v0.6.2

func (fibfia *FIBeneficiaryFIAdvice) UnmarshalJSON(data []byte) error

func (*FIBeneficiaryFIAdvice) Validate

func (fibfia *FIBeneficiaryFIAdvice) Validate() error

Validate performs WIRE format rule checks on FIBeneficiaryFIAdvice and returns an error if not Validated The first error encountered is returned and stops that parsing.

type FIDrawdownDebitAccountAdvice

type FIDrawdownDebitAccountAdvice struct {

	// Advice
	Advice Advice `json:"advice,omitempty"`
	// contains filtered or unexported fields
}

FIDrawdownDebitAccountAdvice is the financial institution drawdown debit account advice

func NewFIDrawdownDebitAccountAdvice

func NewFIDrawdownDebitAccountAdvice() *FIDrawdownDebitAccountAdvice

NewFIDrawdownDebitAccountAdvice returns a new FIDrawdownDebitAccountAdvice

func (*FIDrawdownDebitAccountAdvice) AdviceCodeField

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) AdviceCodeField() string

AdviceCodeField gets a string of the AdviceCode field

func (*FIDrawdownDebitAccountAdvice) Format added in v0.9.0

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) Format(options FormatOptions) string

Format returns a FIDrawdownDebitAccountAdvice record formatted according to the FormatOptions

func (*FIDrawdownDebitAccountAdvice) FormatLineFive added in v0.9.0

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) FormatLineFive(options FormatOptions) string

FormatLineFive returns Advice.LineFive formatted according to the FormatOptions

func (*FIDrawdownDebitAccountAdvice) FormatLineFour added in v0.9.0

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) FormatLineFour(options FormatOptions) string

FormatLineFour returns Advice.LineFour formatted according to the FormatOptions

func (*FIDrawdownDebitAccountAdvice) FormatLineOne added in v0.9.0

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) FormatLineOne(options FormatOptions) string

FormatLineOne returns Advice.LineOne formatted according to the FormatOptions

func (*FIDrawdownDebitAccountAdvice) FormatLineSix added in v0.9.0

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) FormatLineSix(options FormatOptions) string

FormatLineSix returns Advice.LineSix formatted according to the FormatOptions

func (*FIDrawdownDebitAccountAdvice) FormatLineThree added in v0.9.0

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) FormatLineThree(options FormatOptions) string

FormatLineThree returns Advice.LineThree formatted according to the FormatOptions

func (*FIDrawdownDebitAccountAdvice) FormatLineTwo added in v0.9.0

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) FormatLineTwo(options FormatOptions) string

FormatLineTwo returns Advice.LineTwo formatted according to the FormatOptions

func (*FIDrawdownDebitAccountAdvice) LineFiveField

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) LineFiveField() string

LineFiveField gets a string of the LineFive field

func (*FIDrawdownDebitAccountAdvice) LineFourField

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) LineFourField() string

LineFourField gets a string of the LineFour field

func (*FIDrawdownDebitAccountAdvice) LineOneField

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) LineOneField() string

LineOneField gets a string of the LineOne field

func (*FIDrawdownDebitAccountAdvice) LineSixField

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) LineSixField() string

LineSixField gets a string of the LineSix field

func (*FIDrawdownDebitAccountAdvice) LineThreeField

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) LineThreeField() string

LineThreeField gets a string of the LineThree field

func (*FIDrawdownDebitAccountAdvice) LineTwoField

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) LineTwoField() string

LineTwoField gets a string of the LineTwo field

func (*FIDrawdownDebitAccountAdvice) Parse

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) Parse(record string) error

Parse takes the input string and parses the FIDrawdownDebitAccountAdvice values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*FIDrawdownDebitAccountAdvice) String

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) String() string

String returns a fixed-width FIDrawdownDebitAccountAdvice record

func (*FIDrawdownDebitAccountAdvice) UnmarshalJSON added in v0.6.2

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) UnmarshalJSON(data []byte) error

func (*FIDrawdownDebitAccountAdvice) Validate

func (debitDDAdvice *FIDrawdownDebitAccountAdvice) Validate() error

Validate performs WIRE format rule checks on FIDrawdownDebitAccountAdvice and returns an error if not Validated The first error encountered is returned and stops that parsing.

type FIIntermediaryFI

type FIIntermediaryFI struct {

	// Financial Institution
	FIToFI FIToFI `json:"fiToFI,omitempty"`
	// contains filtered or unexported fields
}

FIIntermediaryFI is the financial institution intermediary financial institution

func NewFIIntermediaryFI

func NewFIIntermediaryFI() *FIIntermediaryFI

NewFIIntermediaryFI returns a new FIIntermediaryFI

func (*FIIntermediaryFI) Format added in v0.9.0

func (fiifi *FIIntermediaryFI) Format(options FormatOptions) string

Format returns a FIIntermediaryFI record formatted according to the FormatOptions

func (*FIIntermediaryFI) FormatLineFive added in v0.9.0

func (fiifi *FIIntermediaryFI) FormatLineFive(options FormatOptions) string

FormatLineFive returns FIToFI.LineFive formatted according to the FormatOptions

func (*FIIntermediaryFI) FormatLineFour added in v0.9.0

func (fiifi *FIIntermediaryFI) FormatLineFour(options FormatOptions) string

FormatLineFour returns FIToFI.LineFour formatted according to the FormatOptions

func (*FIIntermediaryFI) FormatLineOne added in v0.9.0

func (fiifi *FIIntermediaryFI) FormatLineOne(options FormatOptions) string

FormatLineOne returns FIToFI.LineOne formatted according to the FormatOptions

func (*FIIntermediaryFI) FormatLineSix added in v0.9.0

func (fiifi *FIIntermediaryFI) FormatLineSix(options FormatOptions) string

FormatLineSix returns FIToFI.LineSix formatted according to the FormatOptions

func (*FIIntermediaryFI) FormatLineThree added in v0.9.0

func (fiifi *FIIntermediaryFI) FormatLineThree(options FormatOptions) string

FormatLineThree returns FIToFI.LineThree formatted according to the FormatOptions

func (*FIIntermediaryFI) FormatLineTwo added in v0.9.0

func (fiifi *FIIntermediaryFI) FormatLineTwo(options FormatOptions) string

FormatLineTwo returns FIToFI.LineTwo formatted according to the FormatOptions

func (*FIIntermediaryFI) LineFiveField

func (fiifi *FIIntermediaryFI) LineFiveField() string

LineFiveField gets a string of the LineFive field

func (*FIIntermediaryFI) LineFourField

func (fiifi *FIIntermediaryFI) LineFourField() string

LineFourField gets a string of the LineFour field

func (*FIIntermediaryFI) LineOneField

func (fiifi *FIIntermediaryFI) LineOneField() string

LineOneField gets a string of the LineOne field

func (*FIIntermediaryFI) LineSixField

func (fiifi *FIIntermediaryFI) LineSixField() string

LineSixField gets a string of the LineSix field

func (*FIIntermediaryFI) LineThreeField

func (fiifi *FIIntermediaryFI) LineThreeField() string

LineThreeField gets a string of the LineThree field

func (*FIIntermediaryFI) LineTwoField

func (fiifi *FIIntermediaryFI) LineTwoField() string

LineTwoField gets a string of the LineTwo field

func (*FIIntermediaryFI) Parse

func (fiifi *FIIntermediaryFI) Parse(record string) error

Parse takes the input string and parses the FIIntermediaryFI values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*FIIntermediaryFI) String

func (fiifi *FIIntermediaryFI) String() string

String returns a fixed-width FIIntermediaryFI record

func (*FIIntermediaryFI) UnmarshalJSON added in v0.6.2

func (fiifi *FIIntermediaryFI) UnmarshalJSON(data []byte) error

func (*FIIntermediaryFI) Validate

func (fiifi *FIIntermediaryFI) Validate() error

Validate performs WIRE format rule checks on FIIntermediaryFI and returns an error if not Validated The first error encountered is returned and stops that parsing.

type FIIntermediaryFIAdvice

type FIIntermediaryFIAdvice struct {

	// Advice
	Advice Advice `json:"advice,omitempty"`
	// contains filtered or unexported fields
}

FIIntermediaryFIAdvice is the financial institution intermediary financial institution

func NewFIIntermediaryFIAdvice

func NewFIIntermediaryFIAdvice() *FIIntermediaryFIAdvice

NewFIIntermediaryFIAdvice returns a new FIIntermediaryFIAdvice

func (*FIIntermediaryFIAdvice) AdviceCodeField

func (fiifia *FIIntermediaryFIAdvice) AdviceCodeField() string

AdviceCodeField gets a string of the AdviceCode field

func (*FIIntermediaryFIAdvice) Format added in v0.9.0

func (fiifia *FIIntermediaryFIAdvice) Format(options FormatOptions) string

Format returns a FIIntermediaryFIAdvice record formatted according to the FormatOptions

func (*FIIntermediaryFIAdvice) FormatLineFive added in v0.9.0

func (fiifia *FIIntermediaryFIAdvice) FormatLineFive(options FormatOptions) string

FormatLineFive returns Advice.LineFive formatted according to the FormatOptions

func (*FIIntermediaryFIAdvice) FormatLineFour added in v0.9.0

func (fiifia *FIIntermediaryFIAdvice) FormatLineFour(options FormatOptions) string

FormatLineFour returns Advice.LineFour formatted according to the FormatOptions

func (*FIIntermediaryFIAdvice) FormatLineOne added in v0.9.0

func (fiifia *FIIntermediaryFIAdvice) FormatLineOne(options FormatOptions) string

FormatLineOne returns Advice.LineOne formatted according to the FormatOptions

func (*FIIntermediaryFIAdvice) FormatLineSix added in v0.9.0

func (fiifia *FIIntermediaryFIAdvice) FormatLineSix(options FormatOptions) string

FormatLineSix returns Advice.LineSix formatted according to the FormatOptions

func (*FIIntermediaryFIAdvice) FormatLineThree added in v0.9.0

func (fiifia *FIIntermediaryFIAdvice) FormatLineThree(options FormatOptions) string

FormatLineThree returns Advice.LineThree formatted according to the FormatOptions

func (*FIIntermediaryFIAdvice) FormatLineTwo added in v0.9.0

func (fiifia *FIIntermediaryFIAdvice) FormatLineTwo(options FormatOptions) string

FormatLineTwo returns Advice.LineTwo formatted according to the FormatOptions

func (*FIIntermediaryFIAdvice) LineFiveField

func (fiifia *FIIntermediaryFIAdvice) LineFiveField() string

LineFiveField gets a string of the LineFive field

func (*FIIntermediaryFIAdvice) LineFourField

func (fiifia *FIIntermediaryFIAdvice) LineFourField() string

LineFourField gets a string of the LineFour field

func (*FIIntermediaryFIAdvice) LineOneField

func (fiifia *FIIntermediaryFIAdvice) LineOneField() string

LineOneField gets a string of the LineOne field

func (*FIIntermediaryFIAdvice) LineSixField

func (fiifia *FIIntermediaryFIAdvice) LineSixField() string

LineSixField gets a string of the LineSix field

func (*FIIntermediaryFIAdvice) LineThreeField

func (fiifia *FIIntermediaryFIAdvice) LineThreeField() string

LineThreeField gets a string of the LineThree field

func (*FIIntermediaryFIAdvice) LineTwoField

func (fiifia *FIIntermediaryFIAdvice) LineTwoField() string

LineTwoField gets a string of the LineTwo field

func (*FIIntermediaryFIAdvice) Parse

func (fiifia *FIIntermediaryFIAdvice) Parse(record string) error

Parse takes the input string and parses the FIIntermediaryFIAdvice values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*FIIntermediaryFIAdvice) String

func (fiifia *FIIntermediaryFIAdvice) String() string

String returns a fixed-width FIIntermediaryFIAdvice record

func (*FIIntermediaryFIAdvice) UnmarshalJSON added in v0.6.2

func (fiifia *FIIntermediaryFIAdvice) UnmarshalJSON(data []byte) error

func (*FIIntermediaryFIAdvice) Validate

func (fiifia *FIIntermediaryFIAdvice) Validate() error

Validate performs WIRE format rule checks on FIIntermediaryFIAdvice and returns an error if not Validated The first error encountered is returned and stops that parsing.

type FIPaymentMethodToBeneficiary

type FIPaymentMethodToBeneficiary struct {

	// PaymentMethod is payment method
	PaymentMethod string `json:"paymentMethod,omitempty"`
	// Additional is additional information
	AdditionalInformation string `json:"Additional,omitempty"`
	// contains filtered or unexported fields
}

FIPaymentMethodToBeneficiary is the financial institution payment method to beneficiary

func NewFIPaymentMethodToBeneficiary

func NewFIPaymentMethodToBeneficiary() *FIPaymentMethodToBeneficiary

NewFIPaymentMethodToBeneficiary returns a new FIPaymentMethodToBeneficiary

func (*FIPaymentMethodToBeneficiary) AdditionalInformationField

func (pm *FIPaymentMethodToBeneficiary) AdditionalInformationField() string

AdditionalInformationField gets a string of the AdditionalInformation field

func (*FIPaymentMethodToBeneficiary) Format added in v0.9.0

Format returns a FIPaymentMethodToBeneficiary record formatted according to the FormatOptions

func (*FIPaymentMethodToBeneficiary) FormatAdditionalInformation added in v0.9.0

func (pm *FIPaymentMethodToBeneficiary) FormatAdditionalInformation(options FormatOptions) string

FormatAdditionalInformation returns AdditionalInformation formatted according to the FormatOptions

func (*FIPaymentMethodToBeneficiary) Parse

func (pm *FIPaymentMethodToBeneficiary) Parse(record string) error

Parse takes the input string and parses the FIPaymentMethodToBeneficiary values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*FIPaymentMethodToBeneficiary) PaymentMethodField

func (pm *FIPaymentMethodToBeneficiary) PaymentMethodField() string

PaymentMethodField gets a string of the PaymentMethod field

func (*FIPaymentMethodToBeneficiary) String

func (pm *FIPaymentMethodToBeneficiary) String() string

String returns a fixed-width FIPaymentMethodToBeneficiary record

func (*FIPaymentMethodToBeneficiary) UnmarshalJSON added in v0.6.2

func (pm *FIPaymentMethodToBeneficiary) UnmarshalJSON(data []byte) error

func (*FIPaymentMethodToBeneficiary) Validate

func (pm *FIPaymentMethodToBeneficiary) Validate() error

Validate performs WIRE format rule checks on FIPaymentMethodToBeneficiary and returns an error if not Validated The first error encountered is returned and stops that parsing.

type FIReceiverFI

type FIReceiverFI struct {

	// FIToFI is financial institution to financial institution
	FIToFI FIToFI `json:"fiToFI,omitempty"`
	// contains filtered or unexported fields
}

FIReceiverFI is the financial institution receiver financial institution

func NewFIReceiverFI

func NewFIReceiverFI() *FIReceiverFI

NewFIReceiverFI returns a new FIReceiverFI

func (*FIReceiverFI) Format added in v0.9.0

func (firfi *FIReceiverFI) Format(options FormatOptions) string

Format returns a FIReceiverFI record formatted according to the FormatOptions

func (*FIReceiverFI) FormatLineFive added in v0.9.0

func (firfi *FIReceiverFI) FormatLineFive(options FormatOptions) string

FormatLineFive returns FIToFI.LineFive formatted according to the FormatOptions

func (*FIReceiverFI) FormatLineFour added in v0.9.0

func (firfi *FIReceiverFI) FormatLineFour(options FormatOptions) string

FormatLineFour returns FIToFI.LineFour formatted according to the FormatOptions

func (*FIReceiverFI) FormatLineOne added in v0.9.0

func (firfi *FIReceiverFI) FormatLineOne(options FormatOptions) string

FormatLineOne returns FIToFI.LineOne formatted according to the FormatOptions

func (*FIReceiverFI) FormatLineSix added in v0.9.0

func (firfi *FIReceiverFI) FormatLineSix(options FormatOptions) string

FormatLineSix returns FIToFI.LineSix formatted according to the FormatOptions

func (*FIReceiverFI) FormatLineThree added in v0.9.0

func (firfi *FIReceiverFI) FormatLineThree(options FormatOptions) string

FormatLineThree returns FIToFI.LineThree formatted according to the FormatOptions

func (*FIReceiverFI) FormatLineTwo added in v0.9.0

func (firfi *FIReceiverFI) FormatLineTwo(options FormatOptions) string

FormatLineTwo returns FIToFI.LineTwo formatted according to the FormatOptions

func (*FIReceiverFI) LineFiveField

func (firfi *FIReceiverFI) LineFiveField() string

LineFiveField gets a string of the LineFive field

func (*FIReceiverFI) LineFourField

func (firfi *FIReceiverFI) LineFourField() string

LineFourField gets a string of the LineFour field

func (*FIReceiverFI) LineOneField

func (firfi *FIReceiverFI) LineOneField() string

LineOneField gets a string of the LineOne field

func (*FIReceiverFI) LineSixField

func (firfi *FIReceiverFI) LineSixField() string

LineSixField gets a string of the LineSix field

func (*FIReceiverFI) LineThreeField

func (firfi *FIReceiverFI) LineThreeField() string

LineThreeField gets a string of the LineThree field

func (*FIReceiverFI) LineTwoField

func (firfi *FIReceiverFI) LineTwoField() string

LineTwoField gets a string of the LineTwo field

func (*FIReceiverFI) Parse

func (firfi *FIReceiverFI) Parse(record string) error

Parse takes the input string and parses the FIReceiverFI values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*FIReceiverFI) String

func (firfi *FIReceiverFI) String() string

String returns a fixed-width FIReceiverFI record

func (*FIReceiverFI) UnmarshalJSON added in v0.6.2

func (firfi *FIReceiverFI) UnmarshalJSON(data []byte) error

func (*FIReceiverFI) Validate

func (firfi *FIReceiverFI) Validate() error

Validate performs WIRE format rule checks on FIReceiverFI and returns an error if not Validated The first error encountered is returned and stops that parsing.

type FIToFI

type FIToFI struct {
	// LineOne
	LineOne string `json:"lineOne,omitempty"`
	// LineTwo
	LineTwo string `json:"lineTwo,omitempty"`
	// LineThree
	LineThree string `json:"lineThree,omitempty"`
	// LineFour
	LineFour string `json:"lineFour,omitempty"`
	// LineFive
	LineFive string `json:"lineFive,omitempty"`
	// LineSix
	LineSix string `json:"lineSix,omitempty"`
}

FIToFI is financial institution to financial institution

type FieldError

type FieldError struct {
	FieldName string      // field name where error happened
	Value     interface{} // value that cause error
	Err       error       // context of the error.
	Msg       string      // deprecated
}

FieldError is returned for errors at a field level in a tag

func (*FieldError) Error

func (e *FieldError) Error() string

Error message is constructed

func (*FieldError) Unwrap

func (e *FieldError) Unwrap() error

Unwrap implements the base.UnwrappableError interface for FieldError

type FieldWrongLengthErr

type FieldWrongLengthErr struct {
	Message     string
	FieldLength int
	Length      int
}

FieldWrongLengthErr is the error given when a Field is the wrong length

func NewFieldWrongLengthErr

func NewFieldWrongLengthErr(FieldLength, length int) FieldWrongLengthErr

NewFieldWrongLengthErr creates a new error of the FieldWrongLengthErr type

func (FieldWrongLengthErr) Error

func (e FieldWrongLengthErr) Error() string

type File

type File struct {
	ID             string         `json:"id"`
	FEDWireMessage FEDWireMessage `json:"fedWireMessage"`
}

File contains the structures of a parsed WIRE File.

func FileFromJSON added in v0.2.0

func FileFromJSON(bs []byte) (*File, error)

FileFromJSON attempts to return a *File object assuming the input is valid JSON.

Callers should always check for a nil-error before using the returned file.

The File returned may not be valid and callers should confirm with Validate(). Invalid files may be rejected by other Financial Institutions or ACH tools.

func NewFile

func NewFile(opts ...FilePropertyFunc) *File

NewFile constructs a file template

func (*File) AddFEDWireMessage

func (f *File) AddFEDWireMessage(fwm FEDWireMessage) FEDWireMessage

AddFEDWireMessage appends a FEDWireMessage to the File

func (*File) Create

func (f *File) Create() error

Create will tabulate and assemble an WIRE file into a valid state.

Create implementations are free to modify computable fields in a file and should call the Validate() function at the end of their execution.

func (*File) GetValidation added in v0.13.0

func (f *File) GetValidation() *ValidateOpts

GetValidation returns validation rules of FEDWireMessage

func (*File) SetValidation added in v0.13.0

func (f *File) SetValidation(opts *ValidateOpts)

SetValidation stores ValidateOpts on the FEDWireMessage's validation rules

func (*File) Validate

func (f *File) Validate() error

Validate will never modify the file.

type FilePropertyFunc added in v0.11.0

type FilePropertyFunc func(*File)

func IncomingFile added in v0.11.0

func IncomingFile() FilePropertyFunc

IncomingFile configures the FedWireMessage ValidationOpts for an incoming file

func OutgoingFile added in v0.11.0

func OutgoingFile() FilePropertyFunc

OutgoingFile configures the FedWireMessage ValidationOpts for an outgoing file

type FinancialInstitution

type FinancialInstitution struct {
	// IdentificationCode:  * `B` - SWIFT Bank Identifier Code (BIC) * `C` - CHIPS Participant * `D` - Demand Deposit Account (DDA) Number * `F` - Fed Routing Number * `T` - SWIFT BIC or Bank Entity Identifier (BEI) and Account Number * `U` - CHIPS Identifier
	IdentificationCode string `json:"identificationCode"`
	// Identifier
	Identifier string `json:"identifier"`
	// Name
	Name string `json:"name"`
	// Address
	Address Address `json:"address"`
	// contains filtered or unexported fields
}

FinancialInstitution is demographic information for a financial institution

func (FinancialInstitution) Validate added in v0.15.2

func (fi FinancialInstitution) Validate() error

type FormatOptions added in v0.9.0

type FormatOptions struct {
	VariableLengthFields bool   // set to true to use variable length fields instead of fixed-width
	NewlineCharacter     string // determines line endings - "\n" by default
}

FormatOptions specify options for writing wire records to strings

type GrossAmountRemittanceDocument

type GrossAmountRemittanceDocument struct {

	// RemittanceAmount is remittance amounts
	RemittanceAmount RemittanceAmount `json:"remittanceAmount,omitempty"`
	// contains filtered or unexported fields
}

GrossAmountRemittanceDocument is the gross amount remittance document

func NewGrossAmountRemittanceDocument

func NewGrossAmountRemittanceDocument() *GrossAmountRemittanceDocument

NewGrossAmountRemittanceDocument returns a new GrossAmountRemittanceDocument

func (*GrossAmountRemittanceDocument) AmountField

func (gard *GrossAmountRemittanceDocument) AmountField() string

AmountField gets a string of the Amount field

func (*GrossAmountRemittanceDocument) CurrencyCodeField

func (gard *GrossAmountRemittanceDocument) CurrencyCodeField() string

CurrencyCodeField gets a string of the CurrencyCode field

func (*GrossAmountRemittanceDocument) Format added in v0.9.0

func (gard *GrossAmountRemittanceDocument) Format(options FormatOptions) string

Format returns a GrossAmountRemittanceDocument record formatted according to the FormatOptions

func (*GrossAmountRemittanceDocument) FormatAmount added in v0.9.0

func (gard *GrossAmountRemittanceDocument) FormatAmount(options FormatOptions) string

FormatAmount returns RemittanceAmount.Amount formatted according to the FormatOptions

func (*GrossAmountRemittanceDocument) FormatCurrencyCode added in v0.9.0

func (gard *GrossAmountRemittanceDocument) FormatCurrencyCode(options FormatOptions) string

FormatCurrencyCode returns RemittanceAmount.CurrencyCode formatted according to the FormatOptions

func (*GrossAmountRemittanceDocument) Parse

func (gard *GrossAmountRemittanceDocument) Parse(record string) error

Parse takes the input string and parses the GrossAmountRemittanceDocument values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*GrossAmountRemittanceDocument) String

func (gard *GrossAmountRemittanceDocument) String() string

String returns a fixed-width GrossAmountRemittanceDocument record

func (*GrossAmountRemittanceDocument) UnmarshalJSON added in v0.6.2

func (gard *GrossAmountRemittanceDocument) UnmarshalJSON(data []byte) error

func (*GrossAmountRemittanceDocument) Validate

func (gard *GrossAmountRemittanceDocument) Validate() error

Validate performs WIRE format rule checks on GrossAmountRemittanceDocument and returns an error if not Validated The first error encountered is returned and stops that parsing.

type InputMessageAccountabilityData

type InputMessageAccountabilityData struct {

	// InputCycleDate CCYYMMDD
	InputCycleDate string `json:"inputCycleDate"`
	// InputSource
	InputSource string `json:"inputSource"`
	// InputSequenceNumber
	InputSequenceNumber string `json:"inputSequenceNumber"`
	// contains filtered or unexported fields
}

InputMessageAccountabilityData (IMAD) {1520}

func NewInputMessageAccountabilityData

func NewInputMessageAccountabilityData() *InputMessageAccountabilityData

NewInputMessageAccountabilityData returns a new InputMessageAccountabilityData

func (*InputMessageAccountabilityData) InputCycleDateField

func (imad *InputMessageAccountabilityData) InputCycleDateField() string

InputCycleDateField gets a string of the InputCycleDate field

func (*InputMessageAccountabilityData) InputSequenceNumberField

func (imad *InputMessageAccountabilityData) InputSequenceNumberField() string

InputSequenceNumberField gets a string of the InputSequenceNumber field

func (*InputMessageAccountabilityData) InputSourceField

func (imad *InputMessageAccountabilityData) InputSourceField() string

InputSourceField gets a string of the InputSource field

func (*InputMessageAccountabilityData) Parse

func (imad *InputMessageAccountabilityData) Parse(record string) error

Parse takes the input string and parses the InputMessageAccountabilityData values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*InputMessageAccountabilityData) String

func (imad *InputMessageAccountabilityData) String() string

String writes InputMessageAccountabilityData

func (*InputMessageAccountabilityData) UnmarshalJSON added in v0.6.2

func (imad *InputMessageAccountabilityData) UnmarshalJSON(data []byte) error

func (*InputMessageAccountabilityData) Validate

func (imad *InputMessageAccountabilityData) Validate() error

Validate performs WIRE format rule checks on InputMessageAccountabilityData and returns an error if not Validated The first error encountered is returned and stops that parsing.

type InstitutionAccount

type InstitutionAccount struct {

	// CoverPayment is CoverPayment
	CoverPayment CoverPayment `json:"coverPayment,omitempty"`
	// contains filtered or unexported fields
}

InstitutionAccount is the institution account

func NewInstitutionAccount

func NewInstitutionAccount() *InstitutionAccount

NewInstitutionAccount returns a new InstitutionAccount

func (*InstitutionAccount) Format added in v0.9.0

func (iAccount *InstitutionAccount) Format(options FormatOptions) string

Format returns a InstitutionAccount record formatted according to the FormatOptions

func (*InstitutionAccount) FormatSwiftFieldTag added in v0.9.0

func (iAccount *InstitutionAccount) FormatSwiftFieldTag(options FormatOptions) string

FormatSwiftFieldTag returns CoverPayment.SwiftFieldTag formatted according to the FormatOptions

func (*InstitutionAccount) FormatSwiftLineFive added in v0.9.0

func (iAccount *InstitutionAccount) FormatSwiftLineFive(options FormatOptions) string

FormatSwiftLineFive returns CoverPayment.SwiftLineFive formatted according to the FormatOptions

func (*InstitutionAccount) FormatSwiftLineFour added in v0.9.0

func (iAccount *InstitutionAccount) FormatSwiftLineFour(options FormatOptions) string

FormatSwiftLineFour returns CoverPayment.SwiftLineFour formatted according to the FormatOptions

func (*InstitutionAccount) FormatSwiftLineOne added in v0.9.0

func (iAccount *InstitutionAccount) FormatSwiftLineOne(options FormatOptions) string

FormatSwiftLineOne returns CoverPayment.SwiftLineOne formatted according to the FormatOptions

func (*InstitutionAccount) FormatSwiftLineThree added in v0.9.0

func (iAccount *InstitutionAccount) FormatSwiftLineThree(options FormatOptions) string

FormatSwiftLineThree returns CoverPayment.SwiftLineThree formatted according to the FormatOptions

func (*InstitutionAccount) FormatSwiftLineTwo added in v0.9.0

func (iAccount *InstitutionAccount) FormatSwiftLineTwo(options FormatOptions) string

FormatSwiftLineTwo returns CoverPayment.SwiftLineTwo formatted according to the FormatOptions

func (*InstitutionAccount) Parse

func (iAccount *InstitutionAccount) Parse(record string) error

Parse takes the input string and parses the InstitutionAccount values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*InstitutionAccount) String

func (iAccount *InstitutionAccount) String() string

String returns a fixed-width InstitutionAccount record

func (*InstitutionAccount) SwiftFieldTagField

func (iAccount *InstitutionAccount) SwiftFieldTagField() string

SwiftFieldTagField gets a string of the SwiftFieldTag field

func (*InstitutionAccount) SwiftLineFiveField

func (iAccount *InstitutionAccount) SwiftLineFiveField() string

SwiftLineFiveField gets a string of the SwiftLineFive field

func (*InstitutionAccount) SwiftLineFourField

func (iAccount *InstitutionAccount) SwiftLineFourField() string

SwiftLineFourField gets a string of the SwiftLineFour field

func (*InstitutionAccount) SwiftLineOneField

func (iAccount *InstitutionAccount) SwiftLineOneField() string

SwiftLineOneField gets a string of the SwiftLineOne field

func (*InstitutionAccount) SwiftLineThreeField

func (iAccount *InstitutionAccount) SwiftLineThreeField() string

SwiftLineThreeField gets a string of the SwiftLineThree field

func (*InstitutionAccount) SwiftLineTwoField

func (iAccount *InstitutionAccount) SwiftLineTwoField() string

SwiftLineTwoField gets a string of the SwiftLineTwo field

func (*InstitutionAccount) UnmarshalJSON added in v0.6.2

func (iAccount *InstitutionAccount) UnmarshalJSON(data []byte) error

func (*InstitutionAccount) Validate

func (iAccount *InstitutionAccount) Validate() error

Validate performs WIRE format rule checks on InstitutionAccount and returns an error if not Validated The first error encountered is returned and stops that parsing.

type InstructedAmount

type InstructedAmount struct {

	// CurrencyCode
	CurrencyCode string `json:"currencyCode,omitempty"`
	// Amount  Must begin with at least one numeric character (0-9) and contain only one decimal comma marker
	// (e.g., $1,234.56 should be entered as 1234,56 and $0.99 should be entered as
	Amount string `json:"amount,omitempty"`
	// contains filtered or unexported fields
}

InstructedAmount is the InstructedAmount of the wire

func NewInstructedAmount

func NewInstructedAmount() *InstructedAmount

NewInstructedAmount returns a new InstructedAmount

func (*InstructedAmount) AmountField

func (ia *InstructedAmount) AmountField() string

AmountField gets a string of the Amount field

func (*InstructedAmount) CurrencyCodeField

func (ia *InstructedAmount) CurrencyCodeField() string

CurrencyCodeField gets a string of the CurrencyCode field

func (*InstructedAmount) Format added in v0.9.0

func (ia *InstructedAmount) Format(options FormatOptions) string

Format returns a InstructedAmount record formatted according to the FormatOptions

func (*InstructedAmount) FormatAmount added in v0.9.0

func (ia *InstructedAmount) FormatAmount(options FormatOptions) string

FormatAmount returns Amount formatted according to the FormatOptions

func (*InstructedAmount) FormatCurrencyCode added in v0.9.0

func (ia *InstructedAmount) FormatCurrencyCode(options FormatOptions) string

FormatCurrencyCode returns CurrencyCode formatted according to the FormatOptions

func (*InstructedAmount) Parse

func (ia *InstructedAmount) Parse(record string) error

Parse takes the input string and parses the InstructedAmount values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*InstructedAmount) String

func (ia *InstructedAmount) String() string

String returns a fixed-width InstructedAmount record

func (*InstructedAmount) UnmarshalJSON added in v0.6.2

func (ia *InstructedAmount) UnmarshalJSON(data []byte) error

func (*InstructedAmount) Validate

func (ia *InstructedAmount) Validate() error

Validate performs WIRE format rule checks on InstructedAmount and returns an error if not Validated The first error encountered is returned and stops that parsing.

type InstructingFI

type InstructingFI struct {

	// Financial Institution
	FinancialInstitution FinancialInstitution `json:"financialInstitution,omitempty"`
	// contains filtered or unexported fields
}

InstructingFI is the instructing financial institution

func NewInstructingFI

func NewInstructingFI() *InstructingFI

NewInstructingFI returns a new InstructingFI

func (*InstructingFI) AddressLineOneField

func (ifi *InstructingFI) AddressLineOneField() string

AddressLineOneField gets a string of AddressLineOne field

func (*InstructingFI) AddressLineThreeField

func (ifi *InstructingFI) AddressLineThreeField() string

AddressLineThreeField gets a string of AddressLineThree field

func (*InstructingFI) AddressLineTwoField

func (ifi *InstructingFI) AddressLineTwoField() string

AddressLineTwoField gets a string of AddressLineTwo field

func (*InstructingFI) Format added in v0.9.0

func (ifi *InstructingFI) Format(options FormatOptions) string

Format returns a InstructingFI record formatted according to the FormatOptions

func (*InstructingFI) FormatAddressLineOne added in v0.9.0

func (ifi *InstructingFI) FormatAddressLineOne(options FormatOptions) string

FormatAddressLineOne returns Advice.LineOne formatted according to the FormatOptions

func (*InstructingFI) FormatAddressLineThree added in v0.9.0

func (ifi *InstructingFI) FormatAddressLineThree(options FormatOptions) string

FormatAddressLineThree returns Advice.LineOne formatted according to the FormatOptions

func (*InstructingFI) FormatAddressLineTwo added in v0.9.0

func (ifi *InstructingFI) FormatAddressLineTwo(options FormatOptions) string

FormatAddressLineTwo returns Advice.LineOne formatted according to the FormatOptions

func (*InstructingFI) FormatIdentifier added in v0.9.0

func (ifi *InstructingFI) FormatIdentifier(options FormatOptions) string

FormatIdentifier returns Advice.LineOne formatted according to the FormatOptions

func (*InstructingFI) FormatName added in v0.9.0

func (ifi *InstructingFI) FormatName(options FormatOptions) string

FormatName returns Advice.LineOne formatted according to the FormatOptions

func (*InstructingFI) IdentificationCodeField

func (ifi *InstructingFI) IdentificationCodeField() string

IdentificationCodeField gets a string of the IdentificationCode field

func (*InstructingFI) IdentifierField

func (ifi *InstructingFI) IdentifierField() string

IdentifierField gets a string of the Identifier field

func (*InstructingFI) NameField

func (ifi *InstructingFI) NameField() string

NameField gets a string of the Name field

func (*InstructingFI) Parse

func (ifi *InstructingFI) Parse(record string) error

Parse takes the input string and parses the InstructingFI values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*InstructingFI) String

func (ifi *InstructingFI) String() string

String returns a fixed-width InstructingFI record

func (*InstructingFI) UnmarshalJSON added in v0.6.2

func (ifi *InstructingFI) UnmarshalJSON(data []byte) error

func (*InstructingFI) Validate

func (ifi *InstructingFI) Validate() error

Validate performs WIRE format rule checks on InstructingFI and returns an error if not Validated The first error encountered is returned and stops that parsing. If ID Code is present, Identifier is mandatory and vice versa.

type IntermediaryInstitution

type IntermediaryInstitution struct {

	// CoverPayment is CoverPayment
	CoverPayment CoverPayment `json:"coverPayment,omitempty"`
	// contains filtered or unexported fields
}

IntermediaryInstitution is the intermediary institution

func NewIntermediaryInstitution

func NewIntermediaryInstitution() *IntermediaryInstitution

NewIntermediaryInstitution returns a new IntermediaryInstitution

func (*IntermediaryInstitution) Format added in v0.9.0

func (ii *IntermediaryInstitution) Format(options FormatOptions) string

Format returns a IntermediaryInstitution record formatted according to the FormatOptions

func (*IntermediaryInstitution) FormatSwiftFieldTag added in v0.9.0

func (ii *IntermediaryInstitution) FormatSwiftFieldTag(options FormatOptions) string

FormatSwiftFieldTag returns CoverPayment.SwiftFieldTag formatted according to the FormatOptions

func (*IntermediaryInstitution) FormatSwiftLineFive added in v0.9.0

func (ii *IntermediaryInstitution) FormatSwiftLineFive(options FormatOptions) string

FormatSwiftLineFive returns CoverPayment.SwiftLineFive formatted according to the FormatOptions

func (*IntermediaryInstitution) FormatSwiftLineFour added in v0.9.0

func (ii *IntermediaryInstitution) FormatSwiftLineFour(options FormatOptions) string

FormatSwiftLineFour returns CoverPayment.SwiftLineFour formatted according to the FormatOptions

func (*IntermediaryInstitution) FormatSwiftLineOne added in v0.9.0

func (ii *IntermediaryInstitution) FormatSwiftLineOne(options FormatOptions) string

FormatSwiftLineOne returns CoverPayment.SwiftLineOne formatted according to the FormatOptions

func (*IntermediaryInstitution) FormatSwiftLineThree added in v0.9.0

func (ii *IntermediaryInstitution) FormatSwiftLineThree(options FormatOptions) string

FormatSwiftLineThree returns CoverPayment.SwiftLineThree formatted according to the FormatOptions

func (*IntermediaryInstitution) FormatSwiftLineTwo added in v0.9.0

func (ii *IntermediaryInstitution) FormatSwiftLineTwo(options FormatOptions) string

FormatSwiftLineTwo returns CoverPayment.SwiftLineTwo formatted according to the FormatOptions

func (*IntermediaryInstitution) Parse

func (ii *IntermediaryInstitution) Parse(record string) error

Parse takes the input string and parses the IntermediaryInstitution values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*IntermediaryInstitution) String

func (ii *IntermediaryInstitution) String() string

String returns a fixed-width IntermediaryInstitution record

func (*IntermediaryInstitution) SwiftFieldTagField

func (ii *IntermediaryInstitution) SwiftFieldTagField() string

SwiftFieldTagField gets a string of the SwiftFieldTag field

func (*IntermediaryInstitution) SwiftLineFiveField

func (ii *IntermediaryInstitution) SwiftLineFiveField() string

SwiftLineFiveField gets a string of the SwiftLineFive field

func (*IntermediaryInstitution) SwiftLineFourField

func (ii *IntermediaryInstitution) SwiftLineFourField() string

SwiftLineFourField gets a string of the SwiftLineFour field

func (*IntermediaryInstitution) SwiftLineOneField

func (ii *IntermediaryInstitution) SwiftLineOneField() string

SwiftLineOneField gets a string of the SwiftLineOne field

func (*IntermediaryInstitution) SwiftLineThreeField

func (ii *IntermediaryInstitution) SwiftLineThreeField() string

SwiftLineThreeField gets a string of the SwiftLineThree field

func (*IntermediaryInstitution) SwiftLineTwoField

func (ii *IntermediaryInstitution) SwiftLineTwoField() string

SwiftLineTwoField gets a string of the SwiftLineTwo field

func (*IntermediaryInstitution) UnmarshalJSON added in v0.6.2

func (ii *IntermediaryInstitution) UnmarshalJSON(data []byte) error

func (*IntermediaryInstitution) Validate

func (ii *IntermediaryInstitution) Validate() error

Validate performs WIRE format rule checks on IntermediaryInstitution and returns an error if not Validated The first error encountered is returned and stops that parsing.

type LocalInstrument

type LocalInstrument struct {

	// LocalInstrumentCode is local instrument code
	LocalInstrumentCode string `json:"LocalInstrument,omitempty"`
	// ProprietaryCode is proprietary code
	ProprietaryCode string `json:"proprietaryCode,omitempty"`
	// contains filtered or unexported fields
}

LocalInstrument is the LocalInstrument of the wire

func NewLocalInstrument

func NewLocalInstrument() *LocalInstrument

NewLocalInstrument returns a new LocalInstrument

func (*LocalInstrument) Format added in v0.9.0

func (li *LocalInstrument) Format(options FormatOptions) string

Format returns a LocalInstrument record formatted according to the FormatOptions

func (*LocalInstrument) FormatLocalInstrumentCode added in v0.9.0

func (li *LocalInstrument) FormatLocalInstrumentCode(options FormatOptions) string

FormatLocalInstrumentCode returns LocalInstrumentCode formatted according to the FormatOptions

func (*LocalInstrument) FormatProprietaryCode added in v0.9.0

func (li *LocalInstrument) FormatProprietaryCode(options FormatOptions) string

FormatProprietaryCode returns ProprietaryCode formatted according to the FormatOptions

func (*LocalInstrument) LocalInstrumentCodeField

func (li *LocalInstrument) LocalInstrumentCodeField() string

LocalInstrumentCodeField gets a string of LocalInstrumentCode field

func (*LocalInstrument) Parse

func (li *LocalInstrument) Parse(record string) error

Parse takes the input string and parses the LocalInstrument values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*LocalInstrument) ProprietaryCodeField

func (li *LocalInstrument) ProprietaryCodeField() string

ProprietaryCodeField gets a string of ProprietaryCode field

func (*LocalInstrument) String

func (li *LocalInstrument) String() string

String returns a fixed-width LocalInstrument record

func (*LocalInstrument) UnmarshalJSON added in v0.6.2

func (li *LocalInstrument) UnmarshalJSON(data []byte) error

func (*LocalInstrument) Validate

func (li *LocalInstrument) Validate() error

Validate performs WIRE format rule checks on LocalInstrument and returns an error if not Validated The first error encountered is returned and stops that parsing.

type MessageDisposition

type MessageDisposition struct {

	// FormatVersion 30
	FormatVersion string `json:"formatVersion,omitempty"`
	// TestTestProductionCode identifies if test or production
	TestProductionCode string `json:"testProductionCode,omitempty"`
	// MessageDuplicationCode  * ` ` - Original Message * `R` - Retrieval of an original message * `P` - Resend
	MessageDuplicationCode string `json:"messageDuplicationCode,omitempty"`
	// MessageStatusIndicator
	MessageStatusIndicator string `json:"messageStatusIndicator,omitempty"`
	// contains filtered or unexported fields
}

MessageDisposition is the message disposition of the wire

func NewMessageDisposition

func NewMessageDisposition() *MessageDisposition

NewMessageDisposition returns a new MessageDisposition

func (*MessageDisposition) Format added in v0.9.0

func (md *MessageDisposition) Format(options FormatOptions) string

Format returns a MessageDisposition record formatted according to the FormatOptions

func (*MessageDisposition) FormatMessageDispositionFormatVersion added in v0.9.0

func (md *MessageDisposition) FormatMessageDispositionFormatVersion(options FormatOptions) string

FormatMessageDispositionFormatVersion returns FormatVersion formatted according to the FormatOptions

func (*MessageDisposition) FormatMessageDispositionMessageDuplicationCode added in v0.9.0

func (md *MessageDisposition) FormatMessageDispositionMessageDuplicationCode(options FormatOptions) string

FormatMessageDispositionMessageDuplicationCode returns MessageDuplicationCode formatted according to the FormatOptions

func (*MessageDisposition) FormatMessageDispositionMessageStatusIndicator added in v0.9.0

func (md *MessageDisposition) FormatMessageDispositionMessageStatusIndicator(options FormatOptions) string

FormatMessageDispositionMessageStatusIndicator returns MessageStatusIndicator formatted according to the FormatOptions

func (*MessageDisposition) FormatMessageDispositionTestProductionCode added in v0.9.0

func (md *MessageDisposition) FormatMessageDispositionTestProductionCode(options FormatOptions) string

FormatMessageDispositionTestProductionCode returns TestProductionCode formatted according to the FormatOptions

func (*MessageDisposition) MessageDispositionFormatVersionField

func (md *MessageDisposition) MessageDispositionFormatVersionField() string

MessageDispositionFormatVersionField gets a string of the FormatVersion field

func (*MessageDisposition) MessageDispositionMessageDuplicationCodeField

func (md *MessageDisposition) MessageDispositionMessageDuplicationCodeField() string

MessageDispositionMessageDuplicationCodeField gets a string of the MessageDuplicationCode field

func (*MessageDisposition) MessageDispositionMessageStatusIndicatorField

func (md *MessageDisposition) MessageDispositionMessageStatusIndicatorField() string

MessageDispositionMessageStatusIndicatorField gets a string of the MessageDuplicationCode field

func (*MessageDisposition) MessageDispositionTestProductionCodeField

func (md *MessageDisposition) MessageDispositionTestProductionCodeField() string

MessageDispositionTestProductionCodeField gets a string of the TestProductionCoden field

func (*MessageDisposition) Parse

func (md *MessageDisposition) Parse(record string) error

Parse takes the input string and parses the MessageDisposition values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*MessageDisposition) String

func (md *MessageDisposition) String() string

String returns a fixed-width MessageDisposition record

func (*MessageDisposition) UnmarshalJSON added in v0.6.2

func (md *MessageDisposition) UnmarshalJSON(data []byte) error

func (*MessageDisposition) Validate

func (md *MessageDisposition) Validate() error

Validate performs WIRE format rule checks on MessageDisposition and returns an error if not Validated The first error encountered is returned and stops that parsing.

type OptionFunc added in v0.9.0

type OptionFunc func(*Writer)

func NewlineCharacter added in v0.9.0

func NewlineCharacter(newline string) OptionFunc

NewlineCharacter specify new line character

func VariableLengthFields added in v0.9.0

func VariableLengthFields(variableLength bool) OptionFunc

VariableLengthFields specify to support variable length

type OrderingCustomer

type OrderingCustomer struct {

	// CoverPayment is CoverPayment
	CoverPayment CoverPayment `json:"coverPayment,omitempty"`
	// contains filtered or unexported fields
}

OrderingCustomer is the ordering customer

func NewOrderingCustomer

func NewOrderingCustomer() *OrderingCustomer

NewOrderingCustomer returns a new OrderingCustomer

func (*OrderingCustomer) Format added in v0.9.0

func (oc *OrderingCustomer) Format(options FormatOptions) string

Format returns a OrderingCustomer record formatted according to the FormatOptions

func (*OrderingCustomer) FormatSwiftFieldTag added in v0.9.0

func (oc *OrderingCustomer) FormatSwiftFieldTag(options FormatOptions) string

FormatSwiftFieldTag returns CoverPayment.SwiftFieldTag formatted according to the FormatOptions

func (*OrderingCustomer) FormatSwiftLineFive added in v0.9.0

func (oc *OrderingCustomer) FormatSwiftLineFive(options FormatOptions) string

FormatSwiftLineFive returns CoverPayment.SwiftLineFive formatted according to the FormatOptions

func (*OrderingCustomer) FormatSwiftLineFour added in v0.9.0

func (oc *OrderingCustomer) FormatSwiftLineFour(options FormatOptions) string

FormatSwiftLineFour returns CoverPayment.SwiftLineFour formatted according to the FormatOptions

func (*OrderingCustomer) FormatSwiftLineOne added in v0.9.0

func (oc *OrderingCustomer) FormatSwiftLineOne(options FormatOptions) string

FormatSwiftLineOne returns CoverPayment.SwiftLineOne formatted according to the FormatOptions

func (*OrderingCustomer) FormatSwiftLineThree added in v0.9.0

func (oc *OrderingCustomer) FormatSwiftLineThree(options FormatOptions) string

FormatSwiftLineThree returns CoverPayment.SwiftLineThree formatted according to the FormatOptions

func (*OrderingCustomer) FormatSwiftLineTwo added in v0.9.0

func (oc *OrderingCustomer) FormatSwiftLineTwo(options FormatOptions) string

FormatSwiftLineTwo returns CoverPayment.SwiftLineTwo formatted according to the FormatOptions

func (*OrderingCustomer) Parse

func (oc *OrderingCustomer) Parse(record string) error

Parse takes the input string and parses the OrderingCustomer values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*OrderingCustomer) String

func (oc *OrderingCustomer) String() string

String returns a fixed-width OrderingCustomer record

func (*OrderingCustomer) SwiftFieldTagField

func (oc *OrderingCustomer) SwiftFieldTagField() string

SwiftFieldTagField gets a string of the SwiftFieldTag field

func (*OrderingCustomer) SwiftLineFiveField

func (oc *OrderingCustomer) SwiftLineFiveField() string

SwiftLineFiveField gets a string of the SwiftLineFive field

func (*OrderingCustomer) SwiftLineFourField

func (oc *OrderingCustomer) SwiftLineFourField() string

SwiftLineFourField gets a string of the SwiftLineFour field

func (*OrderingCustomer) SwiftLineOneField

func (oc *OrderingCustomer) SwiftLineOneField() string

SwiftLineOneField gets a string of the SwiftLineOne field

func (*OrderingCustomer) SwiftLineThreeField

func (oc *OrderingCustomer) SwiftLineThreeField() string

SwiftLineThreeField gets a string of the SwiftLineThree field

func (*OrderingCustomer) SwiftLineTwoField

func (oc *OrderingCustomer) SwiftLineTwoField() string

SwiftLineTwoField gets a string of the SwiftLineTwo field

func (*OrderingCustomer) UnmarshalJSON added in v0.6.2

func (oc *OrderingCustomer) UnmarshalJSON(data []byte) error

func (*OrderingCustomer) Validate

func (oc *OrderingCustomer) Validate() error

Validate performs WIRE format rule checks on OrderingCustomer and returns an error if not Validated The first error encountered is returned and stops that parsing.

type OrderingInstitution

type OrderingInstitution struct {

	// CoverPayment is CoverPayment
	CoverPayment CoverPayment `json:"coverPayment,omitempty"`
	// contains filtered or unexported fields
}

OrderingInstitution is the ordering institution

func NewOrderingInstitution

func NewOrderingInstitution() *OrderingInstitution

NewOrderingInstitution returns a new OrderingInstitution

func (*OrderingInstitution) Format added in v0.9.0

func (oi *OrderingInstitution) Format(options FormatOptions) string

Format returns a OrderingInstitution record formatted according to the FormatOptions

func (*OrderingInstitution) FormatSwiftFieldTag added in v0.9.0

func (oi *OrderingInstitution) FormatSwiftFieldTag(options FormatOptions) string

FormatSwiftFieldTag returns CoverPayment.SwiftFieldTag formatted according to the FormatOptions

func (*OrderingInstitution) FormatSwiftLineFive added in v0.9.0

func (oi *OrderingInstitution) FormatSwiftLineFive(options FormatOptions) string

FormatSwiftLineFive returns CoverPayment.SwiftLineFive formatted according to the FormatOptions

func (*OrderingInstitution) FormatSwiftLineFour added in v0.9.0

func (oi *OrderingInstitution) FormatSwiftLineFour(options FormatOptions) string

FormatSwiftLineFour returns CoverPayment.SwiftLineFour formatted according to the FormatOptions

func (*OrderingInstitution) FormatSwiftLineOne added in v0.9.0

func (oi *OrderingInstitution) FormatSwiftLineOne(options FormatOptions) string

FormatSwiftLineOne returns CoverPayment.SwiftLineOne formatted according to the FormatOptions

func (*OrderingInstitution) FormatSwiftLineThree added in v0.9.0

func (oi *OrderingInstitution) FormatSwiftLineThree(options FormatOptions) string

FormatSwiftLineThree returns CoverPayment.SwiftLineThree formatted according to the FormatOptions

func (*OrderingInstitution) FormatSwiftLineTwo added in v0.9.0

func (oi *OrderingInstitution) FormatSwiftLineTwo(options FormatOptions) string

FormatSwiftLineTwo returns CoverPayment.SwiftLineTwo formatted according to the FormatOptions

func (*OrderingInstitution) Parse

func (oi *OrderingInstitution) Parse(record string) error

Parse takes the input string and parses the OrderingInstitution values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*OrderingInstitution) String

func (oi *OrderingInstitution) String() string

String returns a fixed-width OrderingInstitution record

func (*OrderingInstitution) SwiftFieldTagField

func (oi *OrderingInstitution) SwiftFieldTagField() string

SwiftFieldTagField gets a string of the SwiftFieldTag field

func (*OrderingInstitution) SwiftLineFiveField

func (oi *OrderingInstitution) SwiftLineFiveField() string

SwiftLineFiveField gets a string of the SwiftLineFive field

func (*OrderingInstitution) SwiftLineFourField

func (oi *OrderingInstitution) SwiftLineFourField() string

SwiftLineFourField gets a string of the SwiftLineFour field

func (*OrderingInstitution) SwiftLineOneField

func (oi *OrderingInstitution) SwiftLineOneField() string

SwiftLineOneField gets a string of the SwiftLineOne field

func (*OrderingInstitution) SwiftLineThreeField

func (oi *OrderingInstitution) SwiftLineThreeField() string

SwiftLineThreeField gets a string of the SwiftLineThree field

func (*OrderingInstitution) SwiftLineTwoField

func (oi *OrderingInstitution) SwiftLineTwoField() string

SwiftLineTwoField gets a string of the SwiftLineTwo field

func (*OrderingInstitution) UnmarshalJSON added in v0.6.2

func (oi *OrderingInstitution) UnmarshalJSON(data []byte) error

func (*OrderingInstitution) Validate

func (oi *OrderingInstitution) Validate() error

Validate performs WIRE format rule checks on OrderingInstitution and returns an error if not Validated The first error encountered is returned and stops that parsing.

type Originator

type Originator struct {

	// Personal
	Personal Personal `json:"personal,omitempty"`
	// contains filtered or unexported fields
}

Originator is the originator of the wire

func NewOriginator

func NewOriginator() *Originator

NewOriginator returns a new Originator

func (*Originator) AddressLineOneField

func (o *Originator) AddressLineOneField() string

AddressLineOneField gets a string of AddressLineOne field

func (*Originator) AddressLineThreeField

func (o *Originator) AddressLineThreeField() string

AddressLineThreeField gets a string of AddressLineThree field

func (*Originator) AddressLineTwoField

func (o *Originator) AddressLineTwoField() string

AddressLineTwoField gets a string of AddressLineTwo field

func (*Originator) Format added in v0.9.0

func (o *Originator) Format(options FormatOptions) string

Format returns a Originator record formatted according to the FormatOptions

func (*Originator) FormatAddressLineOne added in v0.9.0

func (o *Originator) FormatAddressLineOne(options FormatOptions) string

FormatAddressLineOne returns Address.AddressLineOne formatted according to the FormatOptions

func (*Originator) FormatAddressLineThree added in v0.9.0

func (o *Originator) FormatAddressLineThree(options FormatOptions) string

FormatAddressLineThree returns Address.AddressLineThree formatted according to the FormatOptions

func (*Originator) FormatAddressLineTwo added in v0.9.0

func (o *Originator) FormatAddressLineTwo(options FormatOptions) string

FormatAddressLineTwo returns Address.AddressLineTwo formatted according to the FormatOptions

func (*Originator) FormatIdentifier added in v0.9.0

func (o *Originator) FormatIdentifier(options FormatOptions) string

FormatIdentifier returns Personal.Identifier formatted according to the FormatOptions

func (*Originator) FormatName added in v0.9.0

func (o *Originator) FormatName(options FormatOptions) string

FormatName returns Personal.Name formatted according to the FormatOptions

func (*Originator) IdentificationCodeField

func (o *Originator) IdentificationCodeField() string

IdentificationCodeField gets a string of the IdentificationCode field

func (*Originator) IdentifierField

func (o *Originator) IdentifierField() string

IdentifierField gets a string of the Identifier field

func (*Originator) NameField

func (o *Originator) NameField() string

NameField gets a string of the Name field

func (*Originator) Parse

func (o *Originator) Parse(record string) error

Parse takes the input string and parses the Originator values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*Originator) String

func (o *Originator) String() string

String returns a fixed-width Originator record

func (*Originator) UnmarshalJSON added in v0.6.2

func (o *Originator) UnmarshalJSON(data []byte) error

func (*Originator) Validate

func (o *Originator) Validate() error

Validate performs WIRE format rule checks on Originator and returns an error if not Validated The first error encountered is returned and stops that parsing.

type OriginatorFI

type OriginatorFI struct {

	// Financial Institution
	FinancialInstitution FinancialInstitution `json:"financialInstitution,omitempty"`
	// contains filtered or unexported fields
}

OriginatorFI is the originator Financial Institution

func NewOriginatorFI

func NewOriginatorFI() *OriginatorFI

NewOriginatorFI returns a new OriginatorFI

func (*OriginatorFI) AddressLineOneField

func (ofi *OriginatorFI) AddressLineOneField() string

AddressLineOneField gets a string of AddressLineOne field

func (*OriginatorFI) AddressLineThreeField

func (ofi *OriginatorFI) AddressLineThreeField() string

AddressLineThreeField gets a string of AddressLineThree field

func (*OriginatorFI) AddressLineTwoField

func (ofi *OriginatorFI) AddressLineTwoField() string

AddressLineTwoField gets a string of AddressLineTwo field

func (*OriginatorFI) Format added in v0.9.0

func (ofi *OriginatorFI) Format(options FormatOptions) string

Format returns a OriginatorFI record formatted according to the FormatOptions

func (*OriginatorFI) FormatAddressLineOne added in v0.9.0

func (ofi *OriginatorFI) FormatAddressLineOne(options FormatOptions) string

FormatAddressLineOne returns Address.AddressLineOne formatted according to the FormatOptions

func (*OriginatorFI) FormatAddressLineThree added in v0.9.0

func (ofi *OriginatorFI) FormatAddressLineThree(options FormatOptions) string

FormatAddressLineThree returns Address.AddressLineThree formatted according to the FormatOptions

func (*OriginatorFI) FormatAddressLineTwo added in v0.9.0

func (ofi *OriginatorFI) FormatAddressLineTwo(options FormatOptions) string

FormatAddressLineTwo returns Address.AddressLineTwo formatted according to the FormatOptions

func (*OriginatorFI) FormatIdentificationCode added in v0.9.0

func (ofi *OriginatorFI) FormatIdentificationCode(options FormatOptions) string

FormatIdentificationCode returns FinancialInstitution.IdentificationCode formatted according to the FormatOptions

func (*OriginatorFI) FormatIdentifier added in v0.9.0

func (ofi *OriginatorFI) FormatIdentifier(options FormatOptions) string

FormatIdentifier returns FinancialInstitution.Identifier formatted according to the FormatOptions

func (*OriginatorFI) FormatName added in v0.9.0

func (ofi *OriginatorFI) FormatName(options FormatOptions) string

FormatName returns FinancialInstitution.Name formatted according to the FormatOptions

func (*OriginatorFI) IdentificationCodeField

func (ofi *OriginatorFI) IdentificationCodeField() string

IdentificationCodeField gets a string of the IdentificationCode field

func (*OriginatorFI) IdentifierField

func (ofi *OriginatorFI) IdentifierField() string

IdentifierField gets a string of the Identifier field

func (*OriginatorFI) NameField

func (ofi *OriginatorFI) NameField() string

NameField gets a string of the Name field

func (*OriginatorFI) Parse

func (ofi *OriginatorFI) Parse(record string) error

Parse takes the input string and parses the OriginatorFI values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*OriginatorFI) String

func (ofi *OriginatorFI) String() string

String returns a fixed-width OriginatorFI record

func (*OriginatorFI) UnmarshalJSON added in v0.6.2

func (ofi *OriginatorFI) UnmarshalJSON(data []byte) error

func (*OriginatorFI) Validate

func (ofi *OriginatorFI) Validate() error

Validate performs WIRE format rule checks on OriginatorFI and returns an error if not Validated The first error encountered is returned and stops that parsing. If ID Code is present, Identifier is mandatory and vice versa.

type OriginatorOptionF

type OriginatorOptionF struct {

	// PartyIdentifier must be one of the following two formats:
	// 1. /Account Number (slash followed by at least one
	// valid non-space character:  e.g., /123456)
	// 2. Unique Identifier/ (4 character code followed by a slash and at least one valid non-space character:
	// e.g., SOSE/123-456-789)
	//
	// ARNU: Alien Registration Number
	// CCPT: Passport Number
	// CUST: Customer Identification Number
	// DRLC: Driver’s License Number
	// EMPL: Employer Number
	// NIDN: National Identify Number
	// SOSE: Social Security Number
	// TXID: Tax Identification Number
	PartyIdentifier string `json:"partyIdentifier,omitempty"`
	// Name  Format:  Must begin with Line Code 1 followed by a slash and at least one valid non-space character:
	// e.g., 1/SMITH JOHN.
	Name string `json:"name,omitempty"`
	// LineOne
	// Format: Must begin with one of the following Line Codes followed by a slash and at least one
	// valid non-space character.
	// 1 Name
	// 2 Address
	// 3 Country and Town
	// 4 Date of Birth
	// 5 Place of Birth
	// 6 Customer Identification Number
	// 7 National Identity Number
	// 8 Additional Information
	// For example:
	// 2/123 MAIN STREET
	// 3/US/NEW YORK, NY 10000
	// 7/111-22-3456
	LineOne string `json:"lineOne,omitempty"`
	// LineTwo
	// Format: Must begin with one of the following Line Codes followed by a slash and at least one
	// valid non-space character.
	// 1 Name
	// 2 Address
	// 3 Country and Town
	// 4 Date of Birth
	// 5 Place of Birth
	// 6 Customer Identification Number
	// 7 National Identity Number
	// 8 Additional Information
	// For example:
	// 2/123 MAIN STREET
	// 3/US/NEW YORK, NY 10000
	// 7/111-22-3456
	LineTwo string `json:"lineTwo,omitempty"`
	// LineThree
	// Format: Must begin with one of the following Line Codes followed by a slash and at least one
	// valid non-space character.
	// 1 Name
	// 2 Address
	// 3 Country and Town
	// 4 Date of Birth
	// 5 Place of Birth
	// 6 Customer Identification Number
	// 7 National Identity Number
	// 8 Additional Information
	// For example:
	// 2/123 MAIN STREET
	// 3/US/NEW YORK, NY 10000
	// 7/111-22-3456
	LineThree string `json:"lineThree,omitempty"`
	// contains filtered or unexported fields
}

OriginatorOptionF is originator option F information

func NewOriginatorOptionF

func NewOriginatorOptionF() *OriginatorOptionF

NewOriginatorOptionF returns a new OriginatorOptionF

func (*OriginatorOptionF) Format added in v0.9.0

func (oof *OriginatorOptionF) Format(options FormatOptions) string

Format returns a OriginatorOptionF record formatted according to the FormatOptions

func (*OriginatorOptionF) FormatLineOne added in v0.9.0

func (oof *OriginatorOptionF) FormatLineOne(options FormatOptions) string

FormatLineOne returns LineOne formatted according to the FormatOptions

func (*OriginatorOptionF) FormatLineThree added in v0.9.0

func (oof *OriginatorOptionF) FormatLineThree(options FormatOptions) string

FormatLineThree returns LineThree formatted according to the FormatOptions

func (*OriginatorOptionF) FormatLineTwo added in v0.9.0

func (oof *OriginatorOptionF) FormatLineTwo(options FormatOptions) string

FormatLineTwo returns LineTwo formatted according to the FormatOptions

func (*OriginatorOptionF) FormatName added in v0.9.0

func (oof *OriginatorOptionF) FormatName(options FormatOptions) string

FormatName returns Name formatted according to the FormatOptions

func (*OriginatorOptionF) FormatPartyIdentifier added in v0.9.0

func (oof *OriginatorOptionF) FormatPartyIdentifier(options FormatOptions) string

FormatPartyIdentifier returns PartyIdentifier formatted according to the FormatOptions

func (*OriginatorOptionF) Parse

func (oof *OriginatorOptionF) Parse(record string) error

Parse takes the input string and parses the OriginatorOptionF values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*OriginatorOptionF) String

func (oof *OriginatorOptionF) String() string

String returns a fixed-width OriginatorOptionF record

func (*OriginatorOptionF) UnmarshalJSON added in v0.6.2

func (oof *OriginatorOptionF) UnmarshalJSON(data []byte) error

func (*OriginatorOptionF) Validate

func (oof *OriginatorOptionF) Validate() error

Validate performs WIRE format rule checks on OriginatorOptionF and returns an error if not Validated The first error encountered is returned and stops that parsing.

type OriginatorToBeneficiary

type OriginatorToBeneficiary struct {

	// LineOne
	LineOne string `json:"lineOne,omitempty"`
	// LineTwo
	LineTwo string `json:"lineTwo,omitempty"`
	// LineThree
	LineThree string `json:"lineThree,omitempty"`
	// LineFour
	LineFour string `json:"lineFour,omitempty"`
	// contains filtered or unexported fields
}

OriginatorToBeneficiary is the OriginatorToBeneficiary of the wire

func NewOriginatorToBeneficiary

func NewOriginatorToBeneficiary() *OriginatorToBeneficiary

NewOriginatorToBeneficiary returns a new OriginatorToBeneficiary

func (*OriginatorToBeneficiary) Format added in v0.9.0

func (ob *OriginatorToBeneficiary) Format(options FormatOptions) string

Format returns a OriginatorToBeneficiary record formatted according to the FormatOptions

func (*OriginatorToBeneficiary) FormatLineFour added in v0.9.0

func (ob *OriginatorToBeneficiary) FormatLineFour(options FormatOptions) string

FormatLineFour returns LineFour formatted according to the FormatOptions

func (*OriginatorToBeneficiary) FormatLineOne added in v0.9.0

func (ob *OriginatorToBeneficiary) FormatLineOne(options FormatOptions) string

FormatLineOne returns LineOne formatted according to the FormatOptions

func (*OriginatorToBeneficiary) FormatLineThree added in v0.9.0

func (ob *OriginatorToBeneficiary) FormatLineThree(options FormatOptions) string

FormatLineThree returns LineThree formatted according to the FormatOptions

func (*OriginatorToBeneficiary) FormatLineTwo added in v0.9.0

func (ob *OriginatorToBeneficiary) FormatLineTwo(options FormatOptions) string

FormatLineTwo returns LineTwo formatted according to the FormatOptions

func (*OriginatorToBeneficiary) Parse

func (ob *OriginatorToBeneficiary) Parse(record string) error

Parse takes the input string and parses the OriginatorToBeneficiary values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*OriginatorToBeneficiary) String

func (ob *OriginatorToBeneficiary) String() string

String returns a fixed-width OriginatorToBeneficiary record

func (*OriginatorToBeneficiary) UnmarshalJSON added in v0.6.2

func (ob *OriginatorToBeneficiary) UnmarshalJSON(data []byte) error

func (*OriginatorToBeneficiary) Validate

func (ob *OriginatorToBeneficiary) Validate() error

Validate performs WIRE format rule checks on OriginatorToBeneficiary and returns an error if not Validated The first error encountered is returned and stops that parsing. See latest version of the FAIM manual for Line Limits for Tags {6000} to {6500}.

type OutputMessageAccountabilityData

type OutputMessageAccountabilityData struct {

	// OutputCycleDate (CCYYMMDD)
	OutputCycleDate string `json:"outputCycleDate,omitempty"`
	// OutputDestinationID
	OutputDestinationID string `json:"outputDestinationID,omitempty"`
	// OutputOutputSequenceNumber
	OutputSequenceNumber string `json:"outputSequenceNumber,omitempty"`
	// OutputDate is the output date
	OutputDate string `json:"outputDate,omitempty"`
	// OutputTime is OutputTime
	OutputTime string `json:"outputTime,omitempty"`
	// OutputFRBApplicationIdentification
	OutputFRBApplicationIdentification string `json:"outputFRBApplicationIdentification,omitempty"`
	// contains filtered or unexported fields
}

OutputMessageAccountabilityData is the Output Message Accountability Data (OMAD) of the wire

func NewOutputMessageAccountabilityData

func NewOutputMessageAccountabilityData() *OutputMessageAccountabilityData

NewOutputMessageAccountabilityData returns a new OutputMessageAccountabilityData

func (*OutputMessageAccountabilityData) Format added in v0.9.0

Format returns a OutputMessageAccountabilityData record formatted according to the FormatOptions

func (*OutputMessageAccountabilityData) FormatOutputCycleDate added in v0.9.0

func (omad *OutputMessageAccountabilityData) FormatOutputCycleDate(options FormatOptions) string

FormatOutputCycleDate returns OutputCycleDate formatted according to the FormatOptions

func (*OutputMessageAccountabilityData) FormatOutputDate added in v0.9.0

func (omad *OutputMessageAccountabilityData) FormatOutputDate(options FormatOptions) string

FormatOutputDate returns OutputDate formatted according to the FormatOptions

func (*OutputMessageAccountabilityData) FormatOutputDestinationID added in v0.9.0

func (omad *OutputMessageAccountabilityData) FormatOutputDestinationID(options FormatOptions) string

FormatOutputDestinationID returns OutputDestinationID formatted according to the FormatOptions

func (*OutputMessageAccountabilityData) FormatOutputFRBApplicationIdentification added in v0.9.0

func (omad *OutputMessageAccountabilityData) FormatOutputFRBApplicationIdentification(options FormatOptions) string

FormatOutputFRBApplicationIdentification returns OutputFRBApplicationIdentification formatted according to the FormatOptions

func (*OutputMessageAccountabilityData) FormatOutputTime added in v0.9.0

func (omad *OutputMessageAccountabilityData) FormatOutputTime(options FormatOptions) string

FormatOutputTime returns OutputTime formatted according to the FormatOptions

func (*OutputMessageAccountabilityData) OutputCycleDateField

func (omad *OutputMessageAccountabilityData) OutputCycleDateField() string

OutputCycleDateField

func (*OutputMessageAccountabilityData) OutputDateField

func (omad *OutputMessageAccountabilityData) OutputDateField() string

OutputDateField

func (*OutputMessageAccountabilityData) OutputDestinationIDField

func (omad *OutputMessageAccountabilityData) OutputDestinationIDField() string

OutputDestinationIDField

func (*OutputMessageAccountabilityData) OutputFRBApplicationIdentificationField

func (omad *OutputMessageAccountabilityData) OutputFRBApplicationIdentificationField() string

OutputFRBApplicationIdentificationField

func (*OutputMessageAccountabilityData) OutputSequenceNumberField

func (omad *OutputMessageAccountabilityData) OutputSequenceNumberField() string

OutputSequenceNumberField gets a string of the OutputSequenceNumber field

func (*OutputMessageAccountabilityData) OutputTimeField

func (omad *OutputMessageAccountabilityData) OutputTimeField() string

OutputTimeField

func (*OutputMessageAccountabilityData) Parse

func (omad *OutputMessageAccountabilityData) Parse(record string) error

Parse takes the input string and parses the OutputMessageAccountabilityData values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*OutputMessageAccountabilityData) String

func (omad *OutputMessageAccountabilityData) String() string

String returns a fixed-width OutputMessageAccountabilityData record

func (*OutputMessageAccountabilityData) UnmarshalJSON added in v0.6.2

func (omad *OutputMessageAccountabilityData) UnmarshalJSON(data []byte) error

func (*OutputMessageAccountabilityData) Validate

func (omad *OutputMessageAccountabilityData) Validate() error

Validate performs WIRE format rule checks on OutputMessageAccountabilityData and returns an error if not Validated The first error encountered is returned and stops that parsing.

type PaymentNotification

type PaymentNotification struct {

	// PaymentNotificationIndicator
	// * `0 - 6` - Reserved for market practice conventions.
	// * `7 - 9` - Reserved for bilateral agreements between Fedwire senders and receivers.
	PaymentNotificationIndicator string `json:"paymentNotificationIndicator,omitempty"`
	// ContactNotificationElectronicAddress
	ContactNotificationElectronicAddress string `json:"contactNotificationElectronicAddress,omitempty"`
	// ContactName
	ContactName string `json:"contactName,omitempty"`
	// ContactPhoneNumber
	ContactPhoneNumber string `json:"contactPhoneNumber,omitempty"`
	// ContactMobileNumber
	ContactMobileNumber string `json:"contactMobileNumber,omitempty"`
	// FaxNumber
	ContactFaxNumber string `json:"faxNumber,omitempty"`
	// EndToEndIdentification
	EndToEndIdentification string `json:"endToEndIdentification,omitempty"`
	// contains filtered or unexported fields
}

PaymentNotification is the PaymentNotification of the wire

func NewPaymentNotification

func NewPaymentNotification() *PaymentNotification

NewPaymentNotification returns a new PaymentNotification

func (*PaymentNotification) Format added in v0.9.0

func (pn *PaymentNotification) Format(options FormatOptions) string

Format returns a PaymentNotification record formatted according to the FormatOptions

func (*PaymentNotification) FormatContactFaxNumber added in v0.9.0

func (pn *PaymentNotification) FormatContactFaxNumber(options FormatOptions) string

ContactFaxNumberField gets a string of FaxNumber field

func (*PaymentNotification) FormatContactMobileNumber added in v0.9.0

func (pn *PaymentNotification) FormatContactMobileNumber(options FormatOptions) string

ContactMobileNumberField gets a string of ContactMobileNumber field

func (*PaymentNotification) FormatContactName added in v0.9.0

func (pn *PaymentNotification) FormatContactName(options FormatOptions) string

ContactNameField gets a string of ContactName field

func (*PaymentNotification) FormatContactNotificationElectronicAddress added in v0.9.0

func (pn *PaymentNotification) FormatContactNotificationElectronicAddress(options FormatOptions) string

ContactNotificationElectronicAddressField gets a string of ContactNotificationElectronicAddress field

func (*PaymentNotification) FormatContactPhoneNumber added in v0.9.0

func (pn *PaymentNotification) FormatContactPhoneNumber(options FormatOptions) string

ContactPhoneNumberField gets a string of ContactPhoneNumberField field

func (*PaymentNotification) FormatEndToEndIdentification added in v0.9.0

func (pn *PaymentNotification) FormatEndToEndIdentification(options FormatOptions) string

EndToEndIdentificationField gets a string of EndToEndIdentification field

func (*PaymentNotification) FormatPaymentNotificationIndicator added in v0.9.0

func (pn *PaymentNotification) FormatPaymentNotificationIndicator(options FormatOptions) string

PaymentNotificationIndicatorField gets a string of PaymentNotificationIndicator field

func (*PaymentNotification) Parse

func (pn *PaymentNotification) Parse(record string) error

Parse takes the input string and parses the PaymentNotification values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*PaymentNotification) PaymentNotificationIndicatorField

func (pn *PaymentNotification) PaymentNotificationIndicatorField() string

PaymentNotificationIndicatorField gets a string of PaymentNotificationIndicator field

func (*PaymentNotification) String

func (pn *PaymentNotification) String() string

String returns a fixed-width PaymentNotification record

func (*PaymentNotification) UnmarshalJSON added in v0.6.2

func (pn *PaymentNotification) UnmarshalJSON(data []byte) error

func (*PaymentNotification) Validate

func (pn *PaymentNotification) Validate() error

Validate performs WIRE format rule checks on PaymentNotification and returns an error if not Validated The first error encountered is returned and stops that parsing.

type Personal

type Personal struct {
	// IdentificationCode:  * `1` - Passport Number * `2` - Tax Identification Number * `3` - Driver’s License Number * `4` - Alien Registration Number * `5` - Corporate Identification * `9` - Other Identification
	IdentificationCode string `json:"identificationCode"`
	// Identifier
	Identifier string `json:"identifier"`
	// Name
	Name    string  `json:"name"`
	Address Address `json:"address"`
}

Personal is personal demographic information

type PreviousMessageIdentifier

type PreviousMessageIdentifier struct {

	// PreviousMessageIdentifier
	PreviousMessageIdentifier string `json:"PreviousMessageIdentifier,omitempty"`
	// contains filtered or unexported fields
}

PreviousMessageIdentifier is the PreviousMessageIdentifier of the wire

func NewPreviousMessageIdentifier

func NewPreviousMessageIdentifier() *PreviousMessageIdentifier

NewPreviousMessageIdentifier returns a new PreviousMessageIdentifier

func (*PreviousMessageIdentifier) Format added in v0.9.0

func (pmi *PreviousMessageIdentifier) Format(options FormatOptions) string

Format returns a PreviousMessageIdentifier record formatted according to the FormatOptions

func (*PreviousMessageIdentifier) FormatPreviousMessageIdentifier added in v0.9.0

func (pmi *PreviousMessageIdentifier) FormatPreviousMessageIdentifier(options FormatOptions) string

FormatPreviousMessageIdentifier returns PreviousMessageIdentifier formatted according to the FormatOptions

func (*PreviousMessageIdentifier) Parse

func (pmi *PreviousMessageIdentifier) Parse(record string) error

Parse takes the input string and parses the PreviousMessageIdentifier values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*PreviousMessageIdentifier) PreviousMessageIdentifierField

func (pmi *PreviousMessageIdentifier) PreviousMessageIdentifierField() string

PreviousMessageIdentifierField gets a string of PreviousMessageIdentifier field

func (*PreviousMessageIdentifier) String

func (pmi *PreviousMessageIdentifier) String() string

String returns a fixed-width PreviousMessageIdentifier record

func (*PreviousMessageIdentifier) UnmarshalJSON added in v0.6.2

func (pmi *PreviousMessageIdentifier) UnmarshalJSON(data []byte) error

func (*PreviousMessageIdentifier) Validate

func (pmi *PreviousMessageIdentifier) Validate() error

Validate performs WIRE format rule checks on PreviousMessageIdentifier and returns an error if not Validated The first error encountered is returned and stops that parsing.

type PrimaryRemittanceDocument

type PrimaryRemittanceDocument struct {

	// DocumentTypeCode  * `AROI` - Accounts Receivable Open Item * `BOLD` - Bill of Lading Shipping Notice * `CINV` - Commercial Invoice * `CMCN` - Commercial Contract * `CNFA` - Credit Note Related to Financial Adjustment * `CREN` - Credit Note * `DEBN` - Debit Note * `DISP` - Dispatch Advice * `DNFA` - Debit Note Related to Financial Adjustment HIRI Hire Invoice * `MSIN` - Metered Service Invoice * `PROP` - Proprietary Document Type * `PUOR` - Purchase Order * `SBIN` - Self Billed Invoice * `SOAC` - Statement of Account * `TSUT` - Trade Services Utility Transaction VCHR Voucher
	DocumentTypeCode string `json:"documentTypeCode,omitempty"`
	// ProprietaryDocumentTypeCode
	ProprietaryDocumentTypeCode string `json:"proprietaryDocumentTypeCode,omitempty"`
	// DocumentIdentificationNumber
	DocumentIdentificationNumber string `json:"documentIdentificationNumber,omitempty"`
	// Issuer
	Issuer string `json:"issuer,omitempty"`
	// contains filtered or unexported fields
}

PrimaryRemittanceDocument is primary remittance document

func NewPrimaryRemittanceDocument

func NewPrimaryRemittanceDocument() *PrimaryRemittanceDocument

NewPrimaryRemittanceDocument returns a new PrimaryRemittanceDocument

func (*PrimaryRemittanceDocument) DocumentIdentificationNumberField

func (prd *PrimaryRemittanceDocument) DocumentIdentificationNumberField() string

DocumentIdentificationNumberField gets a string of the DocumentIdentificationNumber field

func (*PrimaryRemittanceDocument) DocumentTypeCodeField

func (prd *PrimaryRemittanceDocument) DocumentTypeCodeField() string

DocumentTypeCodeField gets a string of the DocumentTypeCode field

func (*PrimaryRemittanceDocument) Format added in v0.9.0

func (prd *PrimaryRemittanceDocument) Format(options FormatOptions) string

Format returns a PrimaryRemittanceDocument record formatted according to the FormatOptions

func (*PrimaryRemittanceDocument) FormatDocumentIdentificationNumber added in v0.9.0

func (prd *PrimaryRemittanceDocument) FormatDocumentIdentificationNumber(options FormatOptions) string

FormatDocumentIdentificationNumber returns DocumentIdentificationNumber formatted according to the FormatOptions

func (*PrimaryRemittanceDocument) FormatIssuer added in v0.9.0

func (prd *PrimaryRemittanceDocument) FormatIssuer(options FormatOptions) string

FormatIssuer returns Issuer formatted according to the FormatOptions

func (*PrimaryRemittanceDocument) FormatProprietaryDocumentTypeCode added in v0.9.0

func (prd *PrimaryRemittanceDocument) FormatProprietaryDocumentTypeCode(options FormatOptions) string

FormatProprietaryDocumentTypeCode returns ProprietaryDocumentTypeCode formatted according to the FormatOptions

func (*PrimaryRemittanceDocument) IssuerField

func (prd *PrimaryRemittanceDocument) IssuerField() string

IssuerField gets a string of the Issuer field

func (*PrimaryRemittanceDocument) Parse

func (prd *PrimaryRemittanceDocument) Parse(record string) error

Parse takes the input string and parses the PrimaryRemittanceDocument values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*PrimaryRemittanceDocument) ProprietaryDocumentTypeCodeField

func (prd *PrimaryRemittanceDocument) ProprietaryDocumentTypeCodeField() string

ProprietaryDocumentTypeCodeField gets a string of the ProprietaryDocumentTypeCode field

func (*PrimaryRemittanceDocument) String

func (prd *PrimaryRemittanceDocument) String() string

String returns a fixed-width PrimaryRemittanceDocument record

func (*PrimaryRemittanceDocument) UnmarshalJSON added in v0.6.2

func (prd *PrimaryRemittanceDocument) UnmarshalJSON(data []byte) error

func (*PrimaryRemittanceDocument) Validate

func (prd *PrimaryRemittanceDocument) Validate() error

Validate performs WIRE format rule checks on PrimaryRemittanceDocument and returns an error if not Validated The first error encountered is returned and stops that parsing. Document Type Code and Document Identification Number are mandatory for each set of remittance data. Proprietary Document Type Code is mandatory for Document Type Code PROP; otherwise not permitted.

type Reader

type Reader struct {

	// file is ach.file model being built as r is parsed.
	File File
	// contains filtered or unexported fields
}

Reader reads records from a ACH-encoded file.

func NewReader

func NewReader(r io.Reader, opts ...FilePropertyFunc) *Reader

NewReader returns a new ACH Reader that reads from r.

func (*Reader) Read

func (r *Reader) Read() (File, error)

Read reads each line of the FED Wire file and defines which parser to use based on the first character of each line. It also enforces FED Wire formatting rules and returns the appropriate error if issues are found.

func (*Reader) ReadWithOpts added in v0.13.0

func (r *Reader) ReadWithOpts(opts *ValidateOpts) (File, error)

type ReceiptTimeStamp

type ReceiptTimeStamp struct {

	// ReceiptDate is the receipt date
	ReceiptDate string `json:"receiptDate,omitempty"`
	// ReceiptTime is the receipt time
	ReceiptTime string `json:"receiptTime,omitempty"`
	// ApplicationIdentification
	ReceiptApplicationIdentification string `json:"receiptApplicationIdentification,omitempty"`
	// contains filtered or unexported fields
}

ReceiptTimeStamp is the receipt time stamp of the wire

func NewReceiptTimeStamp

func NewReceiptTimeStamp() *ReceiptTimeStamp

NewReceiptTimeStamp returns a new ReceiptTimeStamp

func (*ReceiptTimeStamp) Format added in v0.9.0

func (rts *ReceiptTimeStamp) Format(options FormatOptions) string

Format returns a ReceiptTimeStamp record formatted according to the FormatOptions

func (*ReceiptTimeStamp) FormatReceiptApplicationIdentification added in v0.9.0

func (rts *ReceiptTimeStamp) FormatReceiptApplicationIdentification(options FormatOptions) string

FormatReceiptApplicationIdentification returns ReceiptApplicationIdentification formatted according to the FormatOptions

func (*ReceiptTimeStamp) FormatReceiptDate added in v0.9.0

func (rts *ReceiptTimeStamp) FormatReceiptDate(options FormatOptions) string

FormatReceiptDate returns ReceiptDate formatted according to the FormatOptions

func (*ReceiptTimeStamp) FormatReceiptTime added in v0.9.0

func (rts *ReceiptTimeStamp) FormatReceiptTime(options FormatOptions) string

FormatReceiptTime returns ReceiptTime formatted according to the FormatOptions

func (*ReceiptTimeStamp) Parse

func (rts *ReceiptTimeStamp) Parse(record string) error

Parse takes the input string and parses the ReceiptTimeStamp values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*ReceiptTimeStamp) ReceiptApplicationIdentificationField

func (rts *ReceiptTimeStamp) ReceiptApplicationIdentificationField() string

ReceiptApplicationIdentificationField gets a string of the ReceiptApplicationIdentification field

func (*ReceiptTimeStamp) ReceiptDateField

func (rts *ReceiptTimeStamp) ReceiptDateField() string

ReceiptDateField gets a string of the ReceiptDate field

func (*ReceiptTimeStamp) ReceiptTimeField

func (rts *ReceiptTimeStamp) ReceiptTimeField() string

ReceiptTimeField gets a string of the ReceiptTime field

func (*ReceiptTimeStamp) String

func (rts *ReceiptTimeStamp) String() string

String returns a fixed-width ReceiptTimeStamp record

func (*ReceiptTimeStamp) UnmarshalJSON added in v0.6.2

func (rts *ReceiptTimeStamp) UnmarshalJSON(data []byte) error

func (*ReceiptTimeStamp) Validate

func (rts *ReceiptTimeStamp) Validate() error

Validate performs WIRE format rule checks on ReceiptTimeStamp and returns an error if not Validated The first error encountered is returned and stops that parsing.

type ReceiverDepositoryInstitution

type ReceiverDepositoryInstitution struct {

	// ReceiverABANumber
	ReceiverABANumber string `json:"receiverABANumber"`
	// ReceiverShortName
	ReceiverShortName string `json:"receiverShortName,omitempty"`
	// contains filtered or unexported fields
}

ReceiverDepositoryInstitution {3400}

func NewReceiverDepositoryInstitution

func NewReceiverDepositoryInstitution() *ReceiverDepositoryInstitution

NewReceiverDepositoryInstitution returns a new ReceiverDepositoryInstitution

func (*ReceiverDepositoryInstitution) Format added in v0.9.0

func (rdi *ReceiverDepositoryInstitution) Format(options FormatOptions) string

Format returns a ReceiverDepositoryInstitution record formatted according to the FormatOptions

func (*ReceiverDepositoryInstitution) FormatReceiverABANumber added in v0.9.0

func (rdi *ReceiverDepositoryInstitution) FormatReceiverABANumber(options FormatOptions) string

FormatReceiverABANumber returns ReceiverABANumber formatted according to the FormatOptions

func (*ReceiverDepositoryInstitution) FormatReceiverShortName added in v0.9.0

func (rdi *ReceiverDepositoryInstitution) FormatReceiverShortName(options FormatOptions) string

FormatReceiverShortName returns ReceiverShortName formatted according to the FormatOptions

func (*ReceiverDepositoryInstitution) Parse

func (rdi *ReceiverDepositoryInstitution) Parse(record string) error

Parse takes the input string and parses the ReceiverDepositoryInstitution values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*ReceiverDepositoryInstitution) ReceiverABANumberField

func (rdi *ReceiverDepositoryInstitution) ReceiverABANumberField() string

ReceiverABANumberField gets a string of the ReceiverABANumber field

func (*ReceiverDepositoryInstitution) ReceiverShortNameField

func (rdi *ReceiverDepositoryInstitution) ReceiverShortNameField() string

ReceiverShortNameField gets a string of the ReceiverShortName field

func (*ReceiverDepositoryInstitution) String

func (rdi *ReceiverDepositoryInstitution) String() string

String returns a fixed-width ReceiverDepositoryInstitution record

func (*ReceiverDepositoryInstitution) UnmarshalJSON added in v0.6.2

func (rdi *ReceiverDepositoryInstitution) UnmarshalJSON(data []byte) error

func (*ReceiverDepositoryInstitution) Validate

func (rdi *ReceiverDepositoryInstitution) Validate() error

Validate performs WIRE format rule checks on ReceiverDepositoryInstitution and returns an error if not Validated The first error encountered is returned and stops that parsing.

type RelatedRemittance

type RelatedRemittance struct {

	// RemittanceIdentification is remittance identification
	RemittanceIdentification string `json:"remittanceIdentification,omitempty"`
	// RemittanceLocationMethod is  remittance location method
	RemittanceLocationMethod string `json:"remittanceLocationMethod,omitempty"`
	// RemittanceLocationElectronicAddress (E-mail or URL address)
	RemittanceLocationElectronicAddress string `json:"remittanceLocationElctronicAddress,omitempty"`
	// RemittanceData is RemittanceData
	RemittanceData RemittanceData `json:"remittanceData,omitempty"`
	// contains filtered or unexported fields
}

RelatedRemittance is related remittance

func NewRelatedRemittance

func NewRelatedRemittance() *RelatedRemittance

NewRelatedRemittance returns a new RelatedRemittance

func (*RelatedRemittance) AddressLineFiveField

func (rr *RelatedRemittance) AddressLineFiveField() string

AddressLineFiveField gets a string of the AddressLineFive field

func (*RelatedRemittance) AddressLineFourField

func (rr *RelatedRemittance) AddressLineFourField() string

AddressLineFourField gets a string of the AddressLineFour field

func (*RelatedRemittance) AddressLineOneField

func (rr *RelatedRemittance) AddressLineOneField() string

AddressLineOneField gets a string of the AddressLineOne field

func (*RelatedRemittance) AddressLineSevenField

func (rr *RelatedRemittance) AddressLineSevenField() string

AddressLineSevenField gets a string of the AddressLineSeven field

func (*RelatedRemittance) AddressLineSixField

func (rr *RelatedRemittance) AddressLineSixField() string

AddressLineSixField gets a string of the AddressLineSix field

func (*RelatedRemittance) AddressLineThreeField

func (rr *RelatedRemittance) AddressLineThreeField() string

AddressLineThreeField gets a string of the AddressLineThree field

func (*RelatedRemittance) AddressLineTwoField

func (rr *RelatedRemittance) AddressLineTwoField() string

AddressLineTwoField gets a string of the AddressLineTwo field

func (*RelatedRemittance) AddressTypeField

func (rr *RelatedRemittance) AddressTypeField() string

AddressTypeField gets a string of the AddressType field

func (*RelatedRemittance) BuildingNumberField

func (rr *RelatedRemittance) BuildingNumberField() string

BuildingNumberField gets a string of the BuildingNumber field

func (*RelatedRemittance) CountryField

func (rr *RelatedRemittance) CountryField() string

CountryField gets a string of the Country field

func (*RelatedRemittance) CountrySubDivisionStateField

func (rr *RelatedRemittance) CountrySubDivisionStateField() string

CountrySubDivisionStateField gets a string of the CountrySubDivisionState field

func (*RelatedRemittance) DepartmentField

func (rr *RelatedRemittance) DepartmentField() string

DepartmentField gets a string of the Department field

func (*RelatedRemittance) Format added in v0.9.0

func (rr *RelatedRemittance) Format(options FormatOptions) string

Format returns a RelatedRemittance record formatted according to the FormatOptions

func (*RelatedRemittance) FormatAddressLineFive added in v0.9.0

func (rr *RelatedRemittance) FormatAddressLineFive(options FormatOptions) string

FormatAddressLineFive returns RemittanceData.AddressLineFive formatted according to the FormatOptions

func (*RelatedRemittance) FormatAddressLineFour added in v0.9.0

func (rr *RelatedRemittance) FormatAddressLineFour(options FormatOptions) string

FormatAddressLineFour returns RemittanceData.AddressLineFour formatted according to the FormatOptions

func (*RelatedRemittance) FormatAddressLineOne added in v0.9.0

func (rr *RelatedRemittance) FormatAddressLineOne(options FormatOptions) string

FormatAddressLineOne returns RemittanceData.AddressLineOne formatted according to the FormatOptions

func (*RelatedRemittance) FormatAddressLineSeven added in v0.9.0

func (rr *RelatedRemittance) FormatAddressLineSeven(options FormatOptions) string

FormatAddressLineSeven returns RemittanceData.AddressLineSeven formatted according to the FormatOptions

func (*RelatedRemittance) FormatAddressLineSix added in v0.9.0

func (rr *RelatedRemittance) FormatAddressLineSix(options FormatOptions) string

FormatAddressLineSix returns RemittanceData.AddressLineSix formatted according to the FormatOptions

func (*RelatedRemittance) FormatAddressLineThree added in v0.9.0

func (rr *RelatedRemittance) FormatAddressLineThree(options FormatOptions) string

FormatAddressLineThree returns RemittanceData.AddressLineThree formatted according to the FormatOptions

func (*RelatedRemittance) FormatAddressLineTwo added in v0.9.0

func (rr *RelatedRemittance) FormatAddressLineTwo(options FormatOptions) string

FormatAddressLineTwo returns RemittanceData.AddressLineTwo formatted according to the FormatOptions

func (*RelatedRemittance) FormatAddressType added in v0.9.0

func (rr *RelatedRemittance) FormatAddressType(options FormatOptions) string

FormatAddressType returns RemittanceData.AddressType formatted according to the FormatOptions

func (*RelatedRemittance) FormatBuildingNumber added in v0.9.0

func (rr *RelatedRemittance) FormatBuildingNumber(options FormatOptions) string

FormatBuildingNumber returns RemittanceData.BuildingNumber formatted according to the FormatOptions

func (*RelatedRemittance) FormatCountry added in v0.9.0

func (rr *RelatedRemittance) FormatCountry(options FormatOptions) string

FormatCountry returns RemittanceData.Country formatted according to the FormatOptions

func (*RelatedRemittance) FormatCountrySubDivisionState added in v0.9.0

func (rr *RelatedRemittance) FormatCountrySubDivisionState(options FormatOptions) string

FormatCountrySubDivisionState returns RemittanceData.CountrySubDivisionState formatted according to the FormatOptions

func (*RelatedRemittance) FormatDepartment added in v0.9.0

func (rr *RelatedRemittance) FormatDepartment(options FormatOptions) string

FormatDepartment returns RemittanceData.Department formatted according to the FormatOptions

func (*RelatedRemittance) FormatName added in v0.9.0

func (rr *RelatedRemittance) FormatName(options FormatOptions) string

FormatName returns RemittanceData.Name formatted according to the FormatOptions

func (*RelatedRemittance) FormatPostCode added in v0.9.0

func (rr *RelatedRemittance) FormatPostCode(options FormatOptions) string

FormatPostCode returns RemittanceData.PostCode formatted according to the FormatOptions

func (*RelatedRemittance) FormatRemittanceIdentification added in v0.9.0

func (rr *RelatedRemittance) FormatRemittanceIdentification(options FormatOptions) string

FormatRemittanceIdentification returns rr.RemittanceIdentification formatted according to the FormatOptions

func (*RelatedRemittance) FormatRemittanceLocationElectronicAddress added in v0.9.0

func (rr *RelatedRemittance) FormatRemittanceLocationElectronicAddress(options FormatOptions) string

FormatRemittanceLocationElectronicAddress returns rr.RemittanceLocationElectronicAddress formatted according to the FormatOptions

func (*RelatedRemittance) FormatRemittanceLocationMethod added in v0.9.0

func (rr *RelatedRemittance) FormatRemittanceLocationMethod(options FormatOptions) string

FormatRemittanceLocationMethod returns rr.RemittanceLocationMethod formatted according to the FormatOptions

func (*RelatedRemittance) FormatStreetName added in v0.9.0

func (rr *RelatedRemittance) FormatStreetName(options FormatOptions) string

FormatStreetName returns RemittanceData.StreetName formatted according to the FormatOptions

func (*RelatedRemittance) FormatSubDepartment added in v0.9.0

func (rr *RelatedRemittance) FormatSubDepartment(options FormatOptions) string

FormatSubDepartment returns RemittanceData.SubDepartment formatted according to the FormatOptions

func (*RelatedRemittance) FormatTownName added in v0.9.0

func (rr *RelatedRemittance) FormatTownName(options FormatOptions) string

FormatTownName returns RemittanceData.TownName formatted according to the FormatOptions

func (*RelatedRemittance) NameField

func (rr *RelatedRemittance) NameField() string

NameField gets a string of the Name field

func (*RelatedRemittance) Parse

func (rr *RelatedRemittance) Parse(record string) error

Parse takes the input string and parses the RelatedRemittance values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*RelatedRemittance) PostCodeField

func (rr *RelatedRemittance) PostCodeField() string

PostCodeField gets a string of the PostCode field

func (*RelatedRemittance) RemittanceIdentificationField

func (rr *RelatedRemittance) RemittanceIdentificationField() string

RemittanceIdentificationField gets a string of the RemittanceIdentification field

func (*RelatedRemittance) RemittanceLocationElectronicAddressField

func (rr *RelatedRemittance) RemittanceLocationElectronicAddressField() string

RemittanceLocationElectronicAddressField gets a string of the RemittanceLocationElectronicAddress field

func (*RelatedRemittance) RemittanceLocationMethodField

func (rr *RelatedRemittance) RemittanceLocationMethodField() string

RemittanceLocationMethodField gets a string of the RemittanceLocationMethod field

func (*RelatedRemittance) StreetNameField

func (rr *RelatedRemittance) StreetNameField() string

StreetNameField gets a string of the StreetName field

func (*RelatedRemittance) String

func (rr *RelatedRemittance) String() string

String returns a fixed-width RelatedRemittance record

func (*RelatedRemittance) SubDepartmentField

func (rr *RelatedRemittance) SubDepartmentField() string

SubDepartmentField gets a string of the SubDepartment field

func (*RelatedRemittance) TownNameField

func (rr *RelatedRemittance) TownNameField() string

TownNameField gets a string of the TownName field

func (*RelatedRemittance) UnmarshalJSON added in v0.6.2

func (rr *RelatedRemittance) UnmarshalJSON(data []byte) error

func (*RelatedRemittance) Validate

func (rr *RelatedRemittance) Validate() error

Validate performs WIRE format rule checks on RelatedRemittance and returns an error if not Validated The first error encountered is returned and stops that parsing.

type Remittance

type Remittance struct {

	// CoverPayment is CoverPayment
	CoverPayment CoverPayment `json:"coverPayment,omitempty"`
	// contains filtered or unexported fields
}

Remittance is the remittance information

func NewRemittance

func NewRemittance() *Remittance

NewRemittance returns a new Remittance

func (*Remittance) Format added in v0.9.0

func (ri *Remittance) Format(options FormatOptions) string

Format returns a Remittance record formatted according to the FormatOptions

func (*Remittance) FormatSwiftFieldTag added in v0.9.0

func (ri *Remittance) FormatSwiftFieldTag(options FormatOptions) string

FormatSwiftFieldTag returns CoverPayment.SwiftFieldTag formatted according to the FormatOptions

func (*Remittance) FormatSwiftLineFour added in v0.9.0

func (ri *Remittance) FormatSwiftLineFour(options FormatOptions) string

FormatSwiftLineFour returns CoverPayment.SwiftLineFour formatted according to the FormatOptions

func (*Remittance) FormatSwiftLineOne added in v0.9.0

func (ri *Remittance) FormatSwiftLineOne(options FormatOptions) string

FormatSwiftLineOne returns CoverPayment.SwiftLineOne formatted according to the FormatOptions

func (*Remittance) FormatSwiftLineThree added in v0.9.0

func (ri *Remittance) FormatSwiftLineThree(options FormatOptions) string

FormatSwiftLineThree returns CoverPayment.SwiftLineThree formatted according to the FormatOptions

func (*Remittance) FormatSwiftLineTwo added in v0.9.0

func (ri *Remittance) FormatSwiftLineTwo(options FormatOptions) string

FormatSwiftLineTwo returns CoverPayment.SwiftLineTwo formatted according to the FormatOptions

func (*Remittance) Parse

func (ri *Remittance) Parse(record string) error

Parse takes the input string and parses the Remittance values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*Remittance) String

func (ri *Remittance) String() string

String returns a fixed-width Remittance record

func (*Remittance) SwiftFieldTagField

func (ri *Remittance) SwiftFieldTagField() string

SwiftFieldTagField gets a string of the SwiftFieldTag field

func (*Remittance) SwiftLineFourField

func (ri *Remittance) SwiftLineFourField() string

SwiftLineFourField gets a string of the SwiftLineFour field

func (*Remittance) SwiftLineOneField

func (ri *Remittance) SwiftLineOneField() string

SwiftLineOneField gets a string of the SwiftLineOne field

func (*Remittance) SwiftLineThreeField

func (ri *Remittance) SwiftLineThreeField() string

SwiftLineThreeField gets a string of the SwiftLineThree field

func (*Remittance) SwiftLineTwoField

func (ri *Remittance) SwiftLineTwoField() string

SwiftLineTwoField gets a string of the SwiftLineTwo field

func (*Remittance) UnmarshalJSON added in v0.6.2

func (ri *Remittance) UnmarshalJSON(data []byte) error

func (*Remittance) Validate

func (ri *Remittance) Validate() error

Validate performs WIRE format rule checks on Remittance and returns an error if not Validated The first error encountered is returned and stops that parsing.

type RemittanceAmount

type RemittanceAmount struct {
	// CurrencyCode
	CurrencyCode string `json:"currencyCode,omitempty"`
	// Amount Must contain at least one numeric character and only one decimal period marker (e.g., $1,234.56 should be entered as 1234.56). Can have up to 5 numeric characters following the decimal period marker (e.g., 1234.56789). Amount must be greater than zero (i.e., at least .01).
	Amount string `json:"amount,omitempty"`
}

RemittanceAmount is remittance amount

type RemittanceBeneficiary

type RemittanceBeneficiary struct {

	// IdentificationType is identification type
	IdentificationType string `json:"identificationType,omitempty"`
	// IdentificationCode  Organization Identification Codes  * `BANK` - Bank Party Identification * `CUST` - Customer Number * `DUNS` - Data Universal Number System (Dun & Bradstreet) * `EMPL` - Employer Identification Number * `GS1G` - Global Location Number * `PROP` - Proprietary Identification Number * `SWBB` - SWIFT BIC or BEI * `TXID` - Tax Identification Number  Private Identification Codes  * `ARNU` - Alien Registration Number * `CCPT` - Passport Number * `CUST` - Customer Number * `DPOB` - Date & Place of Birth * `DRLC` - Driver’s License Number * `EMPL` - Employee Identification Number * `NIDN` - National Identity Number * `PROP` - Proprietary Identification Number * `SOSE` - Social Security Number * `TXID` - Tax Identification Number
	IdentificationCode string `json:"identificationCode,omitempty"`
	// IdentificationNumber
	IdentificationNumber string `json:"identificationNumber,omitempty"`
	// IdentificationNumberIssuer
	IdentificationNumberIssuer string `json:"identificationNumberIssuer,omitempty"`
	// RemittanceData
	RemittanceData RemittanceData `json:"remittanceData,omitempty"`
	// contains filtered or unexported fields
}

RemittanceBeneficiary is remittance beneficiary

func NewRemittanceBeneficiary

func NewRemittanceBeneficiary() *RemittanceBeneficiary

NewRemittanceBeneficiary returns a new RemittanceBeneficiary

func (*RemittanceBeneficiary) AddressLineFiveField

func (rb *RemittanceBeneficiary) AddressLineFiveField() string

AddressLineFiveField gets a string of the AddressLineFive field

func (*RemittanceBeneficiary) AddressLineFourField

func (rb *RemittanceBeneficiary) AddressLineFourField() string

AddressLineFourField gets a string of the AddressLineFour field

func (*RemittanceBeneficiary) AddressLineOneField

func (rb *RemittanceBeneficiary) AddressLineOneField() string

AddressLineOneField gets a string of the AddressLineOne field

func (*RemittanceBeneficiary) AddressLineSevenField

func (rb *RemittanceBeneficiary) AddressLineSevenField() string

AddressLineSevenField gets a string of the AddressLineSeven field

func (*RemittanceBeneficiary) AddressLineSixField

func (rb *RemittanceBeneficiary) AddressLineSixField() string

AddressLineSixField gets a string of the AddressLineSix field

func (*RemittanceBeneficiary) AddressLineThreeField

func (rb *RemittanceBeneficiary) AddressLineThreeField() string

AddressLineThreeField gets a string of the AddressLineThree field

func (*RemittanceBeneficiary) AddressLineTwoField

func (rb *RemittanceBeneficiary) AddressLineTwoField() string

AddressLineTwoField gets a string of the AddressLineTwo field

func (*RemittanceBeneficiary) AddressTypeField

func (rb *RemittanceBeneficiary) AddressTypeField() string

AddressTypeField gets a string of the AddressType field

func (*RemittanceBeneficiary) BuildingNumberField

func (rb *RemittanceBeneficiary) BuildingNumberField() string

BuildingNumberField gets a string of the BuildingNumber field

func (*RemittanceBeneficiary) CountryField

func (rb *RemittanceBeneficiary) CountryField() string

CountryField gets a string of the Country field

func (*RemittanceBeneficiary) CountryOfResidenceField

func (rb *RemittanceBeneficiary) CountryOfResidenceField() string

CountryOfResidenceField gets a string of the CountryOfResidence field

func (*RemittanceBeneficiary) CountrySubDivisionStateField

func (rb *RemittanceBeneficiary) CountrySubDivisionStateField() string

CountrySubDivisionStateField gets a string of the CountrySubDivisionState field

func (*RemittanceBeneficiary) DateBirthPlaceField

func (rb *RemittanceBeneficiary) DateBirthPlaceField() string

DateBirthPlaceField gets a string of the DateBirthPlace field

func (*RemittanceBeneficiary) DepartmentField

func (rb *RemittanceBeneficiary) DepartmentField() string

DepartmentField gets a string of the Department field

func (*RemittanceBeneficiary) Format added in v0.9.0

func (rb *RemittanceBeneficiary) Format(options FormatOptions) string

Format returns a RemittanceBeneficiary record formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatAddressLineFive added in v0.9.0

func (rb *RemittanceBeneficiary) FormatAddressLineFive(options FormatOptions) string

FormatAddressLineFive returns AddressLineFive formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatAddressLineFour added in v0.9.0

func (rb *RemittanceBeneficiary) FormatAddressLineFour(options FormatOptions) string

FormatAddressLineFour returns AddressLineFour formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatAddressLineOne added in v0.9.0

func (rb *RemittanceBeneficiary) FormatAddressLineOne(options FormatOptions) string

FormatAddressLineOne returns AddressLineOne formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatAddressLineSeven added in v0.9.0

func (rb *RemittanceBeneficiary) FormatAddressLineSeven(options FormatOptions) string

FormatAddressLineSeven returns AddressLineSeven formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatAddressLineSix added in v0.9.0

func (rb *RemittanceBeneficiary) FormatAddressLineSix(options FormatOptions) string

FormatAddressLineSix returns AddressLineSix formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatAddressLineThree added in v0.9.0

func (rb *RemittanceBeneficiary) FormatAddressLineThree(options FormatOptions) string

FormatAddressLineThree returns AddressLineThree formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatAddressLineTwo added in v0.9.0

func (rb *RemittanceBeneficiary) FormatAddressLineTwo(options FormatOptions) string

FormatAddressLineTwo returns AddressLineTwo formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatAddressType added in v0.9.0

func (rb *RemittanceBeneficiary) FormatAddressType(options FormatOptions) string

FormatAddressType returns AddressType formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatBuildingNumber added in v0.9.0

func (rb *RemittanceBeneficiary) FormatBuildingNumber(options FormatOptions) string

FormatBuildingNumber returns BuildingNumber formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatCountry added in v0.9.0

func (rb *RemittanceBeneficiary) FormatCountry(options FormatOptions) string

FormatCountry returns Country formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatCountryOfResidence added in v0.9.0

func (rb *RemittanceBeneficiary) FormatCountryOfResidence(options FormatOptions) string

FormatCountryOfResidence returns CountryOfResidence formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatCountrySubDivisionState added in v0.9.0

func (rb *RemittanceBeneficiary) FormatCountrySubDivisionState(options FormatOptions) string

FormatCountrySubDivisionState returns CountrySubDivisionState formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatDateBirthPlace added in v0.9.0

func (rb *RemittanceBeneficiary) FormatDateBirthPlace(options FormatOptions) string

FormatDateBirthPlace returns DateBirthPlace formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatDepartment added in v0.9.0

func (rb *RemittanceBeneficiary) FormatDepartment(options FormatOptions) string

FormatDepartment returns Department formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatIdentificationCode added in v0.9.0

func (rb *RemittanceBeneficiary) FormatIdentificationCode(options FormatOptions) string

FormatIdentificationCode returns IdentificationCode formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatIdentificationNumber added in v0.9.0

func (rb *RemittanceBeneficiary) FormatIdentificationNumber(options FormatOptions) string

FormatIdentificationNumber returns IdentificationNumber formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatIdentificationNumberIssuer added in v0.9.0

func (rb *RemittanceBeneficiary) FormatIdentificationNumberIssuer(options FormatOptions) string

FormatIdentificationNumberIssuer returns IdentificationNumberIssuer formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatIdentificationType added in v0.9.0

func (rb *RemittanceBeneficiary) FormatIdentificationType(options FormatOptions) string

FormatIdentificationType returns IdentificationType formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatName added in v0.9.0

func (rb *RemittanceBeneficiary) FormatName(options FormatOptions) string

FormatName returns Name formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatPostCode added in v0.9.0

func (rb *RemittanceBeneficiary) FormatPostCode(options FormatOptions) string

FormatPostCode returns PostCode formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatStreetName added in v0.9.0

func (rb *RemittanceBeneficiary) FormatStreetName(options FormatOptions) string

FormatStreetName returns StreetName formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatSubDepartment added in v0.9.0

func (rb *RemittanceBeneficiary) FormatSubDepartment(options FormatOptions) string

FormatSubDepartment returns SubDepartment formatted according to the FormatOptions

func (*RemittanceBeneficiary) FormatTownName added in v0.9.0

func (rb *RemittanceBeneficiary) FormatTownName(options FormatOptions) string

FormatTownName returns TownName formatted according to the FormatOptions

func (*RemittanceBeneficiary) IdentificationCodeField

func (rb *RemittanceBeneficiary) IdentificationCodeField() string

IdentificationCodeField gets a string of the IdentificationCode field

func (*RemittanceBeneficiary) IdentificationNumberField

func (rb *RemittanceBeneficiary) IdentificationNumberField() string

IdentificationNumberField gets a string of the IdentificationNumber field

func (*RemittanceBeneficiary) IdentificationNumberIssuerField

func (rb *RemittanceBeneficiary) IdentificationNumberIssuerField() string

IdentificationNumberIssuerField gets a string of the IdentificationNumberIssuer field

func (*RemittanceBeneficiary) IdentificationTypeField

func (rb *RemittanceBeneficiary) IdentificationTypeField() string

IdentificationTypeField gets a string of the IdentificationType field

func (*RemittanceBeneficiary) NameField

func (rb *RemittanceBeneficiary) NameField() string

NameField gets a string of the Name field

func (*RemittanceBeneficiary) Parse

func (rb *RemittanceBeneficiary) Parse(record string) error

Parse takes the input string and parses the RemittanceBeneficiary values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*RemittanceBeneficiary) PostCodeField

func (rb *RemittanceBeneficiary) PostCodeField() string

PostCodeField gets a string of the PostCode field

func (*RemittanceBeneficiary) StreetNameField

func (rb *RemittanceBeneficiary) StreetNameField() string

StreetNameField gets a string of the StreetName field

func (*RemittanceBeneficiary) String

func (rb *RemittanceBeneficiary) String() string

String returns a fixed-width RemittanceBeneficiary record

func (*RemittanceBeneficiary) SubDepartmentField

func (rb *RemittanceBeneficiary) SubDepartmentField() string

SubDepartmentField gets a string of the SubDepartment field

func (*RemittanceBeneficiary) TownNameField

func (rb *RemittanceBeneficiary) TownNameField() string

TownNameField gets a string of the TownName field

func (*RemittanceBeneficiary) UnmarshalJSON added in v0.6.2

func (rb *RemittanceBeneficiary) UnmarshalJSON(data []byte) error

func (*RemittanceBeneficiary) Validate

func (rb *RemittanceBeneficiary) Validate() error

Validate performs WIRE format rule checks on RemittanceBeneficiary and returns an error if not Validated The first error encountered is returned and stops that parsing. * Name is mandatory. * Identification Number

  • Not permitted unless Identification Type and Identification Code are present.
  • Not permitted for Identification Code PICDateBirthPlace.

* Identification Number Issuer

  • Not permitted unless Identification Type, Identification Code and Identification Number are present.
  • Not permitted for Identification Code SWBB and PICDateBirthPlace.

* Date & Place of Birth is only permitted for Identification Code PICDateBirthPlace.

type RemittanceData

type RemittanceData struct {
	// Name
	Name string `json:"name,omitempty"`
	// DateBirthPlace
	DateBirthPlace string `json:"dateBirthPlace,omitempty"`
	// AddressType
	AddressType string `json:"addressType,omitempty"`
	// Department
	Department string `json:"department,omitempty"`
	// SubDepartment
	SubDepartment string `json:"subDepartment,omitempty"`
	// StreetName
	StreetName string `json:"streetName,omitempty"`
	// BuildingNumber
	BuildingNumber string `json:"buildingNumber,omitempty"`
	// PostCode
	PostCode string `json:"postCode,omitempty"`
	// TownName
	TownName string `json:"townName,omitempty"`
	// CountrySubDivisionState
	CountrySubDivisionState string `json:"countrySubDivisionState,omitempty"`
	// Country
	Country string `json:"country,omitempty"`
	// AddressLineOne
	AddressLineOne string `json:"addressLineOne,omitempty"`
	// AddressLineTwo
	AddressLineTwo string `json:"addressLineTwo,omitempty"`
	// AddressLineThree
	AddressLineThree string `json:"addressLineThree,omitempty"`
	// AddressLineFour
	AddressLineFour string `json:"addressLineFour,omitempty"`
	// AddressLineFive
	AddressLineFive string `json:"addressLineFive,omitempty"`
	// AddressLineSix
	AddressLineSix string `json:"addressLineSix,omitempty"`
	// AddressLineSeven
	AddressLineSeven string `json:"addressLineSeven,omitempty"`
	// CountryOfResidence
	CountryOfResidence string `json:"countryOfResidence,omitempty"`
}

RemittanceData is remittance data

type RemittanceFreeText

type RemittanceFreeText struct {

	// LineOne
	LineOne string `json:"lineOne,omitempty"`
	// LineTwo
	LineTwo string `json:"lineTwo,omitempty"`
	// LineThree
	LineThree string `json:"lineThree,omitempty"`
	// contains filtered or unexported fields
}

RemittanceFreeText is the remittance free text

func NewRemittanceFreeText

func NewRemittanceFreeText() *RemittanceFreeText

NewRemittanceFreeText returns a new RemittanceFreeText

func (*RemittanceFreeText) Format added in v0.9.0

func (rft *RemittanceFreeText) Format(options FormatOptions) string

Format returns a RemittanceFreeText record formatted according to the FormatOptions

func (*RemittanceFreeText) FormatLineOne added in v0.9.0

func (rft *RemittanceFreeText) FormatLineOne(options FormatOptions) string

FormatLineOne returns LineOne formatted according to the FormatOptions

func (*RemittanceFreeText) FormatLineThree added in v0.9.0

func (rft *RemittanceFreeText) FormatLineThree(options FormatOptions) string

FormatLineThree returns LineThree formatted according to the FormatOptions

func (*RemittanceFreeText) FormatLineTwo added in v0.9.0

func (rft *RemittanceFreeText) FormatLineTwo(options FormatOptions) string

FormatLineTwo returns LineTwo formatted according to the FormatOptions

func (*RemittanceFreeText) LineOneField

func (rft *RemittanceFreeText) LineOneField() string

LineOneField gets a string of the LineOne field

func (*RemittanceFreeText) LineThreeField

func (rft *RemittanceFreeText) LineThreeField() string

LineThreeField gets a string of the LineThree field

func (*RemittanceFreeText) LineTwoField

func (rft *RemittanceFreeText) LineTwoField() string

LineTwoField gets a string of the LineTwo field

func (*RemittanceFreeText) Parse

func (rft *RemittanceFreeText) Parse(record string) error

Parse takes the input string and parses the RemittanceFreeText values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*RemittanceFreeText) String

func (rft *RemittanceFreeText) String() string

String returns a fixed-width RemittanceFreeText record

func (*RemittanceFreeText) UnmarshalJSON added in v0.6.2

func (rft *RemittanceFreeText) UnmarshalJSON(data []byte) error

func (*RemittanceFreeText) Validate

func (rft *RemittanceFreeText) Validate() error

Validate performs WIRE format rule checks on RemittanceFreeText and returns an error if not Validated The first error encountered is returned and stops that parsing.

type RemittanceOriginator

type RemittanceOriginator struct {

	// IdentificationType is identification type
	IdentificationType string `json:"identificationType,omitempty"`
	// IdentificationCode  Organization Identification Codes  * `BANK` - Bank Party Identification * `CUST` - Customer Number * `DUNS` - Data Universal Number System (Dun & Bradstreet) * `EMPL` - Employer Identification Number * `GS1G` - Global Location Number * `PROP` - Proprietary Identification Number * `SWBB` - SWIFT BIC or BEI * `TXID` - Tax Identification Number  Private Identification Codes  * `ARNU` - Alien Registration Number * `CCPT` - Passport Number * `CUST` - Customer Number * `DPOB` - Date & Place of Birth * `DRLC` - Driver’s License Number * `EMPL` - Employee Identification Number * `NIDN` - National Identity Number * `PROP` - Proprietary Identification Number * `SOSE` - Social Security Number * `TXID` - Tax Identification Number
	IdentificationCode string `json:"identificationCode,omitempty"`
	// IdentificationNumber
	IdentificationNumber string `json:"identificationNumber,omitempty"`
	// IdentificationNumberIssuer
	IdentificationNumberIssuer string `json:"identificationNumberIssuer,omitempty"`
	// RemittanceData
	RemittanceData RemittanceData `json:"remittanceData,omitempty"`
	// ContactName
	ContactName string `json:"contactName,omitempty"`
	// ContactPhoneNumber
	ContactPhoneNumber string `json:"contactPhoneNumber,omitempty"`
	// ContactMobileNumber
	ContactMobileNumber string `json:"contactMobileNumber,omitempty"`
	// ContactFaxNumber
	ContactFaxNumber string `json:"contactFaxNumber,omitempty"`
	// ContactElectronicAddress ( i.e., E-mail or URL address)
	ContactElectronicAddress string `json:"contactElectronicAddress,omitempty"`
	// ContactOther
	ContactOther string `json:"contactOther,omitempty"`
	// contains filtered or unexported fields
}

RemittanceOriginator is remittance originator

func NewRemittanceOriginator

func NewRemittanceOriginator() *RemittanceOriginator

NewRemittanceOriginator returns a new RemittanceOriginator

func (*RemittanceOriginator) AddressLineFiveField

func (ro *RemittanceOriginator) AddressLineFiveField() string

AddressLineFiveField gets a string of the AddressLineFive field

func (*RemittanceOriginator) AddressLineFourField

func (ro *RemittanceOriginator) AddressLineFourField() string

AddressLineFourField gets a string of the AddressLineFour field

func (*RemittanceOriginator) AddressLineOneField

func (ro *RemittanceOriginator) AddressLineOneField() string

AddressLineOneField gets a string of the AddressLineOne field

func (*RemittanceOriginator) AddressLineSevenField

func (ro *RemittanceOriginator) AddressLineSevenField() string

AddressLineSevenField gets a string of the AddressLineSeven field

func (*RemittanceOriginator) AddressLineSixField

func (ro *RemittanceOriginator) AddressLineSixField() string

AddressLineSixField gets a string of the AddressLineSix field

func (*RemittanceOriginator) AddressLineThreeField

func (ro *RemittanceOriginator) AddressLineThreeField() string

AddressLineThreeField gets a string of the AddressLineThree field

func (*RemittanceOriginator) AddressLineTwoField

func (ro *RemittanceOriginator) AddressLineTwoField() string

AddressLineTwoField gets a string of the AddressLineTwo field

func (*RemittanceOriginator) AddressTypeField

func (ro *RemittanceOriginator) AddressTypeField() string

AddressTypeField gets a string of the AddressType field

func (*RemittanceOriginator) BuildingNumberField

func (ro *RemittanceOriginator) BuildingNumberField() string

BuildingNumberField gets a string of the BuildingNumber field

func (*RemittanceOriginator) ContactElectronicAddressField

func (ro *RemittanceOriginator) ContactElectronicAddressField() string

ContactElectronicAddressField gets a string of the ContactElectronicAddress field

func (*RemittanceOriginator) ContactFaxNumberField

func (ro *RemittanceOriginator) ContactFaxNumberField() string

ContactFaxNumberField gets a string of the ContactFaxNumber field

func (*RemittanceOriginator) ContactMobileNumberField

func (ro *RemittanceOriginator) ContactMobileNumberField() string

ContactMobileNumberField gets a string of the ContactMobileNumber field

func (*RemittanceOriginator) ContactNameField

func (ro *RemittanceOriginator) ContactNameField() string

ContactNameField gets a string of the ContactName field

func (*RemittanceOriginator) ContactOtherField

func (ro *RemittanceOriginator) ContactOtherField() string

ContactOtherField gets a string of the ContactOther field

func (*RemittanceOriginator) ContactPhoneNumberField

func (ro *RemittanceOriginator) ContactPhoneNumberField() string

ContactPhoneNumberField gets a string of the ContactPhoneNumber field

func (*RemittanceOriginator) CountryField

func (ro *RemittanceOriginator) CountryField() string

CountryField gets a string of the Country field

func (*RemittanceOriginator) CountryOfResidenceField

func (ro *RemittanceOriginator) CountryOfResidenceField() string

CountryOfResidenceField gets a string of the CountryOfResidence field

func (*RemittanceOriginator) CountrySubDivisionStateField

func (ro *RemittanceOriginator) CountrySubDivisionStateField() string

CountrySubDivisionStateField gets a string of the CountrySubDivisionState field

func (*RemittanceOriginator) DateBirthPlaceField

func (ro *RemittanceOriginator) DateBirthPlaceField() string

DateBirthPlaceField gets a string of the DateBirthPlace field

func (*RemittanceOriginator) DepartmentField

func (ro *RemittanceOriginator) DepartmentField() string

DepartmentField gets a string of the Department field

func (*RemittanceOriginator) Format added in v0.9.0

func (ro *RemittanceOriginator) Format(options FormatOptions) string

Format returns a RemittanceOriginator record formatted according to the FormatOptions

func (*RemittanceOriginator) FormatAddressLineFive added in v0.9.0

func (ro *RemittanceOriginator) FormatAddressLineFive(options FormatOptions) string

FormatAddressLineFive returns AddressLineFive formatted according to the FormatOptions

func (*RemittanceOriginator) FormatAddressLineFour added in v0.9.0

func (ro *RemittanceOriginator) FormatAddressLineFour(options FormatOptions) string

FormatAddressLineFour returns AddressLineFour formatted according to the FormatOptions

func (*RemittanceOriginator) FormatAddressLineOne added in v0.9.0

func (ro *RemittanceOriginator) FormatAddressLineOne(options FormatOptions) string

FormatAddressLineOne returns AddressLineOne formatted according to the FormatOptions

func (*RemittanceOriginator) FormatAddressLineSeven added in v0.9.0

func (ro *RemittanceOriginator) FormatAddressLineSeven(options FormatOptions) string

FormatAddressLineSeven returns AddressLineSeven formatted according to the FormatOptions

func (*RemittanceOriginator) FormatAddressLineSix added in v0.9.0

func (ro *RemittanceOriginator) FormatAddressLineSix(options FormatOptions) string

FormatAddressLineSix returns AddressLineSix formatted according to the FormatOptions

func (*RemittanceOriginator) FormatAddressLineThree added in v0.9.0

func (ro *RemittanceOriginator) FormatAddressLineThree(options FormatOptions) string

FormatAddressLineThree returns AddressLineThree formatted according to the FormatOptions

func (*RemittanceOriginator) FormatAddressLineTwo added in v0.9.0

func (ro *RemittanceOriginator) FormatAddressLineTwo(options FormatOptions) string

FormatAddressLineTwo returns AddressLineTwo formatted according to the FormatOptions

func (*RemittanceOriginator) FormatAddressType added in v0.9.0

func (ro *RemittanceOriginator) FormatAddressType(options FormatOptions) string

FormatAddressType returns AddressType formatted according to the FormatOptions

func (*RemittanceOriginator) FormatBuildingNumber added in v0.9.0

func (ro *RemittanceOriginator) FormatBuildingNumber(options FormatOptions) string

FormatBuildingNumber returns BuildingNumber formatted according to the FormatOptions

func (*RemittanceOriginator) FormatContactElectronicAddress added in v0.9.0

func (ro *RemittanceOriginator) FormatContactElectronicAddress(options FormatOptions) string

FormatContactElectronicAddress returns ContactElectronicAddress formatted according to the FormatOptions

func (*RemittanceOriginator) FormatContactFaxNumber added in v0.9.0

func (ro *RemittanceOriginator) FormatContactFaxNumber(options FormatOptions) string

FormatContactFaxNumber returns ContactFaxNumber formatted according to the FormatOptions

func (*RemittanceOriginator) FormatContactMobileNumber added in v0.9.0

func (ro *RemittanceOriginator) FormatContactMobileNumber(options FormatOptions) string

FormatContactMobileNumber returns ContactMobileNumber formatted according to the FormatOptions

func (*RemittanceOriginator) FormatContactName added in v0.9.0

func (ro *RemittanceOriginator) FormatContactName(options FormatOptions) string

FormatContactName returns ContactName formatted according to the FormatOptions

func (*RemittanceOriginator) FormatContactOther added in v0.9.0

func (ro *RemittanceOriginator) FormatContactOther(options FormatOptions) string

FormatContactOther returns ContactOther formatted according to the FormatOptions

func (*RemittanceOriginator) FormatContactPhoneNumber added in v0.9.0

func (ro *RemittanceOriginator) FormatContactPhoneNumber(options FormatOptions) string

FormatContactPhoneNumber returns ContactPhoneNumber formatted according to the FormatOptions

func (*RemittanceOriginator) FormatCountry added in v0.9.0

func (ro *RemittanceOriginator) FormatCountry(options FormatOptions) string

FormatCountry returns Country formatted according to the FormatOptions

func (*RemittanceOriginator) FormatCountryOfResidence added in v0.9.0

func (ro *RemittanceOriginator) FormatCountryOfResidence(options FormatOptions) string

FormatCountryOfResidence returns CountryOfResidence formatted according to the FormatOptions

func (*RemittanceOriginator) FormatCountrySubDivisionState added in v0.9.0

func (ro *RemittanceOriginator) FormatCountrySubDivisionState(options FormatOptions) string

FormatCountrySubDivisionState returns CountrySubDivisionState formatted according to the FormatOptions

func (*RemittanceOriginator) FormatDateBirthPlace added in v0.9.0

func (ro *RemittanceOriginator) FormatDateBirthPlace(options FormatOptions) string

FormatDateBirthPlace returns DateBirthPlace formatted according to the FormatOptions

func (*RemittanceOriginator) FormatDepartment added in v0.9.0

func (ro *RemittanceOriginator) FormatDepartment(options FormatOptions) string

FormatDepartment returns Department formatted according to the FormatOptions

func (*RemittanceOriginator) FormatIdentificationCode added in v0.9.0

func (ro *RemittanceOriginator) FormatIdentificationCode(options FormatOptions) string

FormatIdentificationCode returns IdentificationCode formatted according to the FormatOptions

func (*RemittanceOriginator) FormatIdentificationNumber added in v0.9.0

func (ro *RemittanceOriginator) FormatIdentificationNumber(options FormatOptions) string

FormatIdentificationNumber returns IdentificationNumber formatted according to the FormatOptions

func (*RemittanceOriginator) FormatIdentificationNumberIssuer added in v0.9.0

func (ro *RemittanceOriginator) FormatIdentificationNumberIssuer(options FormatOptions) string

FormatIdentificationNumberIssuer returns IdentificationNumberIssuer formatted according to the FormatOptions

func (*RemittanceOriginator) FormatIdentificationType added in v0.9.0

func (ro *RemittanceOriginator) FormatIdentificationType(options FormatOptions) string

FormatIdentificationType returns IdentificationType formatted according to the FormatOptions

func (*RemittanceOriginator) FormatName added in v0.9.0

func (ro *RemittanceOriginator) FormatName(options FormatOptions) string

FormatName returns Name formatted according to the FormatOptions

func (*RemittanceOriginator) FormatPostCode added in v0.9.0

func (ro *RemittanceOriginator) FormatPostCode(options FormatOptions) string

FormatPostCode returns PostCode formatted according to the FormatOptions

func (*RemittanceOriginator) FormatStreetName added in v0.9.0

func (ro *RemittanceOriginator) FormatStreetName(options FormatOptions) string

FormatStreetName returns StreetName formatted according to the FormatOptions

func (*RemittanceOriginator) FormatSubDepartment added in v0.9.0

func (ro *RemittanceOriginator) FormatSubDepartment(options FormatOptions) string

FormatSubDepartment returns SubDepartment formatted according to the FormatOptions

func (*RemittanceOriginator) FormatTownName added in v0.9.0

func (ro *RemittanceOriginator) FormatTownName(options FormatOptions) string

FormatTownName returns TownName formatted according to the FormatOptions

func (*RemittanceOriginator) IdentificationCodeField

func (ro *RemittanceOriginator) IdentificationCodeField() string

IdentificationCodeField gets a string of the IdentificationCode field

func (*RemittanceOriginator) IdentificationNumberField

func (ro *RemittanceOriginator) IdentificationNumberField() string

IdentificationNumberField gets a string of the IdentificationNumber field

func (*RemittanceOriginator) IdentificationNumberIssuerField

func (ro *RemittanceOriginator) IdentificationNumberIssuerField() string

IdentificationNumberIssuerField gets a string of the IdentificationNumberIssuer field

func (*RemittanceOriginator) IdentificationTypeField

func (ro *RemittanceOriginator) IdentificationTypeField() string

IdentificationTypeField gets a string of the IdentificationType field

func (*RemittanceOriginator) NameField

func (ro *RemittanceOriginator) NameField() string

NameField gets a string of the Name field

func (*RemittanceOriginator) Parse

func (ro *RemittanceOriginator) Parse(record string) error

Parse takes the input string and parses the RemittanceOriginator values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*RemittanceOriginator) PostCodeField

func (ro *RemittanceOriginator) PostCodeField() string

PostCodeField gets a string of the PostCode field

func (*RemittanceOriginator) StreetNameField

func (ro *RemittanceOriginator) StreetNameField() string

StreetNameField gets a string of the StreetName field

func (*RemittanceOriginator) String

func (ro *RemittanceOriginator) String() string

String returns a fixed-width RemittanceOriginator record

func (*RemittanceOriginator) SubDepartmentField

func (ro *RemittanceOriginator) SubDepartmentField() string

SubDepartmentField gets a string of the SubDepartment field

func (*RemittanceOriginator) TownNameField

func (ro *RemittanceOriginator) TownNameField() string

TownNameField gets a string of the TownName field

func (*RemittanceOriginator) UnmarshalJSON added in v0.6.2

func (ro *RemittanceOriginator) UnmarshalJSON(data []byte) error

func (*RemittanceOriginator) Validate

func (ro *RemittanceOriginator) Validate() error

Validate performs WIRE format rule checks on RemittanceOriginator and returns an error if not Validated The first error encountered is returned and stops that parsing. * Identification Type, Identification Code and Name are mandatory. * Identification Number is mandatory for all Identification Codes except PICDateBirthPlace. * Identification Number is not permitted for Identification Code PICDateBirthPlace. * Identification Number Issuer is not permitted for Identification Code OICSWIFTBICORBEI and PICDateBirthPlace. * Date & Place of Birth is only permitted for Identification Code PICDateBirthPlace.

type SecondaryRemittanceDocument

type SecondaryRemittanceDocument struct {

	// DocumentTypeCode  * `AROI` - Accounts Receivable Open Item * `DISP` - Dispatch Advice * `FXDR` - Foreign Exchange Deal Reference * `PROP` - Proprietary Document Type PUOR Purchase Order * `RADM` - Remittance Advice Message * `RPIN` - Related Payment Instruction * `SCOR1` - Structured Communication Reference VCHR Voucher
	DocumentTypeCode string `json:"documentTypeCode,omitempty"`
	// proprietaryDocumentTypeCode
	ProprietaryDocumentTypeCode string `json:"proprietaryDocumentTypeCode,omitempty"`
	// documentIdentificationNumber
	DocumentIdentificationNumber string `json:"documentIdentificationNumber,omitempty"`
	// Issuer
	Issuer string `json:"issuer,omitempty"`
	// contains filtered or unexported fields
}

SecondaryRemittanceDocument is the date of remittance document

func NewSecondaryRemittanceDocument

func NewSecondaryRemittanceDocument() *SecondaryRemittanceDocument

NewSecondaryRemittanceDocument returns a new SecondaryRemittanceDocument

func (*SecondaryRemittanceDocument) DocumentTypeCodeField

func (srd *SecondaryRemittanceDocument) DocumentTypeCodeField() string

DocumentTypeCodeField

func (*SecondaryRemittanceDocument) Format added in v0.9.0

func (srd *SecondaryRemittanceDocument) Format(options FormatOptions) string

Format returns a SecondaryRemittanceDocument record formatted according to the FormatOptions

func (*SecondaryRemittanceDocument) FormatDocumentIdentificationNumber added in v0.9.0

func (srd *SecondaryRemittanceDocument) FormatDocumentIdentificationNumber(options FormatOptions) string

FormatDocumentIdentificationNumber returns DocumentIdentificationNumber formatted according to the FormatOptions

func (*SecondaryRemittanceDocument) FormatDocumentTypeCode added in v0.9.0

func (srd *SecondaryRemittanceDocument) FormatDocumentTypeCode(options FormatOptions) string

FormatDocumentTypeCode returns DocumentTypeCode formatted according to the FormatOptions

func (*SecondaryRemittanceDocument) FormatIssuer added in v0.9.0

func (srd *SecondaryRemittanceDocument) FormatIssuer(options FormatOptions) string

FormatIssuer returns Issuer formatted according to the FormatOptions

func (*SecondaryRemittanceDocument) FormatProprietaryDocumentTypeCode added in v0.9.0

func (srd *SecondaryRemittanceDocument) FormatProprietaryDocumentTypeCode(options FormatOptions) string

FormatProprietaryDocumentTypeCode returns ProprietaryDocumentTypeCode formatted according to the FormatOptions

func (*SecondaryRemittanceDocument) Parse

func (srd *SecondaryRemittanceDocument) Parse(record string) error

Parse takes the input string and parses the SecondaryRemittanceDocument values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*SecondaryRemittanceDocument) String

func (srd *SecondaryRemittanceDocument) String() string

String returns a fixed-width SecondaryRemittanceDocument record

func (*SecondaryRemittanceDocument) UnmarshalJSON added in v0.6.2

func (srd *SecondaryRemittanceDocument) UnmarshalJSON(data []byte) error

func (*SecondaryRemittanceDocument) Validate

func (srd *SecondaryRemittanceDocument) Validate() error

Validate performs WIRE format rule checks on SecondaryRemittanceDocument and returns an error if not Validated The first error encountered is returned and stops that parsing. * Document Type Code and Document Identification Number are mandatory. * Proprietary Document Type Code is mandatory for Document Type Code PROP; otherwise not permitted.

type SenderDepositoryInstitution

type SenderDepositoryInstitution struct {

	// SenderABANumber
	SenderABANumber string `json:"senderABANumber"`
	// SenderShortName
	SenderShortName string `json:"senderShortName,omitempty"`
	// contains filtered or unexported fields
}

SenderDepositoryInstitution {3100}

func NewSenderDepositoryInstitution

func NewSenderDepositoryInstitution() *SenderDepositoryInstitution

NewSenderDepositoryInstitution returns a new SenderDepositoryInstitution

func (*SenderDepositoryInstitution) Format added in v0.9.0

func (sdi *SenderDepositoryInstitution) Format(options FormatOptions) string

Format returns a SenderDepositoryInstitution record formatted according to the FormatOptions

func (*SenderDepositoryInstitution) FormatSenderABANumber added in v0.9.0

func (sdi *SenderDepositoryInstitution) FormatSenderABANumber(options FormatOptions) string

FormatSenderABANumber returns SenderABANumber formatted according to the FormatOptions

func (*SenderDepositoryInstitution) FormatSenderShortName added in v0.9.0

func (sdi *SenderDepositoryInstitution) FormatSenderShortName(options FormatOptions) string

FormatSenderShortName returns SenderShortName formatted according to the FormatOptions

func (*SenderDepositoryInstitution) Parse

func (sdi *SenderDepositoryInstitution) Parse(record string) error

Parse takes the input string and parses the SenderDepositoryInstitution values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*SenderDepositoryInstitution) SenderABANumberField

func (sdi *SenderDepositoryInstitution) SenderABANumberField() string

SenderABANumberField gets a string of the SenderABANumber field

func (*SenderDepositoryInstitution) SenderShortNameField

func (sdi *SenderDepositoryInstitution) SenderShortNameField() string

SenderShortNameField gets a string of the SenderShortName field

func (*SenderDepositoryInstitution) String

func (sdi *SenderDepositoryInstitution) String() string

String returns a fixed-width SenderDepositoryInstitution record

func (*SenderDepositoryInstitution) UnmarshalJSON added in v0.6.2

func (sdi *SenderDepositoryInstitution) UnmarshalJSON(data []byte) error

func (*SenderDepositoryInstitution) Validate

func (sdi *SenderDepositoryInstitution) Validate() error

Validate performs WIRE format rule checks on SenderDepositoryInstitution and returns an error if not Validated The first error encountered is returned and stops that parsing.

type SenderReference

type SenderReference struct {

	// SenderReference
	SenderReference string `json:"senderReference,omitempty"`
	// contains filtered or unexported fields
}

SenderReference is the SenderReference of the wire

func NewSenderReference

func NewSenderReference() *SenderReference

NewSenderReference returns a new SenderReference

func (*SenderReference) Format added in v0.9.0

func (sr *SenderReference) Format(options FormatOptions) string

Format returns a SenderReference record formatted according to the FormatOptions

func (*SenderReference) FormatSenderReference added in v0.9.0

func (sr *SenderReference) FormatSenderReference(options FormatOptions) string

FormatSenderReference returns SenderReference formatted according to the FormatOptions

func (*SenderReference) Parse

func (sr *SenderReference) Parse(record string) error

Parse takes the input string and parses the SenderReference values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*SenderReference) String

func (sr *SenderReference) String() string

String returns a fixed-width SenderReference record

func (*SenderReference) UnmarshalJSON added in v0.6.2

func (sr *SenderReference) UnmarshalJSON(data []byte) error

func (*SenderReference) Validate

func (sr *SenderReference) Validate() error

Validate performs WIRE format rule checks on SenderReference and returns an error if not Validated The first error encountered is returned and stops that parsing.

type SenderSupplied

type SenderSupplied struct {

	// FormatVersion 30
	FormatVersion string `json:"formatVersion"`
	// UserRequestCorrelation
	UserRequestCorrelation string `json:"userRequestCorrelation,omitempty"`
	// TestProductionCode T: Test P: Production
	TestProductionCode string `json:"testProductionCode"`
	// MessageDuplicationCode ”: Original Message P: Resend
	MessageDuplicationCode string `json:"messageDuplicationCode"`
	// contains filtered or unexported fields
}

SenderSupplied {1500}

func NewSenderSupplied

func NewSenderSupplied() *SenderSupplied

NewSenderSupplied returns a new SenderSupplied

func (*SenderSupplied) Format added in v0.9.0

func (ss *SenderSupplied) Format(options FormatOptions) string

Format returns a SenderSupplied record formatted according to the FormatOptions

func (*SenderSupplied) FormatMessageDuplicationCode added in v0.9.0

func (ss *SenderSupplied) FormatMessageDuplicationCode(options FormatOptions) string

FormatMessageDuplicationCode returns MessageDuplicationCode formatted according to the FormatOptions

func (*SenderSupplied) FormatUserRequestCorrelation added in v0.9.0

func (ss *SenderSupplied) FormatUserRequestCorrelation(options FormatOptions) string

FormatUserRequestCorrelation returns UserRequestCorrelation formatted according to the FormatOptions

func (*SenderSupplied) FormatVersionField

func (ss *SenderSupplied) FormatVersionField() string

FormatVersionField gets a string of the FormatVersion field

func (*SenderSupplied) MessageDuplicationCodeField

func (ss *SenderSupplied) MessageDuplicationCodeField() string

MessageDuplicationCodeField gets a string of the MessageDuplicationCode field

func (*SenderSupplied) Parse

func (ss *SenderSupplied) Parse(record string) error

Parse takes the input string and parses the SenderSupplied values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*SenderSupplied) String

func (ss *SenderSupplied) String() string

String returns a fixed-width SenderSupplied record

func (*SenderSupplied) TestProductionCodeField

func (ss *SenderSupplied) TestProductionCodeField() string

TestProductionCodeField gets a string of the TestProductionCoden field

func (*SenderSupplied) UnmarshalJSON added in v0.6.2

func (ss *SenderSupplied) UnmarshalJSON(data []byte) error

func (*SenderSupplied) UserRequestCorrelationField

func (ss *SenderSupplied) UserRequestCorrelationField() string

UserRequestCorrelationField gets a string of the UserRequestCorrelation field

func (*SenderSupplied) Validate

func (ss *SenderSupplied) Validate() error

Validate performs WIRE format rule checks on SenderSupplied and returns an error if not Validated The first error encountered is returned and stops that parsing.

type SenderToReceiver

type SenderToReceiver struct {

	// CoverPayment is CoverPayment
	CoverPayment CoverPayment `json:"coverPayment,omitempty"`
	// contains filtered or unexported fields
}

SenderToReceiver is the remittance information

func NewSenderToReceiver

func NewSenderToReceiver() *SenderToReceiver

NewSenderToReceiver returns a new SenderToReceiver

func (*SenderToReceiver) Format added in v0.9.0

func (str *SenderToReceiver) Format(options FormatOptions) string

Format returns a SenderToReceiver record formatted according to the FormatOptions

func (*SenderToReceiver) FormatSwiftFieldTag added in v0.9.0

func (str *SenderToReceiver) FormatSwiftFieldTag(options FormatOptions) string

FormatSwiftFieldTag returns CoverPayment.SwiftFieldTag formatted according to the FormatOptions

func (*SenderToReceiver) FormatSwiftLineFive added in v0.9.0

func (str *SenderToReceiver) FormatSwiftLineFive(options FormatOptions) string

FormatSwiftLineFive returns CoverPayment.SwiftLineFive formatted according to the FormatOptions

func (*SenderToReceiver) FormatSwiftLineFour added in v0.9.0

func (str *SenderToReceiver) FormatSwiftLineFour(options FormatOptions) string

FormatSwiftLineFour returns CoverPayment.SwiftLineFour formatted according to the FormatOptions

func (*SenderToReceiver) FormatSwiftLineOne added in v0.9.0

func (str *SenderToReceiver) FormatSwiftLineOne(options FormatOptions) string

FormatSwiftLineOne returns CoverPayment.SwiftLineOne formatted according to the FormatOptions

func (*SenderToReceiver) FormatSwiftLineSix added in v0.9.0

func (str *SenderToReceiver) FormatSwiftLineSix(options FormatOptions) string

FormatSwiftLineSix returns CoverPayment.SwiftLineSix formatted according to the FormatOptions

func (*SenderToReceiver) FormatSwiftLineThree added in v0.9.0

func (str *SenderToReceiver) FormatSwiftLineThree(options FormatOptions) string

FormatSwiftLineThree returns CoverPayment.SwiftLineThree formatted according to the FormatOptions

func (*SenderToReceiver) FormatSwiftLineTwo added in v0.9.0

func (str *SenderToReceiver) FormatSwiftLineTwo(options FormatOptions) string

FormatSwiftLineTwo returns CoverPayment.SwiftLineTwo formatted according to the FormatOptions

func (*SenderToReceiver) Parse

func (str *SenderToReceiver) Parse(record string) error

Parse takes the input string and parses the SenderToReceiver values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*SenderToReceiver) String

func (str *SenderToReceiver) String() string

String returns a fixed-width SenderToReceiver record

func (*SenderToReceiver) SwiftFieldTagField

func (str *SenderToReceiver) SwiftFieldTagField() string

SwiftFieldTagField gets a string of the SwiftFieldTag field

func (*SenderToReceiver) SwiftLineFiveField

func (str *SenderToReceiver) SwiftLineFiveField() string

SwiftLineFiveField gets a string of the SwiftLineFive field

func (*SenderToReceiver) SwiftLineFourField

func (str *SenderToReceiver) SwiftLineFourField() string

SwiftLineFourField gets a string of the SwiftLineFour field

func (*SenderToReceiver) SwiftLineOneField

func (str *SenderToReceiver) SwiftLineOneField() string

SwiftLineOneField gets a string of the SwiftLineOne field

func (*SenderToReceiver) SwiftLineSixField

func (str *SenderToReceiver) SwiftLineSixField() string

SwiftLineSixField gets a string of the SwiftLineSix field

func (*SenderToReceiver) SwiftLineThreeField

func (str *SenderToReceiver) SwiftLineThreeField() string

SwiftLineThreeField gets a string of the SwiftLineThree field

func (*SenderToReceiver) SwiftLineTwoField

func (str *SenderToReceiver) SwiftLineTwoField() string

SwiftLineTwoField gets a string of the SwiftLineTwo field

func (*SenderToReceiver) UnmarshalJSON added in v0.6.2

func (str *SenderToReceiver) UnmarshalJSON(data []byte) error

func (*SenderToReceiver) Validate

func (str *SenderToReceiver) Validate() error

Validate performs WIRE format rule checks on SenderToReceiver and returns an error if not Validated The first error encountered is returned and stops that parsing.

type ServiceMessage

type ServiceMessage struct {

	// LineOne
	LineOne string `json:"lineOne,omitempty"`
	// LineTwo
	LineTwo string `json:"lineTwo,omitempty"`
	// LineThree
	LineThree string `json:"lineThree,omitempty"`
	// LineFour
	LineFour string `json:"lineFour,omitempty"`
	// LineFive
	LineFive string `json:"lineFive,omitempty"`
	// LineSix
	LineSix string `json:"lineSix,omitempty"`
	// LineSeven
	LineSeven string `json:"lineSeven,omitempty"`
	// LineEight
	LineEight string `json:"lineEight,omitempty"`
	// LineNine
	LineNine string `json:"lineNine,omitempty"`
	// LineTen
	LineTen string `json:"lineTen,omitempty"`
	// LineEleven
	LineEleven string `json:"lineEleven,omitempty"`
	// LineTwelve
	LineTwelve string `json:"lineTwelve,omitempty"`
	// contains filtered or unexported fields
}

ServiceMessage is the ServiceMessage of the wire

func NewServiceMessage

func NewServiceMessage() *ServiceMessage

NewServiceMessage returns a new ServiceMessage

func (*ServiceMessage) Format added in v0.9.0

func (sm *ServiceMessage) Format(options FormatOptions) string

Format returns a ServiceMessage record formatted according to the FormatOptions

func (*ServiceMessage) FormatLineEight added in v0.9.0

func (sm *ServiceMessage) FormatLineEight(options FormatOptions) string

FormatLineEight returns LineEight formatted according to the FormatOptions

func (*ServiceMessage) FormatLineEleven added in v0.9.0

func (sm *ServiceMessage) FormatLineEleven(options FormatOptions) string

FormatLineEleven returns LineEleven formatted according to the FormatOptions

func (*ServiceMessage) FormatLineFive added in v0.9.0

func (sm *ServiceMessage) FormatLineFive(options FormatOptions) string

FormatLineFive returns LineFive formatted according to the FormatOptions

func (*ServiceMessage) FormatLineFour added in v0.9.0

func (sm *ServiceMessage) FormatLineFour(options FormatOptions) string

FormatLineFour returns LineFour formatted according to the FormatOptions

func (*ServiceMessage) FormatLineNine added in v0.9.0

func (sm *ServiceMessage) FormatLineNine(options FormatOptions) string

FormatLineNine returns LineNine formatted according to the FormatOptions

func (*ServiceMessage) FormatLineOne added in v0.9.0

func (sm *ServiceMessage) FormatLineOne(options FormatOptions) string

FormatLineOne returns LineOne formatted according to the FormatOptions

func (*ServiceMessage) FormatLineSeven added in v0.9.0

func (sm *ServiceMessage) FormatLineSeven(options FormatOptions) string

FormatLineSeven returns LineSeven formatted according to the FormatOptions

func (*ServiceMessage) FormatLineSix added in v0.9.0

func (sm *ServiceMessage) FormatLineSix(options FormatOptions) string

FormatLineSix returns LineSix formatted according to the FormatOptions

func (*ServiceMessage) FormatLineTen added in v0.9.0

func (sm *ServiceMessage) FormatLineTen(options FormatOptions) string

FormatLineTen returns LineTen formatted according to the FormatOptions

func (*ServiceMessage) FormatLineThree added in v0.9.0

func (sm *ServiceMessage) FormatLineThree(options FormatOptions) string

FormatLineThree returns LineThree formatted according to the FormatOptions

func (*ServiceMessage) FormatLineTwelve added in v0.9.0

func (sm *ServiceMessage) FormatLineTwelve(options FormatOptions) string

FormatLineTwelve returns LineTwelve formatted according to the FormatOptions

func (*ServiceMessage) FormatLineTwo added in v0.9.0

func (sm *ServiceMessage) FormatLineTwo(options FormatOptions) string

FormatLineTwo returns LineTwo formatted according to the FormatOptions

func (*ServiceMessage) LineEightField

func (sm *ServiceMessage) LineEightField() string

LineEightField gets a string of the LineEight field

func (*ServiceMessage) LineElevenField

func (sm *ServiceMessage) LineElevenField() string

LineElevenField gets a string of the LineEleven field

func (*ServiceMessage) LineFiveField

func (sm *ServiceMessage) LineFiveField() string

LineFiveField gets a string of the LineFive field

func (*ServiceMessage) LineFourField

func (sm *ServiceMessage) LineFourField() string

LineFourField gets a string of the LineFour field

func (*ServiceMessage) LineNineField

func (sm *ServiceMessage) LineNineField() string

LineNineField gets a string of the LineNine field

func (*ServiceMessage) LineOneField

func (sm *ServiceMessage) LineOneField() string

LineOneField gets a string of the LineOne field

func (*ServiceMessage) LineSevenField

func (sm *ServiceMessage) LineSevenField() string

LineSevenField gets a string of the LineSeven field

func (*ServiceMessage) LineSixField

func (sm *ServiceMessage) LineSixField() string

LineSixField gets a string of the LineSix field

func (*ServiceMessage) LineTenField

func (sm *ServiceMessage) LineTenField() string

LineTenField gets a string of the LineTen field

func (*ServiceMessage) LineThreeField

func (sm *ServiceMessage) LineThreeField() string

LineThreeField gets a string of the LineThree field

func (*ServiceMessage) LineTwelveField

func (sm *ServiceMessage) LineTwelveField() string

LineTwelveField gets a string of the LineTwelve field

func (*ServiceMessage) LineTwoField

func (sm *ServiceMessage) LineTwoField() string

LineTwoField gets a string of the LineTwo field

func (*ServiceMessage) Parse

func (sm *ServiceMessage) Parse(record string) error

Parse takes the input string and parses the ServiceMessage values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*ServiceMessage) String

func (sm *ServiceMessage) String() string

String returns a fixed-width ServiceMessage record

func (*ServiceMessage) UnmarshalJSON added in v0.6.2

func (sm *ServiceMessage) UnmarshalJSON(data []byte) error

func (*ServiceMessage) Validate

func (sm *ServiceMessage) Validate() error

Validate performs WIRE format rule checks on ServiceMessage and returns an error if not Validated The first error encountered is returned and stops that parsing.

type TagWrongLengthErr

type TagWrongLengthErr struct {
	Message   string
	TagLength int
	Length    int
}

TagWrongLengthErr is the error given when a Tag is the wrong length

func NewTagMaxLengthErr added in v0.9.0

func NewTagMaxLengthErr(err error) TagWrongLengthErr

NewTagMaxLengthErr creates a new error of the TagWrongLengthErr type

func NewTagMinLengthErr added in v0.9.0

func NewTagMinLengthErr(tagLength, length int) TagWrongLengthErr

NewTagMinLengthErr creates a new error of the TagWrongLengthErr type

func NewTagWrongLengthErr

func NewTagWrongLengthErr(tagLength, length int) TagWrongLengthErr

NewTagWrongLengthErr creates a new error of the TagWrongLengthErr type

func (TagWrongLengthErr) Error

func (e TagWrongLengthErr) Error() string

type TypeSubType

type TypeSubType struct {

	// TypeCode
	TypeCode string `json:"typeCode"`
	// SubTypeCode
	SubTypeCode string `json:"subTypeCode"`
	// contains filtered or unexported fields
}

TypeSubType {1510}

func NewTypeSubType

func NewTypeSubType() *TypeSubType

NewTypeSubType returns a new TypeSubType

func (*TypeSubType) Parse

func (tst *TypeSubType) Parse(record string) error

Parse takes the input string and parses the TypeSubType values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*TypeSubType) String

func (tst *TypeSubType) String() string

String writes TypeSubType

func (*TypeSubType) SubTypeCodeField

func (tst *TypeSubType) SubTypeCodeField() string

SubTypeCodeField gets a string of the SubTypeCode field

func (*TypeSubType) TypeCodeField

func (tst *TypeSubType) TypeCodeField() string

TypeCodeField gets a string of the TypeCode field

func (*TypeSubType) UnmarshalJSON added in v0.6.2

func (tst *TypeSubType) UnmarshalJSON(data []byte) error

func (*TypeSubType) Validate

func (tst *TypeSubType) Validate() error

Validate performs WIRE format rule checks on TypeSubType and returns an error if not Validated The first error encountered is returned and stops that parsing.

type UnstructuredAddenda

type UnstructuredAddenda struct {

	// AddendaLength  Addenda Length must be numeric, padded with leading zeros if less than four characters and must equal length of content in Addenda Information (e.g., if content of Addenda Information is 987 characters, Addenda Length must be 0987).
	AddendaLength string `json:"addendaLength,omitempty"`
	// Addenda
	Addenda string `json:"addenda,omitempty"`
	// contains filtered or unexported fields
}

UnstructuredAddenda is the unstructured addenda information

func NewUnstructuredAddenda

func NewUnstructuredAddenda() *UnstructuredAddenda

NewUnstructuredAddenda returns a new UnstructuredAddenda

func (*UnstructuredAddenda) AddendaField

func (ua *UnstructuredAddenda) AddendaField() string

AddendaField gets a string of the Addenda field

func (*UnstructuredAddenda) AddendaLengthField

func (ua *UnstructuredAddenda) AddendaLengthField() string

AddendaLengthField gets a string of the AddendaLength field

func (*UnstructuredAddenda) Parse

func (ua *UnstructuredAddenda) Parse(record string) error

Parse takes the input string and parses the UnstructuredAddenda values

Parse provides no guarantee about all fields being filled in. Callers should make a Validate() call to confirm successful parsing and data validity.

func (*UnstructuredAddenda) String

func (ua *UnstructuredAddenda) String() string

String writes UnstructuredAddenda

func (*UnstructuredAddenda) UnmarshalJSON added in v0.6.2

func (ua *UnstructuredAddenda) UnmarshalJSON(data []byte) error

func (*UnstructuredAddenda) Validate

func (ua *UnstructuredAddenda) Validate() error

Validate performs WIRE format rule checks on UnstructuredAddenda and returns an error if not Validated The first error encountered is returned and stops that parsing. AddendaLength must be numeric, padded with leading zeros if less than four characters and must equal

length of content in Addenda Information (e.g., if content of Addenda Information is 987 characters,
Addenda Length must be 0987).

type ValidateOpts added in v0.13.0

type ValidateOpts struct {
	// SkipMandatoryIMAD skips checking that InputMessageAccountabilityData is mandatory tag.
	SkipMandatoryIMAD bool `json:"skipMandatoryIMAD"`

	// AllowMissingSenderSupplied allows the senderSupplied field to be omitted.
	AllowMissingSenderSupplied bool `json:"allowMissingSenderSupplied"`
}

ValidateOpts contains specific overrides from the default set of validations

type Writer

type Writer struct {
	FormatOptions
	// contains filtered or unexported fields
}

Writer struct

func NewWriter

func NewWriter(w io.Writer, opts ...OptionFunc) *Writer

NewWriter returns a new Writer that writes to w. If no opts are provided, the writer will default to fixed-length fields and use "\n" for newlines.

func (*Writer) Flush

func (w *Writer) Flush() error

Flush writes any buffered data to the underlying io.Writer. To check if an error occurred during the Flush, call Error. Flush writes any buffered data to the underlying io.Writer.

func (*Writer) Write

func (w *Writer) Write(file *File) error

Writer writes a single FEDWireMessage record to w options

first bool : has variable length
second bool : has not new line

Source Files

Jump to

Keyboard shortcuts

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