@@ -121,7 +121,7 @@ public static Hyperwallet getDefault() {
121121 * <p>The {@link HyperwalletListener} that is passed in to this method invocation will receive the responses from
122122 * processing the request.</p>
123123 *
124- * <p>This function will requests a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
124+ * <p>This function will request a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
125125 * if the current one is expired or about to expire.</p>
126126 *
127127 * @param bankAccount the {@code HyperwalletBankAccount} to be created; must not be null
@@ -161,7 +161,7 @@ public void createBankAccount(@NonNull final HyperwalletBankAccount bankAccount,
161161 * <p>The {@link HyperwalletListener} that is passed in to this method invocation will receive the responses from
162162 * * processing the request.</p>
163163 *
164- * <p>This function will requests a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
164+ * <p>This function will request a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
165165 * if the current one is expired or about to expire.</p>
166166 *
167167 * @param bankAccountPagination the ordering and filtering criteria
@@ -186,7 +186,7 @@ public void listBankAccounts(@Nullable final HyperwalletBankAccountPagination ba
186186 * <p>The {@link HyperwalletListener} that is passed in to this method invocation will receive the responses from
187187 * * processing the request.</p>
188188 *
189- * <p>This function will requests a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
189+ * <p>This function will request a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
190190 * if the current one is expired or about to expire.</p>
191191 *
192192 * @param bankCard the {@code HyperwalletBankCard} to be created; must not be null
@@ -233,14 +233,14 @@ public void createPayPalAccount(@NonNull final PayPalAccount payPalAccount,
233233 * <p>The {@link HyperwalletListener} that is passed in to this method invocation will receive the responses from
234234 * processing the request.</p>
235235 *
236- * <p>This function will requests a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
236+ * <p>This function will request a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
237237 * if the current one is expired or about to expire.</p>
238238 *
239239 * @param transferMethodToken the Hyperwallet specific unique identifier for the {@code HyperwalletBankAccount}
240240 * being requested; must not be null
241241 * @param listener the callback handler of responses from the Hyperwallet platform; must not be null
242242 */
243- public void getBankAccount (@ NonNull String transferMethodToken ,
243+ public void getBankAccount (@ NonNull final String transferMethodToken ,
244244 @ NonNull final HyperwalletListener <HyperwalletBankAccount > listener ) {
245245 PathFormatter pathFormatter = new PathFormatter ("users/{0}/bank-accounts/{1}" , transferMethodToken );
246246
@@ -257,7 +257,7 @@ public void getBankAccount(@NonNull String transferMethodToken,
257257 * <p>The {@link HyperwalletListener} that is passed in to this method invocation will receive the responses from
258258 * processing the request.</p>
259259 *
260- * <p>This function will requests a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
260+ * <p>This function will request a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
261261 * if the current one is expired or about to expire.</p>
262262 *
263263 * @param transferMethodToken the Hyperwallet specific unique identifier for the {@code HyperwalletBankCard}
@@ -284,7 +284,7 @@ public void getBankCard(@NonNull final String transferMethodToken,
284284 * <p>The {@link HyperwalletListener} that is passed in to this method invocation will receive the responses from
285285 * processing the request.</p>
286286 *
287- * <p>This function will requests a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
287+ * <p>This function will request a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
288288 * if the current one is expired or about to expire.</p>
289289 *
290290 * @param bankAccount the {@code HyperwalletBankAccount} to be created; must not be null
@@ -313,7 +313,7 @@ public void updateBankAccount(@NonNull final HyperwalletBankAccount bankAccount,
313313 * <p>The {@link HyperwalletListener} that is passed in to this method invocation will receive the responses from
314314 * processing the request.</p>
315315 *
316- * <p>This function will requests a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
316+ * <p>This function will request a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
317317 * if the current one is expired or about to expire.</p>
318318 *
319319 * @param bankCard the {@code HyperwalletBankCard} to be created; must not be null
@@ -368,7 +368,7 @@ public void updatePayPalAccount(@NonNull final PayPalAccount payPalAccount,
368368 * <p>The {@link HyperwalletListener} that is passed in to this method invocation will receive the responses from
369369 * processing the request.</p>
370370 *
371- * <p>This function will requests a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
371+ * <p>This function will request a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
372372 * if the current one is expired or about to expire.</p>
373373 *
374374 * @param transferMethodToken the Hyperwallet specific unique identifier for the {@code HyperwalletBankAccount}
@@ -400,7 +400,7 @@ public void deactivateBankAccount(@NonNull final String transferMethodToken, @Nu
400400 * <p>The {@link HyperwalletListener} that is passed in to this method invocation will receive the responses from
401401 * processing the request.</p>
402402 *
403- * <p>This function will requests a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
403+ * <p>This function will request a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
404404 * if the current one is expired or about to expire.</p>
405405 *
406406 * @param transferMethodToken the Hyperwallet specific unique identifier for the {@code HyperwalletBankCard} being
@@ -446,7 +446,7 @@ public void deactivateBankCard(@NonNull final String transferMethodToken, @Nulla
446446 * <p>The {@link HyperwalletListener} that is passed in to this method invocation will receive the responses from
447447 * processing the request.</p>
448448 *
449- * <p>This function will requests a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
449+ * <p>This function will request a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
450450 * if the current one is expired or about to expire.</p>
451451 *
452452 * @param transferMethodPagination the ordering and filtering criteria
@@ -486,7 +486,7 @@ public void listTransferMethods(@Nullable final HyperwalletTransferMethodPaginat
486486 * <p>The {@link HyperwalletListener} that is passed in to this method invocation will receive the responses from
487487 * processing the request.</p>
488488 *
489- * <p>This function will requests a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
489+ * <p>This function will request a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
490490 * if the current one is expired or about to expire.</p>
491491 *
492492 * @param bankCardPagination the ordering and filtering criteria
@@ -525,7 +525,7 @@ public void listBankCards(@Nullable final HyperwalletBankCardPagination bankCard
525525 * <p>The {@link HyperwalletListener} that is passed in to this method invocation will receive the responses from
526526 * processing the request.</p>
527527 *
528- * <p>This function will requests a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
528+ * <p>This function will request a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
529529 * if the current one is expired or about to expire.</p>
530530 *
531531 * @param bankCardPagination the ordering and filtering criteria
@@ -542,6 +542,30 @@ public void listPayPalAccounts(@Nullable final PayPalAccountPagination bankCardP
542542 performRestTransaction (builder , listener );
543543 }
544544
545+ /**
546+ * Returns the {@link PayPalAccount} linked to the transfer method token specified, or null if none exists.
547+ *
548+ * <p>The {@link HyperwalletListener} that is passed in to this method invocation will receive the responses from
549+ * processing the request.</p>
550+ *
551+ * <p>This function will request a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
552+ * if the current one is expired or about to expire.</p>
553+ *
554+ * @param transferMethodToken the Hyperwallet specific unique identifier for the {@code PayPalAccount}
555+ * being requested; must not be null
556+ * @param listener the callback handler of responses from the Hyperwallet platform; must not be null
557+ */
558+ public void getPayPalAccount (@ NonNull final String transferMethodToken ,
559+ @ NonNull final HyperwalletListener <PayPalAccount > listener ) {
560+ PathFormatter pathFormatter = new PathFormatter ("users/{0}/paypal-accounts/{1}" , transferMethodToken );
561+
562+ RestTransaction .Builder builder = new RestTransaction .Builder <>(GET , pathFormatter ,
563+ new TypeReference <PayPalAccount >() {
564+ }, listener );
565+
566+ performRestTransaction (builder , listener );
567+ }
568+
545569 /**
546570 * Returns the transfer method configuration key set, processing times, and fees for the User that is associated
547571 * with the authentication token returned from
@@ -550,7 +574,7 @@ public void listPayPalAccounts(@Nullable final PayPalAccountPagination bankCardP
550574 * <p>The {@link HyperwalletListener} that is passed in to this method invocation will receive the responses from
551575 * processing the request.</p>
552576 *
553- * <p>This function will requests a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
577+ * <p>This function will request a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
554578 * if the current one is expired or about to expire.</p>
555579 *
556580 * @param transferMethodConfigurationKeysQuery containing the transfer method configuration key query,
@@ -577,7 +601,7 @@ public void retrieveTransferMethodConfigurationKeys(
577601 * <p>The {@link HyperwalletListener} that is passed in to this method invocation will receive the responses from
578602 * processing the request.</p>
579603 *
580- * <p>This function will requests a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
604+ * <p>This function will request a new authentication token via {@link HyperwalletAuthenticationTokenProvider}
581605 * if the current one is expired or about to expire.</p>
582606 *
583607 * @param transferMethodConfigurationFieldQuery containing a transfer method configuration key tuple of
0 commit comments