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

# PaymentTosAction

> Protobuf class PaymentTosAction generated from WAProto.

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

## Implements

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

## Constructors

### new PaymentTosAction()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### accepted

> **accepted**: `boolean`

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

#### Implementation of

[`IPaymentTosAction`](/proto-reference/SyncActionValue/interfaces/IPaymentTosAction).[`accepted`](/proto-reference/SyncActionValue/interfaces/IPaymentTosAction#accepted)

***

### paymentNotice

> **paymentNotice**: [`BR_PAY_PRIVACY_POLICY`](/proto-reference/SyncActionValue/PaymentTosAction/enumerations/PaymentNotice#br_pay_privacy_policy)

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

#### Implementation of

[`IPaymentTosAction`](/proto-reference/SyncActionValue/interfaces/IPaymentTosAction).[`paymentNotice`](/proto-reference/SyncActionValue/interfaces/IPaymentTosAction#paymentnotice)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
