File Coverage

lib/eBay/API/XML/Call/SellerReverseDispute/SellerReverseDisputeRequestType.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::SellerReverseDispute::SellerReverseDisputeRequestType;
4              
5 1     1   1561 use strict;
  1         1  
  1         31  
6 1     1   5 use warnings;
  1         2  
  1         32  
7              
8             ##########################################################################
9             #
10             # Module: ............... eBay/API/XML
11             # File: ................. SellerReverseDisputeRequestType.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::SellerReverseDispute::SellerReverseDisputeRequestType
21              
22             =head1 DESCRIPTION
23              
24             Enables a seller to "reverse" an Unpaid Item dispute that has been closed, for
25             example, if buyer and seller reach an agreement. The seller's Final Value Fee
26             credit and the buyer's strike are both reversed, if applicable.
27             The dispute might have resulted
28             in a strike to the buyer and a Final Value Fee credit to the seller. A buyer and
29             seller sometimes come to agreement after a dispute has been closed. In particular,
30             the seller might discover that the buyer actually paid, or the buyer might agree
31             to pay the seller's fees in exchange for having the strike removed.
32            

33             A dispute can only be reversed if it was closed with DisputeActivity set to
34             SellerEndCommunication, CameToAgreementNeedFVFCredit, or
35             MutualAgreementOrNoBuyerResponse.
36              
37              
38              
39             =head1 SYNOPSIS
40              
41             =cut
42              
43              
44             =head1 INHERITANCE
45              
46             eBay::API::XML::Call::SellerReverseDispute::SellerReverseDisputeRequestType inherits from the L class
47              
48             =cut
49              
50 1     1   38 use eBay::API::XML::RequestDataType;
  0            
  0            
51             our @ISA = ("eBay::API::XML::RequestDataType");
52              
53             use eBay::API::XML::DataType::DisputeIDType;
54             use eBay::API::XML::DataType::Enum::DisputeResolutionReasonCodeType;
55              
56              
57             my @gaProperties = ( [ 'DisputeID', 'ns:DisputeIDType', ''
58             ,'eBay::API::XML::DataType::DisputeIDType', '1' ]
59             , [ 'DisputeResolutionReason', 'ns:DisputeResolutionReasonCodeType', ''
60             ,'eBay::API::XML::DataType::Enum::DisputeResolutionReasonCodeType', '' ]
61             );
62             push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()};
63              
64             my @gaAttributes = (
65             );
66             push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()};
67              
68             =head1 Subroutines:
69              
70             =cut
71              
72             sub new {
73             my $classname = shift;
74             my %args = @_;
75             my $self = $classname->SUPER::new(%args);
76             return $self;
77             }
78              
79             sub isScalar {
80             return 0;
81             }
82              
83              
84              
85             =head2 setDisputeID()
86              
87             The unique identifier of the dispute that was returned when the dispute was created.
88             The dispute must be an Unpaid Item dispute that the seller opened.
89              
90             RequiredInput: Yes
91             # Argument: 'ns:DisputeIDType'
92              
93             =cut
94              
95             sub setDisputeID {
96             my $self = shift;
97             $self->{'DisputeID'} = shift
98             }
99              
100             =head2 getDisputeID()
101              
102             # Returns: 'ns:DisputeIDType'
103              
104             =cut
105              
106             sub getDisputeID {
107             my $self = shift;
108             return $self->_getDataTypeInstance( 'DisputeID'
109             ,'eBay::API::XML::DataType::DisputeIDType');
110             }
111              
112              
113             =head2 setDisputeResolutionReason()
114              
115             The reason the dispute is being reversed.
116              
117             RequiredInput: Yes
118             # Argument: 'ns:DisputeResolutionReasonCodeType'
119              
120             =cut
121              
122             sub setDisputeResolutionReason {
123             my $self = shift;
124             $self->{'DisputeResolutionReason'} = shift
125             }
126              
127             =head2 getDisputeResolutionReason()
128              
129             # Returns: 'ns:DisputeResolutionReasonCodeType'
130              
131             =cut
132              
133             sub getDisputeResolutionReason {
134             my $self = shift;
135             return $self->{'DisputeResolutionReason'};
136             }
137              
138              
139              
140              
141              
142             ## Attribute and Property lists
143             sub getPropertiesList {
144             my $self = shift;
145             return \@gaProperties;
146             }
147              
148             sub getAttributesList {
149             my $self = shift;
150             return \@gaAttributes;
151             }
152              
153              
154              
155             1;