models

package
v1.10.11 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FakeProviderObjectId

func FakeProviderObjectId(_ reflect.Value) (interface{}, error)

FakeProviderObjectId returns value as mongo ObjectID

func FakeProviderObjectIdPointer

func FakeProviderObjectIdPointer(_ reflect.Value) (interface{}, error)

FakeProviderObjectIdPointer returns value with pointer as mongo ObjectID

func FakeProviderObjectIdString

func FakeProviderObjectIdString(_ reflect.Value) (interface{}, error)

FakeProviderObjectIdString returns value as string of mongo ObjectID

func InitFakeCustomProviders

func InitFakeCustomProviders()

InitFakeCustomProviders is initialize all custom providers for faker library.

Types

type Autoincrement added in v1.5.0

type Autoincrement struct {
	Id         primitive.ObjectID `bson:"_id"`
	Collection string             `bson:"collection"`
	Counter    int64              `bson:"counter"`
	UpdatedAt  time.Time          `bson:"updated_at"`
}

type Mapper

type Mapper interface {
	MapObjectToMgo(obj interface{}) (interface{}, error)
	MapMgoToObject(obj interface{}) (interface{}, error)
}

func NewAccountingEntryMapper

func NewAccountingEntryMapper() Mapper

func NewCommonMerchantMapper

func NewCommonMerchantMapper() Mapper

func NewCountryMapper

func NewCountryMapper() Mapper

func NewCustomerMapper

func NewCustomerMapper() Mapper

func NewDashboardAmountItemWithChartMapper

func NewDashboardAmountItemWithChartMapper() Mapper

func NewDashboardRevenueByCountryReportMapper

func NewDashboardRevenueByCountryReportMapper() Mapper

func NewDashboardRevenueDynamicReportItemMapper

func NewDashboardRevenueDynamicReportItemMapper() Mapper

func NewKeyMapper

func NewKeyMapper() Mapper

func NewKeyProductMapper

func NewKeyProductMapper() Mapper

func NewMerchantBalanceMapper

func NewMerchantBalanceMapper() Mapper

func NewMerchantDocumentMapper added in v1.9.0

func NewMerchantDocumentMapper() Mapper

func NewMerchantMapper

func NewMerchantMapper() Mapper

func NewMerchantPaymentMethodHistoryMapper

func NewMerchantPaymentMethodHistoryMapper() Mapper

func NewMoneyBackCostMerchantMapper

func NewMoneyBackCostMerchantMapper() Mapper

func NewMoneyBackCostSystemMapper

func NewMoneyBackCostSystemMapper() Mapper

func NewNotificationMapper

func NewNotificationMapper() Mapper

func NewOperatingCompanyMapper

func NewOperatingCompanyMapper() Mapper

func NewOrderMapper

func NewOrderMapper() Mapper

func NewOrderViewPrivateMapper

func NewOrderViewPrivateMapper() Mapper

func NewOrderViewPublicMapper

func NewOrderViewPublicMapper() Mapper

func NewPageReviewMapper

func NewPageReviewMapper() Mapper

func NewPayLinkMapper

func NewPayLinkMapper() Mapper

func NewPaymentChannelCostMerchantMapper

func NewPaymentChannelCostMerchantMapper() Mapper

func NewPaymentChannelCostSystemMapper

func NewPaymentChannelCostSystemMapper() Mapper

func NewPaymentMethodMapper

func NewPaymentMethodMapper() Mapper

func NewPaymentMinLimitSystemMapper

func NewPaymentMinLimitSystemMapper() Mapper

func NewPaymentSystemMapper

func NewPaymentSystemMapper() Mapper

func NewPayoutChangesMapper

func NewPayoutChangesMapper() Mapper

func NewPayoutMapper

func NewPayoutMapper() Mapper

func NewPriceGroupMapper

func NewPriceGroupMapper() Mapper

func NewPriceTableMapper

func NewPriceTableMapper() Mapper

func NewProductMapper

func NewProductMapper() Mapper

func NewProjectMapper

func NewProjectMapper() Mapper

func NewRefundMapper

func NewRefundMapper() Mapper

func NewRoyaltyReportChangesMapper

func NewRoyaltyReportChangesMapper() Mapper

func NewRoyaltyReportCorrectionItemMapper

func NewRoyaltyReportCorrectionItemMapper() Mapper

func NewRoyaltyReportMapper

func NewRoyaltyReportMapper() Mapper

func NewUserProfileMapper

func NewUserProfileMapper() Mapper

func NewUserRoleMapper

func NewUserRoleMapper() Mapper

func NewVatReportMapper

func NewVatReportMapper() Mapper

func NewZipCodeMapper

func NewZipCodeMapper() Mapper

type MgoAccountingEntry

type MgoAccountingEntry struct {
	Id                    primitive.ObjectID        `bson:"_id" faker:"objectId"`
	Object                string                    `bson:"object"`
	Type                  string                    `bson:"type"`
	Source                *MgoAccountingEntrySource `bson:"source"`
	MerchantId            primitive.ObjectID        `bson:"merchant_id" faker:"objectId"`
	Amount                float64                   `bson:"amount"`
	Currency              string                    `bson:"currency"`
	Reason                string                    `bson:"reason"`
	Status                string                    `bson:"status"`
	Country               string                    `bson:"country"`
	OriginalAmount        float64                   `bson:"original_amount"`
	OriginalCurrency      string                    `bson:"original_currency"`
	LocalAmount           float64                   `bson:"local_amount"`
	LocalCurrency         string                    `bson:"local_currency"`
	CreatedAt             time.Time                 `bson:"created_at"`
	AvailableOn           time.Time                 `bson:"available_on"`
	OperatingCompanyId    string                    `bson:"operating_company_id"`
	AmountRounded         float64                   `bson:"amount_rounded"`
	OriginalAmountRounded float64                   `bson:"original_amount_rounded"`
	LocalAmountRounded    float64                   `bson:"local_amount_rounded"`
}

type MgoAccountingEntrySource

type MgoAccountingEntrySource struct {
	Id   primitive.ObjectID `bson:"id" faker:"objectId"`
	Type string             `bson:"type"`
}

type MgoCountry

type MgoCountry struct {
	Id                      primitive.ObjectID             `bson:"_id" faker:"objectId"`
	IsoCodeA2               string                         `bson:"iso_code_a2"`
	Region                  string                         `bson:"region"`
	Currency                string                         `bson:"currency"`
	PaymentsAllowed         bool                           `bson:"payments_allowed"`
	ChangeAllowed           bool                           `bson:"change_allowed"`
	VatEnabled              bool                           `bson:"vat_enabled"`
	VatCurrency             string                         `bson:"vat_currency"`
	PriceGroupId            string                         `bson:"price_group_id"`
	VatThreshold            *billingpb.CountryVatThreshold `bson:"vat_threshold"`
	VatPeriodMonth          int32                          `bson:"vat_period_month"`
	VatDeadlineDays         int32                          `bson:"vat_deadline_days"`
	VatStoreYears           int32                          `bson:"vat_store_years"`
	VatCurrencyRatesPolicy  string                         `bson:"vat_currency_rates_policy"`
	VatCurrencyRatesSource  string                         `bson:"vat_currency_rates_source"`
	PayerTariffRegion       string                         `bson:"payer_tariff_region"`
	CreatedAt               time.Time                      `bson:"created_at"`
	UpdatedAt               time.Time                      `bson:"updated_at"`
	HighRiskPaymentsAllowed bool                           `bson:"high_risk_payments_allowed"`
	HighRiskChangeAllowed   bool                           `bson:"high_risk_change_allowed"`
}

type MgoCustomer

type MgoCustomer struct {
	Id                    primitive.ObjectID               `bson:"_id" faker:"objectId"`
	TechEmail             string                           `bson:"tech_email"`
	ExternalId            string                           `bson:"external_id"`
	Email                 string                           `bson:"email"`
	EmailVerified         bool                             `bson:"email_verified"`
	Phone                 string                           `bson:"phone"`
	PhoneVerified         bool                             `bson:"phone_verified"`
	Name                  string                           `bson:"name"`
	Ip                    []byte                           `bson:"ip"`
	IpString              string                           `bson:"ip_string"`
	Locale                string                           `bson:"locale"`
	AcceptLanguage        string                           `bson:"accept_language"`
	UserAgent             string                           `bson:"user_agent"`
	Address               *billingpb.OrderBillingAddress   `bson:"address"`
	Identity              []*MgoCustomerIdentity           `bson:"identity"`
	IpHistory             []*MgoCustomerIpHistory          `bson:"ip_history"`
	AddressHistory        []*MgoCustomerAddressHistory     `bson:"address_history"`
	LocaleHistory         []*MgoCustomerStringValueHistory `bson:"locale_history"`
	AcceptLanguageHistory []*MgoCustomerStringValueHistory `bson:"accept_language_history"`
	Metadata              map[string]string                `bson:"metadata"`
	CreatedAt             time.Time                        `bson:"created_at"`
	UpdatedAt             time.Time                        `bson:"updated_at"`
	NotifySale            bool                             `bson:"notify_sale"`
	NotifySaleEmail       string                           `bson:"notify_sale_email"`
	NotifyNewRegion       bool                             `bson:"notify_new_region"`
	NotifyNewRegionEmail  string                           `bson:"notify_new_region_email"`
	PaymentActivity       []*MgoCustomerPaymentActivity    `bson:"payment_activity"`
	Uuid                  string                           `bson:"uuid"`
}

type MgoCustomerAddressHistory

type MgoCustomerAddressHistory struct {
	Country    string    `bson:"country"`
	City       string    `bson:"city"`
	PostalCode string    `bson:"postal_code"`
	State      string    `bson:"state"`
	CreatedAt  time.Time `bson:"created_at"`
}

type MgoCustomerIdentity

type MgoCustomerIdentity struct {
	MerchantId primitive.ObjectID `bson:"merchant_id" faker:"objectId"`
	ProjectId  primitive.ObjectID `bson:"project_id" faker:"objectId"`
	Type       string             `bson:"type"`
	Value      string             `bson:"value"`
	Verified   bool               `bson:"verified"`
	CreatedAt  time.Time          `bson:"created_at"`
}

type MgoCustomerIpHistory

type MgoCustomerIpHistory struct {
	Ip        []byte                         `bson:"ip"`
	IpString  string                         `bson:"ip_string"`
	Address   *billingpb.OrderBillingAddress `bson:"address"`
	CreatedAt time.Time                      `bson:"created_at"`
}

type MgoCustomerPaymentActivity added in v1.7.0

type MgoCustomerPaymentActivity struct {
	MerchantId string                                `bson:"merchant_id"`
	Count      *billingpb.PaymentActivityItemCount   `bson:"count"`
	LastTxnAt  *MgoPaymentActivityItemLastTxnAt      `bson:"last_txn_at"`
	Revenue    *billingpb.PaymentActivityItemRevenue `bson:"revenue"`
}

type MgoCustomerStringValueHistory

type MgoCustomerStringValueHistory struct {
	Value     string    `bson:"value"`
	CreatedAt time.Time `bson:"created_at"`
}

type MgoDashboardAmountItemWithChart

type MgoDashboardAmountItemWithChart struct {
	Amount   float64                              `bson:"amount"`
	Currency string                               `bson:"currency"`
	Chart    []*billingpb.DashboardChartItemFloat `bson:"chart"`
}

type MgoDashboardRevenueByCountryReport

type MgoDashboardRevenueByCountryReport struct {
	Currency      string                                         `bson:"currency"`
	Top           []*MgoDashboardRevenueByCountryReportTop       `bson:"top"`
	TotalCurrent  float64                                        `bson:"total"`
	TotalPrevious float64                                        `bson:"total_previous"`
	Chart         []*MgoDashboardRevenueByCountryReportChartItem `bson:"chart"`
}

type MgoDashboardRevenueByCountryReportChartItem

type MgoDashboardRevenueByCountryReportChartItem struct {
	Label  int64   `bson:"label"`
	Amount float64 `bson:"amount"`
}

type MgoDashboardRevenueByCountryReportTop

type MgoDashboardRevenueByCountryReportTop struct {
	Country string  `bson:"_id"`
	Amount  float64 `bson:"amount"`
}

type MgoDashboardRevenueDynamicReport

type MgoDashboardRevenueDynamicReport struct {
	Currency string
	Items    []*MgoDashboardRevenueDynamicReportItem
}

type MgoDashboardRevenueDynamicReportItem

type MgoDashboardRevenueDynamicReportItem struct {
	Label    int64   `bson:"label"`
	Amount   float64 `bson:"amount"`
	Currency string  `bson:"currency"`
	Count    int64   `bson:"count"`
}

type MgoGrossRevenueAndVatReports

type MgoGrossRevenueAndVatReports struct {
	GrossRevenue *MgoDashboardAmountItemWithChart `bson:"gross_revenue"`
	Vat          *MgoDashboardAmountItemWithChart `bson:"vat"`
}

type MgoKey

type MgoKey struct {
	Id           primitive.ObjectID  `bson:"_id" faker:"objectId"`
	Code         string              `bson:"code"`
	KeyProductId primitive.ObjectID  `bson:"key_product_id" faker:"objectId"`
	PlatformId   string              `bson:"platform_id"`
	OrderId      *primitive.ObjectID `bson:"order_id" faker:"objectIdPointer"`
	CreatedAt    time.Time           `bson:"created_at"`
	ReservedTo   time.Time           `bson:"reserved_to"`
	RedeemedAt   time.Time           `bson:"redeemed_at"`
}

type MgoKeyProduct

type MgoKeyProduct struct {
	Id                 primitive.ObjectID              `bson:"_id" json:"id" faker:"objectId"`
	Object             string                          `bson:"object" json:"object"`
	Sku                string                          `bson:"sku" json:"sku"`
	Name               []*billingpb.I18NTextSearchable `bson:"name" json:"name"`
	DefaultCurrency    string                          `bson:"default_currency" json:"default_currency"`
	Enabled            bool                            `bson:"enabled" json:"enabled"`
	Platforms          []*MgoPlatformPrice             `bson:"platforms" json:"platforms"`
	Description        map[string]string               `bson:"description" json:"description"`
	LongDescription    map[string]string               `bson:"long_description,omitempty" json:"long_description"`
	CreatedAt          time.Time                       `bson:"created_at" json:"created_at"`
	UpdatedAt          time.Time                       `bson:"updated_at" json:"updated_at"`
	PublishedAt        *time.Time                      `bson:"published_at" json:"published_at"`
	Cover              *billingpb.ImageCollection      `bson:"cover" json:"cover"`
	Url                string                          `bson:"url,omitempty" json:"url"`
	Metadata           map[string]string               `bson:"metadata,omitempty" json:"metadata"`
	Deleted            bool                            `bson:"deleted" json:"deleted"`
	MerchantId         primitive.ObjectID              `bson:"merchant_id" json:"-" faker:"objectId"`
	ProjectId          primitive.ObjectID              `bson:"project_id" json:"project_id" faker:"objectId"`
	Pricing            string                          `bson:"pricing" json:"pricing"`
	MinimalLimitNotify int32                           `bson:"minimal_limit_notify" json:"minimal_limit_notify"`
}

type MgoMerchant

type MgoMerchant struct {
	Id                                            primitive.ObjectID                   `bson:"_id"`
	User                                          *MgoMerchantUser                     `bson:"user"`
	Company                                       *billingpb.MerchantCompanyInfo       `bson:"company"`
	Contacts                                      *billingpb.MerchantContact           `bson:"contacts"`
	Banking                                       *billingpb.MerchantBanking           `bson:"banking"`
	Status                                        int32                                `bson:"status"`
	CreatedAt                                     time.Time                            `bson:"created_at"`
	UpdatedAt                                     time.Time                            `bson:"updated_at"`
	FirstPaymentAt                                time.Time                            `bson:"first_payment_at"`
	IsVatEnabled                                  bool                                 `bson:"is_vat_enabled"`
	IsCommissionToUserEnabled                     bool                                 `bson:"is_commission_to_user_enabled"`
	HasMerchantSignature                          bool                                 `bson:"has_merchant_signature"`
	HasPspSignature                               bool                                 `bson:"has_psp_signature"`
	LastPayout                                    *MgoMerchantLastPayout               `bson:"last_payout"`
	IsSigned                                      bool                                 `bson:"is_signed"`
	PaymentMethods                                map[string]*MgoMerchantPaymentMethod `bson:"payment_methods"`
	AgreementType                                 int32                                `bson:"agreement_type"`
	AgreementSentViaMail                          bool                                 `bson:"agreement_sent_via_mail"`
	MailTrackingLink                              string                               `bson:"mail_tracking_link"`
	S3AgreementName                               string                               `bson:"s3_agreement_name"`
	PayoutCostAmount                              float64                              `bson:"payout_cost_amount"`
	PayoutCostCurrency                            string                               `bson:"payout_cost_currency"`
	MinPayoutAmount                               float64                              `bson:"min_payout_amount"`
	RollingReserveThreshold                       float64                              `bson:"rolling_reserve_amount"`
	RollingReserveDays                            int32                                `bson:"rolling_reserve_days"`
	RollingReserveChargebackTransactionsThreshold float64                              `bson:"rolling_reserve_chargeback_transactions_threshold"`
	ItemMinCostAmount                             float64                              `bson:"item_min_cost_amount"`
	ItemMinCostCurrency                           string                               `bson:"item_min_cost_currency"`
	Tariff                                        *billingpb.MerchantTariff            `bson:"tariff"`
	AgreementSignatureData                        *MgoMerchantAgreementSignatureData   `bson:"agreement_signature_data"`
	Steps                                         *billingpb.MerchantCompletedSteps    `bson:"steps"`
	AgreementTemplate                             string                               `bson:"agreement_template"`
	ReceivedDate                                  time.Time                            `bson:"received_date"`
	StatusLastUpdatedAt                           time.Time                            `bson:"status_last_updated_at"`
	AgreementNumber                               string                               `bson:"agreement_number"`
	MinimalPayoutLimit                            float32                              `bson:"minimal_payout_limit"`
	ManualPayoutsEnabled                          bool                                 `bson:"manual_payouts_enabled"`
	MccCode                                       string                               `bson:"mcc_code"`
	OperatingCompanyId                            string                               `bson:"operating_company_id"`
	MerchantOperationsType                        string                               `bson:"merchant_operations_type"`
	DontChargeVat                                 bool                                 `bson:"dont_charge_vat"`
}

type MgoMerchantAgreementSignatureData

type MgoMerchantAgreementSignatureData struct {
	DetailsUrl          string                                    `bson:"details_url"`
	FilesUrl            string                                    `bson:"files_url"`
	SignatureRequestId  string                                    `bson:"signature_request_id"`
	MerchantSignatureId string                                    `bson:"merchant_signature_id"`
	PsSignatureId       string                                    `bson:"ps_signature_id"`
	MerchantSignUrl     *MgoMerchantAgreementSignatureDataSignUrl `bson:"merchant_sign_url"`
	PsSignUrl           *MgoMerchantAgreementSignatureDataSignUrl `bson:"ps_sign_url"`
}

type MgoMerchantAgreementSignatureDataSignUrl

type MgoMerchantAgreementSignatureDataSignUrl struct {
	SignUrl   string    `bson:"sign_url"`
	ExpiresAt time.Time `bson:"expires_at"`
}

type MgoMerchantBalance

type MgoMerchantBalance struct {
	Id             primitive.ObjectID `bson:"_id" faker:"objectId"`
	MerchantId     primitive.ObjectID `bson:"merchant_id" faker:"objectId"`
	Currency       string             `bson:"currency"`
	Debit          float64            `bson:"debit"`
	Credit         float64            `bson:"credit"`
	RollingReserve float64            `bson:"rolling_reserve"`
	Total          float64            `bson:"total"`
	CreatedAt      time.Time          `bson:"created_at"`
}

type MgoMerchantCommon

type MgoMerchantCommon struct {
	Id      primitive.ObjectID             `bson:"_id"`
	Company *billingpb.MerchantCompanyInfo `bson:"company"`
	Banking *billingpb.MerchantBanking     `bson:"banking"`
	Status  int32                          `bson:"status"`
}

type MgoMerchantDocument added in v1.9.0

type MgoMerchantDocument struct {
	Id           primitive.ObjectID `bson:"_id" faker:"objectId"`
	MerchantId   primitive.ObjectID `bson:"merchant_id" faker:"objectId"`
	UserId       primitive.ObjectID `bson:"user_id" faker:"objectId"`
	OriginalName string             `bson:"original_name"`
	FilePath     string             `bson:"file_path"`
	Description  string             `bson:"description"`
	CreatedAt    time.Time          `bson:"created_at"`
}

type MgoMerchantLastPayout

type MgoMerchantLastPayout struct {
	Date   time.Time `bson:"date"`
	Amount float64   `bson:"amount"`
}

type MgoMerchantPaymentMethod

type MgoMerchantPaymentMethod struct {
	PaymentMethod *MgoMerchantPaymentMethodIdentification     `bson:"payment_method"`
	Commission    *billingpb.MerchantPaymentMethodCommissions `bson:"commission"`
	Integration   *billingpb.MerchantPaymentMethodIntegration `bson:"integration"`
	IsActive      bool                                        `bson:"is_active"`
}

type MgoMerchantPaymentMethodHistory

type MgoMerchantPaymentMethodHistory struct {
	Id            primitive.ObjectID        `bson:"_id"`
	MerchantId    primitive.ObjectID        `bson:"merchant_id"`
	PaymentMethod *MgoMerchantPaymentMethod `bson:"payment_method"`
	CreatedAt     time.Time                 `bson:"created_at" json:"created_at"`
	UserId        primitive.ObjectID        `bson:"user_id"`
}

type MgoMerchantPaymentMethodIdentification

type MgoMerchantPaymentMethodIdentification struct {
	Id   primitive.ObjectID `bson:"id"`
	Name string             `bson:"name"`
}

type MgoMerchantUser

type MgoMerchantUser struct {
	Id               string    `bson:"id"`
	Email            string    `bson:"email"`
	FirstName        string    `bson:"first_name"`
	LastName         string    `bson:"last_name"`
	ProfileId        string    `bson:"profile_id"`
	RegistrationDate time.Time `bson:"registration_date"`
}

type MgoMoneyBackCostMerchant

type MgoMoneyBackCostMerchant struct {
	Id                primitive.ObjectID `bson:"_id" faker:"objectId"`
	MerchantId        primitive.ObjectID `bson:"merchant_id" faker:"objectId"`
	Name              string             `bson:"name"`
	PayoutCurrency    string             `bson:"payout_currency"`
	UndoReason        string             `bson:"undo_reason"`
	Region            string             `bson:"region"`
	Country           string             `bson:"country"`
	DaysFrom          int32              `bson:"days_from"`
	PaymentStage      int32              `bson:"payment_stage"`
	Percent           float64            `bson:"percent"`
	FixAmount         float64            `bson:"fix_amount"`
	FixAmountCurrency string             `bson:"fix_amount_currency"`
	IsPaidByMerchant  bool               `bson:"is_paid_by_merchant"`
	CreatedAt         time.Time          `bson:"created_at"`
	UpdatedAt         time.Time          `bson:"updated_at"`
	IsActive          bool               `bson:"is_active"`
	MccCode           string             `bson:"mcc_code"`
}

type MgoMoneyBackCostSystem

type MgoMoneyBackCostSystem struct {
	Id                 primitive.ObjectID `bson:"_id" faker:"objectId"`
	Name               string             `bson:"name"`
	PayoutCurrency     string             `bson:"payout_currency"`
	UndoReason         string             `bson:"undo_reason"`
	Region             string             `bson:"region"`
	Country            string             `bson:"country"`
	DaysFrom           int32              `bson:"days_from"`
	PaymentStage       int32              `bson:"payment_stage"`
	Percent            float64            `bson:"percent"`
	FixAmount          float64            `bson:"fix_amount"`
	CreatedAt          time.Time          `bson:"created_at"`
	UpdatedAt          time.Time          `bson:"updated_at"`
	IsActive           bool               `bson:"is_active"`
	MccCode            string             `bson:"mcc_code"`
	OperatingCompanyId string             `bson:"operating_company_id"`
	FixAmountCurrency  string             `bson:"fix_amount_currency"`
}

type MgoMultiLang

type MgoMultiLang struct {
	Lang  string `bson:"lang"`
	Value string `bson:"value"`
}

type MgoNotification

type MgoNotification struct {
	Id         primitive.ObjectID                    `bson:"_id" faker:"objectId"`
	Message    string                                `bson:"message"`
	MerchantId primitive.ObjectID                    `bson:"merchant_id" faker:"objectId"`
	UserId     string                                `bson:"user_id"`
	IsSystem   bool                                  `bson:"is_system"`
	IsRead     bool                                  `bson:"is_read"`
	CreatedAt  time.Time                             `bson:"created_at"`
	UpdatedAt  time.Time                             `bson:"updated_at"`
	Statuses   *billingpb.SystemNotificationStatuses `bson:"statuses"`
}

type MgoOperatingCompany

type MgoOperatingCompany struct {
	Id                 primitive.ObjectID `bson:"_id" faker:"objectId"`
	Name               string             `bson:"name"`
	Country            string             `bson:"country"`
	RegistrationNumber string             `bson:"registration_number"`
	RegistrationDate   string             `bson:"registration_date"`
	VatNumber          string             `bson:"vat_number"`
	Email              string             `bson:"email"`
	Address            string             `bson:"address"`
	VatAddress         string             `bson:"vat_address"`
	SignatoryName      string             `bson:"signatory_name"`
	SignatoryPosition  string             `bson:"signatory_position"`
	BankingDetails     string             `bson:"banking_details"`
	PaymentCountries   []string           `bson:"payment_countries"`
	CreatedAt          time.Time          `bson:"created_at"`
	UpdatedAt          time.Time          `bson:"updated_at"`
}

type MgoOrder

type MgoOrder struct {
	Id                          primitive.ObjectID                       `bson:"_id" faker:"objectId"`
	Uuid                        string                                   `bson:"uuid"`
	Transaction                 string                                   `bson:"pm_order_id"`
	Object                      string                                   `bson:"object"`
	Status                      string                                   `bson:"status"`
	PrivateStatus               int32                                    `bson:"private_status"`
	Description                 string                                   `bson:"description"`
	CreatedAt                   time.Time                                `bson:"created_at"`
	UpdatedAt                   time.Time                                `bson:"updated_at"`
	CanceledAt                  time.Time                                `bson:"canceled_at"`
	Canceled                    bool                                     `bson:"canceled"`
	Cancellation                *billingpb.OrderNotificationCancellation `bson:"cancellation"`
	Refunded                    bool                                     `bson:"refunded"`
	RefundedAt                  time.Time                                `bson:"refunded_at"`
	ReceiptEmail                string                                   `bson:"receipt_email"`
	ReceiptPhone                string                                   `bson:"receipt_phone"`
	ReceiptNumber               string                                   `bson:"receipt_number"`
	ReceiptUrl                  string                                   `bson:"receipt_url"`
	AgreementVersion            string                                   `bson:"agreement_version"`
	AgreementAccepted           bool                                     `bson:"agreement_accepted"`
	NotifySale                  bool                                     `bson:"notify_sale"`
	NotifySaleEmail             string                                   `bson:"notify_sale_email"`
	Issuer                      *billingpb.OrderIssuer                   `bson:"issuer"`
	TotalPaymentAmount          float64                                  `bson:"total_payment_amount"`
	Currency                    string                                   `bson:"currency"`
	User                        *billingpb.OrderUser                     `bson:"user"`
	BillingAddress              *billingpb.OrderBillingAddress           `bson:"billing_address"`
	Tax                         *billingpb.OrderTax                      `bson:"tax"`
	PaymentMethod               *MgoOrderPaymentMethod                   `bson:"payment_method"`
	Items                       []*MgoOrderItem                          `bson:"items"`
	Refund                      *MgoOrderNotificationRefund              `bson:"refund"`
	Metadata                    map[string]string                        `bson:"metadata"`
	PrivateMetadata             map[string]string                        `bson:"private_metadata"`
	Project                     *MgoOrderProject                         `bson:"project"`
	ProjectLastRequestedAt      time.Time                                `bson:"project_last_requested_at"`
	ProjectParams               map[string]string                        `bson:"project_params"`
	PaymentMethodOrderClosedAt  time.Time                                `bson:"pm_order_close_date"`
	IsJsonRequest               bool                                     `bson:"created_by_json"`
	OrderAmount                 float64                                  `bson:"private_amount"`
	PaymentMethodPayerAccount   string                                   `bson:"pm_account"`
	PaymentMethodTxnParams      map[string]string                        `bson:"pm_txn_params"`
	PaymentRequisites           map[string]string                        `bson:"payment_requisites"`
	ExpireDateToFormInput       time.Time                                `bson:"expire_date_to_form_input"`
	UserAddressDataRequired     bool                                     `bson:"user_address_data_required"`
	Products                    []string                                 `bson:"products"`
	IsNotificationsSent         map[string]bool                          `bson:"is_notifications_sent"`
	CountryRestriction          *billingpb.CountryRestriction            `bson:"country_restriction"`
	ParentOrder                 *billingpb.ParentOrder                   `bson:"parent_order"`
	ParentPaymentAt             time.Time                                `bson:"parent_payment_at"`
	Type                        string                                   `bson:"type"`
	IsVatDeduction              bool                                     `bson:"is_vat_deduction"`
	CountryCode                 string                                   `bson:"country_code"`
	PlatformId                  string                                   `bson:"platform_id"`
	ProductType                 string                                   `bson:"product_type"`
	Keys                        []string                                 `bson:"keys"`
	IsKeyProductNotified        bool                                     `bson:"is_key_product_notified"`
	ReceiptId                   string                                   `bson:"receipt_id"`
	IsBuyForVirtualCurrency     bool                                     `bson:"is_buy_for_virtual_currency"`
	MccCode                     string                                   `bson:"mcc_code"`
	OperatingCompanyId          string                                   `bson:"operating_company_id"`
	IsHighRisk                  bool                                     `bson:"is_high_risk"`
	ChargeCurrency              string                                   `bson:"charge_currency"`
	ChargeAmount                float64                                  `bson:"charge_amount"`
	PaymentIpCountry            string                                   `bson:"payment_ip_country"`
	IsIpCountryMismatchBin      bool                                     `bson:"is_ip_country_mismatch_bin"`
	BillingCountryChangedByUser bool                                     `bson:"billing_country_changed_by_user"`
	IsRefundAllowed             bool                                     `bson:"is_refund_allowed"`
	VatPayer                    string                                   `bson:"vat_payer"`
	IsProduction                bool                                     `bson:"is_production"`
	FormMode                    string                                   `bson:"form_mode"`
	IsCurrencyPredefined        bool                                     `bson:"is_currency_predefined"`
	MetadataValues              []string                                 `bson:"metadata_values" json:"-"`
	MerchantInfo                *billingpb.OrderViewMerchantInfo         `bson:"merchant_info"`
	RoyaltyReportId             string                                   `bson:"royalty_report_id"`
	NetRevenue                  *billingpb.OrderViewMoney                `bson:"-"`
	Fee                         *billingpb.OrderViewMoney                `bson:"-"`
	RecurringSettings           *billingpb.OrderRecurringSettings        `bson:"recurring_settings"`
	Recurring                   bool                                     `bson:"recurring"`
	RecurringId                 string                                   `bson:"recurring_id"`
}

type MgoOrderItem

type MgoOrderItem struct {
	Id          primitive.ObjectID `bson:"_id" faker:"objectId"`
	Object      string             `bson:"object"`
	Sku         string             `bson:"sku"`
	Name        string             `bson:"name"`
	Description string             `bson:"description"`
	Amount      float64            `bson:"amount"`
	Currency    string             `bson:"currency"`
	Images      []string           `bson:"images"`
	Url         string             `bson:"url"`
	Metadata    map[string]string  `bson:"metadata"`
	Code        string             `bson:"code"`
	CreatedAt   time.Time          `bson:"created_at"`
	UpdatedAt   time.Time          `bson:"updated_at"`
	PlatformId  string             `bson:"platform_id"`
}

type MgoOrderNotificationRefund

type MgoOrderNotificationRefund struct {
	Amount        float64 `bson:"amount"`
	Currency      string  `bson:"currency"`
	Reason        string  `bson:"reason"`
	Code          string  `bson:"code"`
	ReceiptNumber string  `bson:"receipt_number"`
	ReceiptUrl    string  `bson:"receipt_url"`
}

type MgoOrderPaymentMethod

type MgoOrderPaymentMethod struct {
	Id               primitive.ObjectID             `bson:"_id" faker:"objectId"`
	Name             string                         `bson:"name"`
	Handler          string                         `bson:"handler"`
	ExternalId       string                         `bson:"external_id"`
	Params           *billingpb.PaymentMethodParams `bson:"params"`
	PaymentSystemId  primitive.ObjectID             `bson:"payment_system_id" faker:"objectId"`
	Group            string                         `bson:"group_alias"`
	Saved            bool                           `bson:"saved"`
	Card             *billingpb.PaymentMethodCard   `bson:"card,omitempty"`
	Wallet           *billingpb.PaymentMethodWallet `bson:"wallet,omitempty"`
	CryptoCurrency   *billingpb.PaymentMethodCrypto `bson:"crypto_currency,omitempty"`
	RefundAllowed    bool                           `bson:"refund_allowed"`
	RecurringAllowed bool                           `bson:"recurring_allowed"`
}

type MgoOrderProject

type MgoOrderProject struct {
	Id                      primitive.ObjectID                 `bson:"_id" faker:"objectId"`
	MerchantId              primitive.ObjectID                 `bson:"merchant_id" faker:"objectId"`
	Name                    []*MgoMultiLang                    `bson:"name"`
	UrlSuccess              string                             `bson:"url_success"`
	UrlFail                 string                             `bson:"url_fail"`
	NotifyEmails            []string                           `bson:"notify_emails"`
	SecretKey               string                             `bson:"secret_key"`
	SendNotifyEmail         bool                               `bson:"send_notify_email"`
	UrlCheckAccount         string                             `bson:"url_check_account"`
	UrlProcessPayment       string                             `bson:"url_process_payment"`
	CallbackProtocol        string                             `bson:"callback_protocol"`
	UrlChargebackPayment    string                             `bson:"url_chargeback_payment"`
	UrlCancelPayment        string                             `bson:"url_cancel_payment"`
	UrlFraudPayment         string                             `bson:"url_fraud_payment"`
	UrlRefundPayment        string                             `bson:"url_refund_payment"`
	Status                  int32                              `bson:"status"`
	MerchantRoyaltyCurrency string                             `bson:"merchant_royalty_currency"`
	RedirectSettings        *billingpb.ProjectRedirectSettings `bson:"redirect_settings"`
	FirstPaymentAt          time.Time                          `bson:"first_payment_at"`
	FormDefaultText         []*MgoMultiLang                    `bson:"form_default_text"`
}

type MgoOrderViewPrivate

type MgoOrderViewPrivate struct {
	Id                                         primitive.ObjectID                       `bson:"_id" json:"-" faker:"objectId"`
	Uuid                                       string                                   `bson:"uuid" json:"uuid"`
	TotalPaymentAmount                         float64                                  `bson:"total_payment_amount" json:"total_payment_amount"`
	Currency                                   string                                   `bson:"currency" json:"currency"`
	Project                                    *MgoOrderProject                         `bson:"project" json:"project"`
	CreatedAt                                  time.Time                                `bson:"created_at" json:"created_at"`
	Transaction                                string                                   `bson:"pm_order_id" json:"transaction"`
	PaymentMethod                              *MgoOrderPaymentMethod                   `bson:"payment_method" json:"payment_method"`
	CountryCode                                string                                   `bson:"country_code" json:"country_code"`
	MerchantId                                 primitive.ObjectID                       `bson:"merchant_id" json:"merchant_id" faker:"objectId"`
	Locale                                     string                                   `bson:"locale" json:"locale"`
	Status                                     string                                   `bson:"status" json:"status"`
	TransactionDate                            time.Time                                `bson:"pm_order_close_date" json:"transaction_date"`
	User                                       *billingpb.OrderUser                     `bson:"user" json:"user"`
	BillingAddress                             *billingpb.OrderBillingAddress           `bson:"billing_address" json:"billing_address"`
	Type                                       string                                   `bson:"type" json:"type"`
	IsVatDeduction                             bool                                     `bson:"is_vat_deduction" json:"is_vat_deduction"`
	PaymentGrossRevenueLocal                   *billingpb.OrderViewMoney                `bson:"payment_gross_revenue_local" json:"payment_gross_revenue_local"`
	PaymentGrossRevenueOrigin                  *billingpb.OrderViewMoney                `bson:"payment_gross_revenue_origin" json:"payment_gross_revenue_origin"`
	PaymentGrossRevenue                        *billingpb.OrderViewMoney                `bson:"payment_gross_revenue" json:"payment_gross_revenue"`
	PaymentTaxFee                              *billingpb.OrderViewMoney                `bson:"payment_tax_fee" json:"payment_tax_fee"`
	PaymentTaxFeeLocal                         *billingpb.OrderViewMoney                `bson:"payment_tax_fee_local" json:"payment_tax_fee_local"`
	PaymentTaxFeeOrigin                        *billingpb.OrderViewMoney                `bson:"payment_tax_fee_origin" json:"payment_tax_fee_origin"`
	PaymentTaxFeeCurrencyExchangeFee           *billingpb.OrderViewMoney                `bson:"payment_tax_fee_currency_exchange_fee" json:"payment_tax_fee_currency_exchange_fee"`
	PaymentTaxFeeTotal                         *billingpb.OrderViewMoney                `bson:"payment_tax_fee_total" json:"payment_tax_fee_total"`
	PaymentGrossRevenueFx                      *billingpb.OrderViewMoney                `bson:"payment_gross_revenue_fx" json:"payment_gross_revenue_fx"`
	PaymentGrossRevenueFxTaxFee                *billingpb.OrderViewMoney                `bson:"payment_gross_revenue_fx_tax_fee" json:"payment_gross_revenue_fx_tax_fee"`
	PaymentGrossRevenueFxProfit                *billingpb.OrderViewMoney                `bson:"payment_gross_revenue_fx_profit" json:"payment_gross_revenue_fx_profit"`
	GrossRevenue                               *billingpb.OrderViewMoney                `bson:"gross_revenue" json:"gross_revenue"`
	TaxFee                                     *billingpb.OrderViewMoney                `bson:"tax_fee" json:"tax_fee"`
	TaxFeeCurrencyExchangeFee                  *billingpb.OrderViewMoney                `bson:"tax_fee_currency_exchange_fee" json:"tax_fee_currency_exchange_fee"`
	TaxFeeTotal                                *billingpb.OrderViewMoney                `bson:"tax_fee_total" json:"tax_fee_total"`
	MethodFeeTotal                             *billingpb.OrderViewMoney                `bson:"method_fee_total" json:"method_fee_total"`
	MethodFeeTariff                            *billingpb.OrderViewMoney                `bson:"method_fee_tariff" json:"method_fee_tariff"`
	PaysuperMethodFeeTariffSelfCost            *billingpb.OrderViewMoney                `bson:"paysuper_method_fee_tariff_self_cost" json:"paysuper_method_fee_tariff_self_cost"`
	PaysuperMethodFeeProfit                    *billingpb.OrderViewMoney                `bson:"paysuper_method_fee_profit" json:"paysuper_method_fee_profit"`
	MethodFixedFeeTariff                       *billingpb.OrderViewMoney                `bson:"method_fixed_fee_tariff" json:"method_fixed_fee_tariff"`
	PaysuperMethodFixedFeeTariffFxProfit       *billingpb.OrderViewMoney                `bson:"paysuper_method_fixed_fee_tariff_fx_profit" json:"paysuper_method_fixed_fee_tariff_fx_profit"`
	PaysuperMethodFixedFeeTariffSelfCost       *billingpb.OrderViewMoney                `bson:"paysuper_method_fixed_fee_tariff_self_cost" json:"paysuper_method_fixed_fee_tariff_self_cost"`
	PaysuperMethodFixedFeeTariffTotalProfit    *billingpb.OrderViewMoney                `bson:"paysuper_method_fixed_fee_tariff_total_profit" json:"paysuper_method_fixed_fee_tariff_total_profit"`
	PaysuperFixedFee                           *billingpb.OrderViewMoney                `bson:"paysuper_fixed_fee" json:"paysuper_fixed_fee"`
	PaysuperFixedFeeFxProfit                   *billingpb.OrderViewMoney                `bson:"paysuper_fixed_fee_fx_profit" json:"paysuper_fixed_fee_fx_profit"`
	FeesTotal                                  *billingpb.OrderViewMoney                `bson:"fees_total" json:"fees_total"`
	FeesTotalLocal                             *billingpb.OrderViewMoney                `bson:"fees_total_local" json:"fees_total_local"`
	NetRevenue                                 *billingpb.OrderViewMoney                `bson:"net_revenue" json:"net_revenue"`
	PaysuperMethodTotalProfit                  *billingpb.OrderViewMoney                `bson:"paysuper_method_total_profit" json:"paysuper_method_total_profit"`
	PaysuperTotalProfit                        *billingpb.OrderViewMoney                `bson:"paysuper_total_profit" json:"paysuper_total_profit"`
	PaymentRefundGrossRevenueLocal             *billingpb.OrderViewMoney                `bson:"payment_refund_gross_revenue_local" json:"payment_refund_gross_revenue_local"`
	PaymentRefundGrossRevenueOrigin            *billingpb.OrderViewMoney                `bson:"payment_refund_gross_revenue_origin" json:"payment_refund_gross_revenue_origin"`
	PaymentRefundGrossRevenue                  *billingpb.OrderViewMoney                `bson:"payment_refund_gross_revenue" json:"payment_refund_gross_revenue"`
	PaymentRefundTaxFee                        *billingpb.OrderViewMoney                `bson:"payment_refund_tax_fee" json:"payment_refund_tax_fee"`
	PaymentRefundTaxFeeLocal                   *billingpb.OrderViewMoney                `bson:"payment_refund_tax_fee_local" json:"payment_refund_tax_fee_local"`
	PaymentRefundTaxFeeOrigin                  *billingpb.OrderViewMoney                `bson:"payment_refund_tax_fee_origin" json:"payment_refund_tax_fee_origin"`
	PaymentRefundFeeTariff                     *billingpb.OrderViewMoney                `bson:"payment_refund_fee_tariff" json:"payment_refund_fee_tariff"`
	MethodRefundFixedFeeTariff                 *billingpb.OrderViewMoney                `bson:"method_refund_fixed_fee_tariff" json:"method_refund_fixed_fee_tariff"`
	RefundGrossRevenue                         *billingpb.OrderViewMoney                `bson:"refund_gross_revenue" json:"refund_gross_revenue"`
	RefundGrossRevenueFx                       *billingpb.OrderViewMoney                `bson:"refund_gross_revenue_fx" json:"refund_gross_revenue_fx"`
	MethodRefundFeeTariff                      *billingpb.OrderViewMoney                `bson:"method_refund_fee_tariff" json:"method_refund_fee_tariff"`
	PaysuperMethodRefundFeeTariffProfit        *billingpb.OrderViewMoney                `bson:"paysuper_method_refund_fee_tariff_profit" json:"paysuper_method_refund_fee_tariff_profit"`
	PaysuperMethodRefundFixedFeeTariffSelfCost *billingpb.OrderViewMoney                `bson:"paysuper_method_refund_fixed_fee_tariff_self_cost" json:"paysuper_method_refund_fixed_fee_tariff_self_cost"`
	MerchantRefundFixedFeeTariff               *billingpb.OrderViewMoney                `bson:"merchant_refund_fixed_fee_tariff" json:"merchant_refund_fixed_fee_tariff"`
	PaysuperMethodRefundFixedFeeTariffProfit   *billingpb.OrderViewMoney                `bson:"paysuper_method_refund_fixed_fee_tariff_profit" json:"paysuper_method_refund_fixed_fee_tariff_profit"`
	RefundTaxFee                               *billingpb.OrderViewMoney                `bson:"refund_tax_fee" json:"refund_tax_fee"`
	RefundTaxFeeCurrencyExchangeFee            *billingpb.OrderViewMoney                `bson:"refund_tax_fee_currency_exchange_fee" json:"refund_tax_fee_currency_exchange_fee"`
	PaysuperRefundTaxFeeCurrencyExchangeFee    *billingpb.OrderViewMoney                `bson:"paysuper_refund_tax_fee_currency_exchange_fee" json:"paysuper_refund_tax_fee_currency_exchange_fee"`
	RefundTaxFeeTotal                          *billingpb.OrderViewMoney                `bson:"refund_tax_fee_total" json:"refund_tax_fee_total"`
	RefundReverseRevenue                       *billingpb.OrderViewMoney                `bson:"refund_reverse_revenue" json:"refund_reverse_revenue"`
	RefundFeesTotal                            *billingpb.OrderViewMoney                `bson:"refund_fees_total" json:"refund_fees_total"`
	RefundFeesTotalLocal                       *billingpb.OrderViewMoney                `bson:"refund_fees_total_local" json:"refund_fees_total_local"`
	PaysuperRefundTotalProfit                  *billingpb.OrderViewMoney                `bson:"paysuper_refund_total_profit" json:"paysuper_refund_total_profit"`
	Issuer                                     *billingpb.OrderIssuer                   `bson:"issuer"`
	Items                                      []*MgoOrderItem                          `bson:"items"`
	MerchantPayoutCurrency                     string                                   `bson:"merchant_payout_currency"`
	ParentOrder                                *billingpb.ParentOrder                   `bson:"parent_order"`
	Refund                                     *MgoOrderNotificationRefund              `bson:"refund"`
	Cancellation                               *billingpb.OrderNotificationCancellation `bson:"cancellation"`
	MccCode                                    string                                   `bson:"mcc_code"`
	OperatingCompanyId                         string                                   `bson:"operating_company_id"`
	IsHighRisk                                 bool                                     `bson:"is_high_risk"`
	RefundAllowed                              bool                                     `bson:"refund_allowed"`
	VatPayer                                   string                                   `bson:"vat_payer"`
	IsProduction                               bool                                     `bson:"is_production"`
	TaxRate                                    float64                                  `bson:"tax_rate"`
	MerchantInfo                               *billingpb.OrderViewMerchantInfo         `bson:"merchant_info"`
	OrderCharge                                *billingpb.OrderViewMoney                `bson:"order_charge"`
	OrderChargeBeforeVat                       *billingpb.OrderViewMoney                `bson:"order_charge_before_vat"`
	PaymentMethodTerminalId                    string                                   `bson:"payment_method_terminal_id"`
	MetadataValues                             []string                                 `bson:"metadata_values"`
	AmountBeforeVat                            float64                                  `bson:"amount_before_vat"`
	RoyaltyReportId                            string                                   `bson:"royalty_report_id"`
	Recurring                                  bool                                     `bson:"recurring"`
	RecurringId                                string                                   `bson:"recurring_id"`
	ReportSummary                              *MgoOrderViewReportSummary               `bson:"report_summary" json:"report_summary"`
}

type MgoOrderViewPublic

type MgoOrderViewPublic struct {
	Id                                      primitive.ObjectID                       `bson:"_id" faker:"objectId"`
	Uuid                                    string                                   `bson:"uuid"`
	TotalPaymentAmount                      float64                                  `bson:"total_payment_amount"`
	Currency                                string                                   `bson:"currency"`
	Project                                 *MgoOrderProject                         `bson:"project"`
	CreatedAt                               time.Time                                `bson:"created_at"`
	Transaction                             string                                   `bson:"pm_order_id"`
	PaymentMethod                           *MgoOrderPaymentMethod                   `bson:"payment_method"`
	CountryCode                             string                                   `bson:"country_code"`
	MerchantId                              primitive.ObjectID                       `bson:"merchant_id" faker:"objectId"`
	Locale                                  string                                   `bson:"locale"`
	Status                                  string                                   `bson:"status"`
	TransactionDate                         time.Time                                `bson:"pm_order_close_date"`
	User                                    *billingpb.OrderUser                     `bson:"user"`
	BillingAddress                          *billingpb.OrderBillingAddress           `bson:"billing_address"`
	Type                                    string                                   `bson:"type"`
	IsVatDeduction                          bool                                     `bson:"is_vat_deduction"`
	GrossRevenue                            *billingpb.OrderViewMoney                `bson:"gross_revenue"`
	TaxFee                                  *billingpb.OrderViewMoney                `bson:"tax_fee"`
	TaxFeeCurrencyExchangeFee               *billingpb.OrderViewMoney                `bson:"tax_fee_currency_exchange_fee"`
	TaxFeeTotal                             *billingpb.OrderViewMoney                `bson:"tax_fee_total"`
	MethodFeeTotal                          *billingpb.OrderViewMoney                `bson:"method_fee_total"`
	MethodFeeTariff                         *billingpb.OrderViewMoney                `bson:"method_fee_tariff"`
	MethodFixedFeeTariff                    *billingpb.OrderViewMoney                `bson:"method_fixed_fee_tariff"`
	PaysuperFixedFee                        *billingpb.OrderViewMoney                `bson:"paysuper_fixed_fee"`
	FeesTotal                               *billingpb.OrderViewMoney                `bson:"fees_total"`
	FeesTotalLocal                          *billingpb.OrderViewMoney                `bson:"fees_total_local"`
	NetRevenue                              *billingpb.OrderViewMoney                `bson:"net_revenue"`
	RefundGrossRevenue                      *billingpb.OrderViewMoney                `bson:"refund_gross_revenue"`
	MethodRefundFeeTariff                   *billingpb.OrderViewMoney                `bson:"method_refund_fee_tariff"`
	MerchantRefundFixedFeeTariff            *billingpb.OrderViewMoney                `bson:"merchant_refund_fixed_fee_tariff"`
	RefundTaxFee                            *billingpb.OrderViewMoney                `bson:"refund_tax_fee"`
	RefundTaxFeeCurrencyExchangeFee         *billingpb.OrderViewMoney                `bson:"refund_tax_fee_currency_exchange_fee"`
	PaysuperRefundTaxFeeCurrencyExchangeFee *billingpb.OrderViewMoney                `bson:"paysuper_refund_tax_fee_currency_exchange_fee"`
	RefundReverseRevenue                    *billingpb.OrderViewMoney                `bson:"refund_reverse_revenue"`
	RefundFeesTotal                         *billingpb.OrderViewMoney                `bson:"refund_fees_total"`
	RefundFeesTotalLocal                    *billingpb.OrderViewMoney                `bson:"refund_fees_total_local"`
	Issuer                                  *billingpb.OrderIssuer                   `bson:"issuer"`
	Items                                   []*MgoOrderItem                          `bson:"items"`
	MerchantPayoutCurrency                  string                                   `bson:"merchant_payout_currency"`
	ParentOrder                             *billingpb.ParentOrder                   `bson:"parent_order"`
	Refund                                  *MgoOrderNotificationRefund              `bson:"refund"`
	Cancellation                            *billingpb.OrderNotificationCancellation `bson:"cancellation"`
	OperatingCompanyId                      string                                   `bson:"operating_company_id"`
	RefundAllowed                           bool                                     `bson:"refund_allowed"`
	OrderCharge                             *billingpb.OrderViewMoney                `bson:"order_charge"`
	OrderChargeBeforeVat                    *billingpb.OrderViewMoney                `bson:"order_charge_before_vat"`
	PaymentIpCountry                        string                                   `bson:"payment_ip_country"`
	IsIpCountryMismatchBin                  bool                                     `bson:"is_ip_country_mismatch_bin"`
	BillingCountryChangedByUser             bool                                     `bson:"billing_country_changed_by_user"`
	VatPayer                                string                                   `bson:"vat_payer"`
	IsProduction                            bool                                     `bson:"is_production"`
	MerchantInfo                            *billingpb.OrderViewMerchantInfo         `bson:"merchant_info"`
	Recurring                               bool                                     `bson:"recurring"`
	RecurringId                             string                                   `bson:"recurring_id"`
	PaymentGrossRevenue                     *billingpb.OrderViewMoney                `bson:"payment_gross_revenue"`
	PaymentRefundGrossRevenue               *billingpb.OrderViewMoney                `bson:"payment_refund_gross_revenue"`
	RefundTaxFeeTotal                       *billingpb.OrderViewMoney                `bson:"refund_tax_fee_total"`
	ReportSummary                           *MgoOrderViewReportSummary               `bson:"report_summary" json:"report_summary"`
}

type MgoOrderViewReportSummary added in v1.10.1

type MgoOrderViewReportSummary struct {
	Status  string                    `bson:"status" json:"status"`
	Charge  *billingpb.OrderViewMoney `bson:"charge" json:"charge"`
	Gross   *billingpb.OrderViewMoney `bson:"gross" json:"gross"`
	Vat     *billingpb.OrderViewMoney `bson:"vat" json:"vat"`
	Fees    *billingpb.OrderViewMoney `bson:"fees" json:"fees"`
	Revenue *billingpb.OrderViewMoney `bson:"revenue" json:"revenue"`
}

type MgoPageReview

type MgoPageReview struct {
	Id        primitive.ObjectID `bson:"_id" faker:"objectId"`
	UserId    string             `bson:"user_id"`
	Review    string             `bson:"review"`
	Url       string             `bson:"url"`
	IsRead    bool               `bson:"is_read"`
	CreatedAt time.Time          `bson:"created_at"`
	UpdatedAt time.Time          `bson:"updated_at"`
}
type MgoPaylink struct {
	Id                   primitive.ObjectID `bson:"_id"`
	Object               string             `bson:"object"`
	Products             []string           `bson:"products"`
	ExpiresAt            time.Time          `bson:"expires_at"`
	CreatedAt            time.Time          `bson:"created_at"`
	UpdatedAt            time.Time          `bson:"updated_at"`
	MerchantId           primitive.ObjectID `bson:"merchant_id"`
	ProjectId            primitive.ObjectID `bson:"project_id"`
	Name                 string             `bson:"name"`
	ProductsType         string             `bson:"products_type"`
	IsExpired            bool               `bson:"is_expired"`
	Visits               int32              `bson:"visits"`
	NoExpiryDate         bool               `bson:"no_expiry_date"`
	TotalTransactions    int32              `bson:"total_transactions"`
	SalesCount           int32              `bson:"sales_count"`
	ReturnsCount         int32              `bson:"returns_count"`
	Conversion           float64            `bson:"conversion"`
	GrossSalesAmount     float64            `bson:"gross_sales_amount"`
	GrossReturnsAmount   float64            `bson:"gross_returns_amount"`
	GrossTotalAmount     float64            `bson:"gross_total_amount"`
	TransactionsCurrency string             `bson:"transactions_currency"`
	Deleted              bool               `bson:"deleted"`
}

type MgoPaymentActivityItemLastTxnAt added in v1.7.0

type MgoPaymentActivityItemLastTxnAt struct {
	Payment time.Time `bson:"payment"`
	Refund  time.Time `bson:"refund"`
}

type MgoPaymentChannelCostMerchant

type MgoPaymentChannelCostMerchant struct {
	Id                      primitive.ObjectID `bson:"_id" faker:"objectId"`
	MerchantId              primitive.ObjectID `bson:"merchant_id" faker:"objectId"`
	Name                    string             `bson:"name"`
	PayoutCurrency          string             `bson:"payout_currency"`
	MinAmount               float64            `bson:"min_amount"`
	MaxAmount               float64            `bson:"max_amount"`
	Region                  string             `bson:"region"`
	Country                 string             `bson:"country"`
	MethodPercent           float64            `bson:"method_percent"`
	MethodFixAmount         float64            `bson:"method_fix_amount"`
	MethodFixAmountCurrency string             `bson:"method_fix_amount_currency"`
	PsPercent               float64            `bson:"ps_percent"`
	PsFixedFee              float64            `bson:"ps_fixed_fee"`
	PsFixedFeeCurrency      string             `bson:"ps_fixed_fee_currency"`
	CreatedAt               time.Time          `bson:"created_at"`
	UpdatedAt               time.Time          `bson:"updated_at"`
	IsActive                bool               `bson:"is_active"`
	MccCode                 string             `bson:"mcc_code"`
}

type MgoPaymentChannelCostSystem

type MgoPaymentChannelCostSystem struct {
	Id                 primitive.ObjectID `bson:"_id" faker:"objectId"`
	Name               string             `bson:"name"`
	Region             string             `bson:"region"`
	Country            string             `bson:"country"`
	Percent            float64            `bson:"percent"`
	FixAmount          float64            `bson:"fix_amount"`
	FixAmountCurrency  string             `bson:"fix_amount_currency"`
	CreatedAt          time.Time          `bson:"created_at"`
	UpdatedAt          time.Time          `bson:"updated_at"`
	IsActive           bool               `bson:"is_active"`
	MccCode            string             `bson:"mcc_code"`
	OperatingCompanyId string             `bson:"operating_company_id" faker:"objectId"`
}

type MgoPaymentMethod

type MgoPaymentMethod struct {
	Id                 primitive.ObjectID       `bson:"_id" faker:"objectId"`
	Name               string                   `bson:"name"`
	Group              string                   `bson:"group_alias"`
	ExternalId         string                   `bson:"external_id"`
	MinPaymentAmount   float64                  `bson:"min_payment_amount"`
	MaxPaymentAmount   float64                  `bson:"max_payment_amount"`
	TestSettings       []*MgoPaymentMethodParam `bson:"test_settings"`
	ProductionSettings []*MgoPaymentMethodParam `bson:"production_settings"`
	IsActive           bool                     `bson:"is_active"`
	CreatedAt          time.Time                `bson:"created_at"`
	UpdatedAt          time.Time                `bson:"updated_at"`
	PaymentSystemId    primitive.ObjectID       `bson:"payment_system_id" faker:"objectId"`
	Currencies         []string                 `bson:"currencies"`
	Type               string                   `bson:"type"`
	AccountRegexp      string                   `bson:"account_regexp"`
	RefundAllowed      bool                     `bson:"refund_allowed"`
	RecurringAllowed   bool                     `bson:"recurring_allowed"`
}

type MgoPaymentMethodParam

type MgoPaymentMethodParam struct {
	TerminalId         string   `bson:"terminal_id"`
	Secret             string   `bson:"secret"`
	SecretCallback     string   `bson:"secret_callback"`
	Currency           string   `bson:"currency"`
	ApiUrl             string   `bson:"api_url"`
	MccCode            string   `bson:"mcc_code"`
	OperatingCompanyId string   `bson:"operating_company_id" faker:"objectId"`
	Brand              []string `bson:"brand"`
}

type MgoPaymentMinLimitSystem

type MgoPaymentMinLimitSystem struct {
	Id        primitive.ObjectID `bson:"_id" faker:"objectId"`
	Currency  string             `bson:"currency"`
	Amount    float64            `bson:"amount"`
	CreatedAt time.Time          `bson:"created_at"`
	UpdatedAt time.Time          `bson:"updated_at"`
}

type MgoPaymentSystem

type MgoPaymentSystem struct {
	Id                 primitive.ObjectID `bson:"_id" faker:"objectId"`
	Name               string             `bson:"name"`
	Handler            string             `bson:"handler"`
	Country            string             `bson:"country"`
	AccountingCurrency string             `bson:"accounting_currency"`
	AccountingPeriod   string             `bson:"accounting_period"`
	IsActive           bool               `bson:"is_active"`
	CreatedAt          time.Time          `bson:"created_at"`
	UpdatedAt          time.Time          `bson:"updated_at"`
}

type MgoPayoutDocument

type MgoPayoutDocument struct {
	Id                      primitive.ObjectID             `bson:"_id" faker:"objectId"`
	MerchantId              primitive.ObjectID             `bson:"merchant_id" faker:"objectId"`
	SourceId                []string                       `bson:"source_id"`
	TotalFees               float64                        `bson:"total_fees"`
	Balance                 float64                        `bson:"balance"`
	Currency                string                         `bson:"currency"`
	PeriodFrom              time.Time                      `bson:"period_from"`
	PeriodTo                time.Time                      `bson:"period_to"`
	TotalTransactions       int32                          `bson:"total_transactions"`
	Description             string                         `bson:"description"`
	Destination             *billingpb.MerchantBanking     `bson:"destination"`
	MerchantAgreementNumber string                         `bson:"merchant_agreement_number"`
	Company                 *billingpb.MerchantCompanyInfo `bson:"company"`
	Status                  string                         `bson:"status"`
	Transaction             string                         `bson:"transaction"`
	FailureCode             string                         `bson:"failure_code"`
	FailureMessage          string                         `bson:"failure_message"`
	FailureTransaction      string                         `bson:"failure_transaction"`
	CreatedAt               time.Time                      `bson:"created_at"`
	UpdatedAt               time.Time                      `bson:"updated_at"`
	ArrivalDate             time.Time                      `bson:"arrival_date"`
	PaidAt                  time.Time                      `bson:"paid_at"`
	OperatingCompanyId      string                         `bson:"operating_company_id"`
	AutoincrementId         int64                          `bson:"autoincrement_id"`
	StringPeriodFrom        string                         `bson:"string_period_from"`
	StringPeriodTo          string                         `bson:"string_period_to"`
	B2BVatBase              float64                        `bson:"b2b_vat_base"`
	B2BVatRate              float64                        `bson:"b2b_vat_rate"`
	B2BVatAmount            float64                        `bson:"b2b_vat_amount"`
	FeesExcludingVat        float64                        `bson:"fees_excluding_vat"`
}

type MgoPayoutDocumentChanges

type MgoPayoutDocumentChanges struct {
	Id               primitive.ObjectID `bson:"_id" faker:"objectId"`
	PayoutDocumentId primitive.ObjectID `bson:"payout_document_id" faker:"objectId"`
	Source           string             `bson:"source"`
	Hash             string             `bson:"hash"`
	Ip               string             `bson:"ip"`
	CreatedAt        time.Time          `bson:"created_at"`
}

type MgoPlatformPrice

type MgoPlatformPrice struct {
	Prices        []*billingpb.ProductPrice `bson:"prices" json:"prices"`
	Id            string                    `bson:"id" json:"id"`
	Name          string                    `bson:"name" json:"name"`
	EulaUrl       string                    `bson:"eula_url" json:"eula_url"`
	ActivationUrl string                    `bson:"activation_url" json:"activation_url"`
	Count         int32                     `bson:"count" json:"count"`
}

type MgoPriceGroup

type MgoPriceGroup struct {
	Id            primitive.ObjectID `bson:"_id" faker:"objectId"`
	Currency      string             `bson:"currency"`
	Region        string             `bson:"region"`
	InflationRate float64            `bson:"inflation_rate"`
	Fraction      float64            `bson:"fraction"`
	IsActive      bool               `bson:"is_active"`
	CreatedAt     time.Time          `bson:"created_at"`
	UpdatedAt     time.Time          `bson:"updated_at"`
}

type MgoPriceTable

type MgoPriceTable struct {
	Id       primitive.ObjectID    `bson:"_id" faker:"objectId"`
	Currency string                `bson:"currency"`
	Ranges   []*MgoPriceTableRange `bson:"range"`
}

type MgoPriceTableRange

type MgoPriceTableRange struct {
	From     float64 `bson:"from"`
	To       float64 `bson:"to"`
	Position int32   `bson:"position"`
}

type MgoProduct

type MgoProduct struct {
	Id              primitive.ObjectID              `bson:"_id" json:"id" faker:"objectId"`
	Object          string                          `bson:"object" json:"object"`
	Type            string                          `bson:"type" json:"type"`
	Sku             string                          `bson:"sku" json:"sku"`
	Name            []*billingpb.I18NTextSearchable `bson:"name" json:"name"`
	DefaultCurrency string                          `bson:"default_currency" json:"default_currency"`
	Enabled         bool                            `bson:"enabled" json:"enabled"`
	Prices          []*billingpb.ProductPrice       `bson:"prices" json:"prices"`
	Description     map[string]string               `bson:"description" json:"description"`
	LongDescription map[string]string               `bson:"long_description,omitempty" json:"long_description"`
	CreatedAt       time.Time                       `bson:"created_at" json:"created_at"`
	UpdatedAt       time.Time                       `bson:"updated_at" json:"updated_at"`
	Images          []string                        `bson:"images,omitempty" json:"images"`
	Url             string                          `bson:"url,omitempty" json:"url"`
	Metadata        map[string]string               `bson:"metadata,omitempty" json:"metadata"`
	Deleted         bool                            `bson:"deleted" json:"deleted"`
	MerchantId      primitive.ObjectID              `bson:"merchant_id" json:"-" faker:"objectId"`
	ProjectId       primitive.ObjectID              `bson:"project_id" json:"project_id" faker:"objectId"`
	Pricing         string                          `bson:"pricing" json:"pricing"`
	BillingType     string                          `bson:"billing_type" json:"billing_type"`
}

type MgoProject

type MgoProject struct {
	Id                       primitive.ObjectID `bson:"_id" json:"id"`
	MerchantId               primitive.ObjectID `bson:"merchant_id" json:"merchant_id"`
	Name                     []*MgoMultiLang    `bson:"name" json:"name"`
	CallbackCurrency         string             `bson:"callback_currency" json:"callback_currency"`
	CallbackProtocol         string             `bson:"callback_protocol" json:"callback_protocol"`
	CreateOrderAllowedUrls   []string           `bson:"create_order_allowed_urls" json:"create_order_allowed_urls"`
	AllowDynamicNotifyUrls   bool               `bson:"allow_dynamic_notify_urls" json:"allow_dynamic_notify_urls"`
	AllowDynamicRedirectUrls bool               `bson:"allow_dynamic_redirect_urls" json:"allow_dynamic_redirect_urls"`
	LimitsCurrency           string             `bson:"limits_currency" json:"limits_currency"`
	MinPaymentAmount         float64            `bson:"min_payment_amount" json:"min_payment_amount"`
	MaxPaymentAmount         float64            `bson:"max_payment_amount" json:"max_payment_amount"`
	NotifyEmails             []string           `bson:"notify_emails" json:"notify_emails"`
	IsProductsCheckout       bool               `bson:"is_products_checkout" json:"is_products_checkout"`
	SecretKey                string             `bson:"secret_key" json:"secret_key"`
	SignatureRequired        bool               `bson:"signature_required" json:"signature_required"`
	SendNotifyEmail          bool               `bson:"send_notify_email" json:"send_notify_email"`
	UrlCheckAccount          string             `bson:"url_check_account" json:"url_check_account"`
	UrlProcessPayment        string             `bson:"url_process_payment" json:"url_process_payment"`
	UrlRedirectFail          string             `bson:"url_redirect_fail" json:"url_redirect_fail"`
	UrlRedirectSuccess       string             `bson:"url_redirect_success" json:"url_redirect_success"`
	Status                   int32              `bson:"status" json:"status"`
	CreatedAt                time.Time          `bson:"created_at" json:"created_at"`
	UpdatedAt                time.Time          `bson:"updated_at" json:"updated_at"`
	ProductsCount            int64              `bson:"products_count" json:"products_count"`
	IdString                 string             `bson:"id_string" json:"id_string"`
	UrlChargebackPayment     string             `bson:"url_chargeback_payment" json:"url_chargeback_payment"`
	UrlCancelPayment         string             `bson:"url_cancel_payment" json:"url_cancel_payment"`
	UrlFraudPayment          string             `bson:"url_fraud_payment" json:"url_fraud_payment"`
	UrlRefundPayment         string             `bson:"url_refund_payment" json:"url_refund_payment"`

	Cover            *billingpb.ImageCollection         `bson:"cover" json:"cover"`
	Localizations    []string                           `bson:"localizations" json:"localizations"`
	FullDescription  map[string]string                  `bson:"full_description" json:"full_description"`
	ShortDescription map[string]string                  `bson:"short_description" json:"short_description"`
	Currencies       []*billingpb.HasCurrencyItem       `bson:"currencies" json:"currencies"`
	VirtualCurrency  *billingpb.ProjectVirtualCurrency  `bson:"virtual_currency" json:"virtual_currency"`
	VatPayer         string                             `bson:"vat_payer" json:"vat_payer"`
	RedirectSettings *billingpb.ProjectRedirectSettings `bson:"redirect_settings" json:"redirect_settings"`
	WebHookMode      string                             `bson:"webhook_mode" json:"webhook_mode"`
	WebhookTesting   *billingpb.WebHookTesting          `bson:"webhook_testing" json:"webhook_testing"`
	FormDefaultText  []*MgoMultiLang                    `bson:"form_default_text" json:"form_default_text"`
}

type MgoRefund

type MgoRefund struct {
	Id             primitive.ObjectID         `bson:"_id"`
	OriginalOrder  *MgoRefundOrder            `bson:"original_order"`
	ExternalId     string                     `bson:"external_id"`
	Amount         float64                    `bson:"amount"`
	CreatorId      primitive.ObjectID         `bson:"creator_id"`
	Currency       string                     `bson:"currency"`
	Status         int32                      `bson:"status"`
	CreatedAt      time.Time                  `bson:"created_at"`
	UpdatedAt      time.Time                  `bson:"updated_at"`
	PayerData      *billingpb.RefundPayerData `bson:"payer_data"`
	SalesTax       float32                    `bson:"sales_tax"`
	IsChargeback   bool                       `bson:"is_chargeback"`
	CreatedOrderId primitive.ObjectID         `bson:"created_order_id,omitempty"`
	Reason         string                     `bson:"reason"`
}

type MgoRefundOrder

type MgoRefundOrder struct {
	Id   primitive.ObjectID `bson:"id"`
	Uuid string             `bson:"uuid"`
}

type MgoRoyaltyReport

type MgoRoyaltyReport struct {
	Id                 primitive.ObjectID             `bson:"_id" faker:"objectId"`
	MerchantId         primitive.ObjectID             `bson:"merchant_id" faker:"objectId"`
	CreatedAt          time.Time                      `bson:"created_at"`
	UpdatedAt          time.Time                      `bson:"updated_at"`
	PayoutDate         time.Time                      `bson:"payout_date"`
	Status             string                         `bson:"status"`
	PeriodFrom         time.Time                      `bson:"period_from"`
	PeriodTo           time.Time                      `bson:"period_to"`
	AcceptExpireAt     time.Time                      `bson:"accept_expire_at"`
	AcceptedAt         time.Time                      `bson:"accepted_at"`
	Totals             *billingpb.RoyaltyReportTotals `bson:"totals"`
	Currency           string                         `bson:"currency"`
	Summary            *MgoRoyaltyReportSummary       `bson:"summary"`
	DisputeReason      string                         `bson:"dispute_reason"`
	DisputeStartedAt   time.Time                      `bson:"dispute_started_at"`
	DisputeClosedAt    time.Time                      `bson:"dispute_closed_at"`
	IsAutoAccepted     bool                           `bson:"is_auto_accepted"`
	PayoutDocumentId   string                         `bson:"payout_document_id"`
	OperatingCompanyId string                         `bson:"operating_company_id"`
	StringPeriodFrom   string                         `bson:"string_period_from"`
	StringPeriodTo     string                         `bson:"string_period_to"`
	Merchants          []*MgoMerchant                 `bson:"merchants" faker:"-"`
}

type MgoRoyaltyReportChanges

type MgoRoyaltyReportChanges struct {
	Id              primitive.ObjectID `bson:"_id" faker:"objectId"`
	RoyaltyReportId primitive.ObjectID `bson:"royalty_report_id" faker:"objectId"`
	Source          string             `bson:"source"`
	Ip              string             `bson:"ip"`
	Hash            string             `bson:"hash"`
	CreatedAt       time.Time          `bson:"created_at"`
}

type MgoRoyaltyReportCorrectionItem

type MgoRoyaltyReportCorrectionItem struct {
	AccountingEntryId primitive.ObjectID `bson:"accounting_entry_id" faker:"objectId"`
	Amount            float64            `bson:"amount"`
	Currency          string             `bson:"currency"`
	Reason            string             `bson:"reason"`
	EntryDate         time.Time          `bson:"entry_date"`
}

type MgoRoyaltyReportSummary

type MgoRoyaltyReportSummary struct {
	ProductsItems   []*billingpb.RoyaltyReportProductSummaryItem `json:"products_items" bson:"products_items"`
	ProductsTotal   *billingpb.RoyaltyReportProductSummaryItem   `json:"products_total" bson:"products_total"`
	Corrections     []*MgoRoyaltyReportCorrectionItem            `json:"corrections" bson:"corrections"`
	RollingReserves []*MgoRoyaltyReportCorrectionItem            `json:"rolling_reserves" bson:"rolling_reserves"`
}

type MgoTotalTransactionsAndArpuReports

type MgoTotalTransactionsAndArpuReports struct {
	TotalTransactions *billingpb.DashboardMainReportTotalTransactions `bson:"total_transactions"`
	Arpu              *MgoDashboardAmountItemWithChart                `bson:"arpu"`
}

type MgoUserProfile

type MgoUserProfile struct {
	Id        primitive.ObjectID             `bson:"_id" faker:"objectId"`
	UserId    string                         `bson:"user_id"`
	Email     *MgoUserProfileEmail           `bson:"email"`
	Personal  *billingpb.UserProfilePersonal `bson:"personal"`
	Help      *billingpb.UserProfileHelp     `bson:"help"`
	Company   *billingpb.UserProfileCompany  `bson:"company"`
	LastStep  string                         `bson:"last_step"`
	Locale    string                         `bson:"locale"`
	CreatedAt time.Time                      `bson:"created_at"`
	UpdatedAt time.Time                      `bson:"updated_at"`
}

type MgoUserProfileEmail

type MgoUserProfileEmail struct {
	Email                   string    `bson:"email"`
	Confirmed               bool      `bson:"confirmed"`
	ConfirmedAt             time.Time `bson:"confirmed_at"`
	IsConfirmationEmailSent bool      `bson:"is_confirmation_email_sent"`
}

type MgoUserRole

type MgoUserRole struct {
	Id         primitive.ObjectID  `bson:"_id" faker:"objectId"`
	MerchantId *primitive.ObjectID `bson:"merchant_id" faker:"objectIdPointer"`
	Role       string              `bson:"role"`
	Status     string              `bson:"status"`
	UserId     *primitive.ObjectID `bson:"user_id" faker:"objectIdPointer"`
	FirstName  string              `bson:"first_name"`
	LastName   string              `bson:"last_name"`
	Email      string              `bson:"email"`
	CreatedAt  time.Time           `bson:"created_at"`
	UpdatedAt  time.Time           `bson:"updated_at"`
}

type MgoVatReport

type MgoVatReport struct {
	Id                    primitive.ObjectID `bson:"_id" faker:"objectId"`
	Country               string             `bson:"country"`
	VatRate               float64            `bson:"vat_rate"`
	Currency              string             `bson:"currency"`
	TransactionsCount     int32              `bson:"transactions_count"`
	GrossRevenue          float64            `bson:"gross_revenue"`
	VatAmount             float64            `bson:"vat_amount"`
	FeesAmount            float64            `bson:"fees_amount"`
	DeductionAmount       float64            `bson:"deduction_amount"`
	CorrectionAmount      float64            `bson:"correction_amount"`
	Status                string             `bson:"status"`
	CountryAnnualTurnover float64            `bson:"country_annual_turnover"`
	WorldAnnualTurnover   float64            `bson:"world_annual_turnover"`
	AmountsApproximate    bool               `bson:"amounts_approximate"`
	OperatingCompanyId    string             `bson:"operating_company_id" faker:"objectId"`
	DateFrom              time.Time          `bson:"date_from"`
	DateTo                time.Time          `bson:"date_to"`
	CreatedAt             time.Time          `bson:"created_at"`
	UpdatedAt             time.Time          `bson:"updated_at"`
	PayUntilDate          time.Time          `bson:"pay_until_date"`
	PaidAt                time.Time          `bson:"paid_at"`
}

type MgoZipCode

type MgoZipCode struct {
	Zip       string                  `bson:"zip"`
	Country   string                  `bson:"country"`
	City      string                  `bson:"city"`
	State     *billingpb.ZipCodeState `bson:"state"`
	CreatedAt time.Time               `bson:"created_at"`
}

Jump to

Keyboard shortcuts

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