-
Notifications
You must be signed in to change notification settings - Fork 858
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update generated code for v570 * Update generated code for v573 * Update generated code for v576 * Update generated code for v579 * Update generated code for v580 * Update generated code for v581 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
- Loading branch information
1 parent
d0d33bd
commit f1ee206
Showing
14 changed files
with
157 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v563 | ||
v581 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
// File generated from our OpenAPI spec | ||
|
||
namespace Stripe\Issuing; | ||
|
||
/** | ||
* An issuing token object is created when an issued card is added to a digital wallet. As a <a href="https://stripe.com/docs/issuing">card issuer</a>, you can view and manage these tokens through Stripe. | ||
* | ||
* @property string $id Unique identifier for the object. | ||
* @property string $object String representing the object's type. Objects of the same type share the same value. | ||
* @property string|\Stripe\Issuing\Card $card Card associated with this token. | ||
* @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. | ||
* @property null|string $device_fingerprint The hashed ID derived from the device ID from the card network associated with the token | ||
* @property null|string $last4 The last four digits of the token. | ||
* @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode. | ||
* @property string $network The token service provider / card network associated with the token. | ||
* @property null|\Stripe\StripeObject $network_data | ||
* @property int $network_updated_at Time at which the token was last updated by the card network. Measured in seconds since the Unix epoch. | ||
* @property string $status The usage state of the token. | ||
* @property null|string $wallet_provider The digital wallet for this token, if one was used. | ||
*/ | ||
class Token extends \Stripe\ApiResource | ||
{ | ||
const OBJECT_NAME = 'issuing.token'; | ||
|
||
use \Stripe\ApiOperations\All; | ||
use \Stripe\ApiOperations\Retrieve; | ||
use \Stripe\ApiOperations\Update; | ||
|
||
const NETWORK_MASTERCARD = 'mastercard'; | ||
const NETWORK_VISA = 'visa'; | ||
|
||
const STATUS_ACTIVE = 'active'; | ||
const STATUS_DELETED = 'deleted'; | ||
const STATUS_REQUESTED = 'requested'; | ||
const STATUS_SUSPENDED = 'suspended'; | ||
|
||
const WALLET_PROVIDER_APPLE_PAY = 'apple_pay'; | ||
const WALLET_PROVIDER_GOOGLE_PAY = 'google_pay'; | ||
const WALLET_PROVIDER_SAMSUNG_PAY = 'samsung_pay'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?php | ||
|
||
// File generated from our OpenAPI spec | ||
|
||
namespace Stripe\Service\Issuing; | ||
|
||
class TokenService extends \Stripe\Service\AbstractService | ||
{ | ||
/** | ||
* Lists all Issuing <code>Token</code> objects for a given card. | ||
* | ||
* @param null|array $params | ||
* @param null|array|\Stripe\Util\RequestOptions $opts | ||
* | ||
* @throws \Stripe\Exception\ApiErrorException if the request fails | ||
* | ||
* @return \Stripe\Collection<\Stripe\Issuing\Token> | ||
*/ | ||
public function all($params = null, $opts = null) | ||
{ | ||
return $this->requestCollection('get', '/v1/issuing/tokens', $params, $opts); | ||
} | ||
|
||
/** | ||
* Retrieves an Issuing <code>Token</code> 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\Token | ||
*/ | ||
public function retrieve($id, $params = null, $opts = null) | ||
{ | ||
return $this->request('get', $this->buildPath('/v1/issuing/tokens/%s', $id), $params, $opts); | ||
} | ||
|
||
/** | ||
* Attempts to update the specified Issuing <code>Token</code> object to the status | ||
* specified. | ||
* | ||
* @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\Token | ||
*/ | ||
public function update($id, $params = null, $opts = null) | ||
{ | ||
return $this->request('post', $this->buildPath('/v1/issuing/tokens/%s', $id), $params, $opts); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.