Package io.surati.gap.payment.base.api
Interface ThirdPartyFamilies
-
- All Known Implementing Classes:
DbThirdPartyFamilies
public interface ThirdPartyFamilies
List of third party families.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThirdPartyFamily
add(String code, String name)
Add a new item.ThirdPartyFamily
get(Long id)
Get third party.ThirdPartyFamily
get(String code)
boolean
has(Long id)
boolean
has(String code)
Iterable<ThirdPartyFamily>
iterate()
Iterate all third party families.void
remove(Long id)
Remove a third party family by its identifier.
-
-
-
Method Detail
-
has
boolean has(Long id)
-
has
boolean has(String code)
-
get
ThirdPartyFamily get(String code)
-
get
ThirdPartyFamily get(Long id)
Get third party.- Parameters:
id
- Id- Returns:
- Third party family found
- Throws:
IllegalArgumentException
- If not found
-
add
ThirdPartyFamily add(String code, String name)
Add a new item.- Parameters:
code
- Codename
- Name- Returns:
- Family created.
-
remove
void remove(Long id)
Remove a third party family by its identifier.- Parameters:
id
- Identifier
-
iterate
Iterable<ThirdPartyFamily> iterate()
Iterate all third party families.- Returns:
- Iterable of third party family.
-
-