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 ClassesModifier and TypeClassDescriptionstatic classFor more details about CurrentPricesPerMetricTon, please refer to the API Reference.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_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanTime 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 valuetrueif the object exists in live mode or the valuefalseif 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.inthashCode()static ProductCollectionlist(ProductListParams params) Lists all available Climate product objects.static ProductCollectionlist(ProductListParams params, RequestOptions options) Lists all available Climate product objects.static ProductCollectionLists all available Climate product objects.static ProductCollectionlist(Map<String, Object> params, RequestOptions options) Lists all available Climate product objects.static ProductRetrieves the details of a Climate product with the given ID.static Productretrieve(String product, RequestOptions options) Retrieves the details of a Climate product with the given ID.static Productretrieve(String product, ProductRetrieveParams params, RequestOptions options) Retrieves the details of a Climate product with the given ID.static ProductRetrieves the details of a Climate product with the given ID.voidsetCreated(Long created) Time at which the object was created.voidsetCurrentPricesPerMetricTon(Map<String, Product.CurrentPricesPerMetricTon> currentPricesPerMetricTon) Current prices for a metric ton of carbon removal in a currency's smallest unit.voidsetDeliveryYear(Long deliveryYear) The year in which the carbon removal is expected to be delivered.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetricTonsAvailable(BigDecimal metricTonsAvailable) The quantity of metric tons available for reservation.voidThe Climate product's name.voidString representing the object's type.voidsetSuppliers(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, setGlobalResponseGetter, setResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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 valuetrueif the object exists in live mode or the valuefalseif 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 valuetrueif the object exists in live mode or the valuefalseif 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.
-