12
12
use Magento \Payment \Model \InfoInterface ;
13
13
use Magento \Payment \Model \MethodInterface ;
14
14
use Magento \Payment \Observer \AbstractDataAssignObserver ;
15
- use Magento \Sales \Model \Order \Invoice ;
16
- use Magento \Sales \Model \Order \Payment ;
17
15
use Magento \Quote \Api \Data \PaymentMethodInterface ;
16
+ use Magento \Sales \Model \Order \Payment ;
18
17
19
18
/**
20
19
* Payment method abstract model
@@ -275,6 +274,7 @@ protected function initializeData($data = [])
275
274
276
275
/**
277
276
* {inheritdoc}
277
+ * @deprecated 2.1.0
278
278
*/
279
279
public function setStore ($ storeId )
280
280
{
@@ -283,6 +283,7 @@ public function setStore($storeId)
283
283
284
284
/**
285
285
* {inheritdoc}
286
+ * @deprecated 2.1.0
286
287
*/
287
288
public function getStore ()
288
289
{
@@ -294,6 +295,7 @@ public function getStore()
294
295
*
295
296
* @return bool
296
297
* @api
298
+ * @deprecated 2.1.0
297
299
*/
298
300
public function canOrder ()
299
301
{
@@ -305,6 +307,7 @@ public function canOrder()
305
307
*
306
308
* @return bool
307
309
* @api
310
+ * @deprecated 2.1.0
308
311
*/
309
312
public function canAuthorize ()
310
313
{
@@ -315,7 +318,8 @@ public function canAuthorize()
315
318
* Check capture availability
316
319
*
317
320
* @return bool
318
- * @api
321
+ * @apiчс
322
+ * @deprecated 2.1.0
319
323
*/
320
324
public function canCapture ()
321
325
{
@@ -327,6 +331,7 @@ public function canCapture()
327
331
*
328
332
* @return bool
329
333
* @api
334
+ * @deprecated 2.1.0
330
335
*/
331
336
public function canCapturePartial ()
332
337
{
@@ -338,6 +343,7 @@ public function canCapturePartial()
338
343
*
339
344
* @return bool
340
345
* @api
346
+ * @deprecated 2.1.0
341
347
*/
342
348
public function canCaptureOnce ()
343
349
{
@@ -349,6 +355,7 @@ public function canCaptureOnce()
349
355
*
350
356
* @return bool
351
357
* @api
358
+ * @deprecated 2.1.0
352
359
*/
353
360
public function canRefund ()
354
361
{
@@ -360,6 +367,7 @@ public function canRefund()
360
367
*
361
368
* @return bool
362
369
* @api
370
+ * @deprecated 2.1.0
363
371
*/
364
372
public function canRefundPartialPerInvoice ()
365
373
{
@@ -371,6 +379,7 @@ public function canRefundPartialPerInvoice()
371
379
* @return bool
372
380
* @internal param \Magento\Framework\DataObject $payment
373
381
* @api
382
+ * @deprecated 2.1.0
374
383
*/
375
384
public function canVoid ()
376
385
{
@@ -382,6 +391,7 @@ public function canVoid()
382
391
* Can be used in admin
383
392
*
384
393
* @return bool
394
+ * @deprecated 2.1.0
385
395
*/
386
396
public function canUseInternal ()
387
397
{
@@ -392,6 +402,7 @@ public function canUseInternal()
392
402
* Can be used in regular checkout
393
403
*
394
404
* @return bool
405
+ * @deprecated 2.1.0
395
406
*/
396
407
public function canUseCheckout ()
397
408
{
@@ -403,6 +414,7 @@ public function canUseCheckout()
403
414
*
404
415
* @return bool
405
416
* @api
417
+ * @deprecated 2.1.0
406
418
*/
407
419
public function canEdit ()
408
420
{
@@ -414,6 +426,7 @@ public function canEdit()
414
426
*
415
427
* @return bool
416
428
* @api
429
+ * @deprecated 2.1.0
417
430
*/
418
431
public function canFetchTransactionInfo ()
419
432
{
@@ -428,6 +441,7 @@ public function canFetchTransactionInfo()
428
441
* @return array
429
442
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
430
443
* @api
444
+ * @deprecated 2.1.0
431
445
*/
432
446
public function fetchTransactionInfo (InfoInterface $ payment , $ transactionId )
433
447
{
@@ -439,6 +453,7 @@ public function fetchTransactionInfo(InfoInterface $payment, $transactionId)
439
453
*
440
454
* @return bool
441
455
* @api
456
+ * @deprecated 2.1.0
442
457
*/
443
458
public function isGateway ()
444
459
{
@@ -450,6 +465,7 @@ public function isGateway()
450
465
*
451
466
* @return bool
452
467
* @api
468
+ * @deprecated 2.1.0
453
469
*/
454
470
public function isOffline ()
455
471
{
@@ -461,6 +477,7 @@ public function isOffline()
461
477
*
462
478
* @return bool
463
479
* @api
480
+ * @deprecated 2.1.0
464
481
*/
465
482
public function isInitializeNeeded ()
466
483
{
@@ -472,6 +489,7 @@ public function isInitializeNeeded()
472
489
*
473
490
* @param string $country
474
491
* @return bool
492
+ * @deprecated 2.1.0
475
493
*/
476
494
public function canUseForCountry ($ country )
477
495
{
@@ -493,6 +511,7 @@ public function canUseForCountry($country)
493
511
* @param string $currencyCode
494
512
* @return bool
495
513
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
514
+ * @deprecated 2.1.0
496
515
*/
497
516
public function canUseForCurrency ($ currencyCode )
498
517
{
@@ -504,6 +523,7 @@ public function canUseForCurrency($currencyCode)
504
523
*
505
524
* @return string
506
525
* @throws \Magento\Framework\Exception\LocalizedException
526
+ * @deprecated 2.1.0
507
527
*/
508
528
public function getCode ()
509
529
{
@@ -517,6 +537,7 @@ public function getCode()
517
537
* Retrieve block type for method form generation
518
538
*
519
539
* @return string
540
+ * @deprecated 2.1.0
520
541
*/
521
542
public function getFormBlockType ()
522
543
{
@@ -528,6 +549,7 @@ public function getFormBlockType()
528
549
*
529
550
* @return string
530
551
* @api
552
+ * @deprecated 2.1.0
531
553
*/
532
554
public function getInfoBlockType ()
533
555
{
@@ -540,6 +562,7 @@ public function getInfoBlockType()
540
562
* @return InfoInterface
541
563
* @throws \Magento\Framework\Exception\LocalizedException
542
564
* @api
565
+ * @deprecated 2.1.0
543
566
*/
544
567
public function getInfoInstance ()
545
568
{
@@ -556,6 +579,7 @@ public function getInfoInstance()
556
579
* @param InfoInterface $info
557
580
* @return void
558
581
* @api
582
+ * @deprecated 2.1.0
559
583
*/
560
584
public function setInfoInstance (InfoInterface $ info )
561
585
{
@@ -568,6 +592,7 @@ public function setInfoInstance(InfoInterface $info)
568
592
* @return $this
569
593
* @throws \Magento\Framework\Exception\LocalizedException
570
594
* @api
595
+ * @deprecated 2.1.0
571
596
*/
572
597
public function validate ()
573
598
{
@@ -597,6 +622,7 @@ public function validate()
597
622
* @throws \Magento\Framework\Exception\LocalizedException
598
623
* @api
599
624
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
625
+ * @deprecated 2.1.0
600
626
*/
601
627
public function order (\Magento \Payment \Model \InfoInterface $ payment , $ amount )
602
628
{
@@ -615,6 +641,7 @@ public function order(\Magento\Payment\Model\InfoInterface $payment, $amount)
615
641
* @throws \Magento\Framework\Exception\LocalizedException
616
642
* @api
617
643
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
644
+ * @deprecated 2.1.0
618
645
*/
619
646
public function authorize (\Magento \Payment \Model \InfoInterface $ payment , $ amount )
620
647
{
@@ -633,6 +660,7 @@ public function authorize(\Magento\Payment\Model\InfoInterface $payment, $amount
633
660
* @throws \Magento\Framework\Exception\LocalizedException
634
661
* @api
635
662
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
663
+ * @deprecated 2.1.0
636
664
*/
637
665
public function capture (\Magento \Payment \Model \InfoInterface $ payment , $ amount )
638
666
{
@@ -652,6 +680,7 @@ public function capture(\Magento\Payment\Model\InfoInterface $payment, $amount)
652
680
* @throws \Magento\Framework\Exception\LocalizedException
653
681
* @api
654
682
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
683
+ * @deprecated 2.1.0
655
684
*/
656
685
public function refund (\Magento \Payment \Model \InfoInterface $ payment , $ amount )
657
686
{
@@ -668,6 +697,7 @@ public function refund(\Magento\Payment\Model\InfoInterface $payment, $amount)
668
697
* @return $this
669
698
* @api
670
699
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
700
+ * @deprecated 2.1.0
671
701
*/
672
702
public function cancel (\Magento \Payment \Model \InfoInterface $ payment )
673
703
{
@@ -682,6 +712,7 @@ public function cancel(\Magento\Payment\Model\InfoInterface $payment)
682
712
* @throws \Magento\Framework\Exception\LocalizedException
683
713
* @api
684
714
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
715
+ * @deprecated 2.1.0
685
716
*/
686
717
public function void (\Magento \Payment \Model \InfoInterface $ payment )
687
718
{
@@ -695,6 +726,7 @@ public function void(\Magento\Payment\Model\InfoInterface $payment)
695
726
* Whether this method can accept or deny payment
696
727
* @return bool
697
728
* @api
729
+ * @deprecated 2.1.0
698
730
*/
699
731
public function canReviewPayment ()
700
732
{
@@ -709,6 +741,7 @@ public function canReviewPayment()
709
741
* @throws \Magento\Framework\Exception\LocalizedException
710
742
* @api
711
743
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
744
+ * @deprecated 2.1.0
712
745
*/
713
746
public function acceptPayment (InfoInterface $ payment )
714
747
{
@@ -726,6 +759,7 @@ public function acceptPayment(InfoInterface $payment)
726
759
* @throws \Magento\Framework\Exception\LocalizedException
727
760
* @api
728
761
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
762
+ * @deprecated 2.1.0
729
763
*/
730
764
public function denyPayment (InfoInterface $ payment )
731
765
{
@@ -739,6 +773,7 @@ public function denyPayment(InfoInterface $payment)
739
773
* Retrieve payment method title
740
774
*
741
775
* @return string
776
+ * @deprecated 2.1.0
742
777
*/
743
778
public function getTitle ()
744
779
{
@@ -752,6 +787,7 @@ public function getTitle()
752
787
* @param int|string|null|\Magento\Store\Model\Store $storeId
753
788
*
754
789
* @return mixed
790
+ * @deprecated 2.1.0
755
791
*/
756
792
public function getConfigData ($ field , $ storeId = null )
757
793
{
@@ -772,6 +808,7 @@ public function getConfigData($field, $storeId = null)
772
808
* @return $this
773
809
* @throws \Magento\Framework\Exception\LocalizedException
774
810
* @api
811
+ * @deprecated 2.1.0
775
812
*/
776
813
public function assignData (\Magento \Framework \DataObject $ data )
777
814
{
@@ -801,6 +838,7 @@ public function assignData(\Magento\Framework\DataObject $data)
801
838
*
802
839
* @param \Magento\Quote\Api\Data\CartInterface|null $quote
803
840
* @return bool
841
+ * @deprecated 2.1.0
804
842
*/
805
843
public function isAvailable (\Magento \Quote \Api \Data \CartInterface $ quote = null )
806
844
{
@@ -829,6 +867,7 @@ public function isAvailable(\Magento\Quote\Api\Data\CartInterface $quote = null)
829
867
*
830
868
* @param int|null $storeId
831
869
* @return bool
870
+ * @deprecated 2.1.0
832
871
*/
833
872
public function isActive ($ storeId = null )
834
873
{
@@ -845,6 +884,7 @@ public function isActive($storeId = null)
845
884
* @return $this
846
885
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
847
886
* @api
887
+ * @deprecated 2.1.0
848
888
*/
849
889
public function initialize ($ paymentAction , $ stateObject )
850
890
{
@@ -857,6 +897,7 @@ public function initialize($paymentAction, $stateObject)
857
897
*
858
898
* @return string
859
899
* @api
900
+ * @deprecated 2.1.0
860
901
*/
861
902
public function getConfigPaymentAction ()
862
903
{
@@ -868,6 +909,7 @@ public function getConfigPaymentAction()
868
909
*
869
910
* @param array $debugData
870
911
* @return void
912
+ * @deprecated 2.1.0
871
913
*/
872
914
protected function _debug ($ debugData )
873
915
{
@@ -884,6 +926,7 @@ protected function _debug($debugData)
884
926
* @return bool
885
927
* @SuppressWarnings(PHPMD.BooleanGetMethodName)
886
928
* @api
929
+ * @deprecated 2.1.0
887
930
*/
888
931
public function getDebugFlag ()
889
932
{
@@ -896,6 +939,7 @@ public function getDebugFlag()
896
939
* @param mixed $debugData
897
940
* @return void
898
941
* @api
942
+ * @deprecated 2.1.0
899
943
*/
900
944
public function debugData ($ debugData )
901
945
{
@@ -906,6 +950,7 @@ public function debugData($debugData)
906
950
* Return replace keys for debug data
907
951
*
908
952
* @return array
953
+ * @deprecated 2.1.0
909
954
*/
910
955
public function getDebugReplacePrivateDataKeys ()
911
956
{
0 commit comments