Class FedExRegistrationService
java.lang.Object
com.easypost.service.FedExRegistrationService
-
Method Summary
Modifier and TypeMethodDescriptionregisterAddress(String fedexAccountNumber, Map<String, Object> params) Register the billing address for a FedEx account.requestPin(String fedexAccountNumber, String pinMethodOption) Request a PIN for FedEx account verification.submitInvoice(String fedexAccountNumber, Map<String, Object> params) Submit invoice information to complete FedEx account registration.validatePin(String fedexAccountNumber, Map<String, Object> params) Validate the PIN entered by the user for FedEx account verification.
-
Method Details
-
registerAddress
public FedExAccountValidationResponse registerAddress(String fedexAccountNumber, Map<String, Object> params) throws EasyPostExceptionRegister the billing address for a FedEx account. Advanced method for custom parameter structures.- Parameters:
fedexAccountNumber- The FedEx account number.params- Map of parameters.- Returns:
- FedExAccountValidationResponse object with next steps (PIN or invoice validation).
- Throws:
EasyPostException- when the request fails.
-
requestPin
public FedExRequestPinResponse requestPin(String fedexAccountNumber, String pinMethodOption) throws EasyPostException Request a PIN for FedEx account verification.- Parameters:
fedexAccountNumber- The FedEx account number.pinMethodOption- The PIN delivery method: "SMS", "CALL", or "EMAIL".- Returns:
- FedExRequestPinResponse object confirming PIN was sent.
- Throws:
EasyPostException- when the request fails.
-
validatePin
public FedExAccountValidationResponse validatePin(String fedexAccountNumber, Map<String, Object> params) throws EasyPostExceptionValidate the PIN entered by the user for FedEx account verification.- Parameters:
fedexAccountNumber- The FedEx account number.params- Map of parameters.- Returns:
- FedExAccountValidationResponse object.
- Throws:
EasyPostException- when the request fails.
-
submitInvoice
public FedExAccountValidationResponse submitInvoice(String fedexAccountNumber, Map<String, Object> params) throws EasyPostExceptionSubmit invoice information to complete FedEx account registration.- Parameters:
fedexAccountNumber- The FedEx account number.params- Map of parameters.- Returns:
- FedExAccountValidationResponse object.
- Throws:
EasyPostException- when the request fails.
-