Class CarrierAccountService
java.lang.Object
com.easypost.service.CarrierAccountService
-
Method Summary
Modifier and TypeMethodDescriptionall()
List all carrier accounts.List all carrier accounts.Create a carrier account.void
Delete this carrier account.Retrieve a carrier account from the API.Update this carrier account.
-
Method Details
-
create
Create a carrier account.- Parameters:
params
- Map of parameters to create.- Returns:
- created CarrierAccount object.
- Throws:
EasyPostException
- when the request fails.
-
retrieve
Retrieve a carrier account from the API.- Parameters:
id
- id of the carrier account.- Returns:
- CarrierAccount object.
- Throws:
EasyPostException
- when the request fails.
-
all
List all carrier accounts.- Returns:
- List of CarrierAccount objects.
- Throws:
EasyPostException
- when the request fails.
-
all
List all carrier accounts.- Parameters:
params
- filters to apply to the list.- Returns:
- List of CarrierAccount objects.
- Throws:
EasyPostException
- when the request fails.
-
update
Update this carrier account.- Parameters:
id
- The ID of carrier accountparams
- parameters to update.- Returns:
- updated CarrierAccount object.
- Throws:
EasyPostException
- when the request fails.
-
delete
Delete this carrier account.- Parameters:
id
- The ID of carrier account.- Throws:
EasyPostException
- when the request fails.
-