-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
fb9696d
commit bb402c4
Showing
3 changed files
with
101 additions
and
0 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 |
---|---|---|
|
@@ -50,4 +50,14 @@ public function save_contact( Contact $contact ): SaveContactResponse; | |
* @return GetContactResponse | ||
*/ | ||
public function get_contact_by_email( string $email ): GetContactResponse; | ||
|
||
/** | ||
* Connect PHP based ecommerce platform/store to Omnisend. | ||
* | ||
* @param string $platform must be whitelisted (for additional added value) in Omnisend. | ||
* If you're integrating new platform please contact [email protected] | ||
* | ||
* @return ConnectStoreResponse | ||
*/ | ||
public function connect_store( string $platform ): ConnectStoreResponse; | ||
} |
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,28 @@ | ||
<?php | ||
/** | ||
* Omnisend Client | ||
* | ||
* @package OmnisendClient | ||
*/ | ||
|
||
namespace Omnisend\SDK\V1; | ||
|
||
use WP_Error; | ||
|
||
defined( 'ABSPATH' ) || die( 'no direct access' ); | ||
|
||
class ConnectStoreResponse { | ||
|
||
private WP_Error $wp_error; | ||
|
||
/** | ||
* @param WP_Error $wp_error | ||
*/ | ||
public function __construct( WP_Error $wp_error ) { | ||
$this->wp_error = $wp_error; | ||
} | ||
|
||
public function get_wp_error(): WP_Error { | ||
return $this->wp_error; | ||
} | ||
} |