Skip to content

Conversation

@evang859
Copy link
Contributor

@evang859 evang859 commented Aug 17, 2022

Add optional attributes to ApproveAuthorizationRequest to support selecting a fundingAccount to be used for funding the Card Purchase Transaction

Relevant API docs:
https://docs.unit.co/cards-authorization-requests#approve-authorization-request

* Optional. The id of an alternate account (either the customer's or another's) that should be used for funding the transaction.
* Please contact Unit to enable this feature.
*/
fundingAccount?: string
Copy link
Contributor Author

Choose a reason for hiding this comment

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

spot-check -> should this be fundingAccountId? Docs say fundingAccount but this is for sure meant to be DepositAccount.id (not sure what the backend contract is)

Copy link
Contributor Author

@evang859 evang859 Aug 17, 2022

Choose a reason for hiding this comment

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

Confirmed in Sandbox that it is fundingAccount with sample payload:

{
    "data": {
        "type": "approveAuthorizationRequest",
        "attributes": {
            "fundingAccount": "491667"
        }
    }
}

@ilyamerman ilyamerman merged commit ff1acad into unit-finance:main Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants