# Interface: TransactionData

## Properties

### amount

• **amount**: `number`

### currency

• **currency**: `string`

### type

• `Optional` **type**: `TransactionType`

### method

• `Optional` **method**: `TransactionMethod`

### channelId

• `Optional` **channelId**: `string`

### reason

• `Optional` **reason**: `string`

### transactionDate

• `Optional` **transactionDate**: `number`

### payer

• `Optional` **payer**: `Object`

#### Type declaration

| Name | Type |
|  --- | --- |
| `accountId?` | `string` |
| `accountNumber?` | `string` |
| `accountCountryCode?` | `string` |
| `bankIdentifier?` | `string` |
| `branchIdentifier?` | `string` |
| `name?` | `string` |
| `customerTier?` | `string` |
| `card?` | [`Card`](#card) |
| `billingInfo?` | [`BillingInfo`](#billinginfo) |


### payee

• `Optional` **payee**: `Object`

#### Type declaration

| Name | Type |
|  --- | --- |
| `accountId?` | `string` |
| `accountNumber?` | `string` |
| `accountCountryCode?` | `string` |
| `bankIdentifier?` | `string` |
| `branchIdentifier?` | `string` |
| `name?` | `string` |
| `card?` | [`Card`](#card) |


### purchase

• `Optional` **purchase**: `Object`

#### Type declaration

| Name | Type |
|  --- | --- |
| `totalItems?` | `number` |
| `products` | [`Product`](#product)[] |
| `shippingInfo?` | [`ShippingInfo`](#shippinginfo) |


### avs

• `Optional` **avs**: `Object`

#### Type declaration

| Name | Type |
|  --- | --- |
| `code?` | `string` |
| `provider?` | `string` |
| `matchLevel?` | `AvsMatchLevel` |


## Enums

### TransactionType

| Value |
|  --- |
| `purchase` |
| `bill_payment` |
| `mobile_recharge` |
| `money_transfer` |
| `credit_transfer` |
| `credit_redemption` |
| `top_up` |
| `withdrawal` |
| `investment` |
| `loan` |
| `refund` |
| `other` |


### TransactionMethod

| Value |
|  --- |
| `bank_account` |
| `wire` |
| `card` |
| `p2p` |
| `wallet` |


### AvsMatchLevel

| Value |
|  --- |
| `none` |
| `postal` |
| `street` |
| `full` |
| `unknown` |


## Nested Objects

### Card

| Name | Type |
|  --- | --- |
| `holderName?` | `string` |
| `bin?` | `string` |
| `last4?` | `string` |


### Product

| Name | Type |
|  --- | --- |
| `id?` | `string` |
| `name?` | `string` |
| `amount?` | `number` |
| `price?` | `number` |


### BillingInfo

| Name | Type |
|  --- | --- |
| `name?` | `string` |
| `addressLine1?` | `string` |
| `addressLine2?` | `string` |
| `city?` | `string` |
| `state?` | `string` |
| `zipPostalCode?` | `string` |
| `country?` | `string` |
| `email?` | `string` |
| `phone?` | `string` |


### ShippingInfo

| Name | Type |
|  --- | --- |
| `name?` | `string` |
| `addressLine1?` | `string` |
| `addressLine2?` | `string` |
| `city?` | `string` |
| `state?` | `string` |
| `zipPostalCode?` | `string` |
| `country?` | `string` |
| `email?` | `string` |
| `phone?` | `string` |