siip-stripe-payment_intents/vendor/stripe/stripe-php/lib/Mandate.php
DANYDHSV 7e4a535038 feat(stripe-sync): implementar resolución dinámica de métodos de pago y corregir validación API
- Se agregó 'getPaymentMethodIdByName' para buscar automáticamente el ID de "Transferencia bancaria" por nombre, asegurando portabilidad entre servidores UISP.
- Se implementó el manejo del webhook 'customer_cash_balance_transaction.created' para el registro automático de pagos fondeados.
- Fix: Se corrigió error 422 en la API de UCRM forzando el cast de 'clientId' a integer y 'methodId' a string (GUID).
- Se actualizó la documentación (README/CHANGELOG) con instrucciones de configuración de webhooks.
2025-12-23 14:50:01 -06:00

35 lines
1.4 KiB
PHP
Executable File

<?php
// File generated from our OpenAPI spec
namespace Stripe;
/**
* A Mandate is a record of the permission that your customer gives you to debit their payment method.
*
* @property string $id Unique identifier for the object.
* @property string $object String representing the object's type. Objects of the same type share the same value.
* @property \Stripe\StripeObject $customer_acceptance
* @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.
* @property null|\Stripe\StripeObject $multi_use
* @property null|string $on_behalf_of The account (if any) that the mandate is intended for.
* @property string|\Stripe\PaymentMethod $payment_method ID of the payment method associated with this mandate.
* @property \Stripe\StripeObject $payment_method_details
* @property null|\Stripe\StripeObject $single_use
* @property string $status The mandate status indicates whether or not you can use it to initiate a payment.
* @property string $type The type of the mandate.
*/
class Mandate extends ApiResource
{
const OBJECT_NAME = 'mandate';
use ApiOperations\Retrieve;
const STATUS_ACTIVE = 'active';
const STATUS_INACTIVE = 'inactive';
const STATUS_PENDING = 'pending';
const TYPE_MULTI_USE = 'multi_use';
const TYPE_SINGLE_USE = 'single_use';
}