Class: Shirtsio::Status
Overview
Retrieves the current state of any previously placed order.
Defined Under Namespace
Classes: Webhook
Class Method Summary collapse
-
.find(id) ⇒ Shirtsio::Status
Retrieve an order’s possible status.
Methods inherited from Endpoint
#initialize, #method_missing, #respond_to?
Constructor Details
This class inherits a constructor from Shirtsio::Endpoint
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Shirtsio::Endpoint
Class Method Details
.find(id) ⇒ Shirtsio::Status
Retrieve an order’s possible status.
Possible statuses include:
* Processing - Order was accepted by the API and is being processed
before production.
* Printing - Order is in the production process.
* Shipped - Order has been shipped.
* If an order is shipped or delivered, you will be given tracking
numbers for each package.
* Generally, larget orders are shipped via UPS and smaller orders
are shipped via USPS.
* Delivered - Order has been delivered.
* Canceled - Order has been canceled.
* If an order is canceled, you will be given a reason for
cencellation.
* Possible reasons include: incorrect color count, intellectual
property infringement, out of stock, invalid printing
specifications.
25 26 27 |
# File 'lib/shirtsio/status.rb', line 25 def self.find(id) new(Shirtsio.get("/status/#{id}")) end |