« Shipment/Purolator/WSDLV2/Types/PaymentType.pm
↑ Summary
Shipment/Purolator/WSDLV2/Types/PickupInformation.pm »
| 1 | package Shipment::Purolator::WSDLV2::Types::PhoneNumber; | ||
| 2 | $Shipment::Purolator::WSDLV2::Types::PhoneNumber::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 %CountryCode_of : ATTR(:get<CountryCode>); | ||
| 26 | my %AreaCode_of : ATTR(:get<AreaCode>); | ||
| 27 | my %Phone_of : ATTR(:get<Phone>); | ||
| 28 | my %Extension_of : ATTR(:get<Extension>); | ||
| 29 | |||
| 30 | __PACKAGE__->_factory( | ||
| 31 | [ qw( CountryCode | ||
| 32 | AreaCode | ||
| 33 | Phone | ||
| 34 | Extension | ||
| 35 | |||
| 36 | ) | ||
| 37 | ], | ||
| 38 | { 'CountryCode' => \%CountryCode_of, | ||
| 39 | 'AreaCode' => \%AreaCode_of, | ||
| 40 | 'Phone' => \%Phone_of, | ||
| 41 | 'Extension' => \%Extension_of, | ||
| 42 | }, | ||
| 43 | { 'CountryCode' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', | ||
| 44 | 'AreaCode' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', | ||
| 45 | 'Phone' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', | ||
| 46 | 'Extension' => 'SOAP::WSDL::XSD::Typelib::Builtin::string', | ||
| 47 | }, | ||
| 48 | { | ||
| 49 | |||
| 50 | 'CountryCode' => 'CountryCode', | ||
| 51 | 'AreaCode' => 'AreaCode', | ||
| 52 | 'Phone' => 'Phone', | ||
| 53 | 'Extension' => 'Extension', | ||
| 54 | } | ||
| 55 | ); | ||
| 56 | |||
| 57 | } # end BLOCK | ||
| 58 | |||
| 59 | |||
| 60 | 1; | ||
| 61 | |||
| 62 | __END__ |