Package com.stripe.model.climate
Class Product
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.climate.Product
- All Implemented Interfaces:
HasId
,StripeActiveObject
,StripeObjectInterface
A Climate product represents a type of carbon removal unit available for reservation. You can
retrieve it to see the current price and availability.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod
-
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Time at which the object was created.Current prices for a metric ton of carbon removal in a currency's smallest unit.The year in which the carbon removal is expected to be delivered.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.The quantity of metric tons available for reservation.getName()
The Climate product's name.String representing the object's type.The carbon removal suppliers that fulfill orders for this Climate product.int
hashCode()
static ProductCollection
list
(ProductListParams params) Lists all available Climate product objects.static ProductCollection
list
(ProductListParams params, RequestOptions options) Lists all available Climate product objects.static ProductCollection
Lists all available Climate product objects.static ProductCollection
list
(Map<String, Object> params, RequestOptions options) Lists all available Climate product objects.static Product
Retrieves the details of a Climate product with the given ID.static Product
retrieve
(String product, RequestOptions options) Retrieves the details of a Climate product with the given ID.static Product
retrieve
(String product, ProductRetrieveParams params, RequestOptions options) Retrieves the details of a Climate product with the given ID.static Product
Retrieves the details of a Climate product with the given ID.void
setCreated
(Long created) Time at which the object was created.void
setCurrentPricesPerMetricTon
(Map<String, Product.CurrentPricesPerMetricTon> currentPricesPerMetricTon) Current prices for a metric ton of carbon removal in a currency's smallest unit.void
setDeliveryYear
(Long deliveryYear) The year in which the carbon removal is expected to be delivered.void
Unique identifier for the object.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
setMetricTonsAvailable
(BigDecimal metricTonsAvailable) The quantity of metric tons available for reservation.void
The Climate product's name.void
String representing the object's type.void
setSuppliers
(List<Supplier> suppliers) The carbon removal suppliers that fulfill orders for this Climate product.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setResponseGetter, setStripeResponseGetter, urlEncode, urlEncodeId
Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Product
public Product()
-
-
Method Details
-
list
Lists all available Climate product objects.- Throws:
StripeException
-
list
public static ProductCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionLists all available Climate product objects.- Throws:
StripeException
-
list
Lists all available Climate product objects.- Throws:
StripeException
-
list
public static ProductCollection list(ProductListParams params, RequestOptions options) throws StripeException Lists all available Climate product objects.- Throws:
StripeException
-
retrieve
Retrieves the details of a Climate product with the given ID.- Throws:
StripeException
-
retrieve
Retrieves the details of a Climate product with the given ID.- Throws:
StripeException
-
retrieve
public static Product retrieve(String product, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of a Climate product with the given ID.- Throws:
StripeException
-
retrieve
public static Product retrieve(String product, ProductRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of a Climate product with the given ID.- Throws:
StripeException
-
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrentPricesPerMetricTon
Current prices for a metric ton of carbon removal in a currency's smallest unit. -
getDeliveryYear
The year in which the carbon removal is expected to be delivered. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getMetricTonsAvailable
The quantity of metric tons available for reservation. -
getName
The Climate product's name. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
climate.product
. -
getSuppliers
The carbon removal suppliers that fulfill orders for this Climate product. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrentPricesPerMetricTon
public void setCurrentPricesPerMetricTon(Map<String, Product.CurrentPricesPerMetricTon> currentPricesPerMetricTon) Current prices for a metric ton of carbon removal in a currency's smallest unit. -
setDeliveryYear
The year in which the carbon removal is expected to be delivered. -
setId
Unique identifier for the object. For convenience, Climate product IDs are human-readable strings that start withclimsku_
. See carbon removal inventory for a list of available carbon removal products. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setMetricTonsAvailable
The quantity of metric tons available for reservation. -
setName
The Climate product's name. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
climate.product
. -
setSuppliers
The carbon removal suppliers that fulfill orders for this Climate product. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. For convenience, Climate product IDs are human-readable strings that start withclimsku_
. See carbon removal inventory for a list of available carbon removal products.
-