-
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.
- Loading branch information
andreals
committed
Oct 8, 2024
1 parent
054c1e8
commit be295dc
Showing
8 changed files
with
218 additions
and
25 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
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,21 @@ | ||
|
||
# Get Integration Response | ||
|
||
## Structure | ||
|
||
`GetIntegrationResponse` | ||
|
||
## Fields | ||
|
||
| Name | Type | Tags | Description | Getter | Setter | | ||
| --- | --- | --- | --- | --- | --- | | ||
| `code` | `?string` | Optional | - | getCode(): ?string | setCode(?string code): void | | ||
|
||
## Example (as JSON) | ||
|
||
```json | ||
{ | ||
"code": "code2" | ||
} | ||
``` | ||
|
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
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,57 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* PagarmeApiSDKLib | ||
* | ||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). | ||
*/ | ||
|
||
namespace PagarmeApiSDKLib\Models\Builders; | ||
|
||
use Core\Utils\CoreHelper; | ||
use PagarmeApiSDKLib\Models\GetIntegrationResponse; | ||
|
||
/** | ||
* Builder for model GetIntegrationResponse | ||
* | ||
* @see GetIntegrationResponse | ||
*/ | ||
class GetIntegrationResponseBuilder | ||
{ | ||
/** | ||
* @var GetIntegrationResponse | ||
*/ | ||
private $instance; | ||
|
||
private function __construct(GetIntegrationResponse $instance) | ||
{ | ||
$this->instance = $instance; | ||
} | ||
|
||
/** | ||
* Initializes a new get integration response Builder object. | ||
*/ | ||
public static function init(): self | ||
{ | ||
return new self(new GetIntegrationResponse()); | ||
} | ||
|
||
/** | ||
* Sets code field. | ||
*/ | ||
public function code(?string $value): self | ||
{ | ||
$this->instance->setCode($value); | ||
return $this; | ||
} | ||
|
||
/** | ||
* Initializes a new get integration response object. | ||
*/ | ||
public function build(): GetIntegrationResponse | ||
{ | ||
return CoreHelper::clone($this->instance); | ||
} | ||
} |
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
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,58 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
/* | ||
* PagarmeApiSDKLib | ||
* | ||
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ). | ||
*/ | ||
|
||
namespace PagarmeApiSDKLib\Models; | ||
|
||
use stdClass; | ||
|
||
class GetIntegrationResponse implements \JsonSerializable | ||
{ | ||
/** | ||
* @var string|null | ||
*/ | ||
private $code; | ||
|
||
/** | ||
* Returns Code. | ||
*/ | ||
public function getCode(): ?string | ||
{ | ||
return $this->code; | ||
} | ||
|
||
/** | ||
* Sets Code. | ||
* | ||
* @maps code | ||
*/ | ||
public function setCode(?string $code): void | ||
{ | ||
$this->code = $code; | ||
} | ||
|
||
/** | ||
* Encode this object to JSON | ||
* | ||
* @param bool $asArrayWhenEmpty Whether to serialize this model as an array whenever no fields | ||
* are set. (default: false) | ||
* | ||
* @return array|stdClass | ||
*/ | ||
#[\ReturnTypeWillChange] // @phan-suppress-current-line PhanUndeclaredClassAttribute for (php < 8.1) | ||
public function jsonSerialize(bool $asArrayWhenEmpty = false) | ||
{ | ||
$json = []; | ||
if (isset($this->code)) { | ||
$json['code'] = $this->code; | ||
} | ||
|
||
return (!$asArrayWhenEmpty && empty($json)) ? new stdClass() : $json; | ||
} | ||
} |
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
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