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

# PaymentBackground

> Protobuf class PaymentBackground generated from WAProto.

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

## Implements

* [`IPaymentBackground`](/proto-reference/interfaces/IPaymentBackground)

## Constructors

### new PaymentBackground()

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

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

#### Parameters

##### p?

[`IPaymentBackground`](/proto-reference/interfaces/IPaymentBackground)

#### Returns

[`PaymentBackground`](/proto-reference/classes/PaymentBackground)

## Properties

### fileLength?

> `optional` **fileLength**: `null` | `number` | `Long`

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

#### Implementation of

[`IPaymentBackground`](/proto-reference/interfaces/IPaymentBackground).[`fileLength`](/proto-reference/interfaces/IPaymentBackground#filelength)

***

### height?

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

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

#### Implementation of

[`IPaymentBackground`](/proto-reference/interfaces/IPaymentBackground).[`height`](/proto-reference/interfaces/IPaymentBackground#height)

***

### id?

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

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

#### Implementation of

[`IPaymentBackground`](/proto-reference/interfaces/IPaymentBackground).[`id`](/proto-reference/interfaces/IPaymentBackground#id)

***

### mediaData?

> `optional` **mediaData**: `null` | [`IMediaData`](/proto-reference/PaymentBackground/interfaces/IMediaData)

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

#### Implementation of

[`IPaymentBackground`](/proto-reference/interfaces/IPaymentBackground).[`mediaData`](/proto-reference/interfaces/IPaymentBackground#mediadata)

***

### mimetype?

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

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

#### Implementation of

[`IPaymentBackground`](/proto-reference/interfaces/IPaymentBackground).[`mimetype`](/proto-reference/interfaces/IPaymentBackground#mimetype)

***

### placeholderArgb?

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

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

#### Implementation of

[`IPaymentBackground`](/proto-reference/interfaces/IPaymentBackground).[`placeholderArgb`](/proto-reference/interfaces/IPaymentBackground#placeholderargb)

***

### subtextArgb?

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

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

#### Implementation of

[`IPaymentBackground`](/proto-reference/interfaces/IPaymentBackground).[`subtextArgb`](/proto-reference/interfaces/IPaymentBackground#subtextargb)

***

### textArgb?

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

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

#### Implementation of

[`IPaymentBackground`](/proto-reference/interfaces/IPaymentBackground).[`textArgb`](/proto-reference/interfaces/IPaymentBackground#textargb)

***

### type?

> `optional` **type**: `null` | [`Type`](/proto-reference/PaymentBackground/enumerations/Type)

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

#### Implementation of

[`IPaymentBackground`](/proto-reference/interfaces/IPaymentBackground).[`type`](/proto-reference/interfaces/IPaymentBackground#type)

***

### width?

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

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

#### Implementation of

[`IPaymentBackground`](/proto-reference/interfaces/IPaymentBackground).[`width`](/proto-reference/interfaces/IPaymentBackground#width)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IPaymentBackground`](/proto-reference/interfaces/IPaymentBackground)

#### Returns

[`PaymentBackground`](/proto-reference/classes/PaymentBackground)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`PaymentBackground`](/proto-reference/classes/PaymentBackground)

***

### encode()

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

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

#### Parameters

##### m

[`IPaymentBackground`](/proto-reference/interfaces/IPaymentBackground)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`PaymentBackground`](/proto-reference/classes/PaymentBackground)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`PaymentBackground`](/proto-reference/classes/PaymentBackground)

##### o?

`IConversionOptions`

#### Returns

`object`
