Documentation
¶
Overview ¶
Scene provides well structured template contexts and functionality for HTML template rendering. We chose the word "scene" to represent the context since "context" is an overloaded term and milieu was too hard to spell.
Index ¶
- Constants
- func WithConf(conf *config.Config)
- type AddressComponents
- type Error
- type IVMS101
- type NationalIdentifier
- type Person
- type Prepared
- func (s Prepared) Beneficiary() Person
- func (s Prepared) BeneficiaryVASP() VASP
- func (s Prepared) IdentityJSON() string
- func (s Prepared) OriginatingVASP() VASP
- func (s Prepared) Originator() Person
- func (s Prepared) RoutingJSON() string
- func (s Prepared) TransactionJSON() string
- func (s Prepared) Transfer() Transfer
- type Scene
- func (s Scene) APIKeyDetail() *api.APIKey
- func (s Scene) APIKeysList() *api.APIKeyList
- func (s Scene) AccountDetail() *api.Account
- func (s Scene) AccountPerson() Person
- func (s Scene) AccountsList() *api.AccountsList
- func (s Scene) CounterpartyDetail() *api.Counterparty
- func (s Scene) CounterpartyList() *api.CounterpartyList
- func (s Scene) CreateAPIKey() *api.APIKey
- func (s Scene) Envelope() *api.Envelope
- func (s Scene) EnvelopeList() *api.EnvelopesList
- func (s Scene) Error(err error) *Error
- func (s Scene) GetUser() *auth.Claims
- func (s Scene) HasRole(role string) bool
- func (s Scene) IVMS101() *IVMS101
- func (s Scene) IsAdmin() bool
- func (s Scene) IsAuthenticated() bool
- func (s Scene) IsViewOnly() bool
- func (s Scene) Prepared() Prepared
- func (s Scene) TransactionCounts() *models.TransactionCounts
- func (s Scene) TransactionDetail() *Transaction
- func (s Scene) TransactionsList() *TransactionList
- func (s Scene) Update(o Scene) Scene
- func (s Scene) UserDetail() *api.User
- func (s Scene) UserList() *api.UserList
- func (s Scene) WithAPIData(data interface{}) Scene
- type Status
- type Transaction
- type TransactionList
- type Transfer
- type VASP
Constants ¶
const ( Version = "Version" ShortVersion = "ShortVersion" Page = "Page" IsAuthenticated = "IsAuthenticated" User = "User" APIData = "APIData" SunriseEnabled = "SunriseEnabled" )
Keys for default Scene context items
const ( RoleAdmin = "Admin" RoleCompliance = "Compliance" RoleObserver = "Observer" )
Role string constants
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressComponents ¶ added in v0.28.0
type IVMS101 ¶ added in v0.28.0
type IVMS101 struct {
Originator Person
OriginatorVASP VASP
Beneficiary Person
BeneficiaryVASP VASP
}
IVMS101 is a struct that represents the complex IVMS101 data as a flattened struct with only the data that is required by our web application.
type NationalIdentifier ¶ added in v0.28.0
type Person ¶ added in v0.28.0
type Prepared ¶ added in v1.0.0
func (Prepared) Beneficiary ¶ added in v1.0.0
func (Prepared) BeneficiaryVASP ¶ added in v1.0.0
func (Prepared) IdentityJSON ¶ added in v1.0.0
func (Prepared) OriginatingVASP ¶ added in v1.0.0
func (Prepared) Originator ¶ added in v1.0.0
func (Prepared) RoutingJSON ¶ added in v1.0.0
func (Prepared) TransactionJSON ¶ added in v1.0.0
type Scene ¶
type Scene map[string]interface{}
func (Scene) APIKeyDetail ¶ added in v0.24.1
func (Scene) APIKeysList ¶ added in v0.24.1
func (s Scene) APIKeysList() *api.APIKeyList
func (Scene) AccountDetail ¶ added in v0.19.0
func (Scene) AccountPerson ¶ added in v1.0.0
func (Scene) AccountsList ¶
func (s Scene) AccountsList() *api.AccountsList
func (Scene) CounterpartyDetail ¶ added in v0.25.0
func (s Scene) CounterpartyDetail() *api.Counterparty
func (Scene) CounterpartyList ¶
func (s Scene) CounterpartyList() *api.CounterpartyList
func (Scene) CreateAPIKey ¶ added in v0.24.1
func (Scene) EnvelopeList ¶ added in v1.0.0
func (s Scene) EnvelopeList() *api.EnvelopesList
func (Scene) Error ¶ added in v1.0.0
Return the simplified/flattened IVMS101 identity representation if an Envelope has been set as the APIData in the Scene.
func (Scene) IVMS101 ¶ added in v0.28.0
Return the simplified/flattened IVMS101 identity representation if an Envelope has been set as the APIData in the Scene.
func (Scene) IsAuthenticated ¶
func (Scene) IsViewOnly ¶
func (Scene) TransactionCounts ¶ added in v1.0.0
func (s Scene) TransactionCounts() *models.TransactionCounts
func (Scene) TransactionDetail ¶ added in v0.19.0
func (s Scene) TransactionDetail() *Transaction
func (Scene) TransactionsList ¶ added in v0.19.0
func (s Scene) TransactionsList() *TransactionList
func (Scene) UserDetail ¶ added in v1.0.0
func (Scene) WithAPIData ¶
type Status ¶ added in v1.0.0
Status wraps a Transaction status to provide additional information such as class, tooltip, color, icons, etc for the UI.
func (Status) ActionRequired ¶ added in v1.0.0
type Transaction ¶ added in v1.0.0
type Transaction struct {
api.Transaction
Status Status
}
Wraps an *api.Transaction to provide additional UI-specific functionality.
type TransactionList ¶ added in v1.0.0
type TransactionList struct {
Page *api.TransactionListQuery
Transactions []*Transaction
}
Converted from an *api.TransactionList to provide additional UI-specific functionality.
type VASP ¶ added in v0.28.0
type VASP struct {
AddressComponents
LegalName string
PrimaryAddress *ivms101.Address
PrimaryAddressLines []string
CustomerNumber string
CountryOfRegistration string
NationalIdentifier NationalIdentifier
}