Esempio n. 1
0
 /**
  * @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;
 }
Esempio n. 2
0
 /**
  * @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;
 }
Esempio n. 3
0
 /**
  * @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;
 }
Esempio n. 4
0
 /**
  * @param string $sdk
  * @return $this
  */
 public function setSdk($sdk)
 {
     Preconditions::checkStringNonEmpty($sdk, 'sdk');
     $this->sdk = $sdk;
     return $this;
 }
Esempio n. 5
0
 /**
  * @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;
 }