Class RateService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.v2.billing.ratecards.RateService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet the Rate for a Metered Item on the latest version of a Rate Card object.create
(String rateCardId, RequestOptions options) Set the Rate for a Metered Item on the latest version of a Rate Card object.create
(String rateCardId, RateCreateParams params) Set the Rate for a Metered Item on the latest version of a Rate Card object.create
(String rateCardId, RateCreateParams params, RequestOptions options) Set the Rate for a Metered Item on the latest version of a Rate Card object.Remove an existing Rate from a Rate Card.delete
(String rateCardId, String id, RequestOptions options) Remove an existing Rate from a Rate Card.List all Rates associated with a Rate Card for a specific version (defaults to latest).list
(String rateCardId, RequestOptions options) List all Rates associated with a Rate Card for a specific version (defaults to latest).list
(String rateCardId, RateListParams params) List all Rates associated with a Rate Card for a specific version (defaults to latest).list
(String rateCardId, RateListParams params, RequestOptions options) List all Rates associated with a Rate Card for a specific version (defaults to latest).Retrieve a Rate object.retrieve
(String rateCardId, String id, RequestOptions options) Retrieve a Rate object.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
RateService
-
-
Method Details
-
list
public StripeCollection<RateCardRate> list(String rateCardId, RateListParams params) throws StripeException List all Rates associated with a Rate Card for a specific version (defaults to latest). Rates remain active for all subsequent versions until a new rate is created for the same Metered Item.- Throws:
StripeException
-
list
public StripeCollection<RateCardRate> list(String rateCardId, RequestOptions options) throws StripeException List all Rates associated with a Rate Card for a specific version (defaults to latest). Rates remain active for all subsequent versions until a new rate is created for the same Metered Item.- Throws:
StripeException
-
list
List all Rates associated with a Rate Card for a specific version (defaults to latest). Rates remain active for all subsequent versions until a new rate is created for the same Metered Item.- Throws:
StripeException
-
list
public StripeCollection<RateCardRate> list(String rateCardId, RateListParams params, RequestOptions options) throws StripeException List all Rates associated with a Rate Card for a specific version (defaults to latest). Rates remain active for all subsequent versions until a new rate is created for the same Metered Item.- Throws:
StripeException
-
create
Set the Rate for a Metered Item on the latest version of a Rate Card object. This will create a new Rate Card version if the Metered Item already has a rate on the Rate Card.- Throws:
StripeException
-
create
Set the Rate for a Metered Item on the latest version of a Rate Card object. This will create a new Rate Card version if the Metered Item already has a rate on the Rate Card.- Throws:
StripeException
-
create
Set the Rate for a Metered Item on the latest version of a Rate Card object. This will create a new Rate Card version if the Metered Item already has a rate on the Rate Card.- Throws:
StripeException
-
create
public RateCardRate create(String rateCardId, RateCreateParams params, RequestOptions options) throws StripeException Set the Rate for a Metered Item on the latest version of a Rate Card object. This will create a new Rate Card version if the Metered Item already has a rate on the Rate Card.- Throws:
StripeException
-
delete
Remove an existing Rate from a Rate Card. This will create a new Rate Card Version without that Rate.- Throws:
StripeException
-
delete
public RateCardRate delete(String rateCardId, String id, RequestOptions options) throws StripeException Remove an existing Rate from a Rate Card. This will create a new Rate Card Version without that Rate.- Throws:
StripeException
-
retrieve
Retrieve a Rate object.- Throws:
StripeException
-
retrieve
public RateCardRate retrieve(String rateCardId, String id, RequestOptions options) throws StripeException Retrieve a Rate object.- Throws:
StripeException
-