53 lines
1.0 KiB
PHP
53 lines
1.0 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Stripe Delete Invoice Item Request.
|
||
|
|
*/
|
||
|
|
namespace Omnipay\Stripe\Message;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Stripe Delete Invoice Item Request.
|
||
|
|
*
|
||
|
|
* @link https://stripe.com/docs/api#delete_invoiceitem
|
||
|
|
*/
|
||
|
|
class DeleteInvoiceItemRequest extends AbstractRequest
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Get the invoice-item reference.
|
||
|
|
*
|
||
|
|
* @return string
|
||
|
|
*/
|
||
|
|
public function getInvoiceItemReference()
|
||
|
|
{
|
||
|
|
return $this->getParameter('invoiceItemReference');
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Set the set invoice-item reference.
|
||
|
|
*
|
||
|
|
* @return DeleteInvoiceItemRequest provides a fluent interface.
|
||
|
|
*/
|
||
|
|
public function setInvoiceItemReference($value)
|
||
|
|
{
|
||
|
|
return $this->setParameter('invoiceItemReference', $value);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getData()
|
||
|
|
{
|
||
|
|
$this->validate('invoiceItemReference');
|
||
|
|
$data = array();
|
||
|
|
|
||
|
|
return $data;
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getEndpoint()
|
||
|
|
{
|
||
|
|
return $this->endpoint.'/invoiceitems/'.$this->getInvoiceItemReference();
|
||
|
|
}
|
||
|
|
|
||
|
|
public function getHttpMethod()
|
||
|
|
{
|
||
|
|
return 'DELETE';
|
||
|
|
}
|
||
|
|
}
|