# AuthorizationRequest

Represents a request made by an Identity to another Identity (or account) for some sort of authorization. This has multiple uses. For example, if Alice wants to transfer ownership of her asset ALICETOKEN to Bob, an authorization request gets emitted to Bob, who then has to accept it in order for the ownership transfer to be complete

## Hierarchy

* [Entity](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/entity)‹UniqueIdentifiers›

  ↳ **AuthorizationRequest**

## Index

### Properties

* [accept](#accept)
* [authId](#authid)
* [context](#protected-context)
* [data](#data)
* [expiry](#expiry)
* [issuer](#issuer)
* [remove](#remove)
* [target](#target)
* [uuid](#uuid)

### Methods

* [isEqual](#isequal)
* [isExpired](#isexpired)
* [generateUuid](#static-generateuuid)
* [unserialize](#static-unserialize)

## Properties

### accept

• **accept**: *ProcedureMethod‹void, void›*

*Defined in* [*src/api/entities/AuthorizationRequest.ts:135*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/AuthorizationRequest.ts#L135)

Accept the authorization request. You must be the target of the request to be able to accept it

### authId

• **authId**: *BigNumber*

*Defined in* [*src/api/entities/AuthorizationRequest.ts:79*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/AuthorizationRequest.ts#L79)

internal identifier for the request (used to accept/reject/cancel)

### `Protected` context

• **context**: [*Context*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/context)

*Inherited from* [*CheckpointSchedule*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/checkpointschedule)*.*[*context*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/checkpointschedule#protected-context)

*Defined in* [*src/api/entities/Entity.ts:48*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/Entity.ts#L48)

### data

• **data**: [*Authorization*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/globals#authorization)

*Defined in* [*src/api/entities/AuthorizationRequest.ts:68*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/AuthorizationRequest.ts#L68)

authorization request data corresponding to type of authorization

| Type                        | Data      |
| --------------------------- | --------- |
| Attest Primary Key Rotation | DID       |
| Rotate Primary Key          | DID       |
| Transfer Ticker             | Ticker    |
| Add MultiSig Signer         | Account   |
| Transfer Token Ownership    | Ticker    |
| Join Identity               | DID       |
| Portfolio Custody           | Portfolio |
| Custom                      | Custom    |
| No Data                     | N/A       |

### expiry

• **expiry**: *Date | null*

*Defined in* [*src/api/entities/AuthorizationRequest.ts:74*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/AuthorizationRequest.ts#L74)

date at which the authorization request expires and can no longer be accepted. At this point, a new authorization request must be emitted. Null if the request never expires

### issuer

• **issuer**: [*Identity*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/identity)

*Defined in* [*src/api/entities/AuthorizationRequest.ts:51*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/AuthorizationRequest.ts#L51)

Identity that emitted the request

### remove

• **remove**: *ProcedureMethod‹void, void›*

*Defined in* [*src/api/entities/AuthorizationRequest.ts:143*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/AuthorizationRequest.ts#L143)

Remove the authorization request

* If you are the request issuer, this will cancel the authorization
* If you are the request target, this will reject the authorization

### target

• **target**: [*Signer*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/globals#signer)

*Defined in* [*src/api/entities/AuthorizationRequest.ts:46*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/AuthorizationRequest.ts#L46)

Identity or Account to which the request was emitted

### uuid

• **uuid**: *string*

*Inherited from* [*CheckpointSchedule*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/checkpointschedule)*.*[*uuid*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/checkpointschedule#uuid)

*Defined in* [*src/api/entities/Entity.ts:46*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/Entity.ts#L46)

## Methods

### isEqual

▸ **isEqual**(`entity`: [Entity](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/entity)‹object›): *boolean*

*Inherited from* [*CheckpointSchedule*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/checkpointschedule)*.*[*isEqual*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/checkpointschedule#isequal)

*Defined in* [*src/api/entities/Entity.ts:61*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/Entity.ts#L61)

Whether this Entity is the same as another one

**Parameters:**

| Name     | Type                                                                                                    |
| -------- | ------------------------------------------------------------------------------------------------------- |
| `entity` | [Entity](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/entity)‹object› |

**Returns:** *boolean*

### isExpired

▸ **isExpired**(): *boolean*

*Defined in* [*src/api/entities/AuthorizationRequest.ts:148*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/AuthorizationRequest.ts#L148)

Returns whether the Authorization Request has expired

**Returns:** *boolean*

### `Static` generateUuid

▸ **generateUuid**‹**Identifiers**›(`identifiers`: Identifiers): *string*

*Inherited from* [*CheckpointSchedule*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/checkpointschedule)*.*[*generateUuid*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/checkpointschedule#static-generateuuid)

*Defined in* [*src/api/entities/Entity.ts:14*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/Entity.ts#L14)

Generate the Entity's UUID from its identifying properties

**Type parameters:**

▪ **Identifiers**: *object*

**Parameters:**

| Name          | Type        | Description |
| ------------- | ----------- | ----------- |
| `identifiers` | Identifiers |             |

**Returns:** *string*

### `Static` unserialize

▸ **unserialize**‹**Identifiers**›(`serialized`: string): *Identifiers*

*Inherited from* [*CheckpointSchedule*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/classes/checkpointschedule)*.*[*unserialize*](https://developers.polymath.network/polymesh-sdk-api-reference/docs-v5/checkpointschedule#static-unserialize)

*Defined in* [*src/api/entities/Entity.ts:23*](https://github.com/PolymathNetwork/polymesh-sdk/blob/524b0225/src/api/entities/Entity.ts#L23)

Unserialize a UUID into its Unique Identifiers

**Type parameters:**

▪ **Identifiers**: *object*

**Parameters:**

| Name         | Type   | Description         |
| ------------ | ------ | ------------------- |
| `serialized` | string | UUID to unserialize |

**Returns:** *Identifiers*
