PluginProbe ʕ •ᴥ•ʔ
WPForms – Easy Form Builder for WordPress – Contact Forms, Payment Forms, Surveys, & More / 1.10.1
WPForms – Easy Form Builder for WordPress – Contact Forms, Payment Forms, Surveys, & More v1.10.1
1.10.1.1 1.10.1 1.10.0.5 trunk 1.1.4 1.1.4.2 1.1.5 1.1.5.1 1.1.6 1.1.6.1 1.1.7 1.1.7.1 1.1.7.2 1.1.8 1.1.8.1 1.1.8.2 1.1.8.3 1.1.8.4 1.10.0.1 1.10.0.2 1.10.0.3 1.10.0.4 1.2.0 1.2.0.1 1.2.1 1.2.2 1.2.2.1 1.2.2.2 1.2.3 1.2.3.1 1.2.3.2 1.2.4 1.2.4.1 1.2.5 1.2.5.1 1.2.6 1.2.7 1.2.8 1.2.8.1 1.2.9 1.3.0 1.3.1 1.3.1.1 1.3.1.2 1.3.2 1.3.3 1.3.5 1.3.6 1.3.6.1 1.3.6.2 1.3.7.2 1.3.7.3 1.3.7.4 1.3.8 1.3.9.1 1.4.0.1 1.4.1.1 1.4.2 1.4.2.1 1.4.2.2 1.4.3 1.4.4 1.4.4.1 1.4.5 1.4.5.1 1.4.5.2 1.4.5.3 1.4.6 1.4.7.1 1.4.7.2 1.4.8.1 1.4.9 1.5.0.1 1.5.0.3 1.5.0.4 1.5.1 1.5.1.1 1.5.1.3 1.5.2.1 1.5.2.2 1.5.2.3 1.5.3 1.5.3.1 1.5.4.1 1.5.4.2 1.5.5 1.5.5.1 1.5.6 1.5.6.2 1.5.7 1.5.8.2 1.5.9.1 1.5.9.4 1.5.9.5 1.6.0.1 1.6.0.2 1.6.1 1.6.2.2 1.6.2.3 1.6.3.1 1.6.4 1.6.4.1 1.6.5 1.6.6 1.6.7 1.6.7.1 1.6.7.2 1.6.7.3 1.6.8 1.6.8.1 1.6.9 1.7.0 1.7.1.1 1.7.1.2 1.7.2 1.7.2.1 1.7.3 1.7.4 1.7.4.1 1.7.4.2 1.7.5.1 1.7.5.2 1.7.5.3 1.7.5.5 1.7.6 1.7.7 1.7.7.1 1.7.7.2 1.7.8 1.7.9 1.7.9.1 1.8.0.1 1.8.0.2 1.8.1.1 1.8.1.2 1.8.1.3 1.8.2.1 1.8.2.2 1.8.2.3 1.8.3 1.8.3.1 1.8.4 1.8.4.1 1.8.5.2 1.8.5.3 1.8.5.4 1.8.6.2 1.8.6.3 1.8.6.4 1.8.7.2 1.8.8.2 1.8.8.3 1.8.9.1 1.8.9.2 1.8.9.4 1.8.9.5 1.8.9.6 1.9.0.1 1.9.0.2 1.9.0.3 1.9.0.4 1.9.1.1 1.9.1.2 1.9.1.3 1.9.1.4 1.9.1.5 1.9.1.6 1.9.2.1 1.9.2.2 1.9.2.3 1.9.3.1 1.9.3.2 1.9.4.1 1.9.4.2 1.9.5 1.9.5.1 1.9.5.2 1.9.6 1.9.6.1 1.9.6.2 1.9.7.1 1.9.7.2 1.9.7.3 1.9.8.1 1.9.8.2 1.9.8.4 1.9.8.7 1.9.9.2 1.9.9.3 1.9.9.4
wpforms-lite / vendor_prefixed / stripe / stripe-php / lib / ErrorObject.php
wpforms-lite / vendor_prefixed / stripe / stripe-php / lib Last commit date
ApiOperations 1 year ago Apps 1 year ago Billing 1 year ago BillingPortal 1 year ago Checkout 1 year ago Climate 1 year ago Entitlements 1 year ago EventData 1 year ago Events 1 year ago Exception 1 year ago FinancialConnections 1 year ago Forwarding 1 year ago HttpClient 1 year ago Identity 1 year ago Issuing 1 year ago Radar 1 year ago Reporting 1 year ago Service 1 year ago Sigma 1 year ago Tax 1 year ago Terminal 1 year ago TestHelpers 1 year ago Treasury 1 year ago Util 1 year ago V2 1 year ago Account.php 1 year ago AccountLink.php 1 year ago AccountSession.php 1 year ago ApiRequestor.php 1 year ago ApiResource.php 2 years ago ApiResponse.php 2 years ago ApplePayDomain.php 1 year ago Application.php 2 years ago ApplicationFee.php 1 year ago ApplicationFeeRefund.php 2 years ago Balance.php 1 year ago BalanceTransaction.php 1 year ago BankAccount.php 1 year ago BaseStripeClient.php 1 year ago BaseStripeClientInterface.php 1 year ago Capability.php 1 year ago Card.php 1 year ago CashBalance.php 2 years ago Charge.php 1 year ago Collection.php 1 year ago ConfirmationToken.php 1 year ago ConnectCollectionTransfer.php 2 years ago CountrySpec.php 1 year ago Coupon.php 1 year ago CreditNote.php 1 year ago CreditNoteLineItem.php 1 year ago Customer.php 1 year ago CustomerBalanceTransaction.php 2 years ago CustomerCashBalanceTransaction.php 2 years ago CustomerSession.php 1 year ago Discount.php 1 year ago Dispute.php 1 year ago EphemeralKey.php 1 year ago ErrorObject.php 1 year ago Event.php 1 year ago ExchangeRate.php 1 year ago File.php 1 year ago FileLink.php 1 year ago FundingInstructions.php 2 years ago Invoice.php 1 year ago InvoiceItem.php 1 year ago InvoiceLineItem.php 1 year ago InvoiceRenderingTemplate.php 1 year ago LineItem.php 1 year ago LoginLink.php 1 year ago Mandate.php 1 year ago OAuth.php 2 years ago OAuthErrorObject.php 1 year ago PaymentIntent.php 1 year ago PaymentLink.php 1 year ago PaymentMethod.php 1 year ago PaymentMethodConfiguration.php 1 year ago PaymentMethodDomain.php 1 year ago Payout.php 1 year ago Person.php 1 year ago Plan.php 1 year ago Price.php 1 year ago Product.php 1 year ago ProductFeature.php 1 year ago PromotionCode.php 1 year ago Quote.php 1 year ago Reason.php 1 year ago RecipientTransfer.php 2 years ago Refund.php 1 year ago RelatedObject.php 1 year ago RequestTelemetry.php 2 years ago ReserveTransaction.php 2 years ago Review.php 1 year ago SearchResult.php 1 year ago SetupAttempt.php 1 year ago SetupIntent.php 1 year ago ShippingRate.php 1 year ago SingletonApiResource.php 2 years ago Source.php 1 year ago SourceMandateNotification.php 2 years ago SourceTransaction.php 2 years ago Stripe.php 1 year ago StripeClient.php 1 year ago StripeClientInterface.php 2 years ago StripeObject.php 1 year ago StripeStreamingClientInterface.php 2 years ago Subscription.php 1 year ago SubscriptionItem.php 1 year ago SubscriptionSchedule.php 1 year ago TaxCode.php 1 year ago TaxDeductedAtSource.php 2 years ago TaxId.php 1 year ago TaxRate.php 1 year ago ThinEvent.php 1 year ago Token.php 1 year ago Topup.php 1 year ago Transfer.php 1 year ago TransferReversal.php 1 year ago UsageRecord.php 1 year ago UsageRecordSummary.php 1 year ago Webhook.php 1 year ago WebhookEndpoint.php 1 year ago WebhookSignature.php 2 years ago
ErrorObject.php
236 lines
1 <?php
2
3 namespace WPForms\Vendor\Stripe;
4
5 /**
6 * Class ErrorObject.
7 *
8 * @property string $charge For card errors, the ID of the failed charge.
9 * @property string $code For some errors that could be handled
10 * programmatically, a short string indicating the error code reported.
11 * @property string $decline_code For card errors resulting from a card issuer
12 * decline, a short string indicating the card issuer's reason for the
13 * decline if they provide one.
14 * @property string $doc_url A URL to more information about the error code
15 * reported.
16 * @property string $message A human-readable message providing more details
17 * about the error. For card errors, these messages can be shown to your
18 * users.
19 * @property string $param If the error is parameter-specific, the parameter
20 * related to the error. For example, you can use this to display a message
21 * near the correct form field.
22 * @property PaymentIntent $payment_intent The PaymentIntent object for errors
23 * returned on a request involving a PaymentIntent.
24 * @property PaymentMethod $payment_method The PaymentMethod object for errors
25 * returned on a request involving a PaymentMethod.
26 * @property string $payment_method_type If the error is specific to the type
27 * of payment method, the payment method type that had a problem. This
28 * field is only populated for invoice-related errors.
29 * @property string $request_log_url A URL to the request log entry in your
30 * dashboard.
31 * @property SetupIntent $setup_intent The SetupIntent object for errors
32 * returned on a request involving a SetupIntent.
33 * @property StripeObject $source The source object for errors returned on a
34 * request involving a source.
35 * @property string $type The type of error returned. One of `api_error`,
36 * `card_error`, `idempotency_error`, or `invalid_request_error`.
37 */
38 class ErrorObject extends StripeObject
39 {
40 /**
41 * Possible string representations of an error's code.
42 *
43 * @see https://stripe.com/docs/error-codes
44 */
45 // The beginning of the section generated from our OpenAPI spec
46 const CODE_ACCOUNT_CLOSED = 'account_closed';
47 const CODE_ACCOUNT_COUNTRY_INVALID_ADDRESS = 'account_country_invalid_address';
48 const CODE_ACCOUNT_ERROR_COUNTRY_CHANGE_REQUIRES_ADDITIONAL_STEPS = 'account_error_country_change_requires_additional_steps';
49 const CODE_ACCOUNT_INFORMATION_MISMATCH = 'account_information_mismatch';
50 const CODE_ACCOUNT_INVALID = 'account_invalid';
51 const CODE_ACCOUNT_NUMBER_INVALID = 'account_number_invalid';
52 const CODE_ACSS_DEBIT_SESSION_INCOMPLETE = 'acss_debit_session_incomplete';
53 const CODE_ALIPAY_UPGRADE_REQUIRED = 'alipay_upgrade_required';
54 const CODE_AMOUNT_TOO_LARGE = 'amount_too_large';
55 const CODE_AMOUNT_TOO_SMALL = 'amount_too_small';
56 const CODE_API_KEY_EXPIRED = 'api_key_expired';
57 const CODE_APPLICATION_FEES_NOT_ALLOWED = 'application_fees_not_allowed';
58 const CODE_AUTHENTICATION_REQUIRED = 'authentication_required';
59 const CODE_BALANCE_INSUFFICIENT = 'balance_insufficient';
60 const CODE_BALANCE_INVALID_PARAMETER = 'balance_invalid_parameter';
61 const CODE_BANK_ACCOUNT_BAD_ROUTING_NUMBERS = 'bank_account_bad_routing_numbers';
62 const CODE_BANK_ACCOUNT_DECLINED = 'bank_account_declined';
63 const CODE_BANK_ACCOUNT_EXISTS = 'bank_account_exists';
64 const CODE_BANK_ACCOUNT_RESTRICTED = 'bank_account_restricted';
65 const CODE_BANK_ACCOUNT_UNUSABLE = 'bank_account_unusable';
66 const CODE_BANK_ACCOUNT_UNVERIFIED = 'bank_account_unverified';
67 const CODE_BANK_ACCOUNT_VERIFICATION_FAILED = 'bank_account_verification_failed';
68 const CODE_BILLING_INVALID_MANDATE = 'billing_invalid_mandate';
69 const CODE_BITCOIN_UPGRADE_REQUIRED = 'bitcoin_upgrade_required';
70 const CODE_CAPTURE_CHARGE_AUTHORIZATION_EXPIRED = 'capture_charge_authorization_expired';
71 const CODE_CAPTURE_UNAUTHORIZED_PAYMENT = 'capture_unauthorized_payment';
72 const CODE_CARD_DECLINE_RATE_LIMIT_EXCEEDED = 'card_decline_rate_limit_exceeded';
73 const CODE_CARD_DECLINED = 'card_declined';
74 const CODE_CARDHOLDER_PHONE_NUMBER_REQUIRED = 'cardholder_phone_number_required';
75 const CODE_CHARGE_ALREADY_CAPTURED = 'charge_already_captured';
76 const CODE_CHARGE_ALREADY_REFUNDED = 'charge_already_refunded';
77 const CODE_CHARGE_DISPUTED = 'charge_disputed';
78 const CODE_CHARGE_EXCEEDS_SOURCE_LIMIT = 'charge_exceeds_source_limit';
79 const CODE_CHARGE_EXCEEDS_TRANSACTION_LIMIT = 'charge_exceeds_transaction_limit';
80 const CODE_CHARGE_EXPIRED_FOR_CAPTURE = 'charge_expired_for_capture';
81 const CODE_CHARGE_INVALID_PARAMETER = 'charge_invalid_parameter';
82 const CODE_CHARGE_NOT_REFUNDABLE = 'charge_not_refundable';
83 const CODE_CLEARING_CODE_UNSUPPORTED = 'clearing_code_unsupported';
84 const CODE_COUNTRY_CODE_INVALID = 'country_code_invalid';
85 const CODE_COUNTRY_UNSUPPORTED = 'country_unsupported';
86 const CODE_COUPON_EXPIRED = 'coupon_expired';
87 const CODE_CUSTOMER_MAX_PAYMENT_METHODS = 'customer_max_payment_methods';
88 const CODE_CUSTOMER_MAX_SUBSCRIPTIONS = 'customer_max_subscriptions';
89 const CODE_CUSTOMER_TAX_LOCATION_INVALID = 'customer_tax_location_invalid';
90 const CODE_DEBIT_NOT_AUTHORIZED = 'debit_not_authorized';
91 const CODE_EMAIL_INVALID = 'email_invalid';
92 const CODE_EXPIRED_CARD = 'expired_card';
93 const CODE_FINANCIAL_CONNECTIONS_ACCOUNT_INACTIVE = 'financial_connections_account_inactive';
94 const CODE_FINANCIAL_CONNECTIONS_NO_SUCCESSFUL_TRANSACTION_REFRESH = 'financial_connections_no_successful_transaction_refresh';
95 const CODE_FORWARDING_API_INACTIVE = 'forwarding_api_inactive';
96 const CODE_FORWARDING_API_INVALID_PARAMETER = 'forwarding_api_invalid_parameter';
97 const CODE_FORWARDING_API_UPSTREAM_CONNECTION_ERROR = 'forwarding_api_upstream_connection_error';
98 const CODE_FORWARDING_API_UPSTREAM_CONNECTION_TIMEOUT = 'forwarding_api_upstream_connection_timeout';
99 const CODE_IDEMPOTENCY_KEY_IN_USE = 'idempotency_key_in_use';
100 const CODE_INCORRECT_ADDRESS = 'incorrect_address';
101 const CODE_INCORRECT_CVC = 'incorrect_cvc';
102 const CODE_INCORRECT_NUMBER = 'incorrect_number';
103 const CODE_INCORRECT_ZIP = 'incorrect_zip';
104 const CODE_INSTANT_PAYOUTS_CONFIG_DISABLED = 'instant_payouts_config_disabled';
105 const CODE_INSTANT_PAYOUTS_CURRENCY_DISABLED = 'instant_payouts_currency_disabled';
106 const CODE_INSTANT_PAYOUTS_LIMIT_EXCEEDED = 'instant_payouts_limit_exceeded';
107 const CODE_INSTANT_PAYOUTS_UNSUPPORTED = 'instant_payouts_unsupported';
108 const CODE_INSUFFICIENT_FUNDS = 'insufficient_funds';
109 const CODE_INTENT_INVALID_STATE = 'intent_invalid_state';
110 const CODE_INTENT_VERIFICATION_METHOD_MISSING = 'intent_verification_method_missing';
111 const CODE_INVALID_CARD_TYPE = 'invalid_card_type';
112 const CODE_INVALID_CHARACTERS = 'invalid_characters';
113 const CODE_INVALID_CHARGE_AMOUNT = 'invalid_charge_amount';
114 const CODE_INVALID_CVC = 'invalid_cvc';
115 const CODE_INVALID_EXPIRY_MONTH = 'invalid_expiry_month';
116 const CODE_INVALID_EXPIRY_YEAR = 'invalid_expiry_year';
117 const CODE_INVALID_MANDATE_REFERENCE_PREFIX_FORMAT = 'invalid_mandate_reference_prefix_format';
118 const CODE_INVALID_NUMBER = 'invalid_number';
119 const CODE_INVALID_SOURCE_USAGE = 'invalid_source_usage';
120 const CODE_INVALID_TAX_LOCATION = 'invalid_tax_location';
121 const CODE_INVOICE_NO_CUSTOMER_LINE_ITEMS = 'invoice_no_customer_line_items';
122 const CODE_INVOICE_NO_PAYMENT_METHOD_TYPES = 'invoice_no_payment_method_types';
123 const CODE_INVOICE_NO_SUBSCRIPTION_LINE_ITEMS = 'invoice_no_subscription_line_items';
124 const CODE_INVOICE_NOT_EDITABLE = 'invoice_not_editable';
125 const CODE_INVOICE_ON_BEHALF_OF_NOT_EDITABLE = 'invoice_on_behalf_of_not_editable';
126 const CODE_INVOICE_PAYMENT_INTENT_REQUIRES_ACTION = 'invoice_payment_intent_requires_action';
127 const CODE_INVOICE_UPCOMING_NONE = 'invoice_upcoming_none';
128 const CODE_LIVEMODE_MISMATCH = 'livemode_mismatch';
129 const CODE_LOCK_TIMEOUT = 'lock_timeout';
130 const CODE_MISSING = 'missing';
131 const CODE_NO_ACCOUNT = 'no_account';
132 const CODE_NOT_ALLOWED_ON_STANDARD_ACCOUNT = 'not_allowed_on_standard_account';
133 const CODE_OUT_OF_INVENTORY = 'out_of_inventory';
134 const CODE_OWNERSHIP_DECLARATION_NOT_ALLOWED = 'ownership_declaration_not_allowed';
135 const CODE_PARAMETER_INVALID_EMPTY = 'parameter_invalid_empty';
136 const CODE_PARAMETER_INVALID_INTEGER = 'parameter_invalid_integer';
137 const CODE_PARAMETER_INVALID_STRING_BLANK = 'parameter_invalid_string_blank';
138 const CODE_PARAMETER_INVALID_STRING_EMPTY = 'parameter_invalid_string_empty';
139 const CODE_PARAMETER_MISSING = 'parameter_missing';
140 const CODE_PARAMETER_UNKNOWN = 'parameter_unknown';
141 const CODE_PARAMETERS_EXCLUSIVE = 'parameters_exclusive';
142 const CODE_PAYMENT_INTENT_ACTION_REQUIRED = 'payment_intent_action_required';
143 const CODE_PAYMENT_INTENT_AUTHENTICATION_FAILURE = 'payment_intent_authentication_failure';
144 const CODE_PAYMENT_INTENT_INCOMPATIBLE_PAYMENT_METHOD = 'payment_intent_incompatible_payment_method';
145 const CODE_PAYMENT_INTENT_INVALID_PARAMETER = 'payment_intent_invalid_parameter';
146 const CODE_PAYMENT_INTENT_KONBINI_REJECTED_CONFIRMATION_NUMBER = 'payment_intent_konbini_rejected_confirmation_number';
147 const CODE_PAYMENT_INTENT_MANDATE_INVALID = 'payment_intent_mandate_invalid';
148 const CODE_PAYMENT_INTENT_PAYMENT_ATTEMPT_EXPIRED = 'payment_intent_payment_attempt_expired';
149 const CODE_PAYMENT_INTENT_PAYMENT_ATTEMPT_FAILED = 'payment_intent_payment_attempt_failed';
150 const CODE_PAYMENT_INTENT_UNEXPECTED_STATE = 'payment_intent_unexpected_state';
151 const CODE_PAYMENT_METHOD_BANK_ACCOUNT_ALREADY_VERIFIED = 'payment_method_bank_account_already_verified';
152 const CODE_PAYMENT_METHOD_BANK_ACCOUNT_BLOCKED = 'payment_method_bank_account_blocked';
153 const CODE_PAYMENT_METHOD_BILLING_DETAILS_ADDRESS_MISSING = 'payment_method_billing_details_address_missing';
154 const CODE_PAYMENT_METHOD_CONFIGURATION_FAILURES = 'payment_method_configuration_failures';
155 const CODE_PAYMENT_METHOD_CURRENCY_MISMATCH = 'payment_method_currency_mismatch';
156 const CODE_PAYMENT_METHOD_CUSTOMER_DECLINE = 'payment_method_customer_decline';
157 const CODE_PAYMENT_METHOD_INVALID_PARAMETER = 'payment_method_invalid_parameter';
158 const CODE_PAYMENT_METHOD_INVALID_PARAMETER_TESTMODE = 'payment_method_invalid_parameter_testmode';
159 const CODE_PAYMENT_METHOD_MICRODEPOSIT_FAILED = 'payment_method_microdeposit_failed';
160 const CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_AMOUNTS_INVALID = 'payment_method_microdeposit_verification_amounts_invalid';
161 const CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_AMOUNTS_MISMATCH = 'payment_method_microdeposit_verification_amounts_mismatch';
162 const CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_ATTEMPTS_EXCEEDED = 'payment_method_microdeposit_verification_attempts_exceeded';
163 const CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_DESCRIPTOR_CODE_MISMATCH = 'payment_method_microdeposit_verification_descriptor_code_mismatch';
164 const CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_TIMEOUT = 'payment_method_microdeposit_verification_timeout';
165 const CODE_PAYMENT_METHOD_NOT_AVAILABLE = 'payment_method_not_available';
166 const CODE_PAYMENT_METHOD_PROVIDER_DECLINE = 'payment_method_provider_decline';
167 const CODE_PAYMENT_METHOD_PROVIDER_TIMEOUT = 'payment_method_provider_timeout';
168 const CODE_PAYMENT_METHOD_UNACTIVATED = 'payment_method_unactivated';
169 const CODE_PAYMENT_METHOD_UNEXPECTED_STATE = 'payment_method_unexpected_state';
170 const CODE_PAYMENT_METHOD_UNSUPPORTED_TYPE = 'payment_method_unsupported_type';
171 const CODE_PAYOUT_RECONCILIATION_NOT_READY = 'payout_reconciliation_not_ready';
172 const CODE_PAYOUTS_LIMIT_EXCEEDED = 'payouts_limit_exceeded';
173 const CODE_PAYOUTS_NOT_ALLOWED = 'payouts_not_allowed';
174 const CODE_PLATFORM_ACCOUNT_REQUIRED = 'platform_account_required';
175 const CODE_PLATFORM_API_KEY_EXPIRED = 'platform_api_key_expired';
176 const CODE_POSTAL_CODE_INVALID = 'postal_code_invalid';
177 const CODE_PROCESSING_ERROR = 'processing_error';
178 const CODE_PRODUCT_INACTIVE = 'product_inactive';
179 const CODE_PROGRESSIVE_ONBOARDING_LIMIT_EXCEEDED = 'progressive_onboarding_limit_exceeded';
180 const CODE_RATE_LIMIT = 'rate_limit';
181 const CODE_REFER_TO_CUSTOMER = 'refer_to_customer';
182 const CODE_REFUND_DISPUTED_PAYMENT = 'refund_disputed_payment';
183 const CODE_RESOURCE_ALREADY_EXISTS = 'resource_already_exists';
184 const CODE_RESOURCE_MISSING = 'resource_missing';
185 const CODE_RETURN_INTENT_ALREADY_PROCESSED = 'return_intent_already_processed';
186 const CODE_ROUTING_NUMBER_INVALID = 'routing_number_invalid';
187 const CODE_SECRET_KEY_REQUIRED = 'secret_key_required';
188 const CODE_SEPA_UNSUPPORTED_ACCOUNT = 'sepa_unsupported_account';
189 const CODE_SETUP_ATTEMPT_FAILED = 'setup_attempt_failed';
190 const CODE_SETUP_INTENT_AUTHENTICATION_FAILURE = 'setup_intent_authentication_failure';
191 const CODE_SETUP_INTENT_INVALID_PARAMETER = 'setup_intent_invalid_parameter';
192 const CODE_SETUP_INTENT_MANDATE_INVALID = 'setup_intent_mandate_invalid';
193 const CODE_SETUP_INTENT_SETUP_ATTEMPT_EXPIRED = 'setup_intent_setup_attempt_expired';
194 const CODE_SETUP_INTENT_UNEXPECTED_STATE = 'setup_intent_unexpected_state';
195 const CODE_SHIPPING_ADDRESS_INVALID = 'shipping_address_invalid';
196 const CODE_SHIPPING_CALCULATION_FAILED = 'shipping_calculation_failed';
197 const CODE_SKU_INACTIVE = 'sku_inactive';
198 const CODE_STATE_UNSUPPORTED = 'state_unsupported';
199 const CODE_STATUS_TRANSITION_INVALID = 'status_transition_invalid';
200 const CODE_STRIPE_TAX_INACTIVE = 'stripe_tax_inactive';
201 const CODE_TAX_ID_INVALID = 'tax_id_invalid';
202 const CODE_TAXES_CALCULATION_FAILED = 'taxes_calculation_failed';
203 const CODE_TERMINAL_LOCATION_COUNTRY_UNSUPPORTED = 'terminal_location_country_unsupported';
204 const CODE_TERMINAL_READER_BUSY = 'terminal_reader_busy';
205 const CODE_TERMINAL_READER_HARDWARE_FAULT = 'terminal_reader_hardware_fault';
206 const CODE_TERMINAL_READER_INVALID_LOCATION_FOR_ACTIVATION = 'terminal_reader_invalid_location_for_activation';
207 const CODE_TERMINAL_READER_INVALID_LOCATION_FOR_PAYMENT = 'terminal_reader_invalid_location_for_payment';
208 const CODE_TERMINAL_READER_OFFLINE = 'terminal_reader_offline';
209 const CODE_TERMINAL_READER_TIMEOUT = 'terminal_reader_timeout';
210 const CODE_TESTMODE_CHARGES_ONLY = 'testmode_charges_only';
211 const CODE_TLS_VERSION_UNSUPPORTED = 'tls_version_unsupported';
212 const CODE_TOKEN_ALREADY_USED = 'token_already_used';
213 const CODE_TOKEN_CARD_NETWORK_INVALID = 'token_card_network_invalid';
214 const CODE_TOKEN_IN_USE = 'token_in_use';
215 const CODE_TRANSFER_SOURCE_BALANCE_PARAMETERS_MISMATCH = 'transfer_source_balance_parameters_mismatch';
216 const CODE_TRANSFERS_NOT_ALLOWED = 'transfers_not_allowed';
217 const CODE_URL_INVALID = 'url_invalid';
218 // The end of the section generated from our OpenAPI spec
219 /**
220 * Refreshes this object using the provided values.
221 *
222 * @param array $values
223 * @param null|array|string|Util\RequestOptions $opts
224 * @param bool $partial defaults to false
225 * @param 'v1'|'v2' $apiMode
226 */
227 public function refreshFrom($values, $opts, $partial = \false, $apiMode = 'v1')
228 {
229 // Unlike most other API resources, the API will omit attributes in
230 // error objects when they have a null value. We manually set default
231 // values here to facilitate generic error handling.
232 $values = \array_merge(['charge' => null, 'code' => null, 'decline_code' => null, 'doc_url' => null, 'message' => null, 'param' => null, 'payment_intent' => null, 'payment_method' => null, 'setup_intent' => null, 'source' => null, 'type' => null], $values);
233 parent::refreshFrom($values, $opts, $partial);
234 }
235 }
236