-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
964 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace eSIM\eSIMCoreClient\Dto\Request; | ||
|
||
class CurrentSimPackageRequest extends BaseRequest | ||
{ | ||
/** | ||
* @var string | ||
* @example 3868e07b-22b7-4464-96a3-2a9c31a13b76 | ||
*/ | ||
private string $trackingNumber; | ||
|
||
/** | ||
* @var array|null | ||
* @example ['customParameter1' => 'customValue1', 'customParameter2' => 'customValue2'] | ||
*/ | ||
private ?array $customParams; | ||
|
||
public static function builder(): static | ||
{ | ||
return new static(); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getTrackingNumber(): string | ||
{ | ||
return $this->trackingNumber; | ||
} | ||
|
||
/** | ||
* @param string $trackingNumber | ||
* @return CurrentSimPackageRequest | ||
*/ | ||
public function setTrackingNumber(string $trackingNumber): CurrentSimPackageRequest | ||
{ | ||
$this->trackingNumber = $trackingNumber; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return array|null | ||
*/ | ||
public function getCustomParams(): ?array | ||
{ | ||
return $this->customParams; | ||
} | ||
|
||
/** | ||
* @param array|null $customParams | ||
* @return CurrentSimPackageRequest | ||
*/ | ||
public function setCustomParams(?array $customParams): CurrentSimPackageRequest | ||
{ | ||
$this->customParams = $customParams; | ||
return $this; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace eSIM\eSIMCoreClient\Dto\Response\SimPackage; | ||
|
||
class CurrentSimPackageDto | ||
{ | ||
/** | ||
* @var float | ||
*/ | ||
private float $dataUsage; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private string $status; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private string $activatedDate; | ||
|
||
/** | ||
* @var string|null | ||
*/ | ||
private ?string $endDate; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private string $expiredDate; | ||
|
||
/** | ||
* @var SimDetailDto | ||
*/ | ||
private SimDetailDto $simDetail; | ||
|
||
/** | ||
* @var PackageDetailDto | ||
*/ | ||
private PackageDetailDto $packageDetail; | ||
|
||
/** | ||
* @return static | ||
*/ | ||
public static function builder(): static | ||
{ | ||
return new static(); | ||
} | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getDataUsage(): float | ||
{ | ||
return $this->dataUsage; | ||
} | ||
|
||
/** | ||
* @param float $dataUsage | ||
* @return $this | ||
*/ | ||
public function setDataUsage(float $dataUsage): self | ||
{ | ||
$this->dataUsage = $dataUsage; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getStatus(): string | ||
{ | ||
return $this->status; | ||
} | ||
|
||
/** | ||
* @param string $status | ||
* @return $this | ||
*/ | ||
public function setStatus(string $status): self | ||
{ | ||
$this->status = $status; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getActivatedDate(): string | ||
{ | ||
return $this->activatedDate; | ||
} | ||
|
||
/** | ||
* @param string $activatedDate | ||
* @return $this | ||
*/ | ||
public function setActivatedDate(string $activatedDate): self | ||
{ | ||
$this->activatedDate = $activatedDate; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string|null | ||
*/ | ||
public function getEndDate(): ?string | ||
{ | ||
return $this->endDate; | ||
} | ||
|
||
/** | ||
* @param string|null $endDate | ||
* @return $this | ||
*/ | ||
public function setEndDate(?string $endDate): self | ||
{ | ||
$this->endDate = $endDate; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getExpiredDate(): string | ||
{ | ||
return $this->expiredDate; | ||
} | ||
|
||
/** | ||
* @param string $expiredDate | ||
* @return $this | ||
*/ | ||
public function setExpiredDate(string $expiredDate): self | ||
{ | ||
$this->expiredDate = $expiredDate; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return SimDetailDto | ||
*/ | ||
public function getSimDetail(): SimDetailDto | ||
{ | ||
return $this->simDetail; | ||
} | ||
|
||
/** | ||
* @param SimDetailDto $simDetail | ||
* @return $this | ||
*/ | ||
public function setSimDetail(SimDetailDto $simDetail): self | ||
{ | ||
$this->simDetail = $simDetail; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return PackageDetailDto | ||
*/ | ||
public function getPackageDetail(): PackageDetailDto | ||
{ | ||
return $this->packageDetail; | ||
} | ||
|
||
/** | ||
* @param PackageDetailDto $packageDetail | ||
* @return CurrentSimPackageDto | ||
*/ | ||
public function setPackageDetail(PackageDetailDto $packageDetail): CurrentSimPackageDto | ||
{ | ||
$this->packageDetail = $packageDetail; | ||
return $this; | ||
} | ||
} |
Oops, something went wrong.