public class Discounts extends AbstractApi
client| Modifier and Type | Method and Description |
|---|---|
DeleteResponse |
deleteCustomerDiscount(String customerId)
Delete a discount
https://stripe.com/docs/api#delete_discount
|
DeleteResponse |
deleteSubscriptionDiscount(String customerId,
String subscriptionId)
Delete a subscription-specific discount
https://stripe.com/docs/api#delete_subscription_discount
|
public Discounts(Client client)
public DeleteResponse deleteCustomerDiscount(String customerId)
customerId - the id of the customer whose discount should be deletedpublic DeleteResponse deleteSubscriptionDiscount(String customerId, String subscriptionId)
customerId - the id of the customer tho whom the subscription belongssubscriptionId - the id of the subscription from which to remove the discountCopyright © 2014. All rights reserved.