Skip to content

Instantly share code, notes, and snippets.

@cored
Last active December 24, 2017 18:16
Show Gist options
  • Save cored/1e8d850b23ca42f3a0f19244e646cdab to your computer and use it in GitHub Desktop.
Save cored/1e8d850b23ca42f3a0f19244e646cdab to your computer and use it in GitHub Desktop.
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