Documentation ¶
Index ¶
- type Account
- type AccountCreditLimit
- type AccountCurrentMinimalPayment
- type AccountDebtAmount
- type AccountDebtBalance
- type AccountMoneyAmount
- type AccountPastDueDebt
- type AccountShared
- type AdditionalInfo
- type Brand
- type Builder
- type Card
- type Category
- type Client
- type ClientOffer
- type ClientOfferAccount
- type ClientOfferAttributes
- type ClientOfferEssence
- type ClientOfferEssenceMccCode
- type Config
- type Credential
- type Currency
- type Date
- type DateTime
- type DateTimeMilliOffset
- type InvestAccount
- type InvestAmount
- type InvestChildOperation
- type InvestOperation
- type InvestOperationType
- type InvestTotals
- type Location
- type Loyalty
- type LoyaltyAmount
- type LoyaltyBonus
- type LoyaltyBonusSummary
- type LoyaltyPayment
- type LoyaltyPaymentAmount
- type Merchant
- type Milliseconds
- type MultiCardCluster
- type Operation
- type OperationAccountAmount
- type OperationAmount
- type OperationCashbackAmount
- type Payment
- type PaymentFeeAmount
- type Receipt
- type ReceiptItem
- type Region
- type Seconds
- type Session
- type SpendingCategory
- type Statement
- type StatementArrestAmount
- type StatementAvailableLimit
- type StatementBalance
- type StatementBilledDebt
- type StatementCashback
- type StatementCreditBonus
- type StatementCreditLimit
- type StatementExpense
- type StatementHighCashback
- type StatementIncome
- type StatementInterest
- type StatementInterestBonus
- type StatementLowCashback
- type StatementMinimalPaymentAmount
- type StatementOtherBonus
- type StatementOtherCashback
- type StatementOverLimitDebt
- type StatementOverdraftFee
- type StatementPastDueDebt
- type StatementPeriod
- type StatementPeriodEndBalance
- type StatementPeriodStartBalance
- type StatementTranchesMonthlyPayment
- type Subgroup
- type Trade
- type TradesInfo
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { UserPhone string `json:"-" gorm:"index"` User User `json:"-" gorm:"constraint:OnDelete:CASCADE"` CurrencyCode *uint `json:"-" gorm:"index"` Currency *Currency `json:"currency,omitempty" gorm:"constraint:OnDelete:CASCADE"` Deleted bool `json:"-" gorm:"index"` Id string `json:"id" gorm:"primaryKey"` CreditLimit *AccountCreditLimit `json:"creditLimit,omitempty" gorm:"embedded"` MoneyAmount *AccountMoneyAmount `json:"moneyAmount,omitempty" gorm:"embedded"` DebtBalance *AccountDebtBalance `json:"debtBalance,omitempty" gorm:"embedded"` CurrentMinimalPayment *AccountCurrentMinimalPayment `json:"currentMinimalPayment,omitempty" gorm:"embedded"` ClientUnverifiedFlag *string `json:"clientUnverifiedFlag,omitempty"` IdentificationState *string `json:"identificationState,omitempty"` Status *string `json:"status,omitempty"` EmoneyFlag *bool `json:"emoneyFlag,omitempty"` NextStatementDate *Milliseconds `json:"nextStatementDate,omitempty"` DueDate *Milliseconds `json:"dueDate,omitempty"` Cards []Card `json:"cards,omitempty" gorm:"constraint:OnDelete:CASCADE;foreignKey:AccountId"` MultiCardCluster *MultiCardCluster `json:"multiCardCluster,omitempty" gorm:"embedded;embeddedPrefix:multi_card_cluster_"` LoyaltyId *string `json:"loyaltyId,omitempty"` MoneyPotFlag *bool `json:"moneyPotFlag,omitempty"` PartNumber *string `json:"partNumber,omitempty"` PastDueDebt *AccountPastDueDebt `json:"pastDueDebt,omitempty" gorm:"embedded"` Name string `json:"name"` AccountType string `json:"accountType"` Hidden bool `json:"hidden"` Loyalty *Loyalty `json:"loyalty,omitempty" gorm:"embedded;embeddedPrefix:loyalty_"` CreationDate *Milliseconds `json:"creationDate,omitempty"` DebtAmount *AccountDebtAmount `json:"debtAmount,omitempty" gorm:"embedded"` LastStatementDate *Milliseconds `json:"lastStatementDate,omitempty"` DueColor *int `json:"dueColor,omitempty"` LinkedAccountNumber *string `json:"linkedAccountNumber,omitempty"` IsKidsSaving *bool `json:"isKidsSaving,omitempty"` IsCrowdfunding *bool `json:"isCrowdfunding,omitempty"` }
type AccountCreditLimit ¶ added in v0.0.23
type AccountCurrentMinimalPayment ¶ added in v0.0.23
type AccountDebtAmount ¶ added in v0.0.23
type AccountDebtBalance ¶ added in v0.0.23
type AccountMoneyAmount ¶ added in v0.0.23
type AccountPastDueDebt ¶ added in v0.0.23
type AccountShared ¶
type AccountShared struct {}
type AdditionalInfo ¶
type Brand ¶
type Brand struct { Name string `json:"name" gorm:"index"` BaseTextColor *string `json:"baseTextColor,omitempty"` Logo *string `json:"logo,omitempty"` Id string `json:"id" gorm:"primaryKey"` RoundedLogo bool `json:"roundedLogo"` BaseColor *string `json:"baseColor,omitempty"` LogoFile *string `json:"logoFile,omitempty"` Link *string `json:"link,omitempty"` SvgLogoFile *string `json:"svgLogoFile"` }
type Card ¶
type Card struct { AccountId string `json:"-" gorm:"index"` Id string `json:"id" gorm:"primaryKey"` StatusCode string `json:"statusCode"` Status string `json:"status"` PinSet bool `json:"pinSet"` Expiration Milliseconds `json:"expiration"` CardDesign string `json:"cardDesign"` Ucid string `json:"ucid"` PaymentSystem string `json:"paymentSystem"` FrozenCard bool `json:"frozenCard"` HasWrongPins bool `json:"hasWrongPins"` Value string `json:"value"` IsEmbossed bool `json:"isEmbossed"` IsVirtual bool `json:"isVirtual"` CreationDate Milliseconds `json:"creationDate"` MultiCardCluster *MultiCardCluster `json:"multiCardCluster,omitempty" gorm:"embedded;embeddedPrefix:multi_card_cluster_"` Name string `json:"name"` IsPaymentDevice bool `json:"isPaymentDevice"` Primary bool `json:"primary"` CardIssueType *string `json:"cardIssueType,omitempty"` }
type Client ¶
type Client interface { AccountsLightIb(ctx context.Context) (tinkoff.AccountsLightIbOut, error) Statements(ctx context.Context, in *tinkoff.StatementsIn) (tinkoff.StatementsOut, error) Operations(ctx context.Context, in *tinkoff.OperationsIn) (tinkoff.OperationsOut, error) ShoppingReceipt(ctx context.Context, in *tinkoff.ShoppingReceiptIn) (*tinkoff.ShoppingReceiptOut, error) ClientOfferEssences(ctx context.Context) (tinkoff.ClientOfferEssencesOut, error) InvestOperationTypes(ctx context.Context) (*tinkoff.InvestOperationTypesOut, error) InvestAccounts(ctx context.Context, in *tinkoff.InvestAccountsIn) (*tinkoff.InvestAccountsOut, error) InvestOperations(ctx context.Context, in *tinkoff.InvestOperationsIn) (*tinkoff.InvestOperationsOut, error) Close() }
type ClientOffer ¶ added in v0.0.18
type ClientOffer struct { UserPhone string `json:"-" gorm:"index"` User User `json:"-" gorm:"constraint:OnDelete:CASCADE"` Accounts []ClientOfferAccount `json:"-" gorm:"constraint:OnDelete:CASCADE;foreignKey:ClientOfferId"` TypeCode string `json:"typeCode"` AvailableEssenceCount uint `json:"availableEssenceCount"` ActiveTo Milliseconds `json:"activeTo"` Attributes ClientOfferAttributes `json:"attributes" gorm:"embedded"` ActiveFrom Milliseconds `json:"activeFrom"` Essences []ClientOfferEssence `json:"essences" gorm:"constraint:OnDelete:CASCADE;foreignKey:ClientOfferId"` DisplayTo Milliseconds `json:"displayTo"` DisplayFrom Milliseconds `json:"displayFrom"` //AccountIds []string `json:"accountIds"` Id string `json:"id" gorm:"primaryKey"` }
type ClientOfferAccount ¶ added in v0.0.18
type ClientOfferAttributes ¶ added in v0.0.18
type ClientOfferAttributes struct {
NotificationFlag bool `json:"notificationFlag"`
}
type ClientOfferEssence ¶ added in v0.0.18
type ClientOfferEssence struct { ClientOfferId string `json:"-" gorm:"index"` SpendingCategoryId *string `json:"-" gorm:"index"` BrandId *string `json:"-" gorm:"index"` MccCodes []ClientOfferEssenceMccCode `json:"-" gorm:"constraint:OnDelete:CASCADE;foreignKey:ClientOfferEssenceId"` Name string `json:"name"` Description string `json:"description"` BusinessType uint `json:"businessType"` IsActive bool `json:"isActive"` BaseColor string `json:"baseColor"` //MccCodes []string `json:"mccCodes,omitempty"` Logo string `json:"logo"` ExternalCode string `json:"externalCode"` ExternalId string `json:"externalId"` Id string `json:"id" gorm:"primaryKey"` Percent uint `json:"percent"` }
type ClientOfferEssenceMccCode ¶ added in v0.0.18
type Config ¶
type Config struct { DB database.Config `yaml:"db" doc:"Настройки подключения к БД."` BatchSize int `yaml:"batchSize,omitempty" doc:"Максимальный размер батчей." default:"100"` Overlap time.Duration `` /* 147-byte string literal not displayed */ DisableReceipts bool `yaml:"disableReceipts,omitempty" doc:"Отключить синхронизацию чеков."` Users map[string][]Credential `yaml:"users" doc:"Пользователи и их авторизационные данные."` }
type Credential ¶
type DateTimeMilliOffset ¶
type DateTimeMilliOffset struct {
tinkoff.DateTimeMilliOffset
}
func (DateTimeMilliOffset) GormDataType ¶
func (dt DateTimeMilliOffset) GormDataType() string
func (*DateTimeMilliOffset) Scan ¶
func (dt *DateTimeMilliOffset) Scan(value any) error
type InvestAccount ¶
type InvestAccount struct { UserPhone string `json:"-" gorm:"index"` User User `json:"-" gorm:"constraint:OnDelete:CASCADE"` Deleted bool `json:"-" gorm:"index"` Id string `json:"brokerAccountId" gorm:"primaryKey"` Type string `json:"brokerAccountType"` Name string `json:"name"` OpenedDate Date `json:"openedDate"` Order int `json:"order"` Status string `json:"status"` IsVisible bool `json:"isVisible"` Organization string `json:"organization"` BuyByDefault bool `json:"buyByDefault"` MarginEnabled bool `json:"marginEnabled"` AutoApp bool `json:"autoApp"` InvestTotals `gorm:"embedded"` }
type InvestAmount ¶
type InvestChildOperation ¶
type InvestChildOperation struct { InvestOperationInternalId string `json:"-" gorm:"primaryKey"` DbIdx int `json:"dbIdx" gorm:"primaryKey"` Currency string `json:"currency"` Id string `json:"id"` InstrumentType string `json:"instrumentType"` InstrumentUid string `json:"instrumentUid"` LogoName string `json:"logoName"` Payment InvestAmount `json:"payment" gorm:"embedded;embeddedPrefix:payment_"` ShowName string `json:"showName"` Ticker string `json:"ticker"` Type string `json:"type"` Value float64 `json:"value"` }
type InvestOperation ¶
type InvestOperation struct { InvestAccountId string `json:"brokerAccountId" gorm:"index"` InvestAccount InvestAccount `json:"-" gorm:"constraint:OnDelete:CASCADE"` AssetUid *string `json:"assetUid,omitempty"` BestExecuted bool `json:"bestExecuted"` ClassCode *string `json:"classCode,omitempty"` Cursor string `json:"cursor"` Date DateTimeMilliOffset `json:"date"` Description string `json:"description"` Id *string `json:"id,omitempty"` InstrumentType *string `json:"instrumentType,omitempty"` InstrumentUid *string `json:"instrumentUid,omitempty"` InternalId string `json:"internalId" gorm:"primaryKey"` IsBlockedTradeClearingAccount *bool `json:"isBlockedTradeClearingAccount,omitempty"` Isin *string `json:"isin,omitempty"` LogoName *string `json:"logoName,omitempty"` Name *string `json:"name,omitempty"` Payment InvestAmount `json:"payment" gorm:"embedded;embeddedPrefix:payment_"` PaymentEur InvestAmount `json:"paymentEur" gorm:"embedded;embeddedPrefix:payment_eur_"` PaymentRub InvestAmount `json:"paymentRub" gorm:"embedded;embeddedPrefix:payment_rub_"` PaymentUsd InvestAmount `json:"paymentUsd" gorm:"embedded;embeddedPrefix:payment_usd_"` PositionUid *string `json:"positionUid,omitempty"` ShortDescription *string `json:"shortDescription,omitempty"` ShowName *string `json:"showName,omitempty"` Status string `json:"status"` TextColor *string `json:"textColor,omitempty"` Ticker *string `json:"ticker,omitempty"` Type string `json:"type"` AccountId *string `json:"accountId,omitempty"` DoneRest *int `json:"doneRest,omitempty"` Price *InvestAmount `json:"price,omitempty" gorm:"embedded;embeddedPrefix:price_"` Quantity *int `json:"quantity,omitempty"` TradesInfo *TradesInfo `json:"tradesInfo,omitempty" gorm:"embedded"` ParentOperationId *string `json:"parentOperationId,omitempty"` ChildOperations []InvestChildOperation `json:"childOperations,omitempty" gorm:"constraint:OnDelete:CASCADE;foreignKey:InvestOperationInternalId"` Commission *InvestAmount `json:"commission,omitempty" gorm:"embedded;embeddedPrefix:commission_"` Yield *InvestAmount `json:"yield,omitempty" gorm:"embedded;embeddedPrefix:yield_"` YieldRelative *float64 `json:"yieldRelative,omitempty"` CancelReason *string `json:"cancelReason,omitempty"` QuantityRest *int `json:"quantityRest,omitempty"` WithdrawDateTime *DateTime `json:"withdrawDateTime,omitempty"` }
type InvestOperationType ¶
type InvestTotals ¶
type InvestTotals struct { ExpectedYield InvestAmount `json:"expectedYield" gorm:"embedded;embeddedPrefix:expected_yield_"` ExpectedYieldRelative float64 `json:"expectedYieldRelative"` ExpectedYieldPerDay InvestAmount `json:"expectedYieldPerDay" gorm:"embedded;embeddedPrefix:expected_yield_per_day_"` ExpectedYieldPerDayRelative float64 `json:"expectedYieldPerDayRelative"` ExpectedAverageYield InvestAmount `json:"expectedAverageYield" gorm:"embedded;embeddedPrefix:expected_average_yield_"` ExpectedAverageYieldRelative float64 `json:"expectedAverageYieldRelative"` TotalAmount InvestAmount `json:"totalAmount" gorm:"embedded;embeddedPrefix:total_amount_"` }
type Loyalty ¶
type Loyalty struct { ProgramName string `json:"programName"` ProgramCode string `json:"programCode"` AccountBackgroundColor string `json:"accountBackgroundColor"` CashbackProgram bool `json:"cashbackProgram"` CoreGroup string `json:"coreGroup"` LoyaltyPointsId uint8 `json:"loyaltyPointsId"` AccrualBonuses *float64 `json:"accrualBonuses,omitempty"` LinkedBonuses *string `json:"linkedBonuses,omitempty"` TotalAvailableBonuses *float64 `json:"totalAvailableBonuses,omitempty"` AvailableBonuses *float64 `json:"availableBonuses,omitempty"` }
type LoyaltyAmount ¶
type LoyaltyAmount struct { Value float64 `json:"value"` LoyaltyProgramId string `json:"loyaltyProgramId"` Loyalty string `json:"loyalty"` Name string `json:"name"` LoyaltySteps uint8 `json:"loyaltySteps"` LoyaltyPointsId uint8 `json:"loyaltyPointsId"` LoyaltyPointsName string `json:"loyaltyPointsName"` LoyaltyImagine bool `json:"loyaltyImagine"` PartialCompensation bool `json:"partialCompensation"` }
type LoyaltyBonus ¶
type LoyaltyBonus struct { OperationId string `json:"-" gorm:"primaryKey"` DbIdx int `json:"dbIdx" gorm:"primaryKey"` Description string `json:"description"` Icon string `json:"icon"` LoyaltyType string `json:"loyaltyType"` Amount LoyaltyAmount `json:"amount" gorm:"embedded"` CompensationType string `json:"compensationType"` }
type LoyaltyBonusSummary ¶
type LoyaltyBonusSummary struct {
Amount float64 `json:"amount"`
}
type LoyaltyPayment ¶
type LoyaltyPayment struct { OperationId string `json:"-" gorm:"primaryKey"` DbIdx int `json:"dbIdx" gorm:"primaryKey"` Amount LoyaltyPaymentAmount `json:"amount" gorm:"embedded"` Status string `json:"status"` SoldTime *Milliseconds `json:"soldTime"` }
type LoyaltyPaymentAmount ¶
type LoyaltyPaymentAmount struct { LoyaltyAmount `gorm:"embedded"` Price float64 `json:"price"` }
type Milliseconds ¶
type Milliseconds struct {
tinkoff.Milliseconds
}
func (Milliseconds) GormDataType ¶
func (ms Milliseconds) GormDataType() string
func (*Milliseconds) Scan ¶
func (ms *Milliseconds) Scan(value any) error
type MultiCardCluster ¶
type MultiCardCluster struct {
Id string `json:"id"`
}
type Operation ¶
type Operation struct { AccountId string `json:"account" gorm:"index"` Account Account `json:"-" gorm:"constraint:OnDelete:CASCADE"` BrandId *string `json:"-" gorm:"index"` Brand *Brand `json:"brand,omitempty" gorm:"constraint:OnDelete:CASCADE"` SpendingCategoryId string `json:"-" gorm:"index"` SpendingCategory SpendingCategory `json:"spendingCategory" gorm:"constraint:OnDelete:CASCADE"` CategoryId string `json:"-" gorm:"index"` Category Category `json:"category" gorm:"constraint:OnDelete:CASCADE"` SubgroupId *string `json:"-" gorm:"index"` Subgroup *Subgroup `json:"subgroup,omitempty" gorm:"constraint:OnDelete:CASCADE"` IsDispute bool `json:"isDispute"` IsOffline bool `json:"isOffline"` HasStatement bool `json:"hasStatement"` IsSuspicious bool `json:"isSuspicious"` AuthorizationId *string `json:"authorizationId,omitempty"` IsInner bool `json:"isInner" gorm:"index"` Id string `json:"id" gorm:"primaryKey"` Status string `json:"status" gorm:"index"` OperationTransferred bool `json:"operationTransferred"` IdSourceType string `json:"idSourceType"` HasShoppingReceipt *bool `json:"hasShoppingReceipt,omitempty" gorm:"index"` Type string `json:"type" gorm:"index"` Locations []Location `json:"locations,omitempty" gorm:"constraint:OnDelete:CASCADE;foreignKey:OperationId"` LoyaltyBonus []LoyaltyBonus `json:"loyaltyBonus,omitempty" gorm:"constraint:OnDelete:CASCADE;foreignKey:OperationId"` CashbackAmount OperationCashbackAmount `json:"cashbackAmount" gorm:"embedded"` AuthMessage *string `json:"authMessage,omitempty"` Description string `json:"description"` IsTemplatable bool `json:"isTemplatable"` Cashback float64 `json:"cashback"` Amount OperationAmount `json:"amount" gorm:"embedded"` OperationTime Milliseconds `json:"operationTime" gorm:"index"` IsHce bool `json:"isHce"` Mcc uint `json:"mcc"` AdditionalInfo []AdditionalInfo `json:"additionalInfo,omitempty" gorm:"constraint:OnDelete:CASCADE;foreignKey:OperationId"` VirtualPaymentType uint8 `json:"virtualPaymentType"` Ucid *string `json:"ucid,omitempty"` Merchant *Merchant `json:"merchant,omitempty" gorm:"embedded;embeddedPrefix:merchant_"` Card *string `json:"card,omitempty" gorm:"index"` LoyaltyPayment []LoyaltyPayment `json:"loyaltyPayment,omitempty" gorm:"constraint:OnDelete:CASCADE;foreignKey:OperationId"` TrancheCreationAllowed bool `json:"trancheCreationAllowed"` Group *string `json:"group,omitempty"` MccString string `json:"mccString"` CardPresent bool `json:"cardPresent"` IsExternalCard bool `json:"isExternalCard"` CardNumber *string `json:"cardNumber,omitempty"` AccountAmount OperationAccountAmount `json:"accountAmount" gorm:"embedded"` LoyaltyBonusSummary *LoyaltyBonusSummary `json:"loyaltyBonusSummary,omitempty" gorm:"embedded;embeddedPrefix:loyalty_bonus_summary_"` TypeSerno *uint `json:"typeSerno"` Payment *Payment `json:"payment,omitempty" gorm:"constraint:OnDelete:CASCADE;foreignKey:OperationId"` OperationPaymentType *string `json:"operationPaymentType,omitempty"` DebitingTime *Milliseconds `json:"debitingTime,omitempty" gorm:"index"` PosId *string `json:"posId,omitempty"` Subcategory *string `json:"subcategory,omitempty" gorm:"index"` SenderAgreement *string `json:"senderAgreement,omitempty"` PointOfSaleId *uint64 `json:"pointOfSaleId,omitempty"` Compensation *string `json:"compensation,omitempty"` InstallmentStatus *string `json:"installmentStatus,omitempty"` SenderDetails *string `json:"senderDetails,omitempty"` PartnerType *string `json:"partnerType,omitempty"` Nomination *string `json:"nomination,omitempty"` Message *string `json:"message,omitempty"` TrancheId *string `json:"trancheId,omitempty"` }
type OperationAccountAmount ¶ added in v0.0.23
type OperationAmount ¶ added in v0.0.23
type OperationCashbackAmount ¶ added in v0.0.23
type Payment ¶
type Payment struct { OperationId string `json:"-" gorm:"primaryKey"` SourceIsQr bool `json:"sourceIsQr"` BankAccountId string `json:"bankAccountId"` PaymentId string `json:"paymentId"` ProviderGroupId *string `json:"providerGroupId,omitempty"` PaymentType string `json:"paymentType"` FeeAmount *PaymentFeeAmount `json:"feeAmount,omitempty" gorm:"embedded"` ProviderId string `json:"providerId"` HasPaymentOrder bool `json:"hasPaymentOrder"` Comment string `json:"comment"` IsQrPayment bool `json:"isQrPayment"` //FieldsValues map[string]any `json:"fieldsValues"` Repeatable bool `json:"repeatable"` CardNumber string `json:"cardNumber"` TemplateId *string `json:"templateId,omitempty"` TemplateIsFavorite *bool `json:"templateIsFavorite,omitempty"` }
type PaymentFeeAmount ¶ added in v0.0.23
type Receipt ¶
type Receipt struct { OperationId string `json:"-" gorm:"primaryKey"` Operation Operation `json:"-" gorm:"constraint:OnDelete:CASCADE"` RetailPlace *string `json:"retailPlace,omitempty"` RetailPlaceAddress *string `json:"retailPlaceAddress,omitempty"` CreditSum *float64 `json:"creditSum,omitempty"` ProvisionSum *float64 `json:"provisionSum,omitempty"` FiscalDriveNumber *uint64 `json:"fiscalDriveNumber,omitempty"` OperationType uint8 `json:"operationType"` CashTotalSum float64 `json:"cashTotalSum"` ShiftNumber uint `json:"shiftNumber"` KktRegId string `json:"kktRegId"` Items []ReceiptItem `json:"items" gorm:"constraint:OnDelete:CASCADE;foreignKey:OperationId"` TotalSum float64 `json:"totalSum"` EcashTotalSum float64 `json:"ecashTotalSum"` Nds10 *float64 `json:"nds10,omitempty"` Nds18 *float64 `json:"nds18,omitempty"` UserInn string `json:"userInn"` DateTime Seconds `json:"dateTime"` TaxationType uint8 `json:"taxationType"` PrepaidSum *float64 `json:"prepaidSum,omitempty"` FiscalSign uint64 `json:"fiscalSign"` RequestNumber uint `json:"requestNumber"` Operator *string `json:"operator,omitempty"` AppliedTaxationType uint8 `json:"appliedTaxationType"` FiscalDocumentNumber uint64 `json:"fiscalDocumentNumber"` User *string `json:"user,omitempty"` FiscalDriveNumberString string `json:"fiscalDriveNumberString"` }
type ReceiptItem ¶
type ReceiptItem struct { OperationId string `json:"-" gorm:"primaryKey"` DbIdx int `json:"dbIdx" gorm:"primaryKey"` Name string `json:"name" gorm:"index"` Price float64 `json:"price"` Sum float64 `json:"sum"` Quantity float64 `json:"quantity"` NdsRate *uint8 `json:"ndsRate"` Nds *uint8 `json:"nds"` Nds10 *float64 `json:"nds10,omitempty"` Nds18 *float64 `json:"nds18,omitempty"` BrandId *uint64 `json:"brand_id,omitempty"` GoodId *uint64 `json:"good_id,omitempty"` }
type SpendingCategory ¶
type Statement ¶
type Statement struct { AccountId string `json:"-" gorm:"index"` Account Account `json:"-" gorm:"constraint:OnDelete:CASCADE"` OverdraftFee *StatementOverdraftFee `json:"overdraftFee,omitempty" gorm:"embedded"` Expense StatementExpense `json:"expense" gorm:"embedded"` OverLimitDebt *StatementOverLimitDebt `json:"overLimitDebt,omitempty" gorm:"embedded"` PeriodEndBalance StatementPeriodEndBalance `json:"periodEndBalance" gorm:"embedded"` ArrestAmount *StatementArrestAmount `json:"arrestAmount,omitempty" gorm:"embedded"` OtherBonus *StatementOtherBonus `json:"otherBonus,omitempty" gorm:"embedded"` CreditLimit *StatementCreditLimit `json:"creditLimit,omitempty" gorm:"embedded"` TranchesMonthlyPayment *StatementTranchesMonthlyPayment `json:"tranchesMonthlyPayment,omitempty" gorm:"embedded"` BilledDebt *StatementBilledDebt `json:"billedDebt,omitempty" gorm:"embedded"` Cashback StatementCashback `json:"cashback" gorm:"embedded"` Balance StatementBalance `json:"balance" gorm:"embedded"` HighCashback *StatementHighCashback `json:"highCashback,omitempty" gorm:"embedded"` PeriodStartBalance StatementPeriodStartBalance `json:"periodStartBalance" gorm:"embedded"` LowCashback *StatementLowCashback `json:"lowCashback,omitempty" gorm:"embedded"` AvailableLimit *StatementAvailableLimit `json:"availableLimit,omitempty" gorm:"embedded"` Id string `json:"id" gorm:"primaryKey"` InterestBonus *StatementInterestBonus `json:"interestBonus,omitempty" gorm:"embedded"` Interest StatementInterest `json:"interest" gorm:"embedded"` Date Milliseconds `json:"date" gorm:"index"` Income StatementIncome `json:"income" gorm:"embedded"` CreditBonus *StatementCreditBonus `json:"creditBonus,omitempty" gorm:"embedded"` LastPaymentDate *Milliseconds `json:"lastPaymentDate,omitempty"` OtherCashback *StatementOtherCashback `json:"otherCashback,omitempty" gorm:"embedded"` MinimalPaymentAmount *StatementMinimalPaymentAmount `json:"minimalPaymentAmount,omitempty" gorm:"embedded"` PastDueDebt *StatementPastDueDebt `json:"pastDueDebt,omitempty" gorm:"embedded"` Period StatementPeriod `json:"period" gorm:"embedded;embeddedPrefix:period_"` NoOverdue *bool `json:"noOverdue,omitempty"` Repaid *string `json:"repaid,omitempty"` }
type StatementArrestAmount ¶ added in v0.0.23
type StatementAvailableLimit ¶ added in v0.0.23
type StatementBalance ¶ added in v0.0.23
type StatementBilledDebt ¶ added in v0.0.23
type StatementCashback ¶ added in v0.0.23
type StatementCreditBonus ¶ added in v0.0.23
type StatementCreditLimit ¶ added in v0.0.23
type StatementExpense ¶ added in v0.0.23
type StatementHighCashback ¶ added in v0.0.23
type StatementIncome ¶ added in v0.0.23
type StatementInterest ¶ added in v0.0.23
type StatementInterestBonus ¶ added in v0.0.23
type StatementLowCashback ¶ added in v0.0.23
type StatementMinimalPaymentAmount ¶ added in v0.0.23
type StatementOtherBonus ¶ added in v0.0.23
type StatementOtherCashback ¶ added in v0.0.23
type StatementOverLimitDebt ¶ added in v0.0.23
type StatementOverdraftFee ¶ added in v0.0.23
type StatementPastDueDebt ¶ added in v0.0.23
type StatementPeriod ¶
type StatementPeriod struct { Start Milliseconds `json:"start"` End Milliseconds `json:"end"` }
type StatementPeriodEndBalance ¶ added in v0.0.23
type StatementPeriodStartBalance ¶ added in v0.0.23
type StatementTranchesMonthlyPayment ¶ added in v0.0.23
type Trade ¶
type Trade struct { InvestOperationInternalId string `json:"-" gorm:"primaryKey"` DbIdx int `json:"dbIdx" gorm:"primaryKey"` Date DateTimeMilliOffset `json:"date"` Num string `json:"num"` Price InvestAmount `json:"price" gorm:"embedded;embeddedPrefix:price_"` Quantity int `json:"quantity"` Yield *InvestAmount `json:"yield,omitempty" gorm:"embedded;embeddedPrefix:yield_"` YieldRelative *float64 `json:"yieldRelative,omitempty"` }
type TradesInfo ¶
Click to show internal directories.
Click to hide internal directories.