---
url: https://node-ts.github.io/bus/api/bus-test/classes/TestRoundTripCommand.md
---
[API reference](../../index.md) / [@node-ts/bus-test](../index.md) / TestRoundTripCommand

# Class: TestRoundTripCommand

Defined in: [bus-test/src/helpers/test-round-trip-command.ts:10](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L10)

A command that uses every kind of field the serializer has to restore, used to check
that messages survive a round trip through a transport

## Extends

* [`Command`](../../bus-messages/classes/Command.md)

## Constructors

### Constructor

```ts
new TestRoundTripCommand(): TestRoundTripCommand;
```

#### Returns

`TestRoundTripCommand`

#### Inherited from

[`Command`](../../bus-messages/classes/Command.md).[`constructor`](../../bus-messages/classes/Command.md#constructor)

## Properties

| Property | Modifier | Type | Default value | Description | Overrides | Defined in |
| ------ | ------ | ------ | ------ | ------ | ------ | ------ |
| <a id="property-name"></a> `$name` | `public` | `string` | `TestRoundTripCommand.NAME` | - | [`Command`](../../bus-messages/classes/Command.md).[`$name`](../../bus-messages/classes/Command.md#property-name) | [bus-test/src/helpers/test-round-trip-command.ts:12](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L12) |
| <a id="property-version"></a> `$version` | `public` | `number` | `2` | - | [`Command`](../../bus-messages/classes/Command.md).[`$version`](../../bus-messages/classes/Command.md#property-version) | [bus-test/src/helpers/test-round-trip-command.ts:13](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L13) |
| <a id="property-billingaddress"></a> `billingAddress?` | `public` | [`TestAddress`](TestAddress.md) | `undefined` | - | - | [bus-test/src/helpers/test-round-trip-command.ts:35](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L35) |
| <a id="property-cancelledat"></a> `cancelledAt` | `public` | `Date` | `null` | `undefined` | - | - | [bus-test/src/helpers/test-round-trip-command.ts:37](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L37) |
| <a id="property-channel"></a> `channel` | `public` | `string` | `'web'` | Has a default that only a constructor call applies | - | [bus-test/src/helpers/test-round-trip-command.ts:44](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L44) |
| <a id="property-customer"></a> `customer` | `public` | [`TestCustomer`](TestCustomer.md) | `undefined` | - | - | [bus-test/src/helpers/test-round-trip-command.ts:19](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L19) |
| <a id="property-deliveredat"></a> `deliveredAt?` | `public` | `Date` | `undefined` | - | - | [bus-test/src/helpers/test-round-trip-command.ts:33](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L33) |
| <a id="property-id"></a> `id` | `public` | `string` | `undefined` | - | - | [bus-test/src/helpers/test-round-trip-command.ts:15](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L15) |
| <a id="property-lines"></a> `lines` | `public` | [`TestOrderLine`](TestOrderLine.md)\[] | `undefined` | - | - | [bus-test/src/helpers/test-round-trip-command.ts:21](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L21) |
| <a id="property-linesbysku"></a> `linesBySku` | `public` | `Map`<`string`, [`TestOrderLine`](TestOrderLine.md)> | `undefined` | - | - | [bus-test/src/helpers/test-round-trip-command.ts:25](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L25) |
| <a id="property-note"></a> `note?` | `public` | `string` | `undefined` | - | - | [bus-test/src/helpers/test-round-trip-command.ts:29](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L29) |
| <a id="property-placedat"></a> `placedAt` | `public` | `Date` | `undefined` | - | - | [bus-test/src/helpers/test-round-trip-command.ts:17](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L17) |
| <a id="property-referrer"></a> `referrer` | `public` | [`TestCustomer`](TestCustomer.md) | `null` | `undefined` | - | - | [bus-test/src/helpers/test-round-trip-command.ts:39](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L39) |
| <a id="property-reminders"></a> `reminders` | `public` | `Date`\[] | `undefined` | - | - | [bus-test/src/helpers/test-round-trip-command.ts:23](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L23) |
| <a id="property-shippedat"></a> `shippedAt?` | `public` | `Date` | `undefined` | - | - | [bus-test/src/helpers/test-round-trip-command.ts:31](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L31) |
| <a id="property-tags"></a> `tags` | `public` | `Set`<`string`> | `undefined` | - | - | [bus-test/src/helpers/test-round-trip-command.ts:27](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L27) |
| <a id="property-untypeddate"></a> `untypedDate` | `public` | `Date` | `undefined` | The only Date that had no `@Type` decorator under class-transformer | - | [bus-test/src/helpers/test-round-trip-command.ts:49](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L49) |
| <a id="property-name-1"></a> `NAME` | `static` | `string` | `'@node-ts/bus-test/test-round-trip-command'` | - | - | [bus-test/src/helpers/test-round-trip-command.ts:11](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L11) |

## Accessors

### lineCount

#### Get Signature

```ts
get lineCount(): number;
```

Defined in: [bus-test/src/helpers/test-round-trip-command.ts:51](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L51)

##### Returns

`number`

## Methods

### orderTotal()

```ts
orderTotal(): number;
```

Defined in: [bus-test/src/helpers/test-round-trip-command.ts:55](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-test/src/helpers/test-round-trip-command.ts#L55)

#### Returns

`number`
