« Shipment/Purolator/WSDLV2/Types/ServiceOptionRules.pm
↑ Summary
Shipment/Purolator/WSDLV2/Types/Shipment.pm »
| 1 | package Shipment::Purolator::WSDLV2::Types::ServiceRule; | ||
| 2 | $Shipment::Purolator::WSDLV2::Types::ServiceRule::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 %ServiceID_of : ATTR(:get<ServiceID>); | ||
| 26 | my %MinimumTotalPieces_of : ATTR(:get<MinimumTotalPieces>); | ||
| 27 | my %MaximumTotalPieces_of : ATTR(:get<MaximumTotalPieces>); | ||
| 28 | my %MinimumTotalWeight_of : ATTR(:get<MinimumTotalWeight>); | ||
| 29 | my %MaximumTotalWeight_of : ATTR(:get<MaximumTotalWeight>); | ||
| 30 | my %MinimumPieceWeight_of : ATTR(:get<MinimumPieceWeight>); | ||
| 31 | my %MaximumPieceWeight_of : ATTR(:get<MaximumPieceWeight>); | ||
| 32 | my %MinimumPieceLength_of : ATTR(:get<MinimumPieceLength>); | ||
| 33 | my %MaximumPieceLength_of : ATTR(:get<MaximumPieceLength>); | ||
| 34 | my %MinimumPieceWidth_of : ATTR(:get<MinimumPieceWidth>); | ||
| 35 | my %MaximumPieceWidth_of : ATTR(:get<MaximumPieceWidth>); | ||
| 36 | my %MinimumPieceHeight_of : ATTR(:get<MinimumPieceHeight>); | ||
| 37 | my %MaximumPieceHeight_of : ATTR(:get<MaximumPieceHeight>); | ||
| 38 | my %MaximumSize_of : ATTR(:get<MaximumSize>); | ||
| 39 | my %MaximumDeclaredValue_of : ATTR(:get<MaximumDeclaredValue>); | ||
| 40 | |||
| 41 | __PACKAGE__->_factory( | ||
| 42 | [ qw( ServiceID | ||
| 43 | MinimumTotalPieces | ||
| 44 | MaximumTotalPieces | ||
| 45 | MinimumTotalWeight | ||
| 46 | MaximumTotalWeight | ||
| 47 | MinimumPieceWeight | ||
| 48 | MaximumPieceWeight | ||
| 49 | MinimumPieceLength | ||
| 50 | MaximumPieceLength | ||
| 51 | MinimumPieceWidth | ||
| 52 | MaximumPieceWidth | ||
| 53 | MinimumPieceHeight | ||
| 54 | MaximumPieceHeight | ||
| 55 | MaximumSize | ||
| 56 | MaximumDeclaredValue | ||
| 57 | |||
| 58 | ) | ||
| 59 | ], | ||
| 60 | { 'ServiceID' => \%ServiceID_of, | ||
| 61 | 'MinimumTotalPieces' => \%MinimumTotalPieces_of, | ||
| 62 | 'MaximumTotalPieces' => \%MaximumTotalPieces_of, | ||
| 63 | 'MinimumTotalWeight' => \%MinimumTotalWeight_of, | ||
| 64 | 'MaximumTotalWeight' => \%MaximumTotalWeight_of, | ||
| 65 | 'MinimumPieceWeight' => \%MinimumPieceWeight_of, | ||
| 66 | 'MaximumPieceWeight' => \%MaximumPieceWeight_of, | ||
| 67 | 'MinimumPieceLength' => \%MinimumPieceLength_of, | ||
| 68 | 'MaximumPieceLength' => \%MaximumPieceLength_of, | ||
| 69 | 'MinimumPieceWidth' => \%MinimumPieceWidth_of, | ||
| 70 | 'MaximumPieceWidth' => \%MaximumPieceWidth_of, | ||
| 71 | 'MinimumPieceHeight' => \%MinimumPieceHeight_of, | ||
| 72 | 'MaximumPieceHeight' => \%MaximumPieceHeight_of, | ||
| 73 | 'MaximumSize' => \%MaximumSize_of, | ||
| 74 | 'MaximumDeclaredValue' => \%MaximumDeclaredValue_of, | ||
| 75 | }, | ||
| 76 | { 'ServiceID' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', | ||
| 77 | 'MinimumTotalPieces' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', | ||
| 78 | 'MaximumTotalPieces' => 'SOAP::WSDL::XSD::Typelib::Builtin::int', | ||
| 79 | 'MinimumTotalWeight' => | ||
| 80 | 'Shipment::Purolator::WSDLV2::Types::Weight', | ||
| 81 | 'MaximumTotalWeight' => | ||
| 82 | 'Shipment::Purolator::WSDLV2::Types::Weight', | ||
| 83 | 'MinimumPieceWeight' => | ||
| 84 | 'Shipment::Purolator::WSDLV2::Types::Weight', | ||
| 85 | 'MaximumPieceWeight' => | ||
| 86 | 'Shipment::Purolator::WSDLV2::Types::Weight', | ||
| 87 | 'MinimumPieceLength' => | ||
| 88 | 'Shipment::Purolator::WSDLV2::Types::Dimension', | ||
| 89 | 'MaximumPieceLength' => | ||
| 90 | 'Shipment::Purolator::WSDLV2::Types::Dimension', | ||
| 91 | 'MinimumPieceWidth' => | ||
| 92 | 'Shipment::Purolator::WSDLV2::Types::Dimension', | ||
| 93 | 'MaximumPieceWidth' => | ||
| 94 | 'Shipment::Purolator::WSDLV2::Types::Dimension', | ||
| 95 | 'MinimumPieceHeight' => | ||
| 96 | 'Shipment::Purolator::WSDLV2::Types::Dimension', | ||
| 97 | 'MaximumPieceHeight' => | ||
| 98 | 'Shipment::Purolator::WSDLV2::Types::Dimension', | ||
| 99 | 'MaximumSize' => 'Shipment::Purolator::WSDLV2::Types::Dimension', | ||
| 100 | 'MaximumDeclaredValue' => | ||
| 101 | 'SOAP::WSDL::XSD::Typelib::Builtin::decimal', | ||
| 102 | }, | ||
| 103 | { | ||
| 104 | |||
| 105 | 'ServiceID' => 'ServiceID', | ||
| 106 | 'MinimumTotalPieces' => 'MinimumTotalPieces', | ||
| 107 | 'MaximumTotalPieces' => 'MaximumTotalPieces', | ||
| 108 | 'MinimumTotalWeight' => 'MinimumTotalWeight', | ||
| 109 | 'MaximumTotalWeight' => 'MaximumTotalWeight', | ||
| 110 | 'MinimumPieceWeight' => 'MinimumPieceWeight', | ||
| 111 | 'MaximumPieceWeight' => 'MaximumPieceWeight', | ||
| 112 | 'MinimumPieceLength' => 'MinimumPieceLength', | ||
| 113 | 'MaximumPieceLength' => 'MaximumPieceLength', | ||
| 114 | 'MinimumPieceWidth' => 'MinimumPieceWidth', | ||
| 115 | 'MaximumPieceWidth' => 'MaximumPieceWidth', | ||
| 116 | 'MinimumPieceHeight' => 'MinimumPieceHeight', | ||
| 117 | 'MaximumPieceHeight' => 'MaximumPieceHeight', | ||
| 118 | 'MaximumSize' => 'MaximumSize', | ||
| 119 | 'MaximumDeclaredValue' => 'MaximumDeclaredValue', | ||
| 120 | } | ||
| 121 | ); | ||
| 122 | |||
| 123 | } # end BLOCK | ||
| 124 | |||
| 125 | |||
| 126 | 1; | ||
| 127 | |||
| 128 | __END__ |