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

# SubscriptionAction

> Protobuf class SubscriptionAction generated from WAProto.

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

## Implements

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

## Constructors

### new SubscriptionAction()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### expirationDate?

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

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

#### Implementation of

[`ISubscriptionAction`](/proto-reference/SyncActionValue/interfaces/ISubscriptionAction).[`expirationDate`](/proto-reference/SyncActionValue/interfaces/ISubscriptionAction#expirationdate)

***

### isAutoRenewing?

> `optional` **isAutoRenewing**: `null` | `boolean`

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

#### Implementation of

[`ISubscriptionAction`](/proto-reference/SyncActionValue/interfaces/ISubscriptionAction).[`isAutoRenewing`](/proto-reference/SyncActionValue/interfaces/ISubscriptionAction#isautorenewing)

***

### isDeactivated?

> `optional` **isDeactivated**: `null` | `boolean`

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

#### Implementation of

[`ISubscriptionAction`](/proto-reference/SyncActionValue/interfaces/ISubscriptionAction).[`isDeactivated`](/proto-reference/SyncActionValue/interfaces/ISubscriptionAction#isdeactivated)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
