PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.4
Booking for Appointments and Events Calendar – Amelia v2.4.4
2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / vendor / stripe / stripe-php / lib / Issuing / Dispute.php
ameliabooking / vendor / stripe / stripe-php / lib / Issuing Last commit date
Authorization.php 6 months ago Card.php 6 months ago CardDetails.php 6 months ago Cardholder.php 6 months ago Dispute.php 6 months ago PersonalizationDesign.php 6 months ago PhysicalBundle.php 6 months ago Token.php 6 months ago Transaction.php 6 months ago
Dispute.php
149 lines
1 <?php
2
3 // File generated from our OpenAPI spec
4 namespace AmeliaVendor\Stripe\Issuing;
5
6 /**
7 * As a <a href="https://stripe.com/docs/issuing">card issuer</a>, you can dispute transactions that the cardholder does not recognize, suspects to be fraudulent, or has other issues with.
8 *
9 * Related guide: <a href="https://stripe.com/docs/issuing/purchases/disputes">Issuing disputes</a>
10 *
11 * @property string $id Unique identifier for the object.
12 * @property string $object String representing the object's type. Objects of the same type share the same value.
13 * @property int $amount Disputed amount in the card's currency and in the <a href="https://stripe.com/docs/currencies#zero-decimal">smallest currency unit</a>. Usually the amount of the <code>transaction</code>, but can differ (usually because of currency fluctuation).
14 * @property null|\AmeliaVendor\Stripe\BalanceTransaction[] $balance_transactions List of balance transactions associated with the dispute.
15 * @property int $created Time at which the object was created. Measured in seconds since the Unix epoch.
16 * @property string $currency The currency the <code>transaction</code> was made in.
17 * @property (object{canceled?: (object{additional_documentation: null|string|\AmeliaVendor\Stripe\File, canceled_at: null|int, cancellation_policy_provided: null|bool, cancellation_reason: null|string, expected_at: null|int, explanation: null|string, product_description: null|string, product_type: null|string, return_status: null|string, returned_at: null|int}&\AmeliaVendor\Stripe\StripeObject), duplicate?: (object{additional_documentation: null|string|\AmeliaVendor\Stripe\File, card_statement: null|string|\AmeliaVendor\Stripe\File, cash_receipt: null|string|\AmeliaVendor\Stripe\File, check_image: null|string|\AmeliaVendor\Stripe\File, explanation: null|string, original_transaction: null|string}&\AmeliaVendor\Stripe\StripeObject), fraudulent?: (object{additional_documentation: null|string|\AmeliaVendor\Stripe\File, explanation: null|string}&\AmeliaVendor\Stripe\StripeObject), merchandise_not_as_described?: (object{additional_documentation: null|string|\AmeliaVendor\Stripe\File, explanation: null|string, received_at: null|int, return_description: null|string, return_status: null|string, returned_at: null|int}&\AmeliaVendor\Stripe\StripeObject), no_valid_authorization?: (object{additional_documentation: null|string|\AmeliaVendor\Stripe\File, explanation: null|string}&\AmeliaVendor\Stripe\StripeObject), not_received?: (object{additional_documentation: null|string|\AmeliaVendor\Stripe\File, expected_at: null|int, explanation: null|string, product_description: null|string, product_type: null|string}&\AmeliaVendor\Stripe\StripeObject), other?: (object{additional_documentation: null|string|\AmeliaVendor\Stripe\File, explanation: null|string, product_description: null|string, product_type: null|string}&\AmeliaVendor\Stripe\StripeObject), reason: string, service_not_as_described?: (object{additional_documentation: null|string|\AmeliaVendor\Stripe\File, canceled_at: null|int, cancellation_reason: null|string, explanation: null|string, received_at: null|int}&\AmeliaVendor\Stripe\StripeObject)}&\AmeliaVendor\Stripe\StripeObject) $evidence
18 * @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.
19 * @property null|string $loss_reason The enum that describes the dispute loss outcome. If the dispute is not lost, this field will be absent. New enum values may be added in the future, so be sure to handle unknown values.
20 * @property \AmeliaVendor\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.
21 * @property string $status Current status of the dispute.
22 * @property string|Transaction $transaction The transaction being disputed.
23 * @property null|(object{debit_reversal: null|string, received_debit: string}&\AmeliaVendor\Stripe\StripeObject) $treasury <a href="https://stripe.com/docs/api/treasury">Treasury</a> details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts
24 */
25 class Dispute extends \AmeliaVendor\Stripe\ApiResource
26 {
27 const OBJECT_NAME = 'issuing.dispute';
28 use \AmeliaVendor\Stripe\ApiOperations\Update;
29 const LOSS_REASON_CARDHOLDER_AUTHENTICATION_ISSUER_LIABILITY = 'cardholder_authentication_issuer_liability';
30 const LOSS_REASON_ECI5_TOKEN_TRANSACTION_WITH_TAVV = 'eci5_token_transaction_with_tavv';
31 const LOSS_REASON_EXCESS_DISPUTES_IN_TIMEFRAME = 'excess_disputes_in_timeframe';
32 const LOSS_REASON_HAS_NOT_MET_THE_MINIMUM_DISPUTE_AMOUNT_REQUIREMENTS = 'has_not_met_the_minimum_dispute_amount_requirements';
33 const LOSS_REASON_INVALID_DUPLICATE_DISPUTE = 'invalid_duplicate_dispute';
34 const LOSS_REASON_INVALID_INCORRECT_AMOUNT_DISPUTE = 'invalid_incorrect_amount_dispute';
35 const LOSS_REASON_INVALID_NO_AUTHORIZATION = 'invalid_no_authorization';
36 const LOSS_REASON_INVALID_USE_OF_DISPUTES = 'invalid_use_of_disputes';
37 const LOSS_REASON_MERCHANDISE_DELIVERED_OR_SHIPPED = 'merchandise_delivered_or_shipped';
38 const LOSS_REASON_MERCHANDISE_OR_SERVICE_AS_DESCRIBED = 'merchandise_or_service_as_described';
39 const LOSS_REASON_NOT_CANCELLED = 'not_cancelled';
40 const LOSS_REASON_OTHER = 'other';
41 const LOSS_REASON_REFUND_ISSUED = 'refund_issued';
42 const LOSS_REASON_SUBMITTED_BEYOND_ALLOWABLE_TIME_LIMIT = 'submitted_beyond_allowable_time_limit';
43 const LOSS_REASON_TRANSACTION_3DS_REQUIRED = 'transaction_3ds_required';
44 const LOSS_REASON_TRANSACTION_APPROVED_AFTER_PRIOR_FRAUD_DISPUTE = 'transaction_approved_after_prior_fraud_dispute';
45 const LOSS_REASON_TRANSACTION_AUTHORIZED = 'transaction_authorized';
46 const LOSS_REASON_TRANSACTION_ELECTRONICALLY_READ = 'transaction_electronically_read';
47 const LOSS_REASON_TRANSACTION_QUALIFIES_FOR_VISA_EASY_PAYMENT_SERVICE = 'transaction_qualifies_for_visa_easy_payment_service';
48 const LOSS_REASON_TRANSACTION_UNATTENDED = 'transaction_unattended';
49 const STATUS_EXPIRED = 'expired';
50 const STATUS_LOST = 'lost';
51 const STATUS_SUBMITTED = 'submitted';
52 const STATUS_UNSUBMITTED = 'unsubmitted';
53 const STATUS_WON = 'won';
54 /**
55 * Creates an Issuing <code>Dispute</code> object. Individual pieces of evidence
56 * within the <code>evidence</code> object are optional at this point. Stripe only
57 * validates that required evidence is present during submission. Refer to <a
58 * href="/docs/issuing/purchases/disputes#dispute-reasons-and-evidence">Dispute
59 * reasons and evidence</a> for more details about evidence requirements.
60 *
61 * @param null|array{amount?: int, evidence?: array{canceled?: null|array{additional_documentation?: null|string, canceled_at?: null|int, cancellation_policy_provided?: null|bool, cancellation_reason?: null|string, expected_at?: null|int, explanation?: null|string, product_description?: null|string, product_type?: null|string, return_status?: null|string, returned_at?: null|int}, duplicate?: null|array{additional_documentation?: null|string, card_statement?: null|string, cash_receipt?: null|string, check_image?: null|string, explanation?: null|string, original_transaction?: string}, fraudulent?: null|array{additional_documentation?: null|string, explanation?: null|string}, merchandise_not_as_described?: null|array{additional_documentation?: null|string, explanation?: null|string, received_at?: null|int, return_description?: null|string, return_status?: null|string, returned_at?: null|int}, no_valid_authorization?: null|array{additional_documentation?: null|string, explanation?: null|string}, not_received?: null|array{additional_documentation?: null|string, expected_at?: null|int, explanation?: null|string, product_description?: null|string, product_type?: null|string}, other?: null|array{additional_documentation?: null|string, explanation?: null|string, product_description?: null|string, product_type?: null|string}, reason?: string, service_not_as_described?: null|array{additional_documentation?: null|string, canceled_at?: null|int, cancellation_reason?: null|string, explanation?: null|string, received_at?: null|int}}, expand?: string[], metadata?: array<string, string>, transaction?: string, treasury?: array{received_debit: string}} $params
62 * @param null|array|string $options
63 *
64 * @return Dispute the created resource
65 *
66 * @throws \AmeliaVendor\Stripe\Exception\ApiErrorException if the request fails
67 */
68 public static function create($params = null, $options = null)
69 {
70 self::_validateParams($params);
71 $url = static::classUrl();
72 list($response, $opts) = static::_staticRequest('post', $url, $params, $options);
73 $obj = \AmeliaVendor\Stripe\Util\Util::convertToStripeObject($response->json, $opts);
74 $obj->setLastResponse($response);
75 return $obj;
76 }
77 /**
78 * Returns a list of Issuing <code>Dispute</code> objects. The objects are sorted
79 * in descending order by creation date, with the most recently created object
80 * appearing first.
81 *
82 * @param null|array{created?: array|int, ending_before?: string, expand?: string[], limit?: int, starting_after?: string, status?: string, transaction?: string} $params
83 * @param null|array|string $opts
84 *
85 * @return \AmeliaVendor\Stripe\Collection<Dispute> of ApiResources
86 *
87 * @throws \AmeliaVendor\Stripe\Exception\ApiErrorException if the request fails
88 */
89 public static function all($params = null, $opts = null)
90 {
91 $url = static::classUrl();
92 return static::_requestPage($url, \AmeliaVendor\Stripe\Collection::class, $params, $opts);
93 }
94 /**
95 * Retrieves an Issuing <code>Dispute</code> object.
96 *
97 * @param array|string $id the ID of the API resource to retrieve, or an options array containing an `id` key
98 * @param null|array|string $opts
99 *
100 * @return Dispute
101 *
102 * @throws \AmeliaVendor\Stripe\Exception\ApiErrorException if the request fails
103 */
104 public static function retrieve($id, $opts = null)
105 {
106 $opts = \AmeliaVendor\Stripe\Util\RequestOptions::parse($opts);
107 $instance = new static($id, $opts);
108 $instance->refresh();
109 return $instance;
110 }
111 /**
112 * Updates the specified Issuing <code>Dispute</code> object by setting the values
113 * of the parameters passed. Any parameters not provided will be left unchanged.
114 * Properties on the <code>evidence</code> object can be unset by passing in an
115 * empty string.
116 *
117 * @param string $id the ID of the resource to update
118 * @param null|array{amount?: int, evidence?: array{canceled?: null|array{additional_documentation?: null|string, canceled_at?: null|int, cancellation_policy_provided?: null|bool, cancellation_reason?: null|string, expected_at?: null|int, explanation?: null|string, product_description?: null|string, product_type?: null|string, return_status?: null|string, returned_at?: null|int}, duplicate?: null|array{additional_documentation?: null|string, card_statement?: null|string, cash_receipt?: null|string, check_image?: null|string, explanation?: null|string, original_transaction?: string}, fraudulent?: null|array{additional_documentation?: null|string, explanation?: null|string}, merchandise_not_as_described?: null|array{additional_documentation?: null|string, explanation?: null|string, received_at?: null|int, return_description?: null|string, return_status?: null|string, returned_at?: null|int}, no_valid_authorization?: null|array{additional_documentation?: null|string, explanation?: null|string}, not_received?: null|array{additional_documentation?: null|string, expected_at?: null|int, explanation?: null|string, product_description?: null|string, product_type?: null|string}, other?: null|array{additional_documentation?: null|string, explanation?: null|string, product_description?: null|string, product_type?: null|string}, reason?: string, service_not_as_described?: null|array{additional_documentation?: null|string, canceled_at?: null|int, cancellation_reason?: null|string, explanation?: null|string, received_at?: null|int}}, expand?: string[], metadata?: null|array<string, string>} $params
119 * @param null|array|string $opts
120 *
121 * @return Dispute the updated resource
122 *
123 * @throws \AmeliaVendor\Stripe\Exception\ApiErrorException if the request fails
124 */
125 public static function update($id, $params = null, $opts = null)
126 {
127 self::_validateParams($params);
128 $url = static::resourceUrl($id);
129 list($response, $opts) = static::_staticRequest('post', $url, $params, $opts);
130 $obj = \AmeliaVendor\Stripe\Util\Util::convertToStripeObject($response->json, $opts);
131 $obj->setLastResponse($response);
132 return $obj;
133 }
134 /**
135 * @param null|array $params
136 * @param null|array|string $opts
137 *
138 * @return Dispute the submited dispute
139 *
140 * @throws \AmeliaVendor\Stripe\Exception\ApiErrorException if the request fails
141 */
142 public function submit($params = null, $opts = null)
143 {
144 $url = $this->instanceUrl() . '/submit';
145 list($response, $opts) = $this->_request('post', $url, $params, $opts);
146 $this->refreshFrom($response, $opts);
147 return $this;
148 }
149 }