Package com.stripe.service
Class PromotionCodeService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.PromotionCodeService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(PromotionCodeCreateParams params) A promotion code points to a coupon.create
(PromotionCodeCreateParams params, RequestOptions options) A promotion code points to a coupon.list()
Returns a list of your promotion codes.list
(RequestOptions options) Returns a list of your promotion codes.list
(PromotionCodeListParams params) Returns a list of your promotion codes.list
(PromotionCodeListParams params, RequestOptions options) Returns a list of your promotion codes.Retrieves the promotion code with the given ID.retrieve
(String promotionCode, RequestOptions options) Retrieves the promotion code with the given ID.retrieve
(String promotionCode, PromotionCodeRetrieveParams params) Retrieves the promotion code with the given ID.retrieve
(String promotionCode, PromotionCodeRetrieveParams params, RequestOptions options) Retrieves the promotion code with the given ID.Updates the specified promotion code by setting the values of the parameters passed.update
(String promotionCode, RequestOptions options) Updates the specified promotion code by setting the values of the parameters passed.update
(String promotionCode, PromotionCodeUpdateParams params) Updates the specified promotion code by setting the values of the parameters passed.update
(String promotionCode, PromotionCodeUpdateParams params, RequestOptions options) Updates the specified promotion code by setting the values of the parameters passed.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
PromotionCodeService
-
-
Method Details
-
list
Returns a list of your promotion codes.- Throws:
StripeException
-
list
Returns a list of your promotion codes.- Throws:
StripeException
-
list
Returns a list of your promotion codes.- Throws:
StripeException
-
list
public StripeCollection<PromotionCode> list(PromotionCodeListParams params, RequestOptions options) throws StripeException Returns a list of your promotion codes.- Throws:
StripeException
-
create
A promotion code points to a coupon. You can optionally restrict the code to a specific customer, redemption limit, and expiration date.- Throws:
StripeException
-
create
public PromotionCode create(PromotionCodeCreateParams params, RequestOptions options) throws StripeException A promotion code points to a coupon. You can optionally restrict the code to a specific customer, redemption limit, and expiration date.- Throws:
StripeException
-
retrieve
public PromotionCode retrieve(String promotionCode, PromotionCodeRetrieveParams params) throws StripeException Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facingcode
use list with the desiredcode
.- Throws:
StripeException
-
retrieve
Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facingcode
use list with the desiredcode
.- Throws:
StripeException
-
retrieve
Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facingcode
use list with the desiredcode
.- Throws:
StripeException
-
retrieve
public PromotionCode retrieve(String promotionCode, PromotionCodeRetrieveParams params, RequestOptions options) throws StripeException Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facingcode
use list with the desiredcode
.- Throws:
StripeException
-
update
public PromotionCode update(String promotionCode, PromotionCodeUpdateParams params) throws StripeException Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable.- Throws:
StripeException
-
update
Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable.- Throws:
StripeException
-
update
Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable.- Throws:
StripeException
-
update
public PromotionCode update(String promotionCode, PromotionCodeUpdateParams params, RequestOptions options) throws StripeException Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable.- Throws:
StripeException
-