| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | #!/usr/bin/perl | 
| 2 |  |  |  |  |  |  |  | 
| 3 |  |  |  |  |  |  | package eBay::API::XML::Call::GetMyMessages; | 
| 4 |  |  |  |  |  |  |  | 
| 5 | 1 |  |  | 1 |  | 2480 | use strict; | 
|  | 1 |  |  |  |  | 2 |  | 
|  | 1 |  |  |  |  | 30 |  | 
| 6 | 1 |  |  | 1 |  | 7 | use warnings; | 
|  | 1 |  |  |  |  | 1 |  | 
|  | 1 |  |  |  |  | 33 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | ########################################################################## | 
| 9 |  |  |  |  |  |  | # | 
| 10 |  |  |  |  |  |  | # Module: ............... eBay/API/XML | 
| 11 |  |  |  |  |  |  | # File: ................. GetMyMessages.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::GetMyMessages | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  |  | 
| 26 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | =cut | 
| 29 |  |  |  |  |  |  |  | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | =head1 INHERITANCE | 
| 32 |  |  |  |  |  |  |  | 
| 33 |  |  |  |  |  |  | eBay::API::XML::Call::GetMyMessages inherits from the L class | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | =cut | 
| 36 |  |  |  |  |  |  |  | 
| 37 | 1 |  |  | 1 |  | 44 | use eBay::API::XML::BaseCall; | 
|  | 0 |  |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | our @ISA = ("eBay::API::XML::BaseCall"); | 
| 39 |  |  |  |  |  |  |  | 
| 40 |  |  |  |  |  |  | use eBay::API::XML::Call::GetMyMessages::GetMyMessagesRequestType; | 
| 41 |  |  |  |  |  |  | use eBay::API::XML::Call::GetMyMessages::GetMyMessagesResponseType; | 
| 42 |  |  |  |  |  |  |  | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | =head1 Subroutines: | 
| 45 |  |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  | =cut | 
| 47 |  |  |  |  |  |  |  | 
| 48 |  |  |  |  |  |  | sub getApiCallName { | 
| 49 |  |  |  |  |  |  | return 'GetMyMessages'; | 
| 50 |  |  |  |  |  |  | } | 
| 51 |  |  |  |  |  |  | sub getRequestDataTypeFullPackage { | 
| 52 |  |  |  |  |  |  | return 'eBay::API::XML::Call::GetMyMessages::GetMyMessagesRequestType'; | 
| 53 |  |  |  |  |  |  | } | 
| 54 |  |  |  |  |  |  | sub getResponseDataTypeFullPackage { | 
| 55 |  |  |  |  |  |  | return 'eBay::API::XML::Call::GetMyMessages::GetMyMessagesResponseType'; | 
| 56 |  |  |  |  |  |  | } | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | # | 
| 59 |  |  |  |  |  |  | # input properties | 
| 60 |  |  |  |  |  |  | # | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | =head2 setAlertIDs() | 
| 63 |  |  |  |  |  |  |  | 
| 64 |  |  |  |  |  |  | Contains a list of up to 10 AlertID values. | 
| 65 |  |  |  |  |  |  | When AlertID values are used as input, you must | 
| 66 |  |  |  |  |  |  | generally specify either AlertID values, or | 
| 67 |  |  |  |  |  |  | MessageID values, or both. | 
| 68 |  |  |  |  |  |  |  | 
| 69 |  |  |  |  |  |  | RequiredInput: Conditionally | 
| 70 |  |  |  |  |  |  | #    Argument: 'ns:MyMessagesAlertIDArrayType' | 
| 71 |  |  |  |  |  |  |  | 
| 72 |  |  |  |  |  |  | =cut | 
| 73 |  |  |  |  |  |  |  | 
| 74 |  |  |  |  |  |  | sub setAlertIDs { | 
| 75 |  |  |  |  |  |  | my $self   = shift; | 
| 76 |  |  |  |  |  |  | my $pAlertIDs = shift; | 
| 77 |  |  |  |  |  |  | $self->getRequestDataType()->setAlertIDs($pAlertIDs); | 
| 78 |  |  |  |  |  |  | } | 
| 79 |  |  |  |  |  |  |  | 
| 80 |  |  |  |  |  |  | =head2 setEndTime() | 
| 81 |  |  |  |  |  |  |  | 
| 82 |  |  |  |  |  |  | Used as end of date range filter. | 
| 83 |  |  |  |  |  |  |  | 
| 84 |  |  |  |  |  |  | RequiredInput: Conditionally | 
| 85 |  |  |  |  |  |  | #    Argument: 'xs:dateTime' | 
| 86 |  |  |  |  |  |  |  | 
| 87 |  |  |  |  |  |  | =cut | 
| 88 |  |  |  |  |  |  |  | 
| 89 |  |  |  |  |  |  | sub setEndTime { | 
| 90 |  |  |  |  |  |  | my $self   = shift; | 
| 91 |  |  |  |  |  |  | my $sEndTime = shift; | 
| 92 |  |  |  |  |  |  | $self->getRequestDataType()->setEndTime($sEndTime); | 
| 93 |  |  |  |  |  |  | } | 
| 94 |  |  |  |  |  |  |  | 
| 95 |  |  |  |  |  |  | =head2 setExternalMessageIDs() | 
| 96 |  |  |  |  |  |  |  | 
| 97 |  |  |  |  |  |  | An ID that Uniquely identifies a message for a given user.If provided at the | 
| 98 |  |  |  |  |  |  | time of message creation this ID will be used to retrieve messages and will | 
| 99 |  |  |  |  |  |  | take precedence over message ID. | 
| 100 |  |  |  |  |  |  |  | 
| 101 |  |  |  |  |  |  | RequiredInput: Conditionally | 
| 102 |  |  |  |  |  |  | #    Argument: 'ns:MyMessagesExternalMessageIDArrayType' | 
| 103 |  |  |  |  |  |  |  | 
| 104 |  |  |  |  |  |  | =cut | 
| 105 |  |  |  |  |  |  |  | 
| 106 |  |  |  |  |  |  | sub setExternalMessageIDs { | 
| 107 |  |  |  |  |  |  | my $self   = shift; | 
| 108 |  |  |  |  |  |  | my $pExternalMessageIDs = shift; | 
| 109 |  |  |  |  |  |  | $self->getRequestDataType()->setExternalMessageIDs($pExternalMessageIDs); | 
| 110 |  |  |  |  |  |  | } | 
| 111 |  |  |  |  |  |  |  | 
| 112 |  |  |  |  |  |  | =head2 setFolderID() | 
| 113 |  |  |  |  |  |  |  | 
| 114 |  |  |  |  |  |  | An ID that uniquely identifies the My Messages folder from which to retrieve alerts or messages. | 
| 115 |  |  |  |  |  |  |  | 
| 116 |  |  |  |  |  |  | RequiredInput: No | 
| 117 |  |  |  |  |  |  | #    Argument: 'xs:long' | 
| 118 |  |  |  |  |  |  |  | 
| 119 |  |  |  |  |  |  | =cut | 
| 120 |  |  |  |  |  |  |  | 
| 121 |  |  |  |  |  |  | sub setFolderID { | 
| 122 |  |  |  |  |  |  | my $self   = shift; | 
| 123 |  |  |  |  |  |  | my $sFolderID = shift; | 
| 124 |  |  |  |  |  |  | $self->getRequestDataType()->setFolderID($sFolderID); | 
| 125 |  |  |  |  |  |  | } | 
| 126 |  |  |  |  |  |  |  | 
| 127 |  |  |  |  |  |  | =head2 setMessageIDs() | 
| 128 |  |  |  |  |  |  |  | 
| 129 |  |  |  |  |  |  | Contains a list of up to 10 MessageID values. | 
| 130 |  |  |  |  |  |  | When MessageID values are used as input, you must | 
| 131 |  |  |  |  |  |  | generally specify either AlertID values, or | 
| 132 |  |  |  |  |  |  | MessageID values, or both. | 
| 133 |  |  |  |  |  |  |  | 
| 134 |  |  |  |  |  |  | RequiredInput: Conditionally | 
| 135 |  |  |  |  |  |  | #    Argument: 'ns:MyMessagesMessageIDArrayType' | 
| 136 |  |  |  |  |  |  |  | 
| 137 |  |  |  |  |  |  | =cut | 
| 138 |  |  |  |  |  |  |  | 
| 139 |  |  |  |  |  |  | sub setMessageIDs { | 
| 140 |  |  |  |  |  |  | my $self   = shift; | 
| 141 |  |  |  |  |  |  | my $pMessageIDs = shift; | 
| 142 |  |  |  |  |  |  | $self->getRequestDataType()->setMessageIDs($pMessageIDs); | 
| 143 |  |  |  |  |  |  | } | 
| 144 |  |  |  |  |  |  |  | 
| 145 |  |  |  |  |  |  | =head2 setStartTime() | 
| 146 |  |  |  |  |  |  |  | 
| 147 |  |  |  |  |  |  | Used as beginning of date range filter. | 
| 148 |  |  |  |  |  |  |  | 
| 149 |  |  |  |  |  |  | RequiredInput: No | 
| 150 |  |  |  |  |  |  | #    Argument: 'xs:dateTime' | 
| 151 |  |  |  |  |  |  |  | 
| 152 |  |  |  |  |  |  | =cut | 
| 153 |  |  |  |  |  |  |  | 
| 154 |  |  |  |  |  |  | sub setStartTime { | 
| 155 |  |  |  |  |  |  | my $self   = shift; | 
| 156 |  |  |  |  |  |  | my $sStartTime = shift; | 
| 157 |  |  |  |  |  |  | $self->getRequestDataType()->setStartTime($sStartTime); | 
| 158 |  |  |  |  |  |  | } | 
| 159 |  |  |  |  |  |  |  | 
| 160 |  |  |  |  |  |  |  | 
| 161 |  |  |  |  |  |  |  | 
| 162 |  |  |  |  |  |  | # | 
| 163 |  |  |  |  |  |  | # output properties | 
| 164 |  |  |  |  |  |  | # | 
| 165 |  |  |  |  |  |  |  | 
| 166 |  |  |  |  |  |  | =head2 getAlerts() | 
| 167 |  |  |  |  |  |  |  | 
| 168 |  |  |  |  |  |  | Contains the alert information for each alert | 
| 169 |  |  |  |  |  |  | specified in AlertIDs. The amount and type of | 
| 170 |  |  |  |  |  |  | information returned varies based on the | 
| 171 |  |  |  |  |  |  | requested detail level. Contains one | 
| 172 |  |  |  |  |  |  | MyMessagesAlertType object per alert. Returned | 
| 173 |  |  |  |  |  |  | as an empty node if user has no alerts. | 
| 174 |  |  |  |  |  |  |  | 
| 175 |  |  |  |  |  |  | Returned: Conditionally | 
| 176 |  |  |  |  |  |  | Details: DetailLevel: ReturnHeaders, ReturnMessages | 
| 177 |  |  |  |  |  |  | #    Returns: 'ns:MyMessagesAlertArrayType' | 
| 178 |  |  |  |  |  |  |  | 
| 179 |  |  |  |  |  |  | =cut | 
| 180 |  |  |  |  |  |  |  | 
| 181 |  |  |  |  |  |  | sub getAlerts { | 
| 182 |  |  |  |  |  |  | my $self = shift; | 
| 183 |  |  |  |  |  |  | return $self->getResponseDataType()->getAlerts(); | 
| 184 |  |  |  |  |  |  | } | 
| 185 |  |  |  |  |  |  |  | 
| 186 |  |  |  |  |  |  | =head2 getMessages() | 
| 187 |  |  |  |  |  |  |  | 
| 188 |  |  |  |  |  |  | Contains the message information for each | 
| 189 |  |  |  |  |  |  | message specified in MessageIDs. The amount and | 
| 190 |  |  |  |  |  |  | type of information returned varies based on the | 
| 191 |  |  |  |  |  |  | requested detail level. Contains one | 
| 192 |  |  |  |  |  |  | MyMessagesMessageType object per message. | 
| 193 |  |  |  |  |  |  | Returned as an empty node if user has no | 
| 194 |  |  |  |  |  |  | messages. | 
| 195 |  |  |  |  |  |  |  | 
| 196 |  |  |  |  |  |  | Returned: Conditionally | 
| 197 |  |  |  |  |  |  | Details: DetailLevel: ReturnHeaders, ReturnMessages | 
| 198 |  |  |  |  |  |  | #    Returns: 'ns:MyMessagesMessageArrayType' | 
| 199 |  |  |  |  |  |  |  | 
| 200 |  |  |  |  |  |  | =cut | 
| 201 |  |  |  |  |  |  |  | 
| 202 |  |  |  |  |  |  | sub getMessages { | 
| 203 |  |  |  |  |  |  | my $self = shift; | 
| 204 |  |  |  |  |  |  | return $self->getResponseDataType()->getMessages(); | 
| 205 |  |  |  |  |  |  | } | 
| 206 |  |  |  |  |  |  |  | 
| 207 |  |  |  |  |  |  | =head2 getSummary() | 
| 208 |  |  |  |  |  |  |  | 
| 209 |  |  |  |  |  |  | Summary data for a given user's alerts and | 
| 210 |  |  |  |  |  |  | messages. This includes the numbers of | 
| 211 |  |  |  |  |  |  | new alerts and messages, unresolved alerts, | 
| 212 |  |  |  |  |  |  | flagged messages, and total alerts and messages. | 
| 213 |  |  |  |  |  |  | The amount and type of data returned is the same | 
| 214 |  |  |  |  |  |  | whether or not the request included specific | 
| 215 |  |  |  |  |  |  | AlertID or MessageID values. | 
| 216 |  |  |  |  |  |  | Always/Conditionally returned logic assumes a | 
| 217 |  |  |  |  |  |  | detail level of ReturnMessages. | 
| 218 |  |  |  |  |  |  |  | 
| 219 |  |  |  |  |  |  | Returned: Conditionally | 
| 220 |  |  |  |  |  |  | Details: DetailLevel: ReturnSummary | 
| 221 |  |  |  |  |  |  | #    Returns: 'ns:MyMessagesSummaryType' | 
| 222 |  |  |  |  |  |  |  | 
| 223 |  |  |  |  |  |  | =cut | 
| 224 |  |  |  |  |  |  |  | 
| 225 |  |  |  |  |  |  | sub getSummary { | 
| 226 |  |  |  |  |  |  | my $self = shift; | 
| 227 |  |  |  |  |  |  | return $self->getResponseDataType()->getSummary(); | 
| 228 |  |  |  |  |  |  | } | 
| 229 |  |  |  |  |  |  |  | 
| 230 |  |  |  |  |  |  |  | 
| 231 |  |  |  |  |  |  |  | 
| 232 |  |  |  |  |  |  |  | 
| 233 |  |  |  |  |  |  |  | 
| 234 |  |  |  |  |  |  | 1; |