-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrip.ts
56 lines (39 loc) · 1.14 KB
/
trip.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import * as Core from '../core';
import * as Shared from './shared';
export class Trip extends APIResource {
/**
* Get details of a specific trip
*/
retrieve(tripId: string, options?: Core.RequestOptions): Core.APIPromise<TripRetrieveResponse> {
return this._client.get(`/api/where/trip/${tripId}.json`, options);
}
}
export interface TripRetrieveResponse extends Shared.ResponseWrapper {
data: TripRetrieveResponse.Data;
}
export namespace TripRetrieveResponse {
export interface Data {
entry: Data.Entry;
references: Shared.References;
}
export namespace Data {
export interface Entry {
id: string;
routeId: string;
serviceId: string;
blockId?: string;
directionId?: string;
peakOffpeak?: number;
routeShortName?: string;
shapeId?: string;
timeZone?: string;
tripHeadsign?: string;
tripShortName?: string;
}
}
}
export declare namespace Trip {
export { type TripRetrieveResponse as TripRetrieveResponse };
}