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"` }
Click to show internal directories.
Click to hide internal directories.