Package com.stripe.service
Class SubscriptionItemService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.SubscriptionItemService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(SubscriptionItemCreateParams params) Adds a new item to an existing subscription.create
(SubscriptionItemCreateParams params, RequestOptions options) Adds a new item to an existing subscription.Deletes an item from the subscription.delete
(String item, RequestOptions options) Deletes an item from the subscription.delete
(String item, SubscriptionItemDeleteParams params) Deletes an item from the subscription.delete
(String item, SubscriptionItemDeleteParams params, RequestOptions options) Deletes an item from the subscription.list
(SubscriptionItemListParams params) Returns a list of your subscription items for a given subscription.list
(SubscriptionItemListParams params, RequestOptions options) Returns a list of your subscription items for a given subscription.Retrieves the subscription item with the given ID.retrieve
(String item, RequestOptions options) Retrieves the subscription item with the given ID.retrieve
(String item, SubscriptionItemRetrieveParams params) Retrieves the subscription item with the given ID.retrieve
(String item, SubscriptionItemRetrieveParams params, RequestOptions options) Retrieves the subscription item with the given ID.Updates the plan or quantity of an item on a current subscription.update
(String item, RequestOptions options) Updates the plan or quantity of an item on a current subscription.update
(String item, SubscriptionItemUpdateParams params) Updates the plan or quantity of an item on a current subscription.update
(String item, SubscriptionItemUpdateParams params, RequestOptions options) Updates the plan or quantity of an item on a current subscription.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
SubscriptionItemService
-
-
Method Details
-
delete
public SubscriptionItem delete(String item, SubscriptionItemDeleteParams params) throws StripeException Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription.- Throws:
StripeException
-
delete
Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription.- Throws:
StripeException
-
delete
Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription.- Throws:
StripeException
-
delete
public SubscriptionItem delete(String item, SubscriptionItemDeleteParams params, RequestOptions options) throws StripeException Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription.- Throws:
StripeException
-
retrieve
public SubscriptionItem retrieve(String item, SubscriptionItemRetrieveParams params) throws StripeException Retrieves the subscription item with the given ID.- Throws:
StripeException
-
retrieve
Retrieves the subscription item with the given ID.- Throws:
StripeException
-
retrieve
Retrieves the subscription item with the given ID.- Throws:
StripeException
-
retrieve
public SubscriptionItem retrieve(String item, SubscriptionItemRetrieveParams params, RequestOptions options) throws StripeException Retrieves the subscription item with the given ID.- Throws:
StripeException
-
update
public SubscriptionItem update(String item, SubscriptionItemUpdateParams params) throws StripeException Updates the plan or quantity of an item on a current subscription.- Throws:
StripeException
-
update
Updates the plan or quantity of an item on a current subscription.- Throws:
StripeException
-
update
Updates the plan or quantity of an item on a current subscription.- Throws:
StripeException
-
update
public SubscriptionItem update(String item, SubscriptionItemUpdateParams params, RequestOptions options) throws StripeException Updates the plan or quantity of an item on a current subscription.- Throws:
StripeException
-
list
public StripeCollection<SubscriptionItem> list(SubscriptionItemListParams params) throws StripeException Returns a list of your subscription items for a given subscription.- Throws:
StripeException
-
list
public StripeCollection<SubscriptionItem> list(SubscriptionItemListParams params, RequestOptions options) throws StripeException Returns a list of your subscription items for a given subscription.- Throws:
StripeException
-
create
Adds a new item to an existing subscription. No existing items will be changed or replaced.- Throws:
StripeException
-
create
public SubscriptionItem create(SubscriptionItemCreateParams params, RequestOptions options) throws StripeException Adds a new item to an existing subscription. No existing items will be changed or replaced.- Throws:
StripeException
-
usageRecordSummaries
-
usageRecords
-