# VasAPI

### 1. vasNavigateToScreen

```typescript
vasNavigateToScreen(navigationData: NavigateToPageParams): Promise<void> 
```

Navigates to Vas Page

***

Accepts `NavigateToPageParams` :&#x20;

`name : string` : Name of the page

`type : NavigationTypes [ROUTER]` : Type of navigation

`target : string` : Target of the navigation ex:- route of page if type is ROUTER

`appCode : string` : Code of Vas service where navigation is happening

### 2. initiateFullOrPartialPayment

```typescript
initiateFullOrPartialPayment(paymentParams: InitiateFullOrPartialPaymentParams): Promise<void>
```

Shows dialog to accept full or partial payment from customer then redirects to app payments screen.

***

Accepts `InitiateFullOrPartialPaymentParams` :&#x20;

`amount : string` : Full amount to be paid by the customer

`externalD : string`  : External ID for the payment

`tableData : string` : JSON string of tableData received from GraphQL API

`fullText : string` : Text to be shown in the full payment option in dialog

`partialText : string` : Text to be shown in the artial payment option in dialog

### 3. vasNavigateToPayment

```typescript
vasNavigateToPayment(navigateToPaymentData: NavigateToPaymentParams): Promise<void>
```

Navigates to native apps payment screen.&#x20;

***

Accepts `NavigateToPaymentParams` :&#x20;

`externalId : string` : External ID of the data which is entered
