Sha256: cec3ad96c885b9127c0a937b941f3764ca2298085d557241ce2495216f726135

Contents?: true

Size: 895 Bytes

Versions: 4

Compression:

Stored size: 895 Bytes

Contents

module Printfection
  class Manifest < Resource
    property :subtotal,     transform_with: Transforms::Float
    property :tax,          transform_with: Transforms::Float
    property :shipping,     transform_with: Transforms::Float
    property :fulfillment,  transform_with: Transforms::Float
    property :total,        transform_with: Transforms::Float
    property :created_at,   transform_with: Transforms::Date
    property :received_at,  transform_with: Transforms::Date
    property :approved_at,  transform_with: Transforms::Date
    property :processed_at, transform_with: Transforms::Date
    property :shipped_at,   transform_with: Transforms::Date
    property :completed_at, transform_with: Transforms::Date

    property :line_items, from: :lineitems
    coerce_key :line_items, Array[LineItem]

    property :shipments
    coerce_key :shipments, Array[Hashie::Mash]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
printfection-1.0.3 lib/printfection/manifest.rb
printfection-1.0.2 lib/printfection/manifest.rb
printfection-1.0.1 lib/printfection/manifest.rb
printfection-1.0.0 lib/printfection/manifest.rb