diff --git a/codbex-payments/codbex-payments.gen b/codbex-payments/codbex-payments.gen index bb53350..278decc 100644 --- a/codbex-payments/codbex-payments.gen +++ b/codbex-payments/codbex-payments.gen @@ -2,57 +2,15 @@ "tablePrefix": "CODBEX_", "brand": "codbex", "brandUrl": "https://www.codbex.com/", - "title": "Payments Management Application", + "title": "Payments Managing Module", "description": "Managing payments data", - "dataSource": "DefaultDB", - "fileName": "codbex-payments", - "genFolderName": "codbex-payments", - "roles": [ - { - "entityName": "CustomerPayment", - "roleRead": "codbex-payments.CustomerPayment.CustomerPaymentReadOnly", - "roleWrite": "codbex-payments.CustomerPayment.CustomerPaymentFullAccess" - }, - { - "entityName": "SupplierPayment", - "roleRead": "codbex-payments.SupplierPayment.SupplierPaymentReadOnly", - "roleWrite": "codbex-payments.SupplierPayment.SupplierPaymentFullAccess" - }, - { - "entityName": "EmployeePayment", - "roleRead": "codbex-payments.EmployeePayment.EmployeePaymentReadOnly", - "roleWrite": "codbex-payments.EmployeePayment.EmployeePaymentFullAccess" - }, - { - "entityName": "PaymentRecord", - "roleRead": "codbex-payments.PaymentRecord.PaymentRecordReadOnly", - "roleWrite": "codbex-payments.PaymentRecord.PaymentRecordFullAccess" - }, - { - "entityName": "PaymentRecordDirection", - "roleRead": "codbex-payments.Settings.PaymentRecordDirectionReadOnly", - "roleWrite": "codbex-payments.Settings.PaymentRecordDirectionFullAccess" - }, - { - "entityName": "PaymentStatus", - "roleRead": "codbex-payments.Settings.PaymentStatusReadOnly", - "roleWrite": "codbex-payments.Settings.PaymentStatusFullAccess" - }, - { - "entityName": "PaymentType", - "roleRead": "codbex-payments.Settings.PaymentTypeReadOnly", - "roleWrite": "codbex-payments.Settings.PaymentTypeFullAccess" - }, - { - "entityName": "PaymentAdjustment", - "roleRead": "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly", - "roleWrite": "codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess" - } - ], "projectName": "codbex-payments", "workspaceName": "workspace", "filePath": "codbex-payments.model", - "templateId": "template-application-angular/template/template.js", + "templateId": "template-application-angular-v2/template/template.js", + "fileName": "codbex-payments", + "genFolderName": "codbex-payments", + "dataSource": "DefaultDB", "perspectives": { "CustomerPayment": { "views": [ @@ -262,6 +220,49 @@ "role": "" } }, + "roles": [ + { + "entityName": "CustomerPayment", + "roleRead": "codbex-payments.CustomerPayment.CustomerPaymentReadOnly", + "roleWrite": "codbex-payments.CustomerPayment.CustomerPaymentFullAccess" + }, + { + "entityName": "SupplierPayment", + "roleRead": "codbex-payments.SupplierPayment.SupplierPaymentReadOnly", + "roleWrite": "codbex-payments.SupplierPayment.SupplierPaymentFullAccess" + }, + { + "entityName": "EmployeePayment", + "roleRead": "codbex-payments.EmployeePayment.EmployeePaymentReadOnly", + "roleWrite": "codbex-payments.EmployeePayment.EmployeePaymentFullAccess" + }, + { + "entityName": "PaymentRecord", + "roleRead": "codbex-payments.PaymentRecord.PaymentRecordReadOnly", + "roleWrite": "codbex-payments.PaymentRecord.PaymentRecordFullAccess" + }, + { + "entityName": "PaymentRecordDirection", + "roleRead": "codbex-payments.Settings.PaymentRecordDirectionReadOnly", + "roleWrite": "codbex-payments.Settings.PaymentRecordDirectionFullAccess" + }, + { + "entityName": "PaymentStatus", + "roleRead": "codbex-payments.Settings.PaymentStatusReadOnly", + "roleWrite": "codbex-payments.Settings.PaymentStatusFullAccess" + }, + { + "entityName": "PaymentType", + "roleRead": "codbex-payments.Settings.PaymentTypeReadOnly", + "roleWrite": "codbex-payments.Settings.PaymentTypeFullAccess" + }, + { + "entityName": "PaymentAdjustment", + "roleRead": "codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly", + "roleWrite": "codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess" + } + ], + "tprefix": "codbex-payments-model", "models": [ { "properties": [ @@ -284,6 +285,7 @@ "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -313,6 +315,7 @@ "isCalculatedProperty": false, "widgetLabel": "Customer", "widgetDropdownUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -337,6 +340,7 @@ "isCalculatedProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -361,6 +365,7 @@ "isCalculatedProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -386,6 +391,7 @@ "isCalculatedProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -412,6 +418,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -438,6 +445,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -445,7 +453,7 @@ "inputRule": "" }, { - "dataLength": "18", + "dataLength": "16", "dataName": "CUSTOMERPAYMENT_AMOUNT", "dataNullable": false, "dataPrecision": "16", @@ -466,6 +474,7 @@ "isCalculatedProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "double", "dataTypeTypescript": "number", "inputRule": "" @@ -495,6 +504,7 @@ "isCalculatedProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -519,6 +529,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -545,6 +556,7 @@ "isCalculatedProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -576,6 +588,7 @@ "isCalculatedProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -601,6 +614,7 @@ "isRequiredProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -628,6 +642,7 @@ "isRequiredProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -654,6 +669,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reference", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -685,6 +701,7 @@ "isCalculatedProperty": false, "widgetLabel": "PaymentMethod", "widgetDropdownUrl": "/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -773,6 +790,7 @@ "isCalculatedProperty": false, "widgetLabel": "Customer", "widgetDropdownUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -798,6 +816,7 @@ "isCalculatedProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -822,6 +841,7 @@ "isCalculatedProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -847,6 +867,7 @@ "isCalculatedProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -873,6 +894,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -899,6 +921,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -906,7 +929,7 @@ "inputRule": "" }, { - "dataLength": "18", + "dataLength": "16", "dataName": "CUSTOMERPAYMENT_AMOUNT", "dataNullable": false, "dataPrecision": "16", @@ -927,6 +950,7 @@ "isCalculatedProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "double", "dataTypeTypescript": "number", "inputRule": "" @@ -956,6 +980,7 @@ "isCalculatedProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -980,6 +1005,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1006,6 +1032,7 @@ "isCalculatedProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1037,6 +1064,7 @@ "isCalculatedProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -1062,6 +1090,7 @@ "isRequiredProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1093,6 +1122,7 @@ "isCalculatedProperty": false, "widgetLabel": "PaymentMethod", "widgetDropdownUrl": "/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -1123,6 +1153,7 @@ "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -1152,6 +1183,7 @@ "isCalculatedProperty": false, "widgetLabel": "Supplier", "widgetDropdownUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Suppliers/SupplierService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Suppliers/SupplierController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -1176,6 +1208,7 @@ "isCalculatedProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -1200,6 +1233,7 @@ "isCalculatedProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -1225,6 +1259,7 @@ "isCalculatedProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1251,6 +1286,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1277,6 +1313,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1284,7 +1321,7 @@ "inputRule": "" }, { - "dataLength": "18", + "dataLength": "16", "dataName": "SUPPLIERPAYMENT_AMOUNT", "dataNullable": false, "dataPrecision": "16", @@ -1305,6 +1342,7 @@ "isCalculatedProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "double", "dataTypeTypescript": "number", "inputRule": "" @@ -1334,6 +1372,7 @@ "isCalculatedProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -1358,6 +1397,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1384,6 +1424,7 @@ "isCalculatedProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1415,6 +1456,7 @@ "isCalculatedProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -1440,6 +1482,7 @@ "isRequiredProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1467,6 +1510,7 @@ "isRequiredProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1493,6 +1537,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reference", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1578,6 +1623,7 @@ "isCalculatedProperty": false, "widgetLabel": "Supplier", "widgetDropdownUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Suppliers/SupplierService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-partners/gen/codbex-partners/api/Suppliers/SupplierController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -1603,6 +1649,7 @@ "isCalculatedProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -1627,6 +1674,7 @@ "isCalculatedProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -1652,6 +1700,7 @@ "isCalculatedProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1678,6 +1727,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1704,6 +1754,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1711,7 +1762,7 @@ "inputRule": "" }, { - "dataLength": "18", + "dataLength": "16", "dataName": "SUPPLIERPAYMENT_AMOUNT", "dataNullable": false, "dataPrecision": "16", @@ -1732,6 +1783,7 @@ "isCalculatedProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "double", "dataTypeTypescript": "number", "inputRule": "" @@ -1761,6 +1813,7 @@ "isCalculatedProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -1785,6 +1838,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1811,6 +1865,7 @@ "isCalculatedProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1842,6 +1897,7 @@ "isCalculatedProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -1867,6 +1923,7 @@ "isRequiredProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1894,6 +1951,7 @@ "isRequiredProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1920,6 +1978,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reference", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -1952,6 +2011,7 @@ "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -1976,6 +2036,7 @@ "isCalculatedProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -2000,6 +2061,7 @@ "isCalculatedProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -2025,6 +2087,7 @@ "isCalculatedProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2051,6 +2114,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2077,6 +2141,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2084,7 +2149,7 @@ "inputRule": "" }, { - "dataLength": "18", + "dataLength": "16", "dataName": "EMPLOYEEPAYMENT_AMOUNT", "dataNullable": false, "dataPrecision": "16", @@ -2105,6 +2170,7 @@ "isCalculatedProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "double", "dataTypeTypescript": "number", "inputRule": "" @@ -2134,6 +2200,7 @@ "isCalculatedProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -2158,6 +2225,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2184,6 +2252,7 @@ "isCalculatedProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2215,6 +2284,7 @@ "isCalculatedProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -2240,6 +2310,7 @@ "isRequiredProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2267,6 +2338,7 @@ "isRequiredProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2293,6 +2365,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reference", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2368,6 +2441,7 @@ "isCalculatedProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -2393,6 +2467,7 @@ "isCalculatedProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -2418,6 +2493,7 @@ "isCalculatedProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2444,6 +2520,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2470,6 +2547,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2477,7 +2555,7 @@ "inputRule": "" }, { - "dataLength": "18", + "dataLength": "16", "dataName": "EMPLOYEEPAYMENT_AMOUNT", "dataNullable": false, "dataPrecision": "16", @@ -2498,6 +2576,7 @@ "isCalculatedProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "double", "dataTypeTypescript": "number", "inputRule": "" @@ -2527,6 +2606,7 @@ "isCalculatedProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -2551,6 +2631,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2577,6 +2658,7 @@ "isCalculatedProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2608,6 +2690,7 @@ "isCalculatedProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -2633,6 +2716,7 @@ "isRequiredProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2660,6 +2744,7 @@ "isRequiredProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2686,6 +2771,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reference", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2718,6 +2804,7 @@ "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -2742,6 +2829,7 @@ "isCalculatedProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -2766,6 +2854,7 @@ "isCalculatedProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -2791,6 +2880,7 @@ "isCalculatedProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2817,6 +2907,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2843,6 +2934,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2850,7 +2942,7 @@ "inputRule": "" }, { - "dataLength": "18", + "dataLength": "16", "dataName": "PAYMENTRECORD_AMOUNT", "dataNullable": true, "dataPrecision": "16", @@ -2871,6 +2963,7 @@ "isCalculatedProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "double", "dataTypeTypescript": "number", "inputRule": "" @@ -2900,6 +2993,7 @@ "isCalculatedProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -2924,6 +3018,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2950,6 +3045,7 @@ "isCalculatedProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -2981,6 +3077,7 @@ "isCalculatedProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -3010,6 +3107,7 @@ "isCalculatedProperty": false, "widgetLabel": "PaymentRecordDirection", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -3039,6 +3137,7 @@ "isCalculatedProperty": false, "widgetLabel": "PaymentStatus", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -3068,6 +3167,7 @@ "isCalculatedProperty": false, "widgetLabel": "PaymentType", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -3093,6 +3193,7 @@ "isRequiredProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -3119,6 +3220,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reference", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -3144,6 +3246,7 @@ "isCalculatedProperty": false, "widgetLabel": "Deleted", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "boolean", "dataTypeTypescript": "boolean", "inputRule": "" @@ -3216,6 +3319,7 @@ "isCalculatedProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -3241,6 +3345,7 @@ "isCalculatedProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -3266,6 +3371,7 @@ "isCalculatedProperty": false, "widgetLabel": "CompanyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -3292,6 +3398,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyIBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -3318,6 +3425,7 @@ "isCalculatedProperty": false, "widgetLabel": "CounterpartyName", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -3325,7 +3433,7 @@ "inputRule": "" }, { - "dataLength": "18", + "dataLength": "16", "dataName": "PAYMENTRECORD_AMOUNT", "dataNullable": true, "dataPrecision": "16", @@ -3346,6 +3454,7 @@ "isCalculatedProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "double", "dataTypeTypescript": "number", "inputRule": "" @@ -3375,6 +3484,7 @@ "isCalculatedProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -3399,6 +3509,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -3425,6 +3536,7 @@ "isCalculatedProperty": false, "widgetLabel": "Description", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -3456,6 +3568,7 @@ "isCalculatedProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -3485,6 +3598,7 @@ "isCalculatedProperty": false, "widgetLabel": "PaymentRecordDirection", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -3514,6 +3628,7 @@ "isCalculatedProperty": false, "widgetLabel": "PaymentStatus", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -3543,6 +3658,7 @@ "isCalculatedProperty": false, "widgetLabel": "PaymentType", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -3568,6 +3684,7 @@ "isRequiredProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -3594,6 +3711,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reference", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -3619,6 +3737,7 @@ "isCalculatedProperty": false, "widgetLabel": "Deleted", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "boolean", "dataTypeTypescript": "boolean", "inputRule": "" @@ -3651,6 +3770,7 @@ "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -3677,6 +3797,7 @@ "isCalculatedProperty": false, "widgetLabel": "Code", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -3705,6 +3826,7 @@ "isCalculatedProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -3733,6 +3855,7 @@ "isCalculatedProperty": false, "widgetLabel": "Numeric", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -3760,6 +3883,7 @@ "isCalculatedProperty": false, "widgetLabel": "Rounding", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -3785,6 +3909,7 @@ "isCalculatedProperty": false, "widgetLabel": "Base", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "boolean", "dataTypeTypescript": "boolean", "inputRule": "" @@ -3810,6 +3935,7 @@ "isCalculatedProperty": false, "widgetLabel": "Rate", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "double", "dataTypeTypescript": "number", "inputRule": "" @@ -3870,6 +3996,7 @@ "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -3896,6 +4023,7 @@ "isCalculatedProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -3924,6 +4052,7 @@ "isCalculatedProperty": false, "widgetLabel": "Manager", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -3952,6 +4081,7 @@ "isCalculatedProperty": false, "widgetLabel": "Email", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -3980,6 +4110,7 @@ "isCalculatedProperty": false, "widgetLabel": "Phone", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4008,6 +4139,7 @@ "isCalculatedProperty": false, "widgetLabel": "Address", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4036,6 +4168,7 @@ "isCalculatedProperty": false, "widgetLabel": "PostCode", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4067,6 +4200,7 @@ "isCalculatedProperty": false, "widgetLabel": "City", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Cities/undefinedService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Cities/undefinedController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -4096,6 +4230,7 @@ "isCalculatedProperty": false, "widgetLabel": "Country", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Countries/undefinedService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Countries/undefinedController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -4122,6 +4257,7 @@ "isCalculatedProperty": false, "widgetLabel": "TIN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4150,6 +4286,7 @@ "isCalculatedProperty": false, "widgetLabel": "IBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4211,6 +4348,7 @@ "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -4235,6 +4373,7 @@ "isCalculatedProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4295,6 +4434,7 @@ "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -4319,6 +4459,7 @@ "isCalculatedProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4379,6 +4520,7 @@ "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -4403,6 +4545,7 @@ "isCalculatedProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4463,6 +4606,7 @@ "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -4487,6 +4631,7 @@ "isCalculatedProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4547,6 +4692,7 @@ "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -4571,6 +4717,7 @@ "isCalculatedProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4597,6 +4744,7 @@ "isCalculatedProperty": false, "widgetLabel": "Address", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4623,6 +4771,7 @@ "isCalculatedProperty": false, "widgetLabel": "PostalCode", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4649,6 +4798,7 @@ "isCalculatedProperty": false, "widgetLabel": "Email", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4675,6 +4825,7 @@ "isCalculatedProperty": false, "widgetLabel": "Phone", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4701,6 +4852,7 @@ "isCalculatedProperty": false, "widgetLabel": "Fax", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4731,6 +4883,7 @@ "isCalculatedProperty": false, "widgetLabel": "Country", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Countries/undefinedService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Countries/undefinedController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -4759,6 +4912,7 @@ "isCalculatedProperty": false, "widgetLabel": "City", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Cities/undefinedService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Cities/undefinedController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -4783,6 +4937,7 @@ "isCalculatedProperty": false, "widgetLabel": "TIN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4809,6 +4964,7 @@ "isCalculatedProperty": false, "widgetLabel": "IBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -4870,6 +5026,7 @@ "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -4893,6 +5050,7 @@ "isCalculatedProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -4917,13 +5075,14 @@ "isCalculatedProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, "inputRule": "" }, { - "dataLength": "18", + "dataLength": "16", "dataName": "PAYMENTADJUSTMENT_AMOUNT", "dataNullable": true, "dataPrecision": "16", @@ -4944,6 +5103,7 @@ "isCalculatedProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "double", "dataTypeTypescript": "number", "inputRule": "" @@ -4973,6 +5133,7 @@ "isCalculatedProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -5002,6 +5163,7 @@ "isCalculatedProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -5026,6 +5188,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -5053,6 +5216,7 @@ "isRequiredProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -5124,6 +5288,7 @@ "isCalculatedProperty": false, "widgetLabel": "Date", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, @@ -5149,13 +5314,14 @@ "isCalculatedProperty": false, "widgetLabel": "Valor", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "date", "dataTypeTypescript": "Date", "isDateType": true, "inputRule": "" }, { - "dataLength": "18", + "dataLength": "16", "dataName": "PAYMENTADJUSTMENT_AMOUNT", "dataNullable": true, "dataPrecision": "16", @@ -5176,6 +5342,7 @@ "isCalculatedProperty": false, "widgetLabel": "Amount", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "double", "dataTypeTypescript": "number", "inputRule": "" @@ -5205,6 +5372,7 @@ "isCalculatedProperty": false, "widgetLabel": "Currency", "widgetDropdownUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -5234,6 +5402,7 @@ "isCalculatedProperty": false, "widgetLabel": "Company", "widgetDropdownUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -5258,6 +5427,7 @@ "isCalculatedProperty": false, "widgetLabel": "Reason", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -5285,6 +5455,7 @@ "isRequiredProperty": false, "widgetLabel": "UUID", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -5317,6 +5488,7 @@ "isCalculatedProperty": false, "widgetLabel": "Id", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -5341,6 +5513,7 @@ "isCalculatedProperty": false, "widgetLabel": "Name", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -5367,6 +5540,7 @@ "isCalculatedProperty": false, "widgetLabel": "Address", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -5393,6 +5567,7 @@ "isCalculatedProperty": false, "widgetLabel": "PostalCode", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -5419,6 +5594,7 @@ "isCalculatedProperty": false, "widgetLabel": "Email", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -5445,6 +5621,7 @@ "isCalculatedProperty": false, "widgetLabel": "Phone", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -5471,6 +5648,7 @@ "isCalculatedProperty": false, "widgetLabel": "Fax", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -5501,6 +5679,7 @@ "isCalculatedProperty": false, "widgetLabel": "Country", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Countries/undefinedService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Countries/undefinedController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -5529,6 +5708,7 @@ "isCalculatedProperty": false, "widgetLabel": "City", "widgetDropdownUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Cities/undefinedService.ts", + "widgetDropdownControllerUrl": "/services/ts/codbex-payments/gen/codbex-payments/api/Cities/undefinedController.ts", "dataTypeJava": "int", "dataTypeTypescript": "number", "inputRule": "" @@ -5553,6 +5733,7 @@ "isCalculatedProperty": false, "widgetLabel": "TIN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, @@ -5579,6 +5760,7 @@ "isCalculatedProperty": false, "widgetLabel": "IBAN", "widgetDropdownUrl": "", + "widgetDropdownControllerUrl": "", "dataTypeJava": "string", "dataTypeTypescript": "string", "minLength": 0, diff --git a/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts b/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentController.ts similarity index 55% rename from codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts rename to codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentController.ts index f5194f7..b5e7705 100644 --- a/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts +++ b/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentController.ts @@ -1,119 +1,145 @@ -import { Controller, Get, Post, Put, Delete, response } from "sdk/http" -import { Extensions } from "sdk/extensions" -import { CustomerPaymentRepository, CustomerPaymentEntityOptions } from "../../dao/CustomerPayment/CustomerPaymentRepository"; -import { user } from "sdk/security" -import { ForbiddenError } from "../utils/ForbiddenError"; -import { ValidationError } from "../utils/ValidationError"; -import { HttpUtils } from "../utils/HttpUtils"; +import { Controller, Get, Post, Put, Delete, Documentation, request, response } from '@aerokit/sdk/http' +import { HttpUtils } from "@aerokit/sdk/http/utils"; +import { ValidationError } from '@aerokit/sdk/http/errors' +import { ForbiddenError } from '@aerokit/sdk/http/errors' +import { user } from '@aerokit/sdk/security' +import { Options } from '@aerokit/sdk/db' +import { Extensions } from "@aerokit/sdk/extensions" +import { Injected, Inject } from '@aerokit/sdk/component' +import { CustomerPaymentRepository } from '../../data/CustomerPayment/CustomerPaymentRepository' +import { CustomerPaymentEntity } from '../../data/CustomerPayment/CustomerPaymentEntity' // custom imports import { NumberGeneratorService } from "/codbex-number-generator/service/generator"; -const validationModules = await Extensions.loadExtensionModules("codbex-payments-CustomerPayment-CustomerPayment", ["validate"]); +const validationModules = await Extensions.loadExtensionModules('codbex-payments-CustomerPayment-CustomerPayment', ['validate']); @Controller -class CustomerPaymentService { +@Documentation('codbex-payments - CustomerPayment Controller') +@Injected() +class CustomerPaymentController { - private readonly repository = new CustomerPaymentRepository(); + @Inject('CustomerPaymentRepository') + private readonly repository!: CustomerPaymentRepository; - @Get("/") - public getAll(_: any, ctx: any) { + @Get('/') + @Documentation('Get All CustomerPayment') + public getAll(_: any, ctx: any): CustomerPaymentEntity[] { try { - this.checkPermissions("read"); - const options: CustomerPaymentEntityOptions = { - $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, - $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined + this.checkPermissions('read'); + const options: Options = { + limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20, + offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0, + language: request.getLocale().slice(0, 2) }; return this.repository.findAll(options); } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Post("/") - public create(entity: any) { + @Post('/') + @Documentation('Create CustomerPayment') + public create(entity: CustomerPaymentEntity): CustomerPaymentEntity { try { - this.checkPermissions("write"); + this.checkPermissions('write'); this.validateEntity(entity); - entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts/" + entity.Id); + entity.Id = this.repository.create(entity) as any; + response.setHeader('Content-Location', '/services/ts/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts/' + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Get("/count") - public count() { + @Get('/count') + @Documentation('Count CustomerPayment') + public count(): { count: number } { try { - this.checkPermissions("read"); + this.checkPermissions('read'); return { count: this.repository.count() }; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Post("/count") - public countWithFilter(filter: any) { + @Post('/count') + @Documentation('Count CustomerPayment with filter') + public countWithFilter(filter: any): { count: number } { try { - this.checkPermissions("read"); + this.checkPermissions('read'); return { count: this.repository.count(filter) }; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Post("/search") - public search(filter: any) { + @Post('/search') + @Documentation('Search CustomerPayment') + public search(filter: any): CustomerPaymentEntity[] { try { - this.checkPermissions("read"); + this.checkPermissions('read'); return this.repository.findAll(filter); } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Get("/:id") - public getById(_: any, ctx: any) { + @Get('/:id') + @Documentation('Get CustomerPayment by id') + public getById(_: any, ctx: any): CustomerPaymentEntity { try { - this.checkPermissions("read"); + this.checkPermissions('read'); const id = parseInt(ctx.pathParameters.id); - const entity = this.repository.findById(id); + const options: Options = { + language: request.getLocale().slice(0, 2) + }; + const entity = this.repository.findById(id, options); if (entity) { return entity; } else { - HttpUtils.sendResponseNotFound("CustomerPayment not found"); + HttpUtils.sendResponseNotFound('CustomerPayment not found'); } } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Put("/:id") - public update(entity: any, ctx: any) { + @Put('/:id') + @Documentation('Update CustomerPayment by id') + public update(entity: CustomerPaymentEntity, ctx: any): CustomerPaymentEntity { try { - this.checkPermissions("write"); - entity.Id = ctx.pathParameters.id; + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); + entity.Id = id; this.validateEntity(entity); this.repository.update(entity); return entity; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Delete("/:id") - public deleteById(_: any, ctx: any) { + @Delete('/:id') + @Documentation('Delete CustomerPayment by id') + public deleteById(_: any, ctx: any): void { try { - this.checkPermissions("write"); - const id = ctx.pathParameters.id; + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); const entity = this.repository.findById(id); if (entity) { this.repository.deleteById(id); HttpUtils.sendResponseNoContent(); } else { - HttpUtils.sendResponseNotFound("CustomerPayment not found"); + HttpUtils.sendResponseNotFound('CustomerPayment not found'); } } catch (error: any) { this.handleError(error); @@ -121,9 +147,9 @@ class CustomerPaymentService { } private handleError(error: any) { - if (error.name === "ForbiddenError") { + if (error.name === 'ForbiddenError') { HttpUtils.sendForbiddenRequest(error.message); - } else if (error.name === "ValidationError") { + } else if (error.name === 'ValidationError') { HttpUtils.sendResponseBadRequest(error.message); } else { HttpUtils.sendInternalServerError(error.message); @@ -131,10 +157,10 @@ class CustomerPaymentService { } private checkPermissions(operationType: string) { - if (operationType === "read" && !(user.isInRole("codbex-payments.CustomerPayment.CustomerPaymentReadOnly") || user.isInRole("codbex-payments.CustomerPayment.CustomerPaymentFullAccess"))) { + if (operationType === 'read' && !(user.isInRole('codbex-payments.CustomerPayment.CustomerPaymentReadOnly') || user.isInRole('codbex-payments.CustomerPayment.CustomerPaymentFullAccess'))) { throw new ForbiddenError(); } - if (operationType === "write" && !user.isInRole("codbex-payments.CustomerPayment.CustomerPaymentFullAccess")) { + if (operationType === 'write' && !user.isInRole('codbex-payments.CustomerPayment.CustomerPaymentFullAccess')) { throw new ForbiddenError(); } } diff --git a/codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentService.ts b/codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentController.ts similarity index 54% rename from codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentService.ts rename to codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentController.ts index 8524faa..8bad28a 100644 --- a/codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentService.ts +++ b/codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentController.ts @@ -1,119 +1,145 @@ -import { Controller, Get, Post, Put, Delete, response } from "sdk/http" -import { Extensions } from "sdk/extensions" -import { EmployeePaymentRepository, EmployeePaymentEntityOptions } from "../../dao/EmployeePayment/EmployeePaymentRepository"; -import { user } from "sdk/security" -import { ForbiddenError } from "../utils/ForbiddenError"; -import { ValidationError } from "../utils/ValidationError"; -import { HttpUtils } from "../utils/HttpUtils"; +import { Controller, Get, Post, Put, Delete, Documentation, request, response } from '@aerokit/sdk/http' +import { HttpUtils } from "@aerokit/sdk/http/utils"; +import { ValidationError } from '@aerokit/sdk/http/errors' +import { ForbiddenError } from '@aerokit/sdk/http/errors' +import { user } from '@aerokit/sdk/security' +import { Options } from '@aerokit/sdk/db' +import { Extensions } from "@aerokit/sdk/extensions" +import { Injected, Inject } from '@aerokit/sdk/component' +import { EmployeePaymentRepository } from '../../data/EmployeePayment/EmployeePaymentRepository' +import { EmployeePaymentEntity } from '../../data/EmployeePayment/EmployeePaymentEntity' // custom imports import { NumberGeneratorService } from "/codbex-number-generator/service/generator"; -const validationModules = await Extensions.loadExtensionModules("codbex-payments-EmployeePayment-EmployeePayment", ["validate"]); +const validationModules = await Extensions.loadExtensionModules('codbex-payments-EmployeePayment-EmployeePayment', ['validate']); @Controller -class EmployeePaymentService { +@Documentation('codbex-payments - EmployeePayment Controller') +@Injected() +class EmployeePaymentController { - private readonly repository = new EmployeePaymentRepository(); + @Inject('EmployeePaymentRepository') + private readonly repository!: EmployeePaymentRepository; - @Get("/") - public getAll(_: any, ctx: any) { + @Get('/') + @Documentation('Get All EmployeePayment') + public getAll(_: any, ctx: any): EmployeePaymentEntity[] { try { - this.checkPermissions("read"); - const options: EmployeePaymentEntityOptions = { - $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, - $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined + this.checkPermissions('read'); + const options: Options = { + limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20, + offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0, + language: request.getLocale().slice(0, 2) }; return this.repository.findAll(options); } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Post("/") - public create(entity: any) { + @Post('/') + @Documentation('Create EmployeePayment') + public create(entity: EmployeePaymentEntity): EmployeePaymentEntity { try { - this.checkPermissions("write"); + this.checkPermissions('write'); this.validateEntity(entity); - entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentService.ts/" + entity.Id); + entity.Id = this.repository.create(entity) as any; + response.setHeader('Content-Location', '/services/ts/codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentService.ts/' + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Get("/count") - public count() { + @Get('/count') + @Documentation('Count EmployeePayment') + public count(): { count: number } { try { - this.checkPermissions("read"); + this.checkPermissions('read'); return { count: this.repository.count() }; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Post("/count") - public countWithFilter(filter: any) { + @Post('/count') + @Documentation('Count EmployeePayment with filter') + public countWithFilter(filter: any): { count: number } { try { - this.checkPermissions("read"); + this.checkPermissions('read'); return { count: this.repository.count(filter) }; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Post("/search") - public search(filter: any) { + @Post('/search') + @Documentation('Search EmployeePayment') + public search(filter: any): EmployeePaymentEntity[] { try { - this.checkPermissions("read"); + this.checkPermissions('read'); return this.repository.findAll(filter); } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Get("/:id") - public getById(_: any, ctx: any) { + @Get('/:id') + @Documentation('Get EmployeePayment by id') + public getById(_: any, ctx: any): EmployeePaymentEntity { try { - this.checkPermissions("read"); + this.checkPermissions('read'); const id = parseInt(ctx.pathParameters.id); - const entity = this.repository.findById(id); + const options: Options = { + language: request.getLocale().slice(0, 2) + }; + const entity = this.repository.findById(id, options); if (entity) { return entity; } else { - HttpUtils.sendResponseNotFound("EmployeePayment not found"); + HttpUtils.sendResponseNotFound('EmployeePayment not found'); } } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Put("/:id") - public update(entity: any, ctx: any) { + @Put('/:id') + @Documentation('Update EmployeePayment by id') + public update(entity: EmployeePaymentEntity, ctx: any): EmployeePaymentEntity { try { - this.checkPermissions("write"); - entity.Id = ctx.pathParameters.id; + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); + entity.Id = id; this.validateEntity(entity); this.repository.update(entity); return entity; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Delete("/:id") - public deleteById(_: any, ctx: any) { + @Delete('/:id') + @Documentation('Delete EmployeePayment by id') + public deleteById(_: any, ctx: any): void { try { - this.checkPermissions("write"); - const id = ctx.pathParameters.id; + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); const entity = this.repository.findById(id); if (entity) { this.repository.deleteById(id); HttpUtils.sendResponseNoContent(); } else { - HttpUtils.sendResponseNotFound("EmployeePayment not found"); + HttpUtils.sendResponseNotFound('EmployeePayment not found'); } } catch (error: any) { this.handleError(error); @@ -121,9 +147,9 @@ class EmployeePaymentService { } private handleError(error: any) { - if (error.name === "ForbiddenError") { + if (error.name === 'ForbiddenError') { HttpUtils.sendForbiddenRequest(error.message); - } else if (error.name === "ValidationError") { + } else if (error.name === 'ValidationError') { HttpUtils.sendResponseBadRequest(error.message); } else { HttpUtils.sendInternalServerError(error.message); @@ -131,10 +157,10 @@ class EmployeePaymentService { } private checkPermissions(operationType: string) { - if (operationType === "read" && !(user.isInRole("codbex-payments.EmployeePayment.EmployeePaymentReadOnly") || user.isInRole("codbex-payments.EmployeePayment.EmployeePaymentFullAccess"))) { + if (operationType === 'read' && !(user.isInRole('codbex-payments.EmployeePayment.EmployeePaymentReadOnly') || user.isInRole('codbex-payments.EmployeePayment.EmployeePaymentFullAccess'))) { throw new ForbiddenError(); } - if (operationType === "write" && !user.isInRole("codbex-payments.EmployeePayment.EmployeePaymentFullAccess")) { + if (operationType === 'write' && !user.isInRole('codbex-payments.EmployeePayment.EmployeePaymentFullAccess')) { throw new ForbiddenError(); } } diff --git a/codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentController.ts b/codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentController.ts new file mode 100644 index 0000000..3ae8393 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentController.ts @@ -0,0 +1,193 @@ +import { Controller, Get, Post, Put, Delete, Documentation, request, response } from '@aerokit/sdk/http' +import { HttpUtils } from "@aerokit/sdk/http/utils"; +import { ValidationError } from '@aerokit/sdk/http/errors' +import { ForbiddenError } from '@aerokit/sdk/http/errors' +import { user } from '@aerokit/sdk/security' +import { Options } from '@aerokit/sdk/db' +import { Extensions } from "@aerokit/sdk/extensions" +import { Injected, Inject } from '@aerokit/sdk/component' +import { PaymentAdjustmentRepository } from '../../data/PaymentAdjustment/PaymentAdjustmentRepository' +import { PaymentAdjustmentEntity } from '../../data/PaymentAdjustment/PaymentAdjustmentEntity' + +const validationModules = await Extensions.loadExtensionModules('codbex-payments-PaymentAdjustment-PaymentAdjustment', ['validate']); + +@Controller +@Documentation('codbex-payments - PaymentAdjustment Controller') +@Injected() +class PaymentAdjustmentController { + + @Inject('PaymentAdjustmentRepository') + private readonly repository!: PaymentAdjustmentRepository; + + @Get('/') + @Documentation('Get All PaymentAdjustment') + public getAll(_: any, ctx: any): PaymentAdjustmentEntity[] { + try { + this.checkPermissions('read'); + const options: Options = { + limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20, + offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0, + language: request.getLocale().slice(0, 2) + }; + + return this.repository.findAll(options); + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Post('/') + @Documentation('Create PaymentAdjustment') + public create(entity: PaymentAdjustmentEntity): PaymentAdjustmentEntity { + try { + this.checkPermissions('write'); + this.validateEntity(entity); + entity.Id = this.repository.create(entity) as any; + response.setHeader('Content-Location', '/services/ts/codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentService.ts/' + entity.Id); + response.setStatus(response.CREATED); + return entity; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Get('/count') + @Documentation('Count PaymentAdjustment') + public count(): { count: number } { + try { + this.checkPermissions('read'); + return { count: this.repository.count() }; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Post('/count') + @Documentation('Count PaymentAdjustment with filter') + public countWithFilter(filter: any): { count: number } { + try { + this.checkPermissions('read'); + return { count: this.repository.count(filter) }; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Post('/search') + @Documentation('Search PaymentAdjustment') + public search(filter: any): PaymentAdjustmentEntity[] { + try { + this.checkPermissions('read'); + return this.repository.findAll(filter); + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Get('/:id') + @Documentation('Get PaymentAdjustment by id') + public getById(_: any, ctx: any): PaymentAdjustmentEntity { + try { + this.checkPermissions('read'); + const id = parseInt(ctx.pathParameters.id); + const options: Options = { + language: request.getLocale().slice(0, 2) + }; + const entity = this.repository.findById(id, options); + if (entity) { + return entity; + } else { + HttpUtils.sendResponseNotFound('PaymentAdjustment not found'); + } + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Put('/:id') + @Documentation('Update PaymentAdjustment by id') + public update(entity: PaymentAdjustmentEntity, ctx: any): PaymentAdjustmentEntity { + try { + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); + entity.Id = id; + this.validateEntity(entity); + this.repository.update(entity); + return entity; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Delete('/:id') + @Documentation('Delete PaymentAdjustment by id') + public deleteById(_: any, ctx: any): void { + try { + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); + const entity = this.repository.findById(id); + if (entity) { + this.repository.deleteById(id); + HttpUtils.sendResponseNoContent(); + } else { + HttpUtils.sendResponseNotFound('PaymentAdjustment not found'); + } + } catch (error: any) { + this.handleError(error); + } + } + + private handleError(error: any) { + if (error.name === 'ForbiddenError') { + HttpUtils.sendForbiddenRequest(error.message); + } else if (error.name === 'ValidationError') { + HttpUtils.sendResponseBadRequest(error.message); + } else { + HttpUtils.sendInternalServerError(error.message); + } + } + + private checkPermissions(operationType: string) { + if (operationType === 'read' && !(user.isInRole('codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly') || user.isInRole('codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess'))) { + throw new ForbiddenError(); + } + if (operationType === 'write' && !user.isInRole('codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess')) { + throw new ForbiddenError(); + } + } + + private validateEntity(entity: any): void { + if (entity.Date === null || entity.Date === undefined) { + throw new ValidationError(`The 'Date' property is required, provide a valid value`); + } + if (entity.Valor === null || entity.Valor === undefined) { + throw new ValidationError(`The 'Valor' property is required, provide a valid value`); + } + if (entity.Amount === null || entity.Amount === undefined) { + throw new ValidationError(`The 'Amount' property is required, provide a valid value`); + } + if (entity.Currency === null || entity.Currency === undefined) { + throw new ValidationError(`The 'Currency' property is required, provide a valid value`); + } + if (entity.Company === null || entity.Company === undefined) { + throw new ValidationError(`The 'Company' property is required, provide a valid value`); + } + if (entity.Reason?.length > 100) { + throw new ValidationError(`The 'Reason' exceeds the maximum length of [100] characters`); + } + if (entity.UUID?.length > 36) { + throw new ValidationError(`The 'UUID' exceeds the maximum length of [36] characters`); + } + for (const next of validationModules) { + next.validate(entity); + } + } + +} diff --git a/codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentService.ts b/codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentService.ts deleted file mode 100644 index a9ea913..0000000 --- a/codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentService.ts +++ /dev/null @@ -1,167 +0,0 @@ -import { Controller, Get, Post, Put, Delete, response } from "sdk/http" -import { Extensions } from "sdk/extensions" -import { PaymentAdjustmentRepository, PaymentAdjustmentEntityOptions } from "../../dao/PaymentAdjustment/PaymentAdjustmentRepository"; -import { user } from "sdk/security" -import { ForbiddenError } from "../utils/ForbiddenError"; -import { ValidationError } from "../utils/ValidationError"; -import { HttpUtils } from "../utils/HttpUtils"; - -const validationModules = await Extensions.loadExtensionModules("codbex-payments-PaymentAdjustment-PaymentAdjustment", ["validate"]); - -@Controller -class PaymentAdjustmentService { - - private readonly repository = new PaymentAdjustmentRepository(); - - @Get("/") - public getAll(_: any, ctx: any) { - try { - this.checkPermissions("read"); - const options: PaymentAdjustmentEntityOptions = { - $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, - $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined - }; - - return this.repository.findAll(options); - } catch (error: any) { - this.handleError(error); - } - } - - @Post("/") - public create(entity: any) { - try { - this.checkPermissions("write"); - this.validateEntity(entity); - entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentService.ts/" + entity.Id); - response.setStatus(response.CREATED); - return entity; - } catch (error: any) { - this.handleError(error); - } - } - - @Get("/count") - public count() { - try { - this.checkPermissions("read"); - return { count: this.repository.count() }; - } catch (error: any) { - this.handleError(error); - } - } - - @Post("/count") - public countWithFilter(filter: any) { - try { - this.checkPermissions("read"); - return { count: this.repository.count(filter) }; - } catch (error: any) { - this.handleError(error); - } - } - - @Post("/search") - public search(filter: any) { - try { - this.checkPermissions("read"); - return this.repository.findAll(filter); - } catch (error: any) { - this.handleError(error); - } - } - - @Get("/:id") - public getById(_: any, ctx: any) { - try { - this.checkPermissions("read"); - const id = parseInt(ctx.pathParameters.id); - const entity = this.repository.findById(id); - if (entity) { - return entity; - } else { - HttpUtils.sendResponseNotFound("PaymentAdjustment not found"); - } - } catch (error: any) { - this.handleError(error); - } - } - - @Put("/:id") - public update(entity: any, ctx: any) { - try { - this.checkPermissions("write"); - entity.Id = ctx.pathParameters.id; - this.validateEntity(entity); - this.repository.update(entity); - return entity; - } catch (error: any) { - this.handleError(error); - } - } - - @Delete("/:id") - public deleteById(_: any, ctx: any) { - try { - this.checkPermissions("write"); - const id = ctx.pathParameters.id; - const entity = this.repository.findById(id); - if (entity) { - this.repository.deleteById(id); - HttpUtils.sendResponseNoContent(); - } else { - HttpUtils.sendResponseNotFound("PaymentAdjustment not found"); - } - } catch (error: any) { - this.handleError(error); - } - } - - private handleError(error: any) { - if (error.name === "ForbiddenError") { - HttpUtils.sendForbiddenRequest(error.message); - } else if (error.name === "ValidationError") { - HttpUtils.sendResponseBadRequest(error.message); - } else { - HttpUtils.sendInternalServerError(error.message); - } - } - - private checkPermissions(operationType: string) { - if (operationType === "read" && !(user.isInRole("codbex-payments.PaymentAdjustment.PaymentAdjustmentReadOnly") || user.isInRole("codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess"))) { - throw new ForbiddenError(); - } - if (operationType === "write" && !user.isInRole("codbex-payments.PaymentAdjustment.PaymentAdjustmentFullAccess")) { - throw new ForbiddenError(); - } - } - - private validateEntity(entity: any): void { - if (entity.Date === null || entity.Date === undefined) { - throw new ValidationError(`The 'Date' property is required, provide a valid value`); - } - if (entity.Valor === null || entity.Valor === undefined) { - throw new ValidationError(`The 'Valor' property is required, provide a valid value`); - } - if (entity.Amount === null || entity.Amount === undefined) { - throw new ValidationError(`The 'Amount' property is required, provide a valid value`); - } - if (entity.Currency === null || entity.Currency === undefined) { - throw new ValidationError(`The 'Currency' property is required, provide a valid value`); - } - if (entity.Company === null || entity.Company === undefined) { - throw new ValidationError(`The 'Company' property is required, provide a valid value`); - } - if (entity.Reason?.length > 100) { - throw new ValidationError(`The 'Reason' exceeds the maximum length of [100] characters`); - } - if (entity.UUID?.length > 36) { - throw new ValidationError(`The 'UUID' exceeds the maximum length of [36] characters`); - } - for (const next of validationModules) { - next.validate(entity); - } - } - -} diff --git a/codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordService.ts b/codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordController.ts similarity index 50% rename from codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordService.ts rename to codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordController.ts index bb5ac4e..8954493 100644 --- a/codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordService.ts +++ b/codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordController.ts @@ -1,117 +1,143 @@ -import { Controller, Get, Post, Put, Delete, response } from "sdk/http" -import { Extensions } from "sdk/extensions" -import { PaymentRecordRepository, PaymentRecordEntityOptions } from "../../dao/PaymentRecord/PaymentRecordRepository"; -import { user } from "sdk/security" -import { ForbiddenError } from "../utils/ForbiddenError"; -import { ValidationError } from "../utils/ValidationError"; -import { HttpUtils } from "../utils/HttpUtils"; - -const validationModules = await Extensions.loadExtensionModules("codbex-payments-PaymentRecord-PaymentRecord", ["validate"]); +import { Controller, Get, Post, Put, Delete, Documentation, request, response } from '@aerokit/sdk/http' +import { HttpUtils } from "@aerokit/sdk/http/utils"; +import { ValidationError } from '@aerokit/sdk/http/errors' +import { ForbiddenError } from '@aerokit/sdk/http/errors' +import { user } from '@aerokit/sdk/security' +import { Options } from '@aerokit/sdk/db' +import { Extensions } from "@aerokit/sdk/extensions" +import { Injected, Inject } from '@aerokit/sdk/component' +import { PaymentRecordRepository } from '../../data/PaymentRecord/PaymentRecordRepository' +import { PaymentRecordEntity } from '../../data/PaymentRecord/PaymentRecordEntity' + +const validationModules = await Extensions.loadExtensionModules('codbex-payments-PaymentRecord-PaymentRecord', ['validate']); @Controller -class PaymentRecordService { +@Documentation('codbex-payments - PaymentRecord Controller') +@Injected() +class PaymentRecordController { - private readonly repository = new PaymentRecordRepository(); + @Inject('PaymentRecordRepository') + private readonly repository!: PaymentRecordRepository; - @Get("/") - public getAll(_: any, ctx: any) { + @Get('/') + @Documentation('Get All PaymentRecord') + public getAll(_: any, ctx: any): PaymentRecordEntity[] { try { - this.checkPermissions("read"); - const options: PaymentRecordEntityOptions = { - $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, - $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined + this.checkPermissions('read'); + const options: Options = { + limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20, + offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0, + language: request.getLocale().slice(0, 2) }; return this.repository.findAll(options); } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Post("/") - public create(entity: any) { + @Post('/') + @Documentation('Create PaymentRecord') + public create(entity: PaymentRecordEntity): PaymentRecordEntity { try { - this.checkPermissions("write"); + this.checkPermissions('write'); this.validateEntity(entity); - entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordService.ts/" + entity.Id); + entity.Id = this.repository.create(entity) as any; + response.setHeader('Content-Location', '/services/ts/codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordService.ts/' + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Get("/count") - public count() { + @Get('/count') + @Documentation('Count PaymentRecord') + public count(): { count: number } { try { - this.checkPermissions("read"); + this.checkPermissions('read'); return { count: this.repository.count() }; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Post("/count") - public countWithFilter(filter: any) { + @Post('/count') + @Documentation('Count PaymentRecord with filter') + public countWithFilter(filter: any): { count: number } { try { - this.checkPermissions("read"); + this.checkPermissions('read'); return { count: this.repository.count(filter) }; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Post("/search") - public search(filter: any) { + @Post('/search') + @Documentation('Search PaymentRecord') + public search(filter: any): PaymentRecordEntity[] { try { - this.checkPermissions("read"); + this.checkPermissions('read'); return this.repository.findAll(filter); } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Get("/:id") - public getById(_: any, ctx: any) { + @Get('/:id') + @Documentation('Get PaymentRecord by id') + public getById(_: any, ctx: any): PaymentRecordEntity { try { - this.checkPermissions("read"); + this.checkPermissions('read'); const id = parseInt(ctx.pathParameters.id); - const entity = this.repository.findById(id); + const options: Options = { + language: request.getLocale().slice(0, 2) + }; + const entity = this.repository.findById(id, options); if (entity) { return entity; } else { - HttpUtils.sendResponseNotFound("PaymentRecord not found"); + HttpUtils.sendResponseNotFound('PaymentRecord not found'); } } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Put("/:id") - public update(entity: any, ctx: any) { + @Put('/:id') + @Documentation('Update PaymentRecord by id') + public update(entity: PaymentRecordEntity, ctx: any): PaymentRecordEntity { try { - this.checkPermissions("write"); - entity.Id = ctx.pathParameters.id; + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); + entity.Id = id; this.validateEntity(entity); this.repository.update(entity); return entity; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Delete("/:id") - public deleteById(_: any, ctx: any) { + @Delete('/:id') + @Documentation('Delete PaymentRecord by id') + public deleteById(_: any, ctx: any): void { try { - this.checkPermissions("write"); - const id = ctx.pathParameters.id; + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); const entity = this.repository.findById(id); if (entity) { this.repository.deleteById(id); HttpUtils.sendResponseNoContent(); } else { - HttpUtils.sendResponseNotFound("PaymentRecord not found"); + HttpUtils.sendResponseNotFound('PaymentRecord not found'); } } catch (error: any) { this.handleError(error); @@ -119,9 +145,9 @@ class PaymentRecordService { } private handleError(error: any) { - if (error.name === "ForbiddenError") { + if (error.name === 'ForbiddenError') { HttpUtils.sendForbiddenRequest(error.message); - } else if (error.name === "ValidationError") { + } else if (error.name === 'ValidationError') { HttpUtils.sendResponseBadRequest(error.message); } else { HttpUtils.sendInternalServerError(error.message); @@ -129,10 +155,10 @@ class PaymentRecordService { } private checkPermissions(operationType: string) { - if (operationType === "read" && !(user.isInRole("codbex-payments.PaymentRecord.PaymentRecordReadOnly") || user.isInRole("codbex-payments.PaymentRecord.PaymentRecordFullAccess"))) { + if (operationType === 'read' && !(user.isInRole('codbex-payments.PaymentRecord.PaymentRecordReadOnly') || user.isInRole('codbex-payments.PaymentRecord.PaymentRecordFullAccess'))) { throw new ForbiddenError(); } - if (operationType === "write" && !user.isInRole("codbex-payments.PaymentRecord.PaymentRecordFullAccess")) { + if (operationType === 'write' && !user.isInRole('codbex-payments.PaymentRecord.PaymentRecordFullAccess')) { throw new ForbiddenError(); } } diff --git a/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts b/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts new file mode 100644 index 0000000..24fecb1 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionController.ts @@ -0,0 +1,175 @@ +import { Controller, Get, Post, Put, Delete, Documentation, request, response } from '@aerokit/sdk/http' +import { HttpUtils } from "@aerokit/sdk/http/utils"; +import { ValidationError } from '@aerokit/sdk/http/errors' +import { ForbiddenError } from '@aerokit/sdk/http/errors' +import { user } from '@aerokit/sdk/security' +import { Options } from '@aerokit/sdk/db' +import { Extensions } from "@aerokit/sdk/extensions" +import { Injected, Inject } from '@aerokit/sdk/component' +import { PaymentRecordDirectionRepository } from '../../data/Settings/PaymentRecordDirectionRepository' +import { PaymentRecordDirectionEntity } from '../../data/Settings/PaymentRecordDirectionEntity' + +const validationModules = await Extensions.loadExtensionModules('codbex-payments-Settings-PaymentRecordDirection', ['validate']); + +@Controller +@Documentation('codbex-payments - PaymentRecordDirection Controller') +@Injected() +class PaymentRecordDirectionController { + + @Inject('PaymentRecordDirectionRepository') + private readonly repository!: PaymentRecordDirectionRepository; + + @Get('/') + @Documentation('Get All PaymentRecordDirection') + public getAll(_: any, ctx: any): PaymentRecordDirectionEntity[] { + try { + this.checkPermissions('read'); + const options: Options = { + limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20, + offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0, + language: request.getLocale().slice(0, 2) + }; + + return this.repository.findAll(options); + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Post('/') + @Documentation('Create PaymentRecordDirection') + public create(entity: PaymentRecordDirectionEntity): PaymentRecordDirectionEntity { + try { + this.checkPermissions('write'); + this.validateEntity(entity); + entity.Id = this.repository.create(entity) as any; + response.setHeader('Content-Location', '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts/' + entity.Id); + response.setStatus(response.CREATED); + return entity; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Get('/count') + @Documentation('Count PaymentRecordDirection') + public count(): { count: number } { + try { + this.checkPermissions('read'); + return { count: this.repository.count() }; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Post('/count') + @Documentation('Count PaymentRecordDirection with filter') + public countWithFilter(filter: any): { count: number } { + try { + this.checkPermissions('read'); + return { count: this.repository.count(filter) }; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Post('/search') + @Documentation('Search PaymentRecordDirection') + public search(filter: any): PaymentRecordDirectionEntity[] { + try { + this.checkPermissions('read'); + return this.repository.findAll(filter); + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Get('/:id') + @Documentation('Get PaymentRecordDirection by id') + public getById(_: any, ctx: any): PaymentRecordDirectionEntity { + try { + this.checkPermissions('read'); + const id = parseInt(ctx.pathParameters.id); + const options: Options = { + language: request.getLocale().slice(0, 2) + }; + const entity = this.repository.findById(id, options); + if (entity) { + return entity; + } else { + HttpUtils.sendResponseNotFound('PaymentRecordDirection not found'); + } + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Put('/:id') + @Documentation('Update PaymentRecordDirection by id') + public update(entity: PaymentRecordDirectionEntity, ctx: any): PaymentRecordDirectionEntity { + try { + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); + entity.Id = id; + this.validateEntity(entity); + this.repository.update(entity); + return entity; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Delete('/:id') + @Documentation('Delete PaymentRecordDirection by id') + public deleteById(_: any, ctx: any): void { + try { + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); + const entity = this.repository.findById(id); + if (entity) { + this.repository.deleteById(id); + HttpUtils.sendResponseNoContent(); + } else { + HttpUtils.sendResponseNotFound('PaymentRecordDirection not found'); + } + } catch (error: any) { + this.handleError(error); + } + } + + private handleError(error: any) { + if (error.name === 'ForbiddenError') { + HttpUtils.sendForbiddenRequest(error.message); + } else if (error.name === 'ValidationError') { + HttpUtils.sendResponseBadRequest(error.message); + } else { + HttpUtils.sendInternalServerError(error.message); + } + } + + private checkPermissions(operationType: string) { + if (operationType === 'read' && !(user.isInRole('codbex-payments.Settings.PaymentRecordDirectionReadOnly') || user.isInRole('codbex-payments.Settings.PaymentRecordDirectionFullAccess'))) { + throw new ForbiddenError(); + } + if (operationType === 'write' && !user.isInRole('codbex-payments.Settings.PaymentRecordDirectionFullAccess')) { + throw new ForbiddenError(); + } + } + + private validateEntity(entity: any): void { + if (entity.Name?.length > 20) { + throw new ValidationError(`The 'Name' exceeds the maximum length of [20] characters`); + } + for (const next of validationModules) { + next.validate(entity); + } + } + +} diff --git a/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts b/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts deleted file mode 100644 index 6c3ee0c..0000000 --- a/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts +++ /dev/null @@ -1,149 +0,0 @@ -import { Controller, Get, Post, Put, Delete, response } from "sdk/http" -import { Extensions } from "sdk/extensions" -import { PaymentRecordDirectionRepository, PaymentRecordDirectionEntityOptions } from "../../dao/Settings/PaymentRecordDirectionRepository"; -import { user } from "sdk/security" -import { ForbiddenError } from "../utils/ForbiddenError"; -import { ValidationError } from "../utils/ValidationError"; -import { HttpUtils } from "../utils/HttpUtils"; - -const validationModules = await Extensions.loadExtensionModules("codbex-payments-Settings-PaymentRecordDirection", ["validate"]); - -@Controller -class PaymentRecordDirectionService { - - private readonly repository = new PaymentRecordDirectionRepository(); - - @Get("/") - public getAll(_: any, ctx: any) { - try { - this.checkPermissions("read"); - const options: PaymentRecordDirectionEntityOptions = { - $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, - $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined - }; - - return this.repository.findAll(options); - } catch (error: any) { - this.handleError(error); - } - } - - @Post("/") - public create(entity: any) { - try { - this.checkPermissions("write"); - this.validateEntity(entity); - entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts/" + entity.Id); - response.setStatus(response.CREATED); - return entity; - } catch (error: any) { - this.handleError(error); - } - } - - @Get("/count") - public count() { - try { - this.checkPermissions("read"); - return { count: this.repository.count() }; - } catch (error: any) { - this.handleError(error); - } - } - - @Post("/count") - public countWithFilter(filter: any) { - try { - this.checkPermissions("read"); - return { count: this.repository.count(filter) }; - } catch (error: any) { - this.handleError(error); - } - } - - @Post("/search") - public search(filter: any) { - try { - this.checkPermissions("read"); - return this.repository.findAll(filter); - } catch (error: any) { - this.handleError(error); - } - } - - @Get("/:id") - public getById(_: any, ctx: any) { - try { - this.checkPermissions("read"); - const id = parseInt(ctx.pathParameters.id); - const entity = this.repository.findById(id); - if (entity) { - return entity; - } else { - HttpUtils.sendResponseNotFound("PaymentRecordDirection not found"); - } - } catch (error: any) { - this.handleError(error); - } - } - - @Put("/:id") - public update(entity: any, ctx: any) { - try { - this.checkPermissions("write"); - entity.Id = ctx.pathParameters.id; - this.validateEntity(entity); - this.repository.update(entity); - return entity; - } catch (error: any) { - this.handleError(error); - } - } - - @Delete("/:id") - public deleteById(_: any, ctx: any) { - try { - this.checkPermissions("write"); - const id = ctx.pathParameters.id; - const entity = this.repository.findById(id); - if (entity) { - this.repository.deleteById(id); - HttpUtils.sendResponseNoContent(); - } else { - HttpUtils.sendResponseNotFound("PaymentRecordDirection not found"); - } - } catch (error: any) { - this.handleError(error); - } - } - - private handleError(error: any) { - if (error.name === "ForbiddenError") { - HttpUtils.sendForbiddenRequest(error.message); - } else if (error.name === "ValidationError") { - HttpUtils.sendResponseBadRequest(error.message); - } else { - HttpUtils.sendInternalServerError(error.message); - } - } - - private checkPermissions(operationType: string) { - if (operationType === "read" && !(user.isInRole("codbex-payments.Settings.PaymentRecordDirectionReadOnly") || user.isInRole("codbex-payments.Settings.PaymentRecordDirectionFullAccess"))) { - throw new ForbiddenError(); - } - if (operationType === "write" && !user.isInRole("codbex-payments.Settings.PaymentRecordDirectionFullAccess")) { - throw new ForbiddenError(); - } - } - - private validateEntity(entity: any): void { - if (entity.Name?.length > 20) { - throw new ValidationError(`The 'Name' exceeds the maximum length of [20] characters`); - } - for (const next of validationModules) { - next.validate(entity); - } - } - -} diff --git a/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts b/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts new file mode 100644 index 0000000..6b88c85 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusController.ts @@ -0,0 +1,175 @@ +import { Controller, Get, Post, Put, Delete, Documentation, request, response } from '@aerokit/sdk/http' +import { HttpUtils } from "@aerokit/sdk/http/utils"; +import { ValidationError } from '@aerokit/sdk/http/errors' +import { ForbiddenError } from '@aerokit/sdk/http/errors' +import { user } from '@aerokit/sdk/security' +import { Options } from '@aerokit/sdk/db' +import { Extensions } from "@aerokit/sdk/extensions" +import { Injected, Inject } from '@aerokit/sdk/component' +import { PaymentStatusRepository } from '../../data/Settings/PaymentStatusRepository' +import { PaymentStatusEntity } from '../../data/Settings/PaymentStatusEntity' + +const validationModules = await Extensions.loadExtensionModules('codbex-payments-Settings-PaymentStatus', ['validate']); + +@Controller +@Documentation('codbex-payments - PaymentStatus Controller') +@Injected() +class PaymentStatusController { + + @Inject('PaymentStatusRepository') + private readonly repository!: PaymentStatusRepository; + + @Get('/') + @Documentation('Get All PaymentStatus') + public getAll(_: any, ctx: any): PaymentStatusEntity[] { + try { + this.checkPermissions('read'); + const options: Options = { + limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20, + offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0, + language: request.getLocale().slice(0, 2) + }; + + return this.repository.findAll(options); + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Post('/') + @Documentation('Create PaymentStatus') + public create(entity: PaymentStatusEntity): PaymentStatusEntity { + try { + this.checkPermissions('write'); + this.validateEntity(entity); + entity.Id = this.repository.create(entity) as any; + response.setHeader('Content-Location', '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts/' + entity.Id); + response.setStatus(response.CREATED); + return entity; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Get('/count') + @Documentation('Count PaymentStatus') + public count(): { count: number } { + try { + this.checkPermissions('read'); + return { count: this.repository.count() }; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Post('/count') + @Documentation('Count PaymentStatus with filter') + public countWithFilter(filter: any): { count: number } { + try { + this.checkPermissions('read'); + return { count: this.repository.count(filter) }; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Post('/search') + @Documentation('Search PaymentStatus') + public search(filter: any): PaymentStatusEntity[] { + try { + this.checkPermissions('read'); + return this.repository.findAll(filter); + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Get('/:id') + @Documentation('Get PaymentStatus by id') + public getById(_: any, ctx: any): PaymentStatusEntity { + try { + this.checkPermissions('read'); + const id = parseInt(ctx.pathParameters.id); + const options: Options = { + language: request.getLocale().slice(0, 2) + }; + const entity = this.repository.findById(id, options); + if (entity) { + return entity; + } else { + HttpUtils.sendResponseNotFound('PaymentStatus not found'); + } + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Put('/:id') + @Documentation('Update PaymentStatus by id') + public update(entity: PaymentStatusEntity, ctx: any): PaymentStatusEntity { + try { + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); + entity.Id = id; + this.validateEntity(entity); + this.repository.update(entity); + return entity; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Delete('/:id') + @Documentation('Delete PaymentStatus by id') + public deleteById(_: any, ctx: any): void { + try { + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); + const entity = this.repository.findById(id); + if (entity) { + this.repository.deleteById(id); + HttpUtils.sendResponseNoContent(); + } else { + HttpUtils.sendResponseNotFound('PaymentStatus not found'); + } + } catch (error: any) { + this.handleError(error); + } + } + + private handleError(error: any) { + if (error.name === 'ForbiddenError') { + HttpUtils.sendForbiddenRequest(error.message); + } else if (error.name === 'ValidationError') { + HttpUtils.sendResponseBadRequest(error.message); + } else { + HttpUtils.sendInternalServerError(error.message); + } + } + + private checkPermissions(operationType: string) { + if (operationType === 'read' && !(user.isInRole('codbex-payments.Settings.PaymentStatusReadOnly') || user.isInRole('codbex-payments.Settings.PaymentStatusFullAccess'))) { + throw new ForbiddenError(); + } + if (operationType === 'write' && !user.isInRole('codbex-payments.Settings.PaymentStatusFullAccess')) { + throw new ForbiddenError(); + } + } + + private validateEntity(entity: any): void { + if (entity.Name?.length > 20) { + throw new ValidationError(`The 'Name' exceeds the maximum length of [20] characters`); + } + for (const next of validationModules) { + next.validate(entity); + } + } + +} diff --git a/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts b/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts deleted file mode 100644 index 13b4f48..0000000 --- a/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts +++ /dev/null @@ -1,149 +0,0 @@ -import { Controller, Get, Post, Put, Delete, response } from "sdk/http" -import { Extensions } from "sdk/extensions" -import { PaymentStatusRepository, PaymentStatusEntityOptions } from "../../dao/Settings/PaymentStatusRepository"; -import { user } from "sdk/security" -import { ForbiddenError } from "../utils/ForbiddenError"; -import { ValidationError } from "../utils/ValidationError"; -import { HttpUtils } from "../utils/HttpUtils"; - -const validationModules = await Extensions.loadExtensionModules("codbex-payments-Settings-PaymentStatus", ["validate"]); - -@Controller -class PaymentStatusService { - - private readonly repository = new PaymentStatusRepository(); - - @Get("/") - public getAll(_: any, ctx: any) { - try { - this.checkPermissions("read"); - const options: PaymentStatusEntityOptions = { - $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, - $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined - }; - - return this.repository.findAll(options); - } catch (error: any) { - this.handleError(error); - } - } - - @Post("/") - public create(entity: any) { - try { - this.checkPermissions("write"); - this.validateEntity(entity); - entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts/" + entity.Id); - response.setStatus(response.CREATED); - return entity; - } catch (error: any) { - this.handleError(error); - } - } - - @Get("/count") - public count() { - try { - this.checkPermissions("read"); - return { count: this.repository.count() }; - } catch (error: any) { - this.handleError(error); - } - } - - @Post("/count") - public countWithFilter(filter: any) { - try { - this.checkPermissions("read"); - return { count: this.repository.count(filter) }; - } catch (error: any) { - this.handleError(error); - } - } - - @Post("/search") - public search(filter: any) { - try { - this.checkPermissions("read"); - return this.repository.findAll(filter); - } catch (error: any) { - this.handleError(error); - } - } - - @Get("/:id") - public getById(_: any, ctx: any) { - try { - this.checkPermissions("read"); - const id = parseInt(ctx.pathParameters.id); - const entity = this.repository.findById(id); - if (entity) { - return entity; - } else { - HttpUtils.sendResponseNotFound("PaymentStatus not found"); - } - } catch (error: any) { - this.handleError(error); - } - } - - @Put("/:id") - public update(entity: any, ctx: any) { - try { - this.checkPermissions("write"); - entity.Id = ctx.pathParameters.id; - this.validateEntity(entity); - this.repository.update(entity); - return entity; - } catch (error: any) { - this.handleError(error); - } - } - - @Delete("/:id") - public deleteById(_: any, ctx: any) { - try { - this.checkPermissions("write"); - const id = ctx.pathParameters.id; - const entity = this.repository.findById(id); - if (entity) { - this.repository.deleteById(id); - HttpUtils.sendResponseNoContent(); - } else { - HttpUtils.sendResponseNotFound("PaymentStatus not found"); - } - } catch (error: any) { - this.handleError(error); - } - } - - private handleError(error: any) { - if (error.name === "ForbiddenError") { - HttpUtils.sendForbiddenRequest(error.message); - } else if (error.name === "ValidationError") { - HttpUtils.sendResponseBadRequest(error.message); - } else { - HttpUtils.sendInternalServerError(error.message); - } - } - - private checkPermissions(operationType: string) { - if (operationType === "read" && !(user.isInRole("codbex-payments.Settings.PaymentStatusReadOnly") || user.isInRole("codbex-payments.Settings.PaymentStatusFullAccess"))) { - throw new ForbiddenError(); - } - if (operationType === "write" && !user.isInRole("codbex-payments.Settings.PaymentStatusFullAccess")) { - throw new ForbiddenError(); - } - } - - private validateEntity(entity: any): void { - if (entity.Name?.length > 20) { - throw new ValidationError(`The 'Name' exceeds the maximum length of [20] characters`); - } - for (const next of validationModules) { - next.validate(entity); - } - } - -} diff --git a/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts b/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts new file mode 100644 index 0000000..c5d8135 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeController.ts @@ -0,0 +1,175 @@ +import { Controller, Get, Post, Put, Delete, Documentation, request, response } from '@aerokit/sdk/http' +import { HttpUtils } from "@aerokit/sdk/http/utils"; +import { ValidationError } from '@aerokit/sdk/http/errors' +import { ForbiddenError } from '@aerokit/sdk/http/errors' +import { user } from '@aerokit/sdk/security' +import { Options } from '@aerokit/sdk/db' +import { Extensions } from "@aerokit/sdk/extensions" +import { Injected, Inject } from '@aerokit/sdk/component' +import { PaymentTypeRepository } from '../../data/Settings/PaymentTypeRepository' +import { PaymentTypeEntity } from '../../data/Settings/PaymentTypeEntity' + +const validationModules = await Extensions.loadExtensionModules('codbex-payments-Settings-PaymentType', ['validate']); + +@Controller +@Documentation('codbex-payments - PaymentType Controller') +@Injected() +class PaymentTypeController { + + @Inject('PaymentTypeRepository') + private readonly repository!: PaymentTypeRepository; + + @Get('/') + @Documentation('Get All PaymentType') + public getAll(_: any, ctx: any): PaymentTypeEntity[] { + try { + this.checkPermissions('read'); + const options: Options = { + limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20, + offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0, + language: request.getLocale().slice(0, 2) + }; + + return this.repository.findAll(options); + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Post('/') + @Documentation('Create PaymentType') + public create(entity: PaymentTypeEntity): PaymentTypeEntity { + try { + this.checkPermissions('write'); + this.validateEntity(entity); + entity.Id = this.repository.create(entity) as any; + response.setHeader('Content-Location', '/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts/' + entity.Id); + response.setStatus(response.CREATED); + return entity; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Get('/count') + @Documentation('Count PaymentType') + public count(): { count: number } { + try { + this.checkPermissions('read'); + return { count: this.repository.count() }; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Post('/count') + @Documentation('Count PaymentType with filter') + public countWithFilter(filter: any): { count: number } { + try { + this.checkPermissions('read'); + return { count: this.repository.count(filter) }; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Post('/search') + @Documentation('Search PaymentType') + public search(filter: any): PaymentTypeEntity[] { + try { + this.checkPermissions('read'); + return this.repository.findAll(filter); + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Get('/:id') + @Documentation('Get PaymentType by id') + public getById(_: any, ctx: any): PaymentTypeEntity { + try { + this.checkPermissions('read'); + const id = parseInt(ctx.pathParameters.id); + const options: Options = { + language: request.getLocale().slice(0, 2) + }; + const entity = this.repository.findById(id, options); + if (entity) { + return entity; + } else { + HttpUtils.sendResponseNotFound('PaymentType not found'); + } + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Put('/:id') + @Documentation('Update PaymentType by id') + public update(entity: PaymentTypeEntity, ctx: any): PaymentTypeEntity { + try { + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); + entity.Id = id; + this.validateEntity(entity); + this.repository.update(entity); + return entity; + } catch (error: any) { + this.handleError(error); + } + return undefined as any; + } + + @Delete('/:id') + @Documentation('Delete PaymentType by id') + public deleteById(_: any, ctx: any): void { + try { + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); + const entity = this.repository.findById(id); + if (entity) { + this.repository.deleteById(id); + HttpUtils.sendResponseNoContent(); + } else { + HttpUtils.sendResponseNotFound('PaymentType not found'); + } + } catch (error: any) { + this.handleError(error); + } + } + + private handleError(error: any) { + if (error.name === 'ForbiddenError') { + HttpUtils.sendForbiddenRequest(error.message); + } else if (error.name === 'ValidationError') { + HttpUtils.sendResponseBadRequest(error.message); + } else { + HttpUtils.sendInternalServerError(error.message); + } + } + + private checkPermissions(operationType: string) { + if (operationType === 'read' && !(user.isInRole('codbex-payments.Settings.PaymentTypeReadOnly') || user.isInRole('codbex-payments.Settings.PaymentTypeFullAccess'))) { + throw new ForbiddenError(); + } + if (operationType === 'write' && !user.isInRole('codbex-payments.Settings.PaymentTypeFullAccess')) { + throw new ForbiddenError(); + } + } + + private validateEntity(entity: any): void { + if (entity.Name?.length > 20) { + throw new ValidationError(`The 'Name' exceeds the maximum length of [20] characters`); + } + for (const next of validationModules) { + next.validate(entity); + } + } + +} diff --git a/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts b/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts deleted file mode 100644 index dd2bcda..0000000 --- a/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts +++ /dev/null @@ -1,149 +0,0 @@ -import { Controller, Get, Post, Put, Delete, response } from "sdk/http" -import { Extensions } from "sdk/extensions" -import { PaymentTypeRepository, PaymentTypeEntityOptions } from "../../dao/Settings/PaymentTypeRepository"; -import { user } from "sdk/security" -import { ForbiddenError } from "../utils/ForbiddenError"; -import { ValidationError } from "../utils/ValidationError"; -import { HttpUtils } from "../utils/HttpUtils"; - -const validationModules = await Extensions.loadExtensionModules("codbex-payments-Settings-PaymentType", ["validate"]); - -@Controller -class PaymentTypeService { - - private readonly repository = new PaymentTypeRepository(); - - @Get("/") - public getAll(_: any, ctx: any) { - try { - this.checkPermissions("read"); - const options: PaymentTypeEntityOptions = { - $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, - $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined - }; - - return this.repository.findAll(options); - } catch (error: any) { - this.handleError(error); - } - } - - @Post("/") - public create(entity: any) { - try { - this.checkPermissions("write"); - this.validateEntity(entity); - entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts/" + entity.Id); - response.setStatus(response.CREATED); - return entity; - } catch (error: any) { - this.handleError(error); - } - } - - @Get("/count") - public count() { - try { - this.checkPermissions("read"); - return { count: this.repository.count() }; - } catch (error: any) { - this.handleError(error); - } - } - - @Post("/count") - public countWithFilter(filter: any) { - try { - this.checkPermissions("read"); - return { count: this.repository.count(filter) }; - } catch (error: any) { - this.handleError(error); - } - } - - @Post("/search") - public search(filter: any) { - try { - this.checkPermissions("read"); - return this.repository.findAll(filter); - } catch (error: any) { - this.handleError(error); - } - } - - @Get("/:id") - public getById(_: any, ctx: any) { - try { - this.checkPermissions("read"); - const id = parseInt(ctx.pathParameters.id); - const entity = this.repository.findById(id); - if (entity) { - return entity; - } else { - HttpUtils.sendResponseNotFound("PaymentType not found"); - } - } catch (error: any) { - this.handleError(error); - } - } - - @Put("/:id") - public update(entity: any, ctx: any) { - try { - this.checkPermissions("write"); - entity.Id = ctx.pathParameters.id; - this.validateEntity(entity); - this.repository.update(entity); - return entity; - } catch (error: any) { - this.handleError(error); - } - } - - @Delete("/:id") - public deleteById(_: any, ctx: any) { - try { - this.checkPermissions("write"); - const id = ctx.pathParameters.id; - const entity = this.repository.findById(id); - if (entity) { - this.repository.deleteById(id); - HttpUtils.sendResponseNoContent(); - } else { - HttpUtils.sendResponseNotFound("PaymentType not found"); - } - } catch (error: any) { - this.handleError(error); - } - } - - private handleError(error: any) { - if (error.name === "ForbiddenError") { - HttpUtils.sendForbiddenRequest(error.message); - } else if (error.name === "ValidationError") { - HttpUtils.sendResponseBadRequest(error.message); - } else { - HttpUtils.sendInternalServerError(error.message); - } - } - - private checkPermissions(operationType: string) { - if (operationType === "read" && !(user.isInRole("codbex-payments.Settings.PaymentTypeReadOnly") || user.isInRole("codbex-payments.Settings.PaymentTypeFullAccess"))) { - throw new ForbiddenError(); - } - if (operationType === "write" && !user.isInRole("codbex-payments.Settings.PaymentTypeFullAccess")) { - throw new ForbiddenError(); - } - } - - private validateEntity(entity: any): void { - if (entity.Name?.length > 20) { - throw new ValidationError(`The 'Name' exceeds the maximum length of [20] characters`); - } - for (const next of validationModules) { - next.validate(entity); - } - } - -} diff --git a/codbex-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentService.ts b/codbex-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentController.ts similarity index 54% rename from codbex-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentService.ts rename to codbex-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentController.ts index e8b355f..069d5b4 100644 --- a/codbex-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentService.ts +++ b/codbex-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentController.ts @@ -1,119 +1,145 @@ -import { Controller, Get, Post, Put, Delete, response } from "sdk/http" -import { Extensions } from "sdk/extensions" -import { SupplierPaymentRepository, SupplierPaymentEntityOptions } from "../../dao/SupplierPayment/SupplierPaymentRepository"; -import { user } from "sdk/security" -import { ForbiddenError } from "../utils/ForbiddenError"; -import { ValidationError } from "../utils/ValidationError"; -import { HttpUtils } from "../utils/HttpUtils"; +import { Controller, Get, Post, Put, Delete, Documentation, request, response } from '@aerokit/sdk/http' +import { HttpUtils } from "@aerokit/sdk/http/utils"; +import { ValidationError } from '@aerokit/sdk/http/errors' +import { ForbiddenError } from '@aerokit/sdk/http/errors' +import { user } from '@aerokit/sdk/security' +import { Options } from '@aerokit/sdk/db' +import { Extensions } from "@aerokit/sdk/extensions" +import { Injected, Inject } from '@aerokit/sdk/component' +import { SupplierPaymentRepository } from '../../data/SupplierPayment/SupplierPaymentRepository' +import { SupplierPaymentEntity } from '../../data/SupplierPayment/SupplierPaymentEntity' // custom imports import { NumberGeneratorService } from "/codbex-number-generator/service/generator"; -const validationModules = await Extensions.loadExtensionModules("codbex-payments-SupplierPayment-SupplierPayment", ["validate"]); +const validationModules = await Extensions.loadExtensionModules('codbex-payments-SupplierPayment-SupplierPayment', ['validate']); @Controller -class SupplierPaymentService { +@Documentation('codbex-payments - SupplierPayment Controller') +@Injected() +class SupplierPaymentController { - private readonly repository = new SupplierPaymentRepository(); + @Inject('SupplierPaymentRepository') + private readonly repository!: SupplierPaymentRepository; - @Get("/") - public getAll(_: any, ctx: any) { + @Get('/') + @Documentation('Get All SupplierPayment') + public getAll(_: any, ctx: any): SupplierPaymentEntity[] { try { - this.checkPermissions("read"); - const options: SupplierPaymentEntityOptions = { - $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, - $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined + this.checkPermissions('read'); + const options: Options = { + limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20, + offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0, + language: request.getLocale().slice(0, 2) }; return this.repository.findAll(options); } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Post("/") - public create(entity: any) { + @Post('/') + @Documentation('Create SupplierPayment') + public create(entity: SupplierPaymentEntity): SupplierPaymentEntity { try { - this.checkPermissions("write"); + this.checkPermissions('write'); this.validateEntity(entity); - entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/codbex-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentService.ts/" + entity.Id); + entity.Id = this.repository.create(entity) as any; + response.setHeader('Content-Location', '/services/ts/codbex-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentService.ts/' + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Get("/count") - public count() { + @Get('/count') + @Documentation('Count SupplierPayment') + public count(): { count: number } { try { - this.checkPermissions("read"); + this.checkPermissions('read'); return { count: this.repository.count() }; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Post("/count") - public countWithFilter(filter: any) { + @Post('/count') + @Documentation('Count SupplierPayment with filter') + public countWithFilter(filter: any): { count: number } { try { - this.checkPermissions("read"); + this.checkPermissions('read'); return { count: this.repository.count(filter) }; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Post("/search") - public search(filter: any) { + @Post('/search') + @Documentation('Search SupplierPayment') + public search(filter: any): SupplierPaymentEntity[] { try { - this.checkPermissions("read"); + this.checkPermissions('read'); return this.repository.findAll(filter); } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Get("/:id") - public getById(_: any, ctx: any) { + @Get('/:id') + @Documentation('Get SupplierPayment by id') + public getById(_: any, ctx: any): SupplierPaymentEntity { try { - this.checkPermissions("read"); + this.checkPermissions('read'); const id = parseInt(ctx.pathParameters.id); - const entity = this.repository.findById(id); + const options: Options = { + language: request.getLocale().slice(0, 2) + }; + const entity = this.repository.findById(id, options); if (entity) { return entity; } else { - HttpUtils.sendResponseNotFound("SupplierPayment not found"); + HttpUtils.sendResponseNotFound('SupplierPayment not found'); } } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Put("/:id") - public update(entity: any, ctx: any) { + @Put('/:id') + @Documentation('Update SupplierPayment by id') + public update(entity: SupplierPaymentEntity, ctx: any): SupplierPaymentEntity { try { - this.checkPermissions("write"); - entity.Id = ctx.pathParameters.id; + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); + entity.Id = id; this.validateEntity(entity); this.repository.update(entity); return entity; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Delete("/:id") - public deleteById(_: any, ctx: any) { + @Delete('/:id') + @Documentation('Delete SupplierPayment by id') + public deleteById(_: any, ctx: any): void { try { - this.checkPermissions("write"); - const id = ctx.pathParameters.id; + this.checkPermissions('write'); + const id = parseInt(ctx.pathParameters.id); const entity = this.repository.findById(id); if (entity) { this.repository.deleteById(id); HttpUtils.sendResponseNoContent(); } else { - HttpUtils.sendResponseNotFound("SupplierPayment not found"); + HttpUtils.sendResponseNotFound('SupplierPayment not found'); } } catch (error: any) { this.handleError(error); @@ -121,9 +147,9 @@ class SupplierPaymentService { } private handleError(error: any) { - if (error.name === "ForbiddenError") { + if (error.name === 'ForbiddenError') { HttpUtils.sendForbiddenRequest(error.message); - } else if (error.name === "ValidationError") { + } else if (error.name === 'ValidationError') { HttpUtils.sendResponseBadRequest(error.message); } else { HttpUtils.sendInternalServerError(error.message); @@ -131,10 +157,10 @@ class SupplierPaymentService { } private checkPermissions(operationType: string) { - if (operationType === "read" && !(user.isInRole("codbex-payments.SupplierPayment.SupplierPaymentReadOnly") || user.isInRole("codbex-payments.SupplierPayment.SupplierPaymentFullAccess"))) { + if (operationType === 'read' && !(user.isInRole('codbex-payments.SupplierPayment.SupplierPaymentReadOnly') || user.isInRole('codbex-payments.SupplierPayment.SupplierPaymentFullAccess'))) { throw new ForbiddenError(); } - if (operationType === "write" && !user.isInRole("codbex-payments.SupplierPayment.SupplierPaymentFullAccess")) { + if (operationType === 'write' && !user.isInRole('codbex-payments.SupplierPayment.SupplierPaymentFullAccess')) { throw new ForbiddenError(); } } diff --git a/codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts b/codbex-payments/gen/codbex-payments/api/Suppliers/SupplierController.ts similarity index 59% rename from codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts rename to codbex-payments/gen/codbex-payments/api/Suppliers/SupplierController.ts index baca253..cf31aed 100644 --- a/codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts +++ b/codbex-payments/gen/codbex-payments/api/Suppliers/SupplierController.ts @@ -1,107 +1,133 @@ -import { Controller, Get, Post, Put, Delete, response } from "sdk/http" -import { Extensions } from "sdk/extensions" -import { SupplierRepository, SupplierEntityOptions } from "../../dao/Suppliers/SupplierRepository"; -import { ValidationError } from "../utils/ValidationError"; -import { HttpUtils } from "../utils/HttpUtils"; +import { Controller, Get, Post, Put, Delete, Documentation, request, response } from '@aerokit/sdk/http' +import { HttpUtils } from "@aerokit/sdk/http/utils"; +import { ValidationError } from '@aerokit/sdk/http/errors' +import { Options } from '@aerokit/sdk/db' +import { Extensions } from "@aerokit/sdk/extensions" +import { Injected, Inject } from '@aerokit/sdk/component' +import { SupplierRepository } from '../../data/Suppliers/SupplierRepository' +import { SupplierEntity } from '../../data/Suppliers/SupplierEntity' -const validationModules = await Extensions.loadExtensionModules("codbex-payments-Suppliers-Supplier", ["validate"]); +const validationModules = await Extensions.loadExtensionModules('codbex-payments-Suppliers-Supplier', ['validate']); @Controller -class SupplierService { +@Documentation('codbex-payments - Supplier Controller') +@Injected() +class SupplierController { - private readonly repository = new SupplierRepository(); + @Inject('SupplierRepository') + private readonly repository!: SupplierRepository; - @Get("/") - public getAll(_: any, ctx: any) { + @Get('/') + @Documentation('Get All Supplier') + public getAll(_: any, ctx: any): SupplierEntity[] { try { - const options: SupplierEntityOptions = { - $limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : undefined, - $offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : undefined + const options: Options = { + limit: ctx.queryParameters["$limit"] ? parseInt(ctx.queryParameters["$limit"]) : 20, + offset: ctx.queryParameters["$offset"] ? parseInt(ctx.queryParameters["$offset"]) : 0, + language: request.getLocale().slice(0, 2) }; return this.repository.findAll(options); } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Post("/") - public create(entity: any) { + @Post('/') + @Documentation('Create Supplier') + public create(entity: SupplierEntity): SupplierEntity { try { this.validateEntity(entity); - entity.Id = this.repository.create(entity); - response.setHeader("Content-Location", "/services/ts/codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts/" + entity.Id); + entity.Id = this.repository.create(entity) as any; + response.setHeader('Content-Location', '/services/ts/codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts/' + entity.Id); response.setStatus(response.CREATED); return entity; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Get("/count") - public count() { + @Get('/count') + @Documentation('Count Supplier') + public count(): { count: number } { try { return { count: this.repository.count() }; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Post("/count") - public countWithFilter(filter: any) { + @Post('/count') + @Documentation('Count Supplier with filter') + public countWithFilter(filter: any): { count: number } { try { return { count: this.repository.count(filter) }; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Post("/search") - public search(filter: any) { + @Post('/search') + @Documentation('Search Supplier') + public search(filter: any): SupplierEntity[] { try { return this.repository.findAll(filter); } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Get("/:id") - public getById(_: any, ctx: any) { + @Get('/:id') + @Documentation('Get Supplier by id') + public getById(_: any, ctx: any): SupplierEntity { try { const id = parseInt(ctx.pathParameters.id); - const entity = this.repository.findById(id); + const options: Options = { + language: request.getLocale().slice(0, 2) + }; + const entity = this.repository.findById(id, options); if (entity) { return entity; } else { - HttpUtils.sendResponseNotFound("Supplier not found"); + HttpUtils.sendResponseNotFound('Supplier not found'); } } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Put("/:id") - public update(entity: any, ctx: any) { + @Put('/:id') + @Documentation('Update Supplier by id') + public update(entity: SupplierEntity, ctx: any): SupplierEntity { try { - entity.Id = ctx.pathParameters.id; + const id = parseInt(ctx.pathParameters.id); + entity.Id = id; this.validateEntity(entity); this.repository.update(entity); return entity; } catch (error: any) { this.handleError(error); } + return undefined as any; } - @Delete("/:id") - public deleteById(_: any, ctx: any) { + @Delete('/:id') + @Documentation('Delete Supplier by id') + public deleteById(_: any, ctx: any): void { try { - const id = ctx.pathParameters.id; + const id = parseInt(ctx.pathParameters.id); const entity = this.repository.findById(id); if (entity) { this.repository.deleteById(id); HttpUtils.sendResponseNoContent(); } else { - HttpUtils.sendResponseNotFound("Supplier not found"); + HttpUtils.sendResponseNotFound('Supplier not found'); } } catch (error: any) { this.handleError(error); @@ -109,9 +135,9 @@ class SupplierService { } private handleError(error: any) { - if (error.name === "ForbiddenError") { + if (error.name === 'ForbiddenError') { HttpUtils.sendForbiddenRequest(error.message); - } else if (error.name === "ValidationError") { + } else if (error.name === 'ValidationError') { HttpUtils.sendResponseBadRequest(error.message); } else { HttpUtils.sendInternalServerError(error.message); diff --git a/codbex-payments/gen/codbex-payments/api/utils/ForbiddenError.ts b/codbex-payments/gen/codbex-payments/api/utils/ForbiddenError.ts deleted file mode 100644 index 775ae84..0000000 --- a/codbex-payments/gen/codbex-payments/api/utils/ForbiddenError.ts +++ /dev/null @@ -1,8 +0,0 @@ -export class ForbiddenError extends Error { - readonly name = "ForbiddenError"; - readonly stack = (new Error()).stack; - - constructor(message: string = "You don't have permission to access this resource") { - super(message); - } -} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/api/utils/HttpUtils.ts b/codbex-payments/gen/codbex-payments/api/utils/HttpUtils.ts deleted file mode 100644 index 80efced..0000000 --- a/codbex-payments/gen/codbex-payments/api/utils/HttpUtils.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { response } from "sdk/http"; - -export class HttpUtils { - - // HTTP 200 - public static sendResponseOk(entity: any): void { - HttpUtils.sendResponse(200, entity); - } - - // HTTP 201 - public static sendResponseCreated(entity): void { - HttpUtils.sendResponse(201, entity); - } - - // HTTP 204 - public static sendResponseNoContent(): void { - HttpUtils.sendResponse(204); - } - - // HTTP 400 - public static sendResponseBadRequest(message): void { - HttpUtils.sendResponse(400, { - "code": 400, - "message": message - }); - } - - // HTTP 403 - public static sendForbiddenRequest(message): void { - HttpUtils.sendResponse(403, { - "code": 403, - "message": message - }); - } - - // HTTP 404 - public static sendResponseNotFound(message): void { - HttpUtils.sendResponse(404, { - "code": 404, - "message": message - }); - } - - // HTTP 500 - public static sendInternalServerError(message): void { - HttpUtils.sendResponse(500, { - "code": 500, - "message": message - }); - } - - // Generic - private static sendResponse(status: number, body?: any): void { - response.setContentType("application/json"); - response.setStatus(status); - if (body) { - response.println(JSON.stringify(body)); - } - } -} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/api/utils/ValidationError.ts b/codbex-payments/gen/codbex-payments/api/utils/ValidationError.ts deleted file mode 100644 index 9b894fa..0000000 --- a/codbex-payments/gen/codbex-payments/api/utils/ValidationError.ts +++ /dev/null @@ -1,8 +0,0 @@ -export class ValidationError extends Error { - readonly name = "ValidationError"; - readonly stack = (new Error()).stack; - - constructor(message: string) { - super(message); - } -} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/codbex-payments.openapi b/codbex-payments/gen/codbex-payments/codbex-payments.openapi deleted file mode 100644 index fc80f79..0000000 --- a/codbex-payments/gen/codbex-payments/codbex-payments.openapi +++ /dev/null @@ -1,7414 +0,0 @@ -openapi: 3.0.3 -info: - title: Payments Management Application - OpenAPI 3.0 - version: 1.0.0 - description: Managing payments data -externalDocs: - description: Find out more about Eclipse Dirigible - url: https://dirigible.io -servers: - - url: /services/ts -tags: - - name: CustomerPayment - - name: SupplierPayment - - name: EmployeePayment - - name: PaymentRecord - - name: Settings - - name: Settings - - name: Settings - - name: PaymentAdjustment - - name: Suppliers -paths: - /codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts: - get: - summary: List CustomerPayment - parameters: - - in: query - name: $limit - description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - - in: query - name: $offset - description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - tags: - - CustomerPayment - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CustomerPayment' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Create CustomerPayment - tags: - - CustomerPayment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CustomerPayment' - required: true - responses: - 201: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/CustomerPayment' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts/{id}: - get: - summary: Get CustomerPayment by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - CustomerPayment - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CustomerPayment' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - put: - summary: Update CustomerPayment by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - CustomerPayment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CustomerPayment' - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/CustomerPayment' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - delete: - summary: Delete CustomerPayment by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - CustomerPayment - responses: - 204: - description: Successful Request - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts/count: - get: - summary: Count the number of CustomerPayment - tags: - - CustomerPayment - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Count the number of CustomerPayment by CustomerPaymentFilterOptions - tags: - - CustomerPayment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CustomerPaymentFilterOptions' - examples: - countWithMultipleCriteria: - summary: Count with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - Name: "abcd" - UUID: "abcd" - Reference: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - countWithEquals: - summary: Count with Equals - value: - $filter: - equals: - Id: 0 - countWithNotEquals: - summary: Count with Not Equals - value: - $filter: - notEquals: - Id: 0 - countWithContains: - summary: Count with Contains - value: - $filter: - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - Name: "abcd" - UUID: "abcd" - Reference: "abcd" - countWithGreaterThan: - summary: Count with Greater Than - value: - $filter: - greaterThan: - Id: 0 - countWithGreaterThanOrEqual: - summary: Count with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - countWithLessThan: - summary: Count with Less Than - value: - $filter: - lessThan: - Id: 0 - countWithLessThanOrEqual: - summary: Count with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts/search: - post: - summary: Search CustomerPayment by CustomerPaymentFilterOptions - tags: - - CustomerPayment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CustomerPaymentFilterOptions' - examples: - searchWithMultipleCriteria: - summary: Search with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - Name: "abcd" - UUID: "abcd" - Reference: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - searchWithEquals: - summary: Search with Equals - value: - $filter: - equals: - Id: 0 - searchWithNotEquals: - summary: Search with Not Equals - value: - $filter: - notEquals: - Id: 0 - searchWithContains: - summary: Search with Contains - value: - $filter: - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - Name: "abcd" - UUID: "abcd" - Reference: "abcd" - searchWithGreaterThan: - summary: Search with Greater Than - value: - $filter: - greaterThan: - Id: 0 - searchWithGreaterThanOrEqual: - summary: Search with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - searchWithLessThan: - summary: Search with Less Than - value: - $filter: - lessThan: - Id: 0 - searchWithLessThanOrEqual: - summary: Search with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CustomerPayment' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentService.ts: - get: - summary: List SupplierPayment - parameters: - - in: query - name: $limit - description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - - in: query - name: $offset - description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - tags: - - SupplierPayment - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/SupplierPayment' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Create SupplierPayment - tags: - - SupplierPayment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SupplierPayment' - required: true - responses: - 201: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/SupplierPayment' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentService.ts/{id}: - get: - summary: Get SupplierPayment by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - SupplierPayment - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/SupplierPayment' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - put: - summary: Update SupplierPayment by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - SupplierPayment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SupplierPayment' - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/SupplierPayment' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - delete: - summary: Delete SupplierPayment by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - SupplierPayment - responses: - 204: - description: Successful Request - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentService.ts/count: - get: - summary: Count the number of SupplierPayment - tags: - - SupplierPayment - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Count the number of SupplierPayment by SupplierPaymentFilterOptions - tags: - - SupplierPayment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SupplierPaymentFilterOptions' - examples: - countWithMultipleCriteria: - summary: Count with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - Name: "abcd" - UUID: "abcd" - Reference: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - countWithEquals: - summary: Count with Equals - value: - $filter: - equals: - Id: 0 - countWithNotEquals: - summary: Count with Not Equals - value: - $filter: - notEquals: - Id: 0 - countWithContains: - summary: Count with Contains - value: - $filter: - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - Name: "abcd" - UUID: "abcd" - Reference: "abcd" - countWithGreaterThan: - summary: Count with Greater Than - value: - $filter: - greaterThan: - Id: 0 - countWithGreaterThanOrEqual: - summary: Count with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - countWithLessThan: - summary: Count with Less Than - value: - $filter: - lessThan: - Id: 0 - countWithLessThanOrEqual: - summary: Count with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/SupplierPayment/SupplierPaymentService.ts/search: - post: - summary: Search SupplierPayment by SupplierPaymentFilterOptions - tags: - - SupplierPayment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SupplierPaymentFilterOptions' - examples: - searchWithMultipleCriteria: - summary: Search with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - Name: "abcd" - UUID: "abcd" - Reference: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - searchWithEquals: - summary: Search with Equals - value: - $filter: - equals: - Id: 0 - searchWithNotEquals: - summary: Search with Not Equals - value: - $filter: - notEquals: - Id: 0 - searchWithContains: - summary: Search with Contains - value: - $filter: - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - Name: "abcd" - UUID: "abcd" - Reference: "abcd" - searchWithGreaterThan: - summary: Search with Greater Than - value: - $filter: - greaterThan: - Id: 0 - searchWithGreaterThanOrEqual: - summary: Search with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - searchWithLessThan: - summary: Search with Less Than - value: - $filter: - lessThan: - Id: 0 - searchWithLessThanOrEqual: - summary: Search with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/SupplierPayment' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentService.ts: - get: - summary: List EmployeePayment - parameters: - - in: query - name: $limit - description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - - in: query - name: $offset - description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - tags: - - EmployeePayment - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/EmployeePayment' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Create EmployeePayment - tags: - - EmployeePayment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/EmployeePayment' - required: true - responses: - 201: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/EmployeePayment' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentService.ts/{id}: - get: - summary: Get EmployeePayment by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - EmployeePayment - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/EmployeePayment' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - put: - summary: Update EmployeePayment by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - EmployeePayment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/EmployeePayment' - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/EmployeePayment' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - delete: - summary: Delete EmployeePayment by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - EmployeePayment - responses: - 204: - description: Successful Request - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentService.ts/count: - get: - summary: Count the number of EmployeePayment - tags: - - EmployeePayment - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Count the number of EmployeePayment by EmployeePaymentFilterOptions - tags: - - EmployeePayment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/EmployeePaymentFilterOptions' - examples: - countWithMultipleCriteria: - summary: Count with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - Name: "abcd" - UUID: "abcd" - Reference: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - countWithEquals: - summary: Count with Equals - value: - $filter: - equals: - Id: 0 - countWithNotEquals: - summary: Count with Not Equals - value: - $filter: - notEquals: - Id: 0 - countWithContains: - summary: Count with Contains - value: - $filter: - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - Name: "abcd" - UUID: "abcd" - Reference: "abcd" - countWithGreaterThan: - summary: Count with Greater Than - value: - $filter: - greaterThan: - Id: 0 - countWithGreaterThanOrEqual: - summary: Count with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - countWithLessThan: - summary: Count with Less Than - value: - $filter: - lessThan: - Id: 0 - countWithLessThanOrEqual: - summary: Count with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/EmployeePayment/EmployeePaymentService.ts/search: - post: - summary: Search EmployeePayment by EmployeePaymentFilterOptions - tags: - - EmployeePayment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/EmployeePaymentFilterOptions' - examples: - searchWithMultipleCriteria: - summary: Search with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - Name: "abcd" - UUID: "abcd" - Reference: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - searchWithEquals: - summary: Search with Equals - value: - $filter: - equals: - Id: 0 - searchWithNotEquals: - summary: Search with Not Equals - value: - $filter: - notEquals: - Id: 0 - searchWithContains: - summary: Search with Contains - value: - $filter: - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - Name: "abcd" - UUID: "abcd" - Reference: "abcd" - searchWithGreaterThan: - summary: Search with Greater Than - value: - $filter: - greaterThan: - Id: 0 - searchWithGreaterThanOrEqual: - summary: Search with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - searchWithLessThan: - summary: Search with Less Than - value: - $filter: - lessThan: - Id: 0 - searchWithLessThanOrEqual: - summary: Search with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/EmployeePayment' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordService.ts: - get: - summary: List PaymentRecord - parameters: - - in: query - name: $limit - description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - - in: query - name: $offset - description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - tags: - - PaymentRecord - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PaymentRecord' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Create PaymentRecord - tags: - - PaymentRecord - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRecord' - required: true - responses: - 201: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRecord' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordService.ts/{id}: - get: - summary: Get PaymentRecord by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - PaymentRecord - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PaymentRecord' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - put: - summary: Update PaymentRecord by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - PaymentRecord - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRecord' - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRecord' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - delete: - summary: Delete PaymentRecord by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - PaymentRecord - responses: - 204: - description: Successful Request - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordService.ts/count: - get: - summary: Count the number of PaymentRecord - tags: - - PaymentRecord - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Count the number of PaymentRecord by PaymentRecordFilterOptions - tags: - - PaymentRecord - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRecordFilterOptions' - examples: - countWithMultipleCriteria: - summary: Count with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - UUID: "abcd" - Reference: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - countWithEquals: - summary: Count with Equals - value: - $filter: - equals: - Id: 0 - countWithNotEquals: - summary: Count with Not Equals - value: - $filter: - notEquals: - Id: 0 - countWithContains: - summary: Count with Contains - value: - $filter: - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - UUID: "abcd" - Reference: "abcd" - countWithGreaterThan: - summary: Count with Greater Than - value: - $filter: - greaterThan: - Id: 0 - countWithGreaterThanOrEqual: - summary: Count with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - countWithLessThan: - summary: Count with Less Than - value: - $filter: - lessThan: - Id: 0 - countWithLessThanOrEqual: - summary: Count with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/PaymentRecord/PaymentRecordService.ts/search: - post: - summary: Search PaymentRecord by PaymentRecordFilterOptions - tags: - - PaymentRecord - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRecordFilterOptions' - examples: - searchWithMultipleCriteria: - summary: Search with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - UUID: "abcd" - Reference: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - searchWithEquals: - summary: Search with Equals - value: - $filter: - equals: - Id: 0 - searchWithNotEquals: - summary: Search with Not Equals - value: - $filter: - notEquals: - Id: 0 - searchWithContains: - summary: Search with Contains - value: - $filter: - contains: - CompanyIBAN: "abcd" - CounterpartyIBAN: "abcd" - CounterpartyName: "abcd" - Reason: "abcd" - Description: "abcd" - UUID: "abcd" - Reference: "abcd" - searchWithGreaterThan: - summary: Search with Greater Than - value: - $filter: - greaterThan: - Id: 0 - searchWithGreaterThanOrEqual: - summary: Search with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - searchWithLessThan: - summary: Search with Less Than - value: - $filter: - lessThan: - Id: 0 - searchWithLessThanOrEqual: - summary: Search with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PaymentRecord' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts: - get: - summary: List PaymentRecordDirection - parameters: - - in: query - name: $limit - description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - - in: query - name: $offset - description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - tags: - - Settings - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PaymentRecordDirection' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Create PaymentRecordDirection - tags: - - Settings - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRecordDirection' - required: true - responses: - 201: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRecordDirection' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts/{id}: - get: - summary: Get PaymentRecordDirection by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - Settings - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PaymentRecordDirection' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - put: - summary: Update PaymentRecordDirection by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - Settings - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRecordDirection' - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRecordDirection' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - delete: - summary: Delete PaymentRecordDirection by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - Settings - responses: - 204: - description: Successful Request - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts/count: - get: - summary: Count the number of PaymentRecordDirection - tags: - - Settings - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Count the number of PaymentRecordDirection by PaymentRecordDirectionFilterOptions - tags: - - Settings - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRecordDirectionFilterOptions' - examples: - countWithMultipleCriteria: - summary: Count with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - Name: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - countWithEquals: - summary: Count with Equals - value: - $filter: - equals: - Id: 0 - countWithNotEquals: - summary: Count with Not Equals - value: - $filter: - notEquals: - Id: 0 - countWithContains: - summary: Count with Contains - value: - $filter: - contains: - Name: "abcd" - countWithGreaterThan: - summary: Count with Greater Than - value: - $filter: - greaterThan: - Id: 0 - countWithGreaterThanOrEqual: - summary: Count with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - countWithLessThan: - summary: Count with Less Than - value: - $filter: - lessThan: - Id: 0 - countWithLessThanOrEqual: - summary: Count with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Settings/PaymentRecordDirectionService.ts/search: - post: - summary: Search PaymentRecordDirection by PaymentRecordDirectionFilterOptions - tags: - - Settings - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentRecordDirectionFilterOptions' - examples: - searchWithMultipleCriteria: - summary: Search with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - Name: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - searchWithEquals: - summary: Search with Equals - value: - $filter: - equals: - Id: 0 - searchWithNotEquals: - summary: Search with Not Equals - value: - $filter: - notEquals: - Id: 0 - searchWithContains: - summary: Search with Contains - value: - $filter: - contains: - Name: "abcd" - searchWithGreaterThan: - summary: Search with Greater Than - value: - $filter: - greaterThan: - Id: 0 - searchWithGreaterThanOrEqual: - summary: Search with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - searchWithLessThan: - summary: Search with Less Than - value: - $filter: - lessThan: - Id: 0 - searchWithLessThanOrEqual: - summary: Search with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PaymentRecordDirection' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts: - get: - summary: List PaymentStatus - parameters: - - in: query - name: $limit - description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - - in: query - name: $offset - description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - tags: - - Settings - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PaymentStatus' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Create PaymentStatus - tags: - - Settings - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentStatus' - required: true - responses: - 201: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentStatus' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts/{id}: - get: - summary: Get PaymentStatus by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - Settings - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PaymentStatus' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - put: - summary: Update PaymentStatus by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - Settings - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentStatus' - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentStatus' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - delete: - summary: Delete PaymentStatus by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - Settings - responses: - 204: - description: Successful Request - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts/count: - get: - summary: Count the number of PaymentStatus - tags: - - Settings - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Count the number of PaymentStatus by PaymentStatusFilterOptions - tags: - - Settings - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentStatusFilterOptions' - examples: - countWithMultipleCriteria: - summary: Count with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - Name: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - countWithEquals: - summary: Count with Equals - value: - $filter: - equals: - Id: 0 - countWithNotEquals: - summary: Count with Not Equals - value: - $filter: - notEquals: - Id: 0 - countWithContains: - summary: Count with Contains - value: - $filter: - contains: - Name: "abcd" - countWithGreaterThan: - summary: Count with Greater Than - value: - $filter: - greaterThan: - Id: 0 - countWithGreaterThanOrEqual: - summary: Count with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - countWithLessThan: - summary: Count with Less Than - value: - $filter: - lessThan: - Id: 0 - countWithLessThanOrEqual: - summary: Count with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Settings/PaymentStatusService.ts/search: - post: - summary: Search PaymentStatus by PaymentStatusFilterOptions - tags: - - Settings - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentStatusFilterOptions' - examples: - searchWithMultipleCriteria: - summary: Search with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - Name: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - searchWithEquals: - summary: Search with Equals - value: - $filter: - equals: - Id: 0 - searchWithNotEquals: - summary: Search with Not Equals - value: - $filter: - notEquals: - Id: 0 - searchWithContains: - summary: Search with Contains - value: - $filter: - contains: - Name: "abcd" - searchWithGreaterThan: - summary: Search with Greater Than - value: - $filter: - greaterThan: - Id: 0 - searchWithGreaterThanOrEqual: - summary: Search with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - searchWithLessThan: - summary: Search with Less Than - value: - $filter: - lessThan: - Id: 0 - searchWithLessThanOrEqual: - summary: Search with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PaymentStatus' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts: - get: - summary: List PaymentType - parameters: - - in: query - name: $limit - description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - - in: query - name: $offset - description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - tags: - - Settings - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PaymentType' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Create PaymentType - tags: - - Settings - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentType' - required: true - responses: - 201: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentType' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts/{id}: - get: - summary: Get PaymentType by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - Settings - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PaymentType' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - put: - summary: Update PaymentType by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - Settings - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentType' - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentType' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - delete: - summary: Delete PaymentType by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - Settings - responses: - 204: - description: Successful Request - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts/count: - get: - summary: Count the number of PaymentType - tags: - - Settings - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Count the number of PaymentType by PaymentTypeFilterOptions - tags: - - Settings - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentTypeFilterOptions' - examples: - countWithMultipleCriteria: - summary: Count with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - Name: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - countWithEquals: - summary: Count with Equals - value: - $filter: - equals: - Id: 0 - countWithNotEquals: - summary: Count with Not Equals - value: - $filter: - notEquals: - Id: 0 - countWithContains: - summary: Count with Contains - value: - $filter: - contains: - Name: "abcd" - countWithGreaterThan: - summary: Count with Greater Than - value: - $filter: - greaterThan: - Id: 0 - countWithGreaterThanOrEqual: - summary: Count with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - countWithLessThan: - summary: Count with Less Than - value: - $filter: - lessThan: - Id: 0 - countWithLessThanOrEqual: - summary: Count with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Settings/PaymentTypeService.ts/search: - post: - summary: Search PaymentType by PaymentTypeFilterOptions - tags: - - Settings - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentTypeFilterOptions' - examples: - searchWithMultipleCriteria: - summary: Search with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - Name: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - searchWithEquals: - summary: Search with Equals - value: - $filter: - equals: - Id: 0 - searchWithNotEquals: - summary: Search with Not Equals - value: - $filter: - notEquals: - Id: 0 - searchWithContains: - summary: Search with Contains - value: - $filter: - contains: - Name: "abcd" - searchWithGreaterThan: - summary: Search with Greater Than - value: - $filter: - greaterThan: - Id: 0 - searchWithGreaterThanOrEqual: - summary: Search with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - searchWithLessThan: - summary: Search with Less Than - value: - $filter: - lessThan: - Id: 0 - searchWithLessThanOrEqual: - summary: Search with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PaymentType' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentService.ts: - get: - summary: List PaymentAdjustment - parameters: - - in: query - name: $limit - description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - - in: query - name: $offset - description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - tags: - - PaymentAdjustment - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PaymentAdjustment' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Create PaymentAdjustment - tags: - - PaymentAdjustment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentAdjustment' - required: true - responses: - 201: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentAdjustment' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentService.ts/{id}: - get: - summary: Get PaymentAdjustment by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - PaymentAdjustment - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PaymentAdjustment' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - put: - summary: Update PaymentAdjustment by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - PaymentAdjustment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentAdjustment' - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentAdjustment' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - delete: - summary: Delete PaymentAdjustment by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - PaymentAdjustment - responses: - 204: - description: Successful Request - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentService.ts/count: - get: - summary: Count the number of PaymentAdjustment - tags: - - PaymentAdjustment - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Count the number of PaymentAdjustment by PaymentAdjustmentFilterOptions - tags: - - PaymentAdjustment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentAdjustmentFilterOptions' - examples: - countWithMultipleCriteria: - summary: Count with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - Reason: "abcd" - UUID: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - countWithEquals: - summary: Count with Equals - value: - $filter: - equals: - Id: 0 - countWithNotEquals: - summary: Count with Not Equals - value: - $filter: - notEquals: - Id: 0 - countWithContains: - summary: Count with Contains - value: - $filter: - contains: - Reason: "abcd" - UUID: "abcd" - countWithGreaterThan: - summary: Count with Greater Than - value: - $filter: - greaterThan: - Id: 0 - countWithGreaterThanOrEqual: - summary: Count with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - countWithLessThan: - summary: Count with Less Than - value: - $filter: - lessThan: - Id: 0 - countWithLessThanOrEqual: - summary: Count with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/PaymentAdjustment/PaymentAdjustmentService.ts/search: - post: - summary: Search PaymentAdjustment by PaymentAdjustmentFilterOptions - tags: - - PaymentAdjustment - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PaymentAdjustmentFilterOptions' - examples: - searchWithMultipleCriteria: - summary: Search with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - Reason: "abcd" - UUID: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - searchWithEquals: - summary: Search with Equals - value: - $filter: - equals: - Id: 0 - searchWithNotEquals: - summary: Search with Not Equals - value: - $filter: - notEquals: - Id: 0 - searchWithContains: - summary: Search with Contains - value: - $filter: - contains: - Reason: "abcd" - UUID: "abcd" - searchWithGreaterThan: - summary: Search with Greater Than - value: - $filter: - greaterThan: - Id: 0 - searchWithGreaterThanOrEqual: - summary: Search with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - searchWithLessThan: - summary: Search with Less Than - value: - $filter: - lessThan: - Id: 0 - searchWithLessThanOrEqual: - summary: Search with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PaymentAdjustment' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts: - get: - summary: List Supplier - parameters: - - in: query - name: $limit - description: The number of records to be returned _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - - in: query - name: $offset - description: The number of records to skip _(both `$limit` and `$offset` should be provided)_. - required: false - allowReserved: true - schema: - type: integer - allowEmptyValue: true - tags: - - Suppliers - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Supplier' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Create Supplier - tags: - - Suppliers - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Supplier' - required: true - responses: - 201: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/Supplier' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts/{id}: - get: - summary: Get Supplier by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - Suppliers - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Supplier' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - put: - summary: Update Supplier by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - Suppliers - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Supplier' - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - $ref: '#/components/schemas/Supplier' - 400: - description: Bad Request Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - delete: - summary: Delete Supplier by Id - parameters: - - in: path - name: id - description: The Id of the entity. - required: true - schema: - type: string - tags: - - Suppliers - responses: - 204: - description: Successful Request - 404: - description: Entity Not Found - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts/count: - get: - summary: Count the number of Supplier - tags: - - Suppliers - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - post: - summary: Count the number of Supplier by SupplierFilterOptions - tags: - - Suppliers - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SupplierFilterOptions' - examples: - countWithMultipleCriteria: - summary: Count with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - Name: "abcd" - Address: "abcd" - PostalCode: "abcd" - Email: "abcd" - Phone: "abcd" - Fax: "abcd" - TIN: "abcd" - IBAN: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - countWithEquals: - summary: Count with Equals - value: - $filter: - equals: - Id: 0 - countWithNotEquals: - summary: Count with Not Equals - value: - $filter: - notEquals: - Id: 0 - countWithContains: - summary: Count with Contains - value: - $filter: - contains: - Name: "abcd" - Address: "abcd" - PostalCode: "abcd" - Email: "abcd" - Phone: "abcd" - Fax: "abcd" - TIN: "abcd" - IBAN: "abcd" - countWithGreaterThan: - summary: Count with Greater Than - value: - $filter: - greaterThan: - Id: 0 - countWithGreaterThanOrEqual: - summary: Count with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - countWithLessThan: - summary: Count with Less Than - value: - $filter: - lessThan: - Id: 0 - countWithLessThanOrEqual: - summary: Count with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: integer - example: 100 - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - /codbex-payments/gen/codbex-payments/api/Suppliers/SupplierService.ts/search: - post: - summary: Search Supplier by SupplierFilterOptions - tags: - - Suppliers - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SupplierFilterOptions' - examples: - searchWithMultipleCriteria: - summary: Search with multiple criteria - value: - $filter: - notEquals: - Id: 33 - contains: - Name: "abcd" - Address: "abcd" - PostalCode: "abcd" - Email: "abcd" - Phone: "abcd" - Fax: "abcd" - TIN: "abcd" - IBAN: "abcd" - greaterThan: - Id: 0 - lessThanOrEqual: - Id: 100 - searchWithEquals: - summary: Search with Equals - value: - $filter: - equals: - Id: 0 - searchWithNotEquals: - summary: Search with Not Equals - value: - $filter: - notEquals: - Id: 0 - searchWithContains: - summary: Search with Contains - value: - $filter: - contains: - Name: "abcd" - Address: "abcd" - PostalCode: "abcd" - Email: "abcd" - Phone: "abcd" - Fax: "abcd" - TIN: "abcd" - IBAN: "abcd" - searchWithGreaterThan: - summary: Search with Greater Than - value: - $filter: - greaterThan: - Id: 0 - searchWithGreaterThanOrEqual: - summary: Search with Greater Than Or Equal - value: - $filter: - greaterThanOrEqual: - Id: 0 - searchWithLessThan: - summary: Search with Less Than - value: - $filter: - lessThan: - Id: 0 - searchWithLessThanOrEqual: - summary: Search with Less Than Or Equal - value: - $filter: - lessThanOrEqual: - Id: 0 - required: true - responses: - 200: - description: Successful Request - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Supplier' - 403: - description: Forbidden Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - 500: - description: Internal Server Error - content: - application/json: - schema: - $ref: '#/components/schemas/Error' -components: - schemas: - CustomerPayment: - type: object - required: - - Customer - - Date - - Valor - - Amount - - Currency - - Reason - properties: - Id: - type: integer - format: int32 - Customer: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - readOnly: true - UUID: - type: string - minLength: 0 - maxLength: 36 - readOnly: true - Reference: - type: string - minLength: 0 - maxLength: 36 - PaymentMethod: - type: integer - format: int32 - CustomerPaymentFilterOptions: - type: object - properties: - $filter: - type: object - properties: - equals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Customer: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Date: - oneOf: - Valor: - oneOf: - CompanyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyName: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Amount: - oneOf: - - type: number - format: double - - type: array - items: - type: number - format: double - Currency: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Reason: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Description: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Company: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Name: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - UUID: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - Reference: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - PaymentMethod: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - notEquals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Customer: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Date: - oneOf: - Valor: - oneOf: - CompanyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyName: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Amount: - oneOf: - - type: number - format: double - - type: array - items: - type: number - format: double - Currency: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Reason: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Description: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Company: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Name: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - UUID: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - Reference: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - PaymentMethod: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - contains: - type: object - properties: - Id: - Customer: - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - Currency: - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - Name: - type: string - minLength: 0 - maxLength: 20 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - PaymentMethod: - greaterThan: - type: object - properties: - Id: - type: integer - format: int32 - Customer: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - PaymentMethod: - type: integer - format: int32 - greaterThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Customer: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - PaymentMethod: - type: integer - format: int32 - lessThan: - type: object - properties: - Id: - type: integer - format: int32 - Customer: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - PaymentMethod: - type: integer - format: int32 - lessThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Customer: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - PaymentMethod: - type: integer - format: int32 - $select: - type: array - example: ["Id", "Customer", "Date", "Valor", "CompanyIBAN", "CounterpartyIBAN", "CounterpartyName", "Amount", "Currency", "Reason", "Description", "Company", "Name", "UUID", "Reference", "PaymentMethod"] - items: - type: string - $sort: - - type: string - example: "Id,Customer,Date,Valor,CompanyIBAN,CounterpartyIBAN,CounterpartyName,Amount,Currency,Reason,Description,Company,Name,UUID,Reference,PaymentMethod" - $order: - type: string - enum: ["asc", "desc"] - example: "asc" - $offset: - type: integer - example: 0 - $limit: - type: integer - example: 10 - SupplierPayment: - type: object - required: - - Date - - Valor - - Amount - - Currency - - Reason - properties: - Id: - type: integer - format: int32 - Supplier: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - readOnly: true - UUID: - type: string - minLength: 0 - maxLength: 36 - readOnly: true - Reference: - type: string - minLength: 0 - maxLength: 36 - SupplierPaymentFilterOptions: - type: object - properties: - $filter: - type: object - properties: - equals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Supplier: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Date: - oneOf: - Valor: - oneOf: - CompanyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyName: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Amount: - oneOf: - - type: number - format: double - - type: array - items: - type: number - format: double - Currency: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Reason: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Description: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Company: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Name: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - UUID: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - Reference: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - notEquals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Supplier: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Date: - oneOf: - Valor: - oneOf: - CompanyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyName: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Amount: - oneOf: - - type: number - format: double - - type: array - items: - type: number - format: double - Currency: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Reason: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Description: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Company: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Name: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - UUID: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - Reference: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - contains: - type: object - properties: - Id: - Supplier: - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - Currency: - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - Name: - type: string - minLength: 0 - maxLength: 20 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - greaterThan: - type: object - properties: - Id: - type: integer - format: int32 - Supplier: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - greaterThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Supplier: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - lessThan: - type: object - properties: - Id: - type: integer - format: int32 - Supplier: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - lessThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Supplier: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - $select: - type: array - example: ["Id", "Supplier", "Date", "Valor", "CompanyIBAN", "CounterpartyIBAN", "CounterpartyName", "Amount", "Currency", "Reason", "Description", "Company", "Name", "UUID", "Reference"] - items: - type: string - $sort: - - type: string - example: "Id,Supplier,Date,Valor,CompanyIBAN,CounterpartyIBAN,CounterpartyName,Amount,Currency,Reason,Description,Company,Name,UUID,Reference" - $order: - type: string - enum: ["asc", "desc"] - example: "asc" - $offset: - type: integer - example: 0 - $limit: - type: integer - example: 10 - EmployeePayment: - type: object - required: - - Date - - Valor - - Amount - - Currency - - Reason - properties: - Id: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - readOnly: true - UUID: - type: string - minLength: 0 - maxLength: 36 - readOnly: true - Reference: - type: string - minLength: 0 - maxLength: 36 - EmployeePaymentFilterOptions: - type: object - properties: - $filter: - type: object - properties: - equals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Date: - oneOf: - Valor: - oneOf: - CompanyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyName: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Amount: - oneOf: - - type: number - format: double - - type: array - items: - type: number - format: double - Currency: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Reason: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Description: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Company: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Name: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - UUID: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - Reference: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - notEquals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Date: - oneOf: - Valor: - oneOf: - CompanyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyName: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Amount: - oneOf: - - type: number - format: double - - type: array - items: - type: number - format: double - Currency: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Reason: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Description: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Company: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Name: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - UUID: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - Reference: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - contains: - type: object - properties: - Id: - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - Currency: - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - Name: - type: string - minLength: 0 - maxLength: 20 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - greaterThan: - type: object - properties: - Id: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - greaterThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - lessThan: - type: object - properties: - Id: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - lessThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - $select: - type: array - example: ["Id", "Date", "Valor", "CompanyIBAN", "CounterpartyIBAN", "CounterpartyName", "Amount", "Currency", "Reason", "Description", "Company", "Name", "UUID", "Reference"] - items: - type: string - $sort: - - type: string - example: "Id,Date,Valor,CompanyIBAN,CounterpartyIBAN,CounterpartyName,Amount,Currency,Reason,Description,Company,Name,UUID,Reference" - $order: - type: string - enum: ["asc", "desc"] - example: "asc" - $offset: - type: integer - example: 0 - $limit: - type: integer - example: 10 - PaymentRecord: - type: object - required: - - Date - - Valor - properties: - Id: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - PaymentRecordDirection: - type: integer - format: int32 - PaymentStatus: - type: integer - format: int32 - PaymentType: - type: integer - format: int32 - UUID: - type: string - minLength: 0 - maxLength: 36 - readOnly: true - Reference: - type: string - minLength: 0 - maxLength: 36 - Deleted: - type: boolean - PaymentRecordFilterOptions: - type: object - properties: - $filter: - type: object - properties: - equals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Date: - oneOf: - Valor: - oneOf: - CompanyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyName: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Amount: - oneOf: - - type: number - format: double - - type: array - items: - type: number - format: double - Currency: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Reason: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Description: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Company: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - PaymentRecordDirection: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - PaymentStatus: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - PaymentType: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - UUID: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - Reference: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - Deleted: - oneOf: - - type: boolean - - type: array - items: - type: boolean - notEquals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Date: - oneOf: - Valor: - oneOf: - CompanyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 34 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 34 - CounterpartyName: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Amount: - oneOf: - - type: number - format: double - - type: array - items: - type: number - format: double - Currency: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Reason: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Description: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Company: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - PaymentRecordDirection: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - PaymentStatus: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - PaymentType: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - UUID: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - Reference: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - Deleted: - oneOf: - - type: boolean - - type: array - items: - type: boolean - contains: - type: object - properties: - Id: - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - Currency: - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - PaymentRecordDirection: - PaymentStatus: - PaymentType: - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - Deleted: - greaterThan: - type: object - properties: - Id: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - PaymentRecordDirection: - type: integer - format: int32 - PaymentStatus: - type: integer - format: int32 - PaymentType: - type: integer - format: int32 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - Deleted: - greaterThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - PaymentRecordDirection: - type: integer - format: int32 - PaymentStatus: - type: integer - format: int32 - PaymentType: - type: integer - format: int32 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - Deleted: - lessThan: - type: object - properties: - Id: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - PaymentRecordDirection: - type: integer - format: int32 - PaymentStatus: - type: integer - format: int32 - PaymentType: - type: integer - format: int32 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - Deleted: - lessThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Date: - Valor: - CompanyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyIBAN: - type: string - minLength: 0 - maxLength: 34 - CounterpartyName: - type: string - minLength: 0 - maxLength: 100 - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - Description: - type: string - minLength: 0 - maxLength: 100 - Company: - type: integer - format: int32 - PaymentRecordDirection: - type: integer - format: int32 - PaymentStatus: - type: integer - format: int32 - PaymentType: - type: integer - format: int32 - UUID: - type: string - minLength: 0 - maxLength: 36 - Reference: - type: string - minLength: 0 - maxLength: 36 - Deleted: - $select: - type: array - example: ["Id", "Date", "Valor", "CompanyIBAN", "CounterpartyIBAN", "CounterpartyName", "Amount", "Currency", "Reason", "Description", "Company", "PaymentRecordDirection", "PaymentStatus", "PaymentType", "UUID", "Reference", "Deleted"] - items: - type: string - $sort: - - type: string - example: "Id,Date,Valor,CompanyIBAN,CounterpartyIBAN,CounterpartyName,Amount,Currency,Reason,Description,Company,PaymentRecordDirection,PaymentStatus,PaymentType,UUID,Reference,Deleted" - $order: - type: string - enum: ["asc", "desc"] - example: "asc" - $offset: - type: integer - example: 0 - $limit: - type: integer - example: 10 - PaymentRecordDirection: - type: object - required: - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - PaymentRecordDirectionFilterOptions: - type: object - properties: - $filter: - type: object - properties: - equals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Name: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - notEquals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Name: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - contains: - type: object - properties: - Id: - Name: - type: string - minLength: 0 - maxLength: 20 - greaterThan: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - greaterThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - lessThan: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - lessThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - $select: - type: array - example: ["Id", "Name"] - items: - type: string - $sort: - - type: string - example: "Id,Name" - $order: - type: string - enum: ["asc", "desc"] - example: "asc" - $offset: - type: integer - example: 0 - $limit: - type: integer - example: 10 - PaymentStatus: - type: object - required: - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - PaymentStatusFilterOptions: - type: object - properties: - $filter: - type: object - properties: - equals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Name: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - notEquals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Name: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - contains: - type: object - properties: - Id: - Name: - type: string - minLength: 0 - maxLength: 20 - greaterThan: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - greaterThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - lessThan: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - lessThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - $select: - type: array - example: ["Id", "Name"] - items: - type: string - $sort: - - type: string - example: "Id,Name" - $order: - type: string - enum: ["asc", "desc"] - example: "asc" - $offset: - type: integer - example: 0 - $limit: - type: integer - example: 10 - PaymentType: - type: object - required: - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - PaymentTypeFilterOptions: - type: object - properties: - $filter: - type: object - properties: - equals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Name: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - notEquals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Name: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - contains: - type: object - properties: - Id: - Name: - type: string - minLength: 0 - maxLength: 20 - greaterThan: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - greaterThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - lessThan: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - lessThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 20 - $select: - type: array - example: ["Id", "Name"] - items: - type: string - $sort: - - type: string - example: "Id,Name" - $order: - type: string - enum: ["asc", "desc"] - example: "asc" - $offset: - type: integer - example: 0 - $limit: - type: integer - example: 10 - PaymentAdjustment: - type: object - required: - - Date - - Valor - - Amount - - Currency - - Company - properties: - Id: - type: integer - format: int32 - Date: - Valor: - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Company: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - UUID: - type: string - minLength: 0 - maxLength: 36 - readOnly: true - PaymentAdjustmentFilterOptions: - type: object - properties: - $filter: - type: object - properties: - equals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Date: - oneOf: - Valor: - oneOf: - Amount: - oneOf: - - type: number - format: double - - type: array - items: - type: number - format: double - Currency: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Company: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Reason: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - UUID: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - notEquals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Date: - oneOf: - Valor: - oneOf: - Amount: - oneOf: - - type: number - format: double - - type: array - items: - type: number - format: double - Currency: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Company: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Reason: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - UUID: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - contains: - type: object - properties: - Id: - Date: - Valor: - Amount: - Currency: - Company: - Reason: - type: string - minLength: 0 - maxLength: 100 - UUID: - type: string - minLength: 0 - maxLength: 36 - greaterThan: - type: object - properties: - Id: - type: integer - format: int32 - Date: - Valor: - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Company: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - UUID: - type: string - minLength: 0 - maxLength: 36 - greaterThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Date: - Valor: - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Company: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - UUID: - type: string - minLength: 0 - maxLength: 36 - lessThan: - type: object - properties: - Id: - type: integer - format: int32 - Date: - Valor: - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Company: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - UUID: - type: string - minLength: 0 - maxLength: 36 - lessThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Date: - Valor: - Amount: - type: number - format: double - Currency: - type: integer - format: int32 - Company: - type: integer - format: int32 - Reason: - type: string - minLength: 0 - maxLength: 100 - UUID: - type: string - minLength: 0 - maxLength: 36 - $select: - type: array - example: ["Id", "Date", "Valor", "Amount", "Currency", "Company", "Reason", "UUID"] - items: - type: string - $sort: - - type: string - example: "Id,Date,Valor,Amount,Currency,Company,Reason,UUID" - $order: - type: string - enum: ["asc", "desc"] - example: "asc" - $offset: - type: integer - example: 0 - $limit: - type: integer - example: 10 - Supplier: - type: object - required: - - Name - - Address - - Email - - Country - - City - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 100 - Address: - type: string - minLength: 0 - maxLength: 200 - PostalCode: - type: string - minLength: 0 - maxLength: 20 - Email: - type: string - minLength: 0 - maxLength: 100 - Phone: - type: string - minLength: 0 - maxLength: 20 - Fax: - type: string - minLength: 0 - maxLength: 20 - Country: - type: integer - format: int32 - City: - type: integer - format: int32 - TIN: - type: string - minLength: 0 - maxLength: 20 - IBAN: - type: string - minLength: 0 - maxLength: 36 - SupplierFilterOptions: - type: object - properties: - $filter: - type: object - properties: - equals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Name: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Address: - oneOf: - - type: string - minLength: 0 - maxLength: 200 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 200 - PostalCode: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - Email: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Phone: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - Fax: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - Country: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - City: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - TIN: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - IBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - notEquals: - type: object - properties: - Id: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - Name: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Address: - oneOf: - - type: string - minLength: 0 - maxLength: 200 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 200 - PostalCode: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - Email: - oneOf: - - type: string - minLength: 0 - maxLength: 100 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 100 - Phone: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - Fax: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - Country: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - City: - oneOf: - - type: integer - format: int32 - - type: array - items: - type: integer - format: int32 - TIN: - oneOf: - - type: string - minLength: 0 - maxLength: 20 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 20 - IBAN: - oneOf: - - type: string - minLength: 0 - maxLength: 36 - - type: array - items: - type: string - format: double - minLength: 0 - maxLength: 36 - contains: - type: object - properties: - Id: - Name: - type: string - minLength: 0 - maxLength: 100 - Address: - type: string - minLength: 0 - maxLength: 200 - PostalCode: - type: string - minLength: 0 - maxLength: 20 - Email: - type: string - minLength: 0 - maxLength: 100 - Phone: - type: string - minLength: 0 - maxLength: 20 - Fax: - type: string - minLength: 0 - maxLength: 20 - Country: - City: - TIN: - type: string - minLength: 0 - maxLength: 20 - IBAN: - type: string - minLength: 0 - maxLength: 36 - greaterThan: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 100 - Address: - type: string - minLength: 0 - maxLength: 200 - PostalCode: - type: string - minLength: 0 - maxLength: 20 - Email: - type: string - minLength: 0 - maxLength: 100 - Phone: - type: string - minLength: 0 - maxLength: 20 - Fax: - type: string - minLength: 0 - maxLength: 20 - Country: - type: integer - format: int32 - City: - type: integer - format: int32 - TIN: - type: string - minLength: 0 - maxLength: 20 - IBAN: - type: string - minLength: 0 - maxLength: 36 - greaterThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 100 - Address: - type: string - minLength: 0 - maxLength: 200 - PostalCode: - type: string - minLength: 0 - maxLength: 20 - Email: - type: string - minLength: 0 - maxLength: 100 - Phone: - type: string - minLength: 0 - maxLength: 20 - Fax: - type: string - minLength: 0 - maxLength: 20 - Country: - type: integer - format: int32 - City: - type: integer - format: int32 - TIN: - type: string - minLength: 0 - maxLength: 20 - IBAN: - type: string - minLength: 0 - maxLength: 36 - lessThan: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 100 - Address: - type: string - minLength: 0 - maxLength: 200 - PostalCode: - type: string - minLength: 0 - maxLength: 20 - Email: - type: string - minLength: 0 - maxLength: 100 - Phone: - type: string - minLength: 0 - maxLength: 20 - Fax: - type: string - minLength: 0 - maxLength: 20 - Country: - type: integer - format: int32 - City: - type: integer - format: int32 - TIN: - type: string - minLength: 0 - maxLength: 20 - IBAN: - type: string - minLength: 0 - maxLength: 36 - lessThanOrEqual: - type: object - properties: - Id: - type: integer - format: int32 - Name: - type: string - minLength: 0 - maxLength: 100 - Address: - type: string - minLength: 0 - maxLength: 200 - PostalCode: - type: string - minLength: 0 - maxLength: 20 - Email: - type: string - minLength: 0 - maxLength: 100 - Phone: - type: string - minLength: 0 - maxLength: 20 - Fax: - type: string - minLength: 0 - maxLength: 20 - Country: - type: integer - format: int32 - City: - type: integer - format: int32 - TIN: - type: string - minLength: 0 - maxLength: 20 - IBAN: - type: string - minLength: 0 - maxLength: 36 - $select: - type: array - example: ["Id", "Name", "Address", "PostalCode", "Email", "Phone", "Fax", "Country", "City", "TIN", "IBAN"] - items: - type: string - $sort: - - type: string - example: "Id,Name,Address,PostalCode,Email,Phone,Fax,Country,City,TIN,IBAN" - $order: - type: string - enum: ["asc", "desc"] - example: "asc" - $offset: - type: integer - example: 0 - $limit: - type: integer - example: 10 - Error: - type: object - properties: - code: - type: integer - message: - type: string \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/dao/CustomerPayment/CustomerPaymentRepository.ts b/codbex-payments/gen/codbex-payments/dao/CustomerPayment/CustomerPaymentRepository.ts index 0d4b3d1..8ac3faf 100644 --- a/codbex-payments/gen/codbex-payments/dao/CustomerPayment/CustomerPaymentRepository.ts +++ b/codbex-payments/gen/codbex-payments/dao/CustomerPayment/CustomerPaymentRepository.ts @@ -1,7 +1,7 @@ -import { query } from "sdk/db"; -import { producer } from "sdk/messaging"; -import { extensions } from "sdk/extensions"; -import { dao as daoApi } from "sdk/db"; +import { sql, query } from "@aerokit/sdk/db"; +import { producer } from "@aerokit/sdk/messaging"; +import { extensions } from "@aerokit/sdk/extensions"; +import { dao as daoApi } from "@aerokit/sdk/db"; import { EntityUtils } from "../utils/EntityUtils"; // custom imports import { NumberGeneratorService } from "/codbex-number-generator/service/generator"; @@ -179,9 +179,10 @@ export interface CustomerPaymentEntityOptions { $order?: 'ASC' | 'DESC', $offset?: number, $limit?: number, + $language?: string } -interface CustomerPaymentEntityEvent { +export interface CustomerPaymentEntityEvent { readonly operation: 'create' | 'update' | 'delete'; readonly table: string; readonly entity: Partial; @@ -192,7 +193,7 @@ interface CustomerPaymentEntityEvent { } } -interface CustomerPaymentUpdateEntityEvent extends CustomerPaymentEntityEvent { +export interface CustomerPaymentUpdateEntityEvent extends CustomerPaymentEntityEvent { readonly previousEntity: CustomerPaymentEntity; } @@ -303,14 +304,15 @@ export class CustomerPaymentRepository { options.$sort = "Date"; options.$order = "DESC"; } - return this.dao.list(options).map((e: CustomerPaymentEntity) => { + let list = this.dao.list(options).map((e: CustomerPaymentEntity) => { EntityUtils.setDate(e, "Date"); EntityUtils.setDate(e, "Valor"); return e; }); + return list; } - public findById(id: number): CustomerPaymentEntity | undefined { + public findById(id: number, options: CustomerPaymentEntityOptions = {}): CustomerPaymentEntity | undefined { const entity = this.dao.find(id); EntityUtils.setDate(entity, "Date"); EntityUtils.setDate(entity, "Valor"); diff --git a/codbex-payments/gen/codbex-payments/dao/EmployeePayment/EmployeePaymentRepository.ts b/codbex-payments/gen/codbex-payments/dao/EmployeePayment/EmployeePaymentRepository.ts index fe224d6..fa3eb41 100644 --- a/codbex-payments/gen/codbex-payments/dao/EmployeePayment/EmployeePaymentRepository.ts +++ b/codbex-payments/gen/codbex-payments/dao/EmployeePayment/EmployeePaymentRepository.ts @@ -1,7 +1,7 @@ -import { query } from "sdk/db"; -import { producer } from "sdk/messaging"; -import { extensions } from "sdk/extensions"; -import { dao as daoApi } from "sdk/db"; +import { sql, query } from "@aerokit/sdk/db"; +import { producer } from "@aerokit/sdk/messaging"; +import { extensions } from "@aerokit/sdk/extensions"; +import { dao as daoApi } from "@aerokit/sdk/db"; import { EntityUtils } from "../utils/EntityUtils"; // custom imports import { NumberGeneratorService } from "/codbex-number-generator/service/generator"; @@ -161,9 +161,10 @@ export interface EmployeePaymentEntityOptions { $order?: 'ASC' | 'DESC', $offset?: number, $limit?: number, + $language?: string } -interface EmployeePaymentEntityEvent { +export interface EmployeePaymentEntityEvent { readonly operation: 'create' | 'update' | 'delete'; readonly table: string; readonly entity: Partial; @@ -174,7 +175,7 @@ interface EmployeePaymentEntityEvent { } } -interface EmployeePaymentUpdateEntityEvent extends EmployeePaymentEntityEvent { +export interface EmployeePaymentUpdateEntityEvent extends EmployeePaymentEntityEvent { readonly previousEntity: EmployeePaymentEntity; } @@ -275,14 +276,15 @@ export class EmployeePaymentRepository { options.$sort = "Date"; options.$order = "DESC"; } - return this.dao.list(options).map((e: EmployeePaymentEntity) => { + let list = this.dao.list(options).map((e: EmployeePaymentEntity) => { EntityUtils.setDate(e, "Date"); EntityUtils.setDate(e, "Valor"); return e; }); + return list; } - public findById(id: number): EmployeePaymentEntity | undefined { + public findById(id: number, options: EmployeePaymentEntityOptions = {}): EmployeePaymentEntity | undefined { const entity = this.dao.find(id); EntityUtils.setDate(entity, "Date"); EntityUtils.setDate(entity, "Valor"); diff --git a/codbex-payments/gen/codbex-payments/dao/PaymentAdjustment/PaymentAdjustmentRepository.ts b/codbex-payments/gen/codbex-payments/dao/PaymentAdjustment/PaymentAdjustmentRepository.ts index cf4047b..423e823 100644 --- a/codbex-payments/gen/codbex-payments/dao/PaymentAdjustment/PaymentAdjustmentRepository.ts +++ b/codbex-payments/gen/codbex-payments/dao/PaymentAdjustment/PaymentAdjustmentRepository.ts @@ -1,7 +1,7 @@ -import { query } from "sdk/db"; -import { producer } from "sdk/messaging"; -import { extensions } from "sdk/extensions"; -import { dao as daoApi } from "sdk/db"; +import { sql, query } from "@aerokit/sdk/db"; +import { producer } from "@aerokit/sdk/messaging"; +import { extensions } from "@aerokit/sdk/extensions"; +import { dao as daoApi } from "@aerokit/sdk/db"; import { EntityUtils } from "../utils/EntityUtils"; export interface PaymentAdjustmentEntity { @@ -106,9 +106,10 @@ export interface PaymentAdjustmentEntityOptions { $order?: 'ASC' | 'DESC', $offset?: number, $limit?: number, + $language?: string } -interface PaymentAdjustmentEntityEvent { +export interface PaymentAdjustmentEntityEvent { readonly operation: 'create' | 'update' | 'delete'; readonly table: string; readonly entity: Partial; @@ -119,7 +120,7 @@ interface PaymentAdjustmentEntityEvent { } } -interface PaymentAdjustmentUpdateEntityEvent extends PaymentAdjustmentEntityEvent { +export interface PaymentAdjustmentUpdateEntityEvent extends PaymentAdjustmentEntityEvent { readonly previousEntity: PaymentAdjustmentEntity; } @@ -180,14 +181,15 @@ export class PaymentAdjustmentRepository { } public findAll(options: PaymentAdjustmentEntityOptions = {}): PaymentAdjustmentEntity[] { - return this.dao.list(options).map((e: PaymentAdjustmentEntity) => { + let list = this.dao.list(options).map((e: PaymentAdjustmentEntity) => { EntityUtils.setDate(e, "Date"); EntityUtils.setDate(e, "Valor"); return e; }); + return list; } - public findById(id: number): PaymentAdjustmentEntity | undefined { + public findById(id: number, options: PaymentAdjustmentEntityOptions = {}): PaymentAdjustmentEntity | undefined { const entity = this.dao.find(id); EntityUtils.setDate(entity, "Date"); EntityUtils.setDate(entity, "Valor"); diff --git a/codbex-payments/gen/codbex-payments/dao/PaymentRecord/PaymentRecordRepository.ts b/codbex-payments/gen/codbex-payments/dao/PaymentRecord/PaymentRecordRepository.ts index 61a725a..64fc2bd 100644 --- a/codbex-payments/gen/codbex-payments/dao/PaymentRecord/PaymentRecordRepository.ts +++ b/codbex-payments/gen/codbex-payments/dao/PaymentRecord/PaymentRecordRepository.ts @@ -1,7 +1,7 @@ -import { query } from "sdk/db"; -import { producer } from "sdk/messaging"; -import { extensions } from "sdk/extensions"; -import { dao as daoApi } from "sdk/db"; +import { sql, query } from "@aerokit/sdk/db"; +import { producer } from "@aerokit/sdk/messaging"; +import { extensions } from "@aerokit/sdk/extensions"; +import { dao as daoApi } from "@aerokit/sdk/db"; import { EntityUtils } from "../utils/EntityUtils"; export interface PaymentRecordEntity { @@ -187,9 +187,10 @@ export interface PaymentRecordEntityOptions { $order?: 'ASC' | 'DESC', $offset?: number, $limit?: number, + $language?: string } -interface PaymentRecordEntityEvent { +export interface PaymentRecordEntityEvent { readonly operation: 'create' | 'update' | 'delete'; readonly table: string; readonly entity: Partial; @@ -200,7 +201,7 @@ interface PaymentRecordEntityEvent { } } -interface PaymentRecordUpdateEntityEvent extends PaymentRecordEntityEvent { +export interface PaymentRecordUpdateEntityEvent extends PaymentRecordEntityEvent { readonly previousEntity: PaymentRecordEntity; } @@ -313,15 +314,16 @@ export class PaymentRecordRepository { options.$sort = "Date"; options.$order = "DESC"; } - return this.dao.list(options).map((e: PaymentRecordEntity) => { + let list = this.dao.list(options).map((e: PaymentRecordEntity) => { EntityUtils.setDate(e, "Date"); EntityUtils.setDate(e, "Valor"); EntityUtils.setBoolean(e, "Deleted"); return e; }); + return list; } - public findById(id: number): PaymentRecordEntity | undefined { + public findById(id: number, options: PaymentRecordEntityOptions = {}): PaymentRecordEntity | undefined { const entity = this.dao.find(id); EntityUtils.setDate(entity, "Date"); EntityUtils.setDate(entity, "Valor"); diff --git a/codbex-payments/gen/codbex-payments/dao/Settings/PaymentRecordDirectionRepository.ts b/codbex-payments/gen/codbex-payments/dao/Settings/PaymentRecordDirectionRepository.ts index 32b0681..4b62d00 100644 --- a/codbex-payments/gen/codbex-payments/dao/Settings/PaymentRecordDirectionRepository.ts +++ b/codbex-payments/gen/codbex-payments/dao/Settings/PaymentRecordDirectionRepository.ts @@ -1,7 +1,7 @@ -import { query } from "sdk/db"; -import { producer } from "sdk/messaging"; -import { extensions } from "sdk/extensions"; -import { dao as daoApi } from "sdk/db"; +import { sql, query } from "@aerokit/sdk/db"; +import { producer } from "@aerokit/sdk/messaging"; +import { extensions } from "@aerokit/sdk/extensions"; +import { dao as daoApi } from "@aerokit/sdk/db"; export interface PaymentRecordDirectionEntity { readonly Id: number; @@ -52,9 +52,10 @@ export interface PaymentRecordDirectionEntityOptions { $order?: 'ASC' | 'DESC', $offset?: number, $limit?: number, + $language?: string } -interface PaymentRecordDirectionEntityEvent { +export interface PaymentRecordDirectionEntityEvent { readonly operation: 'create' | 'update' | 'delete'; readonly table: string; readonly entity: Partial; @@ -65,7 +66,7 @@ interface PaymentRecordDirectionEntityEvent { } } -interface PaymentRecordDirectionUpdateEntityEvent extends PaymentRecordDirectionEntityEvent { +export interface PaymentRecordDirectionUpdateEntityEvent extends PaymentRecordDirectionEntityEvent { readonly previousEntity: PaymentRecordDirectionEntity; } @@ -96,10 +97,11 @@ export class PaymentRecordDirectionRepository { } public findAll(options: PaymentRecordDirectionEntityOptions = {}): PaymentRecordDirectionEntity[] { - return this.dao.list(options); + let list = this.dao.list(options); + return list; } - public findById(id: number): PaymentRecordDirectionEntity | undefined { + public findById(id: number, options: PaymentRecordDirectionEntityOptions = {}): PaymentRecordDirectionEntity | undefined { const entity = this.dao.find(id); return entity ?? undefined; } diff --git a/codbex-payments/gen/codbex-payments/dao/Settings/PaymentStatusRepository.ts b/codbex-payments/gen/codbex-payments/dao/Settings/PaymentStatusRepository.ts index 391d3b1..30ea2ae 100644 --- a/codbex-payments/gen/codbex-payments/dao/Settings/PaymentStatusRepository.ts +++ b/codbex-payments/gen/codbex-payments/dao/Settings/PaymentStatusRepository.ts @@ -1,7 +1,7 @@ -import { query } from "sdk/db"; -import { producer } from "sdk/messaging"; -import { extensions } from "sdk/extensions"; -import { dao as daoApi } from "sdk/db"; +import { sql, query } from "@aerokit/sdk/db"; +import { producer } from "@aerokit/sdk/messaging"; +import { extensions } from "@aerokit/sdk/extensions"; +import { dao as daoApi } from "@aerokit/sdk/db"; export interface PaymentStatusEntity { readonly Id: number; @@ -52,9 +52,10 @@ export interface PaymentStatusEntityOptions { $order?: 'ASC' | 'DESC', $offset?: number, $limit?: number, + $language?: string } -interface PaymentStatusEntityEvent { +export interface PaymentStatusEntityEvent { readonly operation: 'create' | 'update' | 'delete'; readonly table: string; readonly entity: Partial; @@ -65,7 +66,7 @@ interface PaymentStatusEntityEvent { } } -interface PaymentStatusUpdateEntityEvent extends PaymentStatusEntityEvent { +export interface PaymentStatusUpdateEntityEvent extends PaymentStatusEntityEvent { readonly previousEntity: PaymentStatusEntity; } @@ -96,10 +97,11 @@ export class PaymentStatusRepository { } public findAll(options: PaymentStatusEntityOptions = {}): PaymentStatusEntity[] { - return this.dao.list(options); + let list = this.dao.list(options); + return list; } - public findById(id: number): PaymentStatusEntity | undefined { + public findById(id: number, options: PaymentStatusEntityOptions = {}): PaymentStatusEntity | undefined { const entity = this.dao.find(id); return entity ?? undefined; } diff --git a/codbex-payments/gen/codbex-payments/dao/Settings/PaymentTypeRepository.ts b/codbex-payments/gen/codbex-payments/dao/Settings/PaymentTypeRepository.ts index e45eb64..00caa5c 100644 --- a/codbex-payments/gen/codbex-payments/dao/Settings/PaymentTypeRepository.ts +++ b/codbex-payments/gen/codbex-payments/dao/Settings/PaymentTypeRepository.ts @@ -1,7 +1,7 @@ -import { query } from "sdk/db"; -import { producer } from "sdk/messaging"; -import { extensions } from "sdk/extensions"; -import { dao as daoApi } from "sdk/db"; +import { sql, query } from "@aerokit/sdk/db"; +import { producer } from "@aerokit/sdk/messaging"; +import { extensions } from "@aerokit/sdk/extensions"; +import { dao as daoApi } from "@aerokit/sdk/db"; export interface PaymentTypeEntity { readonly Id: number; @@ -52,9 +52,10 @@ export interface PaymentTypeEntityOptions { $order?: 'ASC' | 'DESC', $offset?: number, $limit?: number, + $language?: string } -interface PaymentTypeEntityEvent { +export interface PaymentTypeEntityEvent { readonly operation: 'create' | 'update' | 'delete'; readonly table: string; readonly entity: Partial; @@ -65,7 +66,7 @@ interface PaymentTypeEntityEvent { } } -interface PaymentTypeUpdateEntityEvent extends PaymentTypeEntityEvent { +export interface PaymentTypeUpdateEntityEvent extends PaymentTypeEntityEvent { readonly previousEntity: PaymentTypeEntity; } @@ -96,10 +97,11 @@ export class PaymentTypeRepository { } public findAll(options: PaymentTypeEntityOptions = {}): PaymentTypeEntity[] { - return this.dao.list(options); + let list = this.dao.list(options); + return list; } - public findById(id: number): PaymentTypeEntity | undefined { + public findById(id: number, options: PaymentTypeEntityOptions = {}): PaymentTypeEntity | undefined { const entity = this.dao.find(id); return entity ?? undefined; } diff --git a/codbex-payments/gen/codbex-payments/dao/SupplierPayment/SupplierPaymentRepository.ts b/codbex-payments/gen/codbex-payments/dao/SupplierPayment/SupplierPaymentRepository.ts index 3428a81..d5a7495 100644 --- a/codbex-payments/gen/codbex-payments/dao/SupplierPayment/SupplierPaymentRepository.ts +++ b/codbex-payments/gen/codbex-payments/dao/SupplierPayment/SupplierPaymentRepository.ts @@ -1,7 +1,7 @@ -import { query } from "sdk/db"; -import { producer } from "sdk/messaging"; -import { extensions } from "sdk/extensions"; -import { dao as daoApi } from "sdk/db"; +import { sql, query } from "@aerokit/sdk/db"; +import { producer } from "@aerokit/sdk/messaging"; +import { extensions } from "@aerokit/sdk/extensions"; +import { dao as daoApi } from "@aerokit/sdk/db"; import { EntityUtils } from "../utils/EntityUtils"; // custom imports import { NumberGeneratorService } from "/codbex-number-generator/service/generator"; @@ -170,9 +170,10 @@ export interface SupplierPaymentEntityOptions { $order?: 'ASC' | 'DESC', $offset?: number, $limit?: number, + $language?: string } -interface SupplierPaymentEntityEvent { +export interface SupplierPaymentEntityEvent { readonly operation: 'create' | 'update' | 'delete'; readonly table: string; readonly entity: Partial; @@ -183,7 +184,7 @@ interface SupplierPaymentEntityEvent { } } -interface SupplierPaymentUpdateEntityEvent extends SupplierPaymentEntityEvent { +export interface SupplierPaymentUpdateEntityEvent extends SupplierPaymentEntityEvent { readonly previousEntity: SupplierPaymentEntity; } @@ -289,14 +290,15 @@ export class SupplierPaymentRepository { options.$sort = "Date"; options.$order = "DESC"; } - return this.dao.list(options).map((e: SupplierPaymentEntity) => { + let list = this.dao.list(options).map((e: SupplierPaymentEntity) => { EntityUtils.setDate(e, "Date"); EntityUtils.setDate(e, "Valor"); return e; }); + return list; } - public findById(id: number): SupplierPaymentEntity | undefined { + public findById(id: number, options: SupplierPaymentEntityOptions = {}): SupplierPaymentEntity | undefined { const entity = this.dao.find(id); EntityUtils.setDate(entity, "Date"); EntityUtils.setDate(entity, "Valor"); diff --git a/codbex-payments/gen/codbex-payments/dao/Suppliers/SupplierRepository.ts b/codbex-payments/gen/codbex-payments/dao/Suppliers/SupplierRepository.ts index ee51353..730e2ae 100644 --- a/codbex-payments/gen/codbex-payments/dao/Suppliers/SupplierRepository.ts +++ b/codbex-payments/gen/codbex-payments/dao/Suppliers/SupplierRepository.ts @@ -1,7 +1,7 @@ -import { query } from "sdk/db"; -import { producer } from "sdk/messaging"; -import { extensions } from "sdk/extensions"; -import { dao as daoApi } from "sdk/db"; +import { sql, query } from "@aerokit/sdk/db"; +import { producer } from "@aerokit/sdk/messaging"; +import { extensions } from "@aerokit/sdk/extensions"; +import { dao as daoApi } from "@aerokit/sdk/db"; export interface SupplierEntity { readonly Id: number; @@ -133,9 +133,10 @@ export interface SupplierEntityOptions { $order?: 'ASC' | 'DESC', $offset?: number, $limit?: number, + $language?: string } -interface SupplierEntityEvent { +export interface SupplierEntityEvent { readonly operation: 'create' | 'update' | 'delete'; readonly table: string; readonly entity: Partial; @@ -146,7 +147,7 @@ interface SupplierEntityEvent { } } -interface SupplierUpdateEntityEvent extends SupplierEntityEvent { +export interface SupplierUpdateEntityEvent extends SupplierEntityEvent { readonly previousEntity: SupplierEntity; } @@ -222,10 +223,11 @@ export class SupplierRepository { } public findAll(options: SupplierEntityOptions = {}): SupplierEntity[] { - return this.dao.list(options); + let list = this.dao.list(options); + return list; } - public findById(id: number): SupplierEntity | undefined { + public findById(id: number, options: SupplierEntityOptions = {}): SupplierEntity | undefined { const entity = this.dao.find(id); return entity ?? undefined; } diff --git a/codbex-payments/gen/codbex-payments/data/CustomerPayment/CustomerPayment.extensionpoint b/codbex-payments/gen/codbex-payments/data/CustomerPayment/CustomerPayment.extensionpoint new file mode 100644 index 0000000..4136418 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/CustomerPayment/CustomerPayment.extensionpoint @@ -0,0 +1,4 @@ +{ + "name": "codbex-payments-CustomerPayment-CustomerPayment", + "description": "Extension Point for the codbex-payments-CustomerPayment-CustomerPayment entity" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/data/CustomerPayment/CustomerPaymentEntity.ts b/codbex-payments/gen/codbex-payments/data/CustomerPayment/CustomerPaymentEntity.ts new file mode 100644 index 0000000..9a2c73f --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/CustomerPayment/CustomerPaymentEntity.ts @@ -0,0 +1,143 @@ +import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' + +@Entity('CustomerPaymentEntity') +@Table('CODBEX_CUSTOMERPAYMENT') +@Documentation('CustomerPayment entity mapping') +export class CustomerPaymentEntity { + + @Id() + @Generated('sequence') + @Documentation('Id') + @Column({ + name: 'CUSTOMERPAYMENT_ID', + type: 'integer', + }) + public Id?: number; + + @Documentation('Customer') + @Column({ + name: 'CUSTOMERPAYMENT_CUSTOMER', + type: 'integer', + nullable: true, + }) + public Customer!: number; + + @Documentation('Date') + @Column({ + name: 'CUSTOMERPAYMENT_DATE', + type: 'date', + }) + public Date!: Date; + + @Documentation('Valor') + @Column({ + name: 'CUSTOMERPAYMENT_VALOR', + type: 'date', + }) + public Valor!: Date; + + @Documentation('CompanyIBAN') + @Column({ + name: 'CUSTOMERPAYMENT_COMPANYIBAN', + type: 'string', + length: 34, + nullable: true, + }) + public CompanyIBAN?: string; + + @Documentation('CounterpartyIBAN') + @Column({ + name: 'CUSTOMERPAYMENT_COUNTERPARTYIBAN', + type: 'string', + length: 34, + nullable: true, + }) + public CounterpartyIBAN?: string; + + @Documentation('CounterpartyName') + @Column({ + name: 'CUSTOMERPAYMENT_COUNTERPARTYNAME', + type: 'string', + length: 100, + nullable: true, + }) + public CounterpartyName?: string; + + @Documentation('Amount') + @Column({ + name: 'CUSTOMERPAYMENT_AMOUNT', + type: 'big_decimal', + precision: 16, + scale: 2, + }) + public Amount!: number; + + @Documentation('Currency') + @Column({ + name: 'CUSTOMERPAYMENT_CURRENCY', + type: 'integer', + }) + public Currency!: number; + + @Documentation('Reason') + @Column({ + name: 'CUSTOMERPAYMENT_REASON', + type: 'string', + length: 100, + }) + public Reason!: string; + + @Documentation('Description') + @Column({ + name: 'CUSTOMERPAYMENT_DESCRIPTION', + type: 'string', + length: 100, + nullable: true, + }) + public Description?: string; + + @Documentation('Company') + @Column({ + name: 'CUSTOMERPAYMENT_COMPANY', + type: 'integer', + nullable: true, + }) + public Company?: number; + + @Documentation('Name') + @Column({ + name: 'CUSTOMERPAYMENT_NAME', + type: 'string', + length: 20, + nullable: true, + }) + public Name?: string; + + @Documentation('UUID') + @Column({ + name: 'CUSTOMERPAYMENT_UUID', + type: 'string', + length: 36, + }) + public UUID?: string; + + @Documentation('Reference') + @Column({ + name: 'CUSTOMERPAYMENT_REFERENCE', + type: 'string', + length: 36, + nullable: true, + }) + public Reference?: string; + + @Documentation('PaymentMethod') + @Column({ + name: 'CUSTOMERPAYMENT_PAYMENTMETHOD', + type: 'integer', + nullable: true, + }) + public PaymentMethod?: number; + +} + +(new CustomerPaymentEntity()); diff --git a/codbex-payments/gen/codbex-payments/data/CustomerPayment/CustomerPaymentRepository.ts b/codbex-payments/gen/codbex-payments/data/CustomerPayment/CustomerPaymentRepository.ts new file mode 100644 index 0000000..c9b4705 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/CustomerPayment/CustomerPaymentRepository.ts @@ -0,0 +1,39 @@ +import { Repository, EntityEvent, EntityConstructor } from '@aerokit/sdk/db' +import { Component } from '@aerokit/sdk/component' +import { Producer } from '@aerokit/sdk/messaging' +import { Extensions } from '@aerokit/sdk/extensions' +import { CustomerPaymentEntity } from './CustomerPaymentEntity' +// custom imports +import { NumberGeneratorService } from "/codbex-number-generator/service/generator"; + +@Component('CustomerPaymentRepository') +export class CustomerPaymentRepository extends Repository { + + constructor() { + super((CustomerPaymentEntity as EntityConstructor)); + } + + public override create(entity: CustomerPaymentEntity): string | number { + entity.Name = new NumberGeneratorService().generate(18); + entity.UUID = require("sdk/utils/uuid").random(); + return super.create(entity); + } + + public override upsert(entity: CustomerPaymentEntity): string | number { + entity.Name = new NumberGeneratorService().generate(18); + entity.UUID = require("sdk/utils/uuid").random(); + return super.upsert(entity); + } + + protected override async triggerEvent(data: EntityEvent): Promise { + const triggerExtensions = await Extensions.loadExtensionModules('codbex-payments-CustomerPayment-CustomerPayment', ['trigger']); + triggerExtensions.forEach(triggerExtension => { + try { + triggerExtension.trigger(data); + } catch (error) { + console.error(error); + } + }); + Producer.topic('codbex-payments-CustomerPayment-CustomerPayment').send(JSON.stringify(data)); + } +} diff --git a/codbex-payments/gen/codbex-payments/data/EmployeePayment/EmployeePayment.extensionpoint b/codbex-payments/gen/codbex-payments/data/EmployeePayment/EmployeePayment.extensionpoint new file mode 100644 index 0000000..3516966 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/EmployeePayment/EmployeePayment.extensionpoint @@ -0,0 +1,4 @@ +{ + "name": "codbex-payments-EmployeePayment-EmployeePayment", + "description": "Extension Point for the codbex-payments-EmployeePayment-EmployeePayment entity" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/data/EmployeePayment/EmployeePaymentEntity.ts b/codbex-payments/gen/codbex-payments/data/EmployeePayment/EmployeePaymentEntity.ts new file mode 100644 index 0000000..a66093b --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/EmployeePayment/EmployeePaymentEntity.ts @@ -0,0 +1,127 @@ +import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' + +@Entity('EmployeePaymentEntity') +@Table('CODBEX_EMPLOYEEPAYMENT') +@Documentation('EmployeePayment entity mapping') +export class EmployeePaymentEntity { + + @Id() + @Generated('sequence') + @Documentation('Id') + @Column({ + name: 'EMPLOYEEPAYMENT_ID', + type: 'integer', + }) + public Id?: number; + + @Documentation('Date') + @Column({ + name: 'EMPLOYEEPAYMENT_DATE', + type: 'date', + }) + public Date!: Date; + + @Documentation('Valor') + @Column({ + name: 'EMPLOYEEPAYMENT_VALOR', + type: 'date', + }) + public Valor!: Date; + + @Documentation('CompanyIBAN') + @Column({ + name: 'EMPLOYEEPAYMENT_COMPANYIBAN', + type: 'string', + length: 34, + nullable: true, + }) + public CompanyIBAN?: string; + + @Documentation('CounterpartyIBAN') + @Column({ + name: 'EMPLOYEEPAYMENT_COUNTERPARTYIBAN', + type: 'string', + length: 34, + nullable: true, + }) + public CounterpartyIBAN?: string; + + @Documentation('CounterpartyName') + @Column({ + name: 'EMPLOYEEPAYMENT_COUNTERPARTYNAME', + type: 'string', + length: 100, + nullable: true, + }) + public CounterpartyName?: string; + + @Documentation('Amount') + @Column({ + name: 'EMPLOYEEPAYMENT_AMOUNT', + type: 'big_decimal', + precision: 16, + scale: 2, + }) + public Amount!: number; + + @Documentation('Currency') + @Column({ + name: 'EMPLOYEEPAYMENT_CURRENCY', + type: 'integer', + }) + public Currency!: number; + + @Documentation('Reason') + @Column({ + name: 'EMPLOYEEPAYMENT_REASON', + type: 'string', + length: 100, + }) + public Reason!: string; + + @Documentation('Description') + @Column({ + name: 'EMPLOYEEPAYMENT_DESCRIPTION', + type: 'string', + length: 100, + nullable: true, + }) + public Description?: string; + + @Documentation('Company') + @Column({ + name: 'EMPLOYEEPAYMENT_COMPANY', + type: 'integer', + nullable: true, + }) + public Company?: number; + + @Documentation('Name') + @Column({ + name: 'EMPLOYEEPAYMENT_NAME', + type: 'string', + length: 20, + nullable: true, + }) + public Name?: string; + + @Documentation('UUID') + @Column({ + name: 'EMPLOYEEPAYMENT_UUID', + type: 'string', + length: 36, + }) + public UUID?: string; + + @Documentation('Reference') + @Column({ + name: 'EMPLOYEEPAYMENT_REFERENCE', + type: 'string', + length: 36, + nullable: true, + }) + public Reference?: string; + +} + +(new EmployeePaymentEntity()); diff --git a/codbex-payments/gen/codbex-payments/data/EmployeePayment/EmployeePaymentRepository.ts b/codbex-payments/gen/codbex-payments/data/EmployeePayment/EmployeePaymentRepository.ts new file mode 100644 index 0000000..4b3c526 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/EmployeePayment/EmployeePaymentRepository.ts @@ -0,0 +1,39 @@ +import { Repository, EntityEvent, EntityConstructor } from '@aerokit/sdk/db' +import { Component } from '@aerokit/sdk/component' +import { Producer } from '@aerokit/sdk/messaging' +import { Extensions } from '@aerokit/sdk/extensions' +import { EmployeePaymentEntity } from './EmployeePaymentEntity' +// custom imports +import { NumberGeneratorService } from "/codbex-number-generator/service/generator"; + +@Component('EmployeePaymentRepository') +export class EmployeePaymentRepository extends Repository { + + constructor() { + super((EmployeePaymentEntity as EntityConstructor)); + } + + public override create(entity: EmployeePaymentEntity): string | number { + entity.Name = new NumberGeneratorService().generate(20); + entity.UUID = require("sdk/utils/uuid").random(); + return super.create(entity); + } + + public override upsert(entity: EmployeePaymentEntity): string | number { + entity.Name = new NumberGeneratorService().generate(20); + entity.UUID = require("sdk/utils/uuid").random(); + return super.upsert(entity); + } + + protected override async triggerEvent(data: EntityEvent): Promise { + const triggerExtensions = await Extensions.loadExtensionModules('codbex-payments-EmployeePayment-EmployeePayment', ['trigger']); + triggerExtensions.forEach(triggerExtension => { + try { + triggerExtension.trigger(data); + } catch (error) { + console.error(error); + } + }); + Producer.topic('codbex-payments-EmployeePayment-EmployeePayment').send(JSON.stringify(data)); + } +} diff --git a/codbex-payments/gen/codbex-payments/data/PaymentAdjustment/PaymentAdjustment.extensionpoint b/codbex-payments/gen/codbex-payments/data/PaymentAdjustment/PaymentAdjustment.extensionpoint new file mode 100644 index 0000000..98bfe6f --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/PaymentAdjustment/PaymentAdjustment.extensionpoint @@ -0,0 +1,4 @@ +{ + "name": "codbex-payments-PaymentAdjustment-PaymentAdjustment", + "description": "Extension Point for the codbex-payments-PaymentAdjustment-PaymentAdjustment entity" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/data/PaymentAdjustment/PaymentAdjustmentEntity.ts b/codbex-payments/gen/codbex-payments/data/PaymentAdjustment/PaymentAdjustmentEntity.ts new file mode 100644 index 0000000..c4bce10 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/PaymentAdjustment/PaymentAdjustmentEntity.ts @@ -0,0 +1,79 @@ +import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' + +@Entity('PaymentAdjustmentEntity') +@Table('CODBEX_PAYMENTADJUSTMENT') +@Documentation('PaymentAdjustment entity mapping') +export class PaymentAdjustmentEntity { + + @Id() + @Generated('sequence') + @Documentation('Id') + @Column({ + name: 'PAYMENTADJUSTMENT_ID', + type: 'integer', + }) + public Id?: number; + + @Documentation('Date') + @Column({ + name: 'PAYMENTADJUSTMENT_DATE', + type: 'date', + nullable: true, + }) + public Date!: Date; + + @Documentation('Valor') + @Column({ + name: 'PAYMENTADJUSTMENT_VALOR', + type: 'date', + nullable: true, + }) + public Valor!: Date; + + @Documentation('Amount') + @Column({ + name: 'PAYMENTADJUSTMENT_AMOUNT', + type: 'big_decimal', + precision: 16, + scale: 2, + nullable: true, + }) + public Amount!: number; + + @Documentation('Currency') + @Column({ + name: 'PAYMENTADJUSTMENT_CURRENCY', + type: 'integer', + nullable: true, + }) + public Currency!: number; + + @Documentation('Company') + @Column({ + name: 'PAYMENTADJUSTMENT_COMPANY', + type: 'integer', + nullable: true, + }) + public Company!: number; + + @Documentation('Reason') + @Column({ + name: 'PAYMENTADJUSTMENT_REASON', + type: 'string', + length: 100, + nullable: true, + }) + public Reason?: string; + + @Documentation('UUID') + @Column({ + name: 'PAYMENTADJUSTMENT_UUID', + type: 'string', + length: 36, + nullable: true, + }) + public UUID?: string; + +} + +(new PaymentAdjustmentEntity()); diff --git a/codbex-payments/gen/codbex-payments/data/PaymentAdjustment/PaymentAdjustmentRepository.ts b/codbex-payments/gen/codbex-payments/data/PaymentAdjustment/PaymentAdjustmentRepository.ts new file mode 100644 index 0000000..e72bae2 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/PaymentAdjustment/PaymentAdjustmentRepository.ts @@ -0,0 +1,35 @@ +import { Repository, EntityEvent, EntityConstructor } from '@aerokit/sdk/db' +import { Component } from '@aerokit/sdk/component' +import { Producer } from '@aerokit/sdk/messaging' +import { Extensions } from '@aerokit/sdk/extensions' +import { PaymentAdjustmentEntity } from './PaymentAdjustmentEntity' + +@Component('PaymentAdjustmentRepository') +export class PaymentAdjustmentRepository extends Repository { + + constructor() { + super((PaymentAdjustmentEntity as EntityConstructor)); + } + + public override create(entity: PaymentAdjustmentEntity): string | number { + entity.UUID = require("sdk/utils/uuid").random(); + return super.create(entity); + } + + public override upsert(entity: PaymentAdjustmentEntity): string | number { + entity.UUID = require("sdk/utils/uuid").random(); + return super.upsert(entity); + } + + protected override async triggerEvent(data: EntityEvent): Promise { + const triggerExtensions = await Extensions.loadExtensionModules('codbex-payments-PaymentAdjustment-PaymentAdjustment', ['trigger']); + triggerExtensions.forEach(triggerExtension => { + try { + triggerExtension.trigger(data); + } catch (error) { + console.error(error); + } + }); + Producer.topic('codbex-payments-PaymentAdjustment-PaymentAdjustment').send(JSON.stringify(data)); + } +} diff --git a/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecord.extensionpoint b/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecord.extensionpoint new file mode 100644 index 0000000..b1251db --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecord.extensionpoint @@ -0,0 +1,4 @@ +{ + "name": "codbex-payments-PaymentRecord-PaymentRecord", + "description": "Extension Point for the codbex-payments-PaymentRecord-PaymentRecord entity" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecordEntity.ts b/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecordEntity.ts new file mode 100644 index 0000000..e4cb88b --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecordEntity.ts @@ -0,0 +1,153 @@ +import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' + +@Entity('PaymentRecordEntity') +@Table('CODBEX_PAYMENTRECORD') +@Documentation('PaymentRecord entity mapping') +export class PaymentRecordEntity { + + @Id() + @Generated('sequence') + @Documentation('Id') + @Column({ + name: 'PAYMENTRECORD_ID', + type: 'integer', + }) + public Id?: number; + + @Documentation('Date') + @Column({ + name: 'PAYMENTRECORD_DATE', + type: 'date', + }) + public Date!: Date; + + @Documentation('Valor') + @Column({ + name: 'PAYMENTRECORD_VALOR', + type: 'date', + }) + public Valor!: Date; + + @Documentation('CompanyIBAN') + @Column({ + name: 'PAYMENTRECORD_COMPANYIBAN', + type: 'string', + length: 34, + nullable: true, + }) + public CompanyIBAN?: string; + + @Documentation('CounterpartyIBAN') + @Column({ + name: 'PAYMENTRECORD_COUNTERPARTYIBAN', + type: 'string', + length: 34, + nullable: true, + }) + public CounterpartyIBAN?: string; + + @Documentation('CounterpartyName') + @Column({ + name: 'PAYMENTRECORD_COUNTERPARTYNAME', + type: 'string', + length: 100, + nullable: true, + }) + public CounterpartyName?: string; + + @Documentation('Amount') + @Column({ + name: 'PAYMENTRECORD_AMOUNT', + type: 'big_decimal', + precision: 16, + scale: 2, + nullable: true, + }) + public Amount?: number; + + @Documentation('Currency') + @Column({ + name: 'PAYMENTRECORD_CURRENCY', + type: 'integer', + nullable: true, + }) + public Currency?: number; + + @Documentation('Reason') + @Column({ + name: 'PAYMENTRECORD_REASON', + type: 'string', + length: 100, + nullable: true, + }) + public Reason?: string; + + @Documentation('Description') + @Column({ + name: 'PAYMENTRECORD_DESCRIPTION', + type: 'string', + length: 100, + nullable: true, + }) + public Description?: string; + + @Documentation('Company') + @Column({ + name: 'PAYMENTRECORD_COMPANY', + type: 'integer', + nullable: true, + }) + public Company?: number; + + @Documentation('PaymentRecordDirection') + @Column({ + name: 'PAYMENTRECORD_PAYMENTRECORDDIRECTION', + type: 'integer', + nullable: true, + }) + public PaymentRecordDirection?: number; + + @Documentation('PaymentStatus') + @Column({ + name: 'PAYMENTRECORD_PAYMENTSTATUS', + type: 'integer', + nullable: true, + }) + public PaymentStatus?: number; + + @Documentation('PaymentType') + @Column({ + name: 'PAYMENTRECORD_PAYMENTTYPE', + type: 'integer', + nullable: true, + }) + public PaymentType?: number; + + @Documentation('UUID') + @Column({ + name: 'PAYMENTRECORD_UUID', + type: 'string', + length: 36, + }) + public UUID?: string; + + @Documentation('Reference') + @Column({ + name: 'PAYMENTRECORD_REFERENCE', + type: 'string', + length: 36, + nullable: true, + }) + public Reference?: string; + + @Documentation('Deleted') + @Column({ + name: 'PAYMENTRECORD_DELETED', + type: 'boolean', + nullable: true, + }) + public Deleted?: boolean; + +} + +(new PaymentRecordEntity()); diff --git a/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecordRepository.ts b/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecordRepository.ts new file mode 100644 index 0000000..42d5761 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/PaymentRecord/PaymentRecordRepository.ts @@ -0,0 +1,35 @@ +import { Repository, EntityEvent, EntityConstructor } from '@aerokit/sdk/db' +import { Component } from '@aerokit/sdk/component' +import { Producer } from '@aerokit/sdk/messaging' +import { Extensions } from '@aerokit/sdk/extensions' +import { PaymentRecordEntity } from './PaymentRecordEntity' + +@Component('PaymentRecordRepository') +export class PaymentRecordRepository extends Repository { + + constructor() { + super((PaymentRecordEntity as EntityConstructor)); + } + + public override create(entity: PaymentRecordEntity): string | number { + entity.UUID = require("sdk/utils/uuid").random(); + return super.create(entity); + } + + public override upsert(entity: PaymentRecordEntity): string | number { + entity.UUID = require("sdk/utils/uuid").random(); + return super.upsert(entity); + } + + protected override async triggerEvent(data: EntityEvent): Promise { + const triggerExtensions = await Extensions.loadExtensionModules('codbex-payments-PaymentRecord-PaymentRecord', ['trigger']); + triggerExtensions.forEach(triggerExtension => { + try { + triggerExtension.trigger(data); + } catch (error) { + console.error(error); + } + }); + Producer.topic('codbex-payments-PaymentRecord-PaymentRecord').send(JSON.stringify(data)); + } +} diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirection.extensionpoint b/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirection.extensionpoint new file mode 100644 index 0000000..ad1c071 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirection.extensionpoint @@ -0,0 +1,4 @@ +{ + "name": "codbex-payments-Settings-PaymentRecordDirection", + "description": "Extension Point for the codbex-payments-Settings-PaymentRecordDirection entity" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionEntity.ts b/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionEntity.ts new file mode 100644 index 0000000..ab8e265 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionEntity.ts @@ -0,0 +1,28 @@ +import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' + +@Entity('PaymentRecordDirectionEntity') +@Table('CODBEX_PAYMENTRECORDDIRECTION') +@Documentation('PaymentRecordDirection entity mapping') +export class PaymentRecordDirectionEntity { + + @Id() + @Generated('sequence') + @Documentation('Id') + @Column({ + name: 'PAYMENTRECORDDIRECTION_ID', + type: 'integer', + }) + public Id?: number; + + @Documentation('Name') + @Column({ + name: 'PAYMENTRECORDDIRECTION_NAME', + type: 'string', + length: 20, + nullable: true, + }) + public Name?: string; + +} + +(new PaymentRecordDirectionEntity()); diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionRepository.ts b/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionRepository.ts new file mode 100644 index 0000000..91f7202 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/Settings/PaymentRecordDirectionRepository.ts @@ -0,0 +1,25 @@ +import { Repository, EntityEvent, EntityConstructor } from '@aerokit/sdk/db' +import { Component } from '@aerokit/sdk/component' +import { Producer } from '@aerokit/sdk/messaging' +import { Extensions } from '@aerokit/sdk/extensions' +import { PaymentRecordDirectionEntity } from './PaymentRecordDirectionEntity' + +@Component('PaymentRecordDirectionRepository') +export class PaymentRecordDirectionRepository extends Repository { + + constructor() { + super((PaymentRecordDirectionEntity as EntityConstructor)); + } + + protected override async triggerEvent(data: EntityEvent): Promise { + const triggerExtensions = await Extensions.loadExtensionModules('codbex-payments-Settings-PaymentRecordDirection', ['trigger']); + triggerExtensions.forEach(triggerExtension => { + try { + triggerExtension.trigger(data); + } catch (error) { + console.error(error); + } + }); + Producer.topic('codbex-payments-Settings-PaymentRecordDirection').send(JSON.stringify(data)); + } +} diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatus.extensionpoint b/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatus.extensionpoint new file mode 100644 index 0000000..19c4117 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatus.extensionpoint @@ -0,0 +1,4 @@ +{ + "name": "codbex-payments-Settings-PaymentStatus", + "description": "Extension Point for the codbex-payments-Settings-PaymentStatus entity" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatusEntity.ts b/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatusEntity.ts new file mode 100644 index 0000000..6580b77 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatusEntity.ts @@ -0,0 +1,28 @@ +import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' + +@Entity('PaymentStatusEntity') +@Table('CODBEX_PAYMENTSTATUS') +@Documentation('PaymentStatus entity mapping') +export class PaymentStatusEntity { + + @Id() + @Generated('sequence') + @Documentation('Id') + @Column({ + name: 'PAYMENTSTATUS_ID', + type: 'integer', + }) + public Id?: number; + + @Documentation('Name') + @Column({ + name: 'PAYMENTSTATUS_NAME', + type: 'string', + length: 20, + nullable: true, + }) + public Name?: string; + +} + +(new PaymentStatusEntity()); diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatusRepository.ts b/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatusRepository.ts new file mode 100644 index 0000000..8a37a8b --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/Settings/PaymentStatusRepository.ts @@ -0,0 +1,25 @@ +import { Repository, EntityEvent, EntityConstructor } from '@aerokit/sdk/db' +import { Component } from '@aerokit/sdk/component' +import { Producer } from '@aerokit/sdk/messaging' +import { Extensions } from '@aerokit/sdk/extensions' +import { PaymentStatusEntity } from './PaymentStatusEntity' + +@Component('PaymentStatusRepository') +export class PaymentStatusRepository extends Repository { + + constructor() { + super((PaymentStatusEntity as EntityConstructor)); + } + + protected override async triggerEvent(data: EntityEvent): Promise { + const triggerExtensions = await Extensions.loadExtensionModules('codbex-payments-Settings-PaymentStatus', ['trigger']); + triggerExtensions.forEach(triggerExtension => { + try { + triggerExtension.trigger(data); + } catch (error) { + console.error(error); + } + }); + Producer.topic('codbex-payments-Settings-PaymentStatus').send(JSON.stringify(data)); + } +} diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentType.extensionpoint b/codbex-payments/gen/codbex-payments/data/Settings/PaymentType.extensionpoint new file mode 100644 index 0000000..5e9fecc --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/Settings/PaymentType.extensionpoint @@ -0,0 +1,4 @@ +{ + "name": "codbex-payments-Settings-PaymentType", + "description": "Extension Point for the codbex-payments-Settings-PaymentType entity" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentTypeEntity.ts b/codbex-payments/gen/codbex-payments/data/Settings/PaymentTypeEntity.ts new file mode 100644 index 0000000..6158576 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/Settings/PaymentTypeEntity.ts @@ -0,0 +1,28 @@ +import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' + +@Entity('PaymentTypeEntity') +@Table('CODBEX_PAYMENTTYPE') +@Documentation('PaymentType entity mapping') +export class PaymentTypeEntity { + + @Id() + @Generated('sequence') + @Documentation('Id') + @Column({ + name: 'PAYMENTTYPE_ID', + type: 'integer', + }) + public Id?: number; + + @Documentation('Name') + @Column({ + name: 'PAYMENTTYPE_NAME', + type: 'string', + length: 20, + nullable: true, + }) + public Name?: string; + +} + +(new PaymentTypeEntity()); diff --git a/codbex-payments/gen/codbex-payments/data/Settings/PaymentTypeRepository.ts b/codbex-payments/gen/codbex-payments/data/Settings/PaymentTypeRepository.ts new file mode 100644 index 0000000..b8ac15c --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/Settings/PaymentTypeRepository.ts @@ -0,0 +1,25 @@ +import { Repository, EntityEvent, EntityConstructor } from '@aerokit/sdk/db' +import { Component } from '@aerokit/sdk/component' +import { Producer } from '@aerokit/sdk/messaging' +import { Extensions } from '@aerokit/sdk/extensions' +import { PaymentTypeEntity } from './PaymentTypeEntity' + +@Component('PaymentTypeRepository') +export class PaymentTypeRepository extends Repository { + + constructor() { + super((PaymentTypeEntity as EntityConstructor)); + } + + protected override async triggerEvent(data: EntityEvent): Promise { + const triggerExtensions = await Extensions.loadExtensionModules('codbex-payments-Settings-PaymentType', ['trigger']); + triggerExtensions.forEach(triggerExtension => { + try { + triggerExtension.trigger(data); + } catch (error) { + console.error(error); + } + }); + Producer.topic('codbex-payments-Settings-PaymentType').send(JSON.stringify(data)); + } +} diff --git a/codbex-payments/gen/codbex-payments/data/SupplierPayment/SupplierPayment.extensionpoint b/codbex-payments/gen/codbex-payments/data/SupplierPayment/SupplierPayment.extensionpoint new file mode 100644 index 0000000..b8295aa --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/SupplierPayment/SupplierPayment.extensionpoint @@ -0,0 +1,4 @@ +{ + "name": "codbex-payments-SupplierPayment-SupplierPayment", + "description": "Extension Point for the codbex-payments-SupplierPayment-SupplierPayment entity" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/data/SupplierPayment/SupplierPaymentEntity.ts b/codbex-payments/gen/codbex-payments/data/SupplierPayment/SupplierPaymentEntity.ts new file mode 100644 index 0000000..d79d986 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/SupplierPayment/SupplierPaymentEntity.ts @@ -0,0 +1,135 @@ +import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' + +@Entity('SupplierPaymentEntity') +@Table('CODBEX_SUPPLIERPAYMENT') +@Documentation('SupplierPayment entity mapping') +export class SupplierPaymentEntity { + + @Id() + @Generated('sequence') + @Documentation('Id') + @Column({ + name: 'SUPPLIERPAYMENT_ID', + type: 'integer', + }) + public Id?: number; + + @Documentation('Supplier') + @Column({ + name: 'SUPPLIERPAYMENT_SUPPLIER', + type: 'integer', + nullable: true, + }) + public Supplier?: number; + + @Documentation('Date') + @Column({ + name: 'SUPPLIERPAYMENT_DATE', + type: 'date', + }) + public Date!: Date; + + @Documentation('Valor') + @Column({ + name: 'SUPPLIERPAYMENT_VALOR', + type: 'date', + }) + public Valor!: Date; + + @Documentation('CompanyIBAN') + @Column({ + name: 'SUPPLIERPAYMENT_COMPANYIBAN', + type: 'string', + length: 34, + nullable: true, + }) + public CompanyIBAN?: string; + + @Documentation('CounterpartyIBAN') + @Column({ + name: 'SUPPLIERPAYMENT_COUNTERPARTYIBAN', + type: 'string', + length: 34, + nullable: true, + }) + public CounterpartyIBAN?: string; + + @Documentation('CounterpartyName') + @Column({ + name: 'SUPPLIERPAYMENT_COUNTERPARTYNAME', + type: 'string', + length: 100, + nullable: true, + }) + public CounterpartyName?: string; + + @Documentation('Amount') + @Column({ + name: 'SUPPLIERPAYMENT_AMOUNT', + type: 'big_decimal', + precision: 16, + scale: 2, + }) + public Amount!: number; + + @Documentation('Currency') + @Column({ + name: 'SUPPLIERPAYMENT_CURRENCY', + type: 'integer', + }) + public Currency!: number; + + @Documentation('Reason') + @Column({ + name: 'SUPPLIERPAYMENT_REASON', + type: 'string', + length: 100, + }) + public Reason!: string; + + @Documentation('Description') + @Column({ + name: 'SUPPLIERPAYMENT_DESCRIPTION', + type: 'string', + length: 100, + nullable: true, + }) + public Description?: string; + + @Documentation('Company') + @Column({ + name: 'SUPPLIERPAYMENT_COMPANY', + type: 'integer', + nullable: true, + }) + public Company?: number; + + @Documentation('Name') + @Column({ + name: 'SUPPLIERPAYMENT_NAME', + type: 'string', + length: 20, + nullable: true, + }) + public Name?: string; + + @Documentation('UUID') + @Column({ + name: 'SUPPLIERPAYMENT_UUID', + type: 'string', + length: 36, + }) + public UUID?: string; + + @Documentation('Reference') + @Column({ + name: 'SUPPLIERPAYMENT_REFERENCE', + type: 'string', + length: 36, + nullable: true, + }) + public Reference?: string; + +} + +(new SupplierPaymentEntity()); diff --git a/codbex-payments/gen/codbex-payments/data/SupplierPayment/SupplierPaymentRepository.ts b/codbex-payments/gen/codbex-payments/data/SupplierPayment/SupplierPaymentRepository.ts new file mode 100644 index 0000000..b783480 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/SupplierPayment/SupplierPaymentRepository.ts @@ -0,0 +1,39 @@ +import { Repository, EntityEvent, EntityConstructor } from '@aerokit/sdk/db' +import { Component } from '@aerokit/sdk/component' +import { Producer } from '@aerokit/sdk/messaging' +import { Extensions } from '@aerokit/sdk/extensions' +import { SupplierPaymentEntity } from './SupplierPaymentEntity' +// custom imports +import { NumberGeneratorService } from "/codbex-number-generator/service/generator"; + +@Component('SupplierPaymentRepository') +export class SupplierPaymentRepository extends Repository { + + constructor() { + super((SupplierPaymentEntity as EntityConstructor)); + } + + public override create(entity: SupplierPaymentEntity): string | number { + entity.Name = new NumberGeneratorService().generate(19); + entity.UUID = require("sdk/utils/uuid").random(); + return super.create(entity); + } + + public override upsert(entity: SupplierPaymentEntity): string | number { + entity.Name = new NumberGeneratorService().generate(19); + entity.UUID = require("sdk/utils/uuid").random(); + return super.upsert(entity); + } + + protected override async triggerEvent(data: EntityEvent): Promise { + const triggerExtensions = await Extensions.loadExtensionModules('codbex-payments-SupplierPayment-SupplierPayment', ['trigger']); + triggerExtensions.forEach(triggerExtension => { + try { + triggerExtension.trigger(data); + } catch (error) { + console.error(error); + } + }); + Producer.topic('codbex-payments-SupplierPayment-SupplierPayment').send(JSON.stringify(data)); + } +} diff --git a/codbex-payments/gen/codbex-payments/data/Suppliers/Supplier.extensionpoint b/codbex-payments/gen/codbex-payments/data/Suppliers/Supplier.extensionpoint new file mode 100644 index 0000000..eec18c7 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/Suppliers/Supplier.extensionpoint @@ -0,0 +1,4 @@ +{ + "name": "codbex-payments-Suppliers-Supplier", + "description": "Extension Point for the codbex-payments-Suppliers-Supplier entity" +} \ No newline at end of file diff --git a/codbex-payments/gen/codbex-payments/data/Suppliers/SupplierEntity.ts b/codbex-payments/gen/codbex-payments/data/Suppliers/SupplierEntity.ts new file mode 100644 index 0000000..575d864 --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/Suppliers/SupplierEntity.ts @@ -0,0 +1,107 @@ +import { Entity, Table, Id, Generated, Column, Documentation } from '@aerokit/sdk/db' + +@Entity('SupplierEntity') +@Table('CODBEX_SUPPLIER') +@Documentation('Supplier entity mapping') +export class SupplierEntity { + + @Id() + @Generated('sequence') + @Documentation('Id') + @Column({ + name: 'SUPPLIER_ID', + type: 'integer', + }) + public Id?: number; + + @Documentation('Name') + @Column({ + name: 'SUPPLIER_NAME', + type: 'string', + length: 100, + nullable: true, + }) + public Name!: string; + + @Documentation('Address') + @Column({ + name: 'SUPPLIER_ADDRESS', + type: 'string', + length: 200, + nullable: true, + }) + public Address!: string; + + @Documentation('PostalCode') + @Column({ + name: 'SUPPLIER_POSTALCODE', + type: 'string', + length: 20, + nullable: true, + }) + public PostalCode?: string; + + @Documentation('Email') + @Column({ + name: 'SUPPLIER_EMAIL', + type: 'string', + length: 100, + nullable: true, + }) + public Email!: string; + + @Documentation('Phone') + @Column({ + name: 'SUPPLIER_PHONE', + type: 'string', + length: 20, + nullable: true, + }) + public Phone?: string; + + @Documentation('Fax') + @Column({ + name: 'SUPPLIER_FAX', + type: 'string', + length: 20, + nullable: true, + }) + public Fax?: string; + + @Documentation('Country') + @Column({ + name: 'SUPPLIER_COUNTRY', + type: 'integer', + nullable: true, + }) + public Country!: number; + + @Documentation('City') + @Column({ + name: 'SUPPLIER_CITY', + type: 'integer', + nullable: true, + }) + public City!: number; + + @Documentation('TIN') + @Column({ + name: 'SUPPLIER_TIN', + type: 'string', + length: 20, + nullable: true, + }) + public TIN?: string; + + @Documentation('IBAN') + @Column({ + name: 'SUPPLIER_IBAN', + type: 'string', + length: 36, + nullable: true, + }) + public IBAN?: string; + +} + +(new SupplierEntity()); diff --git a/codbex-payments/gen/codbex-payments/data/Suppliers/SupplierRepository.ts b/codbex-payments/gen/codbex-payments/data/Suppliers/SupplierRepository.ts new file mode 100644 index 0000000..83abe3c --- /dev/null +++ b/codbex-payments/gen/codbex-payments/data/Suppliers/SupplierRepository.ts @@ -0,0 +1,25 @@ +import { Repository, EntityEvent, EntityConstructor } from '@aerokit/sdk/db' +import { Component } from '@aerokit/sdk/component' +import { Producer } from '@aerokit/sdk/messaging' +import { Extensions } from '@aerokit/sdk/extensions' +import { SupplierEntity } from './SupplierEntity' + +@Component('SupplierRepository') +export class SupplierRepository extends Repository { + + constructor() { + super((SupplierEntity as EntityConstructor)); + } + + protected override async triggerEvent(data: EntityEvent): Promise { + const triggerExtensions = await Extensions.loadExtensionModules('codbex-payments-Suppliers-Supplier', ['trigger']); + triggerExtensions.forEach(triggerExtension => { + try { + triggerExtension.trigger(data); + } catch (error) { + console.error(error); + } + }); + Producer.topic('codbex-payments-Suppliers-Supplier').send(JSON.stringify(data)); + } +} diff --git a/codbex-payments/gen/codbex-payments/schema/codbex-payments.schema b/codbex-payments/gen/codbex-payments/schema/codbex-payments.schema index 42542ee..a80cf81 100644 --- a/codbex-payments/gen/codbex-payments/schema/codbex-payments.schema +++ b/codbex-payments/gen/codbex-payments/schema/codbex-payments.schema @@ -45,7 +45,7 @@ }, { "type": "DECIMAL", - "length": 18, + "length": 16, "precision": "16", "scale": "2", "name": "CUSTOMERPAYMENT_AMOUNT" @@ -79,6 +79,7 @@ { "type": "VARCHAR", "length": 36, + "unique": true, "name": "CUSTOMERPAYMENT_UUID" }, { @@ -138,7 +139,7 @@ }, { "type": "DECIMAL", - "length": 18, + "length": 16, "precision": "16", "scale": "2", "name": "SUPPLIERPAYMENT_AMOUNT" @@ -172,6 +173,7 @@ { "type": "VARCHAR", "length": 36, + "unique": true, "name": "SUPPLIERPAYMENT_UUID" }, { @@ -221,7 +223,7 @@ }, { "type": "DECIMAL", - "length": 18, + "length": 16, "precision": "16", "scale": "2", "name": "EMPLOYEEPAYMENT_AMOUNT" @@ -255,6 +257,7 @@ { "type": "VARCHAR", "length": 36, + "unique": true, "name": "EMPLOYEEPAYMENT_UUID" }, { @@ -304,7 +307,7 @@ }, { "type": "DECIMAL", - "length": 18, + "length": 16, "precision": "16", "scale": "2", "nullable": true, @@ -350,6 +353,7 @@ { "type": "VARCHAR", "length": 36, + "unique": true, "name": "PAYMENTRECORD_UUID" }, { @@ -445,7 +449,7 @@ }, { "type": "DECIMAL", - "length": 18, + "length": 16, "precision": "16", "scale": "2", "nullable": true, diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/controller.js b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/controller.js index 67120e7..90fb974 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/controller.js @@ -1,9 +1,22 @@ -angular.module('page', ['blimpKit', 'platformView', 'EntityService']) +angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntityService']) .config(['EntityServiceProvider', (EntityServiceProvider) => { - EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts'; + EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentController.ts'; }]) - .controller('PageController', ($scope, $http, EntityService, Extensions, ButtonStates) => { + .controller('PageController', ($scope, $http, EntityService, Extensions, LocaleService, ButtonStates) => { const Dialogs = new DialogHub(); + let translated = { + yes: 'Yes', + no: 'No', + deleteConfirm: 'Are you sure you want to delete CustomerPayment? This action cannot be undone.', + deleteTitle: 'Delete CustomerPayment?' + }; + + LocaleService.onInit(() => { + translated.yes = LocaleService.t('codbex-payments:codbex-payments-model.defaults.yes'); + translated.no = LocaleService.t('codbex-payments:codbex-payments-model.defaults.no'); + translated.deleteTitle = LocaleService.t('codbex-payments:codbex-payments-model.defaults.deleteTitle', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)' }); + translated.deleteConfirm = LocaleService.t('codbex-payments:codbex-payments-model.messages.deleteConfirm', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)' }); + }); $scope.dataPage = 1; $scope.dataCount = 0; $scope.dataOffset = 0; @@ -18,8 +31,10 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) $scope.triggerPageAction = (action) => { Dialogs.showWindow({ hasHeader: true, - title: action.label, + title: LocaleService.t(action.translation.key, action.translation.options, action.label), path: action.path, + maxWidth: action.maxWidth, + maxHeight: action.maxHeight, closeButton: true }); }; @@ -65,7 +80,9 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) filter = $scope.filter; } if (!filter) { - filter = {}; + filter = { + $filter: {} + }; } $scope.selectedEntity = null; EntityService.count(filter).then((resp) => { @@ -73,11 +90,11 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) $scope.dataCount = resp.data.count; } $scope.dataPages = Math.ceil($scope.dataCount / $scope.dataLimit); - filter.$offset = ($scope.dataPage - 1) * $scope.dataLimit; - filter.$limit = $scope.dataLimit; + filter.$filter.offset = ($scope.dataPage - 1) * $scope.dataLimit; + filter.$filter.limit = $scope.dataLimit; if ($scope.dataReset) { - filter.$offset = 0; - filter.$limit = $scope.dataPage * $scope.dataLimit; + filter.$filter.offset = 0; + filter.$filter.limit = $scope.dataPage * $scope.dataLimit; } EntityService.search(filter).then((response) => { @@ -99,8 +116,8 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) }, (error) => { const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'CustomerPayment', - message: `Unable to list/filter CustomerPayment: '${message}'`, + title: LocaleService.t('codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT'), + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLF', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)', message: message }), type: AlertTypes.Error }); console.error('EntityService:', error); @@ -108,8 +125,8 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) }, (error) => { const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'CustomerPayment', - message: `Unable to count CustomerPayment: '${message}'`, + title: LocaleService.t('codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT'), + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCount', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)', message: message }), type: AlertTypes.Error }); console.error('EntityService:', error); @@ -156,15 +173,15 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) $scope.deleteEntity = () => { let id = $scope.selectedEntity.Id; Dialogs.showDialog({ - title: 'Delete CustomerPayment?', - message: `Are you sure you want to delete CustomerPayment? This action cannot be undone.`, + title: translated.deleteTitle, + message: translated.deleteConfirm, buttons: [{ id: 'delete-btn-yes', state: ButtonStates.Emphasized, - label: 'Yes', + label: translated.yes, }, { id: 'delete-btn-no', - label: 'No', + label: translated.no, }], closeButton: false }).then((buttonId) => { @@ -176,8 +193,8 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) }, (error) => { const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'CustomerPayment', - message: `Unable to delete CustomerPayment: '${message}'`, + title: LocaleService.t('codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT'), + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToDelete', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)', message: message }), type: AlertTypes.Error }); console.error('EntityService:', error); @@ -206,7 +223,7 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) $scope.optionsPaymentMethod = []; - $http.get('/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerService.ts').then((response) => { + $http.get('/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerController.ts').then((response) => { $scope.optionsCustomer = response.data.map(e => ({ value: e.Id, text: e.Name @@ -216,12 +233,12 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) const message = error.data ? error.data.message : ''; Dialogs.showAlert({ title: 'Customer', - message: `Unable to load data: '${message}'`, + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); - $http.get('/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts').then((response) => { + $http.get('/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts').then((response) => { $scope.optionsCurrency = response.data.map(e => ({ value: e.Id, text: e.Code @@ -231,12 +248,12 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) const message = error.data ? error.data.message : ''; Dialogs.showAlert({ title: 'Currency', - message: `Unable to load data: '${message}'`, + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); - $http.get('/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts').then((response) => { + $http.get('/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts').then((response) => { $scope.optionsCompany = response.data.map(e => ({ value: e.Id, text: e.Name @@ -246,12 +263,12 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) const message = error.data ? error.data.message : ''; Dialogs.showAlert({ title: 'Company', - message: `Unable to load data: '${message}'`, + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); - $http.get('/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodService.ts').then((response) => { + $http.get('/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodController.ts').then((response) => { $scope.optionsPaymentMethod = response.data.map(e => ({ value: e.Id, text: e.Name @@ -261,7 +278,7 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) const message = error.data ? error.data.message : ''; Dialogs.showAlert({ title: 'PaymentMethod', - message: `Unable to load data: '${message}'`, + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/controller.js b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/controller.js index 6f56087..162544a 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/controller.js @@ -1,4 +1,4 @@ -angular.module('page', ['blimpKit', 'platformView']).controller('PageController', ($scope, ViewParameters) => { +angular.module('page', ['blimpKit', 'platformView', 'platformLocale']).controller('PageController', ($scope, ViewParameters) => { const Dialogs = new DialogHub(); $scope.entity = {}; $scope.forms = { @@ -32,75 +32,83 @@ angular.module('page', ['blimpKit', 'platformView']).controller('PageController' let entity = $scope.entity; const filter = { $filter: { - equals: { - }, - notEquals: { - }, - contains: { - }, - greaterThan: { - }, - greaterThanOrEqual: { - }, - lessThan: { - }, - lessThanOrEqual: { - } - }, + conditions: [], + sorts: [], + limit: 20, + offset: 0 + } }; if (entity.Id !== undefined) { - filter.$filter.equals.Id = entity.Id; + const condition = { propertyName: 'Id', operator: 'EQ', value: entity.Id }; + filter.$filter.conditions.push(condition); } if (entity.Customer !== undefined) { - filter.$filter.equals.Customer = entity.Customer; + const condition = { propertyName: 'Customer', operator: 'EQ', value: entity.Customer }; + filter.$filter.conditions.push(condition); } if (entity.DateFrom) { - filter.$filter.greaterThanOrEqual.Date = entity.DateFrom; + const condition = { propertyName: 'Date', operator: 'GE', value: entity.DateFrom }; + filter.$filter.conditions.push(condition); } if (entity.DateTo) { - filter.$filter.lessThanOrEqual.Date = entity.DateTo; + const condition = { propertyName: 'Date', operator: 'LE', value: entity.DateTo }; + filter.$filter.conditions.push(condition); } if (entity.ValorFrom) { - filter.$filter.greaterThanOrEqual.Valor = entity.ValorFrom; + const condition = { propertyName: 'Valor', operator: 'GE', value: entity.ValorFrom }; + filter.$filter.conditions.push(condition); } if (entity.ValorTo) { - filter.$filter.lessThanOrEqual.Valor = entity.ValorTo; + const condition = { propertyName: 'Valor', operator: 'LE', value: entity.ValorTo }; + filter.$filter.conditions.push(condition); } if (entity.CompanyIBAN) { - filter.$filter.contains.CompanyIBAN = entity.CompanyIBAN; + const condition = { propertyName: 'CompanyIBAN', operator: 'LIKE', value: `%${entity.CompanyIBAN}%` }; + filter.$filter.conditions.push(condition); } if (entity.CounterpartyIBAN) { - filter.$filter.contains.CounterpartyIBAN = entity.CounterpartyIBAN; + const condition = { propertyName: 'CounterpartyIBAN', operator: 'LIKE', value: `%${entity.CounterpartyIBAN}%` }; + filter.$filter.conditions.push(condition); } if (entity.CounterpartyName) { - filter.$filter.contains.CounterpartyName = entity.CounterpartyName; + const condition = { propertyName: 'CounterpartyName', operator: 'LIKE', value: `%${entity.CounterpartyName}%` }; + filter.$filter.conditions.push(condition); } if (entity.Amount !== undefined) { - filter.$filter.equals.Amount = entity.Amount; + const condition = { propertyName: 'Amount', operator: 'EQ', value: entity.Amount }; + filter.$filter.conditions.push(condition); } if (entity.Currency !== undefined) { - filter.$filter.equals.Currency = entity.Currency; + const condition = { propertyName: 'Currency', operator: 'EQ', value: entity.Currency }; + filter.$filter.conditions.push(condition); } if (entity.Reason) { - filter.$filter.contains.Reason = entity.Reason; + const condition = { propertyName: 'Reason', operator: 'LIKE', value: `%${entity.Reason}%` }; + filter.$filter.conditions.push(condition); } if (entity.Description) { - filter.$filter.contains.Description = entity.Description; + const condition = { propertyName: 'Description', operator: 'LIKE', value: `%${entity.Description}%` }; + filter.$filter.conditions.push(condition); } if (entity.Company !== undefined) { - filter.$filter.equals.Company = entity.Company; + const condition = { propertyName: 'Company', operator: 'EQ', value: entity.Company }; + filter.$filter.conditions.push(condition); } if (entity.Name) { - filter.$filter.contains.Name = entity.Name; + const condition = { propertyName: 'Name', operator: 'LIKE', value: `%${entity.Name}%` }; + filter.$filter.conditions.push(condition); } if (entity.UUID) { - filter.$filter.contains.UUID = entity.UUID; + const condition = { propertyName: 'UUID', operator: 'LIKE', value: `%${entity.UUID}%` }; + filter.$filter.conditions.push(condition); } if (entity.Reference) { - filter.$filter.contains.Reference = entity.Reference; + const condition = { propertyName: 'Reference', operator: 'LIKE', value: `%${entity.Reference}%` }; + filter.$filter.conditions.push(condition); } if (entity.PaymentMethod !== undefined) { - filter.$filter.equals.PaymentMethod = entity.PaymentMethod; + const condition = { propertyName: 'PaymentMethod', operator: 'EQ', value: entity.PaymentMethod }; + filter.$filter.conditions.push(condition); } Dialogs.postMessage({ topic: 'codbex-payments.CustomerPayment.CustomerPayment.entitySearch', data: { entity: entity, diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/index.html b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/index.html index f85dc84..8cc10f5 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/index.html +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/index.html @@ -17,10 +17,10 @@ {{ errorMessage }} - +
- Customer + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_CUSTOMER' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputSearch' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_CUSTOMER)'} }}" + btn-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.showHide' | t:{'name':'Customer'} }}" list-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.options' | t:{'name':'Customer'} }}">
- From Date + {{ 'codbex-payments:codbex-payments-model.defaults.from' | t:{'text':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_DATE)'} }}
- +
- To Date + {{ 'codbex-payments:codbex-payments-model.defaults.to' | t:{'text':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_DATE)'} }}
- +
- From Valor + {{ 'codbex-payments:codbex-payments-model.defaults.from' | t:{'text':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_VALOR)'} }}
- +
- To Valor + {{ 'codbex-payments:codbex-payments-model.defaults.to' | t:{'text':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_VALOR)'} }}
- +
- CompanyIBAN + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COMPANYIBAN' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COMPANYIBAN)'} }}">
- CounterpartyIBAN + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COUNTERPARTYIBAN' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COUNTERPARTYIBAN)'} }}">
- CounterpartyName + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COUNTERPARTYNAME' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COUNTERPARTYNAME)'} }}">
- Amount + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_AMOUNT' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_AMOUNT)'} }}">
- Currency + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_CURRENCY' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputSearch' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_CURRENCY)'} }}" + btn-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.showHide' | t:{'name':'Currency'} }}" list-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.options' | t:{'name':'Currency'} }}">
- Reason + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_REASON' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_REASON)'} }}">
- Description + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_DESCRIPTION' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_DESCRIPTION)'} }}">
- Company + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COMPANY' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputSearch' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COMPANY)'} }}" + btn-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.showHide' | t:{'name':'Company'} }}" list-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.options' | t:{'name':'Company'} }}">
- Name + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_NAME' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_NAME)'} }}">
- UUID + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_UUID' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_UUID)'} }}">
- Reference + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_REFERENCE' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_REFERENCE)'} }}">
- PaymentMethod + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_PAYMENTMETHOD' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputSearch' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_PAYMENTMETHOD)'} }}" + btn-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.showHide' | t:{'name':'PaymentMethod'} }}" list-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.options' | t:{'name':'PaymentMethod'} }}">
@@ -290,13 +290,13 @@ - + - + - + diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.js b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.js index 7bc45d9..796eec6 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.js +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/view.js @@ -6,6 +6,12 @@ const viewData = { id: 'CustomerPayment-filter', label: 'CustomerPayment Filter', + translation: { + key: 'codbex-payments:codbex-payments-model.extName', + options: { + content: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT) $t(codbex-payments:codbex-payments-model.defaults.filter)', + } + }, path: '/services/web/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-filter/index.html', perspectiveName: 'CustomerPayment' }; diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/controller.js b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/controller.js index e1ce1fc..539bd52 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/controller.js @@ -1,9 +1,13 @@ -angular.module('page', ['blimpKit', 'platformView', 'EntityService']) +angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntityService']) .config(['EntityServiceProvider', (EntityServiceProvider) => { - EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts'; + EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentController.ts'; }]) - .controller('PageController', ($scope, $http, ViewParameters, EntityService) => { + .controller('PageController', ($scope, $http, ViewParameters, LocaleService, EntityService) => { const Dialogs = new DialogHub(); + const Notifications = new NotificationHub(); + let description = 'Description'; + let propertySuccessfullyCreated = 'CustomerPayment successfully created'; + let propertySuccessfullyUpdated = 'CustomerPayment successfully updated'; $scope.entity = {}; $scope.forms = { details: {}, @@ -15,6 +19,15 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) }; $scope.action = 'select'; + LocaleService.onInit(() => { + description = LocaleService.t('codbex-payments:codbex-payments-model.defaults.description'); + $scope.formHeaders.select = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadSelect', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)' }); + $scope.formHeaders.create = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadCreate', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)' }); + $scope.formHeaders.update = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadUpdate', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)' }); + propertySuccessfullyCreated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyCreated', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)' }); + propertySuccessfullyUpdated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyUpdated', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)' }); + }); + let params = ViewParameters.get(); if (Object.keys(params).length) { $scope.action = params.action; @@ -38,16 +51,16 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) entity[$scope.selectedMainEntityKey] = $scope.selectedMainEntityId; EntityService.create(entity).then((response) => { Dialogs.postMessage({ topic: 'codbex-payments.CustomerPayment.CustomerPayment.entityCreated', data: response.data }); - Dialogs.showAlert({ - title: 'CustomerPayment', - message: 'CustomerPayment successfully created', - type: AlertTypes.Success + Notifications.show({ + title: LocaleService.t('codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT'), + description: propertySuccessfullyCreated, + type: 'positive' }); $scope.cancel(); }, (error) => { const message = error.data ? error.data.message : ''; $scope.$evalAsync(() => { - $scope.errorMessage = `Unable to create CustomerPayment: '${message}'`; + $scope.errorMessage = LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCreate', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)', message: message }); }); console.error('EntityService:', error); }); @@ -60,25 +73,25 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) EntityService.update(id, entity).then((response) => { Dialogs.postMessage({ topic: 'codbex-payments.CustomerPayment.CustomerPayment.entityUpdated', data: response.data }); $scope.cancel(); - Dialogs.showAlert({ - title: 'CustomerPayment', - message: 'CustomerPayment successfully updated', - type: AlertTypes.Success + Notifications.show({ + title: LocaleService.t('codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT'), + description: propertySuccessfullyUpdated, + type: 'positive' }); }, (error) => { const message = error.data ? error.data.message : ''; $scope.$evalAsync(() => { - $scope.errorMessage = `Unable to update CustomerPayment: '${message}'`; + $scope.errorMessage = LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToUpdate', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)', message: message }); }); console.error('EntityService:', error); }); }; - $scope.serviceCustomer = '/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerService.ts'; + $scope.serviceCustomer = '/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerController.ts'; $scope.optionsCustomer = []; - $http.get('/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerService.ts').then((response) => { + $http.get('/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerController.ts').then((response) => { $scope.optionsCustomer = response.data.map(e => ({ value: e.Id, text: e.Name @@ -88,15 +101,15 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) const message = error.data ? error.data.message : ''; Dialogs.showAlert({ title: 'Customer', - message: `Unable to load data: '${message}'`, + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); - $scope.serviceCurrency = '/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts'; + $scope.serviceCurrency = '/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts'; $scope.optionsCurrency = []; - $http.get('/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts').then((response) => { + $http.get('/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts').then((response) => { $scope.optionsCurrency = response.data.map(e => ({ value: e.Id, text: e.Code @@ -106,15 +119,15 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) const message = error.data ? error.data.message : ''; Dialogs.showAlert({ title: 'Currency', - message: `Unable to load data: '${message}'`, + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); - $scope.serviceCompany = '/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts'; + $scope.serviceCompany = '/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts'; $scope.optionsCompany = []; - $http.get('/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts').then((response) => { + $http.get('/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts').then((response) => { $scope.optionsCompany = response.data.map(e => ({ value: e.Id, text: e.Name @@ -124,15 +137,15 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) const message = error.data ? error.data.message : ''; Dialogs.showAlert({ title: 'Company', - message: `Unable to load data: '${message}'`, + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); - $scope.servicePaymentMethod = '/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodService.ts'; + $scope.servicePaymentMethod = '/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodController.ts'; $scope.optionsPaymentMethod = []; - $http.get('/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodService.ts').then((response) => { + $http.get('/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodController.ts').then((response) => { $scope.optionsPaymentMethod = response.data.map(e => ({ value: e.Id, text: e.Name @@ -142,14 +155,14 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) const message = error.data ? error.data.message : ''; Dialogs.showAlert({ title: 'PaymentMethod', - message: `Unable to load data: '${message}'`, + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); $scope.alert = (message) => { if (message) Dialogs.showAlert({ - title: 'Description', + title: description, message: message, type: AlertTypes.Information, preformatted: true, diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/index.html b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/index.html index 80b7b31..4405c49 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/index.html +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/index.html @@ -21,7 +21,7 @@
- Customer + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_CUSTOMER' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputSearch' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_CUSTOMER)'} }}" + btn-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.showHide' | t:{'name':'Customer'} }}" list-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.options' | t:{'name':'Customer'} }}">
- Date + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_DATE' | t }}
- +
- Valor + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_VALOR' | t }}
- +
- CompanyIBAN + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COMPANYIBAN' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COMPANYIBAN)'} }}">
- CounterpartyIBAN + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COUNTERPARTYIBAN' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COUNTERPARTYIBAN)'} }}">
- CounterpartyName + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COUNTERPARTYNAME' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COUNTERPARTYNAME)'} }}">
- Amount + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_AMOUNT' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_AMOUNT)'} }}">
- Currency + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_CURRENCY' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputSearch' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_CURRENCY)'} }}" + btn-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.showHide' | t:{'name':'Currency'} }}" list-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.options' | t:{'name':'Currency'} }}">
- Reason + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_REASON' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_REASON)'} }}">
- Description + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_DESCRIPTION' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_DESCRIPTION)'} }}">
- Company + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COMPANY' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputSearch' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COMPANY)'} }}" + btn-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.showHide' | t:{'name':'Company'} }}" list-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.options' | t:{'name':'Company'} }}">
- Name + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_NAME' | t }}
- + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_NAME)'} }}"> -
- UUID + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_UUID' | t }}
- + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_UUID)'} }}"> -
- Reference + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_REFERENCE' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_REFERENCE)'} }}">
- PaymentMethod + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_PAYMENTMETHOD' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputSearch' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_PAYMENTMETHOD)'} }}" + btn-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.showHide' | t:{'name':'PaymentMethod'} }}" list-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.options' | t:{'name':'PaymentMethod'} }}">
@@ -303,10 +291,11 @@ - + + - + diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.js b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.js index 7050e03..cc54fd1 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.js +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/view.js @@ -6,6 +6,9 @@ const viewData = { id: "CustomerPayment-details", label: "CustomerPayment", + translation: { + key: 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT', + }, path: "/services/web/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/dialog-window/index.html", perspectiveName: "CustomerPayment", roles: [ diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/index.html b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/index.html index 7b3e503..d5d3add 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/index.html +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/index.html @@ -15,19 +15,19 @@ - Items + {{'codbex-payments:codbex-payments-model.defaults.items' | t}} - - - + + + - + - - - + + + @@ -59,7 +59,7 @@ - Load More ... + {{ 'codbex-payments:codbex-payments-model.defaults.loadMore' | t }} diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/controller.js b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/controller.js index 810d972..c440ccb 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/controller.js +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/controller.js @@ -1,9 +1,13 @@ -angular.module('page', ['blimpKit', 'platformView', 'EntityService']) +angular.module('page', ['blimpKit', 'platformView', 'platformLocale', 'EntityService']) .config(["EntityServiceProvider", (EntityServiceProvider) => { - EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentService.ts'; + EntityServiceProvider.baseUrl = '/services/ts/codbex-payments/gen/codbex-payments/api/CustomerPayment/CustomerPaymentController.ts'; }]) - .controller('PageController', ($scope, $http, Extensions, EntityService) => { + .controller('PageController', ($scope, $http, Extensions, LocaleService, EntityService) => { const Dialogs = new DialogHub(); + const Notifications = new NotificationHub(); + let description = 'Description'; + let propertySuccessfullyCreated = 'CustomerPayment successfully created'; + let propertySuccessfullyUpdated = 'CustomerPayment successfully updated'; $scope.entity = {}; $scope.forms = { details: {}, @@ -15,6 +19,15 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) }; $scope.action = 'select'; + LocaleService.onInit(() => { + description = LocaleService.t('codbex-payments:codbex-payments-model.defaults.description'); + $scope.formHeaders.select = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadSelect', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)' }); + $scope.formHeaders.create = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadCreate', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)' }); + $scope.formHeaders.update = LocaleService.t('codbex-payments:codbex-payments-model.defaults.formHeadUpdate', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)' }); + propertySuccessfullyCreated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyCreated', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)' }); + propertySuccessfullyUpdated = LocaleService.t('codbex-payments:codbex-payments-model.messages.propertySuccessfullyUpdated', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)' }); + }); + //-----------------Custom Actions-------------------// Extensions.getWindows(['codbex-payments-custom-action']).then((response) => { $scope.entityActions = response.data.filter(e => e.perspective === 'CustomerPayment' && e.view === 'CustomerPayment' && e.type === 'entity'); @@ -23,7 +36,7 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) $scope.triggerEntityAction = (action) => { Dialogs.showWindow({ hasHeader: true, - title: action.label, + title: LocaleService.t(action.translation.key, action.translation.options, action.label), path: action.path, params: { id: $scope.entity.Id @@ -87,10 +100,10 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) }); }}); - $scope.serviceCustomer = '/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerService.ts'; - $scope.serviceCurrency = '/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts'; - $scope.serviceCompany = '/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts'; - $scope.servicePaymentMethod = '/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodService.ts'; + $scope.serviceCustomer = '/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerController.ts'; + $scope.serviceCurrency = '/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts'; + $scope.serviceCompany = '/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts'; + $scope.servicePaymentMethod = '/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodController.ts'; //-----------------Events-------------------// @@ -98,16 +111,16 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) EntityService.create($scope.entity).then((response) => { Dialogs.postMessage({ topic: 'codbex-payments.CustomerPayment.CustomerPayment.entityCreated', data: response.data }); Dialogs.postMessage({ topic: 'codbex-payments.CustomerPayment.CustomerPayment.clearDetails' , data: response.data }); - Dialogs.showAlert({ - title: 'CustomerPayment', - message: 'CustomerPayment successfully created', - type: AlertTypes.Success + Notifications.show({ + title: LocaleService.t('codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT'), + description: propertySuccessfullyCreated, + type: 'positive' }); }, (error) => { const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'CustomerPayment', - message: `Unable to create CustomerPayment: '${message}'`, + title: LocaleService.t('codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT'), + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCreate', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)', message: message }), type: AlertTypes.Error }); console.error('EntityService:', error); @@ -118,16 +131,16 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) EntityService.update($scope.entity.Id, $scope.entity).then((response) => { Dialogs.postMessage({ topic: 'codbex-payments.CustomerPayment.CustomerPayment.entityUpdated', data: response.data }); Dialogs.postMessage({ topic: 'codbex-payments.CustomerPayment.CustomerPayment.clearDetails', data: response.data }); - Dialogs.showAlert({ - title: 'CustomerPayment', - message: 'CustomerPayment successfully updated', - type: AlertTypes.Success + Notifications.show({ + title: LocaleService.t('codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT'), + description: propertySuccessfullyUpdated, + type: 'positive' }); }, (error) => { const message = error.data ? error.data.message : ''; Dialogs.showAlert({ - title: 'CustomerPayment', - message: `Unable to create CustomerPayment: '${message}'`, + title: LocaleService.t('codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT'), + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToCreate', { name: '$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT)', message: message }), type: AlertTypes.Error }); console.error('EntityService:', error); @@ -141,7 +154,7 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) //-----------------Dialogs-------------------// $scope.alert = (message) => { if (message) Dialogs.showAlert({ - title: 'Description', + title: description, message: message, type: AlertTypes.Information, preformatted: true, @@ -197,7 +210,7 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) $scope.refreshCustomer = () => { $scope.optionsCustomer = []; - $http.get('/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerService.ts').then((response) => { + $http.get('/services/ts/codbex-partners/gen/codbex-partners/api/Customers/CustomerController.ts').then((response) => { $scope.optionsCustomer = response.data.map(e => ({ value: e.Id, text: e.Name @@ -207,14 +220,14 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) const message = error.data ? error.data.message : ''; Dialogs.showAlert({ title: 'Customer', - message: `Unable to load data: '${message}'`, + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); }; $scope.refreshCurrency = () => { $scope.optionsCurrency = []; - $http.get('/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyService.ts').then((response) => { + $http.get('/services/ts/codbex-currencies/gen/codbex-currencies/api/Settings/CurrencyController.ts').then((response) => { $scope.optionsCurrency = response.data.map(e => ({ value: e.Id, text: e.Code @@ -224,14 +237,14 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) const message = error.data ? error.data.message : ''; Dialogs.showAlert({ title: 'Currency', - message: `Unable to load data: '${message}'`, + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); }; $scope.refreshCompany = () => { $scope.optionsCompany = []; - $http.get('/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyService.ts').then((response) => { + $http.get('/services/ts/codbex-companies/gen/codbex-companies/api/Companies/CompanyController.ts').then((response) => { $scope.optionsCompany = response.data.map(e => ({ value: e.Id, text: e.Name @@ -241,14 +254,14 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) const message = error.data ? error.data.message : ''; Dialogs.showAlert({ title: 'Company', - message: `Unable to load data: '${message}'`, + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); }; $scope.refreshPaymentMethod = () => { $scope.optionsPaymentMethod = []; - $http.get('/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodService.ts').then((response) => { + $http.get('/services/ts/codbex-methods/gen/codbex-methods/api/Settings/PaymentMethodController.ts').then((response) => { $scope.optionsPaymentMethod = response.data.map(e => ({ value: e.Id, text: e.Name @@ -258,7 +271,7 @@ angular.module('page', ['blimpKit', 'platformView', 'EntityService']) const message = error.data ? error.data.message : ''; Dialogs.showAlert({ title: 'PaymentMethod', - message: `Unable to load data: '${message}'`, + message: LocaleService.t('codbex-payments:codbex-payments-model.messages.error.unableToLoad', { message: message }), type: AlertTypes.Error }); }); diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/index.html b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/index.html index cfab968..032dc1b 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/index.html +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/index.html @@ -19,7 +19,7 @@
- Customer + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_CUSTOMER' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputSearch' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_CUSTOMER)'} }}" + btn-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.showHide' | t:{'name':'Customer'} }}" list-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.options' | t:{'name':'Customer'} }}">
- - + +
- Date + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_DATE' | t }}
- +
- Valor + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_VALOR' | t }}
- +
- CompanyIBAN + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COMPANYIBAN' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COMPANYIBAN)'} }}">
- CounterpartyIBAN + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COUNTERPARTYIBAN' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COUNTERPARTYIBAN)'} }}">
- CounterpartyName + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COUNTERPARTYNAME' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COUNTERPARTYNAME)'} }}">
- Amount + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_AMOUNT' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_AMOUNT)'} }}">
- Currency + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_CURRENCY' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputSearch' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_CURRENCY)'} }}" + btn-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.showHide' | t:{'name':'Currency'} }}" list-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.options' | t:{'name':'Currency'} }}">
- - + +
- Reason + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_REASON' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_REASON)'} }}">
- Description + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_DESCRIPTION' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_DESCRIPTION)'} }}">
- Company + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COMPANY' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputSearch' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_COMPANY)'} }}" + btn-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.showHide' | t:{'name':'Company'} }}" list-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.options' | t:{'name':'Company'} }}">
- - + +
- Name + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_NAME' | t }}
- + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_NAME)'} }}"> -
- UUID + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_UUID' | t }}
- + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_UUID)'} }}"> -
- Reference + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_REFERENCE' | t }}
- + + placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputEnter' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_REFERENCE)'} }}">
- PaymentMethod + {{ 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_PAYMENTMETHOD' | t }}
+ placeholder="{{ 'codbex-payments:codbex-payments-model.messages.inputSearch' | t:{'name':'$t(codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT_PAYMENTMETHOD)'} }}" + btn-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.showHide' | t:{'name':'PaymentMethod'} }}" list-aria-label="{{ 'codbex-payments:codbex-payments-model.aria.options' | t:{'name':'PaymentMethod'} }}">
- - + +
@@ -317,17 +305,18 @@ - + + - + - + diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.js b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.js index 56d4ea9..df0e429 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.js +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/main-details/view.js @@ -6,6 +6,9 @@ const viewData = { id: 'CustomerPayment-details', label: 'CustomerPayment', + translation: { + key: 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT', + }, region: 'center', lazyLoad: false, autoFocusTab: true, diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.js b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.js index 10a1317..1a8b44c 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.js +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/CustomerPayment/view.js @@ -6,6 +6,9 @@ const viewData = { id: 'CustomerPayment', label: 'CustomerPayment', + translation: { + key: 'codbex-payments:codbex-payments-model.t.CUSTOMERPAYMENT', + }, region: 'left', lazyLoad: false, autoFocusTab: false, diff --git a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/index.html b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/index.html index cff8962..3e611e1 100644 --- a/codbex-payments/gen/codbex-payments/ui/CustomerPayment/index.html +++ b/codbex-payments/gen/codbex-payments/ui/CustomerPayment/index.html @@ -21,17 +21,16 @@ - {{state.busyText}} + {{'codbex-payments:codbex-payments-model.state.busy' | t}} - Encounterd an error while loading + {{'codbex-payments:codbex-payments-model.messages.error.loading' | t}}