Skip to content

Commit deb9cc2

Browse files
author
Denis Girko
committed
- Updated send-confirmation-code response struct
- Updated apply-return request struct - Removed error_clear_last() as it is not available in 5.4
1 parent f01c615 commit deb9cc2

4 files changed

Lines changed: 90 additions & 232 deletions

File tree

lib/Generated/Model/ApplyReturnRequestTransactionItemsItem.php

Lines changed: 0 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -17,37 +17,13 @@ class ApplyReturnRequestTransactionItemsItem
1717
*/
1818
protected $sku;
1919

20-
/**
21-
* Название товара
22-
*
23-
* @var string
24-
*/
25-
protected $itemTitle;
26-
2720
/**
2821
* Количество товара в чеке
2922
*
3023
* @var float
3124
*/
3225
protected $itemCount;
3326

34-
/**
35-
* Цена единицы товара
36-
*
37-
* @var float
38-
*/
39-
protected $price;
40-
41-
/**
42-
* Сумма по строке.
43-
*
44-
* Если не указана, рассчитывается как price * itemCount.
45-
*
46-
*
47-
* @var float
48-
*/
49-
protected $amount;
50-
5127
/**
5228
* Артикул или другой номенклатурный идентификатор товара для возврата
5329
*
@@ -71,29 +47,6 @@ public function setSku($sku)
7147
return $this;
7248
}
7349

74-
/**
75-
* Название товара
76-
*
77-
* @return string
78-
*/
79-
public function getItemTitle()
80-
{
81-
return $this->itemTitle;
82-
}
83-
84-
/**
85-
* Название товара
86-
*
87-
* @param string $itemTitle
88-
*
89-
* @return self
90-
*/
91-
public function setItemTitle($itemTitle)
92-
{
93-
$this->itemTitle = $itemTitle;
94-
return $this;
95-
}
96-
9750
/**
9851
* Количество товара в чеке
9952
*
@@ -116,56 +69,4 @@ public function setItemCount($itemCount)
11669
$this->itemCount = $itemCount;
11770
return $this;
11871
}
119-
120-
/**
121-
* Цена единицы товара
122-
*
123-
* @return float
124-
*/
125-
public function getPrice()
126-
{
127-
return $this->price;
128-
}
129-
130-
/**
131-
* Цена единицы товара
132-
*
133-
* @param float $price
134-
*
135-
* @return self
136-
*/
137-
public function setPrice($price)
138-
{
139-
$this->price = $price;
140-
return $this;
141-
}
142-
143-
/**
144-
* Сумма по строке.
145-
*
146-
* Если не указана, рассчитывается как price * itemCount.
147-
*
148-
*
149-
* @return float
150-
*/
151-
public function getAmount()
152-
{
153-
return $this->amount;
154-
}
155-
156-
/**
157-
* Сумма по строке.
158-
*
159-
* Если не указана, рассчитывается как price * itemCount.
160-
*
161-
*
162-
* @param float $amount
163-
*
164-
* @return self
165-
*/
166-
public function setAmount($amount)
167-
{
168-
$this->amount = $amount;
169-
return $this;
170-
}
17172
}

lib/Generated/Model/SendConfirmationCodeResponse.php

Lines changed: 89 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,32 +11,110 @@
1111
class SendConfirmationCodeResponse
1212
{
1313
/**
14-
*
14+
* Cгенерированный проверочный код.
1515
*
16-
* @var SendConfirmationCodeResponseResult
16+
* Содержит три цифры, могут быть лидирующие нули.
17+
*
18+
*
19+
* @var string
20+
*/
21+
protected $code;
22+
23+
/**
24+
* Идентификатор отправленного клиенту сообщения
25+
*
26+
* @var string
27+
*/
28+
protected $msgid;
29+
30+
/**
31+
* Дата и время, до которых высланный код считается действующим.
32+
*
33+
* После наступления указанного времени кодом воспользоваться уже будет нельзя.
34+
*
35+
*
36+
* @var \DateTime
37+
*/
38+
protected $expiresAt;
39+
40+
/**
41+
* Cгенерированный проверочный код.
42+
*
43+
* Содержит три цифры, могут быть лидирующие нули.
44+
*
45+
*
46+
* @return string
47+
*/
48+
public function getCode()
49+
{
50+
return $this->code;
51+
}
52+
53+
/**
54+
* Cгенерированный проверочный код.
55+
*
56+
* Содержит три цифры, могут быть лидирующие нули.
57+
*
58+
*
59+
* @param string $code
60+
*
61+
* @return self
1762
*/
18-
protected $result;
63+
public function setCode($code)
64+
{
65+
$this->code = $code;
66+
return $this;
67+
}
1968

2069
/**
21-
*
70+
* Идентификатор отправленного клиенту сообщения
2271
*
23-
* @return SendConfirmationCodeResponseResult
72+
* @return string
2473
*/
25-
public function getResult()
74+
public function getMsgid()
2675
{
27-
return $this->result;
76+
return $this->msgid;
2877
}
2978

3079
/**
31-
*
80+
* Идентификатор отправленного клиенту сообщения
81+
*
82+
* @param string $msgid
83+
*
84+
* @return self
85+
*/
86+
public function setMsgid($msgid)
87+
{
88+
$this->msgid = $msgid;
89+
return $this;
90+
}
91+
92+
/**
93+
* Дата и время, до которых высланный код считается действующим.
94+
*
95+
* После наступления указанного времени кодом воспользоваться уже будет нельзя.
96+
*
97+
*
98+
* @return \DateTime
99+
*/
100+
public function getExpiresAt()
101+
{
102+
return $this->expiresAt;
103+
}
104+
105+
/**
106+
* Дата и время, до которых высланный код считается действующим.
107+
*
108+
* После наступления указанного времени кодом воспользоваться уже будет нельзя.
109+
*
32110
*
33-
* @param SendConfirmationCodeResponseResult $result
111+
* @param \DateTime $expiresAt
34112
*
35113
* @return self
36114
*/
37-
public function setResult(SendConfirmationCodeResponseResult $result)
115+
public function setExpiresAt(\DateTime $expiresAt)
38116
{
39-
$this->result = $result;
117+
$this->expiresAt = $expiresAt;
40118
return $this;
41119
}
42120
}

lib/Generated/Model/SendConfirmationCodeResponseResult.php

Lines changed: 0 additions & 120 deletions
This file was deleted.

lib/Http/Client/NativeClient.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public function sendRequest(RequestInterface $request)
4646
]
4747
]);
4848

49-
error_clear_last();
5049
$http_response_header = null;
5150

5251
$body = @file_get_contents($request->getUri(), false, $context);
@@ -94,4 +93,4 @@ private function joinHeaders($headers)
9493
}
9594
return $joinedHeaders;
9695
}
97-
}
96+
}

0 commit comments

Comments
 (0)