Skip to content

Commit

Permalink
add is_sync to the store
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloebiz committed May 9, 2017
1 parent f2b005d commit 660b536
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ebizmarts/mailchimp-lib",
"type": "library",
"version": "3.0.9",
"version": "3.0.10",
"description": "API client library for the MailChimp",
"keywords": ["email", "api","mailchimp"],
"homepage": "https://github.com/ebizmarts/mailchimp-lib",
Expand Down
5 changes: 3 additions & 2 deletions src/Mailchimp/EcommerceStores.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Mailchimp_EcommerceStore extends Mailchimp_Abstract
* @throws Mailchimp_HttpError
*/
public function add($id, $listId, $name, $currencyCode, $platform = null, $domain = null, $emailAddress = null, $moneyFormat = null,
$primaryLocale=null, $timezone = null,$phone=null,$address=null)
$primaryLocale=null, $timezone = null,$phone=null,$address=null,$is_sync=null)
{
$_params = array('id'=>$id,'list_id'=>$listId,'name'=>$name,'currency_code'=>$currencyCode);
if($platform) $_params['platform'] = $platform;
Expand Down Expand Up @@ -86,7 +86,7 @@ public function get($id=null,$fields=null,$excludeFields=null,$count=null,$offse
* @throws Mailchimp_HttpError
*/
public function edit($storeId,$platform = null, $domain = null, $name = null ,$emailAddress = null,$currencyCode, $moneyFormat = null,
$primaryLocale=null, $timezone = null,$phone=null,$address=null)
$primaryLocale=null, $timezone = null,$phone=null,$address=null, $is_sync=null)
{
$_params=array();
if($platform) $_params['platform'] = $platform;
Expand All @@ -99,6 +99,7 @@ public function edit($storeId,$platform = null, $domain = null, $name = null ,$e
if($timezone) $_params['timezone'] = $timezone;
if($phone) $_params['phone'] = $phone;
if($address) $_params['address'] = $address;
if($is_sync) $_params['is_syncing'] = $is_sync;
return $this->master->call('ecommerce/stores/'.$storeId, $_params, Mailchimp::PATCH);
}

Expand Down

0 comments on commit 660b536

Please sign in to comment.