Skip to main content

Interface: StoreContextProps

Interface representing the properties of the StoreContext.

Properties​

client​

• client: PayVault

The PayVault client instance used to interact with the PayVault API.

Defined in​

hooks/useStore.tsx:25


refresh​

• refresh: () => void

Type declaration​

▸ (): void

A function to refresh the store information.

Returns​

void

Defined in​

hooks/useStore.tsx:30


storeDetails​

• Optional storeDetails: StoreDetails

An optional StoreDetails object containing information about the store.

Defined in​

hooks/useStore.tsx:15


storeId​

• storeId: string

The unique identifier of the store as a string.

Defined in​

hooks/useStore.tsx:20


• updateLogo: (file: any) => void

Type declaration​

▸ (file): void

A function to update the store logo.

Parameters​
NameTypeDescription
fileanyThe new logo file to be uploaded.
Returns​

void

Defined in​

hooks/useStore.tsx:42


updateStoreInfo​

• updateStoreInfo: (storeDetails: StoreDetailsUpdate) => void

Type declaration​

▸ (storeDetails): void

A function to update the store information.

Parameters​
NameTypeDescription
storeDetailsStoreDetailsUpdateAn object containing the fields to be updated in the store.
Returns​

void

Defined in​

hooks/useStore.tsx:36