Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Conversation

akswaminathan-pp-dev
Copy link
Contributor

Design: https://engineering.paypalcorp.com/confluence/display/Payouts/Default+Transfer+Method+in+EA+responses

The change is to refine all of the external accounts API responses (GET, GET ALL) to include a "isDefaultTransferMethod" attribute holding a boolean value and is displayed only when the attribute is true which helps in determining the default account to which payment is made.

@coveralls
Copy link

coveralls commented Dec 5, 2022

Coverage Status

Coverage increased (+0.01%) to 97.901% when pulling 6446317 on feature/DTPAYETWO-761_defaultTransferPhpDev into 88055f9 on master.

* Set the is default transfer method
*
* @param string $isDefaultTransferMethod
* @return PayPalAccount

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@return BankAccount will be more appropriate. Please check and update

* Set the is default transfer method
*
* @param string $isDefaultTransferMethod
* @return PayPalAccount

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@return BankCard will be more appropriate. Please check and update

* Set the is default transfer method
*
* @param string $isDefaultTransferMethod
* @return PayPalAccount

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@return PrepaidCard will be more appropriate. Please check and update

* Set the is default transfer method
*
* @param string $isDefaultTransferMethod
* @return PayPalAccount

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@return TransferMethod will be more appropriate. Please check and update

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated, Thanks for pointing that out.

@@ -63,6 +63,7 @@
* @property string $stateProvince The state or province
* @property string $country The country
* @property string $postalCode The postal code
* @property string $isDefaultTransferMethod The is default transfer method

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion: The field isDefaultTransferMethod can be explained better for the developers to understand. (Same for all model classes)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were some existing models which were using this property "isDefaultTransferMethod" and just to make it consistent across models, reused the same description. I've now updated the description for all of the models which were using this property

@grmeyer-hw-dev grmeyer-hw-dev marked this pull request as ready for review January 13, 2023 15:49
@grmeyer-hw-dev grmeyer-hw-dev merged commit 5e53bad into master Jan 13, 2023
@delete-merged-branch delete-merged-branch bot deleted the feature/DTPAYETWO-761_defaultTransferPhpDev branch January 13, 2023 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants