Documentation ¶
Index ¶
Constants ¶
View Source
const ( VersionKeyTemplate = "v/%v/%v/%v" EventKeyTemplate = "e/%v/%v/%v/%v" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountType ¶
type AccountType int
type ChargesInformation ¶
type Event ¶
type Event struct { EventType EventType `json:"event_type"` Version int64 `json:"version"` CreatedAt int64 `json:"created_at"` UpdatedAt *int64 `json:"updated_at"` Resource string `json:"resource"` }
Event is the generic event holder
type EventType ¶
type EventType string
const ( ServiceErrorEvent EventType = "service:error" ResourceFoundEvent EventType = "resource:found" ResourceNotFoundEvent EventType = "resource:notfound" CreatePaymentEvent EventType = "payment:create" UpdatePaymentEvent EventType = "payment:update" DeletePaymentEvent EventType = "payment:delete" FetchPaymentEvent EventType = "payment:fetch" ListPaymentEvent EventType = "payment:list" DumpPaymentEvent EventType = "payment:dump" PaymentCreatedEvent EventType = "payment:created" PaymentUpdatedEvent EventType = "payment:updated" PaymentDeletedEvent EventType = "payment:deleted" PaymentDumpedEvent EventType = "payment:dumped" )
type Party ¶
type Party struct { AccountNumber string `json:"account_number"` BankId string `json:"bank_id"` BankIdCode string `json:"bank_id_code"` Name string `json:"name,omitempty"` Address string `json:"address,omitempty"` AccountName string `json:"account_name,omitempty"` AccountNumberCode string `json:"account_number_code,omitempty"` AccountType AccountType `json:"account_type,omitempty"` }
type Payment ¶
type Payment struct { Type ResourceType `json:"type"` OrganisationID uuid.UUID `json:"organisation_id"` ID uuid.UUID `json:"id"` Version int `json:"version"` Attributes *PaymentAttributes `json:"attributes"` }
type PaymentAttributes ¶
type PaymentAttributes struct { PaymentID string `json:"payment_id"` Amount float32 `json:"amount,string"` Currency Currency `json:"currency"` Purpose string `json:"payment_purpose"` Scheme string `json:"payment_scheme"` Type PaymentType `json:"payment_type"` ProcessingDate civil.Date `json:"processing_date"` NumericReference uint64 `json:"numeric_reference,string"` Reference string `json:"reference"` EndToEndReference string `json:"end_to_end_reference"` ChargesInformation ChargesInformation `json:"charges_information"` Exchange Exchange `json:"fx"` SchemePaymentSubType SchemePaymentSubType `json:"scheme_payment_sub_type"` SchemePaymentType SchemePaymentType `json:"scheme_payment_type"` BeneficiaryParty Party `json:"beneficiary_party"` DebtorParty Party `json:"debtor_party"` SponsorParty Party `json:"sponsor_party"` }
type PaymentType ¶
type PaymentType string
type ResourceLocator ¶
type ResourceLocator struct { ResourceType *ResourceType `json:"resource_type"` OrganisationID *uuid.UUID `json:"organisation_id"` ID *uuid.UUID `json:"id"` }
type SchemePaymentSubType ¶
type SchemePaymentSubType string
type SchemePaymentType ¶
type SchemePaymentType string
type ServiceError ¶
type ServiceError struct { Cause string `json:"cause"` Request *nats.Msg `json:"request"` }
Click to show internal directories.
Click to hide internal directories.