repository

package
v0.0.0-...-d00d8f6 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCardRepository

func NewCardRepository(d database.DbConnection) *creditCard

Types

type CreditCard

type CreditCard interface {
	Save(card CreditCardEntity) (string, error)
	FindById(id string) (*CreditCardEntity, error)
}

type CreditCardEntity

type CreditCardEntity struct {
	CardId         string     `json:"cardId"`
	Holder         string     `json:"holder"`
	Number         string     `json:"number"`
	Brand          string     `json:"brand"`
	Bin            string     `json:"bin"`
	LastDigits     string     `json:"lastDigits"`
	ExpirationDate time.Time  `json:"expirationDate"`
	CreateAt       time.Time  `json:"createAt"`
	UpdateAt       *time.Time `json:"updateAt,omitempty"`
}

Jump to

Keyboard shortcuts

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