Last active
December 24, 2017 18:16
-
-
Save cored/1e8d850b23ca42f3a0f19244e646cdab to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Courier < ActiveRecord::Model | |
def cancel_slot(courier_slot) | |
ez_shipment = EasyPost::Shipment.retrieve(courier.external_api_identifier) | |
ez_shipment.refund | |
ez_shipment | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment