Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capture ¶
type Capture struct { core.BaseModel Amount float64 `gorm:"column:amount;type:numeric;not null" json:"amount"` PaymentId string `gorm:"column:payment_id;type:text;not null;index:IDX_capture_payment_id,priority:1" json:"payment_id"` Payment *Payment `gorm:"foreignKey:PaymentId" json:"payment"` CreatedBy string `gorm:"column:created_by;type:text" json:"created_by"` }
type Payment ¶
type Payment struct { core.BaseModel Amount float64 `gorm:"column:amount;type:numeric;not null" json:"amount"` AuthorizedAmount float64 `gorm:"column:authorized_amount;type:numeric" json:"authorized_amount"` CurrencyCode string `gorm:"column:currency_code;type:text;not null" json:"currency_code"` ProviderId string `gorm:"column:provider_id;type:text;not null" json:"provider_id"` CartId string `gorm:"column:cart_id;type:text" json:"cart_id"` OrderId string `gorm:"column:order_id;type:text" json:"order_id"` OrderEditId string `gorm:"column:order_edit_id;type:text" json:"order_edit_id"` CustomerId string `gorm:"column:customer_id;type:text" json:"customer_id"` Data string `gorm:"column:data;type:jsonb" json:"data"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:timestamp with time zone;index:IDX_payment_deleted_at,priority:1" json:"deleted_at"` CapturedAt time.Time `gorm:"column:captured_at;type:timestamp with time zone" json:"captured_at"` CanceledAt time.Time `gorm:"column:canceled_at;type:timestamp with time zone" json:"canceled_at"` PaymentCollectionId string `` /* 134-byte string literal not displayed */ SessionId string `gorm:"column:session_id;type:text;not null;uniqueIndex:payment_session_id_unique,priority:1" json:"session_id"` PaymentSession PaymentSession `gorm:"foreignKey:SessionId" json:"payment_session"` Refunds []Refund `gorm:"foreignKey:PaymentId" json:"refunds"` Captures []Capture `gorm:"foreignKey:PaymentId" json:"captures"` }
type PaymentCollection ¶
type PaymentCollection struct { core.BaseModel CurrencyCode string `gorm:"column:currency_code;type:text;not null" json:"currency_code"` Amount float64 `gorm:"column:amount;type:numeric;not null" json:"amount"` RegionId string `gorm:"column:region_id;type:text;not null;index:IDX_payment_collection_region_id,priority:1" json:"region_id"` DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:timestamp with time zone;index:IDX_payment_collection_deleted_at,priority:1" json:"deleted_at"` CompletedAt time.Time `gorm:"column:completed_at;type:timestamp with time zone" json:"completed_at"` Status string `gorm:"column:status;type:text;not null;default:not_paid" json:"status"` PaymentProviders []PaymentProvider `gorm:"many2many:payment_collection_payment_provider;" json:"payment_providers"` PaymentSessions []PaymentSession `gorm:"foreignKey:PaymentCollectionId;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;" json:"payment_sessions"` Payments []Payment `gorm:"foreignKey:PaymentCollectionId;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;" json:"payments"` }
func (*PaymentCollection) TableName ¶
func (*PaymentCollection) TableName() string
type PaymentMethodToken ¶
type PaymentMethodToken struct { core.BaseModel ProviderId string `gorm:"column:provider_id;type:text;not null" json:"provider_id"` Data string `gorm:"column:data;type:jsonb" json:"data"` Name string `gorm:"column:name;type:text;not null" json:"name"` TypeDetail string `gorm:"column:type_detail;type:text" json:"type_detail"` DescriptionDetail string `gorm:"column:description_detail;type:text" json:"description_detail"` }
func (*PaymentMethodToken) TableName ¶
func (*PaymentMethodToken) TableName() string
type PaymentProvider ¶
type PaymentProvider struct { Id string `gorm:"column:id;type:text;primaryKey" json:"id"` IsEnabled bool `gorm:"column:is_enabled;type:boolean;not null;default:true" json:"is_enabled"` }
func (*PaymentProvider) TableName ¶
func (*PaymentProvider) TableName() string
type PaymentSession ¶
type PaymentSession struct { core.BaseModel CurrencyCode string `gorm:"column:currency_code;type:text;not null" json:"currency_code"` Amount float64 `gorm:"column:amount;type:numeric;not null" json:"amount"` ProviderId string `gorm:"column:provider_id;type:text;not null" json:"provider_id"` Data string `gorm:"column:data;type:jsonb;not null" json:"data"` Status string `gorm:"column:status;type:text;not null;default:pending" json:"status"` AuthorizedAt time.Time `gorm:"column:authorized_at;type:timestamp with time zone" json:"authorized_at"` PaymentCollectionId string `` /* 142-byte string literal not displayed */ Payment *Payment `gorm:"foreignKey:PaymentSessionId;references:ID;constraint:OnDelete:CASCADE;"` }
func (*PaymentSession) TableName ¶
func (*PaymentSession) TableName() string
type Refund ¶
type Refund struct { core.BaseModel Amount float64 `gorm:"column:amount;type:numeric;not null" json:"amount"` PaymentId string `gorm:"column:payment_id;type:text;not null;index:IDX_refund_payment_id,priority:1" json:"payment_id"` CreatedBy string `gorm:"column:created_by;type:text" json:"created_by"` Payment Payment `gorm:"foreignKey:PaymentId" json:"payment"` }
Click to show internal directories.
Click to hide internal directories.