Authorization.php
2 years ago
Card.php
2 years ago
CardDetails.php
4 years ago
Cardholder.php
4 years ago
Dispute.php
2 years ago
Transaction.php
4 years ago
Dispute.php
54 lines
| 1 | <?php |
| 2 | |
| 3 | // File generated from our OpenAPI spec |
| 4 | |
| 5 | namespace Stripe\Issuing; |
| 6 | |
| 7 | /** |
| 8 | * As a <a href="https://stripe.com/docs/issuing">card issuer</a>, you can dispute |
| 9 | * transactions that the cardholder does not recognize, suspects to be fraudulent, |
| 10 | * or has other issues with. |
| 11 | * |
| 12 | * Related guide: <a |
| 13 | * href="https://stripe.com/docs/issuing/purchases/disputes">Disputing |
| 14 | * Transactions</a> |
| 15 | * |
| 16 | * @property string $id Unique identifier for the object. |
| 17 | * @property string $object String representing the object's type. Objects of the same type share the same value. |
| 18 | * @property int $amount Disputed amount. Usually the amount of the <code>transaction</code>, but can differ (usually because of currency fluctuation). |
| 19 | * @property null|\Stripe\BalanceTransaction[] $balance_transactions List of balance transactions associated with the dispute. |
| 20 | * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch. |
| 21 | * @property string $currency The currency the <code>transaction</code> was made in. |
| 22 | * @property \Stripe\StripeObject $evidence |
| 23 | * @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. |
| 24 | * @property \Stripe\StripeObject $metadata Set of <a href="https://stripe.com/docs/api/metadata">key-value pairs</a> that you can attach to an object. This can be useful for storing additional information about the object in a structured format. |
| 25 | * @property string $status Current status of the dispute. |
| 26 | * @property string|\Stripe\Issuing\Transaction $transaction The transaction being disputed. |
| 27 | */ |
| 28 | class Dispute extends \Stripe\ApiResource |
| 29 | { |
| 30 | const OBJECT_NAME = 'issuing.dispute'; |
| 31 | |
| 32 | use \Stripe\ApiOperations\All; |
| 33 | use \Stripe\ApiOperations\Create; |
| 34 | use \Stripe\ApiOperations\Retrieve; |
| 35 | use \Stripe\ApiOperations\Update; |
| 36 | |
| 37 | /** |
| 38 | * @param null|array $params |
| 39 | * @param null|array|string $opts |
| 40 | * |
| 41 | * @throws \Stripe\Exception\ApiErrorException if the request fails |
| 42 | * |
| 43 | * @return \Stripe\Issuing\Dispute the submited dispute |
| 44 | */ |
| 45 | public function submit($params = null, $opts = null) |
| 46 | { |
| 47 | $url = $this->instanceUrl() . '/submit'; |
| 48 | list($response, $opts) = $this->_request('post', $url, $params, $opts); |
| 49 | $this->refreshFrom($response, $opts); |
| 50 | |
| 51 | return $this; |
| 52 | } |
| 53 | } |
| 54 |