Completed
Push — master ( 80d841...fb8f6f )
by Joachim
01:55
created

Payment::setCapturedAmount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace Loevgaard\DandomainAltapayBundle\Entity;
4
5
use Doctrine\Common\Collections\ArrayCollection;
6
use Doctrine\ORM\Mapping as ORM;
7
use Loevgaard\Dandomain\Pay\PaymentRequest;
8
9
/**
10
 * The Payment entity is a special entity since it maps a payment from the Dandomain Payment API
11
 * This is also the reason why it doesn't implement an interface but extends the PaymentRequest
12
 * from the Dandomain Pay PHP SDK.
13
 *
14
 * Also it doesn't relate to any other entities other than PaymentLine since the Dandomain Payment API
15
 * POST request is not complete with all information needed to populate all the related entities, i.e. customers,
16
 * deliveries etc.
17
 *
18
 * @ORM\MappedSuperclass
19
 */
20
abstract class Payment extends PaymentRequest
21
{
22
    /**
23
     * @var int
24
     *
25
     * @ORM\Column(type="integer")
26
     */
27
    protected $id;
28
29
    /**
30
     * @ORM\Column(type="string")
31
     */
32
    protected $apiKey;
33
34
    /**
35
     * @ORM\Column(type="string")
36
     */
37
    protected $merchant;
38
39
    /**
40
     * @ORM\Column(type="integer")
41
     */
42
    protected $orderId;
43
44
    /**
45
     * @ORM\Column(type="text")
46
     */
47
    protected $sessionId;
48
49
    /**
50
     * @ORM\Column(type="string")
51
     */
52
    protected $currencySymbol;
53
54
    /**
55
     * @ORM\Column(type="decimal", precision=12, scale=2)
56
     */
57
    protected $totalAmount;
58
59
    /**
60
     * @ORM\Column(type="string")
61
     */
62
    protected $callBackUrl;
63
64
    /**
65
     * @ORM\Column(type="string")
66
     */
67
    protected $fullCallBackOkUrl;
68
69
    /**
70
     * @ORM\Column(type="string")
71
     */
72
    protected $callBackOkUrl;
73
74
    /**
75
     * @ORM\Column(type="string")
76
     */
77
    protected $callBackServerUrl;
78
79
    /**
80
     * @ORM\Column(type="integer")
81
     */
82
    protected $languageId;
83
84
    /**
85
     * @ORM\Column(type="string")
86
     */
87
    protected $testMode;
88
89
    /**
90
     * @ORM\Column(type="integer")
91
     */
92
    protected $paymentGatewayCurrencyCode;
93
94
    /**
95
     * @ORM\Column(type="integer")
96
     */
97
    protected $cardTypeId;
98
99
    /**
100
     * @ORM\Column(type="string")
101
     */
102
    protected $customerRekvNr;
103
104
    /**
105
     * @ORM\Column(type="string")
106
     */
107
    protected $customerName;
108
109
    /**
110
     * @ORM\Column(type="string")
111
     */
112
    protected $customerCompany;
113
114
    /**
115
     * @ORM\Column(type="string")
116
     */
117
    protected $customerAddress;
118
119
    /**
120
     * @ORM\Column(type="string")
121
     */
122
    protected $customerAddress2;
123
124
    /**
125
     * @ORM\Column(type="string")
126
     */
127
    protected $customerZipCode;
128
129
    /**
130
     * @ORM\Column(type="string")
131
     */
132
    protected $customerCity;
133
134
    /**
135
     * @ORM\Column(type="integer")
136
     */
137
    protected $customerCountryId;
138
139
    /**
140
     * @ORM\Column(type="string")
141
     */
142
    protected $customerCountry;
143
144
    /**
145
     * @ORM\Column(type="string")
146
     */
147
    protected $customerPhone;
148
149
    /**
150
     * @ORM\Column(type="string")
151
     */
152
    protected $customerFax;
153
154
    /**
155
     * @ORM\Column(type="string")
156
     */
157
    protected $customerEmail;
158
159
    /**
160
     * @ORM\Column(type="string")
161
     */
162
    protected $customerNote;
163
164
    /**
165
     * @ORM\Column(type="string")
166
     */
167
    protected $customerCvrnr;
168
169
    /**
170
     * @ORM\Column(type="integer")
171
     */
172
    protected $customerCustTypeId;
173
174
    /**
175
     * @ORM\Column(type="string")
176
     */
177
    protected $customerEan;
178
179
    /**
180
     * @ORM\Column(type="string")
181
     */
182
    protected $customerRes1;
183
184
    /**
185
     * @ORM\Column(type="string")
186
     */
187
    protected $customerRes2;
188
189
    /**
190
     * @ORM\Column(type="string")
191
     */
192
    protected $customerRes3;
193
194
    /**
195
     * @ORM\Column(type="string")
196
     */
197
    protected $customerRes4;
198
199
    /**
200
     * @ORM\Column(type="string")
201
     */
202
    protected $customerRes5;
203
204
    /**
205
     * @ORM\Column(type="string")
206
     */
207
    protected $customerIp;
208
209
    /**
210
     * @ORM\Column(type="string")
211
     */
212
    protected $deliveryName;
213
214
    /**
215
     * @ORM\Column(type="string")
216
     */
217
    protected $deliveryCompany;
218
219
    /**
220
     * @ORM\Column(type="string")
221
     */
222
    protected $deliveryAddress;
223
224
    /**
225
     * @ORM\Column(type="string")
226
     */
227
    protected $deliveryAddress2;
228
229
    /**
230
     * @ORM\Column(type="string")
231
     */
232
    protected $deliveryZipCode;
233
234
    /**
235
     * @ORM\Column(type="string")
236
     */
237
    protected $deliveryCity;
238
239
    /**
240
     * @ORM\Column(type="integer")
241
     */
242
    protected $deliveryCountryID;
243
244
    /**
245
     * @ORM\Column(type="string")
246
     */
247
    protected $deliveryCountry;
248
249
    /**
250
     * @ORM\Column(type="string")
251
     */
252
    protected $deliveryPhone;
253
254
    /**
255
     * @ORM\Column(type="string")
256
     */
257
    protected $deliveryFax;
258
259
    /**
260
     * @ORM\Column(type="string")
261
     */
262
    protected $deliveryEmail;
263
264
    /**
265
     * @ORM\Column(type="string")
266
     */
267
    protected $deliveryEan;
268
269
    /**
270
     * @ORM\Column(type="string")
271
     */
272
    protected $shippingMethod;
273
274
    /**
275
     * @ORM\Column(type="decimal", precision=12, scale=2)
276
     */
277
    protected $shippingFee;
278
279
    /**
280
     * @ORM\Column(type="string")
281
     */
282
    protected $paymentMethod;
283
284
    /**
285
     * @ORM\Column(type="decimal", precision=12, scale=2)
286
     */
287
    protected $paymentFee;
288
289
    /**
290
     * @ORM\Column(type="string")
291
     */
292
    protected $loadBalancerRealIp;
293
294
    /**
295
     * @var string
296
     *
297
     * @ORM\Column(type="string")
298
     */
299
    protected $referrer;
300
301
    /**
302
     * @ORM\OneToMany(targetEntity="PaymentLine", mappedBy="payment")
303
     */
304
    protected $paymentLines;
305
306
    /**********************************
307
     * Properties specific to Altapay *
308
     *********************************/
309
310
    /**
311
     * @var string|null
312
     *
313
     * @ORM\Column(type="string", nullable=true)
314
     */
315
    protected $altapayId;
316
317
    /**
318
     * @var string|null
319
     *
320
     * @ORM\Column(type="string", nullable=true)
321
     */
322
    protected $cardStatus;
323
324
    /**
325
     * @var string|null
326
     *
327
     * @ORM\Column(type="string", nullable=true)
328
     */
329
    protected $creditCardToken;
330
331
    /**
332
     * @var string|null
333
     *
334
     * @ORM\Column(type="string", nullable=true)
335
     */
336
    protected $creditCardMaskedPan;
337
338
    /**
339
     * @var string|null
340
     *
341
     * @ORM\Column(type="string", nullable=true)
342
     */
343
    protected $threeDSecureResult;
344
345
    /**
346
     * @var string|null
347
     *
348
     * @ORM\Column(type="string", nullable=true)
349
     */
350
    protected $liableForChargeback;
351
352
    /**
353
     * @var string|null
354
     *
355
     * @ORM\Column(type="string", nullable=true)
356
     */
357
    protected $blacklistToken;
358
359
    /**
360
     * @var string|null
361
     *
362
     * @ORM\Column(type="string", nullable=true)
363
     */
364
    protected $shop;
365
366
    /**
367
     * @var string|null
368
     *
369
     * @ORM\Column(type="string", nullable=true)
370
     */
371
    protected $terminal;
372
373
    /**
374
     * @var string|null
375
     *
376
     * @ORM\Column(type="string", nullable=true)
377
     */
378
    protected $transactionStatus;
379
380
    /**
381
     * @var string|null
382
     *
383
     * @ORM\Column(type="string", nullable=true)
384
     */
385
    protected $reasonCode;
386
387
    /**
388
     * @var int|null
389
     *
390
     * @ORM\Column(type="integer", nullable=true)
391
     */
392
    protected $merchantCurrency;
393
394
    /**
395
     * @var string|null
396
     *
397
     * @ORM\Column(type="string", nullable=true)
398
     */
399
    protected $merchantCurrencyAlpha;
400
401
    /**
402
     * @var int|null
403
     *
404
     * @ORM\Column(type="integer", nullable=true)
405
     */
406
    protected $cardHolderCurrency;
407
408
    /**
409
     * @var string|null
410
     *
411
     * @ORM\Column(type="string", nullable=true)
412
     */
413
    protected $cardHolderCurrencyAlpha;
414
415
    /**
416
     * @var float|null
417
     *
418
     * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
419
     */
420
    protected $reservedAmount;
421
422
    /**
423
     * @var float|null
424
     *
425
     * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
426
     */
427
    protected $capturedAmount;
428
429
    /**
430
     * @var float|null
431
     *
432
     * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
433
     */
434
    protected $refundedAmount;
435
436
    /**
437
     * @var float|null
438
     *
439
     * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
440
     */
441
    protected $recurringDefaultAmount;
442
443
    /**
444
     * @var \DateTime|null
445
     *
446
     * @ORM\Column(type="datetime", nullable=true)
447
     */
448
    protected $createdDate;
449
450
    /**
451
     * @var \DateTime|null
452
     *
453
     * @ORM\Column(type="datetime", nullable=true)
454
     */
455
    protected $updatedDate;
456
457
    /**
458
     * @var string|null
459
     *
460
     * @ORM\Column(type="string", nullable=true)
461
     */
462
    protected $paymentNature;
463
464
    /**
465
     * @var boolean|null
466
     *
467
     * @ORM\Column(type="boolean", nullable=true)
468
     */
469
    protected $supportsRefunds;
470
471
    /**
472
     * @var boolean|null
473
     *
474
     * @ORM\Column(type="boolean", nullable=true)
475
     */
476
    protected $supportsRelease;
477
478
    /**
479
     * @var boolean|null
480
     *
481
     * @ORM\Column(type="boolean", nullable=true)
482
     */
483
    protected $supportsMultipleCaptures;
484
485
    /**
486
     * @var boolean|null
487
     *
488
     * @ORM\Column(type="boolean", nullable=true)
489
     */
490
    protected $supportsMultipleRefunds;
491
492
    /**
493
     * @var float|null
494
     *
495
     * @ORM\Column(type="float", nullable=true)
496
     */
497
    protected $fraudRiskScore;
498
499
    /**
500
     * @var string|null
501
     *
502
     * @ORM\Column(type="string", nullable=true)
503
     */
504
    protected $fraudExplanation;
505
506
507
    public function __construct()
508
    {
509
        parent::__construct();
510
511
        $this->paymentLines = new ArrayCollection();
512
    }
513
514
    /**
515
     * Returns true if the payment can be captured
516
     *
517
     * @todo implement this method
518
     *
519
     * @return bool
520
     */
521
    public function isCaptureable() : bool
522
    {
523
        return true;
524
    }
525
526
    /**
527
     * Returns true if the payment can be refunded
528
     *
529
     * @todo implement this method
530
     *
531
     * @return bool
532
     */
533
    public function isRefundable() : bool
534
    {
535
        return true;
536
    }
537
538
    // @todo create type hints for getters and setters
539
540
    /**
541
     * @return int
542
     */
543
    public function getId() : ?int
544
    {
545
        return $this->id;
546
    }
547
548
    /**
549
     * @param int $id
550
     *
551
     * @return Payment
552
     */
553
    public function setId(int $id) : self
554
    {
555
        $this->id = $id;
556
557
        return $this;
558
    }
559
560
    /**
561
     * @return null|string
562
     */
563
    public function getAltapayId()
564
    {
565
        return $this->altapayId;
566
    }
567
568
    /**
569
     * @param null|string $altapayId
570
     * @return Payment
571
     */
572
    public function setAltapayId($altapayId)
573
    {
574
        $this->altapayId = $altapayId;
575
        return $this;
576
    }
577
578
    /**
579
     * @return null|string
580
     */
581
    public function getCardStatus()
582
    {
583
        return $this->cardStatus;
584
    }
585
586
    /**
587
     * @param null|string $cardStatus
588
     * @return Payment
589
     */
590
    public function setCardStatus($cardStatus)
591
    {
592
        $this->cardStatus = $cardStatus;
593
        return $this;
594
    }
595
596
    /**
597
     * @return null|string
598
     */
599
    public function getCreditCardToken()
600
    {
601
        return $this->creditCardToken;
602
    }
603
604
    /**
605
     * @param null|string $creditCardToken
606
     * @return Payment
607
     */
608
    public function setCreditCardToken($creditCardToken)
609
    {
610
        $this->creditCardToken = $creditCardToken;
611
        return $this;
612
    }
613
614
    /**
615
     * @return null|string
616
     */
617
    public function getCreditCardMaskedPan()
618
    {
619
        return $this->creditCardMaskedPan;
620
    }
621
622
    /**
623
     * @param null|string $creditCardMaskedPan
624
     * @return Payment
625
     */
626
    public function setCreditCardMaskedPan($creditCardMaskedPan)
627
    {
628
        $this->creditCardMaskedPan = $creditCardMaskedPan;
629
        return $this;
630
    }
631
632
    /**
633
     * @return null|string
634
     */
635
    public function getThreeDSecureResult()
636
    {
637
        return $this->threeDSecureResult;
638
    }
639
640
    /**
641
     * @param null|string $threeDSecureResult
642
     * @return Payment
643
     */
644
    public function setThreeDSecureResult($threeDSecureResult)
645
    {
646
        $this->threeDSecureResult = $threeDSecureResult;
647
        return $this;
648
    }
649
650
    /**
651
     * @return null|string
652
     */
653
    public function getLiableForChargeback()
654
    {
655
        return $this->liableForChargeback;
656
    }
657
658
    /**
659
     * @param null|string $liableForChargeback
660
     * @return Payment
661
     */
662
    public function setLiableForChargeback($liableForChargeback)
663
    {
664
        $this->liableForChargeback = $liableForChargeback;
665
        return $this;
666
    }
667
668
    /**
669
     * @return null|string
670
     */
671
    public function getBlacklistToken()
672
    {
673
        return $this->blacklistToken;
674
    }
675
676
    /**
677
     * @param null|string $blacklistToken
678
     * @return Payment
679
     */
680
    public function setBlacklistToken($blacklistToken)
681
    {
682
        $this->blacklistToken = $blacklistToken;
683
        return $this;
684
    }
685
686
    /**
687
     * @return null|string
688
     */
689
    public function getShop()
690
    {
691
        return $this->shop;
692
    }
693
694
    /**
695
     * @param null|string $shop
696
     * @return Payment
697
     */
698
    public function setShop($shop)
699
    {
700
        $this->shop = $shop;
701
        return $this;
702
    }
703
704
    /**
705
     * @return null|string
706
     */
707
    public function getTerminal()
708
    {
709
        return $this->terminal;
710
    }
711
712
    /**
713
     * @param null|string $terminal
714
     * @return Payment
715
     */
716
    public function setTerminal($terminal)
717
    {
718
        $this->terminal = $terminal;
719
        return $this;
720
    }
721
722
    /**
723
     * @return null|string
724
     */
725
    public function getTransactionStatus()
726
    {
727
        return $this->transactionStatus;
728
    }
729
730
    /**
731
     * @param null|string $transactionStatus
732
     * @return Payment
733
     */
734
    public function setTransactionStatus($transactionStatus)
735
    {
736
        $this->transactionStatus = $transactionStatus;
737
        return $this;
738
    }
739
740
    /**
741
     * @return null|string
742
     */
743
    public function getReasonCode()
744
    {
745
        return $this->reasonCode;
746
    }
747
748
    /**
749
     * @param null|string $reasonCode
750
     * @return Payment
751
     */
752
    public function setReasonCode($reasonCode)
753
    {
754
        $this->reasonCode = $reasonCode;
755
        return $this;
756
    }
757
758
    /**
759
     * @return int|null
760
     */
761
    public function getMerchantCurrency()
762
    {
763
        return $this->merchantCurrency;
764
    }
765
766
    /**
767
     * @param int|null $merchantCurrency
768
     * @return Payment
769
     */
770
    public function setMerchantCurrency($merchantCurrency)
771
    {
772
        $this->merchantCurrency = $merchantCurrency;
773
        return $this;
774
    }
775
776
    /**
777
     * @return null|string
778
     */
779
    public function getMerchantCurrencyAlpha()
780
    {
781
        return $this->merchantCurrencyAlpha;
782
    }
783
784
    /**
785
     * @param null|string $merchantCurrencyAlpha
786
     * @return Payment
787
     */
788
    public function setMerchantCurrencyAlpha($merchantCurrencyAlpha)
789
    {
790
        $this->merchantCurrencyAlpha = $merchantCurrencyAlpha;
791
        return $this;
792
    }
793
794
    /**
795
     * @return int|null
796
     */
797
    public function getCardHolderCurrency()
798
    {
799
        return $this->cardHolderCurrency;
800
    }
801
802
    /**
803
     * @param int|null $cardHolderCurrency
804
     * @return Payment
805
     */
806
    public function setCardHolderCurrency($cardHolderCurrency)
807
    {
808
        $this->cardHolderCurrency = $cardHolderCurrency;
809
        return $this;
810
    }
811
812
    /**
813
     * @return null|string
814
     */
815
    public function getCardHolderCurrencyAlpha()
816
    {
817
        return $this->cardHolderCurrencyAlpha;
818
    }
819
820
    /**
821
     * @param null|string $cardHolderCurrencyAlpha
822
     * @return Payment
823
     */
824
    public function setCardHolderCurrencyAlpha($cardHolderCurrencyAlpha)
825
    {
826
        $this->cardHolderCurrencyAlpha = $cardHolderCurrencyAlpha;
827
        return $this;
828
    }
829
830
    /**
831
     * @return float|null
832
     */
833
    public function getReservedAmount()
834
    {
835
        return $this->reservedAmount;
836
    }
837
838
    /**
839
     * @param float|null $reservedAmount
840
     * @return Payment
841
     */
842
    public function setReservedAmount($reservedAmount)
843
    {
844
        $this->reservedAmount = $reservedAmount;
845
        return $this;
846
    }
847
848
    /**
849
     * @return float|null
850
     */
851
    public function getCapturedAmount()
852
    {
853
        return $this->capturedAmount;
854
    }
855
856
    /**
857
     * @param float|null $capturedAmount
858
     * @return Payment
859
     */
860
    public function setCapturedAmount($capturedAmount)
861
    {
862
        $this->capturedAmount = $capturedAmount;
863
        return $this;
864
    }
865
866
    /**
867
     * @return float|null
868
     */
869
    public function getRefundedAmount()
870
    {
871
        return $this->refundedAmount;
872
    }
873
874
    /**
875
     * @param float|null $refundedAmount
876
     * @return Payment
877
     */
878
    public function setRefundedAmount($refundedAmount)
879
    {
880
        $this->refundedAmount = $refundedAmount;
881
        return $this;
882
    }
883
884
    /**
885
     * @return float|null
886
     */
887
    public function getRecurringDefaultAmount()
888
    {
889
        return $this->recurringDefaultAmount;
890
    }
891
892
    /**
893
     * @param float|null $recurringDefaultAmount
894
     * @return Payment
895
     */
896
    public function setRecurringDefaultAmount($recurringDefaultAmount)
897
    {
898
        $this->recurringDefaultAmount = $recurringDefaultAmount;
899
        return $this;
900
    }
901
902
    /**
903
     * @return \DateTime|null
904
     */
905
    public function getCreatedDate()
906
    {
907
        return $this->createdDate;
908
    }
909
910
    /**
911
     * @param \DateTime|null $createdDate
912
     * @return Payment
913
     */
914
    public function setCreatedDate($createdDate)
915
    {
916
        $this->createdDate = $createdDate;
917
        return $this;
918
    }
919
920
    /**
921
     * @return \DateTime|null
922
     */
923
    public function getUpdatedDate()
924
    {
925
        return $this->updatedDate;
926
    }
927
928
    /**
929
     * @param \DateTime|null $updatedDate
930
     * @return Payment
931
     */
932
    public function setUpdatedDate($updatedDate)
933
    {
934
        $this->updatedDate = $updatedDate;
935
        return $this;
936
    }
937
938
    /**
939
     * @return null|string
940
     */
941
    public function getPaymentNature()
942
    {
943
        return $this->paymentNature;
944
    }
945
946
    /**
947
     * @param null|string $paymentNature
948
     * @return Payment
949
     */
950
    public function setPaymentNature($paymentNature)
951
    {
952
        $this->paymentNature = $paymentNature;
953
        return $this;
954
    }
955
956
    /**
957
     * @return bool|null
958
     */
959
    public function getSupportsRefunds()
960
    {
961
        return $this->supportsRefunds;
962
    }
963
964
    /**
965
     * @param bool|null $supportsRefunds
966
     * @return Payment
967
     */
968
    public function setSupportsRefunds($supportsRefunds)
969
    {
970
        $this->supportsRefunds = $supportsRefunds;
971
        return $this;
972
    }
973
974
    /**
975
     * @return bool|null
976
     */
977
    public function getSupportsRelease()
978
    {
979
        return $this->supportsRelease;
980
    }
981
982
    /**
983
     * @param bool|null $supportsRelease
984
     * @return Payment
985
     */
986
    public function setSupportsRelease($supportsRelease)
987
    {
988
        $this->supportsRelease = $supportsRelease;
989
        return $this;
990
    }
991
992
    /**
993
     * @return bool|null
994
     */
995
    public function getSupportsMultipleCaptures()
996
    {
997
        return $this->supportsMultipleCaptures;
998
    }
999
1000
    /**
1001
     * @param bool|null $supportsMultipleCaptures
1002
     * @return Payment
1003
     */
1004
    public function setSupportsMultipleCaptures($supportsMultipleCaptures)
1005
    {
1006
        $this->supportsMultipleCaptures = $supportsMultipleCaptures;
1007
        return $this;
1008
    }
1009
1010
    /**
1011
     * @return bool|null
1012
     */
1013
    public function getSupportsMultipleRefunds()
1014
    {
1015
        return $this->supportsMultipleRefunds;
1016
    }
1017
1018
    /**
1019
     * @param bool|null $supportsMultipleRefunds
1020
     * @return Payment
1021
     */
1022
    public function setSupportsMultipleRefunds($supportsMultipleRefunds)
1023
    {
1024
        $this->supportsMultipleRefunds = $supportsMultipleRefunds;
1025
        return $this;
1026
    }
1027
1028
    /**
1029
     * @return float|null
1030
     */
1031
    public function getFraudRiskScore()
1032
    {
1033
        return $this->fraudRiskScore;
1034
    }
1035
1036
    /**
1037
     * @param float|null $fraudRiskScore
1038
     * @return Payment
1039
     */
1040
    public function setFraudRiskScore($fraudRiskScore)
1041
    {
1042
        $this->fraudRiskScore = $fraudRiskScore;
1043
        return $this;
1044
    }
1045
1046
    /**
1047
     * @return null|string
1048
     */
1049
    public function getFraudExplanation()
1050
    {
1051
        return $this->fraudExplanation;
1052
    }
1053
1054
    /**
1055
     * @param null|string $fraudExplanation
1056
     * @return Payment
1057
     */
1058
    public function setFraudExplanation($fraudExplanation)
1059
    {
1060
        $this->fraudExplanation = $fraudExplanation;
1061
        return $this;
1062
    }
1063
}
1064