> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# ShopMessage

> Protobuf class ShopMessage generated from WAProto.

Defined in: [WAProto/index.d.ts:6933](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6933)

## Implements

* [`IShopMessage`](/proto-reference/Message/InteractiveMessage/interfaces/IShopMessage)

## Constructors

### new ShopMessage()

> **new ShopMessage**(`p`?): [`ShopMessage`](/proto-reference/Message/InteractiveMessage/classes/ShopMessage)

Defined in: [WAProto/index.d.ts:6934](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6934)

#### Parameters

##### p?

[`IShopMessage`](/proto-reference/Message/InteractiveMessage/interfaces/IShopMessage)

#### Returns

[`ShopMessage`](/proto-reference/Message/InteractiveMessage/classes/ShopMessage)

## Properties

### id?

> `optional` **id**: `null` | `string`

Defined in: [WAProto/index.d.ts:6935](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6935)

#### Implementation of

[`IShopMessage`](/proto-reference/Message/InteractiveMessage/interfaces/IShopMessage).[`id`](/proto-reference/Message/InteractiveMessage/interfaces/IShopMessage#id)

***

### messageVersion?

> `optional` **messageVersion**: `null` | `number`

Defined in: [WAProto/index.d.ts:6937](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6937)

#### Implementation of

[`IShopMessage`](/proto-reference/Message/InteractiveMessage/interfaces/IShopMessage).[`messageVersion`](/proto-reference/Message/InteractiveMessage/interfaces/IShopMessage#messageversion)

***

### surface?

> `optional` **surface**: `null` | [`Surface`](/proto-reference/Message/InteractiveMessage/ShopMessage/enumerations/Surface)

Defined in: [WAProto/index.d.ts:6936](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6936)

#### Implementation of

[`IShopMessage`](/proto-reference/Message/InteractiveMessage/interfaces/IShopMessage).[`surface`](/proto-reference/Message/InteractiveMessage/interfaces/IShopMessage#surface)

## Methods

### create()

> `static` **create**(`properties`?): [`ShopMessage`](/proto-reference/Message/InteractiveMessage/classes/ShopMessage)

Defined in: [WAProto/index.d.ts:6938](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6938)

#### Parameters

##### properties?

[`IShopMessage`](/proto-reference/Message/InteractiveMessage/interfaces/IShopMessage)

#### Returns

[`ShopMessage`](/proto-reference/Message/InteractiveMessage/classes/ShopMessage)

***

### decode()

> `static` **decode**(`r`, `l`?): [`ShopMessage`](/proto-reference/Message/InteractiveMessage/classes/ShopMessage)

Defined in: [WAProto/index.d.ts:6940](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6940)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`ShopMessage`](/proto-reference/Message/InteractiveMessage/classes/ShopMessage)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:6939](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6939)

#### Parameters

##### m

[`IShopMessage`](/proto-reference/Message/InteractiveMessage/interfaces/IShopMessage)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`ShopMessage`](/proto-reference/Message/InteractiveMessage/classes/ShopMessage)

Defined in: [WAProto/index.d.ts:6941](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6941)

#### Parameters

##### d

#### Returns

[`ShopMessage`](/proto-reference/Message/InteractiveMessage/classes/ShopMessage)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:6944](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6944)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:6943](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6943)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:6942](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L6942)

#### Parameters

##### m

[`ShopMessage`](/proto-reference/Message/InteractiveMessage/classes/ShopMessage)

##### o?

`IConversionOptions`

#### Returns

`object`
