Esempio n. 1
0
 /**
  * Deletes an Simplify_Coupon object.
  *
  * @param     $authentication -  information used for the API call.  If no value is passed the global keys Simplify::public_key and Simplify::private_key are used.  <i>For backwards compatibility the public and private keys may be passed instead of the authentication object.</i>
  */
 public function deleteCoupon($authentication = null)
 {
     $args = func_get_args();
     $authentication = Simplify_PaymentsApi::buildAuthenticationObject($authentication, $args, 1);
     $obj = Simplify_PaymentsApi::deleteObject($this, $authentication);
     $this->properties = null;
     return true;
 }
Esempio n. 2
0
 /**
  * Deletes an Simplify_InvoiceItem object.
  *
  * @param     string publicKey Public key. If null, the value of static Simplify::$publicKey will be used
  * @param     string privateKey Private key. If null, the value of Simplify::$privateKey will be used
  */
 public function deleteInvoiceItem($publicKey = null, $privateKey = null)
 {
     $obj = Simplify_PaymentsApi::deleteObject($this, $publicKey, $privateKey);
     $this->properties = null;
     return true;
 }