11package com .easypost .service ;
22
3- import lombok . Getter ;
3+ import java . util . function . Function ;
44
55import com .easypost .Constants ;
66import com .easypost .exception .General .MissingParameterError ;
7- import com .easypost .hooks .ResponseHook ;
8- import com .easypost .hooks .ResponseHookResponses ;
97import com .easypost .hooks .RequestHook ;
108import com .easypost .hooks .RequestHookResponses ;
9+ import com .easypost .hooks .ResponseHook ;
10+ import com .easypost .hooks .ResponseHookResponses ;
1111
12- import java . util . function . Function ;
12+ import lombok . Getter ;
1313
1414public class EasyPostClient {
1515 private final int connectTimeoutMilliseconds ;
@@ -26,7 +26,7 @@ public class EasyPostClient {
2626 public final BillingService billing = new BillingService (this );
2727 public final CarrierAccountService carrierAccount = new CarrierAccountService (this );
2828 public final CarrierMetadataService carrierMetadata = new CarrierMetadataService (this );
29- public final FedexRegistrationService fedexRegistration = new FedexRegistrationService (this );
29+ public final FedExRegistrationService fedexRegistration = new FedExRegistrationService (this );
3030 public final CarrierTypeService carrierType = new CarrierTypeService (this );
3131 public final ClaimService claim = new ClaimService (this );
3232 public final CustomerPortalService customerPortal = new CustomerPortalService (this );
@@ -83,7 +83,7 @@ public EasyPostClient(String apiKey, String apiBase) throws MissingParameterErro
8383 *
8484 * @param apiKey API key for API calls.
8585 * @param connectTimeoutMilliseconds Timeout for connection.
86- * @throws MissingParameterError When the request fails.
86+ * @throws MissingParameterError When the request fails.
8787 */
8888 public EasyPostClient (String apiKey , int connectTimeoutMilliseconds ) throws MissingParameterError {
8989 this (apiKey , connectTimeoutMilliseconds , Constants .Http .API_BASE );
@@ -95,7 +95,7 @@ public EasyPostClient(String apiKey, int connectTimeoutMilliseconds) throws Miss
9595 * @param apiKey API key for API calls.
9696 * @param connectTimeoutMilliseconds Timeout for connection.
9797 * @param apiBase API base for API calls.
98- * @throws MissingParameterError When the request fails.
98+ * @throws MissingParameterError When the request fails.
9999 */
100100 public EasyPostClient (String apiKey , int connectTimeoutMilliseconds , String apiBase ) throws MissingParameterError {
101101 this (apiKey , connectTimeoutMilliseconds , Constants .Http .DEFAULT_READ_TIMEOUT_MILLISECONDS , apiBase );
@@ -107,7 +107,7 @@ public EasyPostClient(String apiKey, int connectTimeoutMilliseconds, String apiB
107107 * @param apiKey API key for API calls.
108108 * @param connectTimeoutMilliseconds Timeout for connection.
109109 * @param readTimeoutMilliseconds Timeout for read.
110- * @throws MissingParameterError When the request fails.
110+ * @throws MissingParameterError When the request fails.
111111 */
112112 public EasyPostClient (String apiKey , int connectTimeoutMilliseconds , int readTimeoutMilliseconds )
113113 throws MissingParameterError {
@@ -121,7 +121,7 @@ public EasyPostClient(String apiKey, int connectTimeoutMilliseconds, int readTim
121121 * @param connectTimeoutMilliseconds Timeout for connection.
122122 * @param readTimeoutMilliseconds Timeout for read.
123123 * @param apiBase API base for API calls.
124- * @throws MissingParameterError When the request fails.
124+ * @throws MissingParameterError When the request fails.
125125 */
126126 public EasyPostClient (String apiKey , int connectTimeoutMilliseconds , int readTimeoutMilliseconds , String apiBase )
127127 throws MissingParameterError {
@@ -137,6 +137,7 @@ public EasyPostClient(String apiKey, int connectTimeoutMilliseconds, int readTim
137137
138138 /**
139139 * Subscribes to a request hook from the given function.
140+ *
140141 * @param function The function to be subscribed to the request hook
141142 */
142143 public void subscribeToRequestHook (Function <RequestHookResponses , Object > function ) {
@@ -145,6 +146,7 @@ public void subscribeToRequestHook(Function<RequestHookResponses, Object> functi
145146
146147 /**
147148 * Unsubscribes to a request hook from the given function.
149+ *
148150 * @param function The function to be unsubscribed from the request hook
149151 */
150152 public void unsubscribeFromRequestHook (Function <RequestHookResponses , Object > function ) {
@@ -153,6 +155,7 @@ public void unsubscribeFromRequestHook(Function<RequestHookResponses, Object> fu
153155
154156 /**
155157 * Subscribes to a response hook from the given function.
158+ *
156159 * @param function The function to be subscribed to the response hook
157160 */
158161 public void subscribeToResponseHook (Function <ResponseHookResponses , Object > function ) {
@@ -161,6 +164,7 @@ public void subscribeToResponseHook(Function<ResponseHookResponses, Object> func
161164
162165 /**
163166 * Unubscribes to a response hook from the given function.
167+ *
164168 * @param function The function to be unsubscribed from the response hook
165169 */
166170 public void unsubscribeFromResponseHook (Function <ResponseHookResponses , Object > function ) {
0 commit comments