diff --git a/.changeset/brown-timers-help.md b/.changeset/brown-timers-help.md new file mode 100644 index 00000000..4d0998a5 --- /dev/null +++ b/.changeset/brown-timers-help.md @@ -0,0 +1,5 @@ +--- +"@rebilly/client-php": patch +--- + +SDK Generator updated diff --git a/.changeset/good-news-turn.md b/.changeset/good-news-turn.md new file mode 100644 index 00000000..6d7cb8b1 --- /dev/null +++ b/.changeset/good-news-turn.md @@ -0,0 +1,5 @@ +--- +"@rebilly/client-php": patch +--- + +feat(be): Tampered KYC document detection Rebilly/rebilly#7876 diff --git a/.changeset/modern-geckos-dream.md b/.changeset/modern-geckos-dream.md new file mode 100644 index 00000000..e490c237 --- /dev/null +++ b/.changeset/modern-geckos-dream.md @@ -0,0 +1,5 @@ +--- +"@rebilly/client-php": patch +--- + +revert(be): Tampered KYC document detection Rebilly/rebilly#8078 diff --git a/.changeset/slow-owls-burn.md b/.changeset/slow-owls-burn.md new file mode 100644 index 00000000..8adda450 --- /dev/null +++ b/.changeset/slow-owls-burn.md @@ -0,0 +1,5 @@ +--- +"@rebilly/client-php": patch +--- + +fix(api): Fix missing gate2way mapping Rebilly/rebilly#8029 diff --git a/src/Model/Gate2way.php b/src/Model/Gate2way.php new file mode 100644 index 00000000..3fc5181e --- /dev/null +++ b/src/Model/Gate2way.php @@ -0,0 +1,61 @@ + 'gate2way', + ] + $data); + + if (array_key_exists('credentials', $data)) { + $this->setCredentials($data['credentials']); + } + } + + public static function from(array $data = []): self + { + return new self($data); + } + + public function getCredentials(): Gate2wayCredentials + { + return $this->fields['credentials']; + } + + public function setCredentials(Gate2wayCredentials|array $credentials): static + { + if (!($credentials instanceof Gate2wayCredentials)) { + $credentials = Gate2wayCredentials::from($credentials); + } + + $this->fields['credentials'] = $credentials; + + return $this; + } + + public function jsonSerialize(): array + { + $data = []; + if (array_key_exists('credentials', $this->fields)) { + $data['credentials'] = $this->fields['credentials']->jsonSerialize(); + } + + return parent::jsonSerialize() + $data; + } +} diff --git a/src/Model/Gate2wayCredentials.php b/src/Model/Gate2wayCredentials.php new file mode 100644 index 00000000..48943600 --- /dev/null +++ b/src/Model/Gate2wayCredentials.php @@ -0,0 +1,73 @@ +setApiKey($data['apiKey']); + } + if (array_key_exists('apiSecret', $data)) { + $this->setApiSecret($data['apiSecret']); + } + } + + public static function from(array $data = []): self + { + return new self($data); + } + + public function getApiKey(): string + { + return $this->fields['apiKey']; + } + + public function setApiKey(string $apiKey): static + { + $this->fields['apiKey'] = $apiKey; + + return $this; + } + + public function getApiSecret(): string + { + return $this->fields['apiSecret']; + } + + public function setApiSecret(string $apiSecret): static + { + $this->fields['apiSecret'] = $apiSecret; + + return $this; + } + + public function jsonSerialize(): array + { + $data = []; + if (array_key_exists('apiKey', $this->fields)) { + $data['apiKey'] = $this->fields['apiKey']; + } + if (array_key_exists('apiSecret', $this->fields)) { + $data['apiSecret'] = $this->fields['apiSecret']; + } + + return $data; + } +} diff --git a/src/Model/GatewayAccount.php b/src/Model/GatewayAccount.php index d87274ac..7a83255f 100644 --- a/src/Model/GatewayAccount.php +++ b/src/Model/GatewayAccount.php @@ -1492,6 +1492,8 @@ public static function from(array $data = []): self return Forte::from($data); case 'FundSend': return FundSend::from($data); + case 'gate2way': + return Gate2way::from($data); case 'GET': return GET::from($data); case 'Gigadat':