-
Notifications
You must be signed in to change notification settings - Fork 0
/
identifiers.ts
33 lines (26 loc) · 942 Bytes
/
identifiers.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
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import * as Core from '../../core';
import { APIResource } from '../../resource';
import * as IdentifiersAPI from './identifiers';
export class Identifiers extends APIResource {
/**
* Return several identifiers for the merchant, such as public IDs, publishable
* keys, signing secrets, etc...
*/
list(options?: Core.RequestOptions): Core.APIPromise<IdentifierListResponse> {
return this._client.get('/merchant/identifiers', options);
}
}
export interface IdentifierListResponse {
merchant_divisions: Array<IdentifierListResponse.MerchantDivision>;
merchant_id: string;
signing_secret: string;
}
export namespace IdentifierListResponse {
export interface MerchantDivision {
publishable_key: string;
}
}
export namespace Identifiers {
export import IdentifierListResponse = IdentifiersAPI.IdentifierListResponse;
}