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
refresh
• refresh: () => void
Type declaration
▸ (): void
A function to refresh the store information.
Returns
void
Defined in
storeDetails
• Optional storeDetails: StoreDetails
An optional StoreDetails object containing information about the store.
Defined in
storeId
• storeId: string
The unique identifier of the store as a string.
Defined in
updateLogo
• updateLogo: (file: any) => void
Type declaration
▸ (file): void
A function to update the store logo.
Parameters
| Name | Type | Description |
|---|---|---|
file | any | The new logo file to be uploaded. |
Returns
void
Defined in
updateStoreInfo
• updateStoreInfo: (storeDetails: StoreDetailsUpdate) => void
Type declaration
▸ (storeDetails): void
A function to update the store information.
Parameters
| Name | Type | Description |
|---|---|---|
storeDetails | StoreDetailsUpdate | An object containing the fields to be updated in the store. |
Returns
void