Package com.stripe.service
Class OrderService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.OrderService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCancels the order as well as the payment intent if one is attached.cancel
(String id, RequestOptions options) Cancels the order as well as the payment intent if one is attached.cancel
(String id, OrderCancelParams params) Cancels the order as well as the payment intent if one is attached.cancel
(String id, OrderCancelParams params, RequestOptions options) Cancels the order as well as the payment intent if one is attached.create
(OrderCreateParams params) Creates a newopen
order object.create
(OrderCreateParams params, RequestOptions options) Creates a newopen
order object.list()
Returns a list of your orders.list
(RequestOptions options) Returns a list of your orders.list
(OrderListParams params) Returns a list of your orders.list
(OrderListParams params, RequestOptions options) Returns a list of your orders.Reopens asubmitted
order.reopen
(String id, RequestOptions options) Reopens asubmitted
order.reopen
(String id, OrderReopenParams params) Reopens asubmitted
order.reopen
(String id, OrderReopenParams params, RequestOptions options) Reopens asubmitted
order.Retrieves the details of an existing order.retrieve
(String id, RequestOptions options) Retrieves the details of an existing order.retrieve
(String id, OrderRetrieveParams params) Retrieves the details of an existing order.retrieve
(String id, OrderRetrieveParams params, RequestOptions options) Retrieves the details of an existing order.submit
(String id, OrderSubmitParams params) Submitting an Order transitions the status toprocessing
and creates a PaymentIntent object so the order can be paid.submit
(String id, OrderSubmitParams params, RequestOptions options) Submitting an Order transitions the status toprocessing
and creates a PaymentIntent object so the order can be paid.Updates the specific order by setting the values of the parameters passed.update
(String id, RequestOptions options) Updates the specific order by setting the values of the parameters passed.update
(String id, OrderUpdateParams params) Updates the specific order by setting the values of the parameters passed.update
(String id, OrderUpdateParams params, RequestOptions options) Updates the specific order by setting the values of the parameters passed.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
OrderService
-
-
Method Details
-
list
Returns a list of your orders. The orders are returned sorted by creation date, with the most recently created orders appearing first.- Throws:
StripeException
-
list
Returns a list of your orders. The orders are returned sorted by creation date, with the most recently created orders appearing first.- Throws:
StripeException
-
list
Returns a list of your orders. The orders are returned sorted by creation date, with the most recently created orders appearing first.- Throws:
StripeException
-
list
public StripeCollection<Order> list(OrderListParams params, RequestOptions options) throws StripeException Returns a list of your orders. The orders are returned sorted by creation date, with the most recently created orders appearing first.- Throws:
StripeException
-
create
Creates a newopen
order object.- Throws:
StripeException
-
create
Creates a newopen
order object.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing order. Supply the unique order ID from either an order creation request or the order list, and Stripe will return the corresponding order information.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing order. Supply the unique order ID from either an order creation request or the order list, and Stripe will return the corresponding order information.- Throws:
StripeException
-
retrieve
Retrieves the details of an existing order. Supply the unique order ID from either an order creation request or the order list, and Stripe will return the corresponding order information.- Throws:
StripeException
-
retrieve
public Order retrieve(String id, OrderRetrieveParams params, RequestOptions options) throws StripeException Retrieves the details of an existing order. Supply the unique order ID from either an order creation request or the order list, and Stripe will return the corresponding order information.- Throws:
StripeException
-
update
Updates the specific order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
Updates the specific order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
Updates the specific order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
update
public Order update(String id, OrderUpdateParams params, RequestOptions options) throws StripeException Updates the specific order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.- Throws:
StripeException
-
cancel
Cancels the order as well as the payment intent if one is attached.- Throws:
StripeException
-
cancel
Cancels the order as well as the payment intent if one is attached.- Throws:
StripeException
-
cancel
Cancels the order as well as the payment intent if one is attached.- Throws:
StripeException
-
cancel
public Order cancel(String id, OrderCancelParams params, RequestOptions options) throws StripeException Cancels the order as well as the payment intent if one is attached.- Throws:
StripeException
-
reopen
Reopens asubmitted
order.- Throws:
StripeException
-
reopen
Reopens asubmitted
order.- Throws:
StripeException
-
reopen
Reopens asubmitted
order.- Throws:
StripeException
-
reopen
public Order reopen(String id, OrderReopenParams params, RequestOptions options) throws StripeException Reopens asubmitted
order.- Throws:
StripeException
-
submit
Submitting an Order transitions the status toprocessing
and creates a PaymentIntent object so the order can be paid. If the Order has anamount_total
of 0, no PaymentIntent object will be created. Once the order is submitted, its contents cannot be changed, unless the reopen method is called.- Throws:
StripeException
-
submit
public Order submit(String id, OrderSubmitParams params, RequestOptions options) throws StripeException Submitting an Order transitions the status toprocessing
and creates a PaymentIntent object so the order can be paid. If the Order has anamount_total
of 0, no PaymentIntent object will be created. Once the order is submitted, its contents cannot be changed, unless the reopen method is called.- Throws:
StripeException
-
lineItems
-