Updated Client Detail Header for better mobile fit, lots of progress on stripe pay and some other minor updates

This commit is contained in:
johnny@pittpc.com
2019-09-13 20:33:00 -04:00
parent 5f30dbf9a9
commit 59ce30bd79
178 changed files with 25119 additions and 7 deletions

View 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;
}
}