Class: Spree::LabelPurchase
- Inherits:
-
Object
- Object
- Spree::LabelPurchase
- Includes:
- ActiveModel::Attributes, ActiveModel::Model
- Defined in:
- app/models/spree/label_purchase.rb
Overview
What a label-generating fulfillment provider hands back from
purchase_label: the carrier's answer, typed, before core turns it into
a Spree::ShippingLabel and its Spree::Delivery. Ephemeral, never
persisted.
cost and currency are what the merchant paid the carrier; file_url
is the provider's hosted copy of the label, fetched into private storage
right after purchase. metadata carries whatever ids the provider needs
to find the purchase again (a tracker id, a shipment id).