discount

package
Version: v60.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package discount provides the discount-related APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(customerID string, params *stripe.DiscountParams) (*stripe.Discount, error)

Del removes a discount from a customer.

func DelSubscription

func DelSubscription(subscriptionID string, params *stripe.DiscountParams) (*stripe.Discount, error)

DelSubscription removes a discount from a customer's subscription.

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, params *stripe.DiscountParams) (*stripe.Discount, error)

Del removes a discount from a customer.

func (Client) DelSub

func (c Client) DelSub(subscriptionID string, params *stripe.DiscountParams) (*stripe.Discount, error)

DelSub removes a discount from a customer's subscription.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL