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 / ErrorObject.php
ameliabooking / vendor / stripe / stripe-php / lib Last commit date
ApiOperations 6 months ago Apps 6 months ago Billing 6 months ago BillingPortal 6 months ago Checkout 6 months ago Climate 6 months ago Entitlements 6 months ago EventData 6 months ago Events 6 months ago Exception 6 months ago FinancialConnections 6 months ago Forwarding 6 months ago HttpClient 6 months ago Identity 6 months ago Issuing 6 months ago Radar 6 months ago Reporting 6 months ago Service 6 months ago Sigma 6 months ago Tax 6 months ago Terminal 6 months ago TestHelpers 6 months ago Treasury 6 months ago Util 6 months ago V2 6 months ago Account.php 6 months ago AccountLink.php 6 months ago AccountSession.php 6 months ago ApiRequestor.php 6 months ago ApiResource.php 6 months ago ApiResponse.php 6 months ago ApplePayDomain.php 6 months ago Application.php 6 months ago ApplicationFee.php 6 months ago ApplicationFeeRefund.php 6 months ago Balance.php 6 months ago BalanceTransaction.php 6 months ago BankAccount.php 6 months ago BaseStripeClient.php 6 months ago BaseStripeClientInterface.php 6 months ago Capability.php 6 months ago Card.php 6 months ago CashBalance.php 6 months ago Charge.php 6 months ago Collection.php 6 months ago ConfirmationToken.php 6 months ago ConnectCollectionTransfer.php 6 months ago CountrySpec.php 6 months ago Coupon.php 6 months ago CreditNote.php 6 months ago CreditNoteLineItem.php 6 months ago Customer.php 6 months ago CustomerBalanceTransaction.php 6 months ago CustomerCashBalanceTransaction.php 6 months ago CustomerSession.php 6 months ago Discount.php 6 months ago Dispute.php 6 months ago EphemeralKey.php 6 months ago ErrorObject.php 6 months ago Event.php 6 months ago ExchangeRate.php 6 months ago File.php 6 months ago FileLink.php 6 months ago FundingInstructions.php 6 months ago Invoice.php 6 months ago InvoiceItem.php 6 months ago InvoiceLineItem.php 6 months ago InvoicePayment.php 6 months ago InvoiceRenderingTemplate.php 6 months ago LineItem.php 6 months ago LoginLink.php 6 months ago Mandate.php 6 months ago OAuth.php 6 months ago OAuthErrorObject.php 6 months ago PaymentIntent.php 6 months ago PaymentLink.php 6 months ago PaymentMethod.php 6 months ago PaymentMethodConfiguration.php 6 months ago PaymentMethodDomain.php 6 months ago Payout.php 6 months ago Person.php 6 months ago Plan.php 6 months ago Price.php 6 months ago Product.php 6 months ago ProductFeature.php 6 months ago PromotionCode.php 6 months ago Quote.php 6 months ago Reason.php 6 months ago RecipientTransfer.php 6 months ago Refund.php 6 months ago RelatedObject.php 6 months ago RequestTelemetry.php 6 months ago ReserveTransaction.php 6 months ago Review.php 6 months ago SearchResult.php 6 months ago SetupAttempt.php 6 months ago SetupIntent.php 6 months ago ShippingRate.php 6 months ago SingletonApiResource.php 6 months ago Source.php 6 months ago SourceMandateNotification.php 6 months ago SourceTransaction.php 6 months ago Stripe.php 6 months ago StripeClient.php 6 months ago StripeClientInterface.php 6 months ago StripeObject.php 6 months ago StripeStreamingClientInterface.php 6 months ago Subscription.php 6 months ago SubscriptionItem.php 6 months ago SubscriptionSchedule.php 6 months ago TaxCode.php 6 months ago TaxDeductedAtSource.php 6 months ago TaxId.php 6 months ago TaxRate.php 6 months ago ThinEvent.php 6 months ago Token.php 6 months ago Topup.php 6 months ago Transfer.php 6 months ago TransferReversal.php 6 months ago Webhook.php 6 months ago WebhookEndpoint.php 6 months ago WebhookSignature.php 6 months ago
ErrorObject.php
238 lines
1 <?php
2
3 namespace AmeliaVendor\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_RETRYABLE_UPSTREAM_ERROR = 'forwarding_api_retryable_upstream_error';
98 const CODE_FORWARDING_API_UPSTREAM_CONNECTION_ERROR = 'forwarding_api_upstream_connection_error';
99 const CODE_FORWARDING_API_UPSTREAM_CONNECTION_TIMEOUT = 'forwarding_api_upstream_connection_timeout';
100 const CODE_IDEMPOTENCY_KEY_IN_USE = 'idempotency_key_in_use';
101 const CODE_INCORRECT_ADDRESS = 'incorrect_address';
102 const CODE_INCORRECT_CVC = 'incorrect_cvc';
103 const CODE_INCORRECT_NUMBER = 'incorrect_number';
104 const CODE_INCORRECT_ZIP = 'incorrect_zip';
105 const CODE_INSTANT_PAYOUTS_CONFIG_DISABLED = 'instant_payouts_config_disabled';
106 const CODE_INSTANT_PAYOUTS_CURRENCY_DISABLED = 'instant_payouts_currency_disabled';
107 const CODE_INSTANT_PAYOUTS_LIMIT_EXCEEDED = 'instant_payouts_limit_exceeded';
108 const CODE_INSTANT_PAYOUTS_UNSUPPORTED = 'instant_payouts_unsupported';
109 const CODE_INSUFFICIENT_FUNDS = 'insufficient_funds';
110 const CODE_INTENT_INVALID_STATE = 'intent_invalid_state';
111 const CODE_INTENT_VERIFICATION_METHOD_MISSING = 'intent_verification_method_missing';
112 const CODE_INVALID_CARD_TYPE = 'invalid_card_type';
113 const CODE_INVALID_CHARACTERS = 'invalid_characters';
114 const CODE_INVALID_CHARGE_AMOUNT = 'invalid_charge_amount';
115 const CODE_INVALID_CVC = 'invalid_cvc';
116 const CODE_INVALID_EXPIRY_MONTH = 'invalid_expiry_month';
117 const CODE_INVALID_EXPIRY_YEAR = 'invalid_expiry_year';
118 const CODE_INVALID_MANDATE_REFERENCE_PREFIX_FORMAT = 'invalid_mandate_reference_prefix_format';
119 const CODE_INVALID_NUMBER = 'invalid_number';
120 const CODE_INVALID_SOURCE_USAGE = 'invalid_source_usage';
121 const CODE_INVALID_TAX_LOCATION = 'invalid_tax_location';
122 const CODE_INVOICE_NO_CUSTOMER_LINE_ITEMS = 'invoice_no_customer_line_items';
123 const CODE_INVOICE_NO_PAYMENT_METHOD_TYPES = 'invoice_no_payment_method_types';
124 const CODE_INVOICE_NO_SUBSCRIPTION_LINE_ITEMS = 'invoice_no_subscription_line_items';
125 const CODE_INVOICE_NOT_EDITABLE = 'invoice_not_editable';
126 const CODE_INVOICE_ON_BEHALF_OF_NOT_EDITABLE = 'invoice_on_behalf_of_not_editable';
127 const CODE_INVOICE_PAYMENT_INTENT_REQUIRES_ACTION = 'invoice_payment_intent_requires_action';
128 const CODE_INVOICE_UPCOMING_NONE = 'invoice_upcoming_none';
129 const CODE_LIVEMODE_MISMATCH = 'livemode_mismatch';
130 const CODE_LOCK_TIMEOUT = 'lock_timeout';
131 const CODE_MISSING = 'missing';
132 const CODE_NO_ACCOUNT = 'no_account';
133 const CODE_NOT_ALLOWED_ON_STANDARD_ACCOUNT = 'not_allowed_on_standard_account';
134 const CODE_OUT_OF_INVENTORY = 'out_of_inventory';
135 const CODE_OWNERSHIP_DECLARATION_NOT_ALLOWED = 'ownership_declaration_not_allowed';
136 const CODE_PARAMETER_INVALID_EMPTY = 'parameter_invalid_empty';
137 const CODE_PARAMETER_INVALID_INTEGER = 'parameter_invalid_integer';
138 const CODE_PARAMETER_INVALID_STRING_BLANK = 'parameter_invalid_string_blank';
139 const CODE_PARAMETER_INVALID_STRING_EMPTY = 'parameter_invalid_string_empty';
140 const CODE_PARAMETER_MISSING = 'parameter_missing';
141 const CODE_PARAMETER_UNKNOWN = 'parameter_unknown';
142 const CODE_PARAMETERS_EXCLUSIVE = 'parameters_exclusive';
143 const CODE_PAYMENT_INTENT_ACTION_REQUIRED = 'payment_intent_action_required';
144 const CODE_PAYMENT_INTENT_AUTHENTICATION_FAILURE = 'payment_intent_authentication_failure';
145 const CODE_PAYMENT_INTENT_INCOMPATIBLE_PAYMENT_METHOD = 'payment_intent_incompatible_payment_method';
146 const CODE_PAYMENT_INTENT_INVALID_PARAMETER = 'payment_intent_invalid_parameter';
147 const CODE_PAYMENT_INTENT_KONBINI_REJECTED_CONFIRMATION_NUMBER = 'payment_intent_konbini_rejected_confirmation_number';
148 const CODE_PAYMENT_INTENT_MANDATE_INVALID = 'payment_intent_mandate_invalid';
149 const CODE_PAYMENT_INTENT_PAYMENT_ATTEMPT_EXPIRED = 'payment_intent_payment_attempt_expired';
150 const CODE_PAYMENT_INTENT_PAYMENT_ATTEMPT_FAILED = 'payment_intent_payment_attempt_failed';
151 const CODE_PAYMENT_INTENT_UNEXPECTED_STATE = 'payment_intent_unexpected_state';
152 const CODE_PAYMENT_METHOD_BANK_ACCOUNT_ALREADY_VERIFIED = 'payment_method_bank_account_already_verified';
153 const CODE_PAYMENT_METHOD_BANK_ACCOUNT_BLOCKED = 'payment_method_bank_account_blocked';
154 const CODE_PAYMENT_METHOD_BILLING_DETAILS_ADDRESS_MISSING = 'payment_method_billing_details_address_missing';
155 const CODE_PAYMENT_METHOD_CONFIGURATION_FAILURES = 'payment_method_configuration_failures';
156 const CODE_PAYMENT_METHOD_CURRENCY_MISMATCH = 'payment_method_currency_mismatch';
157 const CODE_PAYMENT_METHOD_CUSTOMER_DECLINE = 'payment_method_customer_decline';
158 const CODE_PAYMENT_METHOD_INVALID_PARAMETER = 'payment_method_invalid_parameter';
159 const CODE_PAYMENT_METHOD_INVALID_PARAMETER_TESTMODE = 'payment_method_invalid_parameter_testmode';
160 const CODE_PAYMENT_METHOD_MICRODEPOSIT_FAILED = 'payment_method_microdeposit_failed';
161 const CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_AMOUNTS_INVALID = 'payment_method_microdeposit_verification_amounts_invalid';
162 const CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_AMOUNTS_MISMATCH = 'payment_method_microdeposit_verification_amounts_mismatch';
163 const CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_ATTEMPTS_EXCEEDED = 'payment_method_microdeposit_verification_attempts_exceeded';
164 const CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_DESCRIPTOR_CODE_MISMATCH = 'payment_method_microdeposit_verification_descriptor_code_mismatch';
165 const CODE_PAYMENT_METHOD_MICRODEPOSIT_VERIFICATION_TIMEOUT = 'payment_method_microdeposit_verification_timeout';
166 const CODE_PAYMENT_METHOD_NOT_AVAILABLE = 'payment_method_not_available';
167 const CODE_PAYMENT_METHOD_PROVIDER_DECLINE = 'payment_method_provider_decline';
168 const CODE_PAYMENT_METHOD_PROVIDER_TIMEOUT = 'payment_method_provider_timeout';
169 const CODE_PAYMENT_METHOD_UNACTIVATED = 'payment_method_unactivated';
170 const CODE_PAYMENT_METHOD_UNEXPECTED_STATE = 'payment_method_unexpected_state';
171 const CODE_PAYMENT_METHOD_UNSUPPORTED_TYPE = 'payment_method_unsupported_type';
172 const CODE_PAYOUT_RECONCILIATION_NOT_READY = 'payout_reconciliation_not_ready';
173 const CODE_PAYOUTS_LIMIT_EXCEEDED = 'payouts_limit_exceeded';
174 const CODE_PAYOUTS_NOT_ALLOWED = 'payouts_not_allowed';
175 const CODE_PLATFORM_ACCOUNT_REQUIRED = 'platform_account_required';
176 const CODE_PLATFORM_API_KEY_EXPIRED = 'platform_api_key_expired';
177 const CODE_POSTAL_CODE_INVALID = 'postal_code_invalid';
178 const CODE_PROCESSING_ERROR = 'processing_error';
179 const CODE_PRODUCT_INACTIVE = 'product_inactive';
180 const CODE_PROGRESSIVE_ONBOARDING_LIMIT_EXCEEDED = 'progressive_onboarding_limit_exceeded';
181 const CODE_RATE_LIMIT = 'rate_limit';
182 const CODE_REFER_TO_CUSTOMER = 'refer_to_customer';
183 const CODE_REFUND_DISPUTED_PAYMENT = 'refund_disputed_payment';
184 const CODE_RESOURCE_ALREADY_EXISTS = 'resource_already_exists';
185 const CODE_RESOURCE_MISSING = 'resource_missing';
186 const CODE_RETURN_INTENT_ALREADY_PROCESSED = 'return_intent_already_processed';
187 const CODE_ROUTING_NUMBER_INVALID = 'routing_number_invalid';
188 const CODE_SECRET_KEY_REQUIRED = 'secret_key_required';
189 const CODE_SEPA_UNSUPPORTED_ACCOUNT = 'sepa_unsupported_account';
190 const CODE_SETUP_ATTEMPT_FAILED = 'setup_attempt_failed';
191 const CODE_SETUP_INTENT_AUTHENTICATION_FAILURE = 'setup_intent_authentication_failure';
192 const CODE_SETUP_INTENT_INVALID_PARAMETER = 'setup_intent_invalid_parameter';
193 const CODE_SETUP_INTENT_MANDATE_INVALID = 'setup_intent_mandate_invalid';
194 const CODE_SETUP_INTENT_MOBILE_WALLET_UNSUPPORTED = 'setup_intent_mobile_wallet_unsupported';
195 const CODE_SETUP_INTENT_SETUP_ATTEMPT_EXPIRED = 'setup_intent_setup_attempt_expired';
196 const CODE_SETUP_INTENT_UNEXPECTED_STATE = 'setup_intent_unexpected_state';
197 const CODE_SHIPPING_ADDRESS_INVALID = 'shipping_address_invalid';
198 const CODE_SHIPPING_CALCULATION_FAILED = 'shipping_calculation_failed';
199 const CODE_SKU_INACTIVE = 'sku_inactive';
200 const CODE_STATE_UNSUPPORTED = 'state_unsupported';
201 const CODE_STATUS_TRANSITION_INVALID = 'status_transition_invalid';
202 const CODE_STRIPE_TAX_INACTIVE = 'stripe_tax_inactive';
203 const CODE_TAX_ID_INVALID = 'tax_id_invalid';
204 const CODE_TAX_ID_PROHIBITED = 'tax_id_prohibited';
205 const CODE_TAXES_CALCULATION_FAILED = 'taxes_calculation_failed';
206 const CODE_TERMINAL_LOCATION_COUNTRY_UNSUPPORTED = 'terminal_location_country_unsupported';
207 const CODE_TERMINAL_READER_BUSY = 'terminal_reader_busy';
208 const CODE_TERMINAL_READER_HARDWARE_FAULT = 'terminal_reader_hardware_fault';
209 const CODE_TERMINAL_READER_INVALID_LOCATION_FOR_ACTIVATION = 'terminal_reader_invalid_location_for_activation';
210 const CODE_TERMINAL_READER_INVALID_LOCATION_FOR_PAYMENT = 'terminal_reader_invalid_location_for_payment';
211 const CODE_TERMINAL_READER_OFFLINE = 'terminal_reader_offline';
212 const CODE_TERMINAL_READER_TIMEOUT = 'terminal_reader_timeout';
213 const CODE_TESTMODE_CHARGES_ONLY = 'testmode_charges_only';
214 const CODE_TLS_VERSION_UNSUPPORTED = 'tls_version_unsupported';
215 const CODE_TOKEN_ALREADY_USED = 'token_already_used';
216 const CODE_TOKEN_CARD_NETWORK_INVALID = 'token_card_network_invalid';
217 const CODE_TOKEN_IN_USE = 'token_in_use';
218 const CODE_TRANSFER_SOURCE_BALANCE_PARAMETERS_MISMATCH = 'transfer_source_balance_parameters_mismatch';
219 const CODE_TRANSFERS_NOT_ALLOWED = 'transfers_not_allowed';
220 const CODE_URL_INVALID = 'url_invalid';
221 // The end of the section generated from our OpenAPI spec
222 /**
223 * Refreshes this object using the provided values.
224 *
225 * @param array $values
226 * @param null|array|string|Util\RequestOptions $opts
227 * @param bool $partial defaults to false
228 * @param 'v1'|'v2' $apiMode
229 */
230 public function refreshFrom($values, $opts, $partial = false, $apiMode = 'v1')
231 {
232 // Unlike most other API resources, the API will omit attributes in
233 // error objects when they have a null value. We manually set default
234 // values here to facilitate generic error handling.
235 $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);
236 parent::refreshFrom($values, $opts, $partial);
237 }
238 }