-
-
Notifications
You must be signed in to change notification settings - Fork 199
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
Showing
22 changed files
with
280 additions
and
141 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
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
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
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
<?php | ||
|
||
namespace App\SendInBlue; | ||
|
||
class AttributesEnum | ||
{ | ||
public const FIELD_EMAIL = 'EMAIL'; | ||
|
||
public const FIELD_FIRST_NAME = 'PRENOM'; | ||
public const FIELD_LAST_NAME = 'NOM'; | ||
|
||
public const FIELD_BIRTHDATE = 'DATE_NAISSANCE'; | ||
public const FIELD_PHONE = 'PHONE'; | ||
|
||
public const FIELD_CITY = 'VILLE'; | ||
public const FIELD_POSTAL_CODE = 'CODE_POSTAL'; | ||
public const FIELD_COUNTRY = 'PAYS'; | ||
|
||
public const FIELD_SOURCE = 'SOURCE'; | ||
public const FIELD_STATUS = 'STATUS'; | ||
public const FIELD_CREATED_AT = 'CREATED_AT'; | ||
public const FIELD_UPDATED_AT = 'UPDATED_AT'; | ||
public const FIELD_ACTIVATED_AT = 'ACTIVATED_AT'; | ||
|
||
public const FIELD_SUBSCRIPTION_TYPES = 'SUBSCRIPTION_TYPES'; | ||
|
||
public const FIELD_ACTION_TERRAIN = 'ACTION_TERRAIN'; | ||
public const FIELD_CAMPAGNE_NUMERIQUE = 'CAMPAGNE_NUMERIQUE'; | ||
public const FIELD_PROCHES = 'CONVAINCRE_PROCHE'; | ||
public const FIELD_INTERESTS_UPDATED_AT = 'INTERESTS_UPDATED_AT'; | ||
|
||
public const FIELD_MAIL_CONTACT = 'MAIL_CONTACT'; | ||
public const FIELD_PHONE_CONTACT = 'PHONE_CONTACT'; | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/SendInBlue/ClientInterface.php → src/SendInBlue/Client/ClientInterface.php
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
|
||
namespace App\SendInBlue; | ||
namespace App\SendInBlue\Client; | ||
|
||
interface ClientInterface | ||
{ | ||
|
2 changes: 1 addition & 1 deletion
2
...Contact/ContactSynchronisationCommand.php → ...Command/ContactSynchronisationCommand.php
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,7 @@ | ||
<?php | ||
|
||
namespace App\SendInBlue; | ||
|
||
interface ContactInterface | ||
{ | ||
} |
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,11 @@ | ||
<?php | ||
|
||
namespace App\SendInBlue\Exception; | ||
|
||
class UnexpectedTypeException extends \RuntimeException | ||
{ | ||
public function __construct($value, string $expectedType) | ||
{ | ||
parent::__construct(sprintf('Expected argument of type "%s", "%s" given', $expectedType, \is_object($value) ? \get_class($value) : \gettype($value))); | ||
} | ||
} |
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
Oops, something went wrong.