Package com.stripe.service.billing
Class MeterService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.billing.MeterService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(MeterCreateParams params) Creates a billing meter.create
(MeterCreateParams params, RequestOptions options) Creates a billing meter.deactivate
(String id) When a meter is deactivated, no more meter events will be accepted for this meter.deactivate
(String id, RequestOptions options) When a meter is deactivated, no more meter events will be accepted for this meter.deactivate
(String id, MeterDeactivateParams params) When a meter is deactivated, no more meter events will be accepted for this meter.deactivate
(String id, MeterDeactivateParams params, RequestOptions options) When a meter is deactivated, no more meter events will be accepted for this meter.list()
Retrieve a list of billing meters.list
(RequestOptions options) Retrieve a list of billing meters.list
(MeterListParams params) Retrieve a list of billing meters.list
(MeterListParams params, RequestOptions options) Retrieve a list of billing meters.reactivate
(String id) When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.reactivate
(String id, RequestOptions options) When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.reactivate
(String id, MeterReactivateParams params) When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.reactivate
(String id, MeterReactivateParams params, RequestOptions options) When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.Retrieves a billing meter given an ID.retrieve
(String id, RequestOptions options) Retrieves a billing meter given an ID.retrieve
(String id, MeterRetrieveParams params) Retrieves a billing meter given an ID.retrieve
(String id, MeterRetrieveParams params, RequestOptions options) Retrieves a billing meter given an ID.Updates a billing meter.update
(String id, RequestOptions options) Updates a billing meter.update
(String id, MeterUpdateParams params) Updates a billing meter.update
(String id, MeterUpdateParams params, RequestOptions options) Updates a billing meter.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
MeterService
-
-
Method Details
-
list
Retrieve a list of billing meters.- Throws:
StripeException
-
list
Retrieve a list of billing meters.- Throws:
StripeException
-
list
Retrieve a list of billing meters.- Throws:
StripeException
-
list
public StripeCollection<Meter> list(MeterListParams params, RequestOptions options) throws StripeException Retrieve a list of billing meters.- Throws:
StripeException
-
create
Creates a billing meter.- Throws:
StripeException
-
create
Creates a billing meter.- Throws:
StripeException
-
retrieve
Retrieves a billing meter given an ID.- Throws:
StripeException
-
retrieve
Retrieves a billing meter given an ID.- Throws:
StripeException
-
retrieve
Retrieves a billing meter given an ID.- Throws:
StripeException
-
retrieve
public Meter retrieve(String id, MeterRetrieveParams params, RequestOptions options) throws StripeException Retrieves a billing meter given an ID.- Throws:
StripeException
-
update
Updates a billing meter.- Throws:
StripeException
-
update
Updates a billing meter.- Throws:
StripeException
-
update
Updates a billing meter.- Throws:
StripeException
-
update
public Meter update(String id, MeterUpdateParams params, RequestOptions options) throws StripeException Updates a billing meter.- Throws:
StripeException
-
deactivate
When a meter is deactivated, no more meter events will be accepted for this meter. You can’t attach a deactivated meter to a price.- Throws:
StripeException
-
deactivate
When a meter is deactivated, no more meter events will be accepted for this meter. You can’t attach a deactivated meter to a price.- Throws:
StripeException
-
deactivate
When a meter is deactivated, no more meter events will be accepted for this meter. You can’t attach a deactivated meter to a price.- Throws:
StripeException
-
deactivate
public Meter deactivate(String id, MeterDeactivateParams params, RequestOptions options) throws StripeException When a meter is deactivated, no more meter events will be accepted for this meter. You can’t attach a deactivated meter to a price.- Throws:
StripeException
-
reactivate
When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.- Throws:
StripeException
-
reactivate
When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.- Throws:
StripeException
-
reactivate
When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.- Throws:
StripeException
-
reactivate
public Meter reactivate(String id, MeterReactivateParams params, RequestOptions options) throws StripeException When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.- Throws:
StripeException
-
eventSummaries
-