Skip to content

Commit b89304e

Browse files
NikitaNikita
authored andcommitted
update generated code
1 parent 67c5f37 commit b89304e

17 files changed

+381
-599
lines changed

.jeeves.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Mygento:
22
Shipment:
3+
settings:
4+
php_version: 8.1
35
entities:
46
Point:
57
gui: true

Api/Data/CalculateRequestInterface.php

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
namespace Mygento\Shipment\Api\Data;
1010

11+
use Magento\Quote\Model\Quote\Address\RateRequest;
12+
13+
/**
14+
* @api
15+
*/
1116
interface CalculateRequestInterface
1217
{
1318
public const CITY = 'city';
@@ -23,103 +28,96 @@ interface CalculateRequestInterface
2328
* Get city
2429
* @return string|null
2530
*/
26-
public function getCity();
31+
public function getCity(): ?string;
2732

2833
/**
2934
* Set city
30-
* @param string $city
3135
* @return $this
3236
*/
33-
public function setCity($city);
37+
public function setCity(?string $city): self;
3438

3539
/**
3640
* Get index
3741
* @return string|null
3842
*/
39-
public function getIndex();
43+
public function getIndex(): ?string;
4044

4145
/**
4246
* Set index
43-
* @param string $index
4447
* @return $this
4548
*/
46-
public function setIndex($index);
49+
public function setIndex(?string $index): self;
4750

4851
/**
4952
* Get region name
5053
* @return string|null
5154
*/
52-
public function getRegionName();
55+
public function getRegionName(): ?string;
5356

5457
/**
5558
* Set region name
56-
* @param string $regionName
5759
* @return $this
5860
*/
59-
public function setRegionName($regionName);
61+
public function setRegionName(?string $regionName): self;
6062

6163
/**
6264
* Get region code
6365
* @return string|null
6466
*/
65-
public function getRegionCode();
67+
public function getRegionCode(): ?string;
6668

6769
/**
6870
* Set region code
69-
* @param string $regionCode
7071
* @return $this
7172
*/
72-
public function setRegionCode($regionCode);
73+
public function setRegionCode(?string $regionCode): self;
7374

7475
/**
7576
* Get weight
7677
* @return float|null
7778
*/
78-
public function getWeight();
79+
public function getWeight(): ?float;
7980

8081
/**
8182
* Set weight
82-
* @param float $weight
8383
* @return $this
8484
*/
85-
public function setWeight($weight);
85+
public function setWeight(?float $weight): self;
8686

8787
/**
8888
* Get order sum
8989
* @return float|null
9090
*/
91-
public function getOrderSum();
91+
public function getOrderSum(): ?float;
9292

9393
/**
9494
* Set order sum
95-
* @param float $orderSum
9695
* @return $this
9796
*/
98-
public function setOrderSum($orderSum);
97+
public function setOrderSum(?float $orderSum): self;
9998

10099
/**
101100
* Get store id
102101
* @return int|null
103102
*/
104-
public function getStoreId();
103+
public function getStoreId(): ?int;
105104

106105
/**
107106
* Set store id
108-
* @param int $storeId
109107
* @return $this
110108
*/
111-
public function setStoreId($storeId);
109+
public function setStoreId(?int $storeId): self;
112110

113111
/**
114112
* Get raw request
115113
* @return \Magento\Quote\Model\Quote\Address\RateRequest|null
116114
*/
117-
public function getRawRequest();
115+
public function getRawRequest(): ?RateRequest;
118116

119117
/**
120118
* Set raw request
121119
* @param \Magento\Quote\Model\Quote\Address\RateRequest $rawRequest
122120
* @return $this
123121
*/
124-
public function setRawRequest($rawRequest);
122+
public function setRawRequest(?RateRequest $rawRequest): self;
125123
}

Api/Data/CalculateResultInterface.php

Lines changed: 38 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
use Magento\Framework\Api\ExtensibleDataInterface;
1212

13+
/**
14+
* @api
15+
*/
1316
interface CalculateResultInterface extends ExtensibleDataInterface
1417
{
1518
public const CARRIER = 'carrier';
@@ -32,196 +35,182 @@ interface CalculateResultInterface extends ExtensibleDataInterface
3235
* Get carrier
3336
* @return string|null
3437
*/
35-
public function getCarrier();
38+
public function getCarrier(): ?string;
3639

3740
/**
3841
* Set carrier
39-
* @param string $carrier
4042
* @return $this
4143
*/
42-
public function setCarrier($carrier);
44+
public function setCarrier(?string $carrier): self;
4345

4446
/**
4547
* Get carrier title
4648
* @return string|null
4749
*/
48-
public function getCarrierTitle();
50+
public function getCarrierTitle(): ?string;
4951

5052
/**
5153
* Set carrier title
52-
* @param string $carrierTitle
5354
* @return $this
5455
*/
55-
public function setCarrierTitle($carrierTitle);
56+
public function setCarrierTitle(?string $carrierTitle): self;
5657

5758
/**
5859
* Get method
5960
* @return string|null
6061
*/
61-
public function getMethod();
62+
public function getMethod(): ?string;
6263

6364
/**
6465
* Set method
65-
* @param string $method
6666
* @return $this
6767
*/
68-
public function setMethod($method);
68+
public function setMethod(?string $method): self;
6969

7070
/**
7171
* Get method title
7272
* @return string|null
7373
*/
74-
public function getMethodTitle();
74+
public function getMethodTitle(): ?string;
7575

7676
/**
7777
* Set method title
78-
* @param string $methodTitle
7978
* @return $this
8079
*/
81-
public function setMethodTitle($methodTitle);
80+
public function setMethodTitle(?string $methodTitle): self;
8281

8382
/**
8483
* Get description
8584
* @return string|null
8685
*/
87-
public function getDescription();
86+
public function getDescription(): ?string;
8887

8988
/**
9089
* Set description
91-
* @param string $description
9290
* @return $this
9391
*/
94-
public function setDescription($description);
92+
public function setDescription(?string $description): self;
9593

9694
/**
9795
* Get price
9896
* @return float|null
9997
*/
100-
public function getPrice();
98+
public function getPrice(): ?float;
10199

102100
/**
103101
* Set price
104-
* @param float $price
105102
* @return $this
106103
*/
107-
public function setPrice($price);
104+
public function setPrice(?float $price): self;
108105

109106
/**
110107
* Get cost
111108
* @return float|null
112109
*/
113-
public function getCost();
110+
public function getCost(): ?float;
114111

115112
/**
116113
* Set cost
117-
* @param float $cost
118114
* @return $this
119115
*/
120-
public function setCost($cost);
116+
public function setCost(?float $cost): self;
121117

122118
/**
123119
* Get estimate date
124-
* @return string[]|null
120+
* @return string|null
125121
*/
126-
public function getEstimateDate();
122+
public function getEstimateDate(): ?string;
127123

128124
/**
129125
* Set estimate date
130-
* @param string[] $estimateDate
131126
* @return $this
132127
*/
133-
public function setEstimateDate($estimateDate);
128+
public function setEstimateDate(?string $estimateDate): self;
134129

135130
/**
136131
* Get estimate time
137-
* @return string[]|null
132+
* @return string|null
138133
*/
139-
public function getEstimateTime();
134+
public function getEstimateTime(): ?string;
140135

141136
/**
142137
* Set estimate time
143-
* @param string[] $estimateTime
144138
* @return $this
145139
*/
146-
public function setEstimateTime($estimateTime);
140+
public function setEstimateTime(?string $estimateTime): self;
147141

148142
/**
149143
* Get estimate
150144
* @return int|null
151145
*/
152-
public function getEstimate();
146+
public function getEstimate(): ?int;
153147

154148
/**
155149
* Set estimate
156-
* @param int $estimate
157150
* @return $this
158151
*/
159-
public function setEstimate($estimate);
152+
public function setEstimate(?int $estimate): self;
160153

161154
/**
162155
* Get pickup points
163156
* @return \Mygento\Shipment\Api\Data\PointInterface[]|null
164157
*/
165-
public function getPickupPoints();
158+
public function getPickupPoints(): ?array;
166159

167160
/**
168161
* Set pickup points
169-
* @param \Mygento\Shipment\Api\Data\PointInterface[] $pickupPoints
162+
* @param \Mygento\Shipment\Api\Data\PointInterface[]|null $pickupPoints
170163
* @return $this
171164
*/
172-
public function setPickupPoints($pickupPoints);
165+
public function setPickupPoints(?array $pickupPoints): self;
173166

174167
/**
175168
* Get latitude
176169
* @return string|null
177170
*/
178-
public function getLatitude();
171+
public function getLatitude(): ?string;
179172

180173
/**
181174
* Set latitude
182-
* @param string $latitude
183175
* @return $this
184176
*/
185-
public function setLatitude($latitude);
177+
public function setLatitude(?string $latitude): self;
186178

187179
/**
188-
* Get error
189-
* @return bool|null
180+
* Is error
181+
* @return bool
190182
*/
191-
public function getError();
183+
public function isError(): bool;
192184

193185
/**
194186
* Set error
195-
* @param bool $error
196187
* @return $this
197188
*/
198-
public function setError($error);
189+
public function setError(bool $error): self;
199190

200191
/**
201192
* Get error message
202193
* @return string|null
203194
*/
204-
public function getErrorMessage();
195+
public function getErrorMessage(): ?string;
205196

206197
/**
207198
* Set error message
208-
* @param string $errorMessage
209199
* @return $this
210200
*/
211-
public function setErrorMessage($errorMessage);
201+
public function setErrorMessage(?string $errorMessage): self;
212202

213203
/**
214204
* Get longitude
215205
* @return string|null
216206
*/
217-
public function getLongitude();
207+
public function getLongitude(): ?string;
218208

219209
/**
220210
* Set longitude
221-
* @param string $longitude
222211
* @return $this
223212
*/
224-
public function setLongitude($longitude);
213+
public function setLongitude(?string $longitude): self;
225214

226215
/**
227216
* Retrieve existing extension attributes object or create a new one.

0 commit comments

Comments
 (0)