diff --git a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png b/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png index fa28cad1..2c0c846c 100755 Binary files a/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png and b/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png differ diff --git a/comprobantes/Comprobante_Maria_Gricelda_López_Avalos.png b/comprobantes/Comprobante_Maria_Gricelda_López_Avalos.png new file mode 100644 index 00000000..d1de2663 Binary files /dev/null and b/comprobantes/Comprobante_Maria_Gricelda_López_Avalos.png differ diff --git a/data/plugin.log b/data/plugin.log index c551c2e6..8bfefe5a 100644 --- a/data/plugin.log +++ b/data/plugin.log @@ -1,23 +1,71 @@ +[2025-01-05 20:15:39.496599] [notice] Logging level set to:debug +[2025-01-05 20:15:39.496748] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":125} -[2025-01-04 21:35:11.502578] [debug] Este ese el reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2lRTUxaaDI2bnI0QVkxOWRjWm4zd3ExNEh0c3BD0100GnWL7Gu1"} -[2025-01-04 21:35:11.502944] [error] JSON error: No error -[2025-01-04 21:35:11.503017] [debug] HTTP request processing ended. -[2025-01-04 21:38:13.682878] [notice] Logging level set to:debug -[2025-01-04 21:38:13.683264] [debug] El valor del evento recibio en json: {"uuid":"f83e8c9c-3167-41cd-889b-dd3266c62437","changeType":"insert","entity":"payment","entityId":"494","eventName":"payment.add","extraData":{"entity":{"id":494,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:38:13-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]},"entityBeforeEdit":null}} +[2025-01-05 20:15:39.496774] [info] Evento de referencia de oxxo recibido -[2025-01-04 21:38:13.801563] [debug] valor el evento recibido por webhook: payment.add +[2025-01-05 20:15:39.496793] [info] Referencia persnoalizada, Valor del monto: 125 -[2025-01-04 21:38:13.801965] [debug] datos del notification para el invoice add:{"uuid":"f83e8c9c-3167-41cd-889b-dd3266c62437","changeType":"insert","entity":"payment","entityId":494,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":4855,"accountCredit":4855,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":494,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:38:13-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]}} +[2025-01-05 20:15:39.496809] [info] Creando referencia del cliente para OXXO: -[2025-01-04 21:38:13.802048] [debug] valor del payment data: {"id":494,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:38:13-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]} +[2025-01-05 20:15:39.621918] [info] Se obtuvo el Stripe Customer ID: cus_PetN1dhr4rx0kX -[2025-01-04 21:38:13.802115] [debug] ***Se notifica y actualiza al cliente sobre su pago*** +[2025-01-05 20:15:39.621963] [info] Se analizó el email: dhsv.141089@gmail.com + +[2025-01-05 20:16:11.120426] [notice] Logging level set to:debug +[2025-01-05 20:16:11.120856] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":300} + +[2025-01-05 20:16:11.120996] [info] Evento de referencia de oxxo recibido + +[2025-01-05 20:16:11.121088] [info] Referencia persnoalizada, Valor del monto: 300 + +[2025-01-05 20:16:11.121164] [info] Creando referencia del cliente para OXXO: + +[2025-01-05 20:16:11.266724] [info] Se obtuvo el Stripe Customer ID: cus_PetN1dhr4rx0kX + +[2025-01-05 20:16:11.266885] [info] Se analizó el email: dhsv.141089@gmail.com + +[2025-01-05 20:21:28.447954] [notice] Logging level set to:debug +[2025-01-05 20:21:28.448175] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":300} + +[2025-01-05 20:21:28.448246] [info] Evento de referencia de oxxo recibido + +[2025-01-05 20:21:28.448307] [info] Referencia persnoalizada, Valor del monto: 300 + +[2025-01-05 20:21:28.448367] [info] Creando referencia del cliente para OXXO: + +[2025-01-05 20:21:28.566519] [info] Se obtuvo el Stripe Customer ID: cus_PetN1dhr4rx0kX + +[2025-01-05 20:21:28.566636] [info] Se analizó el email: dhsv.141089@gmail.com + +[2025-01-05 20:21:28.566740] [info] Se extrajeron los digitos + +[2025-01-05 20:21:28.566796] [info] Monto proporcionado directamente (procesado): 300 + +[2025-01-05 20:21:29.204588] [info] Creando payment methods del voucher + +[2025-01-05 20:21:30.073240] [info] Referencia OXXO: 12345678901234657890123456789012 + +[2025-01-05 20:21:30.073765] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SWDRUeURsS3F3emdGTVJFRU9HNXI0dVZnMk5KRnlP0100z7RPcfxr + +[2025-01-05 20:21:30.075036] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SWDRUeURsS3F3emdGTVJFRU9HNXI0dVZnMk5KRnlP0100z7RPcfxr"} +[2025-01-05 20:21:30.075304] [error] JSON error: No error +[2025-01-05 20:21:30.075462] [debug] HTTP request processing ended. +[2025-01-05 20:24:32.926237] [notice] Logging level set to:debug +[2025-01-05 20:24:32.926628] [debug] El valor del evento recibio en json: {"uuid":"cf16301b-fa22-4d3e-b29a-ccd604015ac3","changeType":"insert","entity":"payment","entityId":"501","eventName":"payment.add","extraData":{"entity":{"id":501,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-05T14:24:32-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]},"entityBeforeEdit":null}} + +[2025-01-05 20:24:33.092381] [debug] valor el evento recibido por webhook: payment.add + +[2025-01-05 20:24:33.092773] [debug] datos del notification para el invoice add:{"uuid":"cf16301b-fa22-4d3e-b29a-ccd604015ac3","changeType":"insert","entity":"payment","entityId":501,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":6315,"accountCredit":6315,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":501,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-05T14:24:32-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}} + +[2025-01-05 20:24:33.092864] [debug] valor del payment data: {"id":501,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-05T14:24:32-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]} + +[2025-01-05 20:24:33.092933] [debug] ***Se notifica y actualiza al cliente sobre su pago*** Eviando comprobante de pago al cliente: 2 con número: 5214181878106 El archivo se ha descargado correctamente y se ha guardado en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png -El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/5580ea70-1af0-4bfd-acd4-f7d5ac7bb215.pdf +El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/ddbaa4c2-c11e-451e-b13c-b0a2fa541b00.pdf se creó la instancia de Imagick @@ -29,488 +77,12 @@ Subiendo comprobante a worpdpress Conexión FTP exitosa -El archivo ha sido cargado exitosamente. +[2025-01-05 20:24:43.098896] [notice] Logging level set to:debug +[2025-01-05 20:24:43.099425] [debug] El valor del evento recibio en json: {"uuid":"ffba9b40-c562-4d52-bf42-19c6c79396fa","changeType":"edit","entity":"payment","entityId":"501","eventName":"payment.edit","extraData":{"entity":{"id":501,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-05T14:24:32-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":501,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-05T14:24:32-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}}} -La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png - -[2025-01-04 21:38:23.835932] [notice] Logging level set to:debug -[2025-01-04 21:38:23.836178] [debug] El valor del evento recibio en json: {"uuid":"8806f0c2-3119-4042-a833-fd44e8ea4422","changeType":"edit","entity":"payment","entityId":"494","eventName":"payment.edit","extraData":{"entity":{"id":494,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:38:13-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":494,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:38:13-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]}}} - -[2025-01-04 21:38:23.966581] [debug] valor el evento recibido por webhook: payment.edit - -[2025-01-04 21:38:23.966840] [debug] HTTP request processing ended. -Archivos eliminados - -Se terminó de subir comprobante a wordpress - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "document", - "content": { - "text": "S/M", - "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png" - }, - "template_values": ["Daniel Humberto Soto Villegas Polleria", "$180", "$4855 a favor"], - "template_uuid": "57ead79cebd14902921477922403093b", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"00c5e0f3a8f54c8f84e64eb37ca4f86a","status":"enqueued"}} -Hay menos de 50 archivos en el directorio. No se eliminarán archivos. - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":494,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:38:13-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria - -UUID: 74cc2bb45eb8409f92cd5dba99200d26 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb24855 a favor","Monto Ultimo Pago":"\ud83d\udcb2 180","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb24855 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 180\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 15:38 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:38\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 15:38 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:38","Clabe Transferencia Banamex":null}} - -[2025-01-04 21:43:05.628685] [notice] Logging level set to:debug -[2025-01-04 21:43:05.629163] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":120} - -[2025-01-04 21:43:05.629312] [info] Evento de referencia de oxxo recibido - -[2025-01-04 21:43:05.629448] [info] Valor del monto: 120 - -[2025-01-04 21:43:05.629558] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 21:43:05.758450] [info] Monto proporcionado directamente: 120 - -[2025-01-04 21:43:07.253190] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-01-04 21:43:07.253303] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2lZTjRTRmJsU3pRdDg0Ylk4V21VZm1sRmxXU3Nr01006DhfUkRl - -[2025-01-04 21:43:07.253916] [debug] Este ese el reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2lZTjRTRmJsU3pRdDg0Ylk4V21VZm1sRmxXU3Nr01006DhfUkRl"} -[2025-01-04 21:43:07.254031] [error] JSON error: No error -[2025-01-04 21:43:07.254067] [debug] HTTP request processing ended. -[2025-01-04 21:44:27.391671] [notice] Logging level set to:debug -[2025-01-04 21:44:27.391904] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":0} - -[2025-01-04 21:44:27.391993] [info] Evento de referencia de oxxo recibido - -[2025-01-04 21:44:27.392055] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 21:44:27.544599] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX - -[2025-01-04 21:44:27.544748] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. - -[2025-01-04 21:44:27.545203] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 21:44:27.671631] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX - -[2025-01-04 21:44:27.671749] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. - -[2025-01-04 21:44:27.672075] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 21:44:27.811629] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX - -[2025-01-04 21:44:27.813256] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. - -[2025-01-04 21:44:27.813581] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 21:44:27.928096] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX - -[2025-01-04 21:44:27.928137] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. - -[2025-01-04 21:44:27.928673] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 21:44:28.024955] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PetN1dhr4rx0kX - -[2025-01-04 21:44:28.025002] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. - -[2025-01-04 21:44:28.025454] [debug] Este ese el reponse que se envía a CallBell: {"url": "errorsinadeudo"} -[2025-01-04 21:44:28.025501] [error] JSON error: No error -[2025-01-04 21:44:28.025515] [debug] HTTP request processing ended. -[2025-01-04 21:45:05.193242] [notice] Logging level set to:debug -[2025-01-04 21:45:05.193661] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":190} - -[2025-01-04 21:45:05.193814] [info] Evento de referencia de oxxo recibido - -[2025-01-04 21:45:05.193867] [info] Valor del monto: 190 - -[2025-01-04 21:45:05.193914] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 21:45:05.364599] [info] Monto proporcionado directamente: 190 - -[2025-01-04 21:46:11.387351] [notice] Logging level set to:debug -[2025-01-04 21:46:11.387454] [debug] El valor del evento recibio en json: {"uuid":"c33bbbc8-c202-43bf-adf0-f6fa95f391be","changeType":"insert","entity":"payment","entityId":"495","eventName":"payment.add","extraData":{"entity":{"id":495,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:46:10-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-01-04 21:46:11.591474] [debug] valor el evento recibido por webhook: payment.add - -[2025-01-04 21:46:11.591733] [debug] datos del notification para el invoice add:{"uuid":"c33bbbc8-c202-43bf-adf0-f6fa95f391be","changeType":"insert","entity":"payment","entityId":495,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":4975,"accountCredit":4975,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":495,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:46:10-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}} - -[2025-01-04 21:46:11.591769] [debug] valor del payment data: {"id":495,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:46:10-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]} - -[2025-01-04 21:46:11.591789] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181878106 - -El archivo se ha descargado correctamente y se ha guardado en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png - -El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/9bc29ff8-2456-4fee-a036-54e785da6153.pdf - -se creó la instancia de Imagick - -Ancho original de la imagen:482 Altura original de la imagen: 1024 - -Terminó de crear la imagen del comprobante - -Subiendo comprobante a worpdpress - -[2025-01-04 21:46:21.552692] [notice] Logging level set to:debug -[2025-01-04 21:46:21.552952] [debug] El valor del evento recibio en json: {"uuid":"30fe5eb5-a6c2-4071-ac04-40f928989c15","changeType":"edit","entity":"payment","entityId":"495","eventName":"payment.edit","extraData":{"entity":{"id":495,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:46:10-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":495,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:46:10-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}}} - -Conexión FTP exitosa - -[2025-01-04 21:46:21.686734] [debug] valor el evento recibido por webhook: payment.edit - -[2025-01-04 21:46:21.687012] [debug] HTTP request processing ended. -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png - -[2025-01-04 21:46:26.210530] [error] Error al crear el payment intent: Could not connect to Stripe (https://api.stripe.com/v1/payment_intents/pi_3Qdf9ZEFY1WEUtgR1DE1cypZ/confirm). Please check your internet connection and try again. If this problem persists, you should check Stripe's service status at https://twitter.com/stripestatus, or let us know at support@stripe.com. - -(Network error [errno 28]: Operation timed out after 80001 milliseconds with 0 bytes received) - -[2025-01-04 21:46:26.211350] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 21:46:26.355484] [info] Monto proporcionado directamente: 190 - -Archivos eliminados - -Se terminó de subir comprobante a wordpress - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "document", - "content": { - "text": "S/M", - "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png" - }, - "template_values": ["Daniel Humberto Soto Villegas Polleria", "$120", "$4975 a favor"], - "template_uuid": "57ead79cebd14902921477922403093b", - "optin_contact": true - } -[2025-01-04 21:46:28.099940] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-01-04 21:46:28.100054] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2ljY2dPQmZkekNMVDVDb3dnTGFiSzhVOElTYTJU0100Kqq818de - -[2025-01-04 21:46:28.100884] [debug] Este ese el reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2ljY2dPQmZkekNMVDVDb3dnTGFiSzhVOElTYTJU0100Kqq818de"} -[2025-01-04 21:46:28.101006] [error] JSON error: No error -[2025-01-04 21:46:28.101046] [debug] HTTP request processing ended. -Response del CallBell: {"message":{"uuid":"4bb3d4867ad64382a46e0124accf8795","status":"enqueued"}} -Hay menos de 50 archivos en el directorio. No se eliminarán archivos. - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":495,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:46:10-0600","amount":120,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":120,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria - -UUID: 74cc2bb45eb8409f92cd5dba99200d26 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb24975 a favor","Monto Ultimo Pago":"\ud83d\udcb2 120","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb24975 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 120\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 15:46 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:46\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 15:46 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:46","Clabe Transferencia Banamex":null}} - -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-01-04T21:45:15Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"124180650741039816","Cliente":"2","user entry point":"inbound_message","Fecha Ultimo Pago":"📆💸 04/01/2025 15:46 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲4975 a favor","Monto Ultimo Pago":"💲 120","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 15:46","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲4975 a favor\",\"Monto Ultimo Pago\": \"💲 120\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 04/01/2025 15:46 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 15:46\",\"Clabe Transferencia Banamex\": \"\"}","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} - -[2025-01-04 21:46:30.948810] [debug] HTTP request processing ended. -[2025-01-04 21:48:10.350208] [notice] Logging level set to:debug -[2025-01-04 21:48:10.350547] [debug] El valor del evento recibio en json: {"uuid":"4cd04fdf-5bcf-47c1-9271-44fe1c6185b9","changeType":"insert","entity":"payment","entityId":"496","eventName":"payment.add","extraData":{"entity":{"id":496,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:48:09-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-01-04 21:48:10.468911] [debug] valor el evento recibido por webhook: payment.add - -[2025-01-04 21:48:10.469279] [debug] datos del notification para el invoice add:{"uuid":"4cd04fdf-5bcf-47c1-9271-44fe1c6185b9","changeType":"insert","entity":"payment","entityId":496,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":5165,"accountCredit":5165,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":496,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:48:09-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]}} - -[2025-01-04 21:48:10.469362] [debug] valor del payment data: {"id":496,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:48:09-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]} - -[2025-01-04 21:48:10.469424] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181878106 - -El archivo se ha descargado correctamente y se ha guardado en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png - -El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/f20395b0-697c-428a-80fa-40ac291371df.pdf - -se creó la instancia de Imagick - -Ancho original de la imagen:482 Altura original de la imagen: 1024 - -Terminó de crear la imagen del comprobante - -Subiendo comprobante a worpdpress - -Conexión FTP exitosa - -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png - -[2025-01-04 21:48:20.510783] [notice] Logging level set to:debug -[2025-01-04 21:48:20.510968] [debug] El valor del evento recibio en json: {"uuid":"3b9c62c6-1bc6-4285-aa5d-84de9b1ccc5f","changeType":"edit","entity":"payment","entityId":"496","eventName":"payment.edit","extraData":{"entity":{"id":496,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:48:09-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":496,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:48:09-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]}}} - -[2025-01-04 21:48:20.644665] [debug] valor el evento recibido por webhook: payment.edit - -[2025-01-04 21:48:20.645021] [debug] HTTP request processing ended. -Archivos eliminados - -Se terminó de subir comprobante a wordpress - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "document", - "content": { - "text": "S/M", - "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png" - }, - "template_values": ["Daniel Humberto Soto Villegas Polleria", "$190", "$5165 a favor"], - "template_uuid": "57ead79cebd14902921477922403093b", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"57e68d25a46c46d3b330ce3b82847b31","status":"enqueued"}} -Hay menos de 50 archivos en el directorio. No se eliminarán archivos. - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":496,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:48:09-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria - -UUID: 74cc2bb45eb8409f92cd5dba99200d26 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb25165 a favor","Monto Ultimo Pago":"\ud83d\udcb2 190","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb25165 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 190\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 15:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:48\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 15:48 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:48","Clabe Transferencia Banamex":null}} - -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-01-04T21:45:15Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"124180650741039816","Cliente":"2","user entry point":"inbound_message","Fecha Ultimo Pago":"📆💸 04/01/2025 15:48 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲5165 a favor","Monto Ultimo Pago":"💲 190","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 15:48","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲5165 a favor\",\"Monto Ultimo Pago\": \"💲 190\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 04/01/2025 15:48 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 15:48\",\"Clabe Transferencia Banamex\": \"\"}","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} - -[2025-01-04 21:48:28.388371] [debug] HTTP request processing ended. -[2025-01-04 21:49:32.930886] [notice] Logging level set to:debug -[2025-01-04 21:49:32.931526] [debug] El valor del evento recibio en json: {"uuid":"80fcaa9b-3cca-458b-b755-acfb2777f5ea","changeType":"insert","entity":"payment","entityId":"497","eventName":"payment.add","extraData":{"entity":{"id":497,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:49:32-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-01-04 21:49:33.050431] [debug] valor el evento recibido por webhook: payment.add - -[2025-01-04 21:49:33.050817] [debug] datos del notification para el invoice add:{"uuid":"80fcaa9b-3cca-458b-b755-acfb2777f5ea","changeType":"insert","entity":"payment","entityId":497,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":5355,"accountCredit":5355,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":497,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:49:32-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]}} - -[2025-01-04 21:49:33.051016] [debug] valor del payment data: {"id":497,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:49:32-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]} - -[2025-01-04 21:49:33.051080] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181878106 - -El archivo se ha descargado correctamente y se ha guardado en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png - -El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/eb03d77d-ee72-47b7-90a7-6dd9224c7c49.pdf - -se creó la instancia de Imagick - -Ancho original de la imagen:482 Altura original de la imagen: 1024 - -Terminó de crear la imagen del comprobante - -Subiendo comprobante a worpdpress - -Conexión FTP exitosa - -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png - -[2025-01-04 21:49:43.044415] [notice] Logging level set to:debug -[2025-01-04 21:49:43.044822] [debug] El valor del evento recibio en json: {"uuid":"de7c7814-5129-4242-9faf-a31912dc099a","changeType":"edit","entity":"payment","entityId":"497","eventName":"payment.edit","extraData":{"entity":{"id":497,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:49:32-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":497,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:49:32-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]}}} - -[2025-01-04 21:49:43.181915] [debug] valor el evento recibido por webhook: payment.edit - -[2025-01-04 21:49:43.182313] [debug] HTTP request processing ended. -Archivos eliminados - -Se terminó de subir comprobante a wordpress - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "document", - "content": { - "text": "S/M", - "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png" - }, - "template_values": ["Daniel Humberto Soto Villegas Polleria", "$190", "$5355 a favor"], - "template_uuid": "57ead79cebd14902921477922403093b", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"262a3a477ba546a9acf72108977ecbbf","status":"enqueued"}} -Hay menos de 50 archivos en el directorio. No se eliminarán archivos. - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":497,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:49:32-0600","amount":190,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":190,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria - -UUID: 74cc2bb45eb8409f92cd5dba99200d26 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb25355 a favor","Monto Ultimo Pago":"\ud83d\udcb2 190","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb25355 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 190\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 15:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:49\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 15:49 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:49","Clabe Transferencia Banamex":null}} - -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-01-04T21:45:15Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"124180650741039816","Cliente":"2","user entry point":"inbound_message","Fecha Ultimo Pago":"📆💸 04/01/2025 15:49 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲5355 a favor","Monto Ultimo Pago":"💲 190","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 15:49","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲5355 a favor\",\"Monto Ultimo Pago\": \"💲 190\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 04/01/2025 15:49 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 15:49\",\"Clabe Transferencia Banamex\": \"\"}","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} - -[2025-01-04 21:49:52.404685] [debug] HTTP request processing ended. -[2025-01-04 21:50:31.251308] [notice] Logging level set to:debug -[2025-01-04 21:50:31.251548] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":320} - -[2025-01-04 21:50:31.251641] [info] Evento de referencia de oxxo recibido - -[2025-01-04 21:50:31.251717] [info] Valor del monto: 320 - -[2025-01-04 21:50:31.251791] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 21:50:31.369318] [info] Monto proporcionado directamente: 320 - -[2025-01-04 21:50:31.369445] [info] Creando referencia en Stripe por: 32000 - -[2025-01-04 21:50:31.962315] [info] Creando payment methods del voucher - -[2025-01-04 21:50:32.214518] [info] Confirmando el paymentIntent - -[2025-01-04 21:50:32.844495] [info] Se terminó de confirmar el paymentIntent - -[2025-01-04 21:50:32.844799] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-01-04 21:50:32.844892] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2lneDhmYTZ0NlY5QUw1TUY4Nk96WU9LeFJoWTJX0100Y7YdwVXF - -[2025-01-04 21:50:32.845221] [debug] Este ese el reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2lneDhmYTZ0NlY5QUw1TUY4Nk96WU9LeFJoWTJX0100Y7YdwVXF"} -[2025-01-04 21:50:32.845422] [error] JSON error: No error -[2025-01-04 21:50:32.845591] [debug] HTTP request processing ended. -[2025-01-04 21:51:10.020046] [notice] Logging level set to:debug -[2025-01-04 21:51:10.020256] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":2,"amount":340} - -[2025-01-04 21:51:10.020294] [info] Evento de referencia de oxxo recibido - -[2025-01-04 21:51:10.020323] [info] Valor del monto: 340 - -[2025-01-04 21:51:10.020354] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 21:51:10.148372] [info] Monto proporcionado directamente: 340 - -[2025-01-04 21:51:10.148508] [info] Creando referencia en Stripe por: 34000 - -[2025-01-04 21:51:10.754482] [info] Creando payment methods del voucher - -[2025-01-04 21:51:11.017270] [info] Confirmando el paymentIntent - -[2025-01-04 21:51:11.629257] [info] Se terminó de confirmar el paymentIntent - -[2025-01-04 21:51:11.629379] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-01-04 21:51:11.629410] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2lnSGVEa1dRN1lmOEgyQndXdHd3S1BHUWdhc1hs0100hJjwUIhI - -[2025-01-04 21:51:11.630063] [debug] Este ese el reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2lnSGVEa1dRN1lmOEgyQndXdHd3S1BHUWdhc1hs0100hJjwUIhI"} -[2025-01-04 21:51:11.630172] [error] JSON error: No error -[2025-01-04 21:51:11.630207] [debug] HTTP request processing ended. -[2025-01-04 21:53:38.085383] [notice] Logging level set to:debug -[2025-01-04 21:53:38.085490] [debug] El valor del evento recibio en json: {"uuid":"07d645c4-3134-4ba6-84d1-1ca35e7adfc5","changeType":"insert","entity":"payment","entityId":"498","eventName":"payment.add","extraData":{"entity":{"id":498,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:53:37-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-01-04 21:53:38.203583] [debug] valor el evento recibido por webhook: payment.add - -[2025-01-04 21:53:38.203845] [debug] datos del notification para el invoice add:{"uuid":"07d645c4-3134-4ba6-84d1-1ca35e7adfc5","changeType":"insert","entity":"payment","entityId":498,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":5675,"accountCredit":5675,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":498,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:53:37-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]}} - -[2025-01-04 21:53:38.203872] [debug] valor del payment data: {"id":498,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:53:37-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]} - -[2025-01-04 21:53:38.203902] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181878106 - -El archivo se ha descargado correctamente y se ha guardado en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png - -El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/c05d34e0-c9da-40ec-a992-407128e8e9f6.pdf - -se creó la instancia de Imagick - -Ancho original de la imagen:482 Altura original de la imagen: 1024 - -Terminó de crear la imagen del comprobante - -Subiendo comprobante a worpdpress - -Conexión FTP exitosa - -El archivo ha sido cargado exitosamente. - -La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png - -[2025-01-04 21:53:48.264913] [notice] Logging level set to:debug -[2025-01-04 21:53:48.265263] [debug] El valor del evento recibio en json: {"uuid":"0dad66e5-5bec-4567-a401-e7c468368806","changeType":"edit","entity":"payment","entityId":"498","eventName":"payment.edit","extraData":{"entity":{"id":498,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:53:37-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":498,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:53:37-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]}}} - -[2025-01-04 21:53:48.408209] [debug] valor el evento recibido por webhook: payment.edit - -[2025-01-04 21:53:48.408613] [debug] HTTP request processing ended. -Archivos eliminados - -Se terminó de subir comprobante a wordpress - -La cadena CURL que se envia es: { - "to": "5214181878106", - "from": "whatsapp", - "type": "document", - "content": { - "text": "S/M", - "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png" - }, - "template_values": ["Daniel Humberto Soto Villegas Polleria", "$320", "$5675 a favor"], - "template_uuid": "57ead79cebd14902921477922403093b", - "optin_contact": true - } -Response del CallBell: {"message":{"uuid":"e72fe362942a47938a4a74f83630c4e0","status":"enqueued"}} -Hay menos de 50 archivos en el directorio. No se eliminarán archivos. - -Dentro del proceso del patch: - -Datos traidos con payment api: [{"id":498,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:53:37-0600","amount":320,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":320,"userId":null,"attributes":[]}] - -Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria - -UUID: 74cc2bb45eb8409f92cd5dba99200d26 - -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb25675 a favor","Monto Ultimo Pago":"\ud83d\udcb2 320","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb25675 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 320\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 15:53 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:53\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 15:53 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:53","Clabe Transferencia Banamex":null}} - -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-01-04T21:51:12Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"124180650741039816","Cliente":"2","user entry point":"inbound_message","Fecha Ultimo Pago":"📆💸 04/01/2025 15:53 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲5675 a favor","Monto Ultimo Pago":"💲 320","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 15:53","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲5675 a favor\",\"Monto Ultimo Pago\": \"💲 320\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 04/01/2025 15:53 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 15:53\",\"Clabe Transferencia Banamex\": \"\"}","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} - -[2025-01-04 21:53:57.489893] [debug] HTTP request processing ended. -[2025-01-04 21:54:14.682770] [notice] Logging level set to:debug -[2025-01-04 21:54:14.683099] [debug] El valor del evento recibio en json: {"uuid":"c3ef3905-5d01-4027-995c-ec59fc8ec1f3","changeType":"insert","entity":"payment","entityId":"499","eventName":"payment.add","extraData":{"entity":{"id":499,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:54:14-0600","amount":340,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":340,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-01-04 21:54:14.900810] [debug] valor el evento recibido por webhook: payment.add - -[2025-01-04 21:54:14.901177] [debug] datos del notification para el invoice add:{"uuid":"c3ef3905-5d01-4027-995c-ec59fc8ec1f3","changeType":"insert","entity":"payment","entityId":499,"message":null,"clientId":2,"eventName":"payment.add","clientData":{"id":2,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"31 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-25T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Daniel Humberto","lastName":"Soto Villegas Polleria","username":"danydhsv","contacts":[{"id":2,"clientId":2,"email":"dhsv.141089@gmail.com","phone":"4181878106","name":"Personal","isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":112,"clientId":2,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PetN1dhr4rx0kX","clientZoneVisible":true},{"id":113,"clientId":2,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"0021804341999569810","clientZoneVisible":true}],"accountBalance":6015,"accountCredit":6015,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f1df43","addressGpsLat":21.1564209,"addressGpsLon":-100.9384185,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":true,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":499,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:54:14-0600","amount":340,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":340,"userId":null,"attributes":[]}} - -[2025-01-04 21:54:14.901259] [debug] valor del payment data: {"id":499,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:54:14-0600","amount":340,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":340,"userId":null,"attributes":[]} - -[2025-01-04 21:54:14.901318] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 2 con número: 5214181878106 - -El archivo se ha descargado correctamente y se ha guardado en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png - -El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/1e7ae20f-fe67-4321-a2a6-f0541504882e.pdf - -se creó la instancia de Imagick - -Ancho original de la imagen:482 Altura original de la imagen: 1024 - -Terminó de crear la imagen del comprobante - -Subiendo comprobante a worpdpress - -[2025-01-04 21:54:24.792803] [notice] Logging level set to:debug -[2025-01-04 21:54:24.793018] [debug] El valor del evento recibio en json: {"uuid":"2815f9c6-019d-439e-9388-1114e7ac8056","changeType":"edit","entity":"payment","entityId":"499","eventName":"payment.edit","extraData":{"entity":{"id":499,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:54:14-0600","amount":340,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":340,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":499,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:54:14-0600","amount":340,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":340,"userId":null,"attributes":[]}}} - -[2025-01-04 21:54:24.915355] [debug] valor el evento recibido por webhook: payment.edit - -[2025-01-04 21:54:24.915704] [debug] HTTP request processing ended. -Conexión FTP exitosa +[2025-01-05 20:24:43.221244] [debug] valor el evento recibido por webhook: payment.edit +[2025-01-05 20:24:43.221637] [debug] HTTP request processing ended. El archivo ha sido cargado exitosamente. La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png @@ -527,82 +99,245 @@ La cadena CURL que se envia es: { "text": "S/M", "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png" }, - "template_values": ["Daniel Humberto Soto Villegas Polleria", "$340", "$6015 a favor"], + "template_values": ["Daniel Humberto Soto Villegas Polleria", "$300", "$6315 a favor"], "template_uuid": "57ead79cebd14902921477922403093b", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"fc25a9bf16da44d8ab24388cd4e541b5","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"8a5eef1332124f6dae7184a439622a5f","status":"enqueued"}} Hay menos de 50 archivos en el directorio. No se eliminarán archivos. Dentro del proceso del patch: -Datos traidos con payment api: [{"id":499,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T15:54:14-0600","amount":340,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":340,"userId":null,"attributes":[]}] +Datos traidos con payment api: [{"id":501,"clientId":2,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-05T14:24:32-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}] Nombre del cliente que se va a actualizar: Daniel Humberto Soto Villegas Polleria UUID: 74cc2bb45eb8409f92cd5dba99200d26 -JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb26015 a favor","Monto Ultimo Pago":"\ud83d\udcb2 340","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb26015 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 340\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 15:54 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:54\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 15:54 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 15:54","Clabe Transferencia Banamex":null}} +JSON con los datos a actualizar: {"name":"Daniel Humberto Soto Villegas Polleria","custom_fields":{"Cliente":2,"Domicilio":"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2","Saldo Actual":"\ud83d\udcb26315 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"\ud83d\udccd Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/2\",\"Saldo Actual\": \"\ud83d\udcb26315 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 300\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 05\/01\/2025 14:24 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 05\/01\/2025 14:24\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 05\/01\/2025 14:24 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 05\/01\/2025 14:24","Clabe Transferencia Banamex":null}} -Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-01-04T21:51:12Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"124180650741039816","Cliente":"2","user entry point":"inbound_message","Fecha Ultimo Pago":"📆💸 04/01/2025 15:54 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲6015 a favor","Monto Ultimo Pago":"💲 340","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 15:54","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲6015 a favor\",\"Monto Ultimo Pago\": \"💲 340\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 04/01/2025 15:54 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 15:54\",\"Clabe Transferencia Banamex\": \"\"}","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +Response Patch CallBell: {"contact":{"uuid":"74cc2bb45eb8409f92cd5dba99200d26","name":"Daniel Humberto Soto Villegas Polleria","phoneNumber":"5214181878106","avatarUrl":null,"createdAt":"2024-01-08T17:04:13Z","closedAt":"2025-01-05T20:15:40Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"124180650741039816","Cliente":"2","user entry point":"inbound_message","Fecha Ultimo Pago":"📆💸 05/01/2025 14:24 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲6315 a favor","Monto Ultimo Pago":"💲 300","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 05/01/2025 14:24","Resumen":"{\"Cliente\": \"2\",\"Domicilio\": \"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Daniel Humberto Soto Villegas Polleria\",\"URL\": \"🌐 https://172.16.5.120/crm/client/2\",\"Saldo Actual\": \"💲6315 a favor\",\"Monto Ultimo Pago\": \"💲 300\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 05/01/2025 14:24 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 05/01/2025 14:24\",\"Clabe Transferencia Banamex\": \"\"}","user name":"Daniel Humberto 🐁"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} -[2025-01-04 21:54:35.509160] [debug] HTTP request processing ended. -[2025-01-04 22:18:44.527709] [notice] Logging level set to:debug -[2025-01-04 22:18:44.527829] [debug] El valor del evento recibio en json: {"uuid":"bea45958-bf21-4e1e-8447-1b69ff6b0735","changeType":"insert","entity":"client","entityId":"156","eventName":"client.add","extraData":{"entity":{"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria Gricelda","lastName":"L\u00f3pez Avalos","username":null,"contacts":[{"id":160,"clientId":156,"email":null,"phone":"4181817609","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}} +[2025-01-05 20:24:51.561156] [debug] HTTP request processing ended. +[2025-01-06 6:25:04.622886] [notice] Logging level set to:debug +[2025-01-06 6:25:04.623004] [debug] El valor del evento recibio en json: {"uuid":"959d2039-f01c-48ff-8fe5-c98e4f341189","changeType":"overdue","entity":"invoice","entityId":"1310","eventName":"invoice.overdue","extraData":{"entity":{"id":1310,"clientId":148,"number":"001274","createdDate":"2024-12-22T10:00:01-0600","dueDate":"2025-01-05T10:00:01-0600","emailSentDate":"2025-01-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1312,"type":"service","label":"plan300 01\/12\/2024 \u2013 31\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 Campeche","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} -[2025-01-04 22:18:44.630623] [debug] valor el evento recibido por webhook: client.add +[2025-01-06 6:25:04.851037] [debug] valor el evento recibido por webhook: invoice.overdue -[2025-01-04 22:18:44.630863] [debug] Se agregó un nuevo cliente +[2025-01-06 6:25:04.851305] [debug] Factura vencida -[2025-01-04 22:18:44.696295] [info] ID correspondiente a 'Customer Stripe ID': 10 +[2025-01-06 6:25:04.851361] [debug] datos del notification para el invoice overdue:{"uuid":"959d2039-f01c-48ff-8fe5-c98e4f341189","changeType":"overdue","entity":"invoice","entityId":1310,"message":null,"clientId":148,"eventName":"invoice.overdue","clientData":{"id":148,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"24 Campeche","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Campeche 24, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-08-19T00:00:00-0600","leadConvertedAt":"2024-08-19T15:08:20-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El AR","lastName":"Real 3D","username":null,"contacts":[{"id":152,"clientId":148,"email":"elarquijuve@gmail.com","phone":"41818781806","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":147,"clientId":148,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Qh0pTQM9a96D8B","clientZoneVisible":true},{"id":148,"clientId":148,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"002180834778043086","clientZoneVisible":true},{"id":151,"clientId":148,"customAttributeId":8,"name":"conekta","key":"conekta","value":"aasdad","clientZoneVisible":true}],"accountBalance":-1330,"accountCredit":0,"accountOutstanding":1330,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#c62828","addressGpsLat":21.1558353,"addressGpsLon":-100.9384629,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1310,"clientId":148,"number":"001274","createdDate":"2024-12-22T10:00:01-0600","dueDate":"2025-01-05T10:00:01-0600","emailSentDate":"2025-01-06T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-22T00:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1312,"type":"service","label":"plan300 01\/12\/2024 \u2013 31\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":116,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El AR","clientLastName":"Real 3D","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"24 Campeche","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} -[2025-01-04 22:18:44.696547] [info] Valor de notification client data export: {"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria Gricelda","lastName":"L\u00f3pez Avalos","username":null,"contacts":[{"id":160,"clientId":156,"email":null,"phone":"4181817609","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false} +[2025-01-06 6:25:04.851388] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** -[2025-01-04 22:18:44.696578] [info] Creando el Customer Stripe +[2025-01-06 6:25:04.851525] [debug] Numero de cel obtenido -[2025-01-04 22:18:44.696589] [info] El cliente a procesar es : Maria Gricelda López Avalos +[2025-01-06 6:25:04.851541] [warning] No se encontró un teléfono celular válido para el cliente: 148 +[2025-01-06 6:25:04.851560] [debug] HTTP request processing ended. +[2025-01-06 23:49:43.414761] [notice] Logging level set to:debug +[2025-01-06 23:49:43.414999] [debug] El valor del evento recibio en json: {"uuid":"44198692-54d5-4e50-981a-d6c46ee8d392","changeType":"insert","entity":"client","entityId":"158","eventName":"client.add","extraData":{"entity":{"id":158,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 San Luis","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37804","fullAddress":"San Luis 23, Guadalupe, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-06T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Luis","lastName":"Guti\u00e9rrez","username":null,"contacts":[{"id":162,"clientId":158,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2196f3","addressGpsLat":21.153272,"addressGpsLon":-100.9134508,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}} -[2025-01-04 22:18:44.696609] [info] Datos notificationData: {"uuid":"bea45958-bf21-4e1e-8447-1b69ff6b0735","changeType":"insert","entity":"client","entityId":156,"message":null,"clientId":156,"eventName":"client.add","clientData":{"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria Gricelda","lastName":"L\u00f3pez Avalos","username":null,"contacts":[{"id":160,"clientId":156,"email":null,"phone":"4181817609","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null} +[2025-01-06 23:49:43.488938] [debug] valor el evento recibido por webhook: client.add -[2025-01-04 22:18:44.696616] [info] Ya dentro del FOREACH!!! +[2025-01-06 23:49:43.489284] [debug] Se agregó un nuevo cliente -[2025-01-04 22:18:44.696624] [info] REVISANDO EL PRIMER CONTACTO!!! +[2025-01-06 23:49:43.543565] [info] ID correspondiente a 'Customer Stripe ID': 10 -[2025-01-04 22:18:44.696634] [info] SE VALIDA EL EMAIL!!! +[2025-01-06 23:49:43.543927] [info] Valor de notification client data export: {"id":158,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 San Luis","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37804","fullAddress":"San Luis 23, Guadalupe, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-06T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Luis","lastName":"Guti\u00e9rrez","username":null,"contacts":[{"id":162,"clientId":158,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2196f3","addressGpsLat":21.153272,"addressGpsLon":-100.9134508,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false} -[2025-01-04 22:18:44.698553] [info] ahora se procede a validar el teléfono!!! +[2025-01-06 23:49:43.543998] [info] Creando el Customer Stripe -[2025-01-04 22:18:44.699378] [info] AHORA SE MANDA A CREAR EL CLIENTE A STRIPE!!! +[2025-01-06 23:49:43.544050] [info] El cliente a procesar es : Luis Gutiérrez -[2025-01-04 22:18:45.282644] [info] {"id":"cus_RWj8SZIs9d3z41","object":"customer","address":null,"balance":0,"created":1736029125,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 156","discount":null,"email":null,"invoice_prefix":"D4C51FAE","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":[],"name":"Maria Gricelda L\u00f3pez Avalos","next_invoice_sequence":1,"phone":"4181817609","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null} +[2025-01-06 23:49:43.544111] [info] Datos notificationData: {"uuid":"44198692-54d5-4e50-981a-d6c46ee8d392","changeType":"insert","entity":"client","entityId":158,"message":null,"clientId":158,"eventName":"client.add","clientData":{"id":158,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"23 San Luis","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37804","fullAddress":"San Luis 23, Guadalupe, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-06T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Luis","lastName":"Guti\u00e9rrez","username":null,"contacts":[{"id":162,"clientId":158,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#2196f3","addressGpsLat":21.153272,"addressGpsLon":-100.9134508,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null} -[2025-01-04 22:18:47.605971] [info] {"id":"cus_RWj8SZIs9d3z41","object":"customer","address":null,"balance":0,"created":1736029125,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 156","discount":null,"email":null,"invoice_prefix":"D4C51FAE","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"156"},"name":"Maria Gricelda L\u00f3pez Avalos","next_invoice_sequence":1,"phone":"4181817609","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null} +[2025-01-06 23:49:43.544163] [info] Ya dentro del FOREACH!!! -[2025-01-04 22:18:47.935695] [notice] Logging level set to:debug -[2025-01-04 22:18:47.935879] [debug] El valor del evento recibio en json: {"id":"evt_1QdfgBEFY1WEUtgRjIvWiEE5","object":"event","api_version":"2023-10-16","created":1736029127,"data":{"object":{"id":"cus_RWj8SZIs9d3z41","object":"customer","address":null,"balance":0,"created":1736029125,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 156","discount":null,"email":null,"invoice_prefix":"D4C51FAE","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"156"},"name":"Maria Gricelda L\u00f3pez Avalos","next_invoice_sequence":1,"phone":"4181817609","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null},"previous_attributes":{"metadata":{"ucrm_client_id":null}}},"livemode":false,"pending_webhooks":2,"request":{"id":"req_FDjzalWo9Gwt4L","idempotency_key":"96c3a804-8b96-4ff9-a0ec-4a1b51c5540d"},"type":"customer.updated"} +[2025-01-06 23:49:43.544209] [info] REVISANDO EL PRIMER CONTACTO!!! -[2025-01-04 22:18:47.935957] [error] JSON error: No error -[2025-01-04 22:18:47.935988] [debug] HTTP request processing ended. -[2025-01-04 22:18:50.051131] [info] {"object":"funding_instructions","bank_transfer":{"country":"MX","financial_addresses":[{"spei":{"account_holder_address":{"city":"Ciudad de M\u00e9xico","country":"MX","line1":"Av Paseo de la Reforma 180 piso 29 col Juarez","line2":null,"postal_code":"06600","state":"Ciudad de M\u00e9xico"},"account_holder_name":"SIIP INTERNET","bank_address":{"city":"Naucalpan","country":"MX","line1":"Blvd. Manuel Avila Camacho 1902","line2":"Planta Baja, Cd. Satelite","postal_code":"C.P. 53100","state":"Estado de Mexico"},"bank_code":"124","bank_name":"CITI","clabe":"124180553522369174"},"supported_networks":["spei"],"type":"spei"}],"type":"mx_bank_transfer"},"currency":"mxn","funding_type":"bank_transfer","livemode":false} +[2025-01-06 23:49:43.544255] [info] REVISANDO EL PRIMER CONTACTO!!! -[2025-01-04 22:18:50.375974] [info] CLABE guardada en metadata: 124180553522369174 +[2025-01-06 23:49:43.544303] [info] SE VALIDA EL EMAIL!!! -[2025-01-04 22:18:50.700612] [notice] Logging level set to:debug -[2025-01-04 22:18:50.700712] [debug] El valor del evento recibio en json: {"id":"evt_1QdfgEEFY1WEUtgRt0eThmtx","object":"event","api_version":"2023-10-16","created":1736029130,"data":{"object":{"id":"cus_RWj8SZIs9d3z41","object":"customer","address":null,"balance":0,"created":1736029125,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 156","discount":null,"email":null,"invoice_prefix":"D4C51FAE","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"156","clabe":"124180553522369174"},"name":"Maria Gricelda L\u00f3pez Avalos","next_invoice_sequence":1,"phone":"4181817609","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null},"previous_attributes":{"metadata":{"clabe":null}}},"livemode":false,"pending_webhooks":2,"request":{"id":"req_xnluVGAWzz73fe","idempotency_key":"bf4c455d-c3c9-4a6b-ae9e-4569661b6a3d"},"type":"customer.updated"} +[2025-01-06 23:49:43.545142] [info] ahora se procede a validar el teléfono!!! -[2025-01-04 22:18:50.700745] [error] JSON error: No error -[2025-01-04 22:18:50.700757] [debug] HTTP request processing ended. -[2025-01-04 22:18:51.001353] [info] {} +[2025-01-07 15:47:38.364449] [notice] Logging level set to:debug +[2025-01-07 15:47:38.364938] [debug] El valor del evento recibio en json: {"uuid":"f612ebfe-0ea7-4acd-98e9-ffac1ba68c6b","changeType":"insert","entity":"client","entityId":"159","eventName":"client.add","extraData":{"entity":{"id":159,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Quintana Roo","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Quintana Roo 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Lola","lastName":"La Trailera","username":null,"contacts":[{"id":163,"clientId":159,"email":null,"phone":"4156782356","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":156,"clientId":159,"customAttributeId":3,"name":"zona","key":"zona","value":"Saucillo","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1575189,"addressGpsLon":-100.9256403,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}} -[2025-01-04 22:18:51.001948] [debug] HTTP request processing ended. -[2025-01-04 22:18:51.151599] [notice] Logging level set to:debug -[2025-01-04 22:18:51.151743] [debug] El valor del evento recibio en json: {"uuid":"afe0480a-4668-4491-9d1f-c9b9a2dd7762","changeType":"edit","entity":"client","entityId":"156","eventName":"client.edit","extraData":{"entity":{"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria Gricelda","lastName":"L\u00f3pez Avalos","username":null,"contacts":[{"id":160,"clientId":156,"email":null,"phone":"4181817609","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":152,"clientId":156,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWj8SZIs9d3z41","clientZoneVisible":true},{"id":153,"clientId":156,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180553522369174","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria Gricelda","lastName":"L\u00f3pez Avalos","username":null,"contacts":[{"id":160,"clientId":156,"email":null,"phone":"4181817609","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} +[2025-01-07 15:47:38.436575] [debug] valor el evento recibido por webhook: client.add -[2025-01-04 22:18:51.240300] [debug] valor el evento recibido por webhook: client.edit +[2025-01-07 15:47:38.436919] [debug] Se agregó un nuevo cliente -[2025-01-04 22:18:51.241818] [debug] Se actualiza a un cliente +[2025-01-07 15:47:38.475883] [info] ID correspondiente a 'Customer Stripe ID': 10 -[2025-01-04 22:18:51.241961] [info] Se proceso los contactos +[2025-01-07 15:47:38.476226] [info] Valor de notification client data export: {"id":159,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Quintana Roo","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Quintana Roo 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Lola","lastName":"La Trailera","username":null,"contacts":[{"id":163,"clientId":159,"email":null,"phone":"4156782356","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":156,"clientId":159,"customAttributeId":3,"name":"zona","key":"zona","value":"Saucillo","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1575189,"addressGpsLon":-100.9256403,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false} + +[2025-01-07 16:00:05.445338] [notice] Logging level set to:debug +[2025-01-07 16:00:05.445574] [debug] El valor del evento recibio en json: {"uuid":"fa6f139c-f94f-4636-8b00-84e2821813ce","changeType":"insert","entity":"invoice","entityId":"1434","eventName":"invoice.add_draft","extraData":{"entity":{"id":1434,"clientId":110,"number":"001398","createdDate":"2025-01-07T10:00:02-0600","dueDate":"2025-01-21T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-01-06T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1437,"type":"service","label":"plan300 07\/12\/2024 \u2013 06\/01\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":109,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Maria la del Barrio","clientLastName":"Soy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"67 Morelos","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37805","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-01-07 16:00:05.626383] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-01-07 16:00:05.626997] [debug] HTTP request processing ended. +[2025-01-07 16:00:05.830420] [notice] Logging level set to:debug +[2025-01-07 16:00:05.830683] [debug] El valor del evento recibio en json: {"uuid":"d2047196-f5fa-4e17-83b0-99f0a216867a","changeType":"draft_approved","entity":"invoice","entityId":"1434","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1434,"clientId":110,"number":"001398","createdDate":"2025-01-07T10:00:02-0600","dueDate":"2025-01-21T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-01-06T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1437,"type":"service","label":"plan300 07\/12\/2024 \u2013 06\/01\/2025","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":109,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Maria la del Barrio","clientLastName":"Soy","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"67 Morelos","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37805","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-01-07 16:00:05.997479] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-01-07 16:00:05.997615] [debug] HTTP request processing ended. +[2025-01-07 16:00:06.684792] [notice] Logging level set to:debug +[2025-01-07 16:00:06.684894] [debug] El valor del evento recibio en json: {"uuid":"4bca885e-eaca-40aa-a5b7-0aa357f8d2e1","changeType":"insert","entity":"invoice","entityId":"1435","eventName":"invoice.add_draft","extraData":{"entity":{"id":1435,"clientId":116,"number":"001399","createdDate":"2025-01-07T10:00:02-0600","dueDate":"2025-01-21T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-01-06T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1438,"type":"service","label":"PREMIUM 07\/12\/2024 \u2013 06\/01\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":110,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Jos\u00e9 Humberto","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"28 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-01-07 16:00:06.840543] [debug] valor el evento recibido por webhook: invoice.add_draft + +[2025-01-07 16:00:06.840686] [debug] HTTP request processing ended. +[2025-01-07 16:00:06.954994] [notice] Logging level set to:debug +[2025-01-07 16:00:06.955112] [debug] El valor del evento recibio en json: {"uuid":"1804c279-04f6-4baf-9036-d3f6666b0436","changeType":"draft_approved","entity":"invoice","entityId":"1435","eventName":"invoice.draft_approved","extraData":{"entity":{"id":1435,"clientId":116,"number":"001399","createdDate":"2025-01-07T10:00:02-0600","dueDate":"2025-01-21T10:00:02-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2025-01-06T00:00:00+0000","notes":null,"adminNotes":null,"items":[{"id":1438,"type":"service","label":"PREMIUM 07\/12\/2024 \u2013 06\/01\/2025","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":110,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Jos\u00e9 Humberto","clientLastName":"Rodr\u00edguez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"28 Chiapas","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} + +[2025-01-07 16:00:07.111902] [debug] valor el evento recibido por webhook: invoice.draft_approved + +[2025-01-07 16:00:07.112046] [debug] HTTP request processing ended. +[2025-01-07 16:03:05.517096] [notice] Logging level set to:debug +[2025-01-07 16:03:05.517401] [debug] El valor del evento recibio en json: {"uuid":"0dd03023-231f-4ebe-9355-02295f45286a","changeType":"insert","entity":"client","entityId":"160","eventName":"client.add","extraData":{"entity":{"id":160,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Jalisco","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Jalisco 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Jimy","lastName":"Turner","username":"jymy@gmail.com","contacts":[{"id":164,"clientId":160,"email":"jymy@gmail.com","phone":"4186784656","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.1544785,"addressGpsLon":-100.9352517,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}} + +[2025-01-07 16:03:05.591856] [debug] valor el evento recibido por webhook: client.add + +[2025-01-07 16:03:05.592192] [debug] Se agregó un nuevo cliente + +[2025-01-07 16:03:05.635044] [info] ID correspondiente a 'Customer Stripe ID': 10 + +[2025-01-07 16:03:05.636245] [info] Valor de notification client data export: {"id":160,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Jalisco","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Jalisco 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Jimy","lastName":"Turner","username":"jymy@gmail.com","contacts":[{"id":164,"clientId":160,"email":"jymy@gmail.com","phone":"4186784656","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.1544785,"addressGpsLon":-100.9352517,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false} + +[2025-01-07 16:24:39.528942] [notice] Logging level set to:debug +[2025-01-07 16:24:39.533911] [debug] El valor del evento recibio en json: {"uuid":"0ed22a78-2474-4378-b43a-cdf3bf2dc91d","changeType":"insert","entity":"client","entityId":"161","eventName":"client.add","extraData":{"entity":{"id":161,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"S\/N Carretera a R\u00edo Laja","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Quicktime Pizza Dolores Hidalgo, Carretera a R\u00edo Laja, Ejido San Jos\u00e9 de Badillo, Dolores Hidalgo, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Cesar Antonio","lastName":"Juarez Garcia","username":"gump@gmail.com","contacts":[{"id":165,"clientId":161,"email":"gump@gmail.com","phone":"4236784563","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.184621,"addressGpsLon":-100.9322859,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}} + +[2025-01-07 16:24:39.665021] [debug] valor el evento recibido por webhook: client.add + +[2025-01-07 16:24:39.665344] [debug] Se agregó un nuevo cliente + +[2025-01-07 16:24:39.732781] [info] ID correspondiente a 'Customer Stripe ID': 10 + +[2025-01-07 16:24:39.733156] [info] Valor de notification client data export: {"id":161,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"S\/N Carretera a R\u00edo Laja","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Quicktime Pizza Dolores Hidalgo, Carretera a R\u00edo Laja, Ejido San Jos\u00e9 de Badillo, Dolores Hidalgo, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Cesar Antonio","lastName":"Juarez Garcia","username":"gump@gmail.com","contacts":[{"id":165,"clientId":161,"email":"gump@gmail.com","phone":"4236784563","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#cddc39","addressGpsLat":21.184621,"addressGpsLon":-100.9322859,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false} + +[2025-01-07 16:30:16.031681] [notice] Logging level set to:debug +[2025-01-07 16:30:16.032058] [debug] El valor del evento recibio en json: {"uuid":"3608b23d-ab3a-4c67-b5b8-7e1407ce306f","changeType":"insert","entity":"client","entityId":"162","eventName":"client.add","extraData":{"entity":{"id":162,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"76 Chiapas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Chiapas 76, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Eduard","lastName":"Elric","username":"eduardelric@gmail.com","contacts":[{"id":166,"clientId":162,"email":"eduardelric@gmail.com","phone":"4185673456","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#d84315","addressGpsLat":21.1575488,"addressGpsLon":-100.9409119,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}} + +[2025-01-07 16:30:16.150923] [debug] valor el evento recibido por webhook: client.add + +[2025-01-07 16:30:16.151242] [debug] Se agregó un nuevo cliente + +[2025-01-07 16:30:16.195925] [info] ID correspondiente a 'Customer Stripe ID': 10 + +[2025-01-07 16:30:16.196230] [info] El valor de 'isLead' es: true + +[2025-01-07 16:30:16.196255] [info] El cliente es un lead, no se procesará + +[2025-01-07 16:30:16.196279] [debug] HTTP request processing ended. +[2025-01-07 16:31:36.912322] [notice] Logging level set to:debug +[2025-01-07 16:31:36.912463] [debug] El valor del evento recibio en json: {"uuid":"a1b8d90f-c2d1-4b60-9ac2-c8971ae4bd0b","changeType":"insert","entity":"client","entityId":"163","eventName":"client.add","extraData":{"entity":{"id":163,"userIdent":null,"previousIsp":null,"isLead":true,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Tamaulipas","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Tamaulipas 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Juan","lastName":"Ramirez Gueerero","username":"rmgjuan@gmail.com","contacts":[{"id":167,"clientId":163,"email":"rmgjuan@gmail.com","phone":"4181876543","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f4511e","addressGpsLat":21.1562555,"addressGpsLon":-100.9302794,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}} + +[2025-01-07 16:31:36.995820] [debug] valor el evento recibido por webhook: client.add + +[2025-01-07 16:31:36.996073] [debug] Se agregó un nuevo cliente + +[2025-01-07 16:31:37.045953] [info] ID correspondiente a 'Customer Stripe ID': 10 + +[2025-01-07 16:31:37.046339] [info] El valor de 'isLead' es: true + +[2025-01-07 16:31:37.046466] [info] El cliente es un lead, no se procesará + +[2025-01-07 16:31:37.046534] [debug] HTTP request processing ended. +[2025-01-07 16:32:44.292279] [notice] Logging level set to:debug +[2025-01-07 16:32:44.292428] [debug] El valor del evento recibio en json: {"uuid":"ca2ec588-b0cf-4192-8079-e00fb9b37234","changeType":"insert","entity":"client","entityId":"164","eventName":"client.add","extraData":{"entity":{"id":164,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Isra","lastName":"Marcial","username":"isramarcial@gmail.com","contacts":[{"id":168,"clientId":164,"email":"isramarcial@gmail.com","phone":"4185903400","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1616473,"addressGpsLon":-100.9356332,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}} + +[2025-01-07 16:32:44.408622] [debug] valor el evento recibido por webhook: client.add + +[2025-01-07 16:32:44.408853] [debug] Se agregó un nuevo cliente + +[2025-01-07 16:32:44.450726] [info] ID correspondiente a 'Customer Stripe ID': 10 + +[2025-01-07 16:32:44.451013] [info] El valor de 'isLead' es: false + +[2025-01-07 16:32:44.451040] [info] El cliente NO es un lead, se procesará + +[2025-01-07 16:32:44.451050] [info] Creando el Customer Stripe + +[2025-01-07 16:32:44.451061] [info] El cliente a procesar es : Isra Marcial + +[2025-01-07 16:32:44.451081] [info] Datos notificationData: {"uuid":"ca2ec588-b0cf-4192-8079-e00fb9b37234","changeType":"insert","entity":"client","entityId":164,"message":null,"clientId":164,"eventName":"client.add","clientData":{"id":164,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Isra","lastName":"Marcial","username":"isramarcial@gmail.com","contacts":[{"id":168,"clientId":164,"email":"isramarcial@gmail.com","phone":"4185903400","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1616473,"addressGpsLon":-100.9356332,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null} + +[2025-01-07 16:32:44.451090] [info] Ya dentro del FOREACH!!! + +[2025-01-07 16:32:44.451097] [info] REVISANDO EL PRIMER CONTACTO!!! + +[2025-01-07 16:32:44.451105] [info] REVISANDO EL PRIMER CONTACTO!!! + +[2025-01-07 16:32:44.451113] [info] SE VALIDA EL EMAIL!!! + +[2025-01-07 16:32:44.451889] [info] ahora se procede a validar el teléfono!!! + +[2025-01-07 16:32:44.452007] [info] AHORA SE MANDA A CREAR EL CLIENTE A STRIPE!!! + +[2025-01-07 16:32:45.108345] [info] {"id":"cus_RXlEErqtrukycS","object":"customer","address":null,"balance":0,"created":1736267564,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 164","discount":null,"email":"isramarcial@gmail.com","invoice_prefix":"845080DA","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":[],"name":"Isra Marcial","next_invoice_sequence":1,"phone":"4185903400","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null} + +[2025-01-07 16:32:47.428654] [info] {"id":"cus_RXlEErqtrukycS","object":"customer","address":null,"balance":0,"created":1736267564,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 164","discount":null,"email":"isramarcial@gmail.com","invoice_prefix":"845080DA","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"164"},"name":"Isra Marcial","next_invoice_sequence":1,"phone":"4185903400","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null} + +[2025-01-07 16:32:48.135539] [notice] Logging level set to:debug +[2025-01-07 16:32:48.135659] [debug] El valor del evento recibio en json: {"id":"evt_1QefhzEFY1WEUtgRrMMkhO76","object":"event","api_version":"2023-10-16","created":1736267567,"data":{"object":{"id":"cus_RXlEErqtrukycS","object":"customer","address":null,"balance":0,"created":1736267564,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 164","discount":null,"email":"isramarcial@gmail.com","invoice_prefix":"845080DA","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"164"},"name":"Isra Marcial","next_invoice_sequence":1,"phone":"4185903400","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null},"previous_attributes":{"metadata":{"ucrm_client_id":null}}},"livemode":false,"pending_webhooks":2,"request":{"id":"req_135Tdn1O2rvTIU","idempotency_key":"ef6067d2-e159-4f7d-9f3f-bf73145d4477"},"type":"customer.updated"} + +[2025-01-07 16:32:48.135703] [error] JSON error: No error +[2025-01-07 16:32:48.135788] [debug] HTTP request processing ended. +[2025-01-07 16:32:49.920465] [info] {"object":"funding_instructions","bank_transfer":{"country":"MX","financial_addresses":[{"spei":{"account_holder_address":{"city":"Ciudad de M\u00e9xico","country":"MX","line1":"Av Paseo de la Reforma 180 piso 29 col Juarez","line2":null,"postal_code":"06600","state":"Ciudad de M\u00e9xico"},"account_holder_name":"SIIP INTERNET","bank_address":{"city":"Naucalpan","country":"MX","line1":"Blvd. Manuel Avila Camacho 1902","line2":"Planta Baja, Cd. Satelite","postal_code":"C.P. 53100","state":"Estado de Mexico"},"bank_code":"124","bank_name":"CITI","clabe":"124180701225308815"},"supported_networks":["spei"],"type":"spei"}],"type":"mx_bank_transfer"},"currency":"mxn","funding_type":"bank_transfer","livemode":false} + +[2025-01-07 16:32:50.240696] [info] CLABE guardada en metadata: 124180701225308815 + +[2025-01-07 16:32:50.425777] [info] {} + +[2025-01-07 16:32:50.426755] [debug] HTTP request processing ended. +[2025-01-07 16:32:50.547811] [notice] Logging level set to:debug +[2025-01-07 16:32:50.548101] [debug] El valor del evento recibio en json: {"uuid":"5117eae2-17f4-4feb-b429-9ee071a4264b","changeType":"edit","entity":"client","entityId":"164","eventName":"client.edit","extraData":{"entity":{"id":164,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Isra","lastName":"Marcial","username":"isramarcial@gmail.com","contacts":[{"id":168,"clientId":164,"email":"isramarcial@gmail.com","phone":"4185903400","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":157,"clientId":164,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RXlEErqtrukycS","clientZoneVisible":true},{"id":158,"clientId":164,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180701225308815","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1616473,"addressGpsLon":-100.9356332,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":164,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Coahuila","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Coahuila 45, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-07T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Isra","lastName":"Marcial","username":"isramarcial@gmail.com","contacts":[{"id":168,"clientId":164,"email":"isramarcial@gmail.com","phone":"4185903400","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1616473,"addressGpsLon":-100.9356332,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} + +[2025-01-07 16:32:50.628608] [debug] valor el evento recibido por webhook: client.edit + +[2025-01-07 16:32:50.628881] [debug] Se actualiza a un cliente + +[2025-01-07 16:32:50.628972] [debug] HTTP request processing ended. +[2025-01-07 16:32:50.638360] [notice] Logging level set to:debug +[2025-01-07 16:32:50.638533] [debug] El valor del evento recibio en json: {"id":"evt_1Qefi2EFY1WEUtgRra5KbxwJ","object":"event","api_version":"2023-10-16","created":1736267570,"data":{"object":{"id":"cus_RXlEErqtrukycS","object":"customer","address":null,"balance":0,"created":1736267564,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 164","discount":null,"email":"isramarcial@gmail.com","invoice_prefix":"845080DA","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"164","clabe":"124180701225308815"},"name":"Isra Marcial","next_invoice_sequence":1,"phone":"4185903400","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null},"previous_attributes":{"metadata":{"clabe":null}}},"livemode":false,"pending_webhooks":2,"request":{"id":"req_ikADrNaQ5DP2xX","idempotency_key":"7b6997a4-9e58-4eb8-922f-86d6394e560f"},"type":"customer.updated"} + +[2025-01-07 16:32:50.638633] [error] JSON error: No error +[2025-01-07 16:32:50.638685] [debug] HTTP request processing ended. +[2025-01-07 17:35:20.236944] [notice] Logging level set to:debug +[2025-01-07 17:35:20.237417] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":1406,"amount":3600} + +[2025-01-07 17:35:20.237442] [info] Evento de referencia de oxxo recibido + +[2025-01-07 17:35:20.237453] [info] Referencia persnoalizada, Valor del monto: 3600 + +[2025-01-07 17:35:20.237468] [info] Creando referencia del cliente para OXXO: + +[2025-01-07 17:35:20.381795] [error] Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/1406` resulted in a `404 Not Found` response: +{"code":404,"message":"Not Found"} + +[2025-01-07 17:39:28.066896] [notice] Logging level set to:debug +[2025-01-07 17:39:28.067564] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":1406,"amount":3600} + +[2025-01-07 17:39:28.067693] [info] Evento de referencia de oxxo recibido + +[2025-01-07 17:39:28.067781] [info] Referencia persnoalizada, Valor del monto: 3600 + +[2025-01-07 17:39:28.067866] [info] Creando referencia del cliente para OXXO: + +[2025-01-07 17:39:28.183438] [error] Client error: `GET https://172.16.5.134/crm/api/v1.0/clients/1406` resulted in a `404 Not Found` response: +{"code":404,"message":"Not Found"} + +[2025-01-07 17:40:57.054476] [notice] Logging level set to:debug +[2025-01-07 17:40:57.054835] [debug] El valor del evento recibio en json: {"uuid":"59a9c2c1-59d1-47e9-8758-dada50510081","changeType":"edit","entity":"client","entityId":"156","eventName":"client.edit","extraData":{"entity":{"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria Gricelda","lastName":"L\u00f3pez Avalos","username":null,"contacts":[{"id":160,"clientId":156,"email":null,"phone":"4181817609","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":152,"clientId":156,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWj8SZIs9d3z41","clientZoneVisible":true},{"id":153,"clientId":156,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180553522369174","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria Gricelda","lastName":"L\u00f3pez Avalos","username":null,"contacts":[{"id":160,"clientId":156,"email":null,"phone":"4181817609","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":152,"clientId":156,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWj8SZIs9d3z41","clientZoneVisible":true},{"id":153,"clientId":156,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180553522369174","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} + +[2025-01-07 17:40:57.131200] [debug] valor el evento recibido por webhook: client.edit + +[2025-01-07 17:40:57.131781] [debug] Se actualiza a un cliente + +[2025-01-07 17:40:57.131973] [info] Se proceso los contactos Dentro del proceso del patch: @@ -612,255 +347,91 @@ Nombre del cliente que se va a actualizar: Maria Gricelda López Avalos UUID: 2038d2d99ae543f3b56f1ae54f4cc82b -JSON con los datos a actualizar: {"name":"Maria Gricelda L\u00f3pez Avalos","custom_fields":{"Cliente":156,"Domicilio":"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/156","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/156\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 22:18 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:18\",\"Clabe Transferencia Banamex\": \"124180553522369174\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 22:18 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:18","Clabe Transferencia Banamex":"124180553522369174"}} +JSON con los datos a actualizar: {"name":"Maria Gricelda L\u00f3pez Avalos","custom_fields":{"Cliente":156,"Domicilio":"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/156","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/156\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 07\/01\/2025 17:40 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 07\/01\/2025 11:40\",\"Clabe Transferencia Banamex\": \"124180553522369174\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 07\/01\/2025 17:40 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 07\/01\/2025 11:40","Clabe Transferencia Banamex":"124180553522369174"}} -Response Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Maria Gricelda López Avalos","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2024-01-26T20:32:31Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":[],"assignedUser":null,"customFields":{"Cliente":"156","Estado":"🟢 Activo ","Nombre":"👤 Maria Gricelda López Avalos","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Maria Gricelda López Avalos\",\"URL\": \"🌐 https://172.16.5.120/crm/client/156\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 \",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 04/01/2025 22:18 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 16:18\",\"Clabe Transferencia Banamex\": \"124180553522369174\"}","Domicilio":"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","URL":"🌐 https://172.16.5.120/crm/client/156","Fecha Ultimo Pago":"📆💸 04/01/2025 22:18 con Desconocido, revisar metodos de pago no contemplados","Monto Ultimo Pago":"💲 ","Saldo Actual":"💲0 está al corriente","Clabe Transferencia Banamex":"124180553522369174","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 16:18"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +Response Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Maria Gricelda López Avalos","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2025-01-07T17:39:28Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":[],"assignedUser":null,"customFields":{"Estado":"🟢 Activo ","Nombre":"👤 Maria Gricelda López Avalos","Cliente":"156","Domicilio":"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","URL":"🌐 https://172.16.5.120/crm/client/156","Fecha Ultimo Pago":"📆💸 07/01/2025 17:40 con Desconocido, revisar metodos de pago no contemplados","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Maria Gricelda López Avalos\",\"URL\": \"🌐 https://172.16.5.120/crm/client/156\",\"Saldo Actual\": \"💲0 está al corriente\",\"Monto Ultimo Pago\": \"💲 \",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 07/01/2025 17:40 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 07/01/2025 11:40\",\"Clabe Transferencia Banamex\": \"124180553522369174\"}","Monto Ultimo Pago":"💲 ","Saldo Actual":"💲0 está al corriente","Clabe Transferencia Banamex":"124180553522369174","Fecha Ultima Actualizacion":"📆🔄️ 07/01/2025 11:40","user entry point":"inbound_message","user name":"Grisel"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} -[2025-01-04 22:18:53.682930] [debug] HTTP request processing ended. -[2025-01-04 22:18:55.716912] [notice] Logging level set to:debug -[2025-01-04 22:18:55.717020] [debug] El valor del evento recibio en json: {"uuid":"533ca3f5-fad3-4419-8a7c-fa3f75ffdb6d","changeType":"insert","entity":"service","entityId":"126","eventName":"service.add","extraData":{"entity":{"id":126,"prepaid":false,"clientId":156,"status":1,"name":"PREMIUM","fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-01-04T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-01-04T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"55d613ed-decc-4317-a3ad-d95c684a3843","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":null}} +[2025-01-07 17:40:59.185159] [debug] HTTP request processing ended. +[2025-01-07 17:42:39.148557] [notice] Logging level set to:debug +[2025-01-07 17:42:39.148984] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":156} -[2025-01-04 22:18:56.158592] [debug] valor el evento recibido por webhook: service.add +[2025-01-07 17:42:39.149173] [info] Evento de referencia de oxxo recibido -[2025-01-04 22:18:56.158788] [debug] HTTP request processing ended. -[2025-01-04 22:19:01.632682] [notice] Logging level set to:debug -[2025-01-04 22:19:01.633083] [debug] El valor del evento recibio en json: {"uuid":"8a4b9191-6941-4958-8c98-a0426741cd54","changeType":"edit","entity":"service","entityId":"126","eventName":"service.edit","extraData":{"entity":{"id":126,"prepaid":false,"clientId":156,"status":1,"name":"PREMIUM","fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-01-04T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-01-04T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"55d613ed-decc-4317-a3ad-d95c684a3843","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":126,"prepaid":false,"clientId":156,"status":1,"name":"PREMIUM","fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"servicePlanId":4,"servicePlanPeriodId":19,"price":700,"hasIndividualPrice":false,"totalPrice":700,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-01-04T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-01-04T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"PREMIUM","servicePlanPrice":700,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":20,"uploadSpeed":20,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"55d613ed-decc-4317-a3ad-d95c684a3843","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} +[2025-01-07 17:42:39.149353] [info] Creando referencia del cliente para OXXO: -[2025-01-04 22:19:01.806576] [debug] valor el evento recibido por webhook: service.edit +[2025-01-07 17:42:39.276736] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_RWj8SZIs9d3z41 -[2025-01-04 22:19:01.806916] [debug] HTTP request processing ended. -[2025-01-04 22:20:17.663285] [notice] Logging level set to:debug -[2025-01-04 22:20:17.663666] [debug] El valor del evento recibio en json: {"uuid":"37a75c83-96fc-4adb-b97a-a9be017c01d0","changeType":"edit","entity":"client","entityId":"3","eventName":"client.edit","extraData":{"entity":{"id":3,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":null,"invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-27T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Lupita","lastName":"Morales","username":"lmorales03","contacts":[{"id":3,"clientId":3,"email":null,"phone":"5214181577623","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":3,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":null,"invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-27T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Lupita","lastName":"Morales","username":"lmorales03","contacts":[{"id":3,"clientId":3,"email":null,"phone":"5214181148554","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} +[2025-01-07 17:42:39.276957] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. -[2025-01-04 22:20:17.813152] [debug] valor el evento recibido por webhook: client.edit +[2025-01-07 17:42:39.277390] [info] Creando referencia del cliente para OXXO: -[2025-01-04 22:20:17.813519] [debug] Se actualiza a un cliente +[2025-01-07 17:42:39.382885] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_RWj8SZIs9d3z41 -[2025-01-04 22:20:17.813637] [info] Se proceso los contactos +[2025-01-07 17:42:39.383090] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. -Dentro del proceso del patch: +[2025-01-07 17:42:41.383547] [info] Creando referencia del cliente para OXXO: -Datos traidos con payment api: [{"id":387,"clientId":3,"methodId":"11721cdf-a498-48be-903e-daa67552e4f6","checkNumber":null,"createdDate":"2024-12-11T13:32:40-0600","amount":3000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":446,"invoiceId":117,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":447,"invoiceId":234,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":448,"invoiceId":331,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":449,"invoiceId":496,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":450,"invoiceId":632,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":451,"invoiceId":752,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":452,"invoiceId":860,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":453,"invoiceId":969,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":454,"invoiceId":1085,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":455,"invoiceId":1195,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2025-01-07 17:42:41.496614] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_RWj8SZIs9d3z41 -Nombre del cliente que se va a actualizar: Lupita Morales +[2025-01-07 17:42:41.496913] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. -UUID: 7ec1948ad8af4bcd8eff0d7c2a995d09 +[2025-01-07 17:42:43.497462] [info] Creando referencia del cliente para OXXO: -JSON con los datos a actualizar: {"name":"Lupita Morales","custom_fields":{"Cliente":3,"Domicilio":"\ud83d\udccd\u274c Sin domicilio","Nombre":"\ud83d\udc64 Lupita Morales","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/3","Saldo Actual":"\ud83d\udcb2300 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3000","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"3\",\"Domicilio\": \"\ud83d\udccd\u274c Sin domicilio\",\"Nombre\": \"\ud83d\udc64 Lupita Morales\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/3\",\"Saldo Actual\": \"\ud83d\udcb2300 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 3000\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 11\/12\/2024 13:32 con Cheque \ud83d\udcc4\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:20\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/12\/2024 13:32 con Cheque \ud83d\udcc4","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:20","Clabe Transferencia Banamex":null}} +[2025-01-07 17:42:43.631756] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_RWj8SZIs9d3z41 -Response Patch CallBell: {"contact":{"uuid":"7ec1948ad8af4bcd8eff0d7c2a995d09","name":"Lupita Morales","phoneNumber":"5214181577623","avatarUrl":null,"createdAt":"2023-12-22T16:52:57Z","closedAt":"2025-01-04T17:49:10Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7ec1948ad8af4bcd8eff0d7c2a995d09","conversationHref":"https://dash.callbell.eu/chat/d06f5a96768c4945b7a659a6930e5fa0","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Nombre":"👤 Lupita Morales","Cliente":"3","Domicilio":"📍❌ Sin domicilio","Clabe Transferencia Banamex":"124180650725363841","Fecha Ultimo Pago":"📆💸 11/12/2024 13:32 con Cheque 📄","Saldo Actual":"💲300 pendientes","user name":"Míriam Moctezuma","Resumen":"{\"Cliente\": \"3\",\"Domicilio\": \"📍❌ Sin domicilio\",\"Nombre\": \"👤 Lupita Morales\",\"URL\": \"🌐 https://172.16.5.120/crm/client/3\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"💲 3000\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 11/12/2024 13:32 con Cheque 📄\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 16:20\",\"Clabe Transferencia Banamex\": \"\"}","Estado":"🟢 Activo ","URL":"🌐 https://172.16.5.120/crm/client/3","Monto Ultimo Pago":"💲 3000","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 16:20"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2025-01-07 17:42:43.631932] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. -[2025-01-04 22:20:19.867376] [debug] HTTP request processing ended. -[2025-01-04 22:20:32.980510] [notice] Logging level set to:debug -[2025-01-04 22:20:32.980901] [debug] El valor del evento recibio en json: {"uuid":"4ed181bc-7c5d-437c-88a1-d9fa1110c631","changeType":"edit","entity":"client","entityId":"3","eventName":"client.edit","extraData":{"entity":{"id":3,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"56 Oaxaca","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-27T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Lupita","lastName":"Morales","username":"lmorales03","contacts":[{"id":3,"clientId":3,"email":null,"phone":"5214181577623","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":21.16004,"addressGpsLon":-100.9368203,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":3,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":null,"invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-27T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Lupita","lastName":"Morales","username":"lmorales03","contacts":[{"id":3,"clientId":3,"email":null,"phone":"5214181577623","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-300,"accountCredit":0,"accountOutstanding":300,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#f9a825","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} +[2025-01-07 17:42:45.632616] [info] Creando referencia del cliente para OXXO: -[2025-01-04 22:20:33.100435] [debug] valor el evento recibido por webhook: client.edit +[2025-01-07 17:42:45.750991] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_RWj8SZIs9d3z41 -[2025-01-04 22:20:33.100795] [debug] Se actualiza a un cliente +[2025-01-07 17:42:45.751188] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. -[2025-01-04 22:20:33.100914] [info] Se proceso los contactos +[2025-01-07 17:42:45.751526] [debug] Reponse que se envía a CallBell: {"url": "errorsinadeudo"} +[2025-01-07 17:42:45.751657] [error] JSON error: No error +[2025-01-07 17:42:45.751741] [debug] HTTP request processing ended. +[2025-01-07 17:43:53.002497] [notice] Logging level set to:debug +[2025-01-07 17:43:53.003189] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":156,"amount":3600} -Dentro del proceso del patch: +[2025-01-07 17:43:53.003453] [info] Evento de referencia de oxxo recibido -Datos traidos con payment api: [{"id":387,"clientId":3,"methodId":"11721cdf-a498-48be-903e-daa67552e4f6","checkNumber":null,"createdDate":"2024-12-11T13:32:40-0600","amount":3000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":446,"invoiceId":117,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":447,"invoiceId":234,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":448,"invoiceId":331,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":449,"invoiceId":496,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":450,"invoiceId":632,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":451,"invoiceId":752,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":452,"invoiceId":860,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":453,"invoiceId":969,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":454,"invoiceId":1085,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300},{"id":455,"invoiceId":1195,"paymentId":387,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1015,"attributes":[]}] +[2025-01-07 17:43:53.003650] [info] Referencia persnoalizada, Valor del monto: 3600 -Nombre del cliente que se va a actualizar: Lupita Morales +[2025-01-07 17:43:53.003839] [info] Creando referencia del cliente para OXXO: -UUID: 7ec1948ad8af4bcd8eff0d7c2a995d09 +[2025-01-07 17:43:53.129194] [info] Monto proporcionado directamente: 3600 -JSON con los datos a actualizar: {"name":"Lupita Morales","custom_fields":{"Cliente":3,"Domicilio":"\ud83d\udccd Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Lupita Morales","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/3","Saldo Actual":"\ud83d\udcb2300 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 3000","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"3\",\"Domicilio\": \"\ud83d\udccd Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Lupita Morales\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/3\",\"Saldo Actual\": \"\ud83d\udcb2300 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 3000\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 11\/12\/2024 13:32 con Cheque \ud83d\udcc4\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:20\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 11\/12\/2024 13:32 con Cheque \ud83d\udcc4","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:20","Clabe Transferencia Banamex":null}} +[2025-01-07 17:43:53.129244] [info] Creando referencia en Stripe por: 360000 -Response Patch CallBell: {"contact":{"uuid":"7ec1948ad8af4bcd8eff0d7c2a995d09","name":"Lupita Morales","phoneNumber":"5214181577623","avatarUrl":null,"createdAt":"2023-12-22T16:52:57Z","closedAt":"2025-01-04T17:49:10Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/7ec1948ad8af4bcd8eff0d7c2a995d09","conversationHref":"https://dash.callbell.eu/chat/d06f5a96768c4945b7a659a6930e5fa0","tags":[],"assignedUser":null,"customFields":{"user entry point":"inbound_message","Nombre":"👤 Lupita Morales","Cliente":"3","Domicilio":"📍 Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Clabe Transferencia Banamex":"124180650725363841","Fecha Ultimo Pago":"📆💸 11/12/2024 13:32 con Cheque 📄","Saldo Actual":"💲300 pendientes","user name":"Míriam Moctezuma","Resumen":"{\"Cliente\": \"3\",\"Domicilio\": \"📍 Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Lupita Morales\",\"URL\": \"🌐 https://172.16.5.120/crm/client/3\",\"Saldo Actual\": \"💲300 pendientes\",\"Monto Ultimo Pago\": \"💲 3000\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 11/12/2024 13:32 con Cheque 📄\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 16:20\",\"Clabe Transferencia Banamex\": \"\"}","Estado":"🟢 Activo ","URL":"🌐 https://172.16.5.120/crm/client/3","Monto Ultimo Pago":"💲 3000","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 16:20"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} +[2025-01-07 17:43:53.774100] [info] Creando payment methods del voucher -[2025-01-04 22:20:35.211805] [debug] HTTP request processing ended. -[2025-01-04 22:20:35.335758] [notice] Logging level set to:debug -[2025-01-04 22:20:35.336025] [debug] El valor del evento recibio en json: {"uuid":"5d9c44cd-a7f6-4302-8da4-cbab62e09838","changeType":"edit","entity":"service","entityId":"3","eventName":"service.edit","extraData":{"entity":{"id":3,"prepaid":false,"clientId":3,"status":1,"name":"plan300","fullAddress":"Oaxaca 56, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"56 Oaxaca","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","note":null,"addressGpsLat":21.16004,"addressGpsLon":-100.9368203,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-01-27T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2024-01-28T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":27,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2024-12-26T00:00:00-0600","unmsClientSiteId":"c4ea6c5c-0577-42bc-852e-e54cad6255b8","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":43,"startDate":"2024-03-13T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"}],"surcharges":[]},"entityBeforeEdit":{"id":3,"prepaid":false,"clientId":3,"status":1,"name":"plan300","fullAddress":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"note":null,"addressGpsLat":null,"addressGpsLon":null,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2024-01-27T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2024-01-28T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":27,"nextInvoicingDayAdjustment":0,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":"2024-12-26T00:00:00-0600","unmsClientSiteId":"c4ea6c5c-0577-42bc-852e-e54cad6255b8","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[{"id":43,"startDate":"2024-03-13T00:00:00-0600","endDate":"2024-12-11T00:00:00-0600"}],"surcharges":[]}}} +[2025-01-07 17:43:54.023724] [info] Confirmando el paymentIntent -[2025-01-04 22:20:35.479461] [debug] valor el evento recibido por webhook: service.edit +[2025-01-07 17:43:54.676357] [info] Se terminó de confirmar el paymentIntent -[2025-01-04 22:20:35.479768] [debug] HTTP request processing ended. -[2025-01-04 22:21:04.397510] [notice] Logging level set to:debug -[2025-01-04 22:21:04.397908] [debug] El valor del evento recibio en json: {"uuid":"f2f8fabd-0b1b-419a-8adb-9349fa327d6a","changeType":"edit","entity":"client","entityId":"6","eventName":"client.edit","extraData":{"entity":{"id":6,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"ALEJANDRO","lastName":"MOCTEZUMA","username":"amoctezuma06","contacts":[{"id":7,"clientId":6,"email":null,"phone":"5214181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-3280,"accountCredit":0,"accountOutstanding":3280,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":6,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-29T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"ALEJANDRO","lastName":"MOCTEZUMA","username":"amoctezuma06","contacts":[{"id":7,"clientId":6,"email":null,"phone":"5214181811375","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-3280,"accountCredit":0,"accountOutstanding":3280,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574,"addressGpsLon":-100.934617,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} +[2025-01-07 17:43:54.677052] [info] Referencia OXXO: 12345678901234657890123456789012 -[2025-01-04 22:21:04.471528] [debug] valor el evento recibido por webhook: client.edit +[2025-01-07 17:43:54.677330] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SWG1Oa2dKa3FjYzMwa1E5aFFrTzlJM0o4Q0xxak5N01007o5azv0u -[2025-01-04 22:21:04.471887] [debug] Se actualiza a un cliente +[2025-01-07 17:43:54.678241] [debug] Reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SWG1Oa2dKa3FjYzMwa1E5aFFrTzlJM0o4Q0xxak5N01007o5azv0u"} +[2025-01-07 17:43:54.678765] [error] JSON error: No error +[2025-01-07 17:43:54.679073] [debug] HTTP request processing ended. +[2025-01-07 17:46:58.678319] [notice] Logging level set to:debug +[2025-01-07 17:46:58.678580] [debug] El valor del evento recibio en json: {"uuid":"22da93c6-2e9b-43cf-97da-f4170f5180a5","changeType":"insert","entity":"payment","entityId":"502","eventName":"payment.add","extraData":{"entity":{"id":502,"clientId":156,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-07T11:46:58-0600","amount":3600,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":3600,"userId":null,"attributes":[]},"entityBeforeEdit":null}} -[2025-01-04 22:21:04.472007] [info] Se proceso los contactos +[2025-01-07 17:46:58.791903] [debug] valor el evento recibido por webhook: payment.add -Dentro del proceso del patch: +[2025-01-07 17:46:58.792434] [debug] datos del notification para el invoice add:{"uuid":"22da93c6-2e9b-43cf-97da-f4170f5180a5","changeType":"insert","entity":"payment","entityId":502,"message":null,"clientId":156,"eventName":"payment.add","clientData":{"id":156,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Maria Gricelda","lastName":"L\u00f3pez Avalos","username":null,"contacts":[{"id":160,"clientId":156,"email":null,"phone":"4181817609","name":null,"isBilling":false,"isContact":false,"types":[{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":152,"clientId":156,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWj8SZIs9d3z41","clientZoneVisible":true},{"id":153,"clientId":156,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180553522369174","clientZoneVisible":true}],"accountBalance":3600,"accountCredit":3600,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#7cb342","addressGpsLat":21.1562598,"addressGpsLon":-100.9370894,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":502,"clientId":156,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-07T11:46:58-0600","amount":3600,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":3600,"userId":null,"attributes":[]}} -Datos traidos con payment api: [{"id":27,"clientId":6,"methodId":"6efe0fa8-36b2-4dd1-b049-427bffc7d369","checkNumber":null,"createdDate":"2024-02-01T12:57:53-0600","amount":2000,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[{"id":30,"invoiceId":7,"paymentId":27,"creditNoteId":null,"refundId":null,"amount":1700},{"id":31,"invoiceId":5,"paymentId":27,"creditNoteId":null,"refundId":null,"amount":300}],"creditAmount":0,"userId":1000,"attributes":[]}] +[2025-01-07 17:46:58.792571] [debug] valor del payment data: {"id":502,"clientId":156,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-07T11:46:58-0600","amount":3600,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":3600,"userId":null,"attributes":[]} -Nombre del cliente que se va a actualizar: ALEJANDRO MOCTEZUMA +[2025-01-07 17:46:58.792659] [debug] ***Se notifica y actualiza al cliente sobre su pago*** -UUID: 71a76e57f89441ff978a5ece070f21d7 +Eviando comprobante de pago al cliente: 156 con número: 5214181817609 -JSON con los datos a actualizar: {"name":"ALEJANDRO MOCTEZUMA","custom_fields":{"Cliente":6,"Domicilio":"\ud83d\udccd DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 ALEJANDRO MOCTEZUMA","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/6","Saldo Actual":"\ud83d\udcb23280 pendientes","Monto Ultimo Pago":"\ud83d\udcb2 2000","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"\ud83d\udccd DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 ALEJANDRO MOCTEZUMA\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/6\",\"Saldo Actual\": \"\ud83d\udcb23280 pendientes\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 2000\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 01\/02\/2024 12:57 con Efectivo \ud83d\udcb5\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:21\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 01\/02\/2024 12:57 con Efectivo \ud83d\udcb5","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:21","Clabe Transferencia Banamex":null}} +El archivo se ha descargado correctamente y se ha guardado en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Maria_Gricelda_López_Avalos.png -Response Patch CallBell: {"contact":{"uuid":"71a76e57f89441ff978a5ece070f21d7","name":"ALEJANDRO MOCTEZUMA","phoneNumber":"5214181811375","avatarUrl":null,"createdAt":"2021-06-25T15:57:32Z","closedAt":"2024-03-08T18:53:35Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/71a76e57f89441ff978a5ece070f21d7","conversationHref":"https://dash.callbell.eu/chat/6c83978a945141db820592787b7184d5","tags":[],"assignedUser":"miriam.moctezuma2m@gmail.com","customFields":{"Cliente":"6","Nombre":"👤 ALEJANDRO MOCTEZUMA","Resumen":"{\"Cliente\": \"6\",\"Domicilio\": \"📍 DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 ALEJANDRO MOCTEZUMA\",\"URL\": \"🌐 https://172.16.5.120/crm/client/6\",\"Saldo Actual\": \"💲3280 pendientes\",\"Monto Ultimo Pago\": \"💲 2000\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 01/02/2024 12:57 con Efectivo 💵\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 16:21\",\"Clabe Transferencia Banamex\": \"\"}","Domicilio":"📍 DOCTOR MORA #51, FRACCIONAMIENTO GUANAJUATO, Dolores Hidalgo, 37800","URL":"🌐 https://172.16.5.120/crm/client/6","Fecha Ultimo Pago":"📆💸 01/02/2024 12:57 con Efectivo 💵","Monto Ultimo Pago":"💲 2000","Saldo Actual":"💲3280 pendientes","Estado":"🔴 Suspendido","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 16:21"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} - -[2025-01-04 22:21:05.966211] [debug] HTTP request processing ended. -[2025-01-04 22:22:10.623811] [notice] Logging level set to:debug -[2025-01-04 22:22:10.624181] [debug] El valor del evento recibio en json: {"uuid":"02e74a3a-07e7-46fe-a244-02fe6a9a7825","changeType":"insert","entity":"client","entityId":"157","eventName":"client.add","extraData":{"entity":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":null}} - -[2025-01-04 22:22:10.725749] [debug] valor el evento recibido por webhook: client.add - -[2025-01-04 22:22:10.726104] [debug] Se agregó un nuevo cliente - -[2025-01-04 22:22:10.765908] [info] ID correspondiente a 'Customer Stripe ID': 10 - -[2025-01-04 22:22:10.766249] [info] Valor de notification client data export: {"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false} - -[2025-01-04 22:22:10.767124] [info] Creando el Customer Stripe - -[2025-01-04 22:22:10.767210] [info] El cliente a procesar es : Angel Mamey Arvizu - -[2025-01-04 22:22:10.767272] [info] Datos notificationData: {"uuid":"02e74a3a-07e7-46fe-a244-02fe6a9a7825","changeType":"insert","entity":"client","entityId":157,"message":null,"clientId":157,"eventName":"client.add","clientData":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":null} - -[2025-01-04 22:22:10.767326] [info] Ya dentro del FOREACH!!! - -[2025-01-04 22:22:10.767389] [info] REVISANDO EL PRIMER CONTACTO!!! - -[2025-01-04 22:22:10.767477] [info] REVISANDO EL PRIMER CONTACTO!!! - -[2025-01-04 22:22:10.767528] [info] SE VALIDA EL EMAIL!!! - -[2025-01-04 22:22:10.768306] [info] ahora se procede a validar el teléfono!!! - -[2025-01-04 22:22:10.768460] [info] AHORA SE MANDA A CREAR EL CLIENTE A STRIPE!!! - -[2025-01-04 22:22:11.357470] [info] {"id":"cus_RWjBO6Lsy1TgAV","object":"customer","address":null,"balance":0,"created":1736029331,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 157","discount":null,"email":null,"invoice_prefix":"560A5299","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":[],"name":"Angel Mamey Arvizu","next_invoice_sequence":1,"phone":"4181515664","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null} - -[2025-01-04 22:22:13.687195] [info] {"id":"cus_RWjBO6Lsy1TgAV","object":"customer","address":null,"balance":0,"created":1736029331,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 157","discount":null,"email":null,"invoice_prefix":"560A5299","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"157"},"name":"Angel Mamey Arvizu","next_invoice_sequence":1,"phone":"4181515664","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null} - -[2025-01-04 22:22:14.017498] [notice] Logging level set to:debug -[2025-01-04 22:22:14.017951] [debug] El valor del evento recibio en json: {"id":"evt_1QdfjVEFY1WEUtgRvdWOau08","object":"event","api_version":"2023-10-16","created":1736029333,"data":{"object":{"id":"cus_RWjBO6Lsy1TgAV","object":"customer","address":null,"balance":0,"created":1736029331,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 157","discount":null,"email":null,"invoice_prefix":"560A5299","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"157"},"name":"Angel Mamey Arvizu","next_invoice_sequence":1,"phone":"4181515664","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null},"previous_attributes":{"metadata":{"ucrm_client_id":null}}},"livemode":false,"pending_webhooks":2,"request":{"id":"req_qbKja1GdovqZYS","idempotency_key":"efec95ac-3ef6-4e2a-b42b-4b16b7385e64"},"type":"customer.updated"} - -[2025-01-04 22:22:14.018176] [error] JSON error: No error -[2025-01-04 22:22:14.018336] [debug] HTTP request processing ended. -[2025-01-04 22:22:16.776110] [notice] Logging level set to:debug -[2025-01-04 22:22:16.776514] [debug] El valor del evento recibio en json: {"uuid":"6edca2b3-c2f5-4ae0-8d2b-09abced880f5","changeType":"edit","entity":"client","entityId":"157","eventName":"client.edit","extraData":{"entity":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":154,"clientId":157,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWjBO6Lsy1TgAV","clientZoneVisible":true},{"id":155,"clientId":157,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180695267429334","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":false,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-01-04 22:22:16.837491] [notice] Logging level set to:debug -[2025-01-04 22:22:16.837570] [debug] El valor del evento recibio en json: {"id":"evt_1QdfjYEFY1WEUtgRV0lqJdue","object":"event","api_version":"2023-10-16","created":1736029336,"data":{"object":{"id":"cus_RWjBO6Lsy1TgAV","object":"customer","address":null,"balance":0,"created":1736029331,"currency":null,"default_source":null,"delinquent":false,"description":"Cliente SIIP CRM con client_id: 157","discount":null,"email":null,"invoice_prefix":"560A5299","invoice_settings":{"custom_fields":null,"default_payment_method":null,"footer":null,"rendering_options":null},"livemode":false,"metadata":{"ucrm_client_id":"157","clabe":"124180695267429334"},"name":"Angel Mamey Arvizu","next_invoice_sequence":1,"phone":"4181515664","preferred_locales":["es-419"],"shipping":null,"tax_exempt":"none","test_clock":null},"previous_attributes":{"metadata":{"clabe":null}}},"livemode":false,"pending_webhooks":2,"request":{"id":"req_qcy620Zsdd7vb8","idempotency_key":"fd1e697b-79e3-4878-90c8-ec656c031274"},"type":"customer.updated"} - -[2025-01-04 22:22:16.837599] [error] JSON error: No error -[2025-01-04 22:22:16.837611] [debug] HTTP request processing ended. -[2025-01-04 22:22:21.312266] [notice] Logging level set to:debug -[2025-01-04 22:22:21.312629] [debug] El valor del evento recibio en json: {"uuid":"a3c13dd5-ec1a-4aa6-b8cd-8ac6942d646b","changeType":"insert","entity":"service","entityId":"127","eventName":"service.add","extraData":{"entity":{"id":127,"prepaid":false,"clientId":157,"status":1,"name":"plan300","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","note":null,"addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-01-04T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-01-04T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"dc771889-4d2a-48c3-9c65-b0ee56b692be","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":null}} - -[2025-01-04 22:22:21.481899] [debug] valor el evento recibido por webhook: service.add - -[2025-01-04 22:22:21.482192] [debug] HTTP request processing ended. -[2025-01-04 22:22:24.370057] [notice] Logging level set to:debug -[2025-01-04 22:22:24.370665] [debug] El valor del evento recibio en json: {"uuid":"edd79fb1-aacd-4070-a1c4-9ef54a7833e8","changeType":"edit","entity":"service","entityId":"127","eventName":"service.edit","extraData":{"entity":{"id":127,"prepaid":false,"clientId":157,"status":1,"name":"plan300","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","note":null,"addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-01-04T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-01-04T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"dc771889-4d2a-48c3-9c65-b0ee56b692be","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]},"entityBeforeEdit":{"id":127,"prepaid":false,"clientId":157,"status":1,"name":"plan300","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","note":null,"addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"servicePlanId":2,"servicePlanPeriodId":7,"price":300,"hasIndividualPrice":false,"totalPrice":300,"currencyCode":"MXN","invoiceLabel":null,"contractId":null,"contractLengthType":1,"minimumContractLengthMonths":null,"activeFrom":"2025-01-04T00:00:00-0600","activeTo":null,"contractEndDate":null,"discountType":0,"discountValue":null,"discountInvoiceLabel":"Descuento","discountFrom":null,"discountTo":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"invoicingStart":"2025-01-04T00:00:00-0600","invoicingPeriodType":1,"invoicingPeriodStartDay":1,"nextInvoicingDayAdjustment":10,"invoicingProratedSeparately":true,"invoicingSeparately":false,"sendEmailsAutomatically":null,"useCreditAutomatically":true,"servicePlanName":"plan300","servicePlanPrice":300,"servicePlanPeriod":1,"servicePlanType":"Internet","downloadSpeed":6,"uploadSpeed":6,"hasOutage":false,"unmsClientSiteStatus":null,"fccBlockId":null,"lastInvoicedDate":null,"unmsClientSiteId":"dc771889-4d2a-48c3-9c65-b0ee56b692be","attributes":[],"addressData":null,"suspensionReasonId":null,"serviceChangeRequestId":null,"setupFeePrice":null,"earlyTerminationFeePrice":null,"downloadSpeedOverride":null,"uploadSpeedOverride":null,"trafficShapingOverrideEnd":null,"trafficShapingOverrideEnabled":false,"servicePlanGroupId":null,"suspensionPeriods":[],"surcharges":[]}}} - -[2025-01-04 22:22:24.505815] [debug] valor el evento recibido por webhook: service.edit - -[2025-01-04 22:22:24.506067] [debug] HTTP request processing ended. -[2025-01-04 22:22:36.722002] [notice] Logging level set to:debug -[2025-01-04 22:22:36.722398] [debug] El valor del evento recibio en json: {"uuid":"bed116c4-14d9-41e2-920f-161832951f7b","changeType":"edit","entity":"client","entityId":"157","eventName":"client.edit","extraData":{"entity":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":154,"clientId":157,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWjBO6Lsy1TgAV","clientZoneVisible":true},{"id":155,"clientId":157,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180695267429334","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"entityBeforeEdit":{"id":157,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"45 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2025-01-04T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Angel Mamey","lastName":"Arvizu","username":null,"contacts":[{"id":161,"clientId":157,"email":null,"phone":"5214181515664","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":154,"clientId":157,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_RWjBO6Lsy1TgAV","clientZoneVisible":true},{"id":155,"clientId":157,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"124180695267429334","clientZoneVisible":true}],"accountBalance":0,"accountCredit":0,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1574303,"addressGpsLon":-100.9275061,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false}}} - -[2025-01-04 22:22:36.802470] [debug] valor el evento recibido por webhook: client.edit - -[2025-01-04 22:22:36.802804] [debug] Se actualiza a un cliente - -[2025-01-04 22:22:36.802948] [info] Se proceso los contactos - -Dentro del proceso del patch: - -Datos traidos con payment api: [] - -Nombre del cliente que se va a actualizar: Angel Mamey Arvizu - -UUID: - -JSON con los datos a actualizar: {"name":"Angel Mamey Arvizu","custom_fields":{"Cliente":157,"Domicilio":"\ud83d\udccd Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Angel Mamey Arvizu","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/157","Saldo Actual":"\ud83d\udcb20 est\u00e1 al corriente","Monto Ultimo Pago":"\ud83d\udcb2 ","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"157\",\"Domicilio\": \"\ud83d\udccd Calle Colima 45, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Angel Mamey Arvizu\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/157\",\"Saldo Actual\": \"\ud83d\udcb20 est\u00e1 al corriente\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 \",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 22:22 con Desconocido, revisar metodos de pago no contemplados\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:22\",\"Clabe Transferencia Banamex\": \"124180695267429334\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 22:22 con Desconocido, revisar metodos de pago no contemplados","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:22","Clabe Transferencia Banamex":"124180695267429334"}} - -Response Patch CallBell: - -[2025-01-04 22:22:38.523700] [debug] HTTP request processing ended. -[2025-01-04 22:49:47.987740] [notice] Logging level set to:debug -[2025-01-04 22:49:47.987854] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":1} - -[2025-01-04 22:49:47.987869] [info] Evento de referencia de oxxo recibido - -[2025-01-04 22:49:47.987890] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 22:49:48.127979] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PdQvAvQ2wipl5k - -[2025-01-04 22:49:48.128021] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. - -[2025-01-04 22:49:48.128273] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 22:49:48.243685] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PdQvAvQ2wipl5k - -[2025-01-04 22:49:48.243758] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. - -[2025-01-04 22:49:50.244091] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 22:49:50.373965] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PdQvAvQ2wipl5k - -[2025-01-04 22:49:50.374006] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. - -[2025-01-04 22:49:52.374564] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 22:49:52.494280] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PdQvAvQ2wipl5k - -[2025-01-04 22:49:52.494318] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. - -[2025-01-04 22:49:54.494967] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 22:49:54.623064] [info] Se obtuvieron los datos del cliente y Stripe Customer ID: cus_PdQvAvQ2wipl5k - -[2025-01-04 22:49:54.623115] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. - -[2025-01-04 22:49:54.623347] [debug] Este ese el reponse que se envía a CallBell: {"url": "errorsinadeudo"} -[2025-01-04 22:49:54.623389] [error] JSON error: No error -[2025-01-04 22:49:54.623402] [debug] HTTP request processing ended. -[2025-01-04 22:50:33.884031] [notice] Logging level set to:debug -[2025-01-04 22:50:33.884248] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":1,"amount":300} - -[2025-01-04 22:50:33.884324] [info] Evento de referencia de oxxo recibido - -[2025-01-04 22:50:33.884385] [info] Valor del monto: 300 - -[2025-01-04 22:50:33.884464] [info] Creando referencia del cliente para OXXO: - -[2025-01-04 22:50:34.002264] [info] Monto proporcionado directamente: 300 - -[2025-01-04 22:50:34.002387] [info] Creando referencia en Stripe por: 30000 - -[2025-01-04 22:50:34.589338] [info] Creando payment methods del voucher - -[2025-01-04 22:50:34.839921] [info] Confirmando el paymentIntent - -[2025-01-04 22:50:35.475716] [info] Se terminó de confirmar el paymentIntent - -[2025-01-04 22:50:35.476252] [info] Referencia OXXO: 12345678901234657890123456789012 - -[2025-01-04 22:50:35.476428] [info] URL del recibo: https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2plR0I0WWRNREtFdEtTTnBqdWcyTk9Sck5DeWpa0100jqXSQS8U - -[2025-01-04 22:50:35.478384] [debug] Este ese el reponse que se envía a CallBell: {"url": "https://payments.stripe.com/oxxo/voucher/test_YWNjdF8xT2tHMFJFRlkxV0VVdGdSLF9SV2plR0I0WWRNREtFdEtTTnBqdWcyTk9Sck5DeWpa0100jqXSQS8U"} -[2025-01-04 22:50:35.478650] [error] JSON error: No error -[2025-01-04 22:50:35.478807] [debug] HTTP request processing ended. -[2025-01-04 22:53:38.815505] [notice] Logging level set to:debug -[2025-01-04 22:53:38.815619] [debug] El valor del evento recibio en json: {"uuid":"8b0cc4a9-7c96-4d86-bd79-75dfb44ee615","changeType":"insert","entity":"payment","entityId":"500","eventName":"payment.add","extraData":{"entity":{"id":500,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T16:53:38-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]},"entityBeforeEdit":null}} - -[2025-01-04 22:53:38.938446] [debug] valor el evento recibido por webhook: payment.add - -[2025-01-04 22:53:38.938730] [debug] datos del notification para el invoice add:{"uuid":"8b0cc4a9-7c96-4d86-bd79-75dfb44ee615","changeType":"insert","entity":"payment","entityId":500,"message":null,"clientId":1,"eventName":"payment.add","clientData":{"id":1,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"Calle Morelos 34","street2":null,"city":"Dolores Hidalgo","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Calle Morelos 34, Dolores Hidalgo, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-01-15T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":true,"firstName":"Don Miguel \u00c1ngel","lastName":"Guerrero Gonz\u00e1lez","username":"dguerrero01","contacts":[{"id":1,"clientId":1,"email":"mangelgg@gmail.com","phone":"5214181148554","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":110,"clientId":1,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_PdQvAvQ2wipl5k","clientZoneVisible":true},{"id":111,"clientId":1,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"002180697144444854","clientZoneVisible":true}],"accountBalance":1080,"accountCredit":1080,"accountOutstanding":0,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#3f51b5","addressGpsLat":21.1572096,"addressGpsLon":-100.9377327,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":false,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":null,"paymentData":{"id":500,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T16:53:38-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}} - -[2025-01-04 22:53:38.938765] [debug] valor del payment data: {"id":500,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T16:53:38-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]} - -[2025-01-04 22:53:38.938786] [debug] ***Se notifica y actualiza al cliente sobre su pago*** - -Eviando comprobante de pago al cliente: 1 con número: 5214181148554 - -El archivo se ha descargado correctamente y se ha guardado en: /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/../../comprobantes/Comprobante_Don_Miguel_Ángel_Guerrero_González.png - -El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/494541ba-8ce4-4c5a-8794-f970eba33708.pdf +El nombre del archivo PDF es: /home/unms/data/ucrm/ucrm/data/payment_receipts/6baecc42-ebc9-4cf1-b7a3-d800c48fe273.pdf se creó la instancia de Imagick @@ -872,152 +443,47 @@ Subiendo comprobante a worpdpress Conexión FTP exitosa +[2025-01-07 17:47:08.845576] [notice] Logging level set to:debug +[2025-01-07 17:47:08.845988] [debug] El valor del evento recibio en json: {"uuid":"6bb82ae8-9fc3-4645-90e8-e37bb5c325e2","changeType":"edit","entity":"payment","entityId":"502","eventName":"payment.edit","extraData":{"entity":{"id":502,"clientId":156,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-07T11:46:58-0600","amount":3600,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":3600,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":502,"clientId":156,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-07T11:46:58-0600","amount":3600,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":3600,"userId":null,"attributes":[]}}} + +[2025-01-07 17:47:08.977595] [debug] valor el evento recibido por webhook: payment.edit + +[2025-01-07 17:47:08.978213] [debug] HTTP request processing ended. El archivo ha sido cargado exitosamente. -La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Don_Miguel_Ángel_Guerrero_González.png +La URL es: https://siip.mx/wp/wp-content/uploads/img/Comprobante_Maria_Gricelda_López_Avalos.png -[2025-01-04 22:53:48.983692] [notice] Logging level set to:debug -[2025-01-04 22:53:48.984040] [debug] El valor del evento recibio en json: {"uuid":"6961d180-4b72-4698-9733-6b42dd939236","changeType":"edit","entity":"payment","entityId":"500","eventName":"payment.edit","extraData":{"entity":{"id":500,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T16:53:38-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-01-04T16:53:39-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]},"entityBeforeEdit":{"id":500,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T16:53:38-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}}} +Comprobante eliminado de Wordpress: Comprobante_EMMELI_ABIGAIL_SANDOVAL_PAREDON.png -[2025-01-04 22:53:49.131498] [debug] valor el evento recibido por webhook: payment.edit - -[2025-01-04 22:53:49.131973] [debug] HTTP request processing ended. Archivos eliminados Se terminó de subir comprobante a wordpress La cadena CURL que se envia es: { - "to": "5214181148554", + "to": "5214181817609", "from": "whatsapp", "type": "document", "content": { "text": "S/M", - "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Don_Miguel_Ángel_Guerrero_González.png" + "url": "https://siip.mx/wp/wp-content/uploads/img/Comprobante_Maria_Gricelda_López_Avalos.png" }, - "template_values": ["Don Miguel Ángel Guerrero González", "$300", "$1080 a favor"], + "template_values": ["Maria Gricelda López Avalos", "$3600", "$3600 a favor"], "template_uuid": "57ead79cebd14902921477922403093b", "optin_contact": true } -Response del CallBell: {"message":{"uuid":"34062e47f14a4272a7bae0aeb984dc2e","status":"enqueued"}} +Response del CallBell: {"message":{"uuid":"b8a4657e189c4223b5f047269a83dce9","status":"enqueued"}} Hay menos de 50 archivos en el directorio. No se eliminarán archivos. Dentro del proceso del patch: -Datos traidos con payment api: [{"id":500,"clientId":1,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-04T16:53:38-0600","amount":300,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-01-04T16:53:39-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":300,"userId":null,"attributes":[]}] +Datos traidos con payment api: [{"id":502,"clientId":156,"methodId":"1dd098fa-5d63-4c8d-88b7-3c27ffbbb6ae","checkNumber":null,"createdDate":"2025-01-07T11:46:58-0600","amount":3600,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":3600,"userId":null,"attributes":[]}] -Nombre del cliente que se va a actualizar: Don Miguel Ángel Guerrero González +Nombre del cliente que se va a actualizar: Maria Gricelda López Avalos -UUID: 0e53e926ce424db5b9284a75915d24fe +UUID: 2038d2d99ae543f3b56f1ae54f4cc82b -JSON con los datos a actualizar: {"name":"Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","custom_fields":{"Cliente":1,"Domicilio":"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800","Nombre":"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/1","Saldo Actual":"\ud83d\udcb21080 a favor","Monto Ultimo Pago":"\ud83d\udcb2 300","Estado":"\ud83d\udd34 Suspendido","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"\ud83d\udccd Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"\ud83d\udc64 Don Miguel \u00c1ngel Guerrero Gonz\u00e1lez\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/1\",\"Saldo Actual\": \"\ud83d\udcb21080 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 300\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 04\/01\/2025 16:53 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:53\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 04\/01\/2025 16:53 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 04\/01\/2025 16:53","Clabe Transferencia Banamex":null}} +JSON con los datos a actualizar: {"name":"Maria Gricelda L\u00f3pez Avalos","custom_fields":{"Cliente":156,"Domicilio":"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","Nombre":"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos","URL":"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/156","Saldo Actual":"\ud83d\udcb23600 a favor","Monto Ultimo Pago":"\ud83d\udcb2 3600","Estado":"\ud83d\udfe2 Activo ","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"\ud83d\udccd Yucat\u00e1n 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico\",\"Nombre\": \"\ud83d\udc64 Maria Gricelda L\u00f3pez Avalos\",\"URL\": \"\ud83c\udf10 https:\/\/172.16.5.120\/crm\/client\/156\",\"Saldo Actual\": \"\ud83d\udcb23600 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 3600\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 07\/01\/2025 11:46 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 07\/01\/2025 11:47\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 07\/01\/2025 11:46 con Tarjeta de cr\u00e9dito Stripe \ud83d\udcb3","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 07\/01\/2025 11:47","Clabe Transferencia Banamex":null}} -Response Patch CallBell: {"contact":{"uuid":"0e53e926ce424db5b9284a75915d24fe","name":"Don Miguel Ángel Guerrero González","phoneNumber":"5214181148554","avatarUrl":null,"createdAt":"2024-01-26T17:29:28Z","closedAt":"2025-01-04T22:50:36Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/0e53e926ce424db5b9284a75915d24fe","conversationHref":"https://dash.callbell.eu/chat/f017e454a6b94ab297509274216c6795","tags":[],"assignedUser":null,"customFields":{"URL":"🌐 https://172.16.5.120/crm/client/1","user entry point":"inbound_message","Clientes Relacionados":"oxxo","Saldo Actual":"💲1080 a favor","Cliente":"1","Fecha Ultimo Pago":"📆💸 04/01/2025 16:53 con Tarjeta de crédito Stripe 💳","Domicilio":"📍 Calle Morelos 34, Dolores Hidalgo, 37800","Estado":"🔴 Suspendido","Clabe Transferencia Banamex":"124180650741039816","user name":"Angel","Nombre":"👤 Don Miguel Ángel Guerrero González","Fecha Ultima Actualizacion":"📆🔄️ 04/01/2025 16:53","Monto Ultimo Pago":"💲 300","Resumen":"{\"Cliente\": \"1\",\"Domicilio\": \"📍 Calle Morelos 34, Dolores Hidalgo, 37800\",\"Nombre\": \"👤 Don Miguel Ángel Guerrero González\",\"URL\": \"🌐 https://172.16.5.120/crm/client/1\",\"Saldo Actual\": \"💲1080 a favor\",\"Monto Ultimo Pago\": \"💲 300\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 04/01/2025 16:53 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 04/01/2025 16:53\",\"Clabe Transferencia Banamex\": \"\"}"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}} -[2025-01-05 6:25:02.940608] [notice] Logging level set to:debug -[2025-01-05 6:25:02.940732] [debug] El valor del evento recibio en json: {"uuid":"ff5bbae1-a33f-4816-b8dd-a66d970f3a42","changeType":"overdue","entity":"invoice","entityId":"1306","eventName":"invoice.overdue","extraData":{"entity":{"id":1306,"clientId":105,"number":"001270","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1308,"type":"service","label":"plan300 21\/11\/2024 \u2013 20\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":111,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"jota","clientLastName":"serpiente","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} +Response Patch CallBell: {"contact":{"uuid":"2038d2d99ae543f3b56f1ae54f4cc82b","name":"Maria Gricelda López Avalos","phoneNumber":"5214181817609","avatarUrl":null,"createdAt":"2024-01-26T18:16:09Z","closedAt":"2025-01-07T17:43:55Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/2038d2d99ae543f3b56f1ae54f4cc82b","conversationHref":"https://dash.callbell.eu/chat/90611886ac204c56a75240f951c53874","tags":[],"assignedUser":null,"customFields":{"Estado":"🟢 Activo ","Nombre":"👤 Maria Gricelda López Avalos","Cliente":"156","Domicilio":"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","URL":"🌐 https://172.16.5.120/crm/client/156","Fecha Ultimo Pago":"📆💸 07/01/2025 11:46 con Tarjeta de crédito Stripe 💳","Resumen":"{\"Cliente\": \"156\",\"Domicilio\": \"📍 Yucatán 34, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México\",\"Nombre\": \"👤 Maria Gricelda López Avalos\",\"URL\": \"🌐 https://172.16.5.120/crm/client/156\",\"Saldo Actual\": \"💲3600 a favor\",\"Monto Ultimo Pago\": \"💲 3600\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 07/01/2025 11:46 con Tarjeta de crédito Stripe 💳\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 07/01/2025 11:47\",\"Clabe Transferencia Banamex\": \"\"}","Monto Ultimo Pago":"💲 3600","Saldo Actual":"💲3600 a favor","Clabe Transferencia Banamex":"124180553522369174","Fecha Ultima Actualizacion":"📆🔄️ 07/01/2025 11:47","user entry point":"inbound_message","user name":"Grisel"},"team":{"uuid":"5faeed738d6a44ccacf6509762eb288d","name":"General","default":true,"members":8,"createdAt":"2023-11-07T00:37:10Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true},"blockedAt":null}} -[2025-01-05 6:25:03.347322] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-01-05 6:25:03.347759] [debug] Factura vencida - -[2025-01-05 6:25:03.347821] [debug] datos del notification para el invoice overdue:{"uuid":"ff5bbae1-a33f-4816-b8dd-a66d970f3a42","changeType":"overdue","entity":"invoice","entityId":1306,"message":null,"clientId":105,"eventName":"invoice.overdue","clientData":{"id":105,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":null,"street2":null,"city":null,"countryId":173,"stateId":null,"zipCode":null,"fullAddress":null,"invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-02-17T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"jota","lastName":"serpiente","username":null,"contacts":[{"id":109,"clientId":105,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[],"accountBalance":-2000,"accountCredit":0,"accountOutstanding":2000,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#4527a0","addressGpsLat":null,"addressGpsLon":null,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1306,"clientId":105,"number":"001270","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1308,"type":"service","label":"plan300 21\/11\/2024 \u2013 20\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":111,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"jota","clientLastName":"serpiente","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":null,"clientStreet2":null,"clientCity":null,"clientCountryId":173,"clientStateId":null,"clientZipCode":null,"attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-01-05 6:25:03.347839] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -contac vacio -[2025-01-05 6:25:03.349997] [debug] Numero de cel obtenido - -[2025-01-05 6:25:03.350018] [warning] No se encontró un teléfono celular válido para el cliente: 105 -[2025-01-05 6:25:03.350039] [debug] HTTP request processing ended. -[2025-01-05 6:25:03.604188] [notice] Logging level set to:debug -[2025-01-05 6:25:03.604279] [debug] El valor del evento recibio en json: {"uuid":"7677a070-edee-41b8-9f5e-9c6d235a6b2a","changeType":"overdue","entity":"invoice","entityId":"1307","eventName":"invoice.overdue","extraData":{"entity":{"id":1307,"clientId":133,"number":"001271","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":"2025-01-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1309,"type":"service","label":"INTERMEDIO 21\/11\/2024 \u2013 20\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":114,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Los Amigos","clientLastName":"Invisibles","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-01-05 6:25:03.891813] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-01-05 6:25:03.891932] [debug] Factura vencida - -[2025-01-05 6:25:03.891983] [debug] datos del notification para el invoice overdue:{"uuid":"7677a070-edee-41b8-9f5e-9c6d235a6b2a","changeType":"overdue","entity":"invoice","entityId":1307,"message":null,"clientId":133,"eventName":"invoice.overdue","clientData":{"id":133,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"34 Calle Colima","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37803","fullAddress":"Calle Colima 34, Mariano Balleza, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"Los Amigos","lastName":"Invisibles","username":null,"contacts":[{"id":137,"clientId":133,"email":"amigosinvisibles@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[{"id":135,"clientId":133,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_QJjZqeaZSSPwcT","clientZoneVisible":true},{"id":136,"clientId":133,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"002180822750421052","clientZoneVisible":true}],"accountBalance":-2833.33,"accountCredit":0,"accountOutstanding":2833.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ffc107","addressGpsLat":21.1568888,"addressGpsLon":-100.9275759,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1307,"clientId":133,"number":"001271","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":"2025-01-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1309,"type":"service","label":"INTERMEDIO 21\/11\/2024 \u2013 20\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":114,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"Los Amigos","clientLastName":"Invisibles","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"34 Calle Colima","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37803","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-01-05 6:25:03.892004] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-01-05 6:25:03.892056] [debug] Numero de cel obtenido - -[2025-01-05 6:25:03.892069] [warning] No se encontró un teléfono celular válido para el cliente: 133 -[2025-01-05 6:25:03.892086] [debug] HTTP request processing ended. -[2025-01-05 6:25:04.007344] [notice] Logging level set to:debug -[2025-01-05 6:25:04.007428] [debug] El valor del evento recibio en json: {"uuid":"11d01168-1e86-46a2-bdbe-e80155ef4958","changeType":"overdue","entity":"invoice","entityId":"1308","eventName":"invoice.overdue","extraData":{"entity":{"id":1308,"clientId":134,"number":"001272","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":"2025-01-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1310,"type":"service","label":"PREMIUM 21\/11\/2024 \u2013 20\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":113,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"La Mosca","clientLastName":"Tse Tse","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"25 Michoac\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-01-05 6:25:04.200701] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-01-05 6:25:04.200820] [debug] Factura vencida - -[2025-01-05 6:25:04.200990] [debug] datos del notification para el invoice overdue:{"uuid":"11d01168-1e86-46a2-bdbe-e80155ef4958","changeType":"overdue","entity":"invoice","entityId":1308,"message":null,"clientId":134,"eventName":"invoice.overdue","clientData":{"id":134,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"25 Michoac\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Michoac\u00e1n 25, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"La Mosca","lastName":"Tse Tse","username":null,"contacts":[{"id":138,"clientId":134,"email":"lamoscatsetse@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-4200,"accountCredit":0,"accountOutstanding":4200,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#009688","addressGpsLat":21.1576726,"addressGpsLon":-100.9370354,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1308,"clientId":134,"number":"001272","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":"2025-01-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1310,"type":"service","label":"PREMIUM 21\/11\/2024 \u2013 20\/12\/2024","price":700,"quantity":1,"total":700,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":113,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":700,"discount":null,"discountLabel":"Descuento","taxes":[],"total":700,"amountPaid":0,"totalUntaxed":700,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":700,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"La Mosca","clientLastName":"Tse Tse","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"25 Michoac\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-01-05 6:25:04.201019] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-01-05 6:25:04.201082] [debug] Numero de cel obtenido - -[2025-01-05 6:25:04.201095] [warning] No se encontró un teléfono celular válido para el cliente: 134 -[2025-01-05 6:25:04.201112] [debug] HTTP request processing ended. -[2025-01-05 6:25:04.318753] [notice] Logging level set to:debug -[2025-01-05 6:25:04.318927] [debug] El valor del evento recibio en json: {"uuid":"6722b0d2-a0e8-48b4-8739-109525ee8003","changeType":"overdue","entity":"invoice","entityId":"1309","eventName":"invoice.overdue","extraData":{"entity":{"id":1309,"clientId":136,"number":"001273","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":"2025-01-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1311,"type":"service","label":"INTERMEDIO 21\/11\/2024 \u2013 20\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":112,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Mus","clientLastName":"Tafah","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"22 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}} - -[2025-01-05 6:25:04.498907] [debug] valor el evento recibido por webhook: invoice.overdue - -[2025-01-05 6:25:04.499018] [debug] Factura vencida - -[2025-01-05 6:25:04.499135] [debug] datos del notification para el invoice overdue:{"uuid":"6722b0d2-a0e8-48b4-8739-109525ee8003","changeType":"overdue","entity":"invoice","entityId":1309,"message":null,"clientId":136,"eventName":"invoice.overdue","clientData":{"id":136,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"22 Yucat\u00e1n","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"Yucat\u00e1n 22, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., M\u00e9xico","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":null,"invoiceMaturityDays":null,"stopServiceDue":null,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-06-18T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"El Mus","lastName":"Tafah","username":null,"contacts":[{"id":140,"clientId":136,"email":"elmus@gmail.com","phone":"4181878106","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"},{"id":1000,"name":"WhatsApp"}]}],"attributes":[],"accountBalance":-2833.33,"accountCredit":0,"accountOutstanding":2833.33,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#1e88e5","addressGpsLat":21.1571597,"addressGpsLon":-100.9367744,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1309,"clientId":136,"number":"001273","createdDate":"2024-12-21T10:00:01-0600","dueDate":"2025-01-04T10:00:01-0600","emailSentDate":"2025-01-05T00:00:00-0600","maturityDays":14,"taxableSupplyDate":"2024-12-19T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1311,"type":"service","label":"INTERMEDIO 21\/11\/2024 \u2013 20\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":112,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"El Mus","clientLastName":"Tafah","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"22 Yucat\u00e1n","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null} - -[2025-01-05 6:25:04.499161] [debug] ***Se notifica al cliente que la factura de su servicio está vencida*** - -[2025-01-05 6:25:04.499228] [debug] Numero de cel obtenido - -[2025-01-05 6:25:04.499243] [warning] No se encontró un teléfono celular válido para el cliente: 136 -[2025-01-05 6:25:04.499365] [debug] HTTP request processing ended. -[2025-01-05 19:41:17.278369] [notice] Logging level set to:debug -[2025-01-05 19:41:17.278481] [debug] El valor del evento recibio en json: {"type":"oxxo.request","client_id":1} - -[2025-01-05 19:41:17.278496] [info] Evento de referencia de oxxo recibido - -[2025-01-05 19:41:17.278506] [info] Creando referencia del cliente para OXXO: - -[2025-01-05 19:41:17.422367] [info] Se obtuvo el Stripe Customer ID: cus_PdQvAvQ2wipl5k - -[2025-01-05 19:41:17.422415] [info] Monto pendiente del cliente (procesado): 0 - -[2025-01-05 19:41:17.422425] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. - -[2025-01-05 19:41:17.422801] [info] Creando referencia del cliente para OXXO: - -[2025-01-05 19:41:17.534370] [info] Se obtuvo el Stripe Customer ID: cus_PdQvAvQ2wipl5k - -[2025-01-05 19:41:17.534418] [info] Monto pendiente del cliente (procesado): 0 - -[2025-01-05 19:41:17.534429] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. - -[2025-01-05 19:41:19.534785] [info] Creando referencia del cliente para OXXO: - -[2025-01-05 19:41:19.647481] [info] Se obtuvo el Stripe Customer ID: cus_PdQvAvQ2wipl5k - -[2025-01-05 19:41:19.647530] [info] Monto pendiente del cliente (procesado): 0 - -[2025-01-05 19:41:19.647541] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. - -[2025-01-05 19:41:21.648082] [info] Creando referencia del cliente para OXXO: - -[2025-01-05 19:41:21.775234] [info] Se obtuvo el Stripe Customer ID: cus_PdQvAvQ2wipl5k - -[2025-01-05 19:41:21.775295] [info] Monto pendiente del cliente (procesado): 0 - -[2025-01-05 19:41:21.775309] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. - -[2025-01-05 19:41:23.775923] [info] Creando referencia del cliente para OXXO: - -[2025-01-05 19:41:23.889632] [info] Se obtuvo el Stripe Customer ID: cus_PdQvAvQ2wipl5k - -[2025-01-05 19:41:23.889678] [info] Monto pendiente del cliente (procesado): 0 - -[2025-01-05 19:41:23.889689] [info] Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. - -[2025-01-05 19:41:23.890095] [debug] Este ese el reponse que se envía a CallBell: {"url": "errorsinadeudo"} -[2025-01-05 19:41:23.890140] [error] JSON error: No error -[2025-01-05 19:41:23.890151] [debug] HTTP request processing ended. +[2025-01-07 17:47:17.931579] [debug] HTTP request processing ended. diff --git a/manifest.json b/manifest.json index b2eaa5f6..3d7ba84a 100755 --- a/manifest.json +++ b/manifest.json @@ -5,7 +5,7 @@ "displayName": "SIIP - Procesador de Pagos en línea con Stripe, Sincronizador de CallBell y Envío de Notificaciones y comprobantes vía WhatsApp", "description": "Este plugin sincroniza los clientes del sitema UISP CRM con los contactos de WhatsApp en CallBell, además procesa pagos de Stripe como las trasferencias bancarias y genera referencias de pago vía OXXO, además envía comprobantes de pago en formato imagen PNG vía Whatsapp a los clientes", "url": "https://siip.mx/", - "version": "2.5.1", + "version": "2.5.3", "unmsVersionCompliancy": { "min": "2.1.0", "max": null diff --git a/src/Facade/AbstractOxxoOperationsFacade.php b/src/Facade/AbstractOxxoOperationsFacade.php index 7fe6a901..11863d09 100755 --- a/src/Facade/AbstractOxxoOperationsFacade.php +++ b/src/Facade/AbstractOxxoOperationsFacade.php @@ -91,7 +91,6 @@ abstract class AbstractOxxoOperationsFacade break; } } - $this->logger->info("Se obtuvo el Stripe Customer ID: " . $stripeCustomerId . PHP_EOL); // Obtener email del cliente foreach ($arrayClientCRM['contacts'] as $contact) { @@ -99,41 +98,32 @@ abstract class AbstractOxxoOperationsFacade $clientEmail = $contact['email']; break; } else { - $clientEmail = 'siip8873@gmail.com '; + $clientEmail = 'siip8873@gmail.com'; } } - // Validar y procesar el monto proporcionado - if ($amount !== null) { - // Extraer solo dígitos numéricos del monto - $numericAmount = preg_replace('/\D/', '', $amount); - - if (empty($numericAmount)) { - $this->logger->error("Cantidad no válida proporcionada: " . $amount . PHP_EOL); - return 'cantidadnovalida'; // Retornar error si no se obtiene un valor válido - } - - // Convertir el valor limpio a entero - $amount = (int) $numericAmount; - - $this->logger->info("Monto proporcionado directamente (procesado): $amount " . PHP_EOL); - } else { + // Verificar si $amount es null para determinar si es necesario consultar la API + if ($amount === null) { try { - // Obtener el monto pendiente del cliente en centavos - $amount = abs($arrayClientCRM['accountOutstanding']); - $this->logger->info("Monto pendiente del cliente (procesado): $amount " . PHP_EOL); + + // Obtener el monto pendiente del cliente en centavos + $amount = abs($arrayClientCRM['accountOutstanding']) * 100; + + $this->logger->info("Se obtuvieron los datos del cliente y Stripe Customer ID: " . $stripeCustomerId . PHP_EOL); } catch (RequestException $e) { - $this->logger->error('Error al obtener el monto pendiente del cliente: ' . $e->getMessage() . PHP_EOL); - return 'errorobtenermontopendiente'; // Error al obtener el monto pendiente + $this->logger->error("Error al obtener atributos personalizados del cliente: " . $e->getMessage() . PHP_EOL); + return 'errorGetClientAttributes'; } + } else { + $this->logger->info("Monto proporcionado directamente: $amount " . PHP_EOL); } // Validar que el monto sea mayor a 0 antes de proceder if ($amount > 10) { $amount = intval($amount * 100); try { - + $this->logger->info("Creando referencia en Stripe por: $amount " . PHP_EOL); $paymentIntent = $stripe->paymentIntents->create([ 'amount' => $amount, 'currency' => 'mxn', @@ -152,11 +142,7 @@ abstract class AbstractOxxoOperationsFacade ], ], ]); - } catch (Exception $e) { - $this->logger->error('Error al crear el payment intent: ' . $e->getMessage() . PHP_EOL); - return 'errorCreatePaymentIntent'; // Error al crear el payment intent - } - try { + $this->logger->info("Creando payment methods del voucher" . PHP_EOL); $paymentMethod = $stripe->paymentMethods->create([ 'type' => 'oxxo', @@ -165,48 +151,40 @@ abstract class AbstractOxxoOperationsFacade 'email' => $clientEmail, ], ]); - } catch (Exception $e) { - $this->logger->error('Error al crear el payment method: ' . $e->getMessage() . PHP_EOL); - return 'errorCreatePaymentMethod'; // Error al crear el payment method - } - - try { + $this->logger->info("Confirmando el paymentIntent" . PHP_EOL); $paymentIntent = $stripe->paymentIntents->confirm( $paymentIntent->id, ['payment_method' => $paymentMethod->id] ); + $this->logger->info("Se terminó de confirmar el paymentIntent" . PHP_EOL); + if (!empty($paymentIntent->next_action) && isset($paymentIntent->next_action->oxxo_display_details)) { + $oxxoPayment = $paymentIntent->next_action->oxxo_display_details; + $oxxo_reference = $oxxoPayment->number; + $oxxo_receipt_url = $oxxoPayment->hosted_voucher_url; + + $this->logger->info("Referencia OXXO: " . $oxxo_reference . PHP_EOL); + $this->logger->info("URL del recibo: " . $oxxo_receipt_url . PHP_EOL); + return $oxxo_receipt_url; + } else { + $this->logger->info("El PaymentIntent no tiene detalles de OXXO disponibles aún. " . PHP_EOL); + $this->logger->info("Estado actual del PaymentIntent: " . $paymentIntent->status . PHP_EOL); + return 'errorPyamentIntentWithoutOxxoDetails'; + } } catch (Exception $e) { - $this->logger->error('Error al confirmar el payment intent: ' . $e->getMessage() . PHP_EOL); - return 'errorConfirmPaymentIntent'; // Error al confirmar el payment intent + $this->logger->error('Error al crear el payment intent: ' . $e->getMessage() . PHP_EOL); + return 'errorCreatePaymentIntent'; } - - - - - if (!empty($paymentIntent->next_action) && isset($paymentIntent->next_action->oxxo_display_details)) { - $oxxoPayment = $paymentIntent->next_action->oxxo_display_details; - $oxxo_reference = $oxxoPayment->number; - $oxxo_receipt_url = $oxxoPayment->hosted_voucher_url; - - $this->logger->info("Referencia OXXO: " . $oxxo_reference . PHP_EOL); - $this->logger->info("URL del recibo: " . $oxxo_receipt_url . PHP_EOL); - return $oxxo_receipt_url; - } else { - $this->logger->info("El PaymentIntent no tiene detalles de OXXO disponibles aún. " . PHP_EOL); - $this->logger->info("Estado actual del PaymentIntent: " . $paymentIntent->status . PHP_EOL); - return 'errorPyamentIntentWithoutOxxoDetails'; - } - } else { $this->logger->info("Este cliente no tiene adeudos por lo tanto no se puede generar su referencia de OXXO. " . PHP_EOL); return 'errorsinadeudo'; } - } + + // /** // * implement in subclass with the specific messaging provider // * @see TwilioNotifierFacade::sendWhatsApp() diff --git a/src/Facade/AbstractStripeOperationsFacade.php b/src/Facade/AbstractStripeOperationsFacade.php index 3993d95c..01368eb1 100755 --- a/src/Facade/AbstractStripeOperationsFacade.php +++ b/src/Facade/AbstractStripeOperationsFacade.php @@ -155,9 +155,27 @@ abstract class AbstractStripeOperationsFacade $notification_client_data = $notificationData->clientData; //array con los datos del cliente - $notification_client_data_export = json_encode($notification_client_data); - $this->logger->info("Valor de notification client data export: " . $notification_client_data_export . PHP_EOL); - $this->createCustomerStripe($notificationData, $stripe, $baseUri, $UCRMAPIToken); + // Asegúrate de trabajar con un objeto PHP + $dataObject = json_decode(json_encode($notification_client_data)); // Convertir a JSON y luego decodificar como objeto + + if (!is_object($dataObject)) { + $this->logger->info("Error: Los datos del cliente no pudieron ser procesados." . PHP_EOL); + return; + } + + // Acceder a "isLead" de forma segura + $isLead = $dataObject->isLead ?? null; + + $this->logger->info("El valor de 'isLead' es: " . ($isLead ? "true" : "false") . PHP_EOL); + + if ($isLead === true) { + $this->logger->info("El cliente es un lead, no se procesará" . PHP_EOL); + return; + } else { + $this->logger->info("El cliente NO es un lead, se procesará" . PHP_EOL); + $this->createCustomerStripe($notificationData, $stripe, $baseUri, $UCRMAPIToken); + } + } @@ -260,7 +278,7 @@ abstract class AbstractStripeOperationsFacade ], ] ); - + $this->logger->info("CLABE guardada en metadata: " . $customer->metadata->clabe . PHP_EOL); diff --git a/src/Plugin.php b/src/Plugin.php index a932b742..3bd07d53 100755 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -136,7 +136,7 @@ class Plugin // Construir la URL basada en el "client_id" // $url = "https://siip.mx/wp/wp-content/uploads/img/voucher.png"; if (!empty($event_json->amount )) { - $this->logger->info('Valor del monto: ' . $event_json->amount . PHP_EOL); + $this->logger->info('Referencia persnoalizada, Valor del monto: ' . $event_json->amount . PHP_EOL); $intentos = 0; do { if($intentos>1){ @@ -167,7 +167,7 @@ class Plugin '"url": "' . $url . '"' . '}'; - $this->logger->debug('Este ese el reponse que se envía a CallBell: ' . $response); + $this->logger->debug('Reponse que se envía a CallBell: ' . $response); // $json_codificado = json_encode($response); // if (json_last_error() !== JSON_ERROR_NONE) { // $this->logger->error('Error en la codificación JSON: ' . json_last_error_msg() . PHP_EOL); diff --git a/vendor/composer/installed.php b/vendor/composer/installed.php index 90df4c5a..5abb79e8 100755 --- a/vendor/composer/installed.php +++ b/vendor/composer/installed.php @@ -5,7 +5,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '9e78efdf2f231a3ca70be5cac52428f77f1700cf', + 'reference' => '00a68dd8f1020ae4f62d6156ff093247fff6780d', 'name' => 'ucrm-plugins/sms-twilio', 'dev' => false, ), @@ -307,7 +307,7 @@ 'type' => 'library', 'install_path' => __DIR__ . '/../../', 'aliases' => array(), - 'reference' => '9e78efdf2f231a3ca70be5cac52428f77f1700cf', + 'reference' => '00a68dd8f1020ae4f62d6156ff093247fff6780d', 'dev_requirement' => false, ), ),