Package com.stripe.model.climate
Class Order
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.climate.Order
- All Implemented Interfaces:
HasId,MetadataStore<Order>,StripeActiveObject,StripeObjectInterface
Orders represent your intent to purchase a particular Climate product. When you create an order,
the payment is deducted from your merchant balance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about Beneficiary, please refer to the API Reference.static classThe delivery of a specified quantity of carbon for an order.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 TypeMethodDescriptioncancel()Cancels a Climate order.cancel(RequestOptions options) Cancels a Climate order.cancel(OrderCancelParams params) Cancels a Climate order.cancel(OrderCancelParams params, RequestOptions options) Cancels a Climate order.Cancels a Climate order.cancel(Map<String, Object> params, RequestOptions options) Cancels a Climate order.protected booleanstatic Ordercreate(OrderCreateParams params) Creates a Climate order object for a given Climate product.static Ordercreate(OrderCreateParams params, RequestOptions options) Creates a Climate order object for a given Climate product.static OrderCreates a Climate order object for a given Climate product.static Ordercreate(Map<String, Object> params, RequestOptions options) Creates a Climate order object for a given Climate product.booleanTotal amount of Frontier's service fees in the currency's smallest unit.Total amount of the carbon removal in the currency's smallest unit.Total amount of the order including fees in the currency's smallest unit.Time at which the order was canceled.Reason for the cancellation of this order.For delivered orders, a URL to a delivery certificate for the order.Time at which the order was confirmed.Time at which the object was created.Three-letter ISO currency code, in lowercase, representing the currency for this order.Time at which the order's expected_delivery_year was delayed.Time at which the order was delivered.Details about the delivery of carbon removal for this order.The year this order 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.Set of key-value pairs that you can attach to an object.Quantity of carbon removal that is included in this order.String representing the object's type.Get ID of expandableproductobject.Get expandedproduct.Time at which the order's product was substituted for a different product.The current status of this order.inthashCode()static OrderCollectionlist(OrderListParams params) Lists all Climate order objects.static OrderCollectionlist(OrderListParams params, RequestOptions options) Lists all Climate order objects.static OrderCollectionLists all Climate order objects.static OrderCollectionlist(Map<String, Object> params, RequestOptions options) Lists all Climate order objects.static OrderRetrieves the details of a Climate order object with the given ID.static Orderretrieve(String order, RequestOptions options) Retrieves the details of a Climate order object with the given ID.static Orderretrieve(String order, OrderRetrieveParams params, RequestOptions options) Retrieves the details of a Climate order object with the given ID.static OrderRetrieves the details of a Climate order object with the given ID.voidsetAmountFees(Long amountFees) Total amount of Frontier's service fees in the currency's smallest unit.voidsetAmountSubtotal(Long amountSubtotal) Total amount of the carbon removal in the currency's smallest unit.voidsetAmountTotal(Long amountTotal) Total amount of the order including fees in the currency's smallest unit.voidsetBeneficiary(Order.Beneficiary beneficiary) voidsetCanceledAt(Long canceledAt) Time at which the order was canceled.voidsetCancellationReason(String cancellationReason) Reason for the cancellation of this order.voidsetCertificate(String certificate) For delivered orders, a URL to a delivery certificate for the order.voidsetConfirmedAt(Long confirmedAt) Time at which the order was confirmed.voidsetCreated(Long created) Time at which the object was created.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase, representing the currency for this order.voidsetDelayedAt(Long delayedAt) Time at which the order's expected_delivery_year was delayed.voidsetDeliveredAt(Long deliveredAt) Time at which the order was delivered.voidsetDeliveryDetails(List<Order.DeliveryDetail> deliveryDetails) Details about the delivery of carbon removal for this order.voidsetExpectedDeliveryYear(Long expectedDeliveryYear) The year this order 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.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidsetMetricTons(BigDecimal metricTons) Quantity of carbon removal that is included in this order.voidString representing the object's type.voidsetProduct(String id) voidsetProductObject(Product expandableObject) voidsetProductSubstitutedAt(Long productSubstitutedAt) Time at which the order's product was substituted for a different product.voidsetResponseGetter(StripeResponseGetter responseGetter) The state/county/province/region where the supplier is located.voidThe current status of this order.update(OrderUpdateParams params) Updates the specified order by setting the values of the parameters passed.update(OrderUpdateParams params, RequestOptions options) Updates the specified order by setting the values of the parameters passed.Updates the specified order by setting the values of the parameters passed.update(Map<String, Object> params, RequestOptions options) Updates the specified order by setting the values of the parameters passed.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, 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
-
Order
public Order()
-
-
Method Details
-
getProduct
Get ID of expandableproductobject. -
setProduct
-
getProductObject
Get expandedproduct. -
setProductObject
-
cancel
Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the reservationamount_subtotal, but not theamount_feesfor user-triggered cancellations. Frontier might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe provides 90 days advance notice and refunds theamount_total.- Throws:
StripeException
-
cancel
Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the reservationamount_subtotal, but not theamount_feesfor user-triggered cancellations. Frontier might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe provides 90 days advance notice and refunds theamount_total.- Throws:
StripeException
-
cancel
Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the reservationamount_subtotal, but not theamount_feesfor user-triggered cancellations. Frontier might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe provides 90 days advance notice and refunds theamount_total.- Throws:
StripeException
-
cancel
Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the reservationamount_subtotal, but not theamount_feesfor user-triggered cancellations. Frontier might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe provides 90 days advance notice and refunds theamount_total.- Throws:
StripeException
-
cancel
Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the reservationamount_subtotal, but not theamount_feesfor user-triggered cancellations. Frontier might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe provides 90 days advance notice and refunds theamount_total.- Throws:
StripeException
-
cancel
Cancels a Climate order. You can cancel an order within 24 hours of creation. Stripe refunds the reservationamount_subtotal, but not theamount_feesfor user-triggered cancellations. Frontier might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe provides 90 days advance notice and refunds theamount_total.- Throws:
StripeException
-
create
Creates a Climate order object for a given Climate product. The order will be processed immediately after creation and payment will be deducted your Stripe balance.- Throws:
StripeException
-
create
public static Order create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a Climate order object for a given Climate product. The order will be processed immediately after creation and payment will be deducted your Stripe balance.- Throws:
StripeException
-
create
Creates a Climate order object for a given Climate product. The order will be processed immediately after creation and payment will be deducted your Stripe balance.- Throws:
StripeException
-
create
Creates a Climate order object for a given Climate product. The order will be processed immediately after creation and payment will be deducted your Stripe balance.- Throws:
StripeException
-
list
Lists all Climate order objects. The orders are returned sorted by creation date, with the most recently created orders appearing first.- Throws:
StripeException
-
list
public static OrderCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionLists all Climate order objects. The orders are returned sorted by creation date, with the most recently created orders appearing first.- Throws:
StripeException
-
list
Lists all Climate order objects. The orders are returned sorted by creation date, with the most recently created orders appearing first.- Throws:
StripeException
-
list
public static OrderCollection list(OrderListParams params, RequestOptions options) throws StripeException Lists all Climate order objects. The orders are returned sorted by creation date, with the most recently created orders appearing first.- Throws:
StripeException
-
retrieve
Retrieves the details of a Climate order object with the given ID.- Throws:
StripeException
-
retrieve
Retrieves the details of a Climate order object with the given ID.- Throws:
StripeException
-
retrieve
public static Order retrieve(String order, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves the details of a Climate order object with the given ID.- Throws:
StripeException
-
retrieve
public static Order retrieve(String order, OrderRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of a Climate order object with the given ID.- Throws:
StripeException
-
update
Updates the specified order by setting the values of the parameters passed.- Specified by:
updatein interfaceMetadataStore<Order>- Throws:
StripeException
-
update
Updates the specified order by setting the values of the parameters passed.- Specified by:
updatein interfaceMetadataStore<Order>- Throws:
StripeException
-
update
Updates the specified order by setting the values of the parameters passed.- Throws:
StripeException
-
update
Updates the specified order by setting the values of the parameters passed.- Throws:
StripeException
-
setResponseGetter
The state/county/province/region where the supplier is located.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getAmountFees
Total amount of Frontier's service fees in the currency's smallest unit. -
getAmountSubtotal
Total amount of the carbon removal in the currency's smallest unit. -
getAmountTotal
Total amount of the order including fees in the currency's smallest unit. -
getBeneficiary
-
getCanceledAt
Time at which the order was canceled. Measured in seconds since the Unix epoch. -
getCancellationReason
Reason for the cancellation of this order.One of
expired,product_unavailable, orrequested. -
getCertificate
For delivered orders, a URL to a delivery certificate for the order. -
getConfirmedAt
Time at which the order was confirmed. Measured in seconds since the Unix epoch. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
Three-letter ISO currency code, in lowercase, representing the currency for this order. -
getDelayedAt
Time at which the order's expected_delivery_year was delayed. Measured in seconds since the Unix epoch. -
getDeliveredAt
Time at which the order was delivered. Measured in seconds since the Unix epoch. -
getDeliveryDetails
Details about the delivery of carbon removal for this order. -
getExpectedDeliveryYear
The year this order is expected to be delivered. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getMetricTons
Quantity of carbon removal that is included in this order. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
climate.order. -
getProductSubstitutedAt
Time at which the order's product was substituted for a different product. Measured in seconds since the Unix epoch. -
getStatus
The current status of this order.One of
awaiting_funds,canceled,confirmed,delivered, oropen. -
setAmountFees
Total amount of Frontier's service fees in the currency's smallest unit. -
setAmountSubtotal
Total amount of the carbon removal in the currency's smallest unit. -
setAmountTotal
Total amount of the order including fees in the currency's smallest unit. -
setBeneficiary
-
setCanceledAt
Time at which the order was canceled. Measured in seconds since the Unix epoch. -
setCancellationReason
Reason for the cancellation of this order.One of
expired,product_unavailable, orrequested. -
setCertificate
For delivered orders, a URL to a delivery certificate for the order. -
setConfirmedAt
Time at which the order was confirmed. Measured in seconds since the Unix epoch. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
Three-letter ISO currency code, in lowercase, representing the currency for this order. -
setDelayedAt
Time at which the order's expected_delivery_year was delayed. Measured in seconds since the Unix epoch. -
setDeliveredAt
Time at which the order was delivered. Measured in seconds since the Unix epoch. -
setDeliveryDetails
Details about the delivery of carbon removal for this order. -
setExpectedDeliveryYear
The year this order is expected to be delivered. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setMetricTons
Quantity of carbon removal that is included in this order. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
climate.order. -
setProductSubstitutedAt
Time at which the order's product was substituted for a different product. Measured in seconds since the Unix epoch. -
setStatus
The current status of this order.One of
awaiting_funds,canceled,confirmed,delivered, oropen. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.- Specified by:
getMetadatain interfaceMetadataStore<Order>
-