You are here

public function MailchimpEcommerce::updateStore in Mailchimp 8

Updates a store.

Parameters

string $store_id: The unique identifier for the store.

string $name: The name of the store.

string $currency_code: The three-letter ISO 4217 code for the currency that the store accepts.

array $parameters: Associative array of optional request parameters.

bool $batch: TRUE to create a new pending batch operation.

Return value

object The API store response object.

See also

http://developer.mailchimp.com/documentation/mailchimp/reference/ecommer...

File

lib/mailchimp-api-php/src/MailchimpEcommerce.php, line 95

Class

MailchimpEcommerce
Mailchimp Ecommerce library.

Namespace

Mailchimp

Code

public function updateStore($store_id, $name, $currency_code, $parameters = [], $batch = FALSE) {
  $tokens = [
    'store_id' => $store_id,
  ];
  $parameters += [
    'name' => $name,
    'currency_code' => $currency_code,
  ];
  return $this
    ->request('PATCH', '/ecommerce/stores/{store_id}', $tokens, $parameters, $batch);
}