Skip to content

Commit c3551aa

Browse files
ilyamermanaxshani
andauthored
Fix/mobile wallet payload (#243)
* added appId and fullPath for secure methods * added createMobileWalletRequest helper function MobileWalletRequest contains cardId * added securePath to UnitConfig Co-authored-by: axshani <[email protected]>
1 parent 53309f6 commit c3551aa

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

resources/cards.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export class Cards extends BaseResource {
1010

1111
constructor(token: string, basePath: string, config?: UnitConfig) {
1212
super(token, basePath + "/cards", config)
13+
if(config?.securePath)
14+
this.securePath = config.securePath
1315
}
1416

1517
public async createDebitCard(request: CreateDebitCardRequest): Promise<UnitResponse<Card>> {

types/common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ export interface Meta extends UnimplementedFields {
427427
export interface UnitConfig {
428428
axios?: AxiosInstance
429429
sdkUserAgent?: boolean
430+
securePath?: string
430431
}
431432

432433
export class UnitError extends Error {

0 commit comments

Comments
 (0)