Documentation ¶
Index ¶
- type Repository
- func (repo *Repository) GetCardToken(c context.Context, ID string) (*plutus.CardToken, error)
- func (repo *Repository) GetChargeToken(c context.Context, ID string) (*plutus.ChargeToken, error)
- func (repo *Repository) GetCustomer(c context.Context, ID string) (*plutus.Customer, error)
- func (repo *Repository) GetSale(c context.Context, ID string) (*plutus.Sale, error)
- func (repo *Repository) RemoveCardToken(c context.Context, ID string) (*plutus.CardToken, error)
- func (repo *Repository) RemoveChargeToken(c context.Context, ID string) (*plutus.ChargeToken, error)
- func (repo *Repository) RemoveCustomer(c context.Context, ID string) (*plutus.Customer, error)
- func (repo *Repository) RemoveSale(c context.Context, ID string) (*plutus.Sale, error)
- func (repo *Repository) SaveCardToken(c context.Context, cardToken *plutus.CardToken) (*plutus.CardToken, error)
- func (repo *Repository) SaveChargeToken(c context.Context, chargeToken *plutus.ChargeToken) (*plutus.ChargeToken, error)
- func (repo *Repository) SaveCustomer(c context.Context, customer *plutus.Customer) (*plutus.Customer, error)
- func (repo *Repository) SaveSale(c context.Context, sale *plutus.Sale) (*plutus.Sale, error)
- func (repo *Repository) UpdateCardToken(c context.Context, ID string, updatePayload plutus.CardToken) (*plutus.CardToken, error)
- func (repo *Repository) UpdateChargeToken(c context.Context, ID string, updatePayload plutus.ChargeToken) (*plutus.ChargeToken, error)
- func (repo *Repository) UpdateCustomer(c context.Context, ID string, updatePayload plutus.Customer) (*plutus.Customer, error)
- func (repo *Repository) UpdateSale(c context.Context, ID string, updatePayload plutus.Sale) (*plutus.Sale, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct { URI string // contains filtered or unexported fields }
func NewRepository ¶
func NewRepository(c context.Context, URI string) (*Repository, error)
func (*Repository) GetCardToken ¶
func (*Repository) GetChargeToken ¶
func (repo *Repository) GetChargeToken(c context.Context, ID string) (*plutus.ChargeToken, error)
func (*Repository) GetCustomer ¶
func (*Repository) RemoveCardToken ¶
func (*Repository) RemoveChargeToken ¶
func (repo *Repository) RemoveChargeToken(c context.Context, ID string) (*plutus.ChargeToken, error)
func (*Repository) RemoveCustomer ¶
func (*Repository) RemoveSale ¶
func (*Repository) SaveCardToken ¶
func (*Repository) SaveChargeToken ¶
func (repo *Repository) SaveChargeToken(c context.Context, chargeToken *plutus.ChargeToken) (*plutus.ChargeToken, error)
func (*Repository) SaveCustomer ¶
func (*Repository) UpdateCardToken ¶
func (*Repository) UpdateChargeToken ¶
func (repo *Repository) UpdateChargeToken(c context.Context, ID string, updatePayload plutus.ChargeToken) (*plutus.ChargeToken, error)
func (*Repository) UpdateCustomer ¶
Click to show internal directories.
Click to hide internal directories.