mirror of
https://github.com/itflow-org/itflow
synced 2026-03-06 13:54:51 +00:00
Updated Client Detail Header for better mobile fit, lots of progress on stripe pay and some other minor updates
This commit is contained in:
63
vendor/stripe-php-7.0.2/lib/SubscriptionItem.php
vendored
Normal file
63
vendor/stripe-php-7.0.2/lib/SubscriptionItem.php
vendored
Normal file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
|
||||
namespace Stripe;
|
||||
|
||||
/**
|
||||
* Class SubscriptionItem
|
||||
*
|
||||
* @property string $id
|
||||
* @property string $object
|
||||
* @property mixed $billing_thresholds
|
||||
* @property int $created
|
||||
* @property StripeObject $metadata
|
||||
* @property Plan $plan
|
||||
* @property int $quantity
|
||||
* @property string $subscription
|
||||
* @property array $tax_rates
|
||||
*
|
||||
* @package Stripe
|
||||
*/
|
||||
class SubscriptionItem extends ApiResource
|
||||
{
|
||||
const OBJECT_NAME = "subscription_item";
|
||||
|
||||
const PATH_USAGE_RECORDS = '/usage_records';
|
||||
|
||||
use ApiOperations\All;
|
||||
use ApiOperations\Create;
|
||||
use ApiOperations\Delete;
|
||||
use ApiOperations\NestedResource;
|
||||
use ApiOperations\Retrieve;
|
||||
use ApiOperations\Update;
|
||||
|
||||
/**
|
||||
* @param string|null $id The ID of the subscription item on which to create the usage record.
|
||||
* @param array|null $params
|
||||
* @param array|string|null $opts
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return ApiResource
|
||||
*/
|
||||
public static function createUsageRecord($id, $params = null, $opts = null)
|
||||
{
|
||||
return self::_createNestedResource($id, static::PATH_USAGE_RECORDS, $params, $opts);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array|null $params
|
||||
* @param array|string|null $options
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException if the request fails
|
||||
*
|
||||
* @return Collection The list of usage record summaries.
|
||||
*/
|
||||
public function usageRecordSummaries($params = null, $options = null)
|
||||
{
|
||||
$url = $this->instanceUrl() . '/usage_record_summaries';
|
||||
list($response, $opts) = $this->_request('get', $url, $params, $options);
|
||||
$obj = Util\Util::convertToStripeObject($response, $opts);
|
||||
$obj->setLastResponse($response);
|
||||
return $obj;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user