Documentation ¶
Index ¶
- type StripePayments
- func (s *StripePayments) CreateCard(ctx context.Context, customerID string, token string) (*providers.Card, error)
- func (s *StripePayments) CreateCharge(ctx context.Context, charge *providers.Charge) (*providers.Charge, error)
- func (s *StripePayments) CreateCustomer(ctx context.Context, cust *providers.Customer) (*providers.Customer, error)
- func (s *StripePayments) DeleteCard(ctx context.Context, customerID string, cardID string) error
- func (s *StripePayments) DeleteCustomer(ctx context.Context, id string) error
- func (s *StripePayments) GetCard(ctx context.Context, customerID string, cardID string) (*providers.Card, error)
- func (s *StripePayments) GetCharge(ctx context.Context, id string) (*providers.Charge, error)
- func (s *StripePayments) GetCustomer(ctx context.Context, id string) (*providers.Customer, error)
- func (s *StripePayments) ListCards(ctx context.Context, customerID string) ([]*providers.Card, error)
- func (s *StripePayments) ListCharges(ctx context.Context, customerID string, starting_after string, limit int64) ([]*providers.Charge, error)
- func (s *StripePayments) ListCustomers(ctx context.Context, after string, limit int64) ([]*providers.Customer, error)
- func (s *StripePayments) UpdateCustomer(ctx context.Context, cust *providers.Customer) (*providers.Customer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StripePayments ¶
type StripePayments struct {
// contains filtered or unexported fields
}
func NewStripePayments ¶ added in v0.11.0
func NewStripePayments(client *client.API) *StripePayments
NewStripePayments returns a new StripePayments
func (*StripePayments) CreateCard ¶
func (s *StripePayments) CreateCard(ctx context.Context, customerID string, token string) (*providers.Card, error)
CreateCard creates a card for a customer
func (*StripePayments) CreateCharge ¶
func (s *StripePayments) CreateCharge(ctx context.Context, charge *providers.Charge) (*providers.Charge, error)
CreateCharge charges a customer
func (*StripePayments) CreateCustomer ¶
func (s *StripePayments) CreateCustomer(ctx context.Context, cust *providers.Customer) (*providers.Customer, error)
CreateCustomer creates a customer
func (*StripePayments) DeleteCard ¶
func (*StripePayments) DeleteCustomer ¶
func (s *StripePayments) DeleteCustomer(ctx context.Context, id string) error
DeleteCustomer deletes a customer
func (*StripePayments) GetCard ¶
func (s *StripePayments) GetCard(ctx context.Context, customerID string, cardID string) (*providers.Card, error)
GetCard gets a card
func (*StripePayments) GetCustomer ¶
GetCustomer gets a customer
func (*StripePayments) ListCards ¶
func (s *StripePayments) ListCards(ctx context.Context, customerID string) ([]*providers.Card, error)
ListCards lists a customer's cards
func (*StripePayments) ListCharges ¶
func (s *StripePayments) ListCharges(ctx context.Context, customerID string, starting_after string, limit int64) ([]*providers.Charge, error)
ListCharges lists a customer's charges
func (*StripePayments) ListCustomers ¶
func (s *StripePayments) ListCustomers(ctx context.Context, after string, limit int64) ([]*providers.Customer, error)
ListCustomers lists customers
func (*StripePayments) UpdateCustomer ¶
func (s *StripePayments) UpdateCustomer(ctx context.Context, cust *providers.Customer) (*providers.Customer, error)
UpdateCustomer updates a customer
Click to show internal directories.
Click to hide internal directories.