dolibarr/htdocs/includes/stripe/lib/SubscriptionItem.php

46 lines
1.1 KiB
PHP
Raw Normal View History

2017-04-18 05:44:08 +02:00
<?php
namespace Stripe;
/**
* Class SubscriptionItem
*
2018-03-06 13:52:56 +01:00
* @property string $id
* @property string $object
2019-05-03 02:22:27 +02:00
* @property mixed $billing_thresholds
2018-03-06 13:52:56 +01:00
* @property int $created
* @property StripeObject $metadata
* @property Plan $plan
* @property int $quantity
* @property string $subscription
2019-05-03 02:22:27 +02:00
* @property array $tax_rates
2018-03-06 13:52:56 +01:00
*
2017-04-18 05:44:08 +02:00
* @package Stripe
*/
class SubscriptionItem extends ApiResource
{
2019-05-03 02:22:27 +02:00
const OBJECT_NAME = "subscription_item";
2018-03-06 13:52:56 +01:00
use ApiOperations\All;
use ApiOperations\Create;
use ApiOperations\Delete;
use ApiOperations\Retrieve;
use ApiOperations\Update;
2017-04-18 05:44:08 +02:00
/**
2019-05-03 02:22:27 +02:00
* @param array|null $params
* @param array|string|null $options
2017-04-18 05:44:08 +02:00
*
2019-05-03 02:22:27 +02:00
* @return Collection The list of source transactions.
2017-04-18 05:44:08 +02:00
*/
2019-05-03 02:22:27 +02:00
public function usageRecordSummaries($params = null, $options = null)
2017-04-18 05:44:08 +02:00
{
2019-05-03 02:22:27 +02:00
$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;
2017-04-18 05:44:08 +02:00
}
}