« Shipment/Purolator/WSDLV2/Types/PickupType.pm
↑ Summary
Shipment/Purolator/WSDLV2/Types/PrinterType.pm »
| 1 | package Shipment::Purolator::WSDLV2::Types::Piece; | ||
| 2 | $Shipment::Purolator::WSDLV2::Types::Piece::VERSION = '3.11'; | ||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | |||
| 7 | __PACKAGE__->_set_element_form_qualified(1); | ||
| 8 | |||
| 9 | sub get_xmlns {'http://purolator.com/pws/datatypes/v2'} | ||
| 10 | |||
| 11 | our $XML_ATTRIBUTE_CLASS; | ||
| 12 | undef $XML_ATTRIBUTE_CLASS; | ||
| 13 | |||
| 14 | sub __get_attr_class { | ||
| 15 | return $XML_ATTRIBUTE_CLASS; | ||
| 16 | } | ||
| 17 | |||
| 18 | use Class::Std::Fast::Storable constructor => 'none'; | ||
| 19 | use base qw(SOAP::WSDL::XSD::Typelib::ComplexType); | ||
| 20 | |||
| 21 | Class::Std::initialize(); | ||
| 22 | |||
| 23 | { # BLOCK to scope variables | ||
| 24 | |||
| 25 | my %Weight_of : ATTR(:get<Weight>); | ||
| 26 | my %Length_of : ATTR(:get<Length>); | ||
| 27 | my %Width_of : ATTR(:get<Width>); | ||
| 28 | my %Height_of : ATTR(:get<Height>); | ||
| 29 | my %Options_of : ATTR(:get<Options>); | ||
| 30 | |||
| 31 | __PACKAGE__->_factory( | ||
| 32 | [ qw( Weight | ||
| 33 | Length | ||
| 34 | Width | ||
| 35 | Height | ||
| 36 | Options | ||
| 37 | |||
| 38 | ) | ||
| 39 | ], | ||
| 40 | { 'Weight' => \%Weight_of, | ||
| 41 | 'Length' => \%Length_of, | ||
| 42 | 'Width' => \%Width_of, | ||
| 43 | 'Height' => \%Height_of, | ||
| 44 | 'Options' => \%Options_of, | ||
| 45 | }, | ||
| 46 | { 'Weight' => 'Shipment::Purolator::WSDLV2::Types::Weight', | ||
| 47 | 'Length' => 'Shipment::Purolator::WSDLV2::Types::Dimension', | ||
| 48 | 'Width' => 'Shipment::Purolator::WSDLV2::Types::Dimension', | ||
| 49 | 'Height' => 'Shipment::Purolator::WSDLV2::Types::Dimension', | ||
| 50 | 'Options' => | ||
| 51 | 'Shipment::Purolator::WSDLV2::Types::ArrayOfOptionIDValuePair', | ||
| 52 | }, | ||
| 53 | { | ||
| 54 | |||
| 55 | 'Weight' => 'Weight', | ||
| 56 | 'Length' => 'Length', | ||
| 57 | 'Width' => 'Width', | ||
| 58 | 'Height' => 'Height', | ||
| 59 | 'Options' => 'Options', | ||
| 60 | } | ||
| 61 | ); | ||
| 62 | |||
| 63 | } # end BLOCK | ||
| 64 | |||
| 65 | |||
| 66 | 1; | ||
| 67 | |||
| 68 | __END__ |