Class: PrintfulAPI::Order
- Inherits:
-
APIResource
- Object
- APIResource
- PrintfulAPI::Order
- Includes:
- APIOperations::Create, APIOperations::Delete, APIOperations::Get, APIOperations::List, APIOperations::Save, APIOperations::Update
- Defined in:
- lib/printful_api/order.rb
Instance Attribute Summary
Attributes inherited from APIResource
Class Method Summary collapse
Instance Method Summary collapse
-
#confirm_for_fulfillment ⇒ Object
Confirm draft for fulfillment Approves for fulfillment an order that was saved as a draft.
Methods included from APIOperations::Save
Methods included from APIOperations::Update
Methods included from APIOperations::List
Methods included from APIOperations::Get
Methods included from APIOperations::Delete
Methods included from APIOperations::Create
Methods inherited from APIResource
api_attributes, belongs_to, camelize, has_many, #load_data, singularize, #to_h
Class Method Details
permalink .resource_path ⇒ Object
[View source]
21 22 23 |
# File 'lib/printful_api/order.rb', line 21 def self.resource_path '/orders' end |
Instance Method Details
permalink #confirm_for_fulfillment ⇒ Object
Confirm draft for fulfillment Approves for fulfillment an order that was saved as a draft. Store owner’s credit card is charged when the order is submitted for fulfillment.
27 28 29 30 31 32 33 34 35 |
# File 'lib/printful_api/order.rb', line 27 def confirm_for_fulfillment result = PrintfulAPI.request( :POST, "/orders/#{self.id}/confirm", {} ) self.load_data( result ) return true end |