Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Client/Auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export class Auth {
}
return result
}
async trust() {
return await this.connection.get<model.MPayProcessResponse, 400 | 403 | 404 | 500>(`auth/trust`)
}
async refresh(request?: model.RelogWithNewSessionDetailsRequest) {
let result
if (request) {
Expand Down Expand Up @@ -104,7 +107,6 @@ export class Auth {
async unassume(): Promise<model.LoginResponse | (model.ErrorResponse & { status?: number }) | undefined> {
return this.data.user?.organisation?.code ? await this.assume(this.data.user.organisation.code) : undefined
}

async logout() {
this.roles = undefined
this.features = undefined
Expand Down
2 changes: 2 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ import {
MetadataFormat,
MetadataRequest,
MetadataResponse,
MPayProcessResponse,
Notification,
OmnisetupFlags,
OmnisetupProviderRequest,
Expand Down Expand Up @@ -409,6 +410,7 @@ export {
MetadataFormat,
MetadataRequest,
MetadataResponse,
MPayProcessResponse,
TransferDestinationRequest,
Notification,
OmnisetupFlags,
Expand Down
6 changes: 6 additions & 0 deletions model/MPayProcessResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Issue } from "./Issue"

export interface MPayProcessResponse {
status: "SUCCESS" | "FAILURE"
issues?: Issue[]
}
2 changes: 2 additions & 0 deletions model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ import { MerchantType } from "./MerchantType"
import { MetadataFormat } from "./MetadataFormat"
import { MetadataRequest } from "./MetadataRequest"
import { MetadataResponse } from "./MetadataResponse"
import { MPayProcessResponse } from "./MPayProcessResponse"
import { Notification } from "./Notification"
import { OmnisetupFlags } from "./OmnisetupFlags"
import { OmnisetupProviderRequest } from "./OmnisetupProviderRequest"
Expand Down Expand Up @@ -410,6 +411,7 @@ export {
MetadataFormat,
MetadataRequest,
MetadataResponse,
MPayProcessResponse,
Notification,
OmnisetupFlags,
OmnisetupProviderRequest,
Expand Down
Loading