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

49 lines
1.0 KiB
PHP
Raw Normal View History

2017-04-18 05:44:08 +02:00
<?php
namespace Stripe;
/**
* Class Recipient
*
* @package Stripe
2019-05-03 02:22:27 +02:00
*
* @property string $id
* @property string $object
* @property mixed $active_account
* @property Collection $cards
* @property int $created
* @property string $default_card
* @property string $description
* @property string $email
* @property bool $livemode
* @property StripeObject $metadata
* @property string $migrated_to
* @property string $name
* @property string $rolled_back_from
* @property string $type
2017-04-18 05:44:08 +02:00
*/
class Recipient extends ApiResource
{
2019-05-03 02:22:27 +02:00
const OBJECT_NAME = "recipient";
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
/**
* @param array|null $params
*
* @return Collection of the Recipient's Transfers
*/
public function transfers($params = null)
{
2018-03-06 13:52:56 +01:00
$params = $params ?: [];
2017-04-18 05:44:08 +02:00
$params['recipient'] = $this->id;
$transfers = Transfer::all($params, $this->_opts);
return $transfers;
}
}