All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
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';
|
|
}
|
|
}
|