File Coverage

lib/eBay/API/XML/Call/SetNotificationPreferences.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::SetNotificationPreferences;
4              
5 1     1   2623 use strict;
  1         2  
  1         30  
6 1     1   4 use warnings;
  1         2  
  1         27  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SetNotificationPreferences.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::SetNotificationPreferences
21              
22             =head1 DESCRIPTION
23              
24              
25              
26             =head1 SYNOPSIS
27              
28             =cut
29              
30              
31             =head1 INHERITANCE
32              
33             eBay::API::XML::Call::SetNotificationPreferences inherits from the L class
34              
35             =cut
36              
37 1     1   35 use eBay::API::XML::BaseCall;
  0            
  0            
38             our @ISA = ("eBay::API::XML::BaseCall");
39              
40             use eBay::API::XML::Call::SetNotificationPreferences::SetNotificationPreferencesRequestType;
41             use eBay::API::XML::Call::SetNotificationPreferences::SetNotificationPreferencesResponseType;
42              
43              
44             =head1 Subroutines:
45              
46             =cut
47              
48             sub getApiCallName {
49             return 'SetNotificationPreferences';
50             }
51             sub getRequestDataTypeFullPackage {
52             return 'eBay::API::XML::Call::SetNotificationPreferences::SetNotificationPreferencesRequestType';
53             }
54             sub getResponseDataTypeFullPackage {
55             return 'eBay::API::XML::Call::SetNotificationPreferences::SetNotificationPreferencesResponseType';
56             }
57              
58             #
59             # input properties
60             #
61              
62             =head2 setApplicationDeliveryPreferences()
63              
64             Specifies application-based event preferences that have been enabled,
65             including the URL to which notifications should be delivered and whether
66             notifications should be enabled or disabled (although the
67             UserDeliveryPreferenceArray input property specifies specific
68             notification subscriptions).
69              
70             RequiredInput: No
71             # Argument: 'ns:ApplicationDeliveryPreferencesType'
72              
73             =cut
74            
75             sub setApplicationDeliveryPreferences {
76             my $self = shift;
77             my $pApplicationDeliveryPreferences = shift;
78             $self->getRequestDataType()->setApplicationDeliveryPreferences($pApplicationDeliveryPreferences);
79             }
80              
81             =head2 setDeliveryURLName()
82              
83             For Platform Notifications, specify the name of the delivery notification URL
84             that you want to associate with the user token specified for
85             the SetNotificationPreferences call.
86             If, with different SetNotificationPreferences calls, you
87             associate multiple URL names with a single user
88             token, each subsequent URL name overwrites
89             the previous name associated with the user token.
90              
91             RequiredInput: No
92             # Argument: 'xs:string'
93              
94             =cut
95            
96             sub setDeliveryURLName {
97             my $self = shift;
98             my $sDeliveryURLName = shift;
99             $self->getRequestDataType()->setDeliveryURLName($sDeliveryURLName);
100             }
101              
102             =head2 setEventProperty()
103              
104             Characteristics or details of an event such as type, name and value.
105             Currently can only be set for wireless applications.
106              
107             RequiredInput: No
108             # Argument: reference to an array
109             of 'ns:NotificationEventPropertyType'
110              
111             =cut
112            
113             sub setEventProperty {
114             my $self = shift;
115             my $pEventProperty = shift;
116             $self->getRequestDataType()->setEventProperty($pEventProperty);
117             }
118              
119             =head2 setUserData()
120              
121             Specifies user data for notification settings such as mobile phone number.
122              
123             RequiredInput: No
124             # Argument: 'ns:NotificationUserDataType'
125              
126             =cut
127            
128             sub setUserData {
129             my $self = shift;
130             my $pUserData = shift;
131             $self->getRequestDataType()->setUserData($pUserData);
132             }
133              
134             =head2 setUserDeliveryPreferenceArray()
135              
136             Array of NotificationEventEnableTypes. Each NotificationEventEnableType
137             contains an EventSetting and an EventType.
138              
139             RequiredInput: No
140             # Argument: 'ns:NotificationEnableArrayType'
141              
142             =cut
143            
144             sub setUserDeliveryPreferenceArray {
145             my $self = shift;
146             my $pUserDeliveryPreferenceArray = shift;
147             $self->getRequestDataType()->setUserDeliveryPreferenceArray($pUserDeliveryPreferenceArray);
148             }
149              
150              
151              
152             #
153             # output properties
154             #
155              
156              
157              
158              
159              
160             1;