Package io.surati.gap.payment.base.api
Interface ThirdParties
-
- All Known Implementing Classes:
DbPaginedThirdParties
,DbThirdParties
public interface ThirdParties
List of third parties.- Since:
- 3.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThirdParty
add(String code, String name, String abbreviated)
Add a new item.Long
count()
ThirdParty
get(Long id)
Get an item.ThirdParty
get(String code)
Get third party.boolean
has(String code)
Checks if a third party with a code exists.Iterable<ThirdParty>
iterate()
Iterate all third parties.void
remove(Long id)
Remove a third party by its identifier.
-
-
-
Method Detail
-
has
boolean has(String code)
Checks if a third party with a code exists.- Parameters:
code
-- Returns:
- boolean exits
-
get
ThirdParty get(String code)
Get third party.- Parameters:
code
- Code- Returns:
- Third party found
- Throws:
IllegalArgumentException
- If not found
-
get
ThirdParty get(Long id)
Get an item.- Parameters:
id
- Identifier- Returns:
- Third party found
- Throws:
IllegalArgumentException
- If not found
-
add
ThirdParty add(String code, String name, String abbreviated)
Add a new item.- Parameters:
code
- Codename
- Nameabbreviated
- Abbreviated- Returns:
- Third party created.
-
remove
void remove(Long id)
Remove a third party by its identifier.- Parameters:
id
- Identifier
-
iterate
Iterable<ThirdParty> iterate()
Iterate all third parties.- Returns:
- Iterable of third party.
-
count
Long count()
-
-