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

# CustomPaymentMethodMetadata

> Protobuf class CustomPaymentMethodMetadata generated from WAProto.

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

## Implements

* [`ICustomPaymentMethodMetadata`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethodMetadata)

## Constructors

### new CustomPaymentMethodMetadata()

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

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

#### Parameters

##### p?

[`ICustomPaymentMethodMetadata`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethodMetadata)

#### Returns

[`CustomPaymentMethodMetadata`](/proto-reference/SyncActionValue/classes/CustomPaymentMethodMetadata)

## Properties

### key

> **key**: `string`

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

#### Implementation of

[`ICustomPaymentMethodMetadata`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethodMetadata).[`key`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethodMetadata#key)

***

### value

> **value**: `string`

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

#### Implementation of

[`ICustomPaymentMethodMetadata`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethodMetadata).[`value`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethodMetadata#value)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`ICustomPaymentMethodMetadata`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethodMetadata)

#### Returns

[`CustomPaymentMethodMetadata`](/proto-reference/SyncActionValue/classes/CustomPaymentMethodMetadata)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`CustomPaymentMethodMetadata`](/proto-reference/SyncActionValue/classes/CustomPaymentMethodMetadata)

***

### encode()

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

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

#### Parameters

##### m

[`ICustomPaymentMethodMetadata`](/proto-reference/SyncActionValue/interfaces/ICustomPaymentMethodMetadata)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`CustomPaymentMethodMetadata`](/proto-reference/SyncActionValue/classes/CustomPaymentMethodMetadata)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`CustomPaymentMethodMetadata`](/proto-reference/SyncActionValue/classes/CustomPaymentMethodMetadata)

##### o?

`IConversionOptions`

#### Returns

`object`
