/** * @param string $externalId User provided customer id (not used by purchased.at). * @return Customer */ public function setExternalId($externalId) { if (!is_null($externalId)) { Preconditions::checkStringNonEmpty($externalId, 'externalId'); } $this->externalId = $externalId; return $this; }
/** * @param string $notification The API URL to post transaction status changes to. * @return Response */ public function setNotification($notification) { if (!is_null($notification)) { Preconditions::checkStringNonEmpty($notification, 'notification'); } $this->notification = $notification; return $this; }
/** * @param string $itemSku Preselect the specified item in purchase dialog by SKU. * @return Select */ public function setItemSku($itemSku) { if (!is_null($itemSku)) { Preconditions::checkStringNonEmpty($itemSku, 'itemSku'); } $this->itemSku = $itemSku; return $this; }
/** * @param string $sdk * @return $this */ public function setSdk($sdk) { Preconditions::checkStringNonEmpty($sdk, 'sdk'); $this->sdk = $sdk; return $this; }
/** * @param $lang string ISO2 language code * @param $name string name of item in specified language * @return $this */ public function addName($lang, $name) { Preconditions::checkIso2Language($lang, 'lang'); Preconditions::checkStringNonEmpty($name, 'name'); $this->name[$lang] = $name; return $this; }