domain

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	AccountNumber     string `json:"account_number,omitempty"`
	RoutingNumber     string `json:"routing_number,omitempty"`
	AccountName       string `json:"account_name"`
	AccountStatus     string `json:"account_status"`
	Active            bool   `json:"active"`
	AccountLinkStatus string `json:"account_link_status"`
}

type BusinessEntity

type BusinessEntity struct {
	Handle              string    `json:"handle"`
	FullName            string    `json:"full_name"`
	Created             time.Time `json:"created"`
	Status              string    `json:"status"`
	BlockchainAddresses []string  `json:"blockchain_addresses"`
	Uuid                string    `json:"uuid"`
	BusinessType        string    `json:"business_type"`
	Dba                 string    `json:"dba"`
}

func (*BusinessEntity) UnmarshalJSON

func (be *BusinessEntity) UnmarshalJSON(data []byte) error

type BusinessRole

type BusinessRole struct {
	Uuid  string `json:"uuid"`
	Name  string `json:"name"`
	Label string `json:"label"`
}

type BusinessType

type BusinessType struct {
	Uuid                  string `json:"uuid"`
	Name                  string `json:"name"`
	Label                 string `json:"label"`
	RequiresCertification bool   `json:"requires_certification"`
}

type CertificationHistory

type CertificationHistory struct {
	AdministratorUserHandle       string    `json:"administrator_user_handle"`
	Created                       string    `json:"created"`
	CreatedTime                   time.Time `json:"created_epoch"`
	ExpiresAfter                  string    `json:"expires_after"`
	ExpiresAfterTime              time.Time `json:"expires_after_epoch"`
	BeneficialOwnerCertifications []string  `json:"beneficial_owner_certifications"`
}

func (*CertificationHistory) UnmarshalJSON

func (ch *CertificationHistory) UnmarshalJSON(data []byte) error

type CheckKycResponse

type CheckKycResponse struct {
	Success              bool                   `json:"success"`
	Reference            string                 `json:"reference"`
	Message              string                 `json:"message"`
	Status               string                 `json:"status"`
	ValidationDetails    map[string]interface{} `json:"validation_details"`
	EntityType           string                 `json:"entity_type"`
	VerificationStatus   string                 `json:"verification_status"`
	VerificationHistory  []VerificationHistory  `json:"verification_history"`
	ValidKycLevels       []string               `json:"valid_kyc_levels"`
	CertificationStatus  string                 `json:"certification_status,omitempty"`
	CertificationHistory []CertificationHistory `json:"certification_history,omitempty"`
	Members              []Member               `json:"members"`
}

type DocumentUploadResponse added in v0.2.6

type DocumentUploadResponse struct {
	Success        bool        `json:"success"`
	Message        string      `json:"message"`
	Status         string      `json:"status"`
	ResponseTimeMs string      `json:"response_time_ms"`
	ReferenceID    string      `json:"reference_id"`
	DocumentID     interface{} `json:"document_id"`
}

type Entities

type Entities struct {
	Individuals []IndividualEntity `json:"individuals"`
	Businesses  []BusinessEntity   `json:"businesses"`
}

type Entity

type Entity struct {
	CreatedTime time.Time `json:"created_epoch"`
	EntityName  string    `json:"entity_name"`
	Birthdate   string    `json:"birthdate"`
	FirstName   string    `json:"first_name"`
	LastName    string    `json:"last_name"`
}

func (*Entity) UnmarshalJSON

func (e *Entity) UnmarshalJSON(data []byte) error

type EntityAddress

type EntityAddress struct {
	AddedTime      time.Time `json:"added_epoch"`
	ModifiedTime   time.Time `json:"modified_epoch"`
	Uuid           string    `json:"uuid"`
	Nickname       string    `json:"nickname"`
	StreetAddress1 string    `json:"street_address_1"`
	StreetAddress2 string    `json:"street_address_2"`
	City           string    `json:"city"`
	State          string    `json:"state"`
	Country        string    `json:"country"`
	PostalCode     string    `json:"postal_code"`
}

func (*EntityAddress) UnmarshalJSON

func (ea *EntityAddress) UnmarshalJSON(data []byte) error

type EntityEmail

type EntityEmail struct {
	AddedTime    time.Time `json:"added_epoch"`
	ModifiedTime time.Time `json:"modified_epoch"`
	Uuid         string    `json:"uuid"`
	Email        string    `json:"email"`
}

func (*EntityEmail) UnmarshalJSON

func (ee *EntityEmail) UnmarshalJSON(data []byte) error

type EntityIdentity

type EntityIdentity struct {
	AddedTime    time.Time    `json:"added_epoch"`
	ModifiedTime time.Time    `json:"modified_epoch"`
	Uuid         string       `json:"uuid"`
	IdentityType IdentityType `json:"identity_type"`
	Identity     string       `json:"identity"`
}

func (*EntityIdentity) UnmarshalJSON

func (ei *EntityIdentity) UnmarshalJSON(data []byte) error

type EntityMembership

type EntityMembership struct {
	BusinessHandle     string  `json:"business_handle"`
	EntityName         string  `json:"entity_name"`
	Role               string  `json:"role"`
	Details            string  `json:"details"`
	OwnershipStake     float64 `json:"ownership_stake"`
	CertificationToken string  `json:"certification_token"`
}

type EntityPagination

type EntityPagination struct {
	ReturnedCount int32 `json:"returned_count"`
	TotalCount    int64 `json:"total_count"`
	CurrentPage   int32 `json:"current_page"`
	TotalPages    int32 `json:"total_pages"`
}

type EntityPhone

type EntityPhone struct {
	AddedTime    time.Time `json:"added_epoch"`
	ModifiedTime time.Time `json:"modified_epoch"`
	Uuid         string    `json:"uuid"`
	Phone        string    `json:"phone"`
}

func (*EntityPhone) UnmarshalJSON

func (ep *EntityPhone) UnmarshalJSON(data []byte) error

type EntityType

type EntityType string
const (
	Individual EntityType = "individual"
	Business   EntityType = "business"
)

type GetAccountBalanceResponse

type GetAccountBalanceResponse struct {
	Success             bool                   `json:"success"`
	Reference           string                 `json:"reference"`
	Message             string                 `json:"message"`
	Status              string                 `json:"status"`
	ValidationDetails   map[string]interface{} `json:"validation_details"`
	LinkStatus          string                 `json:"link_status"`
	AvailableBalance    *float64               `json:"available_balance"`
	CurrentBalance      *float64               `json:"current_balance"`
	MaskedAccountNumber string                 `json:"masked_account_number"`
	RoutingNumber       string                 `json:"routing_number"`
	AccountName         string                 `json:"account_name"`
}

type GetAccountsResponse

type GetAccountsResponse struct {
	Accounts []Account `json:"accounts"`
}

type GetBusinessRolesResponse

type GetBusinessRolesResponse struct {
	Success           bool                   `json:"success"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	BusinessRoles     []BusinessRole         `json:"business_roles"`
}

type GetBusinessTypesResponse

type GetBusinessTypesResponse struct {
	Success           bool                   `json:"success"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	BusinessTypes     []BusinessType         `json:"business_types"`
}

type GetEntitiesResponse

type GetEntitiesResponse struct {
	Success           bool                   `json:"success"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	Entities          Entities               `json:"entities"`
	Pagination        EntityPagination       `json:"pagination"`
}

type GetEntityResponse

type GetEntityResponse struct {
	Success           bool                   `json:"success"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	UserHandle        string                 `json:"user_handle"`
	EntityType        EntityType             `json:"entity_type"`
	Entity            Entity                 `json:"entity"`
	Addresses         []EntityAddress        `json:"addresses"`
	Identities        []EntityIdentity       `json:"identities"`
	Emails            []EntityEmail          `json:"emails"`
	Phones            []EntityPhone          `json:"phones"`
	Memberships       []EntityMembership     `json:"memberships"`
}

type GetNaicsCategoriesResponse

type GetNaicsCategoriesResponse struct {
	Success           bool                       `json:"success"`
	Message           string                     `json:"message"`
	Status            string                     `json:"status"`
	ValidationDetails map[string]interface{}     `json:"validation_details"`
	NaicsCategories   map[string][]NaicsCategory `json:"naics_categories"`
}

func (*GetNaicsCategoriesResponse) UnmarshalJSON

func (gncr *GetNaicsCategoriesResponse) UnmarshalJSON(data []byte) error

type GetSilaBalanceResponse

type GetSilaBalanceResponse struct {
	Success           bool                   `json:"success"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	Address           string                 `json:"address"`
	SilaBalance       float64                `json:"sila_balance"`
}

type GetTransactionsResponse

type GetTransactionsResponse struct {
	Success           bool                   `json:"success"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	Page              int32                  `json:"page"`
	ReturnedCount     int32                  `json:"returned_count"`
	TotalCount        int64                  `json:"total_count"`
	Transactions      []Transaction          `json:"transactions"`
}

type GetWalletResponse

type GetWalletResponse struct {
	Success           bool                   `json:"success"`
	Reference         string                 `json:"reference"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	Wallet            Wallet                 `json:"wallet"`
	IsWhitelisted     bool                   `json:"is_whitelisted"`
	SilaBalance       float64                `json:"sila_balance"`
}

type GetWalletsResponse

type GetWalletsResponse struct {
	Success           bool                   `json:"success"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	Wallets           []Wallet               `json:"wallets"`
	Page              int32                  `json:"page"`
	ReturnedCount     int32                  `json:"returned_count"`
	TotalCount        int32                  `json:"total_count"`
	TotalPageCount    int32                  `json:"total_page_count"`
}

type IdentityType

type IdentityType string
const (
	Unknown IdentityType = "UNKNOWN"
	Ssn     IdentityType = "SSN"
	Ein     IdentityType = "EIN"
)

func GetIdentityType

func GetIdentityType(identityType string) IdentityType

type IndividualEntity

type IndividualEntity struct {
	Handle              string    `json:"handle"`
	FullName            string    `json:"full_name"`
	Created             time.Time `json:"created"`
	Status              string    `json:"status"`
	BlockchainAddresses []string  `json:"blockchain_addresses"`
}

func (*IndividualEntity) UnmarshalJSON

func (ie *IndividualEntity) UnmarshalJSON(data []byte) error

type IssueSilaResponse

type IssueSilaResponse struct {
	Success           bool                   `json:"success"`
	Reference         string                 `json:"reference"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	TransactionId     string                 `json:"transaction_id"`
	Descriptor        string                 `json:"descriptor,omitempty"`
}

type LinkAccountResponse

type LinkAccountResponse struct {
	Success           bool                   `json:"success"`
	Reference         string                 `json:"reference"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	AccountName       string                 `json:"account_name"`
	SelectedAccountId string                 `json:"selected_account_id"`
}

type LinkBusinessMemberResponse

type LinkBusinessMemberResponse struct {
	Success           bool                   `json:"success"`
	Reference         string                 `json:"reference"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	Role              string                 `json:"role"`
	Details           string                 `json:"details"`
	VerificationUuid  string                 `json:"verification_uuid"`
}

type Member

type Member struct {
	UserHandle                         string  `json:"user_handle"`
	FirstName                          string  `json:"first_name"`
	LastName                           string  `json:"last_name"`
	Role                               string  `json:"role"`
	Details                            string  `json:"details"`
	OwnershipStake                     float64 `json:"ownership_stake"`
	VerificationStatus                 string  `json:"verification_status"`
	VerificationRequired               bool    `json:"verification_required"`
	VerificationId                     string  `json:"verification_id"`
	BeneficialOwnerCertificationStatus string  `json:"beneficial_owner_certification_status"`
	BusinessCertificationStatus        string  `json:"business_certification_status"`
}

type ModifyRegistrationDataResponse

type ModifyRegistrationDataResponse struct {
	Success           bool                   `json:"success"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	Email             EntityEmail            `json:"email"`
	Phone             EntityPhone            `json:"phone"`
	Identity          EntityIdentity         `json:"identity"`
	Address           EntityAddress          `json:"address"`
}

type NaicsCategory

type NaicsCategory struct {
	Code        float64 `json:"code"`
	Subcategory string  `json:"subcategory"`
}

type PlaidSameDayAuthResponse

type PlaidSameDayAuthResponse struct {
	Success           bool                   `json:"success"`
	Reference         string                 `json:"reference"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	PublicToken       string                 `json:"public_token"`
}

type RedeemSilaResponse

type RedeemSilaResponse struct {
	Success           bool                   `json:"success"`
	Reference         string                 `json:"reference"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	TransactionId     string                 `json:"transaction_id"`
	Descriptor        string                 `json:"descriptor,omitempty"`
}

type RegisterWalletResponse

type RegisterWalletResponse struct {
	Success           bool                   `json:"success"`
	Reference         string                 `json:"reference"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	WalletNickname    string                 `json:"wallet_nickname"`
}

type RegistrationAddress

type RegistrationAddress struct {
	AddressAlias   string `json:"address_alias,omitempty"`
	StreetAddress1 string `json:"street_address_1,omitempty"`
	StreetAddress2 string `json:"street_address_2,omitempty"`
	City           string `json:"city,omitempty"`
	State          string `json:"state,omitempty"`
	Country        string `json:"country,omitempty"`
	PostalCode     string `json:"postal_code,omitempty"`
}

type RegistrationDataType

type RegistrationDataType string
const (
	UnknownDataType  RegistrationDataType = "Unknown"
	EmailDataType    RegistrationDataType = "email"
	PhoneDataType    RegistrationDataType = "phone"
	IdentityDataType RegistrationDataType = "identity"
	AddressDataType  RegistrationDataType = "address"
	EntityDataType   RegistrationDataType = "entity"
)

func GetRegistrationDataType

func GetRegistrationDataType(registrationDataType string) RegistrationDataType

type RequestKycResponse

type RequestKycResponse struct {
	Success           bool                   `json:"success"`
	Reference         string                 `json:"reference"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	VerificationUuid  string                 `json:"verification_uuid"`
}

type SuccessResponse

type SuccessResponse struct {
	Success           bool                   `json:"success"`
	Reference         string                 `json:"reference"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
}

type Transaction

type Transaction struct {
	UserHandle         string                 `json:"user_handle"`
	ReferenceId        string                 `json:"reference_id"`
	TransactionId      string                 `json:"transaction_id"`
	TransactionHash    string                 `json:"transaction_hash"`
	TransactionType    string                 `json:"transaction_type"`
	SilaAmount         float64                `json:"sila_amount"`
	BankAccountName    string                 `json:"bank_account_name"`
	Status             string                 `json:"status"`
	UsdStatus          string                 `json:"usd_status"`
	TokenStatus        string                 `json:"token_status"`
	Created            string                 `json:"created"`
	CreatedTime        time.Time              `json:"created_epoch"`
	LastUpdate         string                 `json:"last_update"`
	LastUpdateTime     time.Time              `json:"last_update_epoch"`
	Submitted          *string                `json:"submitted"`
	SubmittedTime      *time.Time             `json:"submitted_epoch"`
	Descriptor         string                 `json:"descriptor"`
	DescriptorAch      string                 `json:"descriptor_ach"`
	AchName            string                 `json:"ach_name"`
	ProcessingType     string                 `json:"processing_type"`
	DestinationAddress string                 `json:"destination_address"`
	DestinationHandle  string                 `json:"destination_handle"`
	HandleAddress      string                 `json:"handle_address"`
	Timeline           []TransactionTimePoint `json:"timeline"`
	ErrorCode          string                 `json:"error_code"`
	ErrorMsg           string                 `json:"error_msg"`
}

func (*Transaction) UnmarshalJSON

func (t *Transaction) UnmarshalJSON(data []byte) error

type TransactionSearchFilters

type TransactionSearchFilters struct {
	TransactionId    string    `json:"transaction_id,omitempty"`
	ReferenceId      string    `json:"reference_id,omitempty"`
	ShowTimelines    bool      `json:"show_timelines,omitempty"`
	SortAscending    bool      `json:"sort_ascending,omitempty"`
	MaxSilaAmount    int64     `json:"max_sila_amount,omitempty"`
	MinSilaAmount    int64     `json:"min_sila_amount,omitempty"`
	Statuses         []string  `json:"statuses,omitempty"`
	StartTime        time.Time `json:"start_epoch,omitempty"`
	EndTime          time.Time `json:"end_epoch,omitempty"`
	Page             int32     `json:"page,omitempty"`
	PerPage          int32     `json:"per_page,omitempty"`
	TransactionTypes []string  `json:"transaction_types,omitempty"`
}

func (*TransactionSearchFilters) MarshalJSON

func (filters *TransactionSearchFilters) MarshalJSON() ([]byte, error)

type TransactionTimePoint

type TransactionTimePoint struct {
	Date        string    `json:"date"`
	DateTime    time.Time `json:"date_epoch"`
	Status      string    `json:"status"`
	UsdStatus   string    `json:"usd_status"`
	TokenStatus string    `json:"token_status"`
}

func (*TransactionTimePoint) UnmarshalJSON

func (ttp *TransactionTimePoint) UnmarshalJSON(data []byte) error

type TransferSilaResponse

type TransferSilaResponse struct {
	Success            bool                   `json:"success"`
	Reference          string                 `json:"reference"`
	Message            string                 `json:"message"`
	Status             string                 `json:"status"`
	ValidationDetails  map[string]interface{} `json:"validation_details"`
	DestinationAddress string                 `json:"destination_address"`
	TransactionId      string                 `json:"transaction_id"`
	Descriptor         string                 `json:"descriptor,omitempty"`
}

type UnlinkBusinessMemberResponse

type UnlinkBusinessMemberResponse struct {
	Success           bool                   `json:"success"`
	Reference         string                 `json:"reference"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	Role              string                 `json:"role"`
}

type UpdateWalletResponse

type UpdateWalletResponse struct {
	Success           bool                   `json:"success"`
	Reference         string                 `json:"reference"`
	Message           string                 `json:"message"`
	Status            string                 `json:"status"`
	ValidationDetails map[string]interface{} `json:"validation_details"`
	Wallet            Wallet                 `json:"wallet"`
	Changes           []WalletChange         `json:"changes"`
}

type VerificationHistory

type VerificationHistory struct {
	VerificationId     string    `json:"verification_id"`
	VerificationStatus string    `json:"verification_status"`
	KycLevel           string    `json:"kyc_level"`
	RequestedAt        time.Time `json:"requested_at"`
	UpdatedAt          time.Time `json:"updated_at"`
	Reasons            []string  `json:"reasons"`
	Tags               []string  `json:"tags"`
	Score              float64   `json:"score,omitempty"`
	ValidKycLevels     []string  `json:"valid_kyc_levels"`
}

func (*VerificationHistory) UnmarshalJSON

func (vh *VerificationHistory) UnmarshalJSON(data []byte) error

type Wallet

type Wallet struct {
	BlockchainAddress string `json:"blockchain_address"`
	BlockchainNetwork string `json:"blockchain_network"`
	Nickname          string `json:"nickname"`
	Default           bool   `json:"default,omitempty"`
	Frozen            bool   `json:"frozen"`
}

type WalletChange

type WalletChange struct {
	Attribute string `json:"attribute"`
	// Either a string or a bool value depending on the field changed, matches type with NewValue
	OldValue interface{} `json:"old_value"`
	// Either a string or bool value depending on the field changed, matches type with OldValue
	NewValue interface{} `json:"new_value"`
}

type WalletSearchFilters

type WalletSearchFilters struct {
	Page              int32  `json:"page,omitempty"`
	PerPage           int32  `json:"per_page,omitempty"`
	SortAscending     bool   `json:"sort_ascending,omitempty"`
	BlockchainNetwork string `json:"blockchain_network,omitempty"`
	BlockchainAddress string `json:"blockchain_address,omitempty"`
	Nickname          string `json:"nickname,omitempty"`
}

Jump to

Keyboard shortcuts

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