pingram 1.0.40-alpha.1714 → 1.0.40-alpha.1716
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/src/apis/AccountApi.d.ts +77 -9
- package/dist/generated/src/apis/AccountApi.js +164 -4
- package/dist/generated/src/apis/index.d.ts +1 -1
- package/dist/generated/src/models/AccountPaymentMethods.d.ts +51 -0
- package/dist/generated/src/models/AccountPaymentMethods.js +64 -0
- package/dist/generated/src/models/AccountPaymentMethodsPaymentMethodsInner.d.ts +56 -0
- package/dist/generated/src/models/AccountPaymentMethodsPaymentMethodsInner.js +66 -0
- package/dist/generated/src/models/AssignPaymentMethodRequest.d.ts +47 -0
- package/dist/generated/src/models/AssignPaymentMethodRequest.js +63 -0
- package/dist/generated/src/models/BillingPostResponseBody.d.ts +1 -1
- package/dist/generated/src/models/CreatePaymentMethodSetupRequest.d.ts +38 -0
- package/dist/generated/src/models/CreatePaymentMethodSetupRequest.js +54 -0
- package/dist/generated/src/models/ListInvoicesResponseInvoicesInner.d.ts +1 -1
- package/dist/generated/src/models/PaymentMethodSetup.d.ts +38 -0
- package/dist/generated/src/models/PaymentMethodSetup.js +54 -0
- package/dist/generated/src/models/index.d.ts +5 -0
- package/dist/generated/src/models/index.js +5 -0
- package/package.json +1 -1
|
@@ -10,13 +10,19 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AccountGetResponse, AccountPatchRequest, BillingEmail, BillingPostRequestBody, BillingPostResponseBody, CancelSubscriptionRequest, GetUsageHistoryResponse, GetUsageResponse, ListInvoicesResponse, SupabaseConfigureRequest, SupabaseConfigureResponse, SupabaseOAuthRequest, SupabaseOAuthResponse, SupabaseProjectsResponse, SupabaseStatusResponse, UpdateBillingEmailRequest } from '../models/index';
|
|
13
|
+
import type { AccountGetResponse, AccountPatchRequest, AccountPaymentMethods, AssignPaymentMethodRequest, BillingEmail, BillingPostRequestBody, BillingPostResponseBody, CancelSubscriptionRequest, CreatePaymentMethodSetupRequest, GetUsageHistoryResponse, GetUsageResponse, ListInvoicesResponse, PaymentMethodSetup, SupabaseConfigureRequest, SupabaseConfigureResponse, SupabaseOAuthRequest, SupabaseOAuthResponse, SupabaseProjectsResponse, SupabaseStatusResponse, UpdateBillingEmailRequest } from '../models/index';
|
|
14
|
+
export interface AssignPaymentMethodOperationRequest {
|
|
15
|
+
assignPaymentMethodRequest: AssignPaymentMethodRequest;
|
|
16
|
+
}
|
|
14
17
|
export interface CancelSubscriptionOperationRequest {
|
|
15
18
|
cancelSubscriptionRequest: CancelSubscriptionRequest;
|
|
16
19
|
}
|
|
17
20
|
export interface ConfigureSupabaseSMTPRequest {
|
|
18
21
|
supabaseConfigureRequest: SupabaseConfigureRequest;
|
|
19
22
|
}
|
|
23
|
+
export interface CreatePaymentMethodSetupOperationRequest {
|
|
24
|
+
createPaymentMethodSetupRequest: CreatePaymentMethodSetupRequest;
|
|
25
|
+
}
|
|
20
26
|
export interface GetUsageHistoryRequest {
|
|
21
27
|
startDate: string;
|
|
22
28
|
endDate: string;
|
|
@@ -48,6 +54,19 @@ export interface UpdateBillingEmailOperationRequest {
|
|
|
48
54
|
* @interface AccountApiInterface
|
|
49
55
|
*/
|
|
50
56
|
export interface AccountApiInterface {
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @summary Use a saved card for this account, as the default for new accounts, or for every account that shares these cards. Only the account owner can call this.
|
|
60
|
+
* @param {AssignPaymentMethodRequest} assignPaymentMethodRequest
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
* @memberof AccountApiInterface
|
|
64
|
+
*/
|
|
65
|
+
assignPaymentMethodRaw(requestParameters: AssignPaymentMethodOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountPaymentMethods>>;
|
|
66
|
+
/**
|
|
67
|
+
* Use a saved card for this account, as the default for new accounts, or for every account that shares these cards. Only the account owner can call this.
|
|
68
|
+
*/
|
|
69
|
+
assignPaymentMethod(assignPaymentMethodRequest: AssignPaymentMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountPaymentMethods>;
|
|
51
70
|
/**
|
|
52
71
|
*
|
|
53
72
|
* @summary Cancel the paid plan at the end of the current billing cycle. Access continues until then.
|
|
@@ -74,6 +93,19 @@ export interface AccountApiInterface {
|
|
|
74
93
|
* Configure SMTP settings for a Supabase project
|
|
75
94
|
*/
|
|
76
95
|
configureSupabaseSMTP(supabaseConfigureRequest: SupabaseConfigureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseConfigureResponse>;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @summary Return a URL to add a card. Only the account owner can call this. The card is not assigned until you call assign.
|
|
99
|
+
* @param {CreatePaymentMethodSetupRequest} createPaymentMethodSetupRequest
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
* @memberof AccountApiInterface
|
|
103
|
+
*/
|
|
104
|
+
createPaymentMethodSetupRaw(requestParameters: CreatePaymentMethodSetupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentMethodSetup>>;
|
|
105
|
+
/**
|
|
106
|
+
* Return a URL to add a card. Only the account owner can call this. The card is not assigned until you call assign.
|
|
107
|
+
*/
|
|
108
|
+
createPaymentMethodSetup(createPaymentMethodSetupRequest: CreatePaymentMethodSetupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentMethodSetup>;
|
|
77
109
|
/**
|
|
78
110
|
*
|
|
79
111
|
* @summary Get account information for the authenticated account
|
|
@@ -139,7 +171,7 @@ export interface AccountApiInterface {
|
|
|
139
171
|
getUsageHistory(startDate: string, endDate: string, groupBy?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsageHistoryResponse>;
|
|
140
172
|
/**
|
|
141
173
|
*
|
|
142
|
-
* @summary List
|
|
174
|
+
* @summary List invoices for this account, newest first.
|
|
143
175
|
* @param {number} [limit] Max invoices to return (1-100, default 10)
|
|
144
176
|
* @param {string} [startingAfter] Pagination cursor (invoice id from a previous response)
|
|
145
177
|
* @param {string} [status] Filter by status
|
|
@@ -151,9 +183,21 @@ export interface AccountApiInterface {
|
|
|
151
183
|
*/
|
|
152
184
|
listInvoicesRaw(requestParameters: ListInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListInvoicesResponse>>;
|
|
153
185
|
/**
|
|
154
|
-
* List
|
|
186
|
+
* List invoices for this account, newest first.
|
|
155
187
|
*/
|
|
156
188
|
listInvoices(limit?: number, startingAfter?: string, status?: string, createdAfter?: string, createdBefore?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListInvoicesResponse>;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @summary List saved cards. Only the account owner can call this.
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
* @memberof AccountApiInterface
|
|
195
|
+
*/
|
|
196
|
+
listPaymentMethodsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountPaymentMethods>>;
|
|
197
|
+
/**
|
|
198
|
+
* List saved cards. Only the account owner can call this.
|
|
199
|
+
*/
|
|
200
|
+
listPaymentMethods(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountPaymentMethods>;
|
|
157
201
|
/**
|
|
158
202
|
*
|
|
159
203
|
* @summary List Supabase projects for the connected account
|
|
@@ -168,7 +212,7 @@ export interface AccountApiInterface {
|
|
|
168
212
|
listSupabaseProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseProjectsResponse>;
|
|
169
213
|
/**
|
|
170
214
|
*
|
|
171
|
-
* @summary
|
|
215
|
+
* @summary Start or continue billing for this account. Returns a URL when payment is needed.
|
|
172
216
|
* @param {BillingPostRequestBody} billingPostRequestBody
|
|
173
217
|
* @param {*} [options] Override http request option.
|
|
174
218
|
* @throws {RequiredError}
|
|
@@ -176,7 +220,7 @@ export interface AccountApiInterface {
|
|
|
176
220
|
*/
|
|
177
221
|
prepareCheckoutSessionRaw(requestParameters: PrepareCheckoutSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BillingPostResponseBody>>;
|
|
178
222
|
/**
|
|
179
|
-
*
|
|
223
|
+
* Start or continue billing for this account. Returns a URL when payment is needed.
|
|
180
224
|
*/
|
|
181
225
|
prepareCheckoutSession(billingPostRequestBody: BillingPostRequestBody, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BillingPostResponseBody>;
|
|
182
226
|
/**
|
|
@@ -247,6 +291,14 @@ export interface AccountApiInterface {
|
|
|
247
291
|
*
|
|
248
292
|
*/
|
|
249
293
|
export declare class AccountApi extends runtime.BaseAPI implements AccountApiInterface {
|
|
294
|
+
/**
|
|
295
|
+
* Use a saved card for this account, as the default for new accounts, or for every account that shares these cards. Only the account owner can call this.
|
|
296
|
+
*/
|
|
297
|
+
assignPaymentMethodRaw(requestParameters: AssignPaymentMethodOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountPaymentMethods>>;
|
|
298
|
+
/**
|
|
299
|
+
* Use a saved card for this account, as the default for new accounts, or for every account that shares these cards. Only the account owner can call this.
|
|
300
|
+
*/
|
|
301
|
+
assignPaymentMethod(assignPaymentMethodRequest: AssignPaymentMethodRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountPaymentMethods>;
|
|
250
302
|
/**
|
|
251
303
|
* Cancel the paid plan at the end of the current billing cycle. Access continues until then.
|
|
252
304
|
*/
|
|
@@ -263,6 +315,14 @@ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInt
|
|
|
263
315
|
* Configure SMTP settings for a Supabase project
|
|
264
316
|
*/
|
|
265
317
|
configureSupabaseSMTP(supabaseConfigureRequest: SupabaseConfigureRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseConfigureResponse>;
|
|
318
|
+
/**
|
|
319
|
+
* Return a URL to add a card. Only the account owner can call this. The card is not assigned until you call assign.
|
|
320
|
+
*/
|
|
321
|
+
createPaymentMethodSetupRaw(requestParameters: CreatePaymentMethodSetupOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaymentMethodSetup>>;
|
|
322
|
+
/**
|
|
323
|
+
* Return a URL to add a card. Only the account owner can call this. The card is not assigned until you call assign.
|
|
324
|
+
*/
|
|
325
|
+
createPaymentMethodSetup(createPaymentMethodSetupRequest: CreatePaymentMethodSetupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaymentMethodSetup>;
|
|
266
326
|
/**
|
|
267
327
|
* Get account information for the authenticated account
|
|
268
328
|
*/
|
|
@@ -304,13 +364,21 @@ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInt
|
|
|
304
364
|
*/
|
|
305
365
|
getUsageHistory(startDate: string, endDate: string, groupBy?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsageHistoryResponse>;
|
|
306
366
|
/**
|
|
307
|
-
* List
|
|
367
|
+
* List invoices for this account, newest first.
|
|
308
368
|
*/
|
|
309
369
|
listInvoicesRaw(requestParameters: ListInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListInvoicesResponse>>;
|
|
310
370
|
/**
|
|
311
|
-
* List
|
|
371
|
+
* List invoices for this account, newest first.
|
|
312
372
|
*/
|
|
313
373
|
listInvoices(limit?: number, startingAfter?: string, status?: string, createdAfter?: string, createdBefore?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListInvoicesResponse>;
|
|
374
|
+
/**
|
|
375
|
+
* List saved cards. Only the account owner can call this.
|
|
376
|
+
*/
|
|
377
|
+
listPaymentMethodsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountPaymentMethods>>;
|
|
378
|
+
/**
|
|
379
|
+
* List saved cards. Only the account owner can call this.
|
|
380
|
+
*/
|
|
381
|
+
listPaymentMethods(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountPaymentMethods>;
|
|
314
382
|
/**
|
|
315
383
|
* List Supabase projects for the connected account
|
|
316
384
|
*/
|
|
@@ -320,11 +388,11 @@ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInt
|
|
|
320
388
|
*/
|
|
321
389
|
listSupabaseProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseProjectsResponse>;
|
|
322
390
|
/**
|
|
323
|
-
*
|
|
391
|
+
* Start or continue billing for this account. Returns a URL when payment is needed.
|
|
324
392
|
*/
|
|
325
393
|
prepareCheckoutSessionRaw(requestParameters: PrepareCheckoutSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BillingPostResponseBody>>;
|
|
326
394
|
/**
|
|
327
|
-
*
|
|
395
|
+
* Start or continue billing for this account. Returns a URL when payment is needed.
|
|
328
396
|
*/
|
|
329
397
|
prepareCheckoutSession(billingPostRequestBody: BillingPostRequestBody, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BillingPostResponseBody>;
|
|
330
398
|
/**
|
|
@@ -53,6 +53,61 @@ const index_1 = require("../models/index");
|
|
|
53
53
|
*
|
|
54
54
|
*/
|
|
55
55
|
class AccountApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Use a saved card for this account, as the default for new accounts, or for every account that shares these cards. Only the account owner can call this.
|
|
58
|
+
*/
|
|
59
|
+
async assignPaymentMethodRaw(requestParameters, initOverrides) {
|
|
60
|
+
if (requestParameters['assignPaymentMethodRequest'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('assignPaymentMethodRequest', 'Required parameter "assignPaymentMethodRequest" was null or undefined when calling assignPaymentMethod().');
|
|
62
|
+
}
|
|
63
|
+
const queryParameters = {};
|
|
64
|
+
const headerParameters = {};
|
|
65
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
66
|
+
if (this.configuration &&
|
|
67
|
+
(this.configuration.username !== undefined ||
|
|
68
|
+
this.configuration.password !== undefined)) {
|
|
69
|
+
headerParameters['Authorization'] =
|
|
70
|
+
'Basic ' +
|
|
71
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
72
|
+
}
|
|
73
|
+
if (this.configuration &&
|
|
74
|
+
(this.configuration.username !== undefined ||
|
|
75
|
+
this.configuration.password !== undefined)) {
|
|
76
|
+
headerParameters['Authorization'] =
|
|
77
|
+
'Basic ' +
|
|
78
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
79
|
+
}
|
|
80
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
81
|
+
const token = this.configuration.accessToken;
|
|
82
|
+
const tokenString = await token('apiKey', []);
|
|
83
|
+
if (tokenString) {
|
|
84
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
if (this.configuration &&
|
|
88
|
+
(this.configuration.username !== undefined ||
|
|
89
|
+
this.configuration.password !== undefined)) {
|
|
90
|
+
headerParameters['Authorization'] =
|
|
91
|
+
'Basic ' +
|
|
92
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
93
|
+
}
|
|
94
|
+
let urlPath = `/account/payment-methods/assign`;
|
|
95
|
+
const response = await this.request({
|
|
96
|
+
path: urlPath,
|
|
97
|
+
method: 'POST',
|
|
98
|
+
headers: headerParameters,
|
|
99
|
+
query: queryParameters,
|
|
100
|
+
body: (0, index_1.AssignPaymentMethodRequestToJSON)(requestParameters['assignPaymentMethodRequest'])
|
|
101
|
+
}, initOverrides);
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccountPaymentMethodsFromJSON)(jsonValue));
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Use a saved card for this account, as the default for new accounts, or for every account that shares these cards. Only the account owner can call this.
|
|
106
|
+
*/
|
|
107
|
+
async assignPaymentMethod(assignPaymentMethodRequest, initOverrides) {
|
|
108
|
+
const response = await this.assignPaymentMethodRaw({ assignPaymentMethodRequest: assignPaymentMethodRequest }, initOverrides);
|
|
109
|
+
return await response.value();
|
|
110
|
+
}
|
|
56
111
|
/**
|
|
57
112
|
* Cancel the paid plan at the end of the current billing cycle. Access continues until then.
|
|
58
113
|
*/
|
|
@@ -163,6 +218,61 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
163
218
|
const response = await this.configureSupabaseSMTPRaw({ supabaseConfigureRequest: supabaseConfigureRequest }, initOverrides);
|
|
164
219
|
return await response.value();
|
|
165
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* Return a URL to add a card. Only the account owner can call this. The card is not assigned until you call assign.
|
|
223
|
+
*/
|
|
224
|
+
async createPaymentMethodSetupRaw(requestParameters, initOverrides) {
|
|
225
|
+
if (requestParameters['createPaymentMethodSetupRequest'] == null) {
|
|
226
|
+
throw new runtime.RequiredError('createPaymentMethodSetupRequest', 'Required parameter "createPaymentMethodSetupRequest" was null or undefined when calling createPaymentMethodSetup().');
|
|
227
|
+
}
|
|
228
|
+
const queryParameters = {};
|
|
229
|
+
const headerParameters = {};
|
|
230
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
231
|
+
if (this.configuration &&
|
|
232
|
+
(this.configuration.username !== undefined ||
|
|
233
|
+
this.configuration.password !== undefined)) {
|
|
234
|
+
headerParameters['Authorization'] =
|
|
235
|
+
'Basic ' +
|
|
236
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
237
|
+
}
|
|
238
|
+
if (this.configuration &&
|
|
239
|
+
(this.configuration.username !== undefined ||
|
|
240
|
+
this.configuration.password !== undefined)) {
|
|
241
|
+
headerParameters['Authorization'] =
|
|
242
|
+
'Basic ' +
|
|
243
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
244
|
+
}
|
|
245
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
246
|
+
const token = this.configuration.accessToken;
|
|
247
|
+
const tokenString = await token('apiKey', []);
|
|
248
|
+
if (tokenString) {
|
|
249
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
if (this.configuration &&
|
|
253
|
+
(this.configuration.username !== undefined ||
|
|
254
|
+
this.configuration.password !== undefined)) {
|
|
255
|
+
headerParameters['Authorization'] =
|
|
256
|
+
'Basic ' +
|
|
257
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
258
|
+
}
|
|
259
|
+
let urlPath = `/account/payment-methods/setup`;
|
|
260
|
+
const response = await this.request({
|
|
261
|
+
path: urlPath,
|
|
262
|
+
method: 'POST',
|
|
263
|
+
headers: headerParameters,
|
|
264
|
+
query: queryParameters,
|
|
265
|
+
body: (0, index_1.CreatePaymentMethodSetupRequestToJSON)(requestParameters['createPaymentMethodSetupRequest'])
|
|
266
|
+
}, initOverrides);
|
|
267
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaymentMethodSetupFromJSON)(jsonValue));
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Return a URL to add a card. Only the account owner can call this. The card is not assigned until you call assign.
|
|
271
|
+
*/
|
|
272
|
+
async createPaymentMethodSetup(createPaymentMethodSetupRequest, initOverrides) {
|
|
273
|
+
const response = await this.createPaymentMethodSetupRaw({ createPaymentMethodSetupRequest: createPaymentMethodSetupRequest }, initOverrides);
|
|
274
|
+
return await response.value();
|
|
275
|
+
}
|
|
166
276
|
/**
|
|
167
277
|
* Get account information for the authenticated account
|
|
168
278
|
*/
|
|
@@ -429,7 +539,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
429
539
|
return await response.value();
|
|
430
540
|
}
|
|
431
541
|
/**
|
|
432
|
-
* List
|
|
542
|
+
* List invoices for this account, newest first.
|
|
433
543
|
*/
|
|
434
544
|
async listInvoicesRaw(requestParameters, initOverrides) {
|
|
435
545
|
const queryParameters = {};
|
|
@@ -487,7 +597,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
487
597
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListInvoicesResponseFromJSON)(jsonValue));
|
|
488
598
|
}
|
|
489
599
|
/**
|
|
490
|
-
* List
|
|
600
|
+
* List invoices for this account, newest first.
|
|
491
601
|
*/
|
|
492
602
|
async listInvoices(limit, startingAfter, status, createdAfter, createdBefore, initOverrides) {
|
|
493
603
|
const response = await this.listInvoicesRaw({
|
|
@@ -499,6 +609,56 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
499
609
|
}, initOverrides);
|
|
500
610
|
return await response.value();
|
|
501
611
|
}
|
|
612
|
+
/**
|
|
613
|
+
* List saved cards. Only the account owner can call this.
|
|
614
|
+
*/
|
|
615
|
+
async listPaymentMethodsRaw(initOverrides) {
|
|
616
|
+
const queryParameters = {};
|
|
617
|
+
const headerParameters = {};
|
|
618
|
+
if (this.configuration &&
|
|
619
|
+
(this.configuration.username !== undefined ||
|
|
620
|
+
this.configuration.password !== undefined)) {
|
|
621
|
+
headerParameters['Authorization'] =
|
|
622
|
+
'Basic ' +
|
|
623
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
624
|
+
}
|
|
625
|
+
if (this.configuration &&
|
|
626
|
+
(this.configuration.username !== undefined ||
|
|
627
|
+
this.configuration.password !== undefined)) {
|
|
628
|
+
headerParameters['Authorization'] =
|
|
629
|
+
'Basic ' +
|
|
630
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
631
|
+
}
|
|
632
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
633
|
+
const token = this.configuration.accessToken;
|
|
634
|
+
const tokenString = await token('apiKey', []);
|
|
635
|
+
if (tokenString) {
|
|
636
|
+
headerParameters['Authorization'] = `Bearer ${tokenString}`;
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
if (this.configuration &&
|
|
640
|
+
(this.configuration.username !== undefined ||
|
|
641
|
+
this.configuration.password !== undefined)) {
|
|
642
|
+
headerParameters['Authorization'] =
|
|
643
|
+
'Basic ' +
|
|
644
|
+
btoa(this.configuration.username + ':' + this.configuration.password);
|
|
645
|
+
}
|
|
646
|
+
let urlPath = `/account/payment-methods`;
|
|
647
|
+
const response = await this.request({
|
|
648
|
+
path: urlPath,
|
|
649
|
+
method: 'GET',
|
|
650
|
+
headers: headerParameters,
|
|
651
|
+
query: queryParameters
|
|
652
|
+
}, initOverrides);
|
|
653
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccountPaymentMethodsFromJSON)(jsonValue));
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* List saved cards. Only the account owner can call this.
|
|
657
|
+
*/
|
|
658
|
+
async listPaymentMethods(initOverrides) {
|
|
659
|
+
const response = await this.listPaymentMethodsRaw(initOverrides);
|
|
660
|
+
return await response.value();
|
|
661
|
+
}
|
|
502
662
|
/**
|
|
503
663
|
* List Supabase projects for the connected account
|
|
504
664
|
*/
|
|
@@ -550,7 +710,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
550
710
|
return await response.value();
|
|
551
711
|
}
|
|
552
712
|
/**
|
|
553
|
-
*
|
|
713
|
+
* Start or continue billing for this account. Returns a URL when payment is needed.
|
|
554
714
|
*/
|
|
555
715
|
async prepareCheckoutSessionRaw(requestParameters, initOverrides) {
|
|
556
716
|
if (requestParameters['billingPostRequestBody'] == null) {
|
|
@@ -598,7 +758,7 @@ class AccountApi extends runtime.BaseAPI {
|
|
|
598
758
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BillingPostResponseBodyFromJSON)(jsonValue));
|
|
599
759
|
}
|
|
600
760
|
/**
|
|
601
|
-
*
|
|
761
|
+
* Start or continue billing for this account. Returns a URL when payment is needed.
|
|
602
762
|
*/
|
|
603
763
|
async prepareCheckoutSession(billingPostRequestBody, initOverrides) {
|
|
604
764
|
const response = await this.prepareCheckoutSessionRaw({ billingPostRequestBody: billingPostRequestBody }, initOverrides);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Explicit barrel (patched by tools/sdk-codegen/patch-node-apis-barrel.ts).
|
|
3
3
|
* Multiple `SendRequest` types from bare `send` APIs are re-exported under stable names.
|
|
4
4
|
*/
|
|
5
|
-
export type { CancelSubscriptionOperationRequest, ConfigureSupabaseSMTPRequest, GetUsageHistoryRequest, ListInvoicesRequest, PrepareCheckoutSessionRequest, SupabaseOAuthOperationRequest, UpdateAccountSettingsRequest, UpdateBillingEmailOperationRequest, AccountApiInterface } from './AccountApi';
|
|
5
|
+
export type { AssignPaymentMethodOperationRequest, CancelSubscriptionOperationRequest, ConfigureSupabaseSMTPRequest, CreatePaymentMethodSetupOperationRequest, GetUsageHistoryRequest, ListInvoicesRequest, PrepareCheckoutSessionRequest, SupabaseOAuthOperationRequest, UpdateAccountSettingsRequest, UpdateBillingEmailOperationRequest, AccountApiInterface } from './AccountApi';
|
|
6
6
|
export { AccountApi } from './AccountApi';
|
|
7
7
|
export type { CreateAccountOperationRequest, AccountsApiInterface } from './AccountsApi';
|
|
8
8
|
export { AccountsApi } from './AccountsApi';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pingram
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AccountPaymentMethodsPaymentMethodsInner } from './AccountPaymentMethodsPaymentMethodsInner';
|
|
13
|
+
/**
|
|
14
|
+
* GET /account/payment-methods and POST /account/payment-methods/assign response.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AccountPaymentMethods
|
|
17
|
+
*/
|
|
18
|
+
export interface AccountPaymentMethods {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<AccountPaymentMethodsPaymentMethodsInner>}
|
|
22
|
+
* @memberof AccountPaymentMethods
|
|
23
|
+
*/
|
|
24
|
+
paymentMethods: Array<AccountPaymentMethodsPaymentMethodsInner>;
|
|
25
|
+
/**
|
|
26
|
+
* Card this account is billed on, when one is set.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AccountPaymentMethods
|
|
29
|
+
*/
|
|
30
|
+
thisAccountPaymentMethodId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Card new accounts you create will use by default.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof AccountPaymentMethods
|
|
35
|
+
*/
|
|
36
|
+
defaultForNewAccountsPaymentMethodId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* How many of your accounts can use these cards, including this one.
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof AccountPaymentMethods
|
|
41
|
+
*/
|
|
42
|
+
sharedAccountCount: number;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the AccountPaymentMethods interface.
|
|
46
|
+
*/
|
|
47
|
+
export declare function instanceOfAccountPaymentMethods(value: object): value is AccountPaymentMethods;
|
|
48
|
+
export declare function AccountPaymentMethodsFromJSON(json: any): AccountPaymentMethods;
|
|
49
|
+
export declare function AccountPaymentMethodsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountPaymentMethods;
|
|
50
|
+
export declare function AccountPaymentMethodsToJSON(json: any): AccountPaymentMethods;
|
|
51
|
+
export declare function AccountPaymentMethodsToJSONTyped(value?: AccountPaymentMethods | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAccountPaymentMethods = instanceOfAccountPaymentMethods;
|
|
17
|
+
exports.AccountPaymentMethodsFromJSON = AccountPaymentMethodsFromJSON;
|
|
18
|
+
exports.AccountPaymentMethodsFromJSONTyped = AccountPaymentMethodsFromJSONTyped;
|
|
19
|
+
exports.AccountPaymentMethodsToJSON = AccountPaymentMethodsToJSON;
|
|
20
|
+
exports.AccountPaymentMethodsToJSONTyped = AccountPaymentMethodsToJSONTyped;
|
|
21
|
+
const AccountPaymentMethodsPaymentMethodsInner_1 = require("./AccountPaymentMethodsPaymentMethodsInner");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AccountPaymentMethods interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAccountPaymentMethods(value) {
|
|
26
|
+
if (!('paymentMethods' in value) || value['paymentMethods'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('sharedAccountCount' in value) ||
|
|
29
|
+
value['sharedAccountCount'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AccountPaymentMethodsFromJSON(json) {
|
|
34
|
+
return AccountPaymentMethodsFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AccountPaymentMethodsFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
paymentMethods: json['paymentMethods'].map(AccountPaymentMethodsPaymentMethodsInner_1.AccountPaymentMethodsPaymentMethodsInnerFromJSON),
|
|
42
|
+
thisAccountPaymentMethodId: json['thisAccountPaymentMethodId'] == null
|
|
43
|
+
? undefined
|
|
44
|
+
: json['thisAccountPaymentMethodId'],
|
|
45
|
+
defaultForNewAccountsPaymentMethodId: json['defaultForNewAccountsPaymentMethodId'] == null
|
|
46
|
+
? undefined
|
|
47
|
+
: json['defaultForNewAccountsPaymentMethodId'],
|
|
48
|
+
sharedAccountCount: json['sharedAccountCount']
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function AccountPaymentMethodsToJSON(json) {
|
|
52
|
+
return AccountPaymentMethodsToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
function AccountPaymentMethodsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
paymentMethods: (value['paymentMethods'] ?? []).map(AccountPaymentMethodsPaymentMethodsInner_1.AccountPaymentMethodsPaymentMethodsInnerToJSON),
|
|
60
|
+
thisAccountPaymentMethodId: value['thisAccountPaymentMethodId'],
|
|
61
|
+
defaultForNewAccountsPaymentMethodId: value['defaultForNewAccountsPaymentMethodId'],
|
|
62
|
+
sharedAccountCount: value['sharedAccountCount']
|
|
63
|
+
};
|
|
64
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pingram
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* Saved card you can assign to this account or other accounts you own.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AccountPaymentMethodsPaymentMethodsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface AccountPaymentMethodsPaymentMethodsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AccountPaymentMethodsPaymentMethodsInner
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Card brand, such as visa or mastercard.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AccountPaymentMethodsPaymentMethodsInner
|
|
28
|
+
*/
|
|
29
|
+
brand: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof AccountPaymentMethodsPaymentMethodsInner
|
|
34
|
+
*/
|
|
35
|
+
last4: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AccountPaymentMethodsPaymentMethodsInner
|
|
40
|
+
*/
|
|
41
|
+
expMonth: number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AccountPaymentMethodsPaymentMethodsInner
|
|
46
|
+
*/
|
|
47
|
+
expYear: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Check if a given object implements the AccountPaymentMethodsPaymentMethodsInner interface.
|
|
51
|
+
*/
|
|
52
|
+
export declare function instanceOfAccountPaymentMethodsPaymentMethodsInner(value: object): value is AccountPaymentMethodsPaymentMethodsInner;
|
|
53
|
+
export declare function AccountPaymentMethodsPaymentMethodsInnerFromJSON(json: any): AccountPaymentMethodsPaymentMethodsInner;
|
|
54
|
+
export declare function AccountPaymentMethodsPaymentMethodsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountPaymentMethodsPaymentMethodsInner;
|
|
55
|
+
export declare function AccountPaymentMethodsPaymentMethodsInnerToJSON(json: any): AccountPaymentMethodsPaymentMethodsInner;
|
|
56
|
+
export declare function AccountPaymentMethodsPaymentMethodsInnerToJSONTyped(value?: AccountPaymentMethodsPaymentMethodsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAccountPaymentMethodsPaymentMethodsInner = instanceOfAccountPaymentMethodsPaymentMethodsInner;
|
|
17
|
+
exports.AccountPaymentMethodsPaymentMethodsInnerFromJSON = AccountPaymentMethodsPaymentMethodsInnerFromJSON;
|
|
18
|
+
exports.AccountPaymentMethodsPaymentMethodsInnerFromJSONTyped = AccountPaymentMethodsPaymentMethodsInnerFromJSONTyped;
|
|
19
|
+
exports.AccountPaymentMethodsPaymentMethodsInnerToJSON = AccountPaymentMethodsPaymentMethodsInnerToJSON;
|
|
20
|
+
exports.AccountPaymentMethodsPaymentMethodsInnerToJSONTyped = AccountPaymentMethodsPaymentMethodsInnerToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AccountPaymentMethodsPaymentMethodsInner interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAccountPaymentMethodsPaymentMethodsInner(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('brand' in value) || value['brand'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('last4' in value) || value['last4'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('expMonth' in value) || value['expMonth'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('expYear' in value) || value['expYear'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function AccountPaymentMethodsPaymentMethodsInnerFromJSON(json) {
|
|
38
|
+
return AccountPaymentMethodsPaymentMethodsInnerFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function AccountPaymentMethodsPaymentMethodsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
id: json['id'],
|
|
46
|
+
brand: json['brand'],
|
|
47
|
+
last4: json['last4'],
|
|
48
|
+
expMonth: json['expMonth'],
|
|
49
|
+
expYear: json['expYear']
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function AccountPaymentMethodsPaymentMethodsInnerToJSON(json) {
|
|
53
|
+
return AccountPaymentMethodsPaymentMethodsInnerToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function AccountPaymentMethodsPaymentMethodsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
id: value['id'],
|
|
61
|
+
brand: value['brand'],
|
|
62
|
+
last4: value['last4'],
|
|
63
|
+
expMonth: value['expMonth'],
|
|
64
|
+
expYear: value['expYear']
|
|
65
|
+
};
|
|
66
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pingram
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* POST /account/payment-methods/assign request.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AssignPaymentMethodRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface AssignPaymentMethodRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AssignPaymentMethodRequest
|
|
22
|
+
*/
|
|
23
|
+
paymentMethodId: string;
|
|
24
|
+
/**
|
|
25
|
+
* Where to use a saved card. `thisAccount` bills this account only. `newAccounts` is used when you create another account. `allAccounts` bills every account that shares these cards and becomes the default for new accounts.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AssignPaymentMethodRequest
|
|
28
|
+
*/
|
|
29
|
+
assignment: AssignPaymentMethodRequestAssignmentEnum;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const AssignPaymentMethodRequestAssignmentEnum: {
|
|
35
|
+
readonly THIS_ACCOUNT: "thisAccount";
|
|
36
|
+
readonly NEW_ACCOUNTS: "newAccounts";
|
|
37
|
+
readonly ALL_ACCOUNTS: "allAccounts";
|
|
38
|
+
};
|
|
39
|
+
export type AssignPaymentMethodRequestAssignmentEnum = (typeof AssignPaymentMethodRequestAssignmentEnum)[keyof typeof AssignPaymentMethodRequestAssignmentEnum];
|
|
40
|
+
/**
|
|
41
|
+
* Check if a given object implements the AssignPaymentMethodRequest interface.
|
|
42
|
+
*/
|
|
43
|
+
export declare function instanceOfAssignPaymentMethodRequest(value: object): value is AssignPaymentMethodRequest;
|
|
44
|
+
export declare function AssignPaymentMethodRequestFromJSON(json: any): AssignPaymentMethodRequest;
|
|
45
|
+
export declare function AssignPaymentMethodRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AssignPaymentMethodRequest;
|
|
46
|
+
export declare function AssignPaymentMethodRequestToJSON(json: any): AssignPaymentMethodRequest;
|
|
47
|
+
export declare function AssignPaymentMethodRequestToJSONTyped(value?: AssignPaymentMethodRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AssignPaymentMethodRequestAssignmentEnum = void 0;
|
|
17
|
+
exports.instanceOfAssignPaymentMethodRequest = instanceOfAssignPaymentMethodRequest;
|
|
18
|
+
exports.AssignPaymentMethodRequestFromJSON = AssignPaymentMethodRequestFromJSON;
|
|
19
|
+
exports.AssignPaymentMethodRequestFromJSONTyped = AssignPaymentMethodRequestFromJSONTyped;
|
|
20
|
+
exports.AssignPaymentMethodRequestToJSON = AssignPaymentMethodRequestToJSON;
|
|
21
|
+
exports.AssignPaymentMethodRequestToJSONTyped = AssignPaymentMethodRequestToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.AssignPaymentMethodRequestAssignmentEnum = {
|
|
26
|
+
THIS_ACCOUNT: 'thisAccount',
|
|
27
|
+
NEW_ACCOUNTS: 'newAccounts',
|
|
28
|
+
ALL_ACCOUNTS: 'allAccounts'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AssignPaymentMethodRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfAssignPaymentMethodRequest(value) {
|
|
34
|
+
if (!('paymentMethodId' in value) || value['paymentMethodId'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('assignment' in value) || value['assignment'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
function AssignPaymentMethodRequestFromJSON(json) {
|
|
41
|
+
return AssignPaymentMethodRequestFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AssignPaymentMethodRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
if (json == null) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
paymentMethodId: json['paymentMethodId'],
|
|
49
|
+
assignment: json['assignment']
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
function AssignPaymentMethodRequestToJSON(json) {
|
|
53
|
+
return AssignPaymentMethodRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
function AssignPaymentMethodRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
56
|
+
if (value == null) {
|
|
57
|
+
return value;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
paymentMethodId: value['paymentMethodId'],
|
|
61
|
+
assignment: value['assignment']
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { AccountGetResponseBillingAlerts } from './AccountGetResponseBillingAlerts';
|
|
13
13
|
/**
|
|
14
|
-
* POST /billing response: account fields
|
|
14
|
+
* POST /billing response: account fields plus a URL when payment is needed.
|
|
15
15
|
* @export
|
|
16
16
|
* @interface BillingPostResponseBody
|
|
17
17
|
*/
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pingram
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* POST /account/payment-methods/setup request.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreatePaymentMethodSetupRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CreatePaymentMethodSetupRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreatePaymentMethodSetupRequest
|
|
22
|
+
*/
|
|
23
|
+
successUrl: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreatePaymentMethodSetupRequest
|
|
28
|
+
*/
|
|
29
|
+
cancelUrl: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CreatePaymentMethodSetupRequest interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCreatePaymentMethodSetupRequest(value: object): value is CreatePaymentMethodSetupRequest;
|
|
35
|
+
export declare function CreatePaymentMethodSetupRequestFromJSON(json: any): CreatePaymentMethodSetupRequest;
|
|
36
|
+
export declare function CreatePaymentMethodSetupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePaymentMethodSetupRequest;
|
|
37
|
+
export declare function CreatePaymentMethodSetupRequestToJSON(json: any): CreatePaymentMethodSetupRequest;
|
|
38
|
+
export declare function CreatePaymentMethodSetupRequestToJSONTyped(value?: CreatePaymentMethodSetupRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfCreatePaymentMethodSetupRequest = instanceOfCreatePaymentMethodSetupRequest;
|
|
17
|
+
exports.CreatePaymentMethodSetupRequestFromJSON = CreatePaymentMethodSetupRequestFromJSON;
|
|
18
|
+
exports.CreatePaymentMethodSetupRequestFromJSONTyped = CreatePaymentMethodSetupRequestFromJSONTyped;
|
|
19
|
+
exports.CreatePaymentMethodSetupRequestToJSON = CreatePaymentMethodSetupRequestToJSON;
|
|
20
|
+
exports.CreatePaymentMethodSetupRequestToJSONTyped = CreatePaymentMethodSetupRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CreatePaymentMethodSetupRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCreatePaymentMethodSetupRequest(value) {
|
|
25
|
+
if (!('successUrl' in value) || value['successUrl'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('cancelUrl' in value) || value['cancelUrl'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function CreatePaymentMethodSetupRequestFromJSON(json) {
|
|
32
|
+
return CreatePaymentMethodSetupRequestFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function CreatePaymentMethodSetupRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
successUrl: json['successUrl'],
|
|
40
|
+
cancelUrl: json['cancelUrl']
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function CreatePaymentMethodSetupRequestToJSON(json) {
|
|
44
|
+
return CreatePaymentMethodSetupRequestToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function CreatePaymentMethodSetupRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
successUrl: value['successUrl'],
|
|
52
|
+
cancelUrl: value['cancelUrl']
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pingram
|
|
3
|
+
* Internal API for notification delivery and management
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* POST /account/payment-methods/setup response.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PaymentMethodSetup
|
|
16
|
+
*/
|
|
17
|
+
export interface PaymentMethodSetup {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PaymentMethodSetup
|
|
22
|
+
*/
|
|
23
|
+
sessionId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PaymentMethodSetup
|
|
28
|
+
*/
|
|
29
|
+
url: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PaymentMethodSetup interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPaymentMethodSetup(value: object): value is PaymentMethodSetup;
|
|
35
|
+
export declare function PaymentMethodSetupFromJSON(json: any): PaymentMethodSetup;
|
|
36
|
+
export declare function PaymentMethodSetupFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentMethodSetup;
|
|
37
|
+
export declare function PaymentMethodSetupToJSON(json: any): PaymentMethodSetup;
|
|
38
|
+
export declare function PaymentMethodSetupToJSONTyped(value?: PaymentMethodSetup | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Pingram
|
|
6
|
+
* Internal API for notification delivery and management
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfPaymentMethodSetup = instanceOfPaymentMethodSetup;
|
|
17
|
+
exports.PaymentMethodSetupFromJSON = PaymentMethodSetupFromJSON;
|
|
18
|
+
exports.PaymentMethodSetupFromJSONTyped = PaymentMethodSetupFromJSONTyped;
|
|
19
|
+
exports.PaymentMethodSetupToJSON = PaymentMethodSetupToJSON;
|
|
20
|
+
exports.PaymentMethodSetupToJSONTyped = PaymentMethodSetupToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PaymentMethodSetup interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPaymentMethodSetup(value) {
|
|
25
|
+
if (!('sessionId' in value) || value['sessionId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function PaymentMethodSetupFromJSON(json) {
|
|
32
|
+
return PaymentMethodSetupFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function PaymentMethodSetupFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
sessionId: json['sessionId'],
|
|
40
|
+
url: json['url']
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function PaymentMethodSetupToJSON(json) {
|
|
44
|
+
return PaymentMethodSetupToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function PaymentMethodSetupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
sessionId: value['sessionId'],
|
|
52
|
+
url: value['url']
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -5,6 +5,8 @@ export * from './AccountAddressesResponseAddressesInner';
|
|
|
5
5
|
export * from './AccountGetResponse';
|
|
6
6
|
export * from './AccountGetResponseBillingAlerts';
|
|
7
7
|
export * from './AccountPatchRequest';
|
|
8
|
+
export * from './AccountPaymentMethods';
|
|
9
|
+
export * from './AccountPaymentMethodsPaymentMethodsInner';
|
|
8
10
|
export * from './AddressResponse';
|
|
9
11
|
export * from './Agent';
|
|
10
12
|
export * from './Agent1';
|
|
@@ -18,6 +20,7 @@ export * from './ApiErrorResponse';
|
|
|
18
20
|
export * from './ArmVoiceInboundClaimRequest';
|
|
19
21
|
export * from './ArmVoiceInboundClaimRequestInbound';
|
|
20
22
|
export * from './ArmVoiceInboundClaimResponse';
|
|
23
|
+
export * from './AssignPaymentMethodRequest';
|
|
21
24
|
export * from './AutoJoinGetResponse';
|
|
22
25
|
export * from './AutoJoinPostResponse';
|
|
23
26
|
export * from './AutoJoinRequestBody';
|
|
@@ -43,6 +46,7 @@ export * from './CreateKeyRequest';
|
|
|
43
46
|
export * from './CreateKeyResponse';
|
|
44
47
|
export * from './CreateLibraryRequest';
|
|
45
48
|
export * from './CreateLibraryResponse';
|
|
49
|
+
export * from './CreatePaymentMethodSetupRequest';
|
|
46
50
|
export * from './CreatePersonalAccessTokenRequest';
|
|
47
51
|
export * from './CreatePersonalAccessTokenResponse';
|
|
48
52
|
export * from './Custom';
|
|
@@ -213,6 +217,7 @@ export * from './OpenaiGptRealtime21Mini';
|
|
|
213
217
|
export * from './OrderPhoneNumberRequest';
|
|
214
218
|
export * from './OrderPhoneNumberResponse';
|
|
215
219
|
export * from './PasswordStatusResponse';
|
|
220
|
+
export * from './PaymentMethodSetup';
|
|
216
221
|
export * from './PhoneVerifyConfirmRequest';
|
|
217
222
|
export * from './PhoneVerifyConfirmResponse';
|
|
218
223
|
export * from './PhoneVerifyStartRequest';
|
|
@@ -23,6 +23,8 @@ __exportStar(require("./AccountAddressesResponseAddressesInner"), exports);
|
|
|
23
23
|
__exportStar(require("./AccountGetResponse"), exports);
|
|
24
24
|
__exportStar(require("./AccountGetResponseBillingAlerts"), exports);
|
|
25
25
|
__exportStar(require("./AccountPatchRequest"), exports);
|
|
26
|
+
__exportStar(require("./AccountPaymentMethods"), exports);
|
|
27
|
+
__exportStar(require("./AccountPaymentMethodsPaymentMethodsInner"), exports);
|
|
26
28
|
__exportStar(require("./AddressResponse"), exports);
|
|
27
29
|
__exportStar(require("./Agent"), exports);
|
|
28
30
|
__exportStar(require("./Agent1"), exports);
|
|
@@ -36,6 +38,7 @@ __exportStar(require("./ApiErrorResponse"), exports);
|
|
|
36
38
|
__exportStar(require("./ArmVoiceInboundClaimRequest"), exports);
|
|
37
39
|
__exportStar(require("./ArmVoiceInboundClaimRequestInbound"), exports);
|
|
38
40
|
__exportStar(require("./ArmVoiceInboundClaimResponse"), exports);
|
|
41
|
+
__exportStar(require("./AssignPaymentMethodRequest"), exports);
|
|
39
42
|
__exportStar(require("./AutoJoinGetResponse"), exports);
|
|
40
43
|
__exportStar(require("./AutoJoinPostResponse"), exports);
|
|
41
44
|
__exportStar(require("./AutoJoinRequestBody"), exports);
|
|
@@ -61,6 +64,7 @@ __exportStar(require("./CreateKeyRequest"), exports);
|
|
|
61
64
|
__exportStar(require("./CreateKeyResponse"), exports);
|
|
62
65
|
__exportStar(require("./CreateLibraryRequest"), exports);
|
|
63
66
|
__exportStar(require("./CreateLibraryResponse"), exports);
|
|
67
|
+
__exportStar(require("./CreatePaymentMethodSetupRequest"), exports);
|
|
64
68
|
__exportStar(require("./CreatePersonalAccessTokenRequest"), exports);
|
|
65
69
|
__exportStar(require("./CreatePersonalAccessTokenResponse"), exports);
|
|
66
70
|
__exportStar(require("./Custom"), exports);
|
|
@@ -231,6 +235,7 @@ __exportStar(require("./OpenaiGptRealtime21Mini"), exports);
|
|
|
231
235
|
__exportStar(require("./OrderPhoneNumberRequest"), exports);
|
|
232
236
|
__exportStar(require("./OrderPhoneNumberResponse"), exports);
|
|
233
237
|
__exportStar(require("./PasswordStatusResponse"), exports);
|
|
238
|
+
__exportStar(require("./PaymentMethodSetup"), exports);
|
|
234
239
|
__exportStar(require("./PhoneVerifyConfirmRequest"), exports);
|
|
235
240
|
__exportStar(require("./PhoneVerifyConfirmResponse"), exports);
|
|
236
241
|
__exportStar(require("./PhoneVerifyStartRequest"), exports);
|
package/package.json
CHANGED