We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fb5d27 commit 2148161Copy full SHA for 2148161
resources/cards.ts
@@ -51,7 +51,7 @@ export class Cards extends BaseResource {
51
* @param include - Optional. A comma-separated list of related resources to include in the response.
52
* Related resources include: customer, account. See [Getting Related Resources](https://developers.unit.co/#intro-getting-related-resources).
53
*/
54
- public async get(id: string, include = ""): Promise<UnitResponse<Card>> {
+ public async get(id: string, include = ""): Promise<UnitResponse<Card> & Include<Account[] | Customer[]>> {
55
return await this.httpGet<UnitResponse<Card> & Include<Account[] | Customer[]>>(`/${id}?include=${include}`)
56
}
57
0 commit comments