Skip to content

Commit 4a76d5c

Browse files
committed
fix: updated php-sdk
1 parent 99b75d0 commit 4a76d5c

File tree

82 files changed

+1969
-443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1969
-443
lines changed

src/Model/BillingV1CatalogCatalogItemPriceResource.php

Lines changed: 48 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,47 +19,65 @@
1919

2020
class BillingV1CatalogCatalogItemPriceResource
2121
{
22-
public const string PERIOD_UNIT_DAY = 'day';
23-
public const string PERIOD_UNIT_WEEK = 'week';
24-
public const string PERIOD_UNIT_MONTH = 'month';
25-
public const string PERIOD_UNIT_YEAR = 'year';
26-
public const string PERIOD_UNIT_NONE = 'none';
22+
/**
23+
* @var string
24+
*/
25+
public const PERIOD_UNIT_DAY = 'day';
26+
/**
27+
* @var string
28+
*/
29+
public const PERIOD_UNIT_WEEK = 'week';
30+
/**
31+
* @var string
32+
*/
33+
public const PERIOD_UNIT_MONTH = 'month';
34+
/**
35+
* @var string
36+
*/
37+
public const PERIOD_UNIT_YEAR = 'year';
38+
/**
39+
* @var string
40+
*/
41+
public const PERIOD_UNIT_NONE = 'none';
2742

2843
/**
29-
* @var string $id
44+
* @var string|null $id
3045
*/
3146
private ?string $id;
3247

3348
/**
34-
* @var string $name
49+
* @var string|null $name
3550
*/
3651
private ?string $name;
3752

3853
/**
39-
* @var string $currency
54+
* @var string|null $currency
4055
*/
4156
private ?string $currency;
4257

4358
/**
44-
* @var int $price
59+
* @var int|null $price
4560
*/
4661
private ?int $price;
4762

4863
/**
49-
* @var int $firstPeriodPrice
64+
* @var int|null $firstPeriodPrice
5065
*/
5166
private ?int $firstPeriodPrice;
5267

5368
/**
54-
* @var int $period
69+
* @var int|null $period
5570
*/
5671
private ?int $period;
5772

5873
/**
59-
* @var string $periodUnit
74+
* @var string|null $periodUnit
6075
*/
6176
private ?string $periodUnit;
6277

78+
/**
79+
* @return string|null
80+
*/
6381
public function getId(): ?string
6482
{
6583
return $this->id;
@@ -74,6 +92,9 @@ public function setId(?string $id): self
7492

7593
return $this;
7694
}
95+
/**
96+
* @return string|null
97+
*/
7798
public function getName(): ?string
7899
{
79100
return $this->name;
@@ -88,6 +109,9 @@ public function setName(?string $name): self
88109

89110
return $this;
90111
}
112+
/**
113+
* @return string|null
114+
*/
91115
public function getCurrency(): ?string
92116
{
93117
return $this->currency;
@@ -102,6 +126,9 @@ public function setCurrency(?string $currency): self
102126

103127
return $this;
104128
}
129+
/**
130+
* @return int|null
131+
*/
105132
public function getPrice(): ?int
106133
{
107134
return $this->price;
@@ -116,6 +143,9 @@ public function setPrice(?int $price): self
116143

117144
return $this;
118145
}
146+
/**
147+
* @return int|null
148+
*/
119149
public function getFirstPeriodPrice(): ?int
120150
{
121151
return $this->firstPeriodPrice;
@@ -130,6 +160,9 @@ public function setFirstPeriodPrice(?int $firstPeriodPrice): self
130160

131161
return $this;
132162
}
163+
/**
164+
* @return int|null
165+
*/
133166
public function getPeriod(): ?int
134167
{
135168
return $this->period;
@@ -144,6 +177,9 @@ public function setPeriod(?int $period): self
144177

145178
return $this;
146179
}
180+
/**
181+
* @return string|null
182+
*/
147183
public function getPeriodUnit(): ?string
148184
{
149185
return $this->periodUnit;

src/Model/BillingV1CatalogCatalogItemResource.php

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,19 @@
1919

2020
class BillingV1CatalogCatalogItemResource
2121
{
22+
2223
/**
23-
* @var string $id
24+
* @var string|null $id
2425
*/
2526
private ?string $id;
2627

2728
/**
28-
* @var string $name
29+
* @var string|null $name
2930
*/
3031
private ?string $name;
3132

3233
/**
33-
* @var string $category
34+
* @var string|null $category
3435
*/
3536
private ?string $category;
3637

@@ -40,10 +41,13 @@ class BillingV1CatalogCatalogItemResource
4041
private ?object $metadata = null;
4142

4243
/**
43-
* @var \Hostinger\Model\BillingV1CatalogCatalogItemPriceResource[] $prices
44+
* @var \Hostinger\Model\BillingV1CatalogCatalogItemPriceResource[]|null $prices
4445
*/
4546
private ?array $prices;
4647

48+
/**
49+
* @return string|null
50+
*/
4751
public function getId(): ?string
4852
{
4953
return $this->id;
@@ -58,6 +62,9 @@ public function setId(?string $id): self
5862

5963
return $this;
6064
}
65+
/**
66+
* @return string|null
67+
*/
6168
public function getName(): ?string
6269
{
6370
return $this->name;
@@ -72,6 +79,9 @@ public function setName(?string $name): self
7279

7380
return $this;
7481
}
82+
/**
83+
* @return string|null
84+
*/
7585
public function getCategory(): ?string
7686
{
7787
return $this->category;
@@ -86,6 +96,9 @@ public function setCategory(?string $category): self
8696

8797
return $this;
8898
}
99+
/**
100+
* @return object|null
101+
*/
89102
public function getMetadata(): ?object
90103
{
91104
return $this->metadata;
@@ -100,6 +113,9 @@ public function setMetadata(?object $metadata): self
100113

101114
return $this;
102115
}
116+
/**
117+
* @return \Hostinger\Model\BillingV1CatalogCatalogItemPriceResource[]|null
118+
*/
103119
public function getPrices(): ?array
104120
{
105121
return $this->prices;

src/Model/BillingV1OrderOrderBillingAddressResource.php

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@
1919

2020
class BillingV1OrderOrderBillingAddressResource
2121
{
22+
2223
/**
23-
* @var string $firstName
24+
* @var string|null $firstName
2425
*/
2526
private ?string $firstName;
2627

2728
/**
28-
* @var string $lastName
29+
* @var string|null $lastName
2930
*/
3031
private ?string $lastName;
3132

@@ -70,10 +71,13 @@ class BillingV1OrderOrderBillingAddressResource
7071
private ?string $phone = null;
7172

7273
/**
73-
* @var string $email
74+
* @var string|null $email
7475
*/
7576
private ?string $email;
7677

78+
/**
79+
* @return string|null
80+
*/
7781
public function getFirstName(): ?string
7882
{
7983
return $this->firstName;
@@ -88,6 +92,9 @@ public function setFirstName(?string $firstName): self
8892

8993
return $this;
9094
}
95+
/**
96+
* @return string|null
97+
*/
9198
public function getLastName(): ?string
9299
{
93100
return $this->lastName;
@@ -102,6 +109,9 @@ public function setLastName(?string $lastName): self
102109

103110
return $this;
104111
}
112+
/**
113+
* @return string|null
114+
*/
105115
public function getCompany(): ?string
106116
{
107117
return $this->company;
@@ -116,6 +126,9 @@ public function setCompany(?string $company): self
116126

117127
return $this;
118128
}
129+
/**
130+
* @return string|null
131+
*/
119132
public function getAddress1(): ?string
120133
{
121134
return $this->address1;
@@ -130,6 +143,9 @@ public function setAddress1(?string $address1): self
130143

131144
return $this;
132145
}
146+
/**
147+
* @return string|null
148+
*/
133149
public function getAddress2(): ?string
134150
{
135151
return $this->address2;
@@ -144,6 +160,9 @@ public function setAddress2(?string $address2): self
144160

145161
return $this;
146162
}
163+
/**
164+
* @return string|null
165+
*/
147166
public function getCity(): ?string
148167
{
149168
return $this->city;
@@ -158,6 +177,9 @@ public function setCity(?string $city): self
158177

159178
return $this;
160179
}
180+
/**
181+
* @return string|null
182+
*/
161183
public function getState(): ?string
162184
{
163185
return $this->state;
@@ -172,6 +194,9 @@ public function setState(?string $state): self
172194

173195
return $this;
174196
}
197+
/**
198+
* @return string|null
199+
*/
175200
public function getZip(): ?string
176201
{
177202
return $this->zip;
@@ -186,6 +211,9 @@ public function setZip(?string $zip): self
186211

187212
return $this;
188213
}
214+
/**
215+
* @return string|null
216+
*/
189217
public function getCountry(): ?string
190218
{
191219
return $this->country;
@@ -200,6 +228,9 @@ public function setCountry(?string $country): self
200228

201229
return $this;
202230
}
231+
/**
232+
* @return string|null
233+
*/
203234
public function getPhone(): ?string
204235
{
205236
return $this->phone;
@@ -214,6 +245,9 @@ public function setPhone(?string $phone): self
214245

215246
return $this;
216247
}
248+
/**
249+
* @return string|null
250+
*/
217251
public function getEmail(): ?string
218252
{
219253
return $this->email;

0 commit comments

Comments
 (0)