standard
or instant
. instant
is only supported for payouts to debit cards. (See Instant payouts for marketplaces for more information.)
* @property null|string|\Stripe\Payout $original_payout If the payout reverses another, this is the ID of the original payout.
+ * @property string $reconciliation_status If completed
, the Balance Transactions API may be used to list all Balance Transactions that were paid out in this payout.
* @property null|string|\Stripe\Payout $reversed_by If the payout was reversed, this is the ID of the payout that reverses this payout.
* @property string $source_type The source balance this payout came from. One of card
, fpx
, or bank_account
.
* @property null|string $statement_descriptor Extra information about a payout to be displayed on the user's bank statement.
@@ -65,6 +66,10 @@ class Payout extends ApiResource
const METHOD_INSTANT = 'instant';
const METHOD_STANDARD = 'standard';
+ const RECONCILIATION_STATUS_COMPLETED = 'completed';
+ const RECONCILIATION_STATUS_IN_PROGRESS = 'in_progress';
+ const RECONCILIATION_STATUS_NOT_APPLICABLE = 'not_applicable';
+
const STATUS_CANCELED = 'canceled';
const STATUS_FAILED = 'failed';
const STATUS_IN_TRANSIT = 'in_transit';
diff --git a/lib/TaxRate.php b/lib/TaxRate.php
index fa7cc84d8..d083dac31 100644
--- a/lib/TaxRate.php
+++ b/lib/TaxRate.php
@@ -43,6 +43,7 @@ class TaxRate extends ApiResource
const TAX_TYPE_HST = 'hst';
const TAX_TYPE_IGST = 'igst';
const TAX_TYPE_JCT = 'jct';
+ const TAX_TYPE_LEASE_TAX = 'lease_tax';
const TAX_TYPE_PST = 'pst';
const TAX_TYPE_QST = 'qst';
const TAX_TYPE_RST = 'rst';
From 0783c59483641452b957f4b75f9e370f1215a803 Mon Sep 17 00:00:00 2001
From: Pavel Krymets An Issuing Cardholder
object represents an individual or business entity who is issued cards.
Related guide: How to create a Cardholder
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. * @property string $currency Three-letter ISO currency code, in lowercase. Supported currencies areusd
in the US, eur
in the EU, and gbp
in the UK.
diff --git a/lib/Issuing/CardBundle.php b/lib/Issuing/CardBundle.php
new file mode 100644
index 000000000..06d11c00b
--- /dev/null
+++ b/lib/Issuing/CardBundle.php
@@ -0,0 +1,32 @@
+true if the object exists in live mode or the value false
if the object exists in test mode.
+ * @property string $name Friendly display name.
+ * @property string $status Whether this card bundle can be used to create cards.
+ * @property string $type Whether this card bundle is a standard Stripe offering or custom-made for you.
+ */
+class CardBundle extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'issuing.card_bundle';
+
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+
+ const STATUS_ACTIVE = 'active';
+ const STATUS_INACTIVE = 'inactive';
+ const STATUS_REVIEW = 'review';
+
+ const TYPE_CUSTOM = 'custom';
+ const TYPE_STANDARD = 'standard';
+}
diff --git a/lib/Issuing/CardDesign.php b/lib/Issuing/CardDesign.php
new file mode 100644
index 000000000..383ca3bed
--- /dev/null
+++ b/lib/Issuing/CardDesign.php
@@ -0,0 +1,35 @@
+key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
+ * @property null|string $name Friendly display name.
+ * @property string $preference Whether this card design is used to create cards when one is not specified.
+ * @property string $status Whether this card design can be used to create cards.
+ */
+class CardDesign extends \Stripe\ApiResource
+{
+ const OBJECT_NAME = 'issuing.card_design';
+
+ use \Stripe\ApiOperations\All;
+ use \Stripe\ApiOperations\Retrieve;
+ use \Stripe\ApiOperations\Update;
+
+ const PREFERENCE_DEFAULT = 'default';
+ const PREFERENCE_NONE = 'none';
+
+ const STATUS_ACTIVE = 'active';
+ const STATUS_INACTIVE = 'inactive';
+ const STATUS_REJECTED = 'rejected';
+ const STATUS_REVIEW = 'review';
+}
diff --git a/lib/Service/Issuing/CardBundleService.php b/lib/Service/Issuing/CardBundleService.php
new file mode 100644
index 000000000..5f34874ac
--- /dev/null
+++ b/lib/Service/Issuing/CardBundleService.php
@@ -0,0 +1,40 @@
+
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/issuing/card_bundles', $params, $opts);
+ }
+
+ /**
+ * Retrieves a card bundle object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\CardBundle
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/issuing/card_bundles/%s', $id), $params, $opts);
+ }
+}
diff --git a/lib/Service/Issuing/CardDesignService.php b/lib/Service/Issuing/CardDesignService.php
new file mode 100644
index 000000000..eca9bde30
--- /dev/null
+++ b/lib/Service/Issuing/CardDesignService.php
@@ -0,0 +1,56 @@
+
+ */
+ public function all($params = null, $opts = null)
+ {
+ return $this->requestCollection('get', '/v1/issuing/card_designs', $params, $opts);
+ }
+
+ /**
+ * Retrieves a card design object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\CardDesign
+ */
+ public function retrieve($id, $params = null, $opts = null)
+ {
+ return $this->request('get', $this->buildPath('/v1/issuing/card_designs/%s', $id), $params, $opts);
+ }
+
+ /**
+ * Updates a card design object.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\CardDesign
+ */
+ public function update($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/issuing/card_designs/%s', $id), $params, $opts);
+ }
+}
diff --git a/lib/Service/Issuing/IssuingServiceFactory.php b/lib/Service/Issuing/IssuingServiceFactory.php
index a8d5d0f81..172b71114 100644
--- a/lib/Service/Issuing/IssuingServiceFactory.php
+++ b/lib/Service/Issuing/IssuingServiceFactory.php
@@ -8,6 +8,8 @@
* Service factory class for API resources in the Issuing namespace.
*
* @property AuthorizationService $authorizations
+ * @property CardBundleService $cardBundles
+ * @property CardDesignService $cardDesigns
* @property CardholderService $cardholders
* @property CardService $cards
* @property DisputeService $disputes
@@ -20,6 +22,8 @@ class IssuingServiceFactory extends \Stripe\Service\AbstractServiceFactory
*/
private static $classMap = [
'authorizations' => AuthorizationService::class,
+ 'cardBundles' => CardBundleService::class,
+ 'cardDesigns' => CardDesignService::class,
'cardholders' => CardholderService::class,
'cards' => CardService::class,
'disputes' => DisputeService::class,
diff --git a/lib/Service/TestHelpers/Issuing/CardDesignService.php b/lib/Service/TestHelpers/Issuing/CardDesignService.php
new file mode 100644
index 000000000..88fff843b
--- /dev/null
+++ b/lib/Service/TestHelpers/Issuing/CardDesignService.php
@@ -0,0 +1,42 @@
+status of the specified testmode card design object to
+ * active
.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\CardDesign
+ */
+ public function activateTestmode($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/card_designs/%s/status/activate', $id), $params, $opts);
+ }
+
+ /**
+ * Updates the status
of the specified testmode card design object to
+ * inactive
.
+ *
+ * @param string $id
+ * @param null|array $params
+ * @param null|array|\Stripe\Util\RequestOptions $opts
+ *
+ * @throws \Stripe\Exception\ApiErrorException if the request fails
+ *
+ * @return \Stripe\Issuing\CardDesign
+ */
+ public function deactivateTestmode($id, $params = null, $opts = null)
+ {
+ return $this->request('post', $this->buildPath('/v1/test_helpers/issuing/card_designs/%s/status/deactivate', $id), $params, $opts);
+ }
+}
diff --git a/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php b/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php
index a202ec33f..1b3a24ef6 100644
--- a/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php
+++ b/lib/Service/TestHelpers/Issuing/IssuingServiceFactory.php
@@ -7,6 +7,7 @@
/**
* Service factory class for API resources in the Issuing namespace.
*
+ * @property CardDesignService $cardDesigns
* @property CardService $cards
*/
class IssuingServiceFactory extends \Stripe\Service\AbstractServiceFactory
@@ -15,6 +16,7 @@ class IssuingServiceFactory extends \Stripe\Service\AbstractServiceFactory
* @var array