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
Modifier and TypeClassDescriptionstatic class
static class
The 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_GSON
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
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 boolean
static Order
create
(OrderCreateParams params) Creates a Climate order object for a given Climate product.static Order
create
(OrderCreateParams params, RequestOptions options) Creates a Climate order object for a given Climate product.static Order
Creates a Climate order object for a given Climate product.static Order
create
(Map<String, Object> params, RequestOptions options) Creates a Climate order object for a given Climate product.boolean
Total 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 valuetrue
if the object exists in live mode or the valuefalse
if 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 expandableproduct
object.Get expandedproduct
.Time at which the order's product was substituted for a different product.The current status of this order.int
hashCode()
static OrderCollection
list
(OrderListParams params) Lists all Climate order objects.static OrderCollection
list
(OrderListParams params, RequestOptions options) Lists all Climate order objects.static OrderCollection
Lists all Climate order objects.static OrderCollection
list
(Map<String, Object> params, RequestOptions options) Lists all Climate order objects.static Order
Retrieves the details of a Climate order object with the given ID.static Order
retrieve
(String order, RequestOptions options) Retrieves the details of a Climate order object with the given ID.static Order
retrieve
(String order, OrderRetrieveParams params, RequestOptions options) Retrieves the details of a Climate order object with the given ID.static Order
Retrieves the details of a Climate order object with the given ID.void
setAmountFees
(Long amountFees) Total amount of Frontier's service fees in the currency's smallest unit.void
setAmountSubtotal
(Long amountSubtotal) Total amount of the carbon removal in the currency's smallest unit.void
setAmountTotal
(Long amountTotal) Total amount of the order including fees in the currency's smallest unit.void
setBeneficiary
(Order.Beneficiary beneficiary) void
setCanceledAt
(Long canceledAt) Time at which the order was canceled.void
setCancellationReason
(String cancellationReason) Reason for the cancellation of this order.void
setCertificate
(String certificate) For delivered orders, a URL to a delivery certificate for the order.void
setConfirmedAt
(Long confirmedAt) Time at which the order was confirmed.void
setCreated
(Long created) Time at which the object was created.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase, representing the currency for this order.void
setDelayedAt
(Long delayedAt) Time at which the order's expected_delivery_year was delayed.void
setDeliveredAt
(Long deliveredAt) Time at which the order was delivered.void
setDeliveryDetails
(List<Order.DeliveryDetail> deliveryDetails) Details about the delivery of carbon removal for this order.void
setExpectedDeliveryYear
(Long expectedDeliveryYear) The year this order 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
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
setMetricTons
(BigDecimal metricTons) Quantity of carbon removal that is included in this order.void
String representing the object's type.void
setProduct
(String id) void
setProductObject
(Product expandableObject) void
setProductSubstitutedAt
(Long productSubstitutedAt) Time at which the order's product was substituted for a different product.void
setResponseGetter
(StripeResponseGetter responseGetter) The state/county/province/region where the supplier is located.void
The 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, 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
-
Order
public Order()
-
-
Method Details
-
getProduct
Get ID of expandableproduct
object. -
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_fees
for 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_fees
for 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_fees
for 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_fees
for 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_fees
for 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_fees
for 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:
update
in interfaceMetadataStore<Order>
- Throws:
StripeException
-
update
Updates the specified order by setting the values of the parameters passed.- Specified by:
update
in 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:
setResponseGetter
in interfaceStripeActiveObject
- Overrides:
setResponseGetter
in classApiResource
- Parameters:
responseGetter
- theStripeResponseGetter
instance 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 valuetrue
if the object exists in live mode or the valuefalse
if 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 valuetrue
if the object exists in live mode or the valuefalse
if 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:
getMetadata
in interfaceMetadataStore<Order>
-