~samwhited/paddle

b865196e7f639aaacbb8698f15f97a66d5afc8fb — Sam Whited 2 years ago c565caf
coupon: remove stutter in delete method
1 files changed, 2 insertions(+), 2 deletions(-)

M coupon/coupons.go
M coupon/coupons.go => coupon/coupons.go +2 -2
@@ 145,8 145,8 @@ func (c Client) updateCoupons(typ, code, newCode string, coupon *Coupon) error {
	return err
}

// DeleteCoupon deletes the given coupon from the given product.
func (c Client) DeleteCoupon(product int64, code string) error {
// Delete deletes the given coupon from the given product.
func (c Client) Delete(product int64, code string) error {
	v := url.Values{}
	v.Add("product_id", strconv.FormatInt(product, 64))
	v.Add("coupon_code", code)