plaid / plaid-openapi

API version 2020-09-14
https://plaid.com/docs
91 stars 39 forks source link

[Python SDK]: `TransferUser` does not exist in create transfer authorization request #176

Closed mdanish-kh closed 2 months ago

mdanish-kh commented 2 months ago

Description

For transfer authorization create API https://plaid.com/docs/api/products/transfer/initiating-transfers/#transferauthorizationcreate in Python. I believe the request should be modified as

request = TransferAuthorizationCreateRequest(
    access_token='<>',
    account_id='<>',
    type=TransferType('debit'),
    network=TransferNetwork('ach'),
    amount='12.34',
-   user=TransferUser(legal_name='Anne Charleston'),
+   user=TransferAuthorizationUserInRequest(legal_name='Anne Charleston')
    ach_class=ACHClass('ppd')
)

I couldn't find the TransferUser type in the python SDK. The request works with TransferAuthorizationUserInRequest which is imported as from plaid.model.transfer_authorization_user_in_request import TransferAuthorizationUserInRequest

phoenixy1 commented 2 months ago

@mdanish-kh thanks for reporting this! I've put it in a fix to the docs and it should be deployed by the end of the week.