File tree Expand file tree Collapse file tree 3 files changed +34
-4
lines changed Expand file tree Collapse file tree 3 files changed +34
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ class OrderData implements OrderDataInterface
8
8
private string $ orderDate ;
9
9
10
10
/** @var string Номер платежа Ypmn */
11
- private string $ ypmnPaymentReference ;
11
+ private string $ payUPaymentReference ;
12
12
13
13
/** @var string */
14
14
private string $ merchantPaymentReference ;
@@ -51,15 +51,29 @@ public function setOrderDate(string $orderDate): self
51
51
/** @inheritDoc */
52
52
public function setYpmnPaymentReference (string $ ypmnPaymentReference ): self
53
53
{
54
- $ this ->ypmnPaymentReference = $ ypmnPaymentReference ;
54
+ $ this ->payUPaymentReference = $ ypmnPaymentReference ;
55
55
56
56
return $ this ;
57
57
}
58
58
59
59
/** @inheritDoc */
60
60
public function getYpmnPaymentReference (): string
61
61
{
62
- return $ this ->ypmnPaymentReference ;
62
+ return $ this ->payUPaymentReference ;
63
+ }
64
+
65
+ /** @inheritDoc */
66
+ public function setPayUPaymentReference (string $ payUPaymentReference ): self
67
+ {
68
+ $ this ->payUPaymentReference = $ payUPaymentReference ;
69
+
70
+ return $ this ;
71
+ }
72
+
73
+ /** @inheritDoc */
74
+ public function getPayUPaymentReference (): string
75
+ {
76
+ return $ this ->payUPaymentReference ;
63
77
}
64
78
65
79
/** @inheritDoc */
Original file line number Diff line number Diff line change @@ -21,16 +21,32 @@ public function setOrderDate(string $orderDate): self;
21
21
/**
22
22
* Получить Номер Заказа в Ypmn
23
23
* @return string Номер Заказа в Ypmn
24
+ *
25
+ * @deprecated Используйте getPayUPaymentReference
24
26
*/
25
27
public function getYpmnPaymentReference (): string ;
26
28
27
29
/**
28
30
* Установить Номер Заказа в Ypmn
29
31
* @param string $ypmnPaymentReference Номер Заказа в Ypmn
30
32
* @return $this
33
+ *
34
+ * @deprecated Используйте setPayUPaymentReference
31
35
*/
32
36
public function setYpmnPaymentReference (string $ ypmnPaymentReference ): self ;
33
37
38
+ /**
39
+ * Получить Номер Заказа в Ypmn
40
+ * @return string Номер Заказа в Ypmn
41
+ */
42
+ public function getPayUPaymentReference (): string ;
43
+ /**
44
+ * Установить Номер Заказа в Ypmn
45
+ * @param string $payUPaymentReference Номер Заказа в Ypmn
46
+ * @return $this
47
+ */
48
+ public function setPayUPaymentReference (string $ payUPaymentReference ): self ;
49
+
34
50
/**
35
51
* Получить Номер Заказа у Мерчанта
36
52
* @return string Номер Заказа у Мерчанта
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public function catchJsonRequest(): self
29
29
30
30
$ this ->orderData = new OrderData ;
31
31
$ this ->orderData ->setOrderDate ($ request ['orderData ' ]['orderDate ' ]);
32
- $ this ->orderData ->setYpmnPaymentReference ($ request ['orderData ' ]['ypmnPaymentReference ' ]);
32
+ $ this ->orderData ->setPayUPaymentReference ($ request ['orderData ' ]['payuPaymentReference ' ]);
33
33
$ this ->orderData ->setMerchantPaymentReference ($ request ['orderData ' ]['merchantPaymentReference ' ]);
34
34
$ this ->orderData ->setStatus ($ request ['orderData ' ]['status ' ]);
35
35
$ this ->orderData ->setCurrency ($ request ['orderData ' ]['currency ' ]);
You can’t perform that action at this time.
0 commit comments