| eBay-API documentation | Contained in the eBay-API distribution. |
eBay::API::XML::DataType::ApplicationDeliveryPreferencesType
Specifies preferences describing how notifications are delivered to an application. Note that notifications are subject to Anti-Spam rules. See Anti-Spam Rules in the eBay Web Services Guide for more information about these rules.
eBay::API::XML::DataType::ApplicationDeliveryPreferencesType inherits from the eBay::API::XML::BaseDataType class
The email address where eBay sends all application markup and markdown event notifications. When setting the email address, input must be in the format mailto://youremailaddress@yoursite.com (with the mailto:// prefix). The application has to subscribe to recieve these events using the AlertEnable field.
MaxLength: Length of valid email ids
Calls: SetNotificationPreferences RequiredInput: No
# Argument: 'xs:anyURI'
Calls: GetNotificationPreferences Returned: Conditionally
# Returns: 'xs:anyURI'
A token indicating whether markup and markdown alerts are enabled or disabled.
Calls: SetNotificationPreferences RequiredInput: No
# Argument: 'ns:EnableCodeType'
Calls: GetNotificationPreferences Returned: Conditionally
# Returns: 'ns:EnableCodeType'
Indicates whether notifications and alerts are enabled or disabled. If you disable notifications, the application does not receive them, but notification preferences are not erased.
Calls: SetNotificationPreferences RequiredInput: No
# Argument: 'ns:EnableCodeType'
Calls: GetNotificationPreferences Returned: Conditionally
# Returns: 'ns:EnableCodeType'
The URL where eBay delivers all notifications sent to the application. For delivery to a server, the URL begins with http:// or https:// and must be well formed. Use a URL that is functional at the time of the call. For delivery to an email address, the URL begins with mailto: and specifies a valid email address.
Calls: SetNotificationPreferences RequiredInput: No
# Argument: 'xs:anyURI'
Calls: GetNotificationPreferences Returned: Conditionally
# Returns: 'xs:anyURI'
Defines settings for a notification URL (including the URL name in DeliveryURLName). You define settings for a notification URL (including the URL name in DeliveryURLName) in the DeliveryURLDetails container. You associate a user token with a notification URL by using the token in a SetNotificationPreferences request that specifies the URL name in SetNotificationPreferencesRequest.DeliveryURLName. If you associate a single user token to multiple URL names, each URL name overwrites the previous name associated with the token. You can specify up to 10 notification URLs for an application. Note that Notifications will not be sent to any URL(s) if ApplicationDeliveryPreferencesType.ApplicationEnable is set to Disable.
Calls: SetNotificationPreferences RequiredInput: No
# Argument: reference to an array of 'ns:DeliveryURLDetailType'
Calls: GetNotificationPreferences Returned: Conditionally
# Returns: reference to an array of 'ns:DeliveryURLDetailType'
Do not test Client Alerts in production if you are currently using Platform Notifications. The means of receipt of notification. In most cases, it is Platform (typical API calls and web interaction), so this is the default, if not specified. For wireless applications, use SMS.
Calls: SetNotificationPreferences RequiredInput: No
# Argument: 'ns:DeviceTypeCodeType'
Calls: GetNotificationPreferences Returned: Conditionally
# Returns: 'ns:DeviceTypeCodeType'
If this field is specified, the value must be eBLSchemaSOAP.
Calls: SetNotificationPreferences RequiredInput: No
# Argument: 'ns:NotificationPayloadTypeCodeType'
Calls: GetNotificationPreferences Returned: Conditionally
# Returns: 'ns:NotificationPayloadTypeCodeType'
If you are using SetNotificationPreferences, you can use the PayloadVersion field to specify the API version for all notifications for the calling application. If you are using GetNotificationPreferences, this field contains the API version for all notifications for the calling application. If you do not specify PayloadVersion in SetNotificationPreferences, the behavior of notifications is the same as it was before the PayloadVersion field was added to the schema. Before the PayloadVersion field was added to the schema, the API version for notifications was based on the API version specified as part of your SetNotificationPreferences call. Now, you can use PayloadVersion to override the API version specified as part of your SetNotificationPreferences call.
Calls: SetNotificationPreferences RequiredInput: No
# Argument: 'xs:string'
Calls: GetNotificationPreferences Returned: Conditionally
# Returns: 'xs:string'
| eBay-API documentation | Contained in the eBay-API distribution. |
#!/usr/bin/perl package eBay::API::XML::DataType::ApplicationDeliveryPreferencesType; use strict; use warnings; ########################################################################## # # Module: ............... <user defined location>eBay/API/XML # File: ................. ApplicationDeliveryPreferencesType.pm # Generated by: ......... genEBayApiDataTypes.pl # Last Generated: ....... 08/24/2008 16:44 # API Release Number: ... 579 # ##########################################################################
use eBay::API::XML::BaseDataType; our @ISA = ("eBay::API::XML::BaseDataType"); use eBay::API::XML::DataType::DeliveryURLDetailType; use eBay::API::XML::DataType::Enum::DeviceTypeCodeType; use eBay::API::XML::DataType::Enum::EnableCodeType; use eBay::API::XML::DataType::Enum::NotificationPayloadTypeCodeType; my @gaProperties = ( [ 'AlertEmail', 'xs:anyURI', '', '', '' ] , [ 'AlertEnable', 'ns:EnableCodeType', '' ,'eBay::API::XML::DataType::Enum::EnableCodeType', '' ] , [ 'ApplicationEnable', 'ns:EnableCodeType', '' ,'eBay::API::XML::DataType::Enum::EnableCodeType', '' ] , [ 'ApplicationURL', 'xs:anyURI', '', '', '' ] , [ 'DeliveryURLDetails', 'ns:DeliveryURLDetailType', '1' ,'eBay::API::XML::DataType::DeliveryURLDetailType', '1' ] , [ 'DeviceType', 'ns:DeviceTypeCodeType', '' ,'eBay::API::XML::DataType::Enum::DeviceTypeCodeType', '' ] , [ 'NotificationPayloadType', 'ns:NotificationPayloadTypeCodeType', '' ,'eBay::API::XML::DataType::Enum::NotificationPayloadTypeCodeType', '' ] , [ 'PayloadVersion', 'xs:string', '', '', '' ] ); push @gaProperties, @{eBay::API::XML::BaseDataType::getPropertiesList()}; my @gaAttributes = ( ); push @gaAttributes, @{eBay::API::XML::BaseDataType::getAttributesList()};
sub new { my $classname = shift; my %args = @_; my $self = $classname->SUPER::new(%args); return $self; } sub isScalar { return 0; }
sub setAlertEmail { my $self = shift; $self->{'AlertEmail'} = shift }
sub getAlertEmail { my $self = shift; return $self->{'AlertEmail'}; }
sub setAlertEnable { my $self = shift; $self->{'AlertEnable'} = shift }
sub getAlertEnable { my $self = shift; return $self->{'AlertEnable'}; }
sub setApplicationEnable { my $self = shift; $self->{'ApplicationEnable'} = shift }
sub getApplicationEnable { my $self = shift; return $self->{'ApplicationEnable'}; }
sub setApplicationURL { my $self = shift; $self->{'ApplicationURL'} = shift }
sub getApplicationURL { my $self = shift; return $self->{'ApplicationURL'}; }
sub setDeliveryURLDetails { my $self = shift; $self->{'DeliveryURLDetails'} = $self->convertArray_To_RefToArrayIfNeeded(@_); }
sub getDeliveryURLDetails { my $self = shift; return $self->_getDataTypeArray('DeliveryURLDetails'); }
sub setDeviceType { my $self = shift; $self->{'DeviceType'} = shift }
sub getDeviceType { my $self = shift; return $self->{'DeviceType'}; }
sub setNotificationPayloadType { my $self = shift; $self->{'NotificationPayloadType'} = shift }
sub getNotificationPayloadType { my $self = shift; return $self->{'NotificationPayloadType'}; }
sub setPayloadVersion { my $self = shift; $self->{'PayloadVersion'} = shift }
sub getPayloadVersion { my $self = shift; return $self->{'PayloadVersion'}; } ## Attribute and Property lists sub getPropertiesList { my $self = shift; return \@gaProperties; } sub getAttributesList { my $self = shift; return \@gaAttributes; } 1;