Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,23 @@ const response = await client.payments.create(..., {
});
```

### Receive extra properties

Every response includes any extra properties in the JSON response that were not specified in the type.
This can be useful for API features not present in the SDK yet.

You can receive and interact with the extra properties by accessing each one directly like so:

```typescript
const response = await client.locations.create(...);

// Cast the response type into an `any`.
const location = response.location as any;

// Then access the extra property by its name.
const undocumentedProperty = location.undocumentedProperty;
```

### Retries

The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
Expand Down