pingram 1.0.40 → 1.0.41

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.
Files changed (50) hide show
  1. package/dist/generated/src/apis/AccountApi.d.ts +77 -9
  2. package/dist/generated/src/apis/AccountApi.js +164 -4
  3. package/dist/generated/src/apis/WebhooksApi.d.ts +12 -12
  4. package/dist/generated/src/apis/WebhooksApi.js +6 -6
  5. package/dist/generated/src/apis/index.d.ts +1 -1
  6. package/dist/generated/src/models/AccountGetResponseBillingAlerts.d.ts +1 -1
  7. package/dist/generated/src/models/AccountPaymentMethods.d.ts +51 -0
  8. package/dist/generated/src/models/AccountPaymentMethods.js +64 -0
  9. package/dist/generated/src/models/AccountPaymentMethodsPaymentMethodsInner.d.ts +56 -0
  10. package/dist/generated/src/models/AccountPaymentMethodsPaymentMethodsInner.js +66 -0
  11. package/dist/generated/src/models/AssignPaymentMethodRequest.d.ts +47 -0
  12. package/dist/generated/src/models/AssignPaymentMethodRequest.js +63 -0
  13. package/dist/generated/src/models/BillingPostResponseBody.d.ts +1 -1
  14. package/dist/generated/src/models/ConfirmChangeEmailRequest.d.ts +6 -0
  15. package/dist/generated/src/models/ConfirmChangeEmailRequest.js +4 -2
  16. package/dist/generated/src/models/ConfirmChangeEmailResponse.d.ts +38 -0
  17. package/dist/generated/src/models/ConfirmChangeEmailResponse.js +55 -0
  18. package/dist/generated/src/models/ConfirmPasswordChangeRequest.d.ts +38 -0
  19. package/dist/generated/src/models/ConfirmPasswordChangeRequest.js +54 -0
  20. package/dist/generated/src/models/CreatePaymentMethodSetupRequest.d.ts +38 -0
  21. package/dist/generated/src/models/CreatePaymentMethodSetupRequest.js +54 -0
  22. package/dist/generated/src/models/ListInvoicesResponseInvoicesInner.d.ts +1 -1
  23. package/dist/generated/src/models/LogsGetResponseLogsInner.d.ts +6 -0
  24. package/dist/generated/src/models/LogsGetResponseLogsInner.js +4 -0
  25. package/dist/generated/src/models/PasswordStatusResponse.d.ts +38 -0
  26. package/dist/generated/src/models/PasswordStatusResponse.js +54 -0
  27. package/dist/generated/src/models/PaymentMethodSetup.d.ts +38 -0
  28. package/dist/generated/src/models/PaymentMethodSetup.js +54 -0
  29. package/dist/generated/src/models/SignInUsernameRequest.d.ts +32 -0
  30. package/dist/generated/src/models/SignInUsernameRequest.js +50 -0
  31. package/dist/generated/src/models/SignInUsernameResponse.d.ts +32 -0
  32. package/dist/generated/src/models/SignInUsernameResponse.js +50 -0
  33. package/dist/generated/src/models/StartChangeEmailRequest.d.ts +9 -3
  34. package/dist/generated/src/models/StartChangeEmailRequest.js +3 -3
  35. package/dist/generated/src/models/StartPasswordChangeRequest.d.ts +44 -0
  36. package/dist/generated/src/models/StartPasswordChangeRequest.js +54 -0
  37. package/dist/generated/src/models/WebhookEndpoint.d.ts +8 -1
  38. package/dist/generated/src/models/WebhookEndpoint.js +7 -2
  39. package/dist/generated/src/models/WebhookEndpointBasicAuth.d.ts +38 -0
  40. package/dist/generated/src/models/WebhookEndpointBasicAuth.js +54 -0
  41. package/dist/generated/src/models/WebhookEndpointUpsertRequest.d.ts +8 -1
  42. package/dist/generated/src/models/WebhookEndpointUpsertRequest.js +7 -2
  43. package/dist/generated/src/models/WebhookEndpointUpsertRequestBasicAuth.d.ts +38 -0
  44. package/dist/generated/src/models/WebhookEndpointUpsertRequestBasicAuth.js +52 -0
  45. package/dist/generated/src/models/WebhookEndpointsResponseEndpointsInner.d.ts +8 -1
  46. package/dist/generated/src/models/WebhookEndpointsResponseEndpointsInner.js +7 -2
  47. package/dist/generated/src/models/index.d.ts +13 -0
  48. package/dist/generated/src/models/index.js +13 -0
  49. package/dist/src/client.js +1 -1
  50. 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 Stripe invoices for the authenticated account, newest first.
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 Stripe invoices for the authenticated account, newest first.
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 Get or create Stripe customer and optionally create checkout session
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
- * Get or create Stripe customer and optionally create checkout session
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 Stripe invoices for the authenticated account, newest first.
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 Stripe invoices for the authenticated account, newest first.
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
- * Get or create Stripe customer and optionally create checkout session
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
- * Get or create Stripe customer and optionally create checkout session
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 Stripe invoices for the authenticated account, newest first.
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 Stripe invoices for the authenticated account, newest first.
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
- * Get or create Stripe customer and optionally create checkout session
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
- * Get or create Stripe customer and optionally create checkout session
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);
@@ -30,7 +30,7 @@ export interface UpdateWebhookRequest {
30
30
  export interface WebhooksApiInterface {
31
31
  /**
32
32
  *
33
- * @summary Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
33
+ * @summary Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx. Optional basic auth is sent as an Authorization header. Put it in basicAuth or in the URL, not both. The password is not returned.
34
34
  * @param {WebhookEndpointUpsertRequest} webhookEndpointUpsertRequest
35
35
  * @param {*} [options] Override http request option.
36
36
  * @throws {RequiredError}
@@ -38,7 +38,7 @@ export interface WebhooksApiInterface {
38
38
  */
39
39
  createWebhookRaw(requestParameters: CreateWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpoint>>;
40
40
  /**
41
- * Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
41
+ * Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx. Optional basic auth is sent as an Authorization header. Put it in basicAuth or in the URL, not both. The password is not returned.
42
42
  */
43
43
  createWebhook(webhookEndpointUpsertRequest: WebhookEndpointUpsertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpoint>;
44
44
  /**
@@ -56,19 +56,19 @@ export interface WebhooksApiInterface {
56
56
  deleteWebhook(endpointId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
57
57
  /**
58
58
  *
59
- * @summary List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. Use the id with update or delete.
59
+ * @summary List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. When basic auth is saved, username is returned and passwordSet is true. The password is not returned. Use the id with update or delete.
60
60
  * @param {*} [options] Override http request option.
61
61
  * @throws {RequiredError}
62
62
  * @memberof WebhooksApiInterface
63
63
  */
64
64
  listWebhooksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpointsResponse>>;
65
65
  /**
66
- * List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. Use the id with update or delete.
66
+ * List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. When basic auth is saved, username is returned and passwordSet is true. The password is not returned. Use the id with update or delete.
67
67
  */
68
68
  listWebhooks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpointsResponse>;
69
69
  /**
70
70
  *
71
- * @summary Replace one webhook endpoint\'s URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL.
71
+ * @summary Replace one webhook endpoint\'s URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL. Omit basicAuth to keep stored credentials. null removes them. Omit the password to keep the stored password. The password is not returned.
72
72
  * @param {string} endpointId Id of the webhook endpoint, from list or create.
73
73
  * @param {WebhookEndpointUpsertRequest} webhookEndpointUpsertRequest
74
74
  * @param {*} [options] Override http request option.
@@ -77,7 +77,7 @@ export interface WebhooksApiInterface {
77
77
  */
78
78
  updateWebhookRaw(requestParameters: UpdateWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpoint>>;
79
79
  /**
80
- * Replace one webhook endpoint\'s URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL.
80
+ * Replace one webhook endpoint\'s URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL. Omit basicAuth to keep stored credentials. null removes them. Omit the password to keep the stored password. The password is not returned.
81
81
  */
82
82
  updateWebhook(endpointId: string, webhookEndpointUpsertRequest: WebhookEndpointUpsertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpoint>;
83
83
  }
@@ -86,11 +86,11 @@ export interface WebhooksApiInterface {
86
86
  */
87
87
  export declare class WebhooksApi extends runtime.BaseAPI implements WebhooksApiInterface {
88
88
  /**
89
- * Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
89
+ * Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx. Optional basic auth is sent as an Authorization header. Put it in basicAuth or in the URL, not both. The password is not returned.
90
90
  */
91
91
  createWebhookRaw(requestParameters: CreateWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpoint>>;
92
92
  /**
93
- * Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
93
+ * Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx. Optional basic auth is sent as an Authorization header. Put it in basicAuth or in the URL, not both. The password is not returned.
94
94
  */
95
95
  createWebhook(webhookEndpointUpsertRequest: WebhookEndpointUpsertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpoint>;
96
96
  /**
@@ -102,19 +102,19 @@ export declare class WebhooksApi extends runtime.BaseAPI implements WebhooksApiI
102
102
  */
103
103
  deleteWebhook(endpointId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
104
104
  /**
105
- * List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. Use the id with update or delete.
105
+ * List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. When basic auth is saved, username is returned and passwordSet is true. The password is not returned. Use the id with update or delete.
106
106
  */
107
107
  listWebhooksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpointsResponse>>;
108
108
  /**
109
- * List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. Use the id with update or delete.
109
+ * List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. When basic auth is saved, username is returned and passwordSet is true. The password is not returned. Use the id with update or delete.
110
110
  */
111
111
  listWebhooks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpointsResponse>;
112
112
  /**
113
- * Replace one webhook endpoint\'s URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL.
113
+ * Replace one webhook endpoint\'s URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL. Omit basicAuth to keep stored credentials. null removes them. Omit the password to keep the stored password. The password is not returned.
114
114
  */
115
115
  updateWebhookRaw(requestParameters: UpdateWebhookRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<WebhookEndpoint>>;
116
116
  /**
117
- * Replace one webhook endpoint\'s URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL.
117
+ * Replace one webhook endpoint\'s URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL. Omit basicAuth to keep stored credentials. null removes them. Omit the password to keep the stored password. The password is not returned.
118
118
  */
119
119
  updateWebhook(endpointId: string, webhookEndpointUpsertRequest: WebhookEndpointUpsertRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<WebhookEndpoint>;
120
120
  }
@@ -54,7 +54,7 @@ const index_1 = require("../models/index");
54
54
  */
55
55
  class WebhooksApi extends runtime.BaseAPI {
56
56
  /**
57
- * Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
57
+ * Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx. Optional basic auth is sent as an Authorization header. Put it in basicAuth or in the URL, not both. The password is not returned.
58
58
  */
59
59
  async createWebhookRaw(requestParameters, initOverrides) {
60
60
  if (requestParameters['webhookEndpointUpsertRequest'] == null) {
@@ -102,7 +102,7 @@ class WebhooksApi extends runtime.BaseAPI {
102
102
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WebhookEndpointFromJSON)(jsonValue));
103
103
  }
104
104
  /**
105
- * Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx.
105
+ * Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx. Optional basic auth is sent as an Authorization header. Put it in basicAuth or in the URL, not both. The password is not returned.
106
106
  */
107
107
  async createWebhook(webhookEndpointUpsertRequest, initOverrides) {
108
108
  const response = await this.createWebhookRaw({ webhookEndpointUpsertRequest: webhookEndpointUpsertRequest }, initOverrides);
@@ -162,7 +162,7 @@ class WebhooksApi extends runtime.BaseAPI {
162
162
  await this.deleteWebhookRaw({ endpointId: endpointId }, initOverrides);
163
163
  }
164
164
  /**
165
- * List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. Use the id with update or delete.
165
+ * List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. When basic auth is saved, username is returned and passwordSet is true. The password is not returned. Use the id with update or delete.
166
166
  */
167
167
  async listWebhooksRaw(initOverrides) {
168
168
  const queryParameters = {};
@@ -205,14 +205,14 @@ class WebhooksApi extends runtime.BaseAPI {
205
205
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WebhookEndpointsResponseFromJSON)(jsonValue));
206
206
  }
207
207
  /**
208
- * List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. Use the id with update or delete.
208
+ * List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. When basic auth is saved, username is returned and passwordSet is true. The password is not returned. Use the id with update or delete.
209
209
  */
210
210
  async listWebhooks(initOverrides) {
211
211
  const response = await this.listWebhooksRaw(initOverrides);
212
212
  return await response.value();
213
213
  }
214
214
  /**
215
- * Replace one webhook endpoint\'s URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL.
215
+ * Replace one webhook endpoint\'s URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL. Omit basicAuth to keep stored credentials. null removes them. Omit the password to keep the stored password. The password is not returned.
216
216
  */
217
217
  async updateWebhookRaw(requestParameters, initOverrides) {
218
218
  if (requestParameters['endpointId'] == null) {
@@ -264,7 +264,7 @@ class WebhooksApi extends runtime.BaseAPI {
264
264
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WebhookEndpointFromJSON)(jsonValue));
265
265
  }
266
266
  /**
267
- * Replace one webhook endpoint\'s URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL.
267
+ * Replace one webhook endpoint\'s URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL. Omit basicAuth to keep stored credentials. null removes them. Omit the password to keep the stored password. The password is not returned.
268
268
  */
269
269
  async updateWebhook(endpointId, webhookEndpointUpsertRequest, initOverrides) {
270
270
  const response = await this.updateWebhookRaw({
@@ -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';
@@ -28,7 +28,7 @@ export interface AccountGetResponseBillingAlerts {
28
28
  */
29
29
  emails: Array<string>;
30
30
  /**
31
- * Percents to email, from 5 to 100 in steps of 5. At most two. At least one is required while enabled.
31
+ * Percents to email, from 5 to 100 in steps of 5. At most five. At least one is required while enabled.
32
32
  * @type {Array<number>}
33
33
  * @memberof AccountGetResponseBillingAlerts
34
34
  */
@@ -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;