discount

package
v0.0.0-...-d8ed325 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2014 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 Delete

func Delete(customerId string) error

Delete removes a discount from a customer. For more details see https://stripe.com/docs/api#delete_discount.

func DeleteSubscription

func DeleteSubscription(customerId, subscriptionId string) error

DeleteSubscription 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   Backend
	Tok string
}

Client is used to invoke discount-related APIs.

func (Client) Delete

func (c Client) Delete(customerId string) error

func (Client) DeleteSubscription

func (c Client) DeleteSubscription(customerId, subscriptionId string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL