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

# ProductMessage

> Protobuf class ProductMessage generated from WAProto.

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

## Implements

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

## Constructors

### new ProductMessage()

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

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

#### Parameters

##### p?

[`IProductMessage`](/proto-reference/Message/interfaces/IProductMessage)

#### Returns

[`ProductMessage`](/proto-reference/Message/classes/ProductMessage)

## Properties

### body?

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

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

#### Implementation of

[`IProductMessage`](/proto-reference/Message/interfaces/IProductMessage).[`body`](/proto-reference/Message/interfaces/IProductMessage#body)

***

### businessOwnerJid?

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

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

#### Implementation of

[`IProductMessage`](/proto-reference/Message/interfaces/IProductMessage).[`businessOwnerJid`](/proto-reference/Message/interfaces/IProductMessage#businessownerjid)

***

### catalog?

> `optional` **catalog**: `null` | [`ICatalogSnapshot`](/proto-reference/Message/ProductMessage/interfaces/ICatalogSnapshot)

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

#### Implementation of

[`IProductMessage`](/proto-reference/Message/interfaces/IProductMessage).[`catalog`](/proto-reference/Message/interfaces/IProductMessage#catalog)

***

### contextInfo?

> `optional` **contextInfo**: `null` | [`IContextInfo`](/proto-reference/interfaces/IContextInfo)

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

#### Implementation of

[`IProductMessage`](/proto-reference/Message/interfaces/IProductMessage).[`contextInfo`](/proto-reference/Message/interfaces/IProductMessage#contextinfo)

***

### footer?

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

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

#### Implementation of

[`IProductMessage`](/proto-reference/Message/interfaces/IProductMessage).[`footer`](/proto-reference/Message/interfaces/IProductMessage#footer)

***

### product?

> `optional` **product**: `null` | [`IProductSnapshot`](/proto-reference/Message/ProductMessage/interfaces/IProductSnapshot)

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

#### Implementation of

[`IProductMessage`](/proto-reference/Message/interfaces/IProductMessage).[`product`](/proto-reference/Message/interfaces/IProductMessage#product)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IProductMessage`](/proto-reference/Message/interfaces/IProductMessage)

#### Returns

[`ProductMessage`](/proto-reference/Message/classes/ProductMessage)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`ProductMessage`](/proto-reference/Message/classes/ProductMessage)

***

### encode()

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

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

#### Parameters

##### m

[`IProductMessage`](/proto-reference/Message/interfaces/IProductMessage)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`ProductMessage`](/proto-reference/Message/classes/ProductMessage)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`ProductMessage`](/proto-reference/Message/classes/ProductMessage)

##### o?

`IConversionOptions`

#### Returns

`object`
