Cambios para procesar referencias oxxo con hasta 5 intentos
This commit is contained in:
parent
1731eb1813
commit
9e78efdf2f
@ -1,33 +1,3 @@
|
||||
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
|
||||
@ -1020,3 +990,34 @@ 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}}}
|
||||
[2025-01-04 6:25:03.699361] [notice] Logging level set to:debug
|
||||
[2025-01-04 6:25:03.699984] [debug] El valor del evento recibio en json: {"uuid":"15ed0a65-0f5a-4779-9f5d-d61586813927","changeType":"overdue","entity":"invoice","entityId":"1304","eventName":"invoice.overdue","extraData":{"entity":{"id":1304,"clientId":121,"number":"001268","createdDate":"2024-12-20T10:00:01-0600","dueDate":"2025-01-03T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1306,"type":"service","label":"INTERMEDIO 20\/11\/2024 \u2013 19\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":106,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"flor","clientLastName":"marquez gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"plutarco elias calles 8,lindavista","clientStreet2":"enfrente del parque","clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
|
||||
|
||||
[2025-01-04 6:25:04.000411] [debug] valor el evento recibido por webhook: invoice.overdue
|
||||
|
||||
[2025-01-04 6:25:04.001130] [debug] Factura vencida
|
||||
|
||||
[2025-01-04 6:25:04.001497] [debug] datos del notification para el invoice overdue:{"uuid":"15ed0a65-0f5a-4779-9f5d-d61586813927","changeType":"overdue","entity":"invoice","entityId":1304,"message":null,"clientId":121,"eventName":"invoice.overdue","clientData":{"id":121,"userIdent":"-105.998","previousIsp":"angel","isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"plutarco elias calles 8,lindavista","street2":"enfrente del parque","city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"plutarco elias calles 8,lindavista, Dolores Hidalgo Cuna de la Independencia Nacional, 37800","invoiceStreet1":null,"invoiceStreet2":null,"invoiceCity":null,"invoiceStateId":null,"invoiceCountryId":null,"invoiceZipCode":null,"invoiceAddressSameAsContact":true,"note":null,"sendInvoiceByPost":false,"invoiceMaturityDays":null,"stopServiceDue":false,"stopServiceDueDays":null,"organizationId":1,"tax1Id":null,"tax2Id":null,"tax3Id":null,"registrationDate":"2024-05-20T00:00:00-0600","leadConvertedAt":"2024-05-20T13:45:39-0600","companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"flor","lastName":"marquez gonzalez","username":null,"contacts":[{"id":125,"clientId":121,"email":null,"phone":null,"name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":120,"clientId":121,"customAttributeId":2,"name":"CelularNotificaciones","key":"celularnotificaciones","value":"172.16.117.243","clientZoneVisible":true},{"id":121,"clientId":121,"customAttributeId":4,"name":"Whatsapp","key":"whatsapp","value":"Siip.567","clientZoneVisible":true},{"id":122,"clientId":121,"customAttributeId":5,"name":"uuid","key":"uuid","value":"admin1343","clientZoneVisible":true},{"id":123,"clientId":121,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"22372x9000055","clientZoneVisible":true},{"id":124,"clientId":121,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"21.9758566","clientZoneVisible":true}],"accountBalance":-3316.67,"accountCredit":0,"accountOutstanding":3316.67,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.5,"addressGpsLon":-100,"isArchived":false,"generateProformaInvoices":false,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":false,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1304,"clientId":121,"number":"001268","createdDate":"2024-12-20T10:00:01-0600","dueDate":"2025-01-03T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1306,"type":"service","label":"INTERMEDIO 20\/11\/2024 \u2013 19\/12\/2024","price":500,"quantity":1,"total":500,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":106,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":500,"discount":null,"discountLabel":"Descuento","taxes":[],"total":500,"amountPaid":0,"totalUntaxed":500,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":500,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"flor","clientLastName":"marquez gonzalez","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"plutarco elias calles 8,lindavista","clientStreet2":"enfrente del parque","clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null}
|
||||
|
||||
[2025-01-04 6:25:04.001590] [debug] ***Se notifica al cliente que la factura de su servicio está vencida***
|
||||
|
||||
contac vacio
|
||||
[2025-01-04 6:25:04.007680] [debug] Numero de cel obtenido
|
||||
|
||||
[2025-01-04 6:25:04.007742] [warning] No se encontró un teléfono celular válido para el cliente: 121
|
||||
[2025-01-04 6:25:04.007852] [debug] HTTP request processing ended.
|
||||
[2025-01-04 6:25:04.165174] [notice] Logging level set to:debug
|
||||
[2025-01-04 6:25:04.165276] [debug] El valor del evento recibio en json: {"uuid":"6e3f60b1-ae7a-4dd9-93ae-aa04e719b7f4","changeType":"overdue","entity":"invoice","entityId":"1305","eventName":"invoice.overdue","extraData":{"entity":{"id":1305,"clientId":122,"number":"001269","createdDate":"2024-12-20T10:00:01-0600","dueDate":"2025-01-03T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1307,"type":"service","label":"plan300 20\/11\/2024 \u2013 19\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":107,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":0,"discountQuantity":0,"discountTotal":0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"MARQUEZ GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PLTARCO 8, LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"entityBeforeEdit":null}}
|
||||
|
||||
[2025-01-04 6:25:04.379544] [debug] valor el evento recibido por webhook: invoice.overdue
|
||||
|
||||
[2025-01-04 6:25:04.379748] [debug] Factura vencida
|
||||
|
||||
[2025-01-04 6:25:04.379838] [debug] datos del notification para el invoice overdue:{"uuid":"6e3f60b1-ae7a-4dd9-93ae-aa04e719b7f4","changeType":"overdue","entity":"invoice","entityId":1305,"message":null,"clientId":122,"eventName":"invoice.overdue","clientData":{"id":122,"userIdent":null,"previousIsp":null,"isLead":false,"clientType":1,"companyName":null,"companyRegistrationNumber":null,"companyTaxId":null,"companyWebsite":null,"street1":"PLTARCO 8, LINDAVISTA","street2":null,"city":"Dolores Hidalgo Cuna de la Independencia Nacional","countryId":173,"stateId":null,"zipCode":"37800","fullAddress":"PLTARCO 8, LINDAVISTA, Dolores Hidalgo Cuna de la Independencia Nacional, 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-05-20T00:00:00-0600","leadConvertedAt":null,"companyContactFirstName":null,"companyContactLastName":null,"isActive":false,"firstName":"JUDITH","lastName":"MARQUEZ GONZALEZ","username":null,"contacts":[{"id":126,"clientId":122,"email":null,"phone":"55667788","name":null,"isBilling":true,"isContact":true,"types":[{"id":1,"name":"Billing"},{"id":2,"name":"General"}]}],"attributes":[{"id":125,"clientId":122,"customAttributeId":10,"name":"Stripe Customer ID","key":"stripeCustomerId","value":"cus_Q8uWOC8sjQem1K","clientZoneVisible":true},{"id":126,"clientId":122,"customAttributeId":11,"name":"Clabe Transferencia Banamex","key":"clabeTransferenciaBanamex","value":"002180296730137251","clientZoneVisible":true}],"accountBalance":-3990,"accountCredit":0,"accountOutstanding":3990,"currencyCode":"MXN","organizationName":"SIIP Pruebas","bankAccounts":[],"tags":[],"invitationEmailSentDate":null,"avatarColor":"#ef5350","addressGpsLat":21.171581132292,"addressGpsLon":-100.9286433436,"isArchived":false,"generateProformaInvoices":null,"usesProforma":false,"hasOverdueInvoice":true,"hasOutage":false,"hasSuspendedService":true,"hasServiceWithoutDevices":true,"referral":null,"hasPaymentSubscription":false,"hasAutopayCreditCard":false},"serviceData":null,"invoiceData":{"id":1305,"clientId":122,"number":"001269","createdDate":"2024-12-20T10:00:01-0600","dueDate":"2025-01-03T10:00:01-0600","emailSentDate":null,"maturityDays":14,"taxableSupplyDate":"2024-12-18T18:00:00-0600","notes":null,"adminNotes":null,"items":[{"id":1307,"type":"service","label":"plan300 20\/11\/2024 \u2013 19\/12\/2024","price":300,"quantity":1,"total":300,"unit":null,"tax1Id":null,"tax2Id":null,"tax3Id":null,"serviceId":107,"serviceSurchargeId":null,"productId":null,"feeId":null,"discountPrice":-0,"discountQuantity":0,"discountTotal":-0}],"subtotal":300,"discount":null,"discountLabel":"Descuento","taxes":[],"total":300,"amountPaid":0,"totalUntaxed":300,"totalDiscount":-0,"totalTaxAmount":0,"amountToPay":300,"currencyCode":"MXN","status":1,"paymentCovers":[],"invoiceTemplateId":2,"proformaInvoiceTemplateId":2,"organizationName":"SIIP Pruebas","organizationRegistrationNumber":null,"organizationTaxId":null,"organizationStreet1":"Morel 34","organizationStreet2":null,"organizationCity":"Dolores Hidalgo","organizationStateId":null,"organizationCountryId":173,"organizationZipCode":"37800","organizationBankAccountName":null,"organizationBankAccountField1":null,"organizationBankAccountField2":null,"clientFirstName":"JUDITH","clientLastName":"MARQUEZ GONZALEZ","clientCompanyName":null,"clientCompanyRegistrationNumber":null,"clientCompanyTaxId":null,"clientStreet1":"PLTARCO 8, LINDAVISTA","clientStreet2":null,"clientCity":"Dolores Hidalgo Cuna de la Independencia Nacional","clientCountryId":173,"clientStateId":null,"clientZipCode":"37800","attributes":[],"uncollectible":false,"proforma":false,"generatedInvoiceId":null,"proformaInvoiceId":null,"isAppliedVatReverseCharge":false,"payAutomatically":false},"paymentData":null}
|
||||
|
||||
[2025-01-04 6:25:04.379901] [debug] ***Se notifica al cliente que la factura de su servicio está vencida***
|
||||
|
||||
[2025-01-04 6:25:04.380002] [debug] Numero de cel obtenido
|
||||
|
||||
[2025-01-04 6:25:04.380052] [warning] No se encontró un teléfono celular válido para el cliente: 122
|
||||
[2025-01-04 6:25:04.380106] [debug] HTTP request processing ended.
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
"displayName": "SIIP - Procesador de Pagos en línea con Stripe, Sincronizador de CallBell y Envío de Notificaciones y comprobantes vía WhatsApp",
|
||||
"description": "Este plugin sincroniza los clientes del sitema UISP CRM con los contactos de WhatsApp en CallBell, además procesa pagos de Stripe como las trasferencias bancarias y genera referencias de pago vía OXXO, además envía comprobantes de pago en formato imagen PNG vía Whatsapp a los clientes",
|
||||
"url": "https://siip.mx/",
|
||||
"version": "2.4.8",
|
||||
"version": "2.4.9",
|
||||
"unmsVersionCompliancy": {
|
||||
"min": "2.1.0",
|
||||
"max": null
|
||||
|
||||
Binary file not shown.
@ -130,11 +130,15 @@ class Plugin
|
||||
$this->logger->info('Evento de Energía recibido: ' . $event_json->message . PHP_EOL);
|
||||
break;
|
||||
case 'oxxo.request':
|
||||
$this->logger->info('Evento de referencia de oxxo recibido: ' . PHP_EOL);
|
||||
$this->logger->info('Evento de referencia de oxxo recibido' . PHP_EOL);
|
||||
|
||||
// Construir la URL basada en el "client_id"
|
||||
// $url = "https://siip.mx/wp/wp-content/uploads/img/voucher.png";
|
||||
$url = $this->pluginOxxoNotifierFacade->createOxxoPaymentIntent($event_json);
|
||||
$intentos = 0;
|
||||
do {
|
||||
$url = $this->pluginOxxoNotifierFacade->createOxxoPaymentIntent($event_json);
|
||||
$attempts++;
|
||||
} while (strpos($url, 'https') !== 0 && $intentos < 5);
|
||||
// Crear una respuesta en formato JSON
|
||||
// $response = [
|
||||
// 'event' => 'response.siip',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user