diff --git a/Client/KycAttachmentClient.php b/Client/KycAttachmentClient.php new file mode 100644 index 0000000..8a78cf0 --- /dev/null +++ b/Client/KycAttachmentClient.php @@ -0,0 +1,65 @@ + $value) { + $multiparts[] = [ + 'name' => 'file-'.$i, + 'contents' => $value, + 'filename' => $key + ]; + $i ++; + } + + $res = $this->action('POST', $uri, ['multipart' => $multiparts], ['Content-Type'=>null]); + + return $this->serializer->deserialize($res, 'Smoney\Smoney\Facade\KycFacade', 'json'); + } + + /** + * @param string $appUserId + * @param string $kycAtatchmentId + * + * @return KycAttachmentFacade + */ + public function get($appUserId, $kycAttachmentId) + { + $uri = 'users/'.$appUserId.'/attachments/'.$kycAttachmentId; + $res = $this->action('GET', $uri); + + return $this->serializer->deserialize($res, 'Smoney\Smoney\Facade\KycAttachmentFacade', 'json'); + } + + /** + * @param string $appUserId + * @param string $kycAtatchmentId + * + * @return void + */ + public function delete($appUserId, $kycAttachmentId) + { + $uri = 'users/'.$appUserId.'/attachments/'.$kycAttachmentId; + $res = $this->action('DELETE', $uri); + } +} diff --git a/Facade/CompanyFacade.php b/Facade/CompanyFacade.php index 7a58585..734d74b 100644 --- a/Facade/CompanyFacade.php +++ b/Facade/CompanyFacade.php @@ -20,4 +20,11 @@ class CompanyFacade * @Type("string") */ public $siret; + + /** + * @var string $nafCode + * @SerializedName("NAFCode") + * @Type("string") + */ + public $nafCode; } diff --git a/Facade/KycAttachmentFacade.php b/Facade/KycAttachmentFacade.php new file mode 100644 index 0000000..2888657 --- /dev/null +++ b/Facade/KycAttachmentFacade.php @@ -0,0 +1,89 @@ +") + */ + public $treatmentDate; + + /** + * @var DateTime $receivedDate + * @SerializedName("ReceivedDate") + * @Type("DateTime<'Y-m-d\TH:i:s+'>") + */ + public $receivedDate; + + /** + * @var string $href + * @SerializedName("Href") + * @Type("href") + */ + public $href; +} diff --git a/Facade/UserCardRegistrationFacade.php b/Facade/UserCardRegistrationFacade.php index 1149933..bce4511 100644 --- a/Facade/UserCardRegistrationFacade.php +++ b/Facade/UserCardRegistrationFacade.php @@ -23,4 +23,11 @@ class UserCardRegistrationFacade * @Type("string") */ public $urlReturn; -} \ No newline at end of file + + /** + * @var string $urlCallback + * @SerializedName("UrlCallback") + * @Type("string") + */ + public $urlCallback; +} diff --git a/Facade/VoucherCopyFacade.php b/Facade/VoucherCopyFacade.php index 5c5c8c6..41b1795 100644 --- a/Facade/VoucherCopyFacade.php +++ b/Facade/VoucherCopyFacade.php @@ -44,4 +44,46 @@ class VoucherCopyFacade * @Type("string") */ public $href; + + /** + * @var string $contentType + * @SerializedName("ContentType") + * @Type("string") + */ + public $contentType; + + /** + * @var string $status + * @SerializedName("Status") + * @Type("integer") + */ + public $status; + + /** + * @var string $message + * @SerializedName("Message") + * @Type("string") + */ + public $message; + + /** + * @var string $additionalStatus + * @SerializedName("AdditionalStatus") + * @Type("integer") + */ + public $additionnalStatus; + + /** + * @var string $treatmentDate + * @SerializedName("TreatmentDate") + * @Type("DateTime<'Y-m-d\TH:i:s+'>") + */ + public $treatmentDate; + + /** + * @var string $receivedDate + * @SerializedName("ReceivedDate") + * @Type("DateTime<'Y-m-d\TH:i:s+'>") + */ + public $receivedDate; }