/** * Updates an Simplify_Invoice object. * * The properties that can be updated: * <dl style="padding-left:10px;"> * <dt><tt>status</tt></dt> <dd>New status of the invoice. [valid values: PAID] <strong>required </strong></dd></dl> * @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> * @return Invoice a Invoice object. */ public function updateInvoice($authentication = null) { $args = func_get_args(); $authentication = Simplify_PaymentsApi::buildAuthenticationObject($authentication, $args, 1); $object = Simplify_PaymentsApi::updateObject($this, $authentication); return $object; }
/** * Updates an Simplify_InvoiceItem object. * * The properties that can be updated: * <ul> * <li>amount </li> * * <li>currency </li> * * <li>description </li> * * * </ul> * @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 * @return InvoiceItem a InvoiceItem object. */ public function updateInvoiceItem($publicKey = null, $privateKey = null) { $object = Simplify_PaymentsApi::updateObject($this, $publicKey, $privateKey); return $object; }
/** * Updates an Simplify_Subscription object. * * The properties that can be updated: * <ul> * <li>amount </li> * * <li>coupon </li> * * <li>currency </li> * * <li>frequency </li> * * * * <li>name </li> * * <li>plan </li> * * <li>prorate <strong>(required)</strong></li> * * <li>quantity </li> * </ul> * @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 * @return Subscription a Subscription object. */ public function updateSubscription($publicKey = null, $privateKey = null) { $object = Simplify_PaymentsApi::updateObject($this, $publicKey, $privateKey); return $object; }