common

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultDateTimeFormat = "2006-01-02T15:04:05.999999999"
)

Variables

View Source
var DateTimeFormatString = DefaultDateTimeFormat

Functions

This section is empty.

Types

type AccountStatus3Code

type AccountStatus3Code string

May be one of ENAB, DISA, DELE, FORM

func (AccountStatus3Code) Validate

func (r AccountStatus3Code) Validate() error

type ActiveCurrencyCode

type ActiveCurrencyCode string

Must match the pattern [A-Z]{3,3}

func (ActiveCurrencyCode) Validate

func (r ActiveCurrencyCode) Validate() error

type ActiveOrHistoricCurrencyCode

type ActiveOrHistoricCurrencyCode string

Must match the pattern [A-Z]{3,3}

func (ActiveOrHistoricCurrencyCode) Validate

func (r ActiveOrHistoricCurrencyCode) Validate() error

type AddressType2Code

type AddressType2Code string

May be one of ADDR, PBOX, HOME, BIZZ, MLTO, DLVY

func (AddressType2Code) Validate

func (r AddressType2Code) Validate() error

type AnyBICDec2014Identifier

type AnyBICDec2014Identifier string

Must match the pattern [A-Z0-9]{4,4}[A-Z]{2,2}[A-Z0-9]{2,2}([A-Z0-9]{3,3}){0,1}

func (AnyBICDec2014Identifier) Validate

func (r AnyBICDec2014Identifier) Validate() error

type AnyBICIdentifier

type AnyBICIdentifier string

Must match the pattern [A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}

func (AnyBICIdentifier) Validate

func (r AnyBICIdentifier) Validate() error

type Authorisation1Code

type Authorisation1Code string

May be one of AUTH, FDET, FSUM, ILEV

func (Authorisation1Code) Validate

func (r Authorisation1Code) Validate() error

type BICFIDec2014Identifier

type BICFIDec2014Identifier string

Must match the pattern [A-Z0-9]{4,4}[A-Z]{2,2}[A-Z0-9]{2,2}([A-Z0-9]{3,3}){0,1}

func (BICFIDec2014Identifier) Validate

func (r BICFIDec2014Identifier) Validate() error

type BICFIIdentifier

type BICFIIdentifier string

Must match the pattern [A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}

func (BICFIIdentifier) Validate

func (r BICFIIdentifier) Validate() error

type CopyDuplicate1Code

type CopyDuplicate1Code string

May be one of CODU, COPY, DUPL

func (CopyDuplicate1Code) Validate

func (r CopyDuplicate1Code) Validate() error

type CountryCode

type CountryCode string

Must match the pattern [A-Z]{2,2}

func (CountryCode) Validate

func (r CountryCode) Validate() error

type CreditDebitCode

type CreditDebitCode string

May be one of CRDT, DBIT

func (CreditDebitCode) Validate

func (r CreditDebitCode) Validate() error

type Exact2NumericText

type Exact2NumericText string

Must match the pattern [0-9]{2}

func (Exact2NumericText) Validate

func (r Exact2NumericText) Validate() error

type Exact4AlphaNumericText

type Exact4AlphaNumericText string

Must match the pattern [a-zA-Z0-9]{4}

func (Exact4AlphaNumericText) Validate

func (r Exact4AlphaNumericText) Validate() error

type IBAN2007Identifier

type IBAN2007Identifier string

Must match the pattern [A-Z]{2,2}[0-9]{2,2}[a-zA-Z0-9]{1,30}

func (IBAN2007Identifier) Validate

func (r IBAN2007Identifier) Validate() error

type ISODate

type ISODate time.Time

func (ISODate) MarshalText

func (t ISODate) MarshalText() ([]byte, error)

func (*ISODate) UnmarshalText

func (t *ISODate) UnmarshalText(text []byte) error

type ISODateTime

type ISODateTime time.Time

func (ISODateTime) MarshalText

func (t ISODateTime) MarshalText() ([]byte, error)

func (*ISODateTime) UnmarshalText

func (t *ISODateTime) UnmarshalText(text []byte) error

type ISONormalisedDateTime

type ISONormalisedDateTime time.Time

func (ISONormalisedDateTime) MarshalText

func (t ISONormalisedDateTime) MarshalText() ([]byte, error)

func (*ISONormalisedDateTime) UnmarshalText

func (t *ISONormalisedDateTime) UnmarshalText(text []byte) error

type ISOTime

type ISOTime time.Time

func (ISOTime) MarshalText

func (t ISOTime) MarshalText() ([]byte, error)

func (*ISOTime) UnmarshalText

func (t *ISOTime) UnmarshalText(text []byte) error

type ISOYearMonth

type ISOYearMonth time.Time

func (ISOYearMonth) MarshalText

func (t ISOYearMonth) MarshalText() ([]byte, error)

func (*ISOYearMonth) UnmarshalText

func (t *ISOYearMonth) UnmarshalText(text []byte) error

type InterestType1Code

type InterestType1Code string

May be one of INDY, OVRN

func (InterestType1Code) Validate

func (r InterestType1Code) Validate() error

type LEIIdentifier

type LEIIdentifier string

Must match the pattern [A-Z0-9]{18,18}[0-9]{2,2}

func (LEIIdentifier) Validate

func (r LEIIdentifier) Validate() error

type MandateClassification1Code

type MandateClassification1Code string

May be one of FIXE, USGB, VARI

func (MandateClassification1Code) Validate

func (r MandateClassification1Code) Validate() error

type Max1000Text

type Max1000Text string

Must be at least 1 items long

func (Max1000Text) Validate

func (r Max1000Text) Validate() error

type Max100KBinary

type Max100KBinary []byte

func (Max100KBinary) MarshalText

func (t Max100KBinary) MarshalText() ([]byte, error)

func (*Max100KBinary) UnmarshalText

func (t *Max100KBinary) UnmarshalText(text []byte) error

type Max1025Text

type Max1025Text string

Must be at least 1 items long

func (Max1025Text) Validate

func (r Max1025Text) Validate() error

type Max105Text

type Max105Text string

Must be at least 1 items long

func (Max105Text) Validate

func (r Max105Text) Validate() error

type Max10KBinary

type Max10KBinary []byte

func (Max10KBinary) MarshalText

func (t Max10KBinary) MarshalText() ([]byte, error)

func (*Max10KBinary) UnmarshalText

func (t *Max10KBinary) UnmarshalText(text []byte) error

type Max10MbBinary

type Max10MbBinary []byte

func (Max10MbBinary) MarshalText

func (t Max10MbBinary) MarshalText() ([]byte, error)

func (*Max10MbBinary) UnmarshalText

func (t *Max10MbBinary) UnmarshalText(text []byte) error

type Max10Text

type Max10Text string

Must be at least 1 items long

func (Max10Text) Validate

func (r Max10Text) Validate() error

type Max11Text

type Max11Text string

Must be at least 1 items long

func (Max11Text) Validate

func (r Max11Text) Validate() error

type Max128Text

type Max128Text string

Must be at least 1 items long

func (Max128Text) Validate

func (r Max128Text) Validate() error

type Max12Text

type Max12Text string

Must be at least 1 items long

func (Max12Text) Validate

func (r Max12Text) Validate() error

type Max140Text

type Max140Text string

Must be at least 1 items long

func (Max140Text) Validate

func (r Max140Text) Validate() error

type Max15NumericText

type Max15NumericText string

Must match the pattern [0-9]{1,15}

func (Max15NumericText) Validate

func (r Max15NumericText) Validate() error

type Max15PlusSignedNumericText

type Max15PlusSignedNumericText string

Must match the pattern [\+]{0,1}[0-9]{1,15}

func (Max15PlusSignedNumericText) Validate

func (r Max15PlusSignedNumericText) Validate() error

type Max16Text

type Max16Text string

Must be at least 1 items long

func (Max16Text) Validate

func (r Max16Text) Validate() error

type Max20000Text

type Max20000Text string

Must be at least 1 items long

func (Max20000Text) Validate

func (r Max20000Text) Validate() error

type Max2048Text

type Max2048Text string

Must be at least 1 items long

func (Max2048Text) Validate

func (r Max2048Text) Validate() error

type Max20Text

type Max20Text string

Must be at least 1 items long

func (Max20Text) Validate

func (r Max20Text) Validate() error

type Max210Text

type Max210Text string

Must be at least 1 items long

func (Max210Text) Validate

func (r Max210Text) Validate() error

type Max256Text

type Max256Text string

Must be at least 1 items long

func (Max256Text) Validate

func (r Max256Text) Validate() error

type Max25Text

type Max25Text string

Must be at least 1 items long

func (Max25Text) Validate

func (r Max25Text) Validate() error

type Max34Text

type Max34Text string

Must be at least 1 items long

func (Max34Text) Validate

func (r Max34Text) Validate() error

type Max350Text

type Max350Text string

Must be at least 1 items long

func (Max350Text) Validate

func (r Max350Text) Validate() error

type Max35Text

type Max35Text string

Must be at least 1 items long

func (Max35Text) Validate

func (r Max35Text) Validate() error

type Max3NumericText

type Max3NumericText string

Must match the pattern [0-9]{1,3}

func (Max3NumericText) Validate

func (r Max3NumericText) Validate() error

type Max3Text

type Max3Text string

Must be at least 1 items long

func (Max3Text) Validate

func (r Max3Text) Validate() error

type Max40Text

type Max40Text string

Must be at least 1 items long

func (Max40Text) Validate

func (r Max40Text) Validate() error

type Max4AlphaNumericText

type Max4AlphaNumericText string

Must match the pattern [a-zA-Z0-9]{1,4}

func (Max4AlphaNumericText) Validate

func (r Max4AlphaNumericText) Validate() error

type Max4Text

type Max4Text string

Must be at least 1 items long

func (Max4Text) Validate

func (r Max4Text) Validate() error

type Max500Text

type Max500Text string

Must be at least 1 items long

func (Max500Text) Validate

func (r Max500Text) Validate() error

type Max5NumericText

type Max5NumericText string

Must match the pattern [0-9]{1,5}

func (Max5NumericText) Validate

func (r Max5NumericText) Validate() error

type Max6Text

type Max6Text string

Must be at least 1 items long

func (Max6Text) Validate

func (r Max6Text) Validate() error

type Max70Text

type Max70Text string

Must be at least 1 items long

func (Max70Text) Validate

func (r Max70Text) Validate() error

type Max8Text

type Max8Text string

Must be at least 1 items long

func (Max8Text) Validate

func (r Max8Text) Validate() error

type MerchantCategoryCodeIdentifier

type MerchantCategoryCodeIdentifier string

Must match the pattern [0-9]{4,4}

func (MerchantCategoryCodeIdentifier) Validate

type Min2Max3NumericText

type Min2Max3NumericText string

Must match the pattern [0-9]{2,3}

func (Min2Max3NumericText) Validate

func (r Min2Max3NumericText) Validate() error

type Min3Max4NumericText

type Min3Max4NumericText string

Must match the pattern [0-9]{3,4}

func (Min3Max4NumericText) Validate

func (r Min3Max4NumericText) Validate() error

type Min8Max28NumericText

type Min8Max28NumericText string

Must match the pattern [0-9]{8,28}

func (Min8Max28NumericText) Validate

func (r Min8Max28NumericText) Validate() error

type NamePrefix1Code

type NamePrefix1Code string

May be one of DOCT, MIST, MISS, MADM

func (NamePrefix1Code) Validate

func (r NamePrefix1Code) Validate() error

type NamePrefix2Code

type NamePrefix2Code string

May be one of DOCT, MADM, MISS, MIST, MIKS

func (NamePrefix2Code) Validate

func (r NamePrefix2Code) Validate() error

type PhoneNumber

type PhoneNumber string

Must match the pattern \+[0-9]{1,3}-[0-9()+\-]{1,30}

func (PhoneNumber) Validate

func (r PhoneNumber) Validate() error

type UUIDv4Identifier

type UUIDv4Identifier string

Must match the pattern [a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89ab][a-f0-9]{3}-[a-f0-9]{12}

func (UUIDv4Identifier) Validate

func (r UUIDv4Identifier) Validate() error

Jump to

Keyboard shortcuts

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