| lib/eBay/API/XML/Call/GeteBayDetails/GeteBayDetailsRequestType.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| statement | 7 | 9 | 77.7 | 
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 3 | 3 | 100.0 | 
| pod | n/a | ||
| total | 10 | 12 | 83.3 | 
| line | stmt | bran | cond | sub | pod | time | code | 
|---|---|---|---|---|---|---|---|
| 1 | #!/usr/bin/perl | ||||||
| 2 | |||||||
| 3 | package eBay::API::XML::Call::GeteBayDetails::GeteBayDetailsRequestType; | ||||||
| 4 | |||||||
| 5 | 1 | 1 | 1474 | use strict; | |||
| 1 | 2 | ||||||
| 1 | 26 | ||||||
| 6 | 1 | 1 | 4 | use warnings; | |||
| 1 | 2 | ||||||
| 1 | 28 | ||||||
| 7 | |||||||
| 8 | ########################################################################## | ||||||
| 9 | # | ||||||
| 10 | # Module: ............... | ||||||
| 11 | # File: ................. GeteBayDetailsRequestType.pm | ||||||
| 12 | # Generated by: ......... genEBayApiDataTypes.pl | ||||||
| 13 | # Last Generated: ....... 08/24/2008 16:44 | ||||||
| 14 | # API Release Number: ... 579 | ||||||
| 15 | # | ||||||
| 16 | ########################################################################## | ||||||
| 17 | |||||||
| 18 | =head1 NAME | ||||||
| 19 | |||||||
| 20 | eBay::API::XML::Call::GeteBayDetails::GeteBayDetailsRequestType | ||||||
| 21 | |||||||
| 22 | =head1 DESCRIPTION | ||||||
| 23 | |||||||
| 24 | Retrieves eBay IDs and codes (e.g., site IDs and shipping service | ||||||
| 25 | codes), enumerated data (e.g., payment methods), and other common eBay | ||||||
| 26 | meta-data. This call enables you to keep certain data up to date in your | ||||||
| 27 | applications without referring to the schema, the documentation, or the | ||||||
| 28 | eBay online help. Other data is returned for your reference, but you may | ||||||
| 29 | need to refer to the schema or the documentation for information about | ||||||
| 30 | valid values and usage. | ||||||
| 31 | In some cases, the data returned in the response | ||||||
| 32 | will vary according to the site that you use for the request. | ||||||
| 33 | If you use GeteBayDetails in preparation for | ||||||
| 34 | listing in the US Motors Parts and Accessories categories, | ||||||
| 35 | use site ID 0 (which is the site ID of the US site) when you call GeteBayDetails. | ||||||
| 36 | |||||||
| 37 | |||||||
| 38 | |||||||
| 39 | =head1 SYNOPSIS | ||||||
| 40 | |||||||
| 41 | =cut | ||||||
| 42 | |||||||
| 43 | |||||||
| 44 | =head1 INHERITANCE | ||||||
| 45 | |||||||
| 46 | eBay::API::XML::Call::GeteBayDetails::GeteBayDetailsRequestType inherits from the L | ||||||
| 47 | |||||||
| 48 | =cut | ||||||
| 49 | |||||||
| 50 | 1 | 1 | 34 | use eBay::API::XML::RequestDataType; | |||
| 0 | |||||||
| 0 | |||||||
| 51 | our @ISA = ("eBay::API::XML::RequestDataType"); | ||||||
| 52 | |||||||
| 53 | use eBay::API::XML::DataType::Enum::DetailNameCodeType; | ||||||
| 54 | |||||||
| 55 | |||||||
| 56 | my @gaProperties = ( [ 'DetailName', 'ns:DetailNameCodeType', '1' | ||||||
| 57 | ,'eBay::API::XML::DataType::Enum::DetailNameCodeType', '' ] | ||||||
| 58 | ); | ||||||
| 59 | push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()}; | ||||||
| 60 | |||||||
| 61 | my @gaAttributes = ( | ||||||
| 62 | ); | ||||||
| 63 | push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()}; | ||||||
| 64 | |||||||
| 65 | =head1 Subroutines: | ||||||
| 66 | |||||||
| 67 | =cut | ||||||
| 68 | |||||||
| 69 | sub new { | ||||||
| 70 | my $classname = shift; | ||||||
| 71 | my %args = @_; | ||||||
| 72 | my $self = $classname->SUPER::new(%args); | ||||||
| 73 | return $self; | ||||||
| 74 | } | ||||||
| 75 | |||||||
| 76 | sub isScalar { | ||||||
| 77 | return 0; | ||||||
| 78 | } | ||||||
| 79 | |||||||
| 80 | |||||||
| 81 | |||||||
| 82 | =head2 setDetailName() | ||||||
| 83 | |||||||
| 84 | A designation of what kind of information you wish returned | ||||||
| 85 | for the specified eBay site. If omitted, all details are | ||||||
| 86 | returned. | ||||||
| 87 | The possible values for input (the enumeration values of | ||||||
| 88 | DetailNameCodeType) are the same name as fields returned by | ||||||
| 89 | the response. See the documentation for the | ||||||
| 90 | GeteBayDetails response to better understand the DetailName | ||||||
| 91 | options. | ||||||
| 92 | |||||||
| 93 | RequiredInput: No | ||||||
| 94 | # Argument: reference to an array | ||||||
| 95 | of 'ns:DetailNameCodeType' | ||||||
| 96 | |||||||
| 97 | =cut | ||||||
| 98 | |||||||
| 99 | sub setDetailName { | ||||||
| 100 | my $self = shift; | ||||||
| 101 | $self->{'DetailName'} = | ||||||
| 102 | $self->convertArray_To_RefToArrayIfNeeded(@_); | ||||||
| 103 | } | ||||||
| 104 | |||||||
| 105 | =head2 getDetailName() | ||||||
| 106 | |||||||
| 107 | # Returns: reference to an array | ||||||
| 108 | of 'ns:DetailNameCodeType' | ||||||
| 109 | |||||||
| 110 | =cut | ||||||
| 111 | |||||||
| 112 | sub getDetailName { | ||||||
| 113 | my $self = shift; | ||||||
| 114 | return $self->_getDataTypeArray('DetailName'); | ||||||
| 115 | } | ||||||
| 116 | |||||||
| 117 | |||||||
| 118 | |||||||
| 119 | |||||||
| 120 | |||||||
| 121 | ## Attribute and Property lists | ||||||
| 122 | sub getPropertiesList { | ||||||
| 123 | my $self = shift; | ||||||
| 124 | return \@gaProperties; | ||||||
| 125 | } | ||||||
| 126 | |||||||
| 127 | sub getAttributesList { | ||||||
| 128 | my $self = shift; | ||||||
| 129 | return \@gaAttributes; | ||||||
| 130 | } | ||||||
| 131 | |||||||
| 132 | |||||||
| 133 | |||||||
| 134 | 1; |