Sha256: bae979d6478b6161a0a1bcfc4c7675852b272d28ac5a38b493b75da3f1cb8887
Contents?: true
Size: 686 Bytes
Versions: 2
Compression:
Stored size: 686 Bytes
Contents
module SimpleShipping::Ups # Shipment request model. class ShipmentRequest < Request def initialize(credentials, shipment, options = {}) @credentials = credentials @shipment = shipment @options = options @type = :process_shipment end # Builds a request from {Shipment shipment} object. def body { 'common:Request' => { 'common:RequestOption' => REQUEST_OPTION }, 'Shipment' => ShipmentBuilder.build(@shipment, @options), 'LabelSpecification' => label_specification, :order! => ['common:Request', 'Shipment', 'LabelSpecification'] } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
simple_shipping-0.4.7 | lib/simple_shipping/ups/shipment_request.rb |
simple_shipping-0.4.6 | lib/simple_shipping/ups/shipment_request.rb |