Repository navigation
Expand file tree
/
Copy pathnetwork-programs.ts
More file actions
77 lines (65 loc) · 2.03 KB
/
Copy pathnetwork-programs.ts
File metadata and controls
77 lines (65 loc) · 2.03 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../core/resource';
import { APIPromise } from '../core/api-promise';
import { PagePromise, SinglePage } from '../core/pagination';
import { RequestOptions } from '../internal/request-options';
import { path } from '../internal/utils/path';
export class NetworkPrograms extends APIResource {
/**
* Get network program.
*/
retrieve(networkProgramToken: string, options?: RequestOptions): APIPromise<NetworkProgram> {
return this._client.get(path`/v1/network_programs/${networkProgramToken}`, options);
}
/**
* List network programs.
*/
list(
query: NetworkProgramListParams | null | undefined = {},
options?: RequestOptions,
): PagePromise<NetworkProgramsSinglePage, NetworkProgram> {
return this._client.getAPIList('/v1/network_programs', SinglePage<NetworkProgram>, { query, ...options });
}
}
export type NetworkProgramsSinglePage = SinglePage<NetworkProgram>;
export interface NetworkProgram {
/**
* Lithic-generated unique identifier for the program
*/
token: string;
/**
* Network product ID associated with this program.
*/
default_product_code: string;
/**
* The name of the network program.
*/
name: string;
/**
* RPIN value assigned by the network.
*/
registered_program_identification_number: string;
}
export interface NetworkProgramListParams {
/**
* Date string in RFC 3339 format. Only entries created on or after the specified
* time will be included. UTC time zone.
*/
begin?: string;
/**
* Date string in RFC 3339 format. Only entries created before the specified time
* will be included. UTC time zone.
*/
end?: string;
/**
* Page size (for pagination).
*/
page_size?: number;
}
export declare namespace NetworkPrograms {
export {
type NetworkProgram as NetworkProgram,
type NetworkProgramsSinglePage as NetworkProgramsSinglePage,
type NetworkProgramListParams as NetworkProgramListParams,
};
}