Documentation ¶ Overview ¶ Package discount provides the discount-related APIs Index ¶ func Del(customerID string) (*stripe.Discount, error) func DelSub(subscriptionID string) (*stripe.Discount, error) type Client func (c Client) Del(customerID string) (*stripe.Discount, error) func (c Client) DelSub(subscriptionID string) (*stripe.Discount, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Del ¶ func Del(customerID string) (*stripe.Discount, error) Del removes a discount from a customer. For more details see https://stripe.com/docs/api#delete_discount. func DelSub ¶ func DelSub(subscriptionID string) (*stripe.Discount, error) DelSub removes a discount from a customer's subscription. For more details see https://stripe.com/docs/api#delete_subscription_discount. Types ¶ type Client ¶ type Client struct { B stripe.Backend Key string } Client is used to invoke discount-related APIs. func (Client) Del ¶ func (c Client) Del(customerID string) (*stripe.Discount, error) func (Client) DelSub ¶ func (c Client) DelSub(subscriptionID string) (*stripe.Discount, error) Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.