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

# TravelRule

> TravelRule API reference.

Package: [`com.coinbase.cdp.types`](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/index)

```java theme={null}
public final class TravelRule extends Object
```

## Method Details

### `getIsSelf`

```java theme={null}
public Optional<Boolean> getIsSelf()
```

**Returns:**

`Optional<Boolean>` - Indicates whether the user attests that the receiving wallet belongs to them.

### `getIsIntermediary`

```java theme={null}
public Optional<IsIntermediary> getIsIntermediary()
```

**Returns:**

`Optional`\<[IsIntermediary](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/IsIntermediary)>

### `getAttestVerifiedWalletOwnership`

```java theme={null}
public Optional<Boolean> getAttestVerifiedWalletOwnership()
```

**Returns:**

`Optional<Boolean>` - When `true`, you attest that the beneficiary's wallet ownership has been verified out-of-band. Instructs Coinbase to skip the wallet verification check for this transfer.

**Only valid when `isIntermediary` is `true`.** You can only attest to the beneficiary's wallet ownership when your organization is acting as the originating VASP on behalf of your end customer, and Coinbase is acting as the intermediary VASP. Returns a `400` error if set to `true` when `isIntermediary` is `false` or omitted.

### `getOriginator`

```java theme={null}
public Optional<TravelRuleOriginator> getOriginator()
```

**Returns:**

`Optional`\<[TravelRuleOriginator](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/TravelRuleOriginator)>

### `getBeneficiary`

```java theme={null}
public Optional<TravelRuleBeneficiary> getBeneficiary()
```

**Returns:**

`Optional`\<[TravelRuleBeneficiary](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/TravelRuleBeneficiary)>

### `equals`

```java theme={null}
public boolean equals(Object other)
```

**Overrides:**

`[equals](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals\(java.lang.Object\) "class or interface in java.lang")` in class `[Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")`

**Parameters:**

`other` - `Object`

**Returns:**

`boolean`

### `getAdditionalProperties`

```java theme={null}
public Map<String,Object> getAdditionalProperties()
```

**Returns:**

`Map<String,Object>`

### `hashCode`

```java theme={null}
public int hashCode()
```

**Overrides:**

`[hashCode](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode\(\) "class or interface in java.lang")` in class `[Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")`

**Returns:**

`int`

### `toString`

```java theme={null}
public String toString()
```

**Overrides:**

`[toString](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString\(\) "class or interface in java.lang")` in class `[Object](https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html "class or interface in java.lang")`

**Returns:**

`String`

### `builder`

```java theme={null}
public static TravelRule.Builder builder()
```

**Returns:**

[TravelRule](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/types/TravelRule).`Builder`
