From b742e70a994c9f6502deb084a69cd5fe7fbde8c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81ctor=20Di=CC=81az=20Marco?= Date: Wed, 28 Feb 2018 18:41:27 +0100 Subject: [PATCH] Add reason and status constants to disputes. --- lib/Dispute.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/lib/Dispute.php b/lib/Dispute.php index eb0263aa2..7f4c233b0 100644 --- a/lib/Dispute.php +++ b/lib/Dispute.php @@ -28,6 +28,37 @@ class Dispute extends ApiResource use ApiOperations\Retrieve; use ApiOperations\Update; + /** + * Possible string representations of dispute reasons. + * @link https://stripe.com/docs/api#dispute_object + */ + const REASON_BANK_CANNOT_PROCESS = 'bank_cannot_process'; + const REASON_CREDIT_NOT_PROCESSED = 'credit_not_processed'; + const REASON_CUSTOMER_INITIATED = 'customer_initiated'; + const REASON_DEBIT_NOT_AUTHORIZED = 'debit_not_authorized'; + const REASON_DUPLICATE = 'duplicate'; + const REASON_FRAUDULENT = 'fraudulent'; + const REASON_GENERAL = 'general'; + const REASON_INCORRECT_ACCOUNT_DETAILS = 'incorrect_account_details'; + const REASON_INSUFFICIENT_FUNDS = 'insufficient_funds'; + const REASON_PRODUCT_NOT_RECEIVED = 'product_not_received'; + const REASON_PRODUCT_UNACCEPTABLE = 'product_unacceptable'; + const REASON_SUBSCRIPTION_CANCELED = 'subscription_canceled'; + const REASON_UNRECOGNIZED = 'unrecognized'; + + /** + * Possible string representations of dispute statuses. + * @link https://stripe.com/docs/api#dispute_object + */ + const STATUS_CHARGE_REFUNDED = 'charge_refunded'; + const STATUS_LOST = 'lost'; + const STATUS_NEEDS_RESPONSE = 'needs_response'; + const STATUS_UNDER_REVIEW = 'under_review'; + const STATUS_WARNING_CLOSED = 'warning_closed'; + const STATUS_WARNING_NEEDS_RESPONSE = 'warning_needs_response'; + const STATUS_WARNING_UNDER_REVIEW = 'warning_under_review'; + const STATUS_WON = 'won'; + /** * @param array|string|null $options *