class PrintfulAPI::Order

Public Class Methods

resource_path() click to toggle source
# File lib/printful_api/order.rb, line 21
def self.resource_path
        '/orders'
end

Public Instance Methods

confirm_for_fulfillment() click to toggle source

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.

# 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