Skip to content

Commit

Permalink
feat: Broker query findByBrokeredOrganizationId
Browse files Browse the repository at this point in the history
antonioT90 committed Jan 24, 2025
1 parent e3b21db commit 7965382
Showing 2 changed files with 257 additions and 224 deletions.
476 changes: 252 additions & 224 deletions openapi/generated.openapi.json
Original file line number Diff line number Diff line change
@@ -105,6 +105,34 @@
}
}
},
"/crud/brokers/search/findByBrokeredOrganizationId" : {
"get" : {
"tags" : [ "broker-search-controller" ],
"operationId" : "crud-brokers-findByBrokeredOrganizationId",
"parameters" : [ {
"name" : "organizationId",
"in" : "query",
"schema" : {
"type" : "string"
}
} ],
"responses" : {
"200" : {
"description" : "OK",
"content" : {
"application/hal+json" : {
"schema" : {
"$ref" : "#/components/schemas/Broker"
}
}
}
},
"404" : {
"description" : "Not Found"
}
}
}
},
"/crud/brokers/search/findByOrgFiscalCode" : {
"get" : {
"tags" : [ "broker-search-controller" ],
@@ -1474,33 +1502,7 @@
}
}
},
"PersonalisationFe" : {
"type" : "object",
"properties" : {
"headerAssistanceUrl" : {
"type" : "string"
},
"logoFooterImg" : {
"type" : "string"
},
"footerDescText" : {
"type" : "string"
},
"footerPrivacyInfoUrl" : {
"type" : "string"
},
"footerGDPRUrl" : {
"type" : "string"
},
"footerTermsCondUrl" : {
"type" : "string"
},
"footerAccessibilityUrl" : {
"type" : "string"
}
}
},
"Broker" : {
"Organization" : {
"type" : "object",
"properties" : {
"creationDate" : {
@@ -1514,44 +1516,68 @@
"updateOperatorExternalId" : {
"type" : "string"
},
"brokerId" : {
"type" : "integer",
"format" : "int64"
},
"organizationId" : {
"type" : "integer",
"format" : "int64"
},
"brokerFiscalCode" : {
"ipaCode" : {
"type" : "string"
},
"brokerName" : {
"orgFiscalCode" : {
"type" : "string"
},
"pagoPaInteractionModel" : {
"type" : "string",
"enum" : [ "SYNC", "SYNC_ACA", "SYNC$GPDPRELOAD", "SYNC_ACA$GPDPRELOAD", "ASYNC_GPD" ]
"orgName" : {
"type" : "string"
},
"stationId" : {
"orgTypeCode" : {
"type" : "string"
},
"broadcastStationId" : {
"orgEmail" : {
"type" : "string"
},
"syncKey" : {
"postalIban" : {
"type" : "string"
},
"iban" : {
"type" : "string"
},
"password" : {
"type" : "string",
"format" : "byte"
},
"gpdKey" : {
"segregationCode" : {
"type" : "string"
},
"cbillInterBankCode" : {
"type" : "string"
},
"orgLogo" : {
"type" : "string"
},
"status" : {
"type" : "string",
"format" : "byte"
"enum" : [ "DRAFT", "ACTIVE" ]
},
"acaKey" : {
"additionalLanguage" : {
"type" : "string"
},
"startDate" : {
"type" : "string",
"format" : "date"
},
"brokerId" : {
"type" : "integer",
"format" : "int64"
},
"ioApiKey" : {
"type" : "string",
"format" : "byte"
},
"personalisationFe" : {
"$ref" : "#/components/schemas/PersonalisationFe"
"flagNotifyIo" : {
"type" : "boolean"
},
"flagNotifyOutcomePush" : {
"type" : "boolean"
},
"_links" : {
"$ref" : "#/components/schemas/Links"
@@ -1579,16 +1605,16 @@
}
}
},
"PagedModelBroker" : {
"PagedModelOrganization" : {
"type" : "object",
"properties" : {
"_embedded" : {
"type" : "object",
"properties" : {
"brokers" : {
"organizations" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/Broker"
"$ref" : "#/components/schemas/Organization"
}
}
}
@@ -1601,16 +1627,16 @@
}
}
},
"CollectionModelTaxonomyMacroAreaCodeDTO" : {
"CollectionModelTaxonomyServiceTypeCodeDTO" : {
"type" : "object",
"properties" : {
"_embedded" : {
"type" : "object",
"properties" : {
"taxonomyMacroAreaCodeDTOes" : {
"taxonomyServiceTypeCodeDTOes" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/TaxonomyMacroAreaCodeDTO"
"$ref" : "#/components/schemas/TaxonomyServiceTypeCodeDTO"
}
}
}
@@ -1620,7 +1646,7 @@
}
}
},
"TaxonomyMacroAreaCodeDTO" : {
"TaxonomyServiceTypeCodeDTO" : {
"type" : "object",
"properties" : {
"organizationType" : {
@@ -1638,21 +1664,30 @@
"macroAreaDescription" : {
"type" : "string"
},
"serviceTypeCode" : {
"type" : "string"
},
"serviceType" : {
"type" : "string"
},
"serviceTypeDescription" : {
"type" : "string"
},
"_links" : {
"$ref" : "#/components/schemas/Links"
}
}
},
"CollectionModelTaxonomyServiceTypeCodeDTO" : {
"CollectionModelTaxonomyMacroAreaCodeDTO" : {
"type" : "object",
"properties" : {
"_embedded" : {
"type" : "object",
"properties" : {
"taxonomyServiceTypeCodeDTOes" : {
"taxonomyMacroAreaCodeDTOes" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/TaxonomyServiceTypeCodeDTO"
"$ref" : "#/components/schemas/TaxonomyMacroAreaCodeDTO"
}
}
}
@@ -1662,7 +1697,7 @@
}
}
},
"TaxonomyServiceTypeCodeDTO" : {
"TaxonomyMacroAreaCodeDTO" : {
"type" : "object",
"properties" : {
"organizationType" : {
@@ -1680,21 +1715,12 @@
"macroAreaDescription" : {
"type" : "string"
},
"serviceTypeCode" : {
"type" : "string"
},
"serviceType" : {
"type" : "string"
},
"serviceTypeDescription" : {
"type" : "string"
},
"_links" : {
"$ref" : "#/components/schemas/Links"
}
}
},
"OrgSilService" : {
"Taxonomy" : {
"type" : "object",
"properties" : {
"creationDate" : {
@@ -1708,155 +1734,63 @@
"updateOperatorExternalId" : {
"type" : "string"
},
"orgSilServiceId" : {
"type" : "integer",
"format" : "int64"
},
"organizationId" : {
"taxonomyId" : {
"type" : "integer",
"format" : "int64"
},
"applicationName" : {
"type" : "string"
},
"notifyOutcomePushUrl" : {
"type" : "string"
},
"flagLegacy" : {
"type" : "boolean"
},
"legacyJwtId" : {
"type" : "string"
},
"legacyJwtMail" : {
"type" : "string"
},
"legacyJwtSecretKeyId" : {
"organizationType" : {
"type" : "string"
},
"legacyJwtSecretKey" : {
"type" : "string",
"format" : "byte"
},
"_links" : {
"$ref" : "#/components/schemas/Links"
}
}
},
"PagedModelOrgSilService" : {
"type" : "object",
"properties" : {
"_embedded" : {
"type" : "object",
"properties" : {
"orgSilServices" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/OrgSilService"
}
}
}
},
"_links" : {
"$ref" : "#/components/schemas/Links"
},
"page" : {
"$ref" : "#/components/schemas/PageMetadata"
}
}
},
"Organization" : {
"type" : "object",
"properties" : {
"creationDate" : {
"type" : "string",
"format" : "date-time"
},
"updateDate" : {
"type" : "string",
"format" : "date-time"
},
"updateOperatorExternalId" : {
"organizationTypeDescription" : {
"type" : "string"
},
"organizationId" : {
"type" : "integer",
"format" : "int64"
},
"ipaCode" : {
"macroAreaCode" : {
"type" : "string"
},
"orgFiscalCode" : {
"macroAreaName" : {
"type" : "string"
},
"orgName" : {
"macroAreaDescription" : {
"type" : "string"
},
"orgTypeCode" : {
"serviceTypeCode" : {
"type" : "string"
},
"orgEmail" : {
"serviceType" : {
"type" : "string"
},
"postalIban" : {
"serviceTypeDescription" : {
"type" : "string"
},
"iban" : {
"collectionReason" : {
"type" : "string"
},
"password" : {
"startDateValidity" : {
"type" : "string",
"format" : "byte"
},
"segregationCode" : {
"type" : "string"
},
"cbillInterBankCode" : {
"type" : "string"
},
"orgLogo" : {
"type" : "string"
"format" : "date-time"
},
"status" : {
"endDateOfValidity" : {
"type" : "string",
"enum" : [ "DRAFT", "ACTIVE" ]
"format" : "date-time"
},
"additionalLanguage" : {
"taxonomyCode" : {
"type" : "string"
},
"startDate" : {
"type" : "string",
"format" : "date"
},
"brokerId" : {
"type" : "integer",
"format" : "int64"
},
"ioApiKey" : {
"type" : "string",
"format" : "byte"
},
"flagNotifyIo" : {
"type" : "boolean"
},
"flagNotifyOutcomePush" : {
"type" : "boolean"
},
"_links" : {
"$ref" : "#/components/schemas/Links"
}
}
},
"PagedModelOrganization" : {
"PagedModelTaxonomy" : {
"type" : "object",
"properties" : {
"_embedded" : {
"type" : "object",
"properties" : {
"organizations" : {
"taxonomies" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/Organization"
"$ref" : "#/components/schemas/Taxonomy"
}
}
}
@@ -1902,24 +1836,28 @@
}
}
},
"Taxonomy" : {
"CollectionModelTaxonomyCodeDTO" : {
"type" : "object",
"properties" : {
"creationDate" : {
"type" : "string",
"format" : "date-time"
},
"updateDate" : {
"type" : "string",
"format" : "date-time"
},
"updateOperatorExternalId" : {
"type" : "string"
},
"taxonomyId" : {
"type" : "integer",
"format" : "int64"
"_embedded" : {
"type" : "object",
"properties" : {
"taxonomyCodeDTOes" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/TaxonomyCodeDTO"
}
}
}
},
"_links" : {
"$ref" : "#/components/schemas/Links"
}
}
},
"TaxonomyCodeDTO" : {
"type" : "object",
"properties" : {
"organizationType" : {
"type" : "string"
},
@@ -1947,32 +1885,82 @@
"collectionReason" : {
"type" : "string"
},
"startDateValidity" : {
"taxonomyCode" : {
"type" : "string"
},
"_links" : {
"$ref" : "#/components/schemas/Links"
}
}
},
"Broker" : {
"type" : "object",
"properties" : {
"creationDate" : {
"type" : "string",
"format" : "date-time"
},
"endDateOfValidity" : {
"updateDate" : {
"type" : "string",
"format" : "date-time"
},
"taxonomyCode" : {
"updateOperatorExternalId" : {
"type" : "string"
},
"brokerId" : {
"type" : "integer",
"format" : "int64"
},
"organizationId" : {
"type" : "integer",
"format" : "int64"
},
"brokerFiscalCode" : {
"type" : "string"
},
"brokerName" : {
"type" : "string"
},
"pagoPaInteractionModel" : {
"type" : "string",
"enum" : [ "SYNC", "SYNC_ACA", "SYNC$GPDPRELOAD", "SYNC_ACA$GPDPRELOAD", "ASYNC_GPD" ]
},
"stationId" : {
"type" : "string"
},
"broadcastStationId" : {
"type" : "string"
},
"syncKey" : {
"type" : "string",
"format" : "byte"
},
"gpdKey" : {
"type" : "string",
"format" : "byte"
},
"acaKey" : {
"type" : "string",
"format" : "byte"
},
"personalisationFe" : {
"$ref" : "#/components/schemas/PersonalisationFe"
},
"_links" : {
"$ref" : "#/components/schemas/Links"
}
}
},
"PagedModelTaxonomy" : {
"PagedModelBroker" : {
"type" : "object",
"properties" : {
"_embedded" : {
"type" : "object",
"properties" : {
"taxonomies" : {
"brokers" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/Taxonomy"
"$ref" : "#/components/schemas/Broker"
}
}
}
@@ -1985,63 +1973,103 @@
}
}
},
"CollectionModelTaxonomyCodeDTO" : {
"PersonalisationFe" : {
"type" : "object",
"properties" : {
"_embedded" : {
"type" : "object",
"properties" : {
"taxonomyCodeDTOes" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/TaxonomyCodeDTO"
}
}
}
"headerAssistanceUrl" : {
"type" : "string"
},
"_links" : {
"$ref" : "#/components/schemas/Links"
"logoFooterImg" : {
"type" : "string"
},
"footerDescText" : {
"type" : "string"
},
"footerPrivacyInfoUrl" : {
"type" : "string"
},
"footerGDPRUrl" : {
"type" : "string"
},
"footerTermsCondUrl" : {
"type" : "string"
},
"footerAccessibilityUrl" : {
"type" : "string"
}
}
},
"TaxonomyCodeDTO" : {
"OrgSilService" : {
"type" : "object",
"properties" : {
"organizationType" : {
"type" : "string"
"creationDate" : {
"type" : "string",
"format" : "date-time"
},
"organizationTypeDescription" : {
"type" : "string"
"updateDate" : {
"type" : "string",
"format" : "date-time"
},
"macroAreaCode" : {
"updateOperatorExternalId" : {
"type" : "string"
},
"macroAreaName" : {
"type" : "string"
"orgSilServiceId" : {
"type" : "integer",
"format" : "int64"
},
"macroAreaDescription" : {
"type" : "string"
"organizationId" : {
"type" : "integer",
"format" : "int64"
},
"serviceTypeCode" : {
"applicationName" : {
"type" : "string"
},
"serviceType" : {
"notifyOutcomePushUrl" : {
"type" : "string"
},
"serviceTypeDescription" : {
"flagLegacy" : {
"type" : "boolean"
},
"legacyJwtId" : {
"type" : "string"
},
"collectionReason" : {
"legacyJwtMail" : {
"type" : "string"
},
"taxonomyCode" : {
"legacyJwtSecretKeyId" : {
"type" : "string"
},
"legacyJwtSecretKey" : {
"type" : "string",
"format" : "byte"
},
"_links" : {
"$ref" : "#/components/schemas/Links"
}
}
},
"PagedModelOrgSilService" : {
"type" : "object",
"properties" : {
"_embedded" : {
"type" : "object",
"properties" : {
"orgSilServices" : {
"type" : "array",
"items" : {
"$ref" : "#/components/schemas/OrgSilService"
}
}
}
},
"_links" : {
"$ref" : "#/components/schemas/Links"
},
"page" : {
"$ref" : "#/components/schemas/PageMetadata"
}
}
},
"CollectionModelTaxonomyCollectionReasonDTO" : {
"type" : "object",
"properties" : {
Original file line number Diff line number Diff line change
@@ -14,4 +14,9 @@ public interface BrokerRepository extends JpaRepository<Broker,Long> {
"where o.orgFiscalCode = :orgFiscalCode")
Optional<Broker> findByOrgFiscalCode(String orgFiscalCode);


@Query("select b from broker b join Organization o on b.brokerId = o.brokerId " +
"where o.organizationId = :organizationId")
Optional<Broker> findByBrokeredOrganizationId(String organizationId);

}

0 comments on commit 7965382

Please sign in to comment.