1023 lines
145 KiB
Plaintext
1023 lines
145 KiB
Plaintext
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\udcb2990 a favor","Monto Ultimo Pago":"\ud83d\udcb2 140","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\udcb2990 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 140\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 02\/01\/2025 12:13 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 12:13\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 02\/01\/2025 12:13 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 12:13","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":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 02/01/2025 12:13 con Transferencia bancaria 📱🏦","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲990 a favor","Monto Ultimo Pago":"💲 140","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 02/01/2025 12:13","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\": \"💲990 a favor\",\"Monto Ultimo Pago\": \"💲 140\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 02/01/2025 12:13 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 02/01/2025 12:13\",\"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-02 18:14:43.779618] [notice] Logging level set to:debug
|
|
[2025-01-02 18:14:43.779958] [debug] El valor del evento recibio en json: {"uuid":"82736c4c-1b26-4702-8673-5b3df7ab41fa","changeType":"insert","entity":"payment","entityId":"475","eventName":"payment.add","extraData":{"entity":{"id":475,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:14:37-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-02 18:14:43.936949] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-02 18:14:43.937350] [debug] datos del notification para el invoice add:{"uuid":"82736c4c-1b26-4702-8673-5b3df7ab41fa","changeType":"insert","entity":"payment","entityId":475,"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":1120,"accountCredit":1120,"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":475,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:14:37-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-02 18:14:43.937438] [debug] valor del payment data: {"id":475,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:14:37-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-02 18:14:43.937500] [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/9fb65e54-db95-4077-b0ab-83dfdc9fe774.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
[2025-01-02 18:14:53.917375] [notice] Logging level set to:debug
|
|
[2025-01-02 18:14:53.917772] [debug] El valor del evento recibio en json: {"uuid":"ae3122fa-085b-4479-ab2a-536dfd4eae40","changeType":"edit","entity":"payment","entityId":"475","eventName":"payment.edit","extraData":{"entity":{"id":475,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:14:37-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":475,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:14:37-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-02 18:14:54.054565] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-02 18:14:54.054960] [debug] HTTP request processing ended.
|
|
Ancho original de la imagen:722 Altura original de la imagen: 1024
|
|
|
|
Inicio x:36.1 Inicio y: 0
|
|
|
|
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
|
|
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", "$130", "$1120 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"b2214891dc3a4514a0c1a2c761a18676","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":475,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:14:37-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":1015,"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\udcb21120 a favor","Monto Ultimo Pago":"\ud83d\udcb2 130","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\udcb21120 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 130\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 02\/01\/2025 12:14 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 12:15\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 02\/01\/2025 12:14 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 12:15","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":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 02/01/2025 12:14 con Transferencia bancaria 📱🏦","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲1120 a favor","Monto Ultimo Pago":"💲 130","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 02/01/2025 12:15","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\": \"💲1120 a favor\",\"Monto Ultimo Pago\": \"💲 130\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 02/01/2025 12:14 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 02/01/2025 12:15\",\"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-02 18:16:33.713541] [notice] Logging level set to:debug
|
|
[2025-01-02 18:16:33.713651] [debug] El valor del evento recibio en json: {"uuid":"1d45af9a-6290-4966-955d-ad8e931b7da5","changeType":"insert","entity":"payment","entityId":"476","eventName":"payment.add","extraData":{"entity":{"id":476,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:16:28-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-02 18:16:33.863451] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-02 18:16:33.863739] [debug] datos del notification para el invoice add:{"uuid":"1d45af9a-6290-4966-955d-ad8e931b7da5","changeType":"insert","entity":"payment","entityId":476,"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":1290,"accountCredit":1290,"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":476,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:16:28-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-02 18:16:33.863774] [debug] valor del payment data: {"id":476,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:16:28-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-02 18:16:33.863795] [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/426e0eca-6143-42a3-9a2c-f53023ffcd55.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
[2025-01-02 18:16:43.822005] [notice] Logging level set to:debug
|
|
[2025-01-02 18:16:43.822118] [debug] El valor del evento recibio en json: {"uuid":"4e79e3f4-7f95-4e64-a9cd-99086e353e9d","changeType":"edit","entity":"payment","entityId":"476","eventName":"payment.edit","extraData":{"entity":{"id":476,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:16:28-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":476,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:16:28-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-02 18:16:43.931160] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-02 18:16:43.931417] [debug] HTTP request processing ended.
|
|
Ancho original de la imagen:722 Altura original de la imagen: 1024
|
|
|
|
Inicio x:36.1 Inicio y: 0
|
|
|
|
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-02 18:16:55.469901] [notice] Logging level set to:debug
|
|
[2025-01-02 18:16:55.470036] [debug] El valor del evento recibio en json: {"uuid":"58669e9e-aef9-4be4-82d2-6120a1284c53","changeType":"insert","entity":"payment","entityId":"477","eventName":"payment.add","extraData":{"entity":{"id":477,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:16:50-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-02 18:16:55.596126] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-02 18:16:55.596362] [debug] datos del notification para el invoice add:{"uuid":"58669e9e-aef9-4be4-82d2-6120a1284c53","changeType":"insert","entity":"payment","entityId":477,"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":180,"accountCredit":180,"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":477,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:16:50-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-02 18:16:55.596390] [debug] valor del payment data: {"id":477,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:16:50-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-02 18:16:55.596425] [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/4821433c-b729-4a74-bd1b-849f47d4afd4.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
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", "$170", "$1290 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"aa345b5c15d24e30b5f336cd3d09dbe8","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":476,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:16:28-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"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\udcb21290 a favor","Monto Ultimo Pago":"\ud83d\udcb2 170","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\udcb21290 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 170\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 02\/01\/2025 12:16 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 12:16\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 02\/01\/2025 12:16 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 12:16","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":"2024-12-16T21:26:37Z","source":"whatsapp","href":"https://dash.callbell.eu/contacts/74cc2bb45eb8409f92cd5dba99200d26","conversationHref":"https://dash.callbell.eu/chat/53c8229c428c4081b197ab136feab73b","tags":[],"assignedUser":null,"customFields":{"Clabe Transferencia Banamex":"0021804341999569810","Cliente":"2","user entry point":"inbound_message","user name":"Daniel Humberto 😼","Fecha Ultimo Pago":"📆💸 02/01/2025 12:16 con Transferencia bancaria 📱🏦","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲1290 a favor","Monto Ultimo Pago":"💲 170","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 02/01/2025 12:16","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\": \"💲1290 a favor\",\"Monto Ultimo Pago\": \"💲 170\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 02/01/2025 12:16 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 02/01/2025 12:16\",\"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-02 18:17:05.589409] [notice] Logging level set to:debug
|
|
[2025-01-02 18:17:05.589747] [debug] El valor del evento recibio en json: {"uuid":"a46102f9-0679-42db-aa88-0ffe0549a399","changeType":"edit","entity":"payment","entityId":"477","eventName":"payment.edit","extraData":{"entity":{"id":477,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:16:50-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-01-02T12:16:56-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":477,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:16:50-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-02 18:17:05.748173] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-02 18:17:05.748456] [debug] HTTP request processing ended.
|
|
Ancho original de la imagen:722 Altura original de la imagen: 1024
|
|
|
|
Inicio x:36.1 Inicio y: 0
|
|
|
|
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_Don_Miguel_Ángel_Guerrero_González.png
|
|
|
|
Comprobante eliminado de Wordpress: Comprobante_ALEJANDRA_AVILES_AGUILLON.png
|
|
|
|
Archivos eliminados
|
|
|
|
Se terminó de subir comprobante a wordpress
|
|
|
|
La cadena CURL que se envia es: {
|
|
"to": "5214181148554",
|
|
"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"
|
|
},
|
|
"template_values": ["Don Miguel Ángel Guerrero González", "$180", "$180 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"415de077bcff435fac4075d45fd128c6","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":477,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:16:50-0600","amount":180,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-01-02T12:16:56-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":180,"userId":1015,"attributes":[]}]
|
|
|
|
Nombre del cliente que se va a actualizar: Don Miguel Ángel Guerrero González
|
|
|
|
UUID: 0e53e926ce424db5b9284a75915d24fe
|
|
|
|
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\udcb2180 a favor","Monto Ultimo Pago":"\ud83d\udcb2 180","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\udcb2180 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 180\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 02\/01\/2025 12:16 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 12:17\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 02\/01\/2025 12:16 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 12:17","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-02T17:35:29Z","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":"💲180 a favor","Cliente":"1","Fecha Ultimo Pago":"📆💸 02/01/2025 12:16 con Transferencia bancaria 📱🏦","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":"📆🔄️ 02/01/2025 12:17","Monto Ultimo Pago":"💲 180","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\": \"💲180 a favor\",\"Monto Ultimo Pago\": \"💲 180\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 02/01/2025 12:16 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 02/01/2025 12:17\",\"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-02 18:27:43.361012] [notice] Logging level set to:debug
|
|
[2025-01-02 18:27:43.361129] [debug] El valor del evento recibio en json: {"uuid":"db6ae2e3-d78f-41d2-b34d-9100915681ba","changeType":"insert","entity":"payment","entityId":"478","eventName":"payment.add","extraData":{"entity":{"id":478,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:27:26-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-02 18:27:43.475651] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-02 18:27:43.476891] [debug] datos del notification para el invoice add:{"uuid":"db6ae2e3-d78f-41d2-b34d-9100915681ba","changeType":"insert","entity":"payment","entityId":478,"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":380,"accountCredit":380,"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":478,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:27:26-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-02 18:27:43.476939] [debug] valor del payment data: {"id":478,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:27:26-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-02 18:27:43.476963] [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/e1637de7-4ec9-4aa5-9279-9888d07fc0e1.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
[2025-01-02 18:27:53.496761] [notice] Logging level set to:debug
|
|
[2025-01-02 18:27:53.496882] [debug] El valor del evento recibio en json: {"uuid":"3e3cbdd0-5b1e-40c7-83d5-1be9603b8c4f","changeType":"edit","entity":"payment","entityId":"478","eventName":"payment.edit","extraData":{"entity":{"id":478,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:27:26-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-01-02T12:27:43-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":478,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:27:26-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-02 18:27:53.620014] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-02 18:27:53.620266] [debug] HTTP request processing ended.
|
|
Ancho original de la imagen:722 Altura original de la imagen: 1024
|
|
|
|
Inicio x:36.1 Inicio y: 0
|
|
|
|
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_Don_Miguel_Ángel_Guerrero_González.png
|
|
|
|
Archivos eliminados
|
|
|
|
Se terminó de subir comprobante a wordpress
|
|
|
|
La cadena CURL que se envia es: {
|
|
"to": "5214181148554",
|
|
"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"
|
|
},
|
|
"template_values": ["Don Miguel Ángel Guerrero González", "$200", "$380 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"2ef0f0cf9c3e4fd49881f3f92e26bda1","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":478,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:27:26-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-01-02T12:27:43-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]}]
|
|
|
|
Nombre del cliente que se va a actualizar: Don Miguel Ángel Guerrero González
|
|
|
|
UUID: 0e53e926ce424db5b9284a75915d24fe
|
|
|
|
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\udcb2380 a favor","Monto Ultimo Pago":"\ud83d\udcb2 200","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\udcb2380 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 200\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 02\/01\/2025 12:27 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 12:28\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 02\/01\/2025 12:27 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 12:28","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-02T17:35:29Z","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":"💲380 a favor","Cliente":"1","Fecha Ultimo Pago":"📆💸 02/01/2025 12:27 con Transferencia bancaria 📱🏦","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":"📆🔄️ 02/01/2025 12:28","Monto Ultimo Pago":"💲 200","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\": \"💲380 a favor\",\"Monto Ultimo Pago\": \"💲 200\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 02/01/2025 12:27 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 02/01/2025 12:28\",\"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-02 18:39:34.409209] [notice] Logging level set to:debug
|
|
[2025-01-02 18:39:34.409328] [debug] El valor del evento recibio en json: {"uuid":"6cf25027-d30f-4088-b09d-6878532c2bec","changeType":"insert","entity":"payment","entityId":"479","eventName":"payment.add","extraData":{"entity":{"id":479,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:39:30-0600","amount":350,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":350,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-02 18:39:34.565857] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-02 18:39:34.566236] [debug] datos del notification para el invoice add:{"uuid":"6cf25027-d30f-4088-b09d-6878532c2bec","changeType":"insert","entity":"payment","entityId":479,"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":1640,"accountCredit":1640,"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":479,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:39:30-0600","amount":350,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":350,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-02 18:39:34.566272] [debug] valor del payment data: {"id":479,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:39:30-0600","amount":350,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":350,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-02 18:39:34.566293] [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/5a1abc08-c79c-4e72-8909-5a05985829bb.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
[2025-01-02 18:39:44.525738] [notice] Logging level set to:debug
|
|
[2025-01-02 18:39:44.526145] [debug] El valor del evento recibio en json: {"uuid":"297d444b-04e6-490e-abf0-b8fb410f3550","changeType":"edit","entity":"payment","entityId":"479","eventName":"payment.edit","extraData":{"entity":{"id":479,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:39:30-0600","amount":350,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":350,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":479,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:39:30-0600","amount":350,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":350,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-02 18:39:44.661921] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-02 18:39:44.662329] [debug] HTTP request processing ended.
|
|
Ancho original de la imagen:722 Altura original de la imagen: 1024
|
|
|
|
Inicio x:36.1 Inicio y: 0
|
|
|
|
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
|
|
|
|
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", "$350", "$1640 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
[2025-01-02 18:47:07.337974] [notice] Logging level set to:debug
|
|
[2025-01-02 18:47:07.349277] [debug] El valor del evento recibio en json: {"uuid":"bc9e6ed0-2ca2-4b16-a1a7-2a778ac650eb","changeType":"insert","entity":"payment","entityId":"480","eventName":"payment.add","extraData":{"entity":{"id":480,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:47:01-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-02 18:47:07.484163] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-02 18:47:07.484576] [debug] datos del notification para el invoice add:{"uuid":"bc9e6ed0-2ca2-4b16-a1a7-2a778ac650eb","changeType":"insert","entity":"payment","entityId":480,"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":580,"accountCredit":580,"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":480,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:47:01-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-02 18:47:07.484667] [debug] valor del payment data: {"id":480,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:47:01-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-02 18:47:07.484728] [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/64afdf11-0625-40eb-ae76-29f335e16764.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
[2025-01-02 18:47:17.471438] [notice] Logging level set to:debug
|
|
[2025-01-02 18:47:17.471571] [debug] El valor del evento recibio en json: {"uuid":"b2d3f345-9118-4718-aebb-3ce9da4cdf7d","changeType":"edit","entity":"payment","entityId":"480","eventName":"payment.edit","extraData":{"entity":{"id":480,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:47:01-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-01-02T12:47:07-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":480,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:47:01-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-02 18:47:17.594494] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-02 18:47:17.594743] [debug] HTTP request processing ended.
|
|
Ancho original de la imagen:722 Altura original de la imagen: 1024
|
|
|
|
Inicio x:36.1 Inicio y: 0
|
|
|
|
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_Don_Miguel_Ángel_Guerrero_González.png
|
|
|
|
Archivos eliminados
|
|
|
|
Se terminó de subir comprobante a wordpress
|
|
|
|
La cadena CURL que se envia es: {
|
|
"to": "5214181148554",
|
|
"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"
|
|
},
|
|
"template_values": ["Don Miguel Ángel Guerrero González", "$200", "$580 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"e11fb00c82cf4ad2ae80d6214cc2bd5f","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":480,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T12:47:01-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-01-02T12:47:07-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]}]
|
|
|
|
Nombre del cliente que se va a actualizar: Don Miguel Ángel Guerrero González
|
|
|
|
UUID: 0e53e926ce424db5b9284a75915d24fe
|
|
|
|
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\udcb2580 a favor","Monto Ultimo Pago":"\ud83d\udcb2 200","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\udcb2580 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 200\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 02\/01\/2025 12:47 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 12:47\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 02\/01\/2025 12:47 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 12: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-02T17:35:29Z","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":"💲580 a favor","Cliente":"1","Fecha Ultimo Pago":"📆💸 02/01/2025 12:47 con Transferencia bancaria 📱🏦","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":"📆🔄️ 02/01/2025 12:47","Monto Ultimo Pago":"💲 200","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\": \"💲580 a favor\",\"Monto Ultimo Pago\": \"💲 200\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 02/01/2025 12:47 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 02/01/2025 12:47\",\"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-02 19:01:53.054990] [notice] Logging level set to:debug
|
|
[2025-01-02 19:01:53.055181] [debug] El valor del evento recibio en json: {"uuid":"9c04f8b6-d2a5-41ee-84f1-9b3e50beb788","changeType":"insert","entity":"payment","entityId":"481","eventName":"payment.add","extraData":{"entity":{"id":481,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T13:01:46-0600","amount":370,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":370,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-02 19:01:53.176362] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-02 19:01:53.176800] [debug] datos del notification para el invoice add:{"uuid":"9c04f8b6-d2a5-41ee-84f1-9b3e50beb788","changeType":"insert","entity":"payment","entityId":481,"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":2010,"accountCredit":2010,"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":481,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T13:01:46-0600","amount":370,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":370,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-02 19:01:53.176894] [debug] valor del payment data: {"id":481,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T13:01:46-0600","amount":370,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":370,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-02 19:01:53.176966] [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/8895b9cd-1074-404d-85df-b5202e256098.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
[2025-01-02 19:02:03.223845] [notice] Logging level set to:debug
|
|
[2025-01-02 19:02:03.223962] [debug] El valor del evento recibio en json: {"uuid":"bd6c89d8-00a9-43f9-8d7b-42b8f851e1e5","changeType":"edit","entity":"payment","entityId":"481","eventName":"payment.edit","extraData":{"entity":{"id":481,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T13:01:46-0600","amount":370,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":370,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":481,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T13:01:46-0600","amount":370,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":370,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-02 19:02:03.464503] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-02 19:02:03.464756] [debug] HTTP request processing ended.
|
|
Ancho original de la imagen:722 Altura original de la imagen: 1024
|
|
|
|
Inicio x:36.1 Inicio y: 0
|
|
|
|
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
|
|
|
|
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", "$370", "$2010 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
[2025-01-02 19:57:20.696007] [notice] Logging level set to:debug
|
|
[2025-01-02 19:57:20.699628] [debug] El valor del evento recibio en json: {"uuid":"e53f9da7-07ac-43a8-b697-8c6e3dfa6fda","changeType":"insert","entity":"payment","entityId":"482","eventName":"payment.add","extraData":{"entity":{"id":482,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T13:57:13-0600","amount":450,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":450,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-02 19:57:20.891824] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-02 19:57:20.892108] [debug] datos del notification para el invoice add:{"uuid":"e53f9da7-07ac-43a8-b697-8c6e3dfa6fda","changeType":"insert","entity":"payment","entityId":482,"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":2460,"accountCredit":2460,"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":482,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T13:57:13-0600","amount":450,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":450,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-02 19:57:20.892148] [debug] valor del payment data: {"id":482,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T13:57:13-0600","amount":450,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":450,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-02 19:57:20.892182] [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/182bd7ca-0159-4849-940d-378aaa73ecae.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
Ancho original de la imagen:683 Altura original de la imagen: 1024
|
|
|
|
Inicio x:34.15 Inicio y: 0
|
|
|
|
Terminó de crear la imagen del comprobante
|
|
|
|
Subiendo comprobante a worpdpress
|
|
|
|
Conexión FTP exitosa
|
|
|
|
[2025-01-02 19:57:30.827096] [notice] Logging level set to:debug
|
|
[2025-01-02 19:57:30.827281] [debug] El valor del evento recibio en json: {"uuid":"9ea50b94-c115-4eea-889f-98a2acc420e8","changeType":"edit","entity":"payment","entityId":"482","eventName":"payment.edit","extraData":{"entity":{"id":482,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T13:57:13-0600","amount":450,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":450,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":482,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T13:57:13-0600","amount":450,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":450,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-02 19:57:30.944813] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-02 19:57:30.945231] [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
|
|
|
|
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", "$450", "$2460 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"e57b29e2d2254c2c980ee84956e93a54","status":"enqueued"}}
|
|
Hay menos de 50 archivos en el directorio. No se eliminarán archivos.
|
|
[2025-01-02 23:15:25.105309] [notice] Logging level set to:debug
|
|
[2025-01-02 23:15:25.105640] [debug] El valor del evento recibio en json: {"uuid":"9824b3aa-8063-4334-8497-7a3d7abd4039","changeType":"insert","entity":"payment","entityId":"483","eventName":"payment.add","extraData":{"entity":{"id":483,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:15:20-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-02 23:15:25.227766] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-02 23:15:25.228147] [debug] datos del notification para el invoice add:{"uuid":"9824b3aa-8063-4334-8497-7a3d7abd4039","changeType":"insert","entity":"payment","entityId":483,"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":2630,"accountCredit":2630,"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":483,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:15:20-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-02 23:15:25.228231] [debug] valor del payment data: {"id":483,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:15:20-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-02 23:15:25.228302] [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/a1a7de4f-585f-43c5-becf-ad6868ec49eb.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
Ancho original de la imagen:683 Altura original de la imagen: 1024
|
|
|
|
Inicio x:95.62 Inicio y: 51.2
|
|
|
|
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-02 23:15:35.252846] [notice] Logging level set to:debug
|
|
[2025-01-02 23:15:35.252996] [debug] El valor del evento recibio en json: {"uuid":"40a24a30-5d24-46bf-b916-43300246ba26","changeType":"edit","entity":"payment","entityId":"483","eventName":"payment.edit","extraData":{"entity":{"id":483,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:15:20-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":483,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:15:20-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-02 23:15:35.388166] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-02 23:15:35.388413] [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", "$170", "$2630 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"6943ef6e1c5844ac83ab6b09feb006e9","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":483,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:15:20-0600","amount":170,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":170,"userId":1015,"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\udcb22630 a favor","Monto Ultimo Pago":"\ud83d\udcb2 170","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\udcb22630 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 170\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 02\/01\/2025 17:15 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 17:15\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 02\/01\/2025 17:15 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 17:15","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":null,"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","user name":"Daniel Humberto 🐁","Fecha Ultimo Pago":"📆💸 02/01/2025 17:15 con Transferencia bancaria 📱🏦","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲2630 a favor","Monto Ultimo Pago":"💲 170","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 02/01/2025 17:15","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\": \"💲2630 a favor\",\"Monto Ultimo Pago\": \"💲 170\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 02/01/2025 17:15 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 02/01/2025 17:15\",\"Clabe Transferencia Banamex\": \"\"}"},"team":{"uuid":"4bb6fdf55312494681512b47eebcad7e","name":"PAGOS","default":false,"members":4,"createdAt":"2023-12-14T22:42:33Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}}
|
|
[2025-01-02 23:25:38.986525] [notice] Logging level set to:debug
|
|
[2025-01-02 23:25:38.986622] [debug] El valor del evento recibio en json: {"uuid":"86fd6d47-d3f0-40d3-85d2-b06df949ea0f","changeType":"insert","entity":"payment","entityId":"484","eventName":"payment.add","extraData":{"entity":{"id":484,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:25:36-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-02 23:25:39.109222] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-02 23:25:39.109601] [debug] datos del notification para el invoice add:{"uuid":"86fd6d47-d3f0-40d3-85d2-b06df949ea0f","changeType":"insert","entity":"payment","entityId":484,"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":2850,"accountCredit":2850,"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":484,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:25:36-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-02 23:25:39.109683] [debug] valor del payment data: {"id":484,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:25:36-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-02 23:25:39.109752] [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/6d6ddcd5-e451-4fd3-aadd-b6e889962f9e.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
Ancho original de la imagen:683 Altura original de la imagen: 1024
|
|
|
|
Inicio x:683 Inicio y: 1024
|
|
|
|
Nuevo ancho:683 Nuevo alto: 1024
|
|
|
|
Error al crear la imagen: ImagickException: geometry does not contain image `/data/ucrm/data/plugins/siip-whatsapp-notifications/comprobantes/Comprobante_Daniel_Humberto_Soto_Villegas_Polleria.png' @ warning/transform.c/CropImage/649 in /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/ClientCallBellAPI.php:299
|
|
Stack trace:
|
|
#0 /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/ClientCallBellAPI.php(299): Imagick->cropImage(683, 1024, 683, 1024)
|
|
#1 /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/AbstractMessageNotifierFacade.php(303): SmsNotifier\Facade\ClientCallBellAPI->sendPaymentNotificationWhatsApp('5214181878106', Object(SmsNotifier\Data\NotificationData))
|
|
#2 /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Facade/AbstractMessageNotifierFacade.php(64): SmsNotifier\Facade\AbstractMessageNotifierFacade->notifyAndUpdate(Object(SmsNotifier\Data\NotificationData), '4181878106')
|
|
#3 /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Plugin.php(230): SmsNotifier\Facade\AbstractMessageNotifierFacade->verifyPaymentActionToDo(Object(SmsNotifier\Data\NotificationData))
|
|
#4 /data/ucrm/data/plugins/siip-whatsapp-notifications/src/Plugin.php(77): SmsNotifier\Plugin->processHttpRequest()
|
|
#5 /data/ucrm/data/plugins/siip-whatsapp-notifications/main.php(13): SmsNotifier\Plugin->run()
|
|
#6 /data/ucrm/data/plugins/siip-whatsapp-notifications/main.php(22): {closure}()
|
|
#7 /data/ucrm/data/plugins/siip-whatsapp-notifications/public.php(5): require_once('/data/ucrm/data...')
|
|
#8 /usr/src/ucrm/web/_plugins/siip-whatsapp-notifications/public.php(3): require_once('/data/ucrm/data...')
|
|
#9 {main}
|
|
|
|
[2025-01-02 23:25:47.807938] [warning] No se pudo enviar el comprobante para este cliente
|
|
|
|
[2025-01-02 23:25:47.808221] [debug] HTTP request processing ended.
|
|
[2025-01-02 23:25:47.952728] [notice] Logging level set to:debug
|
|
[2025-01-02 23:25:47.952914] [debug] El valor del evento recibio en json: {"uuid":"e9750c8c-df65-491a-ba8b-a850b7b7d943","changeType":"edit","entity":"payment","entityId":"484","eventName":"payment.edit","extraData":{"entity":{"id":484,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:25:36-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":484,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:25:36-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-02 23:25:48.088084] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-02 23:25:48.088356] [debug] HTTP request processing ended.
|
|
[2025-01-02 23:27:36.048306] [notice] Logging level set to:debug
|
|
[2025-01-02 23:27:36.048502] [debug] El valor del evento recibio en json: {"uuid":"1a50e97c-b60a-4390-baa0-5180f65cac35","changeType":"insert","entity":"payment","entityId":"485","eventName":"payment.add","extraData":{"entity":{"id":485,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:27:33-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-02 23:27:36.210933] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-02 23:27:36.211309] [debug] datos del notification para el invoice add:{"uuid":"1a50e97c-b60a-4390-baa0-5180f65cac35","changeType":"insert","entity":"payment","entityId":485,"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":3070,"accountCredit":3070,"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":485,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:27:33-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-02 23:27:36.211390] [debug] valor del payment data: {"id":485,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:27:33-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-02 23:27:36.211448] [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/c6ff3141-c422-4ad3-b9cd-4e9f3662492e.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
Ancho original de la imagen:683 Altura original de la imagen: 1024
|
|
|
|
Inicio x:683 Inicio y: 1024
|
|
|
|
Nuevo ancho:683 Nuevo alto: 1024
|
|
|
|
Terminó de crear la imagen del comprobante
|
|
|
|
Subiendo comprobante a worpdpress
|
|
|
|
[2025-01-02 23:27:46.167795] [notice] Logging level set to:debug
|
|
[2025-01-02 23:27:46.167912] [debug] El valor del evento recibio en json: {"uuid":"298f65b7-8a28-4d56-a313-a774bf9365fa","changeType":"edit","entity":"payment","entityId":"485","eventName":"payment.edit","extraData":{"entity":{"id":485,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:27:33-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":485,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T17:27:33-0600","amount":220,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":220,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-02 23:27:46.302881] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-02 23:27:46.303544] [debug] HTTP request processing ended.
|
|
[2025-01-03 5:07:00.843163] [notice] Logging level set to:debug
|
|
[2025-01-03 5:07:00.854130] [debug] El valor del evento recibio en json: {"uuid":"8d53dc70-0125-4275-991e-237a9e9943ce","changeType":"insert","entity":"payment","entityId":"486","eventName":"payment.add","extraData":{"entity":{"id":486,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T23:06:54-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-03 5:07:01.056090] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-03 5:07:01.056503] [debug] datos del notification para el invoice add:{"uuid":"8d53dc70-0125-4275-991e-237a9e9943ce","changeType":"insert","entity":"payment","entityId":486,"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":3200,"accountCredit":3200,"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":486,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T23:06:54-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-03 5:07:01.056577] [debug] valor del payment data: {"id":486,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T23:06:54-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-03 5:07:01.056646] [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/90b11ace-0ae0-44e4-8665-e5a831d4927c.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
Ancho original de la imagen:683 Altura original de la imagen: 1024
|
|
|
|
Inicio x:95.62 Inicio y: 51.2
|
|
|
|
Nuevo ancho:478.1 Nuevo alto: 563.2
|
|
|
|
Terminó de crear la imagen del comprobante
|
|
|
|
Subiendo comprobante a worpdpress
|
|
|
|
Conexión FTP exitosa
|
|
|
|
[2025-01-03 5:07:10.932770] [notice] Logging level set to:debug
|
|
[2025-01-03 5:07:10.932900] [debug] El valor del evento recibio en json: {"uuid":"df334fda-a718-47af-ab41-74dd71185a7d","changeType":"edit","entity":"payment","entityId":"486","eventName":"payment.edit","extraData":{"entity":{"id":486,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T23:06:54-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":486,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T23:06:54-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-03 5:07:11.066349] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-03 5:07:11.066589] [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
|
|
|
|
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", "$130", "$3200 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"5dbbd145bd424bce8857d6cc875ccc5f","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":486,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-02T23:06:54-0600","amount":130,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":130,"userId":1015,"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\udcb23200 a favor","Monto Ultimo Pago":"\ud83d\udcb2 130","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\udcb23200 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 130\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 02\/01\/2025 23:06 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 23:07\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 02\/01\/2025 23:06 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 02\/01\/2025 23:07","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-02T23:20:28Z","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","user name":"Daniel Humberto 🐁","Fecha Ultimo Pago":"📆💸 02/01/2025 23:06 con Transferencia bancaria 📱🏦","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲3200 a favor","Monto Ultimo Pago":"💲 130","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 02/01/2025 23:07","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\": \"💲3200 a favor\",\"Monto Ultimo Pago\": \"💲 130\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 02/01/2025 23:06 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 02/01/2025 23:07\",\"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-03 17:29:42.786909] [notice] Logging level set to:debug
|
|
[2025-01-03 17:29:42.787295] [debug] El valor del evento recibio en json: {"uuid":"192fa41c-c19c-49ee-b457-ebd6bd35f450","changeType":"insert","entity":"payment","entityId":"487","eventName":"payment.add","extraData":{"entity":{"id":487,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:29:19-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-03 17:29:42.920526] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-03 17:29:42.920926] [debug] datos del notification para el invoice add:{"uuid":"192fa41c-c19c-49ee-b457-ebd6bd35f450","changeType":"insert","entity":"payment","entityId":487,"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":3450,"accountCredit":3450,"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":487,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:29:19-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-03 17:29:42.921006] [debug] valor del payment data: {"id":487,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:29:19-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-03 17:29:42.921083] [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/704d15c6-ffa4-4d14-bab9-80273b13c77b.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
Ancho original de la imagen:683 Altura original de la imagen: 1024
|
|
|
|
Inicio x:95.62 Inicio y: 51.2
|
|
|
|
Nuevo ancho:478.1 Nuevo alto: 563.2
|
|
|
|
Terminó de crear la imagen del comprobante
|
|
|
|
Subiendo comprobante a worpdpress
|
|
|
|
[2025-01-03 17:29:52.928967] [notice] Logging level set to:debug
|
|
[2025-01-03 17:29:52.929095] [debug] El valor del evento recibio en json: {"uuid":"54fd4300-6d7d-4e6e-8985-53a769aa8fab","changeType":"edit","entity":"payment","entityId":"487","eventName":"payment.edit","extraData":{"entity":{"id":487,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:29:19-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":487,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:29:19-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-03 17:29:53.062062] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-03 17:29:53.062304] [debug] HTTP request processing ended.
|
|
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
|
|
|
|
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", "$250", "$3450 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"cd7732775f3348c1a8996425ef62e580","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":487,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:29:19-0600","amount":250,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":250,"userId":1015,"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\udcb23450 a favor","Monto Ultimo Pago":"\ud83d\udcb2 250","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\udcb23450 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 250\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 03\/01\/2025 11:29 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/01\/2025 11:30\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 03\/01\/2025 11:29 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/01\/2025 11:30","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-02T23:20:28Z","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","user name":"Daniel Humberto 🐁","Fecha Ultimo Pago":"📆💸 03/01/2025 11:29 con Transferencia bancaria 📱🏦","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲3450 a favor","Monto Ultimo Pago":"💲 250","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 03/01/2025 11:30","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\": \"💲3450 a favor\",\"Monto Ultimo Pago\": \"💲 250\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 03/01/2025 11:29 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 03/01/2025 11:30\",\"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-03 17:31:26.333545] [notice] Logging level set to:debug
|
|
[2025-01-03 17:31:26.333646] [debug] El valor del evento recibio en json: {"uuid":"25d1f12c-1dc9-4af6-9d9a-cf9ae9401701","changeType":"insert","entity":"payment","entityId":"488","eventName":"payment.add","extraData":{"entity":{"id":488,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:31:21-0600","amount":240,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":240,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-03 17:31:26.487572] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-03 17:31:26.487833] [debug] datos del notification para el invoice add:{"uuid":"25d1f12c-1dc9-4af6-9d9a-cf9ae9401701","changeType":"insert","entity":"payment","entityId":488,"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":3690,"accountCredit":3690,"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":488,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:31:21-0600","amount":240,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":240,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-03 17:31:26.487868] [debug] valor del payment data: {"id":488,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:31:21-0600","amount":240,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":240,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-03 17:31:26.487888] [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/56f91b80-c867-4f83-9c44-f87fa84b5f05.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
Ancho original de la imagen:683 Altura original de la imagen: 1024
|
|
|
|
Inicio x:95.62 Inicio y: 204.8
|
|
|
|
Nuevo ancho:478.1 Nuevo alto: 563.2
|
|
|
|
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-03 17:31:36.457827] [notice] Logging level set to:debug
|
|
[2025-01-03 17:31:36.457952] [debug] El valor del evento recibio en json: {"uuid":"c1ba9a1a-7e2e-4803-b729-b07544a4032a","changeType":"edit","entity":"payment","entityId":"488","eventName":"payment.edit","extraData":{"entity":{"id":488,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:31:21-0600","amount":240,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":240,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":488,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:31:21-0600","amount":240,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":240,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-03 17:31:36.585165] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-03 17:31:36.585483] [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", "$240", "$3690 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"90c878b86e1a4145b4066c311b70b71f","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":488,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:31:21-0600","amount":240,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":240,"userId":1015,"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\udcb23690 a favor","Monto Ultimo Pago":"\ud83d\udcb2 240","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\udcb23690 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 240\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 03\/01\/2025 11:31 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/01\/2025 11:31\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 03\/01\/2025 11:31 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/01\/2025 11:31","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-02T23:20:28Z","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","user name":"Daniel Humberto 🐁","Fecha Ultimo Pago":"📆💸 03/01/2025 11:31 con Transferencia bancaria 📱🏦","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲3690 a favor","Monto Ultimo Pago":"💲 240","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 03/01/2025 11:31","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\": \"💲3690 a favor\",\"Monto Ultimo Pago\": \"💲 240\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 03/01/2025 11:31 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 03/01/2025 11:31\",\"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-03 17:37:06.350327] [notice] Logging level set to:debug
|
|
[2025-01-03 17:37:06.350714] [debug] El valor del evento recibio en json: {"uuid":"6139205b-a2d6-4926-beb7-b35fdfcb77ca","changeType":"insert","entity":"payment","entityId":"489","eventName":"payment.add","extraData":{"entity":{"id":489,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:37:03-0600","amount":185,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":185,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-03 17:37:06.468904] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-03 17:37:06.469261] [debug] datos del notification para el invoice add:{"uuid":"6139205b-a2d6-4926-beb7-b35fdfcb77ca","changeType":"insert","entity":"payment","entityId":489,"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":3875,"accountCredit":3875,"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":489,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:37:03-0600","amount":185,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":185,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-03 17:37:06.469341] [debug] valor del payment data: {"id":489,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:37:03-0600","amount":185,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":185,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-03 17:37:06.469413] [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/5c7afb22-cb8e-4990-99a0-9e9d6a97efe6.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
Ancho original de la imagen:585 Altura original de la imagen: 1024
|
|
|
|
Inicio x:81.9 Inicio y: 51.2
|
|
|
|
Nuevo ancho:409.5 Nuevo alto: 921.6
|
|
|
|
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-03 17:37:16.498258] [notice] Logging level set to:debug
|
|
[2025-01-03 17:37:16.498815] [debug] El valor del evento recibio en json: {"uuid":"6075add4-8c28-43c2-aa6f-4ff311c39a2f","changeType":"edit","entity":"payment","entityId":"489","eventName":"payment.edit","extraData":{"entity":{"id":489,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:37:03-0600","amount":185,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":185,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":489,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:37:03-0600","amount":185,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":185,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-03 17:37:16.645195] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-03 17:37:16.645437] [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", "$185", "$3875 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"7a888bbd0c634cafb4a6b71eb1e91913","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":489,"clientId":2,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:37:03-0600","amount":185,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":185,"userId":1015,"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\udcb23875 a favor","Monto Ultimo Pago":"\ud83d\udcb2 185","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\udcb23875 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 185\",\"Estado\": \"\ud83d\udfe2 Activo\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 03\/01\/2025 11:37 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/01\/2025 11:37\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 03\/01\/2025 11:37 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/01\/2025 11:37","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-02T23:20:28Z","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","user name":"Daniel Humberto 🐁","Fecha Ultimo Pago":"📆💸 03/01/2025 11:37 con Transferencia bancaria 📱🏦","Domicilio":"📍 Chiapas 31, Centro, Dolores Hidalgo Cuna de la Independencia Nacional, Gto., México","Estado":"🟢 Activo ","Nombre":"👤 Daniel Humberto Soto Villegas Polleria","Saldo Actual":"💲3875 a favor","Monto Ultimo Pago":"💲 185","URL":"🌐 https://172.16.5.120/crm/client/2","Fecha Ultima Actualizacion":"📆🔄️ 03/01/2025 11:37","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\": \"💲3875 a favor\",\"Monto Ultimo Pago\": \"💲 185\",\"Estado\": \"🟢 Activo\",\"Fecha Ultimo Pago\": \"📆💰 03/01/2025 11:37 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 03/01/2025 11:37\",\"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-03 17:38:49.972563] [notice] Logging level set to:debug
|
|
[2025-01-03 17:38:49.972681] [debug] El valor del evento recibio en json: {"uuid":"2e96226b-1cb3-4401-9fac-ca5eeaf5d94f","changeType":"insert","entity":"payment","entityId":"490","eventName":"payment.add","extraData":{"entity":{"id":490,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:38:46-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]},"entityBeforeEdit":null}}
|
|
|
|
[2025-01-03 17:38:50.099972] [debug] valor el evento recibido por webhook: payment.add
|
|
|
|
[2025-01-03 17:38:50.100258] [debug] datos del notification para el invoice add:{"uuid":"2e96226b-1cb3-4401-9fac-ca5eeaf5d94f","changeType":"insert","entity":"payment","entityId":490,"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":780,"accountCredit":780,"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":490,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:38:46-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]}}
|
|
|
|
[2025-01-03 17:38:50.100415] [debug] valor del payment data: {"id":490,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:38:46-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]}
|
|
|
|
[2025-01-03 17:38:50.100487] [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/f47dbadd-a02b-4aa9-82ee-705d01c89583.pdf
|
|
|
|
se creó la instancia de Imagick
|
|
|
|
Ancho original de la imagen:585 Altura original de la imagen: 1024
|
|
|
|
Inicio x:81.9 Inicio y: 51.2
|
|
|
|
Nuevo ancho:409.5 Nuevo alto: 921.6
|
|
|
|
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_Don_Miguel_Ángel_Guerrero_González.png
|
|
|
|
[2025-01-03 17:39:00.124113] [notice] Logging level set to:debug
|
|
[2025-01-03 17:39:00.124480] [debug] El valor del evento recibio en json: {"uuid":"0186d916-9d5a-476f-9280-a6f18eb48024","changeType":"edit","entity":"payment","entityId":"490","eventName":"payment.edit","extraData":{"entity":{"id":490,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:38:46-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-01-03T11:38:50-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]},"entityBeforeEdit":{"id":490,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:38:46-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":null,"providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]}}}
|
|
|
|
[2025-01-03 17:39:00.264878] [debug] valor el evento recibido por webhook: payment.edit
|
|
|
|
[2025-01-03 17:39:00.265214] [debug] HTTP request processing ended.
|
|
Archivos eliminados
|
|
|
|
Se terminó de subir comprobante a wordpress
|
|
|
|
La cadena CURL que se envia es: {
|
|
"to": "5214181148554",
|
|
"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"
|
|
},
|
|
"template_values": ["Don Miguel Ángel Guerrero González", "$200", "$780 a favor"],
|
|
"template_uuid": "57ead79cebd14902921477922403093b",
|
|
"optin_contact": true
|
|
}
|
|
Response del CallBell: {"message":{"uuid":"9b10fa88041d4ebba72db67e3e312aa9","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":490,"clientId":1,"methodId":"4145b5f5-3bbc-45e3-8fc5-9cda970c62fb","checkNumber":null,"createdDate":"2025-01-03T11:38:46-0600","amount":200,"currencyCode":"MXN","note":null,"receiptSentDate":"2025-01-03T11:38:50-0600","providerName":null,"providerPaymentId":null,"providerPaymentTime":null,"paymentCovers":[],"creditAmount":200,"userId":1015,"attributes":[]}]
|
|
|
|
Nombre del cliente que se va a actualizar: Don Miguel Ángel Guerrero González
|
|
|
|
UUID: 0e53e926ce424db5b9284a75915d24fe
|
|
|
|
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\udcb2780 a favor","Monto Ultimo Pago":"\ud83d\udcb2 200","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\udcb2780 a favor\",\"Monto Ultimo Pago\": \"\ud83d\udcb2 200\",\"Estado\": \"\ud83d\udd34 Suspendido\",\"Fecha Ultimo Pago\": \"\ud83d\udcc6\ud83d\udcb0 03\/01\/2025 11:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6\",\"Fecha Ultima Actualizacion\": \"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/01\/2025 11:39\",\"Clabe Transferencia Banamex\": \"\"}","Fecha Ultimo Pago":"\ud83d\udcc6\ud83d\udcb8 03\/01\/2025 11:38 con Transferencia bancaria \ud83d\udcf1\ud83c\udfe6","Fecha Ultima Actualizacion":"\ud83d\udcc6\ud83d\udd04\ufe0f 03\/01\/2025 11:39","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":null,"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":"💲780 a favor","Cliente":"1","Fecha Ultimo Pago":"📆💸 03/01/2025 11:38 con Transferencia bancaria 📱🏦","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":"📆🔄️ 03/01/2025 11:39","Monto Ultimo Pago":"💲 200","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\": \"💲780 a favor\",\"Monto Ultimo Pago\": \"💲 200\",\"Estado\": \"🔴 Suspendido\",\"Fecha Ultimo Pago\": \"📆💰 03/01/2025 11:38 con Transferencia bancaria 📱🏦\",\"Fecha Ultima Actualizacion\": \"📆🔄️ 03/01/2025 11:39\",\"Clabe Transferencia Banamex\": \"\"}"},"team":{"uuid":"4bb6fdf55312494681512b47eebcad7e","name":"PAGOS","default":false,"members":4,"createdAt":"2023-12-14T22:42:33Z"},"channel":{"uuid":"dbaa248932634e7ea4346a320960c24a","title":null,"type":"whatsapp","main":true}}}
|